:root {
  --paper: #f4f2ec;
  --white: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --gold: #b8a060;
  --gold-l: #d5ba73;
  --hair: rgba(17, 24, 39, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.85);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(18px, 3.4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-gated { overflow: hidden; }
a { color: inherit; }
em { font-style: italic; color: var(--gold); font-weight: inherit; }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; touch-action: pan-y; }
.whiteout { position: fixed; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, #fff, var(--paper) 70%); opacity: 0; }

/* gate */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; align-content: center; gap: 18px; background: radial-gradient(70% 60% at 50% 45%, #fff 0%, var(--paper) 70%); transition: opacity .9s ease, visibility .9s; }
.gate.is-out { opacity: 0; visibility: hidden; }
.gate-mark { width: 48px; height: 48px; animation: mark-in 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(10px) scale(.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.gate .kick { margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.ribbon { position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%); font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }

/* buttons: their pill shapes */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 99px; font: 500 16px/1 var(--sans); text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -14px rgba(17,24,39,.6); }
.btn-line { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }

.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand img { display: block; height: 28px; width: auto; }
.top-links { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.top-links a:not(.btn) { text-decoration: none; color: var(--ink-2); margin-right: 8px; }

.chapters { position: fixed; z-index: 40; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 2px; }
.chapters button { background: none; border: 0; padding: 6px 0 6px 18px; cursor: pointer; position: relative; display: flex; justify-content: flex-end; color: var(--ink-3); font: 500 12px/1 var(--sans); }
.chapters button::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; transform: rotate(45deg) scale(.8); background: rgba(17,24,39,.2); transition: background .3s, transform .3s; }
.chapters button span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; padding-right: 10px; }
.chapters:hover button span, .chapters button.on span { opacity: 1; transform: none; }
.chapters button.on { color: var(--ink); }
.chapters button.on::before { background: var(--gold); transform: rotate(45deg) scale(1.2); }
body.on-light .chapters { opacity: 0; pointer-events: none; }

/* copy */
.stage { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.blk { position: absolute; left: var(--gutter); top: 52%; width: min(540px, calc(100vw - 2 * var(--gutter))); transform: translate(0, calc(-50% + var(--dy, 0px))); filter: blur(var(--bl, 0px)); opacity: 0; visibility: hidden; will-change: opacity, transform, filter; }
.blk a, .blk button { pointer-events: auto; }
.blk-hero { width: min(600px, calc(100vw - 2 * var(--gutter))); top: 53%; }
.blk-screener { width: min(520px, calc(100vw - 2 * var(--gutter))); top: 50%; }
.blk-proof { left: 50%; top: 60%; width: min(1080px, calc(100vw - 2 * var(--gutter))); transform: translate(-50%, calc(-50% + var(--dy, 0px))); text-align: center; }
.blk-final { left: 50%; top: 18%; width: min(860px, calc(100vw - 2 * var(--gutter))); transform: translate(-50%, var(--dy, 0px)); text-align: center; }
.blk-final .ctas, .blk-final .fine { justify-content: center; }
.blk-final .lede { margin-left: auto; margin-right: auto; max-width: 620px; }

.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.kicker i { font-style: normal; font-size: 9px; }
.blk-proof .kicker, .team .kicker { justify-content: center; }
.display { margin: 0; font: 600 clamp(42px, 5.3vw, 78px)/0.98 var(--disp); letter-spacing: -0.045em; text-wrap: balance; }
.display.md { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.lede { margin: 20px 0 0; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; max-width: 520px; }
.lede b { color: var(--ink); font-weight: 600; }
.lede.sm { font-size: 15.5px; }
.fine { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fine b { color: #10b981; margin-right: -8px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.cue { margin-top: 40px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 12px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.cue i { width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.blk .display, .blk .lede { text-shadow: 0 0 24px rgba(244,242,236,.9), 0 0 3px rgba(244,242,236,.7); }

/* the screener chapter: their query box + funnel */
.query { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.45; min-height: 96px; box-shadow: 0 24px 50px -28px rgba(17,24,39,.7); }
.query .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--gold-l); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.funnel { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.funnel li { padding: 12px 12px 11px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 5px; transition: background .4s, transform .4s; }
.funnel b { font: 600 24px/1 var(--disp); letter-spacing: -0.03em; }
.funnel span { font-size: 11.5px; color: var(--ink-3); }
.funnel li.on { background: var(--ink); color: #fff; transform: translateY(-2px); }
.funnel li.on b { color: var(--gold-l); }
.funnel li.on span { color: rgba(255,255,255,.7); }

.feats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; max-width: 470px; }
.feats li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.feats b { font-weight: 600; font-size: 15px; }
.feats b::before { content: "◆"; color: var(--gold); font-size: 9px; margin-right: 8px; vertical-align: 2px; }
.feats span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats div { padding: 20px 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: grid; gap: 8px; }
.stats b { font: 600 clamp(28px, 3.3vw, 46px)/1 var(--disp); letter-spacing: -0.045em; }
.stats span { font-size: 13.5px; color: var(--ink-2); }
.logos { margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; padding: 16px 22px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logos img { width: auto; filter: grayscale(1) contrast(1.1); opacity: .75; }
.quotes { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.quotes figure { margin: 0; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.74); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 14px; align-content: space-between; }
.quotes blockquote { margin: 0; font: 500 18px/1.3 var(--disp); letter-spacing: -0.015em; }
.quotes figcaption { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); }
.quotes figcaption img, .av { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.av { display: grid; place-items: center; background: var(--ink); color: var(--gold-l); font: 600 14px/1 var(--sans); }
.quotes figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }

/* 3D-anchored tags */
.tags { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.8); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; will-change: transform, opacity; box-shadow: 0 10px 30px -18px rgba(17,24,39,.5); }
.tag b { color: var(--ink); font-weight: 600; font-size: 13px; }
.tag i { font-style: normal; color: var(--gold); font-weight: 600; }
.tag.dark { background: rgba(17,24,39,.88); color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.1); }
.tag.dark b { color: #fff; }

/* track + light end */
main { position: relative; z-index: 20; }
.track { height: 1150vh; pointer-events: none; }
.light { position: relative; background: var(--paper); padding: 22vh var(--gutter) 90px; }
.light-in { width: min(980px, 100%); margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 24px; }
.light-logo { height: 46px; width: auto; }
.light-line { margin: 0; font-size: 18px; color: var(--ink-2); }
.light-line span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.team { margin-top: 30px; width: 100%; }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team li { display: grid; justify-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.team li img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 8px; filter: grayscale(.2); }
.team li b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.team-line { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.credits { margin-top: 40px; border-top: 1px solid var(--hair); padding-top: 24px; display: grid; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); text-align: left; }
.credits p { margin: 0; } .credits b { color: var(--ink); }
.mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* fallback */
.fallback { display: none; }
.no-webgl #world, .no-webgl .stage, .no-webgl .tags, .no-webgl .chapters, .no-webgl .whiteout, .no-webgl .track { display: none; }
.no-webgl .fallback { display: grid; position: relative; min-height: 100vh; place-items: end start; overflow: hidden; order: -1; }
.no-webgl main { display: flex; flex-direction: column; }
.fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,242,236,0), rgba(244,242,236,.95)); }
.fallback-in { position: relative; z-index: 1; padding: 0 var(--gutter) 14vh; max-width: 760px; display: grid; gap: 14px; }
.fallback-in h1 { margin: 0; font: 600 clamp(40px, 6.5vw, 80px)/1 var(--disp); letter-spacing: -0.045em; }
.fallback-in p:last-child { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; }

body.rec .stage { inset: -12vh 0 12vh 0; }
body.rec .blk-final { top: calc(12% + 14vh); }
body.rec .chapters, body.rec .cue { display: none; }
body.clean .stage, body.clean .tags, body.clean .top, body.clean .chapters, body.clean .ribbon { display: none; }

/* near-square windows: copy stacks under the subject */
@media (max-aspect-ratio: 5/4) and (min-width: 761px) {
  .blk, .blk-screener { top: auto; bottom: 7vh; transform: translate(0, var(--dy, 0px)); width: min(720px, calc(100vw - 2 * var(--gutter))); }
  .blk-proof { left: 50%; top: auto; bottom: 6vh; transform: translate(-50%, var(--dy, 0px)); }
  .blk-final { left: 50%; top: 12%; bottom: auto; transform: translate(-50%, var(--dy, 0px)); }
  .display { font-size: clamp(40px, 5.4vw, 62px); } .display.md { font-size: clamp(32px, 4.3vw, 48px); }
  .quotes figure:nth-child(3) { display: none; } .quotes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-links a:not(.btn-ink) { display: none; }
  .brand img { height: 24px; }
  .chapters { display: none; }
  .blk, .blk-screener { left: var(--gutter); top: auto; bottom: 10vh; transform: translate(0, var(--dy, 0px)); width: calc(100vw - 2 * var(--gutter)); }
  .blk-hero { bottom: 8vh; }
  .display { font-size: 38px; } .display.md { font-size: 30px; }
  .lede { font-size: 15px; margin-top: 12px; }
  .ctas { margin-top: 18px; } .btn { height: 44px; padding: 0 20px; font-size: 15px; }
  .feats { margin-top: 14px; gap: 6px; } .feats li { padding: 10px 12px; } .feats span { font-size: 12.5px; }
  .query { font-size: 14.5px; min-height: 80px; padding: 14px; }
  .funnel b { font-size: 18px; } .funnel span { font-size: 10px; } .funnel li { padding: 9px 8px; }
  .blk-proof { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, calc(-50% + var(--dy, 0px))); }
  .stats { grid-template-columns: 1fr 1fr; gap: 6px; } .stats div { padding: 12px; }
  .logos { gap: 10px 18px; padding: 12px; } .logos img { transform: scale(.8); }
  .quotes { grid-template-columns: 1fr; } .quotes figure:nth-child(n+2) { display: none; }
  .blk-final { top: 14%; bottom: auto; left: 50%; transform: translate(-50%, var(--dy, 0px)); }
  .team ul { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .cue i, .gate-mark, .query .caret { animation: none; } }
