/* =========================================================
   WORTH — design system
   Warm black · ivory · gold. Geist / Geist Mono / Instrument Serif
   ========================================================= */

:root {
  --bg: #0A0907;
  --bg-2: #110F0B;
  --bg-3: #17140F;
  --ink: #EFE8DA;
  --ink-2: rgba(239, 232, 218, 0.64);
  --ink-3: rgba(239, 232, 218, 0.40);
  --ink-4: rgba(239, 232, 218, 0.18);
  --line: rgba(239, 232, 218, 0.10);
  --line-2: rgba(239, 232, 218, 0.16);

  --gold: #C8A45D;
  --gold-hi: #E9D29A;
  --gold-lo: #8C6B2E;
  --gold-grad: linear-gradient(100deg, #8C6B2E 0%, #E9D29A 28%, #C8A45D 48%, #F4E3B5 64%, #A9843F 82%, #8C6B2E 100%);

  --paper: #EFE8DA;
  --paper-2: #E6DDCB;
  --paper-ink: #13110D;
  --paper-ink-2: rgba(19, 17, 13, 0.62);
  --paper-line: rgba(19, 17, 13, 0.14);

  --ok: #9DB89A;
  --warn: #D98B5F;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p, h1, h2, h3, ul, ol { margin: 0; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.wrap { padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; line-height: 1.5; }
.gold-text { color: var(--gold); }
.gold-sheen {
  background: var(--gold-grad);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
  padding-right: 0.06em; /* italic overhang */
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 14px; background: var(--gold); color: var(--bg); border-radius: 8px;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Layers ---------- */
#gl {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; display: block;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(10, 9, 7, 0.7) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main, .footer { position: relative; z-index: 2; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js:not(.seen) .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 150; background: var(--bg);
  clip-path: inset(0 0 0 0);
}
.pl-inner { width: min(320px, 72vw); display: grid; gap: 14px; justify-items: start; }
.pl-mark circle { fill: var(--ink-3); }
.pl-mark circle.gold { fill: var(--gold); }
.pl-word { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: 0.04em; }
.pl-meta { width: 100%; display: flex; justify-content: space-between; color: var(--ink-3); }
.pl-count { color: var(--gold); font-variant-numeric: tabular-nums; }
.pl-bar { width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.pl-bar span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; }
  .cursor-dot {
    position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-hi);
  }
  .cursor-ring {
    position: fixed; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(233, 210, 154, 0.35);
    display: grid; place-items: center;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), left .45s var(--ease-out), top .45s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
  }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; left: -32px; top: -32px; border-color: rgba(233, 210, 154, 0.7); }
  .cursor.has-label .cursor-ring { width: 76px; height: 76px; left: -38px; top: -38px; background: var(--gold); border-color: var(--gold); }
  .cursor.has-label .cursor-dot { opacity: 0; }
  .cursor-label { font: 500 11px/1 var(--mono); color: var(--bg); letter-spacing: 0.04em; opacity: 0; transition: opacity .2s; }
  .cursor.has-label .cursor-label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: color .35s, background-color .35s, border-color .35s;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 16px; }
.btn-label { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.bl-in { display: inline-block; text-shadow: 0 1.3em currentColor; transition: transform .6s var(--ease-out); }
.btn:hover .bl-in { transform: translateY(-1.3em); }
.btn-arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-gold { color: #1A1409; background: var(--gold-grad); background-size: 220% 100%; background-position: 0% 50%; transition: background-position 1s var(--ease-out); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -12px rgba(200,164,93,.55); }
.btn-gold:hover { background-position: 100% 50%; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(10, 9, 7, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(233, 210, 154, 0.5); }
.btn-dark { color: var(--paper); background: var(--paper-ink); }
.btn-dark:hover { background: #2a251c; }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.18); margin-right: 8px; vertical-align: 1px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 9, 7, 0.62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-mark circle { fill: var(--ink-3); transition: fill .4s; }
.brand-mark circle.gold { fill: var(--gold); }
.brand:hover .brand-mark circle { fill: var(--ink); }
.brand:hover .brand-mark circle.gold { fill: var(--gold-hi); }
.brand-word { font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: 0.06em; transform: translateY(1px); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .5s var(--ease-out); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; align-items: flex-end; padding: 0 var(--gutter) 48px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-links { display: grid; gap: 4px; width: 100%; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.04em; line-height: 1.05; border-bottom: 1px solid var(--line); padding: 8px 0; }
.menu-links .mono { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; padding-top: 96px; padding-bottom: 40px;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(10, 9, 7, 0.86) 0%, rgba(10, 9, 7, 0.55) 20%, rgba(10, 9, 7, 0) 42%); }
.hero-top { display: flex; justify-content: space-between; gap: 24px; color: var(--ink-2); padding-top: 12px; }
.hero-sectors { display: flex; gap: 20px; }
.hero-sectors span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border: 1px solid var(--gold); transform: rotate(45deg) translateY(-2px); }

.hero-title {
  align-self: center;
  font-size: clamp(58px, 11.6vw, 208px);
  font-weight: 450; line-height: 0.9; letter-spacing: -0.058em;
  margin: 4vh 0 3vh;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line-in { display: inline-block; will-change: transform; }
.hero-title .line-2 { padding-left: 0.9em; }
.hero-title .line-3 { padding-left: 2.6em; margin-top: -0.02em; }
.hero-title em { font-size: 1.2em; letter-spacing: -0.02em; line-height: 0.8; }
.js .hero-title .line-in { transform: translateY(110%); animation: failsafe 0s 5s forwards; }
@keyframes failsafe { to { transform: none; } }
.no-anim .hero-title .line-in { transform: none !important; }

.hero-bottom { display: grid; grid-template-columns: minmax(0, 5fr) auto minmax(0, 3fr); gap: 32px; align-items: end; }
.hero-sub { max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); line-height: 1.55; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-fig { justify-self: end; display: grid; gap: 4px; color: var(--ink-3); text-align: right; }
.hero-fig span:first-child { color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-3); }
.scroll-line { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-line span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--gold); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Marquee ---------- */
.marquee-band { padding: 72px 0 40px; }
.marquee-label { color: var(--ink-3); margin-bottom: 22px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.03em; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--gold-hi); }
.marquee-track i { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Journey (pinned industries) ---------- */
.journey { position: relative; }
.journey-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.journey-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,9,7,.88) 0%, rgba(10,9,7,.6) 34%, rgba(10,9,7,0) 62%); }

.rail { position: absolute; bottom: 46px; left: var(--gutter); display: flex; gap: 22px; z-index: 3; }
.rail li { display: flex; gap: 8px; color: var(--ink-4); transition: color .5s; }
.rail li.is-active { color: var(--ink); }
.rail li.is-active .rail-n { color: var(--gold); }
.rail li.is-done { color: var(--ink-3); }

.chapter {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(50vw, 700px); z-index: 2;
}
.js .chapter:not(.chapter-0) { visibility: hidden; }
.chapter-idx { color: var(--ink-2); margin-bottom: 24px; }
.problem-text { font-size: clamp(30px, 3.5vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400; }
.problem-text .hl { color: var(--gold-hi); }
.problem-after { margin-top: 28px; font-size: clamp(18px, 1.5vw, 23px); color: var(--ink-2); }
.problem-after em { color: var(--gold-hi); font-size: 1.15em; }

.chapter-title { font-size: clamp(50px, 6vw, 112px); font-weight: 450; line-height: 0.9; letter-spacing: -0.06em; }
.ct-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ct-line > span { display: inline-block; }
.chapter-sub { margin-top: 14px; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.chapter-sub em { color: var(--gold-hi); }
.chapter-body { margin-top: 18px; max-width: 46ch; color: var(--ink-2); font-size: clamp(15px, 1.1vw, 17px); }
.spec { margin-top: 26px; max-width: 480px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.spec li span:last-child { color: var(--ink-4); }
.chapter-metric { margin-top: 26px; display: flex; align-items: baseline; gap: 16px; }
.cm-num { font-family: var(--serif); font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -0.02em; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.cm-label { max-width: 26ch; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.chapter-fig { display: none; }

.journey-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--line); }
.journey-progress span { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }

/* Static (no-JS / reduced motion) journey */
.journey.is-static .journey-stage { height: auto; overflow: visible; }
.journey.is-static .chapter { position: relative; top: auto; transform: none; visibility: visible !important; opacity: 1 !important; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; left: 0; margin-left: var(--gutter); }
.journey.is-static .rail, .journey.is-static .journey-progress { display: none; }
.journey.is-static .journey-scrim { position: fixed; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 0; padding-top: 0; }
.num { padding: 40px 24px 56px 0; border-right: 1px solid var(--line); }
.num + .num { padding-left: 24px; }
.num:last-child { border-right: 0; }
.num-val { font-size: clamp(52px, 6vw, 104px); font-weight: 350; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.num-val small { font-family: var(--serif); font-style: italic; font-size: 0.42em; color: var(--gold); letter-spacing: 0; }
.num p { margin-top: 14px; color: var(--ink-2); font-size: 14px; max-width: 24ch; }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 22px; margin-bottom: 72px; }
.section-idx { color: var(--gold); display: flex; align-items: center; gap: 10px; }
.section-idx::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
.h-xl { font-size: clamp(46px, 7vw, 124px); font-weight: 450; line-height: 0.95; letter-spacing: -0.055em; max-width: 14ch; }
.h-lg { font-size: clamp(38px, 4.8vw, 80px); font-weight: 450; line-height: 0.98; letter-spacing: -0.05em; max-width: 16ch; }
.h-xl em, .h-lg em { letter-spacing: -0.02em; }
.section-note { max-width: 44ch; color: var(--ink-2); font-size: 17px; }

/* ---------- Calculator ---------- */
.calc { padding-top: 170px; padding-bottom: 20px; position: relative; z-index: 2; }
.calc-head { display: grid; gap: 22px; margin-bottom: 56px; }
.calc-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.85), rgba(14, 12, 9, 0.85));
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
}
.calc-inputs { display: grid; align-content: start; gap: 34px; padding: clamp(24px, 3.4vw, 52px); }
.range { display: grid; gap: 16px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.range-top > .mono { color: var(--ink-2); }
.range-out { font-family: var(--serif); font-size: clamp(34px, 3vw, 48px); line-height: 1; color: var(--gold-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.range input { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--line-2) var(--fill)); }
.range input::-moz-range-track { height: 2px; border-radius: 2px; background: var(--line-2); }
.range input::-moz-range-progress { height: 2px; background: var(--gold); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--gold-hi); border: 0; box-shadow: 0 0 0 6px rgba(200, 164, 93, 0.16), 0 4px 14px rgba(0, 0, 0, 0.5); transition: box-shadow .3s; }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-hi); border: 0; box-shadow: 0 0 0 6px rgba(200, 164, 93, 0.16); }
.range input:hover::-webkit-slider-thumb, .range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(200, 164, 93, 0.24), 0 4px 14px rgba(0, 0, 0, 0.5); }
.range input:focus-visible { outline: none; }
.calc-year { display: grid; grid-template-columns: repeat(50, 1fr); gap: 3px; margin-top: 6px; }
.calc-year i { height: 30px; border-radius: 2px; background: rgba(239, 232, 218, 0.07); transition: background-color .5s var(--ease-out), box-shadow .5s; }
.calc-year i.on { background: var(--gold); box-shadow: 0 0 10px rgba(200, 164, 93, 0.45); }
.calc-year-label { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-3); margin-top: -22px; }
.calc-year-label .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); margin-right: 6px; }
.calc-result {
  display: grid; align-content: start; gap: 22px; padding: clamp(24px, 3.4vw, 52px);
  border-left: 1px solid var(--line);
  background: radial-gradient(120% 80% at 100% 0%, rgba(200, 164, 93, 0.12), transparent 60%), rgba(5, 5, 4, 0.35);
}
.calc-result > .mono { color: var(--gold); }
.calc-big { font-family: var(--serif); font-size: clamp(56px, 6vw, 104px); line-height: 0.95; letter-spacing: -0.02em; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.calc-stats li { display: grid; gap: 4px; padding: 14px 0; color: var(--ink-3); }
.calc-stats li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.calc-stats b { font: 400 26px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-result .btn { justify-self: start; }
.calc-note { color: var(--ink-3); font-size: 13px; max-width: 40ch; }

/* ---------- Work ---------- */
.work { padding: 160px 0 80px; }
.work .section-head { grid-template-columns: 1fr auto; align-items: end; }
.work .section-head .section-idx { grid-column: 1 / -1; }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding-block: 72px; border-top: 1px solid var(--line); }
.case-flip .case-meta { order: 2; }
.case-idx { color: var(--ink-2); }
.case-title { margin-top: 18px; font-size: clamp(48px, 5.6vw, 96px); font-weight: 450; letter-spacing: -0.055em; line-height: 0.95; }
.case-title em { color: var(--gold-hi); }
.case-desc { margin-top: 20px; color: var(--ink-2); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.case-metrics { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.cmv { display: block; font-family: var(--serif); font-size: clamp(38px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.02em; color: var(--gold-hi); }
.cml { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.window {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.92), rgba(15, 13, 10, 0.92));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(200, 164, 93, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d; will-change: transform;
}
.window::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at var(--mx, 50%) var(--my, 0%), rgba(233, 210, 154, 0.08), transparent 60%); z-index: 3; }
.window-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.live { color: var(--ink-2); }
.window-foot { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-3); }
.window-foot b { color: var(--ink); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* schedule */
.sched { position: relative; padding: 14px 16px 18px; }
.sched-head { display: grid; grid-template-columns: 74px repeat(5, 1fr); color: var(--ink-4); padding-bottom: 8px; }
.sched-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; height: 46px; border-top: 1px dashed var(--line); }
.sched-row > .mono { color: var(--ink-3); }
.sched-track { position: relative; height: 30px; }
.sched-track i {
  position: absolute; left: var(--s); width: var(--w); top: 0; bottom: 0;
  font: 500 10.5px/30px var(--mono); font-style: normal; padding: 0 10px; color: var(--ink-2);
  border-radius: 6px; background: rgba(239, 232, 218, 0.06); border: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left;
}
.sched-track i.g { background: linear-gradient(90deg, rgba(200, 164, 93, 0.26), rgba(200, 164, 93, 0.1)); border-color: rgba(200, 164, 93, 0.4); color: var(--gold-hi); }
.sched-track i.warn { background: rgba(217, 139, 95, 0.12); border-color: rgba(217, 139, 95, 0.35); color: #E9B393; }
.sched-now { position: absolute; top: 34px; bottom: 12px; left: calc(16px + 74px + (100% - 32px - 74px) * 0.46); width: 1px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.sched-now span { position: absolute; top: -18px; left: -14px; color: var(--gold); font-size: 10px; }

/* board */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpis div { padding: 14px 16px; display: grid; gap: 4px; color: var(--ink-3); }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis b { font: 400 26px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.board { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.board th { text-align: left; font-weight: 400; color: var(--ink-4); padding: 10px 16px; }
.board td { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.board td:first-child { color: var(--ink); }
.board tr { transition: background-color .6s; }
.board tr.flash { background: rgba(200, 164, 93, 0.08); }
.chip { display: inline-block; padding: 3px 8px; border-radius: 999px; font: 500 10.5px/1.3 var(--mono); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.g { color: var(--gold-hi); border-color: rgba(200, 164, 93, 0.45); background: rgba(200, 164, 93, 0.1); }
.chip.o { color: #E9B393; border-color: rgba(217, 139, 95, 0.4); }
.chip.d { color: var(--ok); border-color: rgba(157, 184, 154, 0.35); }

/* week view (before / after) */
.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button { padding: 2px 10px; border-radius: 999px; font: 500 10.5px/1.5 var(--mono); color: var(--ink-3); transition: color .4s, background-color .4s; }
.seg button.on { background: rgba(200, 164, 93, 0.16); color: var(--gold-hi); }
.week .sched-track i { transition: transform .9s var(--ease-out), opacity .6s, color .3s; }
.week .xl { background: repeating-linear-gradient(135deg, rgba(239, 232, 218, 0.07) 0 6px, rgba(239, 232, 218, 0.03) 6px 12px); }
.week .rv, .week .free { opacity: 0; transform: scaleX(0); }
.week .free { background: rgba(157, 184, 154, 0.07); border: 1px dashed rgba(157, 184, 154, 0.35); color: var(--ok); }
.week.is-after .xl { transform: scaleX(0.17); opacity: 0; color: transparent; }
.week.is-after .rv { opacity: 1; transform: none; transition-delay: .25s; }
.week.is-after .free { opacity: 1; transform: none; transition-delay: .45s; }
.week:not(.is-after) .xl { transition-delay: .3s; }

/* validation run */
.vrun { padding: 8px 16px 12px; }
.vrow { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 72px; gap: 12px; align-items: center; height: 40px; border-top: 1px dashed var(--line); color: var(--ink-4); transition: color .4s; }
.vrow:first-child { border-top: 0; }
.vt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm { font-variant-numeric: tabular-nums; }
.vi { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s; }
.vbar { position: relative; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.vbar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
.vrow.is-run { color: var(--ink); }
.vrow.is-run .vi { border-color: var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.vrow.is-done { color: var(--ink-2); }
.vrow.is-done .vt { color: var(--ink); }
.vrow.is-done .vi { background: rgba(157, 184, 154, 0.16); border-color: rgba(157, 184, 154, 0.6); }
.vrow.is-done .vi::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 7px; border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.vrow.is-done .vbar i { background: rgba(157, 184, 154, 0.7); }
.vrun.is-complete + .window-foot b[data-tick="elapsed"] { color: var(--gold-hi); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Capabilities bento ---------- */
.capabilities { padding: 140px var(--gutter) 160px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 26px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.7), rgba(14, 12, 9, 0.7));
  border: 1px solid var(--line);
  transition: border-color .5s;
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, -20%), rgba(233, 210, 154, 0.09), transparent 70%); opacity: 0; transition: opacity .5s; }
.tile:hover { border-color: rgba(200, 164, 93, 0.3); }
.tile:hover::after { opacity: 1; }
.tile header { display: grid; gap: 10px; max-width: 46ch; }
.tile-n { color: var(--gold); }
.tile h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile-agent { grid-column: span 4; grid-row: span 2; }
.tile-tools { grid-column: span 2; }
.tile-pipes { grid-column: span 2; }
.tile-dash { grid-column: span 3; }
.tile-sec { grid-column: span 3; }

.term { border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 5, 4, 0.6); overflow: hidden; }
.term-bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.term-body { height: 260px; padding: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 12px; }
.term-line { display: grid; grid-template-columns: 66px 18px 1fr; gap: 8px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.term-line .t { color: var(--ink-4); }
.term-line .k { color: var(--gold); }
.term-line .k.ok { color: var(--ok); }
.term-line .k.warn { color: #E9B393; }
.term-line b { color: var(--ink); font-weight: 500; }
.term-caret { display: inline-block; width: 7px; height: 13px; background: var(--gold); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mini-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mt-row { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; }
.mt-row:first-child { border-top: 0; }
.mt-head { color: var(--ink-4); }

.pipes { width: 100%; height: auto; }
.pipe-lines path { fill: none; stroke: rgba(239, 232, 218, 0.16); stroke-width: 1; }
.pipe-dots circle { fill: var(--gold-hi); filter: drop-shadow(0 0 4px rgba(233, 210, 154, 0.9)); }
.pipe-labels text { fill: var(--ink-3); font-size: 10px; font-family: var(--mono); }

.dash { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; }
.dash-kpi { display: grid; gap: 6px; color: var(--ink-3); }
.dash-kpi b { font: 350 52px/1 var(--sans); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-delta { color: var(--gold); }
.spark { width: 100%; height: 90px; overflow: visible; }
.spark-line { fill: none; stroke: var(--gold-hi); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark-area { fill: url(#sparkFill); }

.sec-list { display: grid; border-top: 1px solid var(--line); }
.sec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.sec-list b { color: var(--ink); font-weight: 500; }

/* ---------- Process ---------- */
.process { position: relative; }
.process-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding: 110px 0 56px; overflow: hidden; }
.process-head { display: grid; gap: 22px; }
.process-track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.phase {
  position: relative; width: clamp(300px, 31vw, 470px); padding: 30px 30px 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 20, 15, 0.75), rgba(14, 12, 9, 0.75));
  display: grid; align-content: start; gap: 14px;
}
.phase-n { font-family: var(--serif); font-style: italic; font-size: 120px; line-height: 0.8; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(200, 164, 93, 0.55); margin-bottom: 18px; }
.phase-when { color: var(--gold); }
.phase h3 { font-size: 34px; font-weight: 450; letter-spacing: -0.04em; line-height: 1; }
.phase p { color: var(--ink-2); }
.phase ul { margin-top: 8px; border-top: 1px solid var(--line); }
.phase li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.phase li::before { content: "→"; color: var(--gold); margin-right: 10px; }
.process-bar { position: relative; }
.process-bar::before { content: ""; display: block; height: 1px; background: var(--line); }
.pb-fill { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.pb-ticks { display: flex; justify-content: space-between; margin-top: 12px; color: var(--ink-3); }
.pb-ticks i { font-style: normal; }

.process.is-static .process-track { flex-wrap: wrap; width: auto; }
.process.is-static .process-bar { display: none; }

/* ---------- Engagements (ivory) ---------- */
.engage { background: var(--paper); color: var(--paper-ink); padding: 160px 0 140px; position: relative; z-index: 3; border-radius: 28px 28px 0 0; }
.engage .section-idx { color: var(--gold-lo); }
.engage .section-idx::before { background: var(--gold-lo); }
.engage .section-note { color: var(--paper-ink-2); }
.engage .h-xl em { color: var(--gold-lo); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--paper-line); background: rgba(255, 255, 255, 0.3); }
.tier-n { color: var(--paper-ink-2); }
.tier h3 { font-size: 34px; font-weight: 450; letter-spacing: -0.04em; line-height: 1; }
.tier-big { font-family: var(--serif); font-size: clamp(48px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.02em; padding-top: 18px; border-top: 1px solid var(--paper-line); }
.tier-desc { color: var(--paper-ink-2); }
.tier ul { display: grid; gap: 0; flex: 1; }
.tier li { padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.tier li::before { content: "—"; color: var(--gold-lo); margin-right: 10px; }
.tier .btn { align-self: flex-start; margin-top: 8px; }
.tier-feature { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); box-shadow: 0 40px 80px -40px rgba(19, 17, 13, 0.6); }
.tier-feature .tier-n, .tier-feature .tier-desc { color: rgba(239, 232, 218, 0.62); }
.tier-feature .tier-big { border-color: rgba(239, 232, 218, 0.14); background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-feature .tier-big + .tier-desc { margin-top: -10px; }
.tier-feature li { border-color: rgba(239, 232, 218, 0.12); }
.tier-feature li::before { color: var(--gold); }
.guarantees { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--paper-line); padding-top: 32px; }
.guarantees div { display: grid; gap: 10px; }
.guarantees .mono { color: var(--gold-lo); }
.guarantees p { color: var(--paper-ink-2); max-width: 38ch; }
.guarantees b { color: var(--paper-ink); font-weight: 500; }

/* ---------- Founder ---------- */
.founder { padding-block: 180px 120px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; background: var(--bg); position: relative; z-index: 3; }
.founder-text { font-size: clamp(30px, 3.6vw, 58px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400; max-width: 22ch; }
.founder-text em { color: var(--gold-hi); }
.founder-2 { margin-top: 32px; color: var(--ink-2); }
.founder-photos { grid-column: 1 / -1; width: 100%; max-width: 1080px; justify-self: center; display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: clamp(10px, 1.4vw, 20px); margin-bottom: clamp(40px, 6vw, 80px); }
.founder > .section-idx { align-self: start; padding-top: 0.6em; }
.founder-photos figure { margin: 0; display: grid; gap: 12px; }
.founder-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); }
.founder-photos .fp-lead img { border-color: var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.founder-photos figcaption { color: var(--ink-3); font-size: 11px; text-align: center; }
.signature { margin-top: 44px; display: grid; gap: 10px; }
.sig { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.01em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.1em; }
.signature .mono { color: var(--ink-3); }
.moonshot { margin-top: clamp(56px, 7vw, 88px); max-width: 62ch; display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.moonshot p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.moonshot strong { color: var(--ink); font-weight: 500; }
.moonshot .moonshot-label { font-size: 12px; color: var(--ink-3); }
.moonshot .moonshot-aside { color: var(--ink-3); font-size: 15px; }
.moonshot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.moonshot-links a { color: var(--gold); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.moonshot-links span a { margin-left: 10px; }
.moonshot-links a:hover { color: var(--gold-hi); border-color: var(--gold); }
.moonshot .moonshot-copied { flex-basis: 100%; font-size: 12px; color: var(--ink-3); min-height: 1.5em; margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding-block: 60px 180px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; background: var(--bg); position: relative; z-index: 3; }
.faq-head { display: grid; gap: 22px; align-content: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height .6s var(--ease-out), content-visibility .6s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -0.02em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transition: transform .5s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 28px; max-width: 60ch; color: var(--ink-2); }
.faq-a em { color: var(--gold-hi); font-size: 1.1em; }

/* ---------- CTA stage ---------- */
.cta-stage { position: relative; height: 130vh; display: flex; align-items: flex-end; }
.cta-inner { position: sticky; bottom: 0; width: 100%; padding-bottom: 12vh; text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta-kicker { color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 9, 7, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cta-title { font-size: clamp(36px, 5vw, 84px); font-weight: 450; letter-spacing: -0.05em; line-height: 1; max-width: 18ch; text-wrap: balance; }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: 120px 0 140px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); }
.contact-side { display: grid; align-content: start; gap: 28px; }
.next { display: grid; border-top: 1px solid var(--line); margin-top: 12px; }
.next li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.next li span { color: var(--gold); }

.form { position: relative; display: grid; gap: 26px; padding: clamp(24px, 3vw, 44px); border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > .mono, .field legend { color: var(--ink-3); padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 92px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; transition: all .3s; }
.chips label:hover span { border-color: rgba(200, 164, 93, 0.5); color: var(--ink); }
.chips input:checked + span { background: rgba(200, 164, 93, 0.14); border-color: var(--gold); color: var(--gold-hi); }
.chips input:focus-visible + span { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-note { color: var(--ink-3); }
.form-note.is-error { color: #e0806a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { position: absolute; inset: 0; border-radius: inherit; background: var(--bg-2); display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 56px); }
.form-done[hidden] { display: none; }
.form-done h3 { font-size: clamp(30px, 3vw, 48px); font-weight: 450; letter-spacing: -0.04em; line-height: 1.05; }
.form-done em { color: var(--gold-hi); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; z-index: 3; }
.footer-top { display: grid; grid-template-columns: repeat(2, 1fr) auto; gap: 32px; }
.footer-col { display: grid; align-content: start; gap: 8px; color: var(--ink-2); font-size: 15px; }
.footer-col > .mono { color: var(--gold); margin-bottom: 6px; }
.footer-col a { transition: color .3s; width: fit-content; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-dim { color: var(--ink-3); }
.footer-word {
  display: flex; justify-content: center; margin-top: 40px;
  font-family: var(--serif); font-size: 24.5vw; line-height: 0.84; letter-spacing: -0.01em;
  overflow: hidden; padding-bottom: 0.02em;
}
.footer-word span { display: inline-block; background: var(--gold-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s linear infinite; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* ---------- Reveal helpers ---------- */
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .board th:nth-child(2), .board td:nth-child(2) { display: none; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-fig { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-agent, .tile-tools, .tile-pipes, .tile-dash, .tile-sec { grid-column: span 2; grid-row: auto; }
  .tile-tools, .tile-pipes { grid-column: span 1; }
  .tiers { grid-template-columns: 1fr; max-width: 640px; }
  .calc-card { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line); }
  .rail .rail-t { display: none; }
}

/* portrait screens: the headline sits low so the balance has room above it (matches scene.js, aspect < 0.8) */
@media (max-aspect-ratio: 4/5) {
  .hero-title { align-self: end; margin: 160px 0 3vh; }
  .scroll-cue { display: none; }
}

@media (max-width: 860px) {
  .hero-sectors { display: none; }
  .hero-title .line-2 { padding-left: 0; }
  .hero-title .line-3 { padding-left: 1.2em; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { padding: 32px 16px 40px 0; }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .num:nth-child(4) { border-top: 1px solid var(--line); }
  .work .section-head { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; padding-block: 56px; }
  .case-flip .case-meta { order: 0; }
  .founder, .faq, .contact-grid { grid-template-columns: 1fr; }
  .founder-photos { grid-template-columns: 1fr 1fr; align-items: start; }
  .founder-photos .fp-lead { grid-column: 1 / -1; order: -1; }
  .founder-photos figcaption { font-size: 10px; letter-spacing: 0; }
  .guarantees { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }

  /* Journey on mobile: text bottom, shape top */
  .journey-scrim { background: linear-gradient(0deg, rgba(10,9,7,.95) 0%, rgba(10,9,7,.75) 48%, rgba(10,9,7,0) 72%); }
  .chapter { top: auto; bottom: 64px; transform: none; width: auto; right: var(--gutter); }
  .chapter-idx { margin-bottom: 14px; }
  .chapter-body { display: none; }
  .spec { margin-top: 18px; }
  .spec li:nth-child(n+3) { display: none; }
  .chapter-metric { margin-top: 18px; }
  .rail { top: 76px; bottom: auto; left: var(--gutter); right: auto; gap: 14px; }
  .process-track { flex-direction: column; width: auto; }
  .phase { width: auto; }
  .process-bar { display: none; }
}

@media (max-width: 560px) {
  .btn { --h: 46px; padding: 0 18px; font-size: 14px; }
  .btn-sm { --h: 36px; padding: 0 14px; font-size: 13px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-tools, .tile-pipes { grid-column: span 2; }
  .dash { grid-template-columns: 1fr; }
  .kpis b { font-size: 20px; }
  .board th:nth-child(3), .board td:nth-child(3) { display: none; }
  .sched-head { grid-template-columns: 62px repeat(3, 1fr); }
  .sched-head span:nth-child(n+5) { display: none; }
  .sched-row { grid-template-columns: 62px 1fr; }
  .sched-now { left: calc(16px + 62px + (100% - 32px - 62px) * 0.46); }
  .week .sched-head { grid-template-columns: 44px repeat(3, 1fr); }
  .week .sched-row { grid-template-columns: 44px 1fr; }
  .vrow { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .vbar { display: none; }
  .window-foot { gap: 14px; }
  .calc-year { grid-template-columns: repeat(25, 1fr); }
  .calc-year i { height: 18px; }
  .calc-stats b { font-size: 21px; }
  .term-body { height: 220px; font-size: 11px; }
  .term-line { grid-template-columns: 54px 14px 1fr; }
  .footer-bottom { flex-direction: column; }
  .chapter-metric { flex-direction: column; gap: 6px; }
}

/* narrow phones: keep the logo, the pinned button and the menu on one line */
@media (max-width: 380px) {
  .nav-right { gap: 10px; }
  .nav .btn-sm { padding: 0 11px; font-size: 12px; }
  .brand-word { font-size: 21px; }
}
@media (max-width: 339px) {
  .brand-word { display: none; }
}

@media (max-height: 720px) and (min-width: 861px) {
  .spec li:nth-child(n+3) { display: none; }
  .chapter-body { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { animation: none; }
}
