/* FarmVertex Intelligence - cinematic dark design system
   Theme: single dark theme (brand choice).
   Shapes: interactive elements are full-pill; containers use --r (22px); small chips 999px.
   Z-index scale: world 0, content 2, grain 60, menu 75, nav 80, curtain 100. */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0B0D0C;
  --bg-2: #101312;
  --bg-3: #151917;
  --ivory: #EFEBE3;
  --ivory-2: #C9C5BC;
  --muted: #8F8E87;
  --line: rgba(239, 235, 227, 0.1);
  --line-2: rgba(239, 235, 227, 0.18);
  --gold: #D8BF82;
  --gold-2: #E9D6A8;
  --gold-soft: rgba(216, 191, 130, 0.12);
  --green: #1D5A43;
  --green-glow: rgba(38, 122, 88, 0.35);
  --glass: rgba(20, 24, 22, 0.55);
  --r: 22px;
  --wrap: 1320px;
  --gutter: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--bg); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 110; background: var(--gold); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- World, atmosphere ---------- */
#world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#world canvas { width: 100% !important; height: 100% !important; }
.atmos {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 0%, rgba(216, 191, 130, 0.08), transparent 70%),
    radial-gradient(70vw 60vh at 0% 100%, var(--green-glow), transparent 70%),
    radial-gradient(120vw 90vh at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 2; }

/* ---------- Curtain (load + page transitions) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; pointer-events: none;
  animation: curtain-fallback 0.8s var(--ease) 2.4s forwards;
}
.curtain svg { width: 84px; height: 81px; color: var(--gold); }
.curtain .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
html:not(.js) .curtain { display: none; }
@keyframes curtain-fallback { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.pad { padding: clamp(110px, 16vw, 220px) 0; }
.pad-sm { padding: clamp(80px, 10vw, 140px) 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 560; color: var(--ivory); letter-spacing: -0.035em; }
.display {
  font-size: clamp(2.9rem, 6.6vw, 7.4rem); line-height: 0.92; letter-spacing: -0.055em;
  font-weight: 620; text-transform: uppercase;
}
.display-2 { font-size: clamp(2.8rem, 7vw, 7rem); line-height: 0.94; letter-spacing: -0.05em; font-weight: 600; }
h2, .h2 { font-size: clamp(2.3rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -0.045em; }
h3, .h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; letter-spacing: -0.025em; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
p { color: var(--ivory-2); max-width: 60ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ivory-2); max-width: 40ch; }
.kicker {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.unmasked .line-mask { overflow: visible; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 80; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 32px), 1240px); height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(14, 17, 16, 0.62); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { width: 34px; height: 33px; color: var(--gold); flex-shrink: 0; }
.brand-name { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.56rem; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px; font-size: 0.88rem; color: var(--ivory-2);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease); white-space: nowrap;
}
.nav-links a:hover { color: var(--ivory); background: rgba(239, 235, 227, 0.06); }
.nav-links a[aria-current="page"] { color: var(--bg); background: var(--ivory); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); place-items: center; font-size: 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 0.97rem;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn .ic { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; margin-right: -12px; transition: transform 0.5s var(--ease); }
.btn:hover .ic { transform: rotate(-45deg); }
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: #14110B; }
.btn-gold .ic { background: #14110B; color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border: 1px solid var(--line-2); color: var(--ivory); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 0.88rem; }
.btn-sm .ic { width: 26px; height: 26px; margin-right: -8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); font-weight: 500; }
.link-arrow i { color: var(--gold); transition: transform 0.4s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 48px; align-items: end; }
.hero h1 { max-width: none; }
.hero .display { white-space: nowrap; }
@media (max-width: 767px) { .hero .display { white-space: normal; } }
.hero .hero-side { display: grid; gap: 28px; padding-bottom: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-sub { min-height: 88svh; }
.hero-sub h1 { max-width: 14ch; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kinetic statement ---------- */
.statement p.kinetic {
  font-size: clamp(1.9rem, 4.3vw, 4rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 520;
  color: var(--ivory); max-width: 22ch;
}
.statement p.kinetic.wide { max-width: 26ch; }
.kinetic .word { opacity: 1; }
.gsap-ready .kinetic .word { opacity: 0.14; }
.kinetic .word.hl { color: var(--gold); }

/* ---------- Glass panels ---------- */
.glass {
  position: relative; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(239, 235, 227, 0.06), rgba(239, 235, 227, 0.015) 55%), var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
/* Spotlight border that follows the pointer (--mx/--my set by JS) */
.spot::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(216, 191, 130, 0.75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.spot:hover::before { opacity: 1; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(216, 191, 130, 0.07), transparent 50%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.spot:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(30px); }

/* ---------- Paths (Products / Services) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 72px; perspective: 1600px; }
.path { padding: clamp(32px, 4vw, 56px); min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.path .orb {
  position: absolute; width: 360px; height: 360px; right: -90px; top: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(232, 198, 134, 0.55), rgba(216, 191, 130, 0.12) 45%, transparent 70%);
  filter: blur(8px); transform: translateZ(0);
}
.path.alt .orb { background: radial-gradient(circle at 35% 35%, rgba(60, 170, 120, 0.5), rgba(29, 90, 67, 0.2) 45%, transparent 70%); }
.path h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.045em; margin: 18px 0 16px; }
.path .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 36px; }
.chip { font-size: 0.84rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ivory-2); white-space: nowrap; }

/* ---------- Scrollytelling chapters ---------- */
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.chapters-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.chapters-sticky h2 { max-width: 9ch; }
.chapter-index { margin-top: 36px; display: flex; gap: 10px; }
.chapter-index span { width: 40px; height: 3px; border-radius: 999px; background: var(--line-2); overflow: hidden; position: relative; }
.chapter-index span i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.chapter { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; }
.chapter .glass { padding: clamp(30px, 3.6vw, 48px); }
.chapter .ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(216, 191, 130, 0.25); margin-bottom: 26px; }
.chapter h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; margin-bottom: 14px; }
.chapter .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* ---------- 3D carousel (cylinder) ---------- */
.carousel-sec { overflow: hidden; }
.carousel-head { padding-top: clamp(110px, 12vw, 160px); }
.carousel-stage { position: relative; margin-top: 56px; }
.ring { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ring-card { padding: 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.ring-card i { font-size: 2rem; color: var(--gold); }
.ring-card h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.ring-card p { font-size: 0.93rem; }
/* 3D mode, enabled by JS on wide screens */
.carousel-sec.is-3d .carousel-pin { height: 100svh; display: flex; flex-direction: column; }
.carousel-sec.is-3d .carousel-stage { flex: 1; margin-top: 0; perspective: 2000px; perspective-origin: 50% 40%; display: grid; place-items: center; }
.carousel-sec.is-3d .ring { display: block; position: relative; margin: 0 auto; width: 300px; height: 340px; transform-style: preserve-3d; }
.carousel-sec.is-3d .ring-card {
  position: absolute; inset: 0; min-height: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(239, 235, 227, 0.09), rgba(239, 235, 227, 0.02) 60%), rgba(16, 20, 18, 0.92);
}

/* ---------- Sticky stack ---------- */
.stack { margin-top: 64px; }
.stack-card {
  position: sticky; top: 104px; min-height: 64svh; margin-bottom: 6vh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: clamp(32px, 5vw, 72px); transform-origin: 50% 0%;
  background: linear-gradient(160deg, rgba(239, 235, 227, 0.07), rgba(239, 235, 227, 0.02) 60%), #121614;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -0.045em; margin: 16px 0 16px; }
.stack-card ul { list-style: none; display: grid; gap: 0; }
.stack-card li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ivory); font-size: 1.02rem; }
.stack-card li:first-child { border-top: 1px solid var(--line); }
.stack-card li i { color: var(--gold); font-size: 1.2rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; perspective: 1600px; }
.bento > * { padding: 34px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.bento .ico-lg { position: absolute; top: 30px; left: 34px; font-size: 2.1rem; color: var(--gold); }
.bento h3 { margin-bottom: 10px; }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-6 { grid-column: span 6; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.tall { min-height: 400px; }
.bg-grid {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; background-position: -1px -1px;
}
.bg-gold { background: radial-gradient(120% 120% at 100% 0%, rgba(216, 191, 130, 0.28), transparent 55%), var(--bg-3); }
.bg-green { background: radial-gradient(120% 120% at 0% 0%, rgba(38, 122, 88, 0.42), transparent 60%), var(--bg-3); }
.big-word { position: absolute; top: 18px; right: 26px; font-size: clamp(4rem, 9vw, 8rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(216, 191, 130, 0.4); }

/* ---------- Steps (compact row) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; counter-reset: s; }
.step-mini { padding: 28px; border-top: 1px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), transparent 60%); border-radius: 0 0 var(--r) var(--r); }
.step-mini h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step-mini p { font-size: 0.95rem; }

/* ---------- Horizontal pan ---------- */
.hpan { overflow: hidden; }
.hpan-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 60px; }
.hpan-track { display: flex; gap: 18px; margin-top: 56px; padding: 0 var(--gutter); width: max-content; }
.hpan-card { width: min(460px, 80vw); min-height: 380px; padding: 38px; display: flex; flex-direction: column; justify-content: space-between; }
.hpan-card .n { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; }
.hpan-card h3 { font-size: 1.9rem; letter-spacing: -0.04em; margin: 16px 0 12px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 90px; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-fill { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), var(--gold-2)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 18px rgba(216, 191, 130, 0.6); }
.tl-step { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 50px 0; position: relative; }
.tl-step::after { content: ''; position: absolute; left: 50%; top: 62px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--bg); }
.tl-step .tl-title { text-align: right; }
.tl-step .tl-title h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; }
.tl-step .tl-title span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.tl-step:nth-child(odd) .tl-title { order: 2; text-align: left; }
.tl-step:nth-child(odd) .tl-body { order: 1; text-align: right; }
.tl-step:nth-child(odd) .tl-body p { margin-left: auto; }
.tl-body p { font-size: 1.08rem; max-width: 42ch; padding-top: 14px; }

/* ---------- Models ---------- */
.models { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-top: 72px; perspective: 1600px; }
.model { padding: 38px; display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.model .tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.model h3 { font-size: 2rem; letter-spacing: -0.04em; }
.model ul { list-style: none; margin-top: auto; display: grid; gap: 12px; }
.model li { display: flex; gap: 12px; align-items: baseline; color: var(--ivory); font-size: 0.97rem; }
.model li i { color: var(--gold); transform: translateY(2px); }

/* ---------- Audience grid ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; perspective: 1600px; }
.aud { padding: 32px; min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; }
.aud i { font-size: 2rem; color: var(--gold); }
.aud h3 { font-size: 1.45rem; margin-bottom: 8px; }
.aud-grid .aud:nth-child(3n+2) { margin-top: 56px; margin-bottom: -56px; }

/* ---------- Principles (big rows) ---------- */
.rows { margin-top: 72px; border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: baseline; padding: 44px 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease); }
.row-item h3 { font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -0.05em; transition: color 0.4s var(--ease), transform 0.5s var(--ease); }
.row-item:hover h3 { color: var(--gold); transform: translateX(12px); }
.row-item p { font-size: 1.08rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; margin-top: 72px; }
.founder-card { aspect-ratio: 4 / 5; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.founder-card .mono-big { position: absolute; top: 30px; left: 36px; font-size: clamp(5rem, 10vw, 8.5rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(216, 191, 130, 0.6); }
.founder-card h3 { font-size: 2rem; letter-spacing: -0.04em; }
.founder-card p { color: var(--gold); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }
.founder blockquote { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 500; color: var(--ivory); max-width: 22ch; }
.founder .note { margin-top: 28px; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.fact { padding: 28px; }
.fact dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fact dd { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ivory); overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: var(--gold); transition: transform 0.5s var(--ease), background-color 0.4s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--gold-soft); }
.faq details p { padding: 0 0 28px; }

/* ---------- Zoom CTA ---------- */
.zoom-sec { padding: clamp(60px, 8vw, 120px) 16px; }
.zoom {
  position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 48px);
  min-height: 86svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 80px 24px; transform-origin: 50% 50%;
  background:
    radial-gradient(60% 70% at 50% 110%, rgba(216, 191, 130, 0.45), transparent 70%),
    radial-gradient(50% 60% at 0% 0%, rgba(38, 122, 88, 0.45), transparent 70%),
    #0F1311;
  border: 1px solid var(--line);
}
.zoom h2 { font-size: clamp(2.8rem, 8vw, 8rem); line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; max-width: 12ch; }
.zoom p { margin: 26px auto 38px; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 44px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.contact-card:hover { transform: translateX(6px); border-color: rgba(216, 191, 130, 0.4); }
.contact-card .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }
.contact-card small { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-card span { font-size: 1.08rem; color: var(--ivory); font-weight: 500; }
form.glass { padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ivory); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ivory); width: 100%; min-width: 0;
  background: rgba(8, 10, 9, 0.7); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input, .field select { height: 54px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 24px, calc(100% - 17px) 24px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-2); color: var(--ivory); }
.field textarea { min-height: 150px; resize: vertical; }
.field ::placeholder { color: #7D7C76; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field .help { font-size: 0.8rem; color: var(--muted); }
.field .err { font-size: 0.84rem; color: #F2937E; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #F2937E; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: #9FD9B8; }
.form-status.bad { color: #F2937E; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 56px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin-top: 12px; color: var(--ivory-2); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { padding: 90px 0 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4)); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--ivory-2); transition: color 0.3s var(--ease); }
.foot-grid a:hover { color: var(--gold); }
.foot-tag { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; margin-top: 22px; max-width: 14ch; line-height: 1.1; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.wordmark { font-size: clamp(4rem, 17.5vw, 17rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.78; text-align: center; white-space: nowrap; margin: 30px 0 -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(216, 191, 130, 0.35); user-select: none; }
.wordmark span { display: inline-block; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 75; background: rgba(11, 13, 12, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 24px 40px;
  clip-path: circle(0% at calc(100% - 44px) 46px); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0.8s;
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 46px); visibility: visible; }
.menu ul { list-style: none; display: grid; gap: 4px; }
.menu ul a { font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 560; letter-spacing: -0.045em; line-height: 1.2; }
.menu .btn { margin-top: 36px; align-self: flex-start; }

/* ---------- Reveal defaults (only hidden once GSAP is confirmed) ---------- */
.gsap-ready [data-reveal] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 9px 10px; font-size: 0.84rem; }
}
@media (max-width: 1023px) {
  .nav-links, .nav-end .btn { display: none; }
  .menu-btn { display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr 1fr; }
  .models .model:first-child { grid-column: span 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .hero { padding: 120px 0 40px; }
  .hero-grid, .paths, .chapters, .stack-card, .founder, .contact-grid, .faq-wrap, .row-2, .models, .aud-grid, .row-item, .foot-grid, .facts, .steps-row { grid-template-columns: minmax(0, 1fr); }
  .models .model:first-child { grid-column: auto; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .path { min-height: 0; }
  .chapters-sticky { position: relative; height: auto; padding-top: 20px; }
  .chapter-index { display: none; }
  .chapter { min-height: 0; padding: 12px 0; }
  .stack-card { position: relative; top: 0; min-height: 0; margin-bottom: 14px; gap: 24px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; min-height: 230px; }
  .aud-grid .aud:nth-child(3n+2) { margin: 0; }
  .timeline::before, .tl-fill { left: 6px; }
  .tl-step { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 0 26px 36px; }
  .tl-step::after { left: 6px; top: 36px; }
  .tl-step .tl-title, .tl-step:nth-child(odd) .tl-title, .tl-step:nth-child(odd) .tl-body { order: 0; text-align: left; }
  .tl-step:nth-child(odd) .tl-body p { margin-left: 0; }
  .tl-body p { padding-top: 0; }
  .hpan-track { flex-direction: column; width: auto; padding: 0 var(--gutter); }
  .hpan-card { width: 100%; min-height: 0; }
  .zoom { min-height: 70svh; }
  .founder { gap: 36px; }
  .founder-card { aspect-ratio: auto; min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .curtain { display: none; }
  .gsap-ready [data-reveal], .gsap-ready .kinetic .word { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav { background: var(--bg-3); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Footer legal row ---------- */
.foot-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot-legal-links a { color: var(--muted); transition: color 0.3s var(--ease); }
.foot-legal-links a:hover { color: var(--gold); }
.linklike { color: var(--muted); font-size: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
.linklike:hover { color: var(--gold); }
.foot-addr { color: var(--ivory-2); }

/* ---------- Form: actions, loading, errors ---------- */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { font-size: 0.84rem; color: var(--muted); }
.form-note a { color: var(--ivory-2); text-decoration: underline; text-underline-offset: 3px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn[aria-busy="true"] .ic i { display: none; }
.btn[aria-busy="true"] .ic::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.field.invalid input, .field.invalid textarea { box-shadow: 0 0 0 4px rgba(242, 147, 126, 0.12); }
.field .err::before { content: '\26A0'; margin-right: 6px; }
.form-status.bad { padding: 12px 14px; border-radius: 12px; background: rgba(242, 147, 126, 0.08); border: 1px solid rgba(242, 147, 126, 0.3); }
.form-status.ok { padding: 12px 14px; border-radius: 12px; background: rgba(159, 217, 184, 0.08); border: 1px solid rgba(159, 217, 184, 0.3); }
.form-status:empty { padding: 0; border: 0; background: none; }

/* ---------- Sticky mobile CTA ---------- */
.mcta { display: none; }
@media (max-width: 767px) {
  .mcta {
    position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 10px; padding: 8px; border-radius: 999px;
    background: rgba(14, 17, 16, 0.78); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(calc(100% + 30px)); transition: transform 0.6s var(--ease);
  }
  .mcta.show { transform: none; }
  html:not(.js) .mcta { transform: none; }
  .mcta-main { flex: 1; justify-content: center; height: 50px; }
  .mcta-call { width: 50px; height: 50px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold); font-size: 1.3rem; }
  .site-footer { padding-bottom: 84px; }
  .consent { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 85; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  padding: 22px; border-radius: var(--r); display: grid; gap: 14px;
  background: rgba(16, 20, 18, 0.94); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.consent p { font-size: 0.92rem; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { height: 44px; }
@media (prefers-reduced-transparency: reduce) { .consent, .mcta { background: var(--bg-3); -webkit-backdrop-filter: none; backdrop-filter: none; } }
