/* V3 — BRUTALIST / RAW
   Hard edges, no rounding, monospace data, electric red accent.
*/

/* ------ SELF-HOSTED FONTS ------ */
@font-face {
  font-family: 'Space Grotesk';
  src: url('public/fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.woff2') format('woff2-variations'),
       url('public/fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('public/fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.woff2') format('woff2-variations'),
       url('public/fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #C8A96E;       /* brand gold */
  --accent-2: #8A6E3F;     /* deep gold — used on light/inverted blocks for em + emph */
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #000000;
  --fg: #FFFFFF;
  --bg-invert: #FFFFFF;
  --fg-invert: #000000;
  --rule: rgba(255,255,255,0.18);
  --rule-strong: rgba(255,255,255,0.40);
  --muted: #888;
  --tone: #0a0a0a;
}
[data-theme="light"] {
  --bg: #FFFFFF;
  --fg: #000000;
  --bg-invert: #000000;
  --fg-invert: #FFFFFF;
  --rule: rgba(0,0,0,0.18);
  --rule-strong: rgba(0,0,0,0.40);
  --muted: #666;
  --tone: #f4f4f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
table { border-collapse: collapse; width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
em { font-style: italic; color: var(--accent); font-weight: 600; }
::selection { background: var(--accent); color: #000000; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono--accent { color: var(--accent); }
.mono--big { font-size: 13px; font-weight: 700; }
.mono--label { color: var(--muted); display: block; margin-bottom: 4px; }

/* ------ TICKER ------ */
.ticker {
  background: var(--bg-invert);
  color: var(--fg-invert);
  border-bottom: 1px solid var(--bg-invert);
  padding: 10px 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 99;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: tick 38s linear infinite;
  width: max-content;
}
.ticker__sep { color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------ NAV ------ */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  border-bottom: 2px solid var(--fg);
  background: var(--bg);
  position: sticky;
  top: 36px;
  z-index: 98;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__square { color: var(--accent); }
.nav__role { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 11px; }

.nav__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-top: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav__links a:hover { border-color: var(--accent); }
.nav__num { color: var(--accent); }

.nav__controls { display: flex; align-items: center; gap: 8px; }

.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.ctrl:hover { background: var(--fg); color: var(--bg); }
.ctrl [data-lang].is-active { color: var(--accent); }
.ctrl__sep { opacity: 0.4; }
.ctrl__theme-state { color: var(--accent); }
.ctrl:hover .ctrl__theme-state { color: var(--bg); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: var(--accent);
  color: #000000;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: var(--fg); color: var(--bg); transform: translateY(-1px); }

.nav__menu {
  display: none;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 12px;
}

.mobile-menu {
  position: fixed;
  top: 84px;
  left: 0; right: 0;
  z-index: 97;
  background: var(--bg);
  border-bottom: 2px solid var(--fg);
  padding: 18px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 10px;
}
.mobile-menu .cta-block {
  margin-top: 18px;
  background: var(--accent);
  color: #000000 !important;
  border-bottom: none;
  padding: 16px 18px;
  font-weight: 700;
}

/* ------ HERO ------ */
.hero {
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px);
  border-bottom: 2px solid var(--fg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.hero__title {
  font-weight: 700;
  font-size: clamp(40px, 10vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title-line { display: block; }
.hero__title-line--accent { color: var(--accent); font-style: italic; }
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 0.05em;
  font-style: normal;
}
@keyframes blink {
  50% { opacity: 0.2; }
}

.hero__sub {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.55;
  color: var(--fg);
  max-width: 70ch;
  padding: 16px 18px;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
}
.hero__sub strong { font-weight: 700; color: var(--fg); }
.hero__sub em { font-style: italic; color: var(--accent); font-weight: 700; }

.hero__cta-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.big-cta {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--accent);
  color: #000000;
  padding: 22px 24px;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  border: 2px solid var(--accent);
}
.big-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.big-cta__pre, .big-cta__post { font-family: var(--mono); font-size: 0.8em; }
.hero__cta-note { color: var(--muted); }

/* ------ DIVIDER ------ */
.divider {
  background: var(--bg);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--fg);
  border-top: 1px solid var(--fg);
}
.divider .mono { font-weight: 700; }
.divider span span { color: var(--accent); }

/* ------ BLOCK ------ */
.block {
  padding: var(--section-y) var(--gutter);
  border-bottom: 2px solid var(--fg);
}
.block--invert {
  background: var(--bg-invert);
  color: var(--fg-invert);
  border-top: none;
}
.block--invert .mono--big,
.block--invert .mono { color: inherit; }
.block--invert .mono--label { color: rgba(0,0,0,0.5); }
[data-theme="light"] .block--invert .mono--label { color: rgba(255,255,255,0.5); }
.block--invert em { color: var(--accent-2); }

.block__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 48px;
}
.block__head .mono--big { color: var(--accent); }

.big-h {
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 56px;
  max-width: 18ch;
}

.manifesto {
  font-weight: 700;
  font-size: clamp(36px, 6.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 56px;
  max-width: 22ch;
}
.manifesto__strike {
  position: relative;
  display: inline;
}
.manifesto__strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  height: 6px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.2s;
}
.manifesto.is-visible .manifesto__strike::after { transform: scaleX(1); }
.manifesto__accent { color: var(--accent); display: inline-block; }

/* Manifesto list — "Cosa non vedrai mai con me." */
.manifesto-list {
  border-top: 2px solid currentColor;
  margin: 0 0 32px;
  max-width: 90ch;
}
.manifesto-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid currentColor;
  align-items: baseline;
  transition: padding-left 0.3s var(--ease);
}
.manifesto-list li:hover { padding-left: 12px; }
.manifesto-list__mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 6px 8px;
  border: 1.5px solid var(--accent);
  text-align: center;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}
.manifesto-list p {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}
.manifesto-close {
  font-family: var(--sans) !important;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px) !important;
  line-height: 1.5 !important;
  max-width: 80ch;
  margin-top: 0 !important;
}

.block__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 70ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  font-family: var(--mono);
  font-weight: 400;
}
.block__body p::first-letter { font-weight: 600; }
.emph {
  background: var(--accent);
  color: #000000;
  padding: 14px 18px;
  font-weight: 600;
  border: 2px solid var(--accent);
}
.block--invert .emph { background: var(--accent-2); color: #000; border-color: var(--accent-2); }

/* ------ HOW TABLE ------ */
.how-table {
  border: 2px solid currentColor;
  font-family: var(--mono);
  font-size: 13px;
}
.how-table th, .how-table td {
  padding: 16px 14px;
  border: 1px solid currentColor;
  text-align: left;
  vertical-align: top;
}
.how-table thead th {
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.how-table__num {
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  width: 60px;
}
.how-table tbody tr:hover { background: var(--tone); }
.how-table strong {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--accent {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

/* ------ WHO ------ */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}
.who-grid li {
  padding: 28px 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  transition: background 0.2s;
}
.who-grid li:hover { background: var(--accent); color: #000000; }
.who-grid li:hover em { color: #000000; }
.who-grid__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.who-grid li:hover .who-grid__num { color: #000000; }
.who-grid p {
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.who-grid li:nth-child(5) { grid-column: span 2; background: var(--accent); color: #000000; }
.who-grid li:nth-child(5) em { color: #000000; }
.who-grid li:nth-child(5) .who-grid__num { color: #000000; }
.who-close {
  margin-top: 32px;
  font-weight: 700;
  font-size: 13px;
}

/* ------ ABOUT ------ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 130px; }
.about-photo__tag { color: var(--accent); font-weight: 700; }
.about-photo__frame {
  aspect-ratio: 4 / 5;
  border: 2px solid currentColor;
  overflow: hidden;
  background: var(--tone);
}
.about-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
  transition: filter 0.5s var(--ease);
}
.about-photo:hover .about-photo__img { filter: grayscale(0) contrast(1.05); }
.about-photo__label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid currentColor;
}
.about-spec {
  font-size: 12px;
  border: 2px solid currentColor;
}
.about-spec td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.about-spec td:first-child {
  color: var(--accent);
  font-weight: 700;
  width: 40%;
}
.about-spec tr:last-child td { border-bottom: none; }
.about-spec td:last-child { border-right: none; }

.about-text p {
  font-family: var(--mono);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  margin-bottom: 18px;
  font-weight: 400;
}
.about-text .emph {
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 19px);
  margin-top: 24px;
}

/* ------ REVIEWS ------ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid currentColor;
  margin-bottom: 32px;
}
.rv {
  padding: 24px 22px;
  border-right: 1px solid currentColor;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rv:last-child { border-right: none; }
.rv__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
  font-size: 11px;
}
.rv__top .mono:first-child { color: var(--accent); font-weight: 700; }
.rv blockquote {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1;
}
.rv__bot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); font-weight: 700; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000000;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  transition: background 0.2s;
}
.link-arrow:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ------ FINAL ------ */
.final {
  padding: var(--section-y) var(--gutter);
  text-align: center;
  background: var(--bg-invert);
  color: var(--fg-invert);
  border-bottom: 2px solid var(--fg);
}
.final .mono { font-weight: 700; }
.final__title {
  font-weight: 700;
  font-size: clamp(44px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 24px auto 48px;
  max-width: 18ch;
}
.big-cta--final { font-size: clamp(17px, 2vw, 22px); padding: 26px 32px; }
.big-cta--final:hover { box-shadow: 6px 6px 0 var(--accent); }

.contacts {
  margin: 64px auto 0;
  max-width: 720px;
  border: 2px solid currentColor;
  font-size: 12px;
  text-align: left;
}
.contacts td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.contacts td:first-child {
  color: var(--accent);
  font-weight: 700;
  width: 25%;
}
.contacts tr:last-child td { border-bottom: none; }
.contacts td:last-child { border-right: none; }
.contacts a { border-bottom: 1px solid currentColor; }

/* ------ FOOTER ------ */
.footer {
  background: var(--bg);
  padding: 24px var(--gutter) 16px;
}
.footer__top, .footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 600;
}
.footer__top { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.footer__big {
  font-weight: 700;
  font-size: clamp(40px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  margin: 32px 0;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
  overflow: hidden;
  max-width: 100%;
}
.footer__bottom { padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); }
.footer__bottom a { color: var(--accent); }

/* ------ FLOAT WA ------ */
.float-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 52px; height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000000;
  border: 2px solid var(--fg);
  box-shadow: 4px 4px 0 var(--fg);
}
.float-wa svg { width: 24px; height: 24px; }

/* ------ REVEAL ------ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------ RESPONSIVE ------ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__cta { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 320px; }
  .reviews { grid-template-columns: 1fr; }
  .rv { border-right: none; border-bottom: 1px solid currentColor; }
  .rv:last-child { border-bottom: none; }
  .float-wa { display: inline-flex; }
}
@media (max-width: 720px) {
  .ticker { font-size: 11px; }
  .nav { grid-template-columns: 1fr auto; gap: 8px; }
  .nav__role { display: none; }
  .ctrl { padding: 0 8px; }
  .hero__title { font-size: clamp(40px, 13vw, 96px); }
  .who-grid { grid-template-columns: 1fr; }
  .who-grid li:nth-child(5) { grid-column: auto; }
  .how-table { font-size: 11px; }
  .how-table th:nth-child(4), .how-table td:nth-child(4) { display: none; }
  .how-table strong { font-size: 15px; }
  .footer__big { font-size: clamp(34px, 13vw, 88px); }
  .contacts td:first-child { width: 35%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker__track { animation: none; }
  .cursor { animation: none; }
}
