/* Footprint v6 — house style (tokens: docs/TOKENS.md) */
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('../fonts/instrument-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url('../fonts/mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --void: #04070a; --stone: #07090b; --line: #1a2028;
  --ink: #eef1f5; --muted: #8b919b; --amber: #ffc47c;
  --sans: 'Bricolage', system-ui, sans-serif;
  --serif: 'Instrument', Georgia, serif;
  --mono: 'JB Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--void); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--void); }

.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--void); padding: 10px 16px; z-index: 60; font-family: var(--mono); }
.skip:focus { left: 12px; top: 12px; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: linear-gradient(to bottom, rgba(4,7,10,.85), rgba(4,7,10,0));
  font-family: var(--mono);
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; letter-spacing: .22em; font-weight: 700; }
.nav__mark { width: 22px; height: 22px; color: var(--amber); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav__links a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 2px;
  font: 700 14px/1 var(--sans); letter-spacing: .04em;
  text-decoration: none; transition: transform .35s cubic-bezier(.2,.9,.2,1), background .2s;
}
.btn--solid { background: var(--amber); color: var(--void); }
.btn--solid:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(7,9,11,.5); }
.btn--ghost:hover { border-color: var(--amber); }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* stage — the 3D hero layer */
.stage { height: 320vh; position: relative; }
.stage__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__poster { position: absolute; inset: 0; display: none; background: url('../assets/poster.jpg') center/cover no-repeat; }
.no-webgl .stage__poster { display: block; }
.no-webgl .stage, .reduced .stage { height: 100vh; }
.no-webgl .beat, .no-webgl .stage__hint { display: none; }

.kicker { font: 400 12px/1 var(--mono); letter-spacing: .34em; color: var(--amber); text-transform: uppercase; }

.stage__intro {
  position: absolute; left: clamp(20px, 6vw, 96px); bottom: 14vh; max-width: 620px;
  opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.2,1);
}
.stage__intro.is-on { opacity: 1; transform: none; }
.stage__intro h1 {
  font: 800 clamp(44px, 7.4vw, 96px)/0.98 var(--sans); letter-spacing: -0.02em;
  margin: 18px 0 20px; text-wrap: balance;
}
.stage__intro em { font: italic 400 0.92em var(--serif); color: var(--amber); }
.stage__sub { color: var(--muted); max-width: 46ch; }
.stage__ctas { display: flex; gap: 14px; margin-top: 28px; }

.beat {
  position: absolute; right: clamp(20px, 6vw, 96px); top: 50%; transform: translateY(-40%);
  max-width: 380px; text-align: right;
  opacity: 0; transform: translateY(calc(-40% + 18px));
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}
.beat.is-on { opacity: 1; transform: translateY(-50%); }
.beat h2 { font: 700 clamp(26px, 3vw, 40px)/1.1 var(--sans); margin: 12px 0 10px; letter-spacing: -0.01em; }
.beat p { color: var(--muted); font-size: 15px; }

.stage__hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font: 400 11px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase;
}
.stage__hint i { width: 1px; height: 44px; background: linear-gradient(var(--amber), transparent); animation: drip 2.2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scene-ready .stage__hint { opacity: 0; transition: opacity .5s; }
.scene-ready:hover .stage__hint { opacity: 1; }

/* sections */
.section { max-width: 1160px; margin: 0 auto; padding: 140px clamp(20px, 6vw, 64px); }
.section h2 { font: 800 clamp(30px, 4vw, 52px)/1.05 var(--sans); letter-spacing: -0.02em; margin-bottom: 8px; }

.surfaces__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.surface { background: var(--stone); padding: 30px 26px 40px; }
.surface__n { font: 400 12px var(--mono); color: var(--amber); letter-spacing: .2em; }
.surface h3 { font: 700 20px/1.2 var(--sans); margin: 14px 0 10px; }
.surface p { color: var(--muted); font-size: 14.5px; }

.receipts__note { font: italic 400 14px var(--serif); color: var(--muted); margin: 6px 0 40px; }
.receipts__rows { border-top: 1px solid var(--line); }
.receipt { display: flex; align-items: baseline; gap: 28px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.receipt__v { font: 400 clamp(34px, 5vw, 64px)/1 var(--mono); color: var(--amber); min-width: 3.2ch; }
.receipt__k { color: var(--muted); font-size: 15px; letter-spacing: .04em; }

.audience { text-align: center; }
.audience__serif { font: 400 clamp(30px, 4.6vw, 58px)/1.15 var(--serif); letter-spacing: -0.01em; }
.audience__serif em { color: var(--amber); font-style: italic; }
.audience__sub { color: var(--muted); margin: 22px auto 0; max-width: 52ch; }

.access { text-align: center; }
.access p { color: var(--muted); margin: 12px 0 34px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  padding: 34px clamp(20px, 6vw, 64px); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.foot__brand { color: var(--ink); letter-spacing: .22em; }
.foot__note { margin-left: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--amber); }

.noscript { padding: 90px 28px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; }

.fp6dbg {
  position: fixed; left: 12px; bottom: 12px; z-index: 50;
  font: 400 11px/1.5 var(--mono); color: var(--amber);
  background: rgba(4,7,10,.8); border: 1px solid var(--line); padding: 8px 10px;
}

@media (max-width: 900px) {
  .surfaces__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .beat { right: 20px; left: 20px; max-width: none; text-align: left; top: auto; bottom: 16vh; transform: none; }
  .beat.is-on { transform: none; }
  .stage__intro { bottom: 18vh; }
}
@media (max-width: 560px) {
  .surfaces__grid { grid-template-columns: 1fr; }
  .receipt { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__intro, .beat { transition: none; }
  .stage__hint i { animation: none; }
}