/* ==========================================================================
   VERRO — verrostudios.com
   Static rebuild. Monochrome editorial system: warm white, near-black ink,
   Inter variable, pill buttons, soft motion.
   ========================================================================== */

/* ---------- Fonts (self-hosted, EU-friendly) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fdfdfc;
  --bg-soft: #f6f6f4;
  --ink: #131312;
  --ink-2: #3c3c3a;
  --ink-soft: #6d6d6a;
  --line: rgba(19, 19, 18, 0.10);
  --line-strong: rgba(19, 19, 18, 0.18);
  --card: #ffffff;
  --shadow-soft: 0 1px 2px rgba(19,19,18,.04), 0 12px 32px -12px rgba(19,19,18,.10);
  --shadow-lift: 0 2px 4px rgba(19,19,18,.05), 0 22px 48px -16px rgba(19,19,18,.16);
  --radius: 20px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --pad-x: clamp(20px, 4.5vw, 56px);
  --max: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.js-smooth { scroll-behavior: auto !important; } /* JS engine owns motion; native smooth must not compound */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
strong { font-weight: 650; color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.05;
  text-wrap: balance;
}
.h-display { font-size: clamp(42px, 7vw, 92px); }
.h-xl      { font-size: clamp(34px, 5vw, 64px); }
.h-lg      { font-size: clamp(28px, 3.6vw, 44px); }
.h-md      { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.02em; line-height: 1.2; }

.sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 46ch;
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

section { padding-block: clamp(72px, 10vw, 140px); }
section.tight { padding-block: clamp(56px, 7vw, 96px); }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .chev { width: 13px; height: 13px; flex: none; transition: transform 0.2s var(--ease); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.65); }

@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
  .btn-ghost:hover { border-color: var(--ink); background: #fff; }
  .btn:hover .chev { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(253, 253, 252, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-color: var(--line);
}
.hdr-in {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 19px; width: auto; }
.hdr-nav { display: flex; gap: 34px; }
.hdr-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .hdr-nav a:hover { color: var(--ink); } }
.hdr .btn { padding: 11px 22px; font-size: 14.5px; }

.menu-btn {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.menu-btn span + span { margin-top: 6px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad-x);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
.mobile-menu a {
  font-size: clamp(30px, 8vw, 40px); font-weight: 700; letter-spacing: -0.03em;
  padding: 14px 0; color: var(--ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.10s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.20s; }
body.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .hdr-nav, .hdr .btn { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero .sub { margin-top: 22px; }
.hero .btn { margin-top: 34px; }
.only-mobile { display: none; }
@media (max-width: 640px) { .only-mobile { display: inline; } }

/* ---------- VSL / video ---------- */
.vsl { padding-top: 0; }
.vsl-frame {
  max-width: 900px; margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: #0c0c0c;
}
.video-vertical { max-width: 380px; margin-inline: auto; }

/* ---------- Stats band ---------- */
.stats { background: var(--bg-soft); }
.stats h2 { line-height: 1.12; }
.stats .btn { margin-top: 30px; }

/* ---------- Case study cards ---------- */
.cards-head { margin-bottom: clamp(36px, 5vw, 64px); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  min-height: 218px;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s ease;
}
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.card .more {
  margin-top: auto;
  font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 7px;
}
.card .more::after { content: '\2192'; transition: transform 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
  .card:hover .more::after { transform: translateX(4px); }
}

/* ---------- CTA bands ---------- */
.cta-band h2 { line-height: 1.1; }
.cta-band .sub { margin-top: 16px; }
.cta-band .btn { margin-top: 32px; }

/* ---------- Founder ---------- */
.founder-head { margin-bottom: clamp(36px, 5vw, 60px); }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.founder-photo img { transition: transform 0.1s linear; will-change: transform; transform: scale(1.06); }
.founder-copy h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 18px; }
.founder-copy p { color: var(--ink-2); }
.signature { margin: clamp(44px, 6vw, 72px) auto 0; width: 132px; opacity: 0.9; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-grid > h2 { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .faq-grid > h2 { position: static; } }

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 2px;
  font: inherit; font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); text-align: left;
}
.acc-q .chev { width: 15px; height: 15px; flex: none; color: var(--ink-soft); transition: transform 0.28s var(--ease); }
.acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { color: var(--ink-2); padding: 0 40px 26px 2px; margin: 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 40px;
  font-size: 15px;
}
.foot-top {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; align-items: flex-start;
  margin-bottom: 52px;
}
.foot-brand img { height: 22px; margin-bottom: 12px; }
.foot-brand p { color: var(--ink-soft); margin: 0; }
.foot-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.foot-col a { display: block; padding: 4px 0; color: var(--ink-2); transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--ink); } }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  color: var(--ink-soft);
}
.foot-social { display: flex; gap: 22px; }
.foot-social a { font-weight: 500; color: var(--ink-2); transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .foot-social a:hover { color: var(--ink); } }

/* ---------- Case study page ---------- */
.cs-hero { padding-top: calc(var(--header-h) + clamp(44px, 7vw, 88px)); padding-bottom: clamp(40px, 5vw, 64px); }
.cs-hero .sub { margin-top: 18px; }

.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 980px; margin-inline: auto;
  padding-block: clamp(28px, 4vw, 48px);
}
@media (max-width: 700px) { .cs-stats { grid-template-columns: 1fr; gap: 34px; } }
.cs-stat { text-align: center; }
.cs-stat .num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.cs-stat .lbl { color: var(--ink-soft); margin-top: 10px; font-size: 15.5px; }

.cs-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 900px) { .cs-body { grid-template-columns: 1fr; } }
.cs-content h2 { font-size: clamp(30px, 4vw, 52px); margin: 1.6em 0 0.55em; }
.cs-content h2:first-child { margin-top: 0; }
.cs-content p, .cs-content li { color: var(--ink-2); }
.cs-content ul { padding-left: 22px; margin: 0 0 1.1em; }
.cs-content li { margin-bottom: 10px; }
.cs-rail { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 26px; }
.cs-body-solo { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
@media (max-width: 900px) { .cs-rail { position: static; max-width: 480px; } }
.cs-rail img, .cs-rail .video-vertical {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* ---------- Legal page ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); }
.legal-prose { max-width: 70ch; margin-inline: auto; }
.legal-prose .date { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal-prose h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 0.9em; }
.legal-prose h2 { font-size: 21px; letter-spacing: -0.015em; margin: 2em 0 0.6em; }
.legal-prose h3 { font-size: 17.5px; margin: 1.6em 0 0.5em; }
.legal-prose p, .legal-prose li { font-size: 16px; color: var(--ink-2); }

/* ---------- Reveal on scroll (JS-gated) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js [data-stagger] > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js [data-stagger].in > * { opacity: 1; transform: none; }
html.js [data-stagger].in > *:nth-child(2) { transition-delay: 0.06s; }
html.js [data-stagger].in > *:nth-child(3) { transition-delay: 0.12s; }
html.js [data-stagger].in > *:nth-child(4) { transition-delay: 0.18s; }
html.js [data-stagger].in > *:nth-child(5) { transition-delay: 0.24s; }
html.js [data-stagger].in > *:nth-child(6) { transition-delay: 0.30s; }
html.js [data-stagger].in > *:nth-child(7) { transition-delay: 0.36s; }
html.js [data-stagger].in > *:nth-child(8) { transition-delay: 0.42s; }
html.js [data-stagger].in > *:nth-child(9) { transition-delay: 0.48s; }

/* ---------- Bottom fog veil ---------- */
.veil {
  position: fixed; left: 0; right: 0; bottom: -1px; height: 110px;
  z-index: 40; pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 82%);
  mask-image: linear-gradient(to bottom, transparent, #000 82%);
}
@media (max-width: 640px) { .veil { height: 76px; } }

/* ---------- Fog page transition ---------- */
.fog {
  position: fixed; inset: -12%;
  z-index: 100; pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(55% 46% at 28% 38%, rgba(253,253,252,0.99), rgba(253,253,252,0) 72%),
    radial-gradient(48% 56% at 74% 62%, rgba(253,253,252,0.97), rgba(253,253,252,0) 72%),
    rgba(253,253,252,0.92);
  filter: blur(22px);
  transition: opacity 0.45s var(--ease-io);
}
.fog.on { opacity: 1; pointer-events: auto; }
html.entering .fog { opacity: 1; transition: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fog { display: none; }
  .founder-photo img { transform: none !important; }
  .btn, .card, .acc-a, .mobile-menu a { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .veil { display: none; }
  .hdr.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Print ---------- */
@media print {
  .hdr, .veil, .fog, .btn, .mobile-menu { display: none !important; }
}
