/* OBSCURA: the void.
   A black hole as a studio: everything falls in, only finished work comes out.
   Roles: void (ground), ink (text), dim (metadata), violet (light at the horizon, used rarely). */

@font-face { font-family: "Lighters"; src: url("../assets/fonts/Lighters-Light.ttf") format("truetype"); font-weight: 300; font-display: block; }
@font-face { font-family: "Lighters"; src: url("../assets/fonts/Lighters-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Lighters"; src: url("../assets/fonts/Lighters-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: block; }

:root {
  --void: #040405;
  --void-2: #0a0a0d;
  --void-3: #121217;
  --ink: #ebe7e0;
  --ink-2: #c4c0ba;
  --dim: #85828e;
  --faint: #45434d;
  --rule: rgba(235, 231, 224, 0.08);
  --rule-2: rgba(235, 231, 224, 0.16);
  --violet: #9d5cff;
  --violet-hot: #c3a2ff;
  --ok: #8fd6b0;
  --bad: #ff8a8a;

  /* names the workbench pages use */
  --ground: var(--void); --ground-2: var(--void-2); --ground-3: var(--void-3);
  --text: var(--ink); --text-2: var(--ink-2); --quiet: var(--dim);
  --line: var(--rule); --line-2: var(--rule-2); --accent: var(--violet);

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --mark: "Lighters", var(--sans);

  --gutter: clamp(18px, 4vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fall: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grain over everything, like a long exposure. */
body::after {
  content: ""; position: fixed; inset: -60%; pointer-events: none; z-index: 90; opacity: 0.075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><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 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--violet); color: var(--void); }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--violet); }
:focus-visible { outline: 1px solid var(--violet); outline-offset: 4px; border-radius: 2px; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-weight: 300; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.ro {                                   /* readout: the instrument's own voice */
  font-family: var(--sans); font-stretch: 125%; font-weight: 500;
  font-size: 10.5px; line-height: 1.55; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.ro b, .ro .on { color: var(--ink); font-weight: 500; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.giant {
  font-weight: 300; font-stretch: 100%;
  font-size: clamp(3.1rem, 9.6vw, 10.2rem); line-height: 0.92; letter-spacing: -0.055em;
}
.big {
  font-weight: 300; font-size: clamp(2.3rem, 5.8vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em;
}
.mid { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.voice { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; white-space: nowrap; }
.lede { font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
.dim { color: var(--dim); }
.small { font-size: 0.875rem; }

/* masked line rise (descenders kept inside with padding) */
.line { display: block; overflow: hidden; padding: 0 0.04em 0.16em; margin-bottom: -0.16em; }
.line > span { display: inline-block; }
html.js .rise .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease); }
html.js .rise.in .line > span { transform: none; }
html.js .rise .line:nth-child(2) > span { transition-delay: 0.09s; }
html.js .rise .line:nth-child(3) > span { transition-delay: 0.18s; }
html.js .fade { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .fade.in { opacity: 1; transform: none; }
@media (min-width: 760px) { .giant .line > span, .big .line > span { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) {
  html.js .rise .line > span, html.js .fade { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(4, 4, 5, 0.85), rgba(4, 4, 5, 0));
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 26px; height: 26px; }
.wordmark { font-family: var(--mark); font-weight: 300; letter-spacing: 0.36em; line-height: 1; white-space: nowrap; }
.brand .wordmark { font-size: 15px; margin-right: -0.36em; }
.nav { display: flex; align-items: center; gap: 4px; }
.navlink { font-family: var(--sans); font-stretch: 125%; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 10px 12px; }
.navlink:hover { color: var(--ink); }
@media (max-width: 720px) { .navlink.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 22px;
  border: 1px solid var(--rule-2); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 10.5px/1 var(--sans); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { border-color: var(--ink-2); }
.btn.solid { background: var(--ink); color: var(--void); border-color: var(--ink); }
.btn.solid:hover { background: #fff; }
.btn .arr { font-family: var(--mono); font-size: 12px; letter-spacing: 0; transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); border-color: var(--rule-2); }

/* ---------- the opening: falling in ---------- */
.hero { position: relative; height: 230vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#void { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
/* Phones: iOS 26 Safari won't paint fixed content under its floating bottom bar and fills that strip
   from the fixed element's background colour, which left a hard line across the scene. So the void
   carries the page colour for Safari to extend, and the scene fades into it before the bar begins. */
@media (pointer: coarse) {
  #void {
    background-color: var(--void);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 210px), transparent calc(100% - 64px));
    mask-image: linear-gradient(to bottom, #000 calc(100% - 210px), transparent calc(100% - 64px));
  }
}
main, .top, .foot { position: relative; z-index: 1; }
.top { position: fixed; }
html.no-webgl #void { display: none; }
html.no-webgl .hero-stage {
  background:
    radial-gradient(circle at 68% 52%, #000 0 9%, rgba(255, 240, 225, 0.55) 9.6%, rgba(157, 92, 255, 0.18) 13%, transparent 26%),
    radial-gradient(ellipse 46% 4% at 68% 53%, rgba(255, 236, 214, 0.5), transparent 70%),
    var(--void);
}
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: calc(0.9 - var(--fall) * 1.4); }
.orbits circle, .orbits ellipse { fill: none; stroke: rgba(235, 231, 224, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }

.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.status-grid {
  position: absolute; top: 112px; left: var(--gutter);
  display: grid; grid-template-columns: auto auto; gap: 3px 36px;
  opacity: calc(1 - var(--fall) * 2.2);
}
.status-grid dt, .status-grid dd { margin: 0; }
.status-grid dd { color: var(--ink); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--violet); }
@media (prefers-reduced-motion: no-preference) { .dot { animation: blink 2.4s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0.25; } }

.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 8vh, 96px);
  transform: translateY(calc(var(--fall) * -140px)); opacity: calc(1 - var(--fall) * 1.9);
}
.hero-copy .giant { max-width: 12ch; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(22px, 3.4vh, 40px); }
.hero-row .cta { display: flex; gap: 8px; flex-wrap: wrap; }
.cue { position: absolute; right: var(--gutter); bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: calc(0.9 - var(--fall) * 4); }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink-2), transparent); }
@media (max-width: 820px) {
  .status-grid { top: 92px; gap: 2px 18px; }
  .status-grid .opt-sm { display: none; }
  .cue { display: none; }
}

/* the moment after falling in */
.inside { position: relative; padding: clamp(40px, 8vh, 100px) 0 clamp(120px, 20vh, 220px); text-align: center; }
.inside .big { margin: 0 auto; max-width: 16ch; }
.inside .lede { margin: 26px auto 0; }

/* ---------- acts ---------- */
.act { position: relative; padding: clamp(110px, 18vh, 210px) 0; }
.act + .act { border-top: 1px solid var(--rule); }
.act-label { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vh, 44px); }
.act-label .n { color: var(--violet); }
.act-label .bar { flex: 0 0 48px; height: 1px; background: var(--rule-2); }
.act-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; margin-bottom: clamp(56px, 9vh, 104px); }
@media (max-width: 900px) { .act-head { grid-template-columns: 1fr; } }

/* 01 · the pull: three things */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.three > div { padding: 30px 32px 0 0; }
.three > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.three .word { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; margin: 18px 0 18px; }
.three p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 820px) {
  .three { grid-template-columns: 1fr; }
  .three > div, .three > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* 02 · lensing: the focus instrument */
.lens { position: relative; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lens .stage { position: relative; height: clamp(360px, 66vh, 700px); }
.lens canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lens .corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--rule-2); }
.lens .tl { top: 20px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.lens .tr { top: 20px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.lens .bl { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.lens .br { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }
.lens .read { position: absolute; top: 24px; left: 52px; right: 52px; display: flex; justify-content: space-between; gap: 16px; }
.controls-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px var(--gutter); border-top: 1px solid var(--rule); }
.stops { display: flex; justify-content: space-between; margin-top: 12px; }
.stops button { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.stops button.on { color: var(--ink); }
@media (max-width: 640px) { .controls-bar { grid-template-columns: 1fr; gap: 12px; } .controls-bar .ro.hide-sm { display: none; } }

/* the slider: a hairline track and an aperture for a thumb */
input[type="range"].dial {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; padding: 0; border: 0; cursor: pointer;
  --pct: 0%;
}
input[type="range"].dial::-webkit-slider-runnable-track {
  height: 1px; background: linear-gradient(to right, var(--violet) 0 var(--pct), var(--rule-2) var(--pct) 100%);
}
input[type="range"].dial::-moz-range-track { height: 1px; background: var(--rule-2); }
input[type="range"].dial::-moz-range-progress { height: 1px; background: var(--violet); }
input[type="range"].dial::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: radial-gradient(circle, var(--void) 0 4px, var(--ink) 4.5px 6px, var(--void) 6.5px 100%);
  border: 1px solid var(--ink); box-shadow: 0 0 0 6px rgba(157, 92, 255, 0); transition: box-shadow 0.3s var(--ease);
}
input[type="range"].dial::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink);
  background: radial-gradient(circle, var(--void) 0 4px, var(--ink) 4.5px 6px, var(--void) 6.5px 100%);
}
input[type="range"].dial:hover::-webkit-slider-thumb, input[type="range"].dial:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(157, 92, 255, 0.18); }
input[type="range"].dial:focus-visible { outline: none; }
.ticks { height: 7px; margin-top: -4px; background-image: linear-gradient(to right, var(--rule-2) 1px, transparent 1px); background-size: calc(100% / 20) 100%; opacity: 0.8; }

/* 03 · orbit: the price, with sliders */
.rule-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--rule); }
.rule-panel > div { padding: clamp(24px, 3.4vw, 44px); }
.rule-panel > div + div { border-left: 1px solid var(--rule); }
.knob { margin-bottom: 34px; }
.knob:last-child { margin-bottom: 0; }
.knob-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.knob-head .val { font-family: var(--mono); font-size: 1rem; color: var(--ink); }
.knob .say { color: var(--dim); font-size: 0.9rem; margin: 10px 0 0; min-height: 2.9em; }
.price { font-weight: 300; font-size: clamp(3rem, 7.4vw, 6.8rem); letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.eq { margin: 18px 0 30px; color: var(--ink-2); }
.split-bar { display: flex; gap: 3px; height: 8px; margin: 10px 0 14px; }
.split-bar i { display: block; height: 100%; transition: flex-grow 0.6s var(--ease); }
.split-bar .t { background: var(--ink); }
.split-bar .p { background: var(--dim); }
.split-bar .o { background: var(--violet); }
.legend { display: grid; gap: 6px; }
.legend div { display: flex; justify-content: space-between; gap: 12px; }
.legend .sw { display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; }
@media (max-width: 860px) { .rule-panel { grid-template-columns: 1fr; } .rule-panel > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 9vh, 96px); border-top: 1px solid var(--rule); }
.tier-grid > div { padding: 26px 24px 0 0; }
.tier-grid > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.tier-grid .L { font-family: var(--mark); font-weight: 300; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; }
.tier-grid > div:first-child .L { color: var(--violet-hot); }
.tier-grid .h { margin: 16px 0 6px; font-weight: 500; }
.tier-grid p { color: var(--dim); font-size: 0.92rem; margin: 0 0 14px; }
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tier-grid > div { padding-bottom: 24px; }
}

/* interlude */
.interlude { padding: clamp(150px, 28vh, 300px) 0; text-align: center; border-top: 1px solid var(--rule); }
.interlude .big { margin: 0 auto; }

/* 04 · event horizon: the path */
.path { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule-2); }
.path .s { position: relative; padding: 36px 20px 0 0; }
.path .s::before { content: ""; position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-2); background: var(--void); }
.path .s.money::before { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 14px rgba(157, 92, 255, 0.6); }
.path .s.horizon::after { content: "Event horizon"; position: absolute; top: -24px; left: 0; font: 500 10px/1 var(--sans); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-hot); white-space: nowrap; }
.path .h { font-weight: 500; margin: 12px 0 6px; }
.path p { color: var(--dim); font-size: 0.9rem; margin: 0; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; padding-left: 28px; }
  .path::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .path .s { padding: 0 0 30px 0; }
  .path .s::before { left: -28px; top: 5px; }
  .path .s.horizon::after { position: static; display: block; margin-bottom: 8px; }
}
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: clamp(70px, 11vh, 120px); }
.guards > div { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.guards .h { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 300; letter-spacing: -0.02em; margin: 12px 0 10px; }
.guards p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .guards { grid-template-columns: 1fr; } }

/* 05 · output */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; padding: 0 16px 16px 0; border-bottom: 1px solid var(--rule-2); }
.ledger td { padding: 28px 16px 28px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.ledger td.name { color: var(--ink); font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.02em; width: 30%; }
.ledger td.cost { font-family: var(--mono); color: var(--ink); text-align: right; white-space: nowrap; padding-right: 0; }
.ledger th:last-child { text-align: right; padding-right: 0; }
@media (max-width: 720px) {
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { border: 0; padding: 4px 0; }
  .ledger td.name { width: auto; }
  .ledger td.what { grid-column: 1 / -1; order: 3; }
  .ledger td.time { grid-column: 1; }
}
.keep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 72px; margin-top: clamp(90px, 14vh, 150px); align-items: end; }
.bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.bands > div { padding: 22px 18px 0 0; }
.bands > div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.bands .pct { font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.8rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 10px; }
@media (max-width: 820px) { .keep { grid-template-columns: 1fr; } }

/* 06 · talent */
.talent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.talent-grid > div { padding: 26px 0 34px; border-top: 1px solid var(--rule); }
.talent-grid .h { font-size: 1.15rem; font-weight: 500; margin: 12px 0 8px; }
.talent-grid p { color: var(--ink-2); font-size: 0.96rem; margin: 0; }
@media (max-width: 900px) { .talent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .talent-grid { grid-template-columns: 1fr; } }

/* credits + coda */
.credits { position: relative; padding: clamp(100px, 16vh, 170px) 0 clamp(60px, 9vh, 100px); }
.credits-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px 56px; }
.credits-grid p { color: var(--ink-2); font-size: 0.96rem; margin: 12px 0 0; }
@media (max-width: 820px) { .credits-grid { grid-template-columns: 1fr; } }
.foot { border-top: 1px solid var(--rule); padding: 24px var(--gutter) 34px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
/* a darker floor under the opening's words, so the disk never fights the type */
.hero-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 4, 5, 0.94) 0%, rgba(4, 4, 5, 0.7) 38%, rgba(4, 4, 5, 0) 100%); }
.hud { z-index: 2; }
.top { transition: background 0.5s var(--ease), border-color 0.5s var(--ease); border-bottom: 1px solid transparent; }
.top.past { background: rgba(4, 4, 5, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.work .top { background: rgba(4, 4, 5, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.btn { white-space: nowrap; }
@media (max-width: 440px) {
  .brand { gap: 10px; }
  .brand .wordmark { font-size: 13px; letter-spacing: 0.26em; margin-right: -0.26em; }
  .top .btn { min-height: 40px; padding: 0 14px; gap: 8px; }
}


/* ================= v3: motion and the second scene ================= */

/* intro: a point of light, the wordmark, a count. First visit only. */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--void); display: grid; place-items: center; pointer-events: none; }
html:not(.js) .intro, html.seen .intro { display: none; }
.intro-core { display: grid; justify-items: center; gap: 18px; }
.intro-mark { font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.5em; margin-right: -0.5em; color: var(--ink); }
.intro-bar { width: min(240px, 50vw); height: 1px; background: var(--rule-2); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 100%; background: var(--violet); transform-origin: left; transform: scaleX(0); }

/* header hides while you read down, returns when you look back up */
.top { transition: transform 0.6s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease); }
.top.hide { transform: translateY(-100%); }

/* the band: fields drifting sideways, faster when you scroll faster */
.band { position: relative; overflow: hidden; padding: clamp(28px, 5vh, 56px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); width: max-content; will-change: transform; }
.band-track span {
  font-weight: 200; font-stretch: 125%; font-size: clamp(3.2rem, 9vw, 9rem); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(235, 231, 224, 0.35);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.band-track span:hover { color: var(--ink); -webkit-text-stroke-color: transparent; }
.band-track i { width: clamp(10px, 1.2vw, 18px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--violet); flex: none; }

/* focus pull: words arrive from blur, like a lens finding its plane */
.fp .w { display: inline-block; will-change: transform, filter, opacity; }
html.motion .fp .w { opacity: 0; filter: blur(14px); transform: translateY(0.35em) scale(1.04); }

/* interlude: words light up as you read through them */
html.motion .scrub .w { opacity: 0.14; transition: opacity 0.2s linear; }
.scrub .w { display: inline-block; }

/* 04 · the event horizon, pinned and crossed sideways */
.hz { position: relative; padding: 0 var(--gutter) 40px; }
.hz-line { position: relative; height: 1px; background: var(--rule-2); margin: 0 0 36px; }
.hz-fill { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--ink)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(157, 92, 255, 0.6); }
.hz-track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 48px); will-change: transform; }
.hz-step { position: relative; flex: 0 0 clamp(280px, 34vw, 520px); padding: 28px 28px 34px; border: 1px solid var(--rule); background: linear-gradient(180deg, rgba(18, 18, 23, 0.7), rgba(10, 10, 13, 0.35)); border-radius: 18px; overflow: hidden; }
.hz-step::before { content: ""; position: absolute; top: -37px; left: 28px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-2); background: var(--void); }
.hz-step.money::before { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 14px rgba(157, 92, 255, 0.7); }
.hz-step.horizon { border-color: rgba(157, 92, 255, 0.35); }
.hz-n { display: block; font-family: var(--sans); font-weight: 200; font-stretch: 125%; font-size: clamp(4rem, 8vw, 7.5rem); line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(235, 231, 224, 0.28); margin-bottom: 28px; }
.hz-step.horizon .hz-n { -webkit-text-stroke-color: rgba(195, 162, 255, 0.7); }
.hz-step h3 { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.035em; margin: 10px 0 12px; }
.hz-step p { color: var(--ink-2); margin: 0; max-width: 36ch; }
@media (max-width: 900px) {
  .hz-line { display: none; }
  .hz-track { flex-direction: column; }
  .hz-step { flex-basis: auto; }
  .hz-step::before { display: none; }
}

/* coda: the black hole returns; you come out the other side */
.coda { position: relative; height: 260vh; }
.coda-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
/* no vignette layer here: its straight top edge showed as a dark band while scrolling in */
.coda-ro { position: relative; margin: 0 auto 24px; max-width: none; }
.coda-line { position: relative; margin: 0 auto; max-width: none; text-shadow: 0 0 40px rgba(4, 4, 5, 0.9); }
.coda-line .w { display: inline-block; }
.coda-cta { position: relative; margin-top: 44px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
html.motion .coda-cta, html.motion .coda-ro { opacity: 0; }

/* sections float over the void with a little depth */
.act, .interlude, .credits, .inside, .band { background: transparent; }
.act::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(157, 92, 255, 0.35), transparent); opacity: 0; transition: opacity 1.2s var(--ease); }
.act.lit::after { opacity: 1; }

/* hover: rows and cards answer quietly */
.ledger tbody tr { transition: background 0.5s var(--ease); }
.ledger tbody tr:hover { background: rgba(235, 231, 224, 0.025); }
.ledger tbody tr:hover td.name { color: #fff; }
.talent-grid > div, .guards > div, .three > div, .tier-grid > div { transition: border-color 0.6s var(--ease); }
.talent-grid > div:hover, .guards > div:hover { border-top-color: rgba(157, 92, 255, 0.5); }

@media (prefers-reduced-motion: reduce) {
  html.motion .fp .w, html.motion .scrub .w, html.motion .coda-cta, html.motion .coda-ro { opacity: 1 !important; filter: none !important; transform: none !important; }
  .coda { height: auto; }
  .coda-pin { position: relative; height: auto; padding: 160px 0; }
}
/* everything that fades in also comes into focus */
html.js .fade { filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
html.js .fade.in { filter: blur(0); }
@media (prefers-reduced-motion: reduce) { html.js .fade { filter: none !important; } }
.interlude { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 0; }


/* ================= liquid glass ================= */
/* Frosted, tinted, a bright rim on top, a sheen that follows the pointer,
   and (in Chromium) a slight refraction of the void behind it. */
.glass {
  --gx: 30%; --gy: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.025) 38%, rgba(255, 255, 255, 0.05) 100%),
    rgba(14, 12, 20, 0.28);
  -webkit-backdrop-filter: blur(26px) saturate(175%) brightness(1.06);
  backdrop-filter: blur(26px) saturate(175%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(157, 92, 255, 0.05),
    0 40px 90px -20px rgba(0, 0, 0, 0.6);
}
html.refract .glass { backdrop-filter: url(#liquid) blur(22px) saturate(175%) brightness(1.06); }
.glass::before {                       /* specular sheen, follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen; transition: opacity 0.6s var(--ease);
}
.glass::after {                        /* a thin bright rim, brighter at the top */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05) 35%, rgba(157, 92, 255, 0.18) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.credits-card { padding: clamp(28px, 4vw, 56px); }
.credits-card .credits-grid p { color: var(--ink); opacity: 0.86; }

.btn.glass-btn {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.btn.glass-btn:hover { background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); border-color: rgba(255, 255, 255, 0.35); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .btn.glass-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(18, 18, 24, 0.94); }
}

/* headings wrap instead of being cut by their masks (e.g. "We design the team,") */
.big .line > span { white-space: normal !important; }

/* 07 · people */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.person { margin: 0; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px; border: 1px solid var(--rule-2); background: var(--void-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.12) brightness(0.86); transform: scale(1.04);
  transition: filter 1.2s var(--ease), transform 1.6s var(--ease); }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 4, 5, 0) 45%, rgba(4, 4, 5, 0.85) 100%), linear-gradient(200deg, rgba(157, 92, 255, 0.22), rgba(157, 92, 255, 0) 45%);
  mix-blend-mode: normal; }
.person:hover .portrait img { filter: grayscale(0.15) contrast(1.05) brightness(0.95); transform: scale(1); }
.person figcaption { display: grid; gap: 6px; padding: 22px 4px 0; }
.pname { font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.045em; margin: 6px 0 2px; }
.pline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); margin: 0 0 8px; }
.plink { color: var(--ink-2); text-decoration: none; margin-top: 6px; justify-self: start; border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; }
.plink:hover { color: var(--ink); border-bottom-color: var(--violet); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.plink[href^="mailto"] { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }
.plink[href^="mailto"] { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }

/* 07 · people, compact: present, but not the star of the page */
#people { padding: clamp(80px, 12vh, 140px) 0; }
#people .act-head { margin-bottom: clamp(28px, 4vh, 44px); align-items: baseline; }
#people .lede { font-size: 0.95rem; }
.people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); border-top: 1px solid var(--rule); }
.person { display: grid; grid-template-columns: clamp(76px, 7vw, 104px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 26px 0; }
.portrait { aspect-ratio: 1; border-radius: 18px; }
.person figcaption { padding: 0; gap: 4px; }
.pname { font-size: clamp(1.35rem, 2vw, 1.9rem); margin: 2px 0 2px; }
.plink { margin-top: 4px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } .person + .person { border-top: 1px solid var(--rule); } }
.lede, .act-head p, .guards p, .talent-grid p { text-wrap: pretty; }

/* the header always sits above the page (a later rule had dropped it to the content's layer) */
.top { z-index: 60; }
