/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg: #05060a;              /* cool black */
  --ink: #ece8df;             /* bone */
  --ink-dim: #8b90a0;             /* 5.6:1 on the black — the smallest mono tags stay legible */
  --ink-faint: #1c1f2a;
  --accent: #3d5afe;          /* electric blue — change once, changes everywhere */
  --accent-deep: #1f2fb8;
  --accent-soft: #8a96ff;

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Ibarra Real Nova", "Instrument Serif", Georgia, serif;   /* Ibarra: the 1780 Real Academia face, Spanish by birth — swap here for a licensed cut */
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 48px);
  --frame: clamp(44px, 5vw, 72px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ============================================================
   WebGL layer
   ============================================================ */
#gl {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
#gl canvas { display: block; width: 100%; height: 100%; }

/* ============================================================
   Frame: corners + ticks
   ============================================================ */
.frame { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.frame__corner {
  position: absolute; width: var(--frame); height: var(--frame);
  display: grid; place-items: center;
}
.frame__corner i {
  display: block; width: 14px; height: 14px;
  border: 1px solid var(--ink-dim);
}
.frame__corner--tl { top: 0; left: 0; }
.frame__corner--tr { top: 0; right: 0; }
.frame__corner--bl { bottom: 0; left: 0; }
.frame__corner--br { bottom: 0; right: 0; }
.frame__corner--tr i, .frame__corner--bl i { border-radius: 50%; }
.frame__tick {
  position: absolute; left: 50%; width: 1px; height: 10px;
  background: var(--accent); transform: translateX(-50%);
}
.frame__tick--top { top: 0; }
.frame__tick--bottom { bottom: 0; }

/* ============================================================
   Top bar
   ============================================================ */
@property --bar-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 6;
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  width: min(420px, calc(100vw - 2 * var(--frame)));
  height: 44px;
  background: rgba(8,9,14,.5);
  border: 1px solid rgba(236,232,223,.12);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  pointer-events: auto;
  transition: background .5s, border-color .5s;
}
/* a point of light orbits the pill's edge — the wordmark's dot, walking the ring */
.bar::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--bar-a), transparent 0 78%, var(--accent-soft) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  padding: 1px; opacity: .85;
  animation: bar-orbit 14s linear infinite;
}
@keyframes bar-orbit { to { --bar-a: 360deg; } }
/* the hairline under the pill fills with the scroll */
.bar::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: -7px; height: 1px; background: linear-gradient(90deg, var(--accent) calc(var(--scroll-p, 0) * 100%), rgba(236,232,223,.14) 0); pointer-events: none; }
.bar__links { position: relative; display: flex; gap: 22px; justify-content: center; align-items: center; height: 100%; }
.bar__links a { position: relative; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; opacity: .85; transition: color .25s, opacity .25s; }
.bar__links a::before { content: attr(data-n); position: absolute; right: calc(100% + 5px); top: 50%; transform: translate(4px, -50%); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--accent-soft); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.bar__links a:hover::before, .bar__links a:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
.bar__links a:hover, .bar__links a:focus-visible { color: var(--accent-soft); opacity: 1; outline: none; }
.bar__mark { position: absolute; left: var(--mark-x, -20px); top: calc(50% + 9px); width: var(--mark-w, 0px); height: 1px; background: var(--accent-soft); opacity: var(--mark-o, 0); transition: left .55s cubic-bezier(.22,1,.36,1), width .55s cubic-bezier(.22,1,.36,1), opacity .3s; pointer-events: none; }
.bar__progress { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); display: none; }
/* the call: blue pill; the label rolls to Spanish on hover, the light follows the hand, a dot blinks at the end */
.bar__cta {
  position: fixed; top: 14px; right: var(--frame); z-index: 6; height: 44px; padding: 0 20px 0 20px;
  display: flex; align-items: center; gap: 10px; border-radius: 999px; overflow: hidden;
  background: var(--accent); color: #fff; isolation: isolate;
  font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.bar__cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), rgba(154,166,255,.15) 40%, transparent 70%); opacity: 0; transition: opacity .35s; }
.bar__cta:hover::before, .bar__cta:focus-visible::before { opacity: 1; }
.bar__cta-roll { display: grid; height: 1.2em; overflow: hidden; }
.bar__cta-roll span { grid-area: 1 / 1; line-height: 1.2em; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.bar__cta-roll span + span { transform: translateY(1.2em); font-family: var(--serif); font-style: italic; text-transform: none; font-size: 14px; letter-spacing: 0; }
.bar__cta:hover .bar__cta-roll span:first-child, .bar__cta:focus-visible .bar__cta-roll span:first-child { transform: translateY(-1.2em); }
.bar__cta:hover .bar__cta-roll span + span, .bar__cta:focus-visible .bar__cta-roll span + span { transform: translateY(0); }
.bar__cta-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: cta-blink 6s 2.6s infinite; }
@keyframes cta-blink { 0%, 4%, 8%, 100% { transform: scaleY(1); } 6% { transform: scaleY(.15); } }
.bar__cta:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent-soft); }
.bar__brand { position: fixed; top: 14px; left: var(--frame); z-index: 6; height: 44px; display: flex; align-items: center; gap: 10px; }
.bar__brand > i { display: block; width: 8ch; height: .8em; background: var(--ink); font-size: 12px; }
.bar__brand-name { font-family: var(--serif); font-size: 18px; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.bar__brand { white-space: nowrap; }
.bar__brand-name sup, .wordmark sup { font-size: .32em; vertical-align: super; margin-left: .08em; font-family: var(--sans); }

.wordmark .dot, .bar__brand-name .dot { font-style: normal; color: var(--accent-soft); margin: 0 -.01em; }
.wordmark .dot, .bar__brand-name .dot { display: inline-block; min-width: .2em; text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .62em; vertical-align: 0; font-weight: 700; }   /* the full stop after the whole word */
.bar__brand svg { width: 18px; height: 18px; color: var(--accent-soft); }

.bar__progress { display: flex; gap: 3px; justify-content: center; }
.bar__progress i { width: 4px; height: 4px; background: var(--ink-faint); transition: background .3s; }
.bar__progress i.is-on { background: var(--accent); }
.bar__menu { display: grid; gap: 4px; place-content: center; height: 100%; min-width: 44px; min-height: 40px; }
.bar__menu span { display: block; width: 14px; height: 1px; background: var(--ink); transition: transform .45s cubic-bezier(.22,1,.36,1), width .45s cubic-bezier(.22,1,.36,1); }
.bar__menu:hover span:first-child { width: 18px; } .bar__menu:hover span:last-child { width: 10px; }

/* ============================================================
   Placeholder "type" — bars standing in for copy
   ============================================================ */
.placeholder { display: flex; flex-direction: column; gap: .55em; }
.ln { display: block; height: .72em; background: var(--ink); opacity: .72; }
.lead .ln { height: .9em; }
.body .ln, .card__body .ln, .row__desc .ln { opacity: .38; }
.w100 { width: 100%; } .w95 { width: 95%; } .w90 { width: 90%; } .w85 { width: 85%; }
.w80 { width: 80%; } .w75 { width: 75%; } .w70 { width: 70%; } .w65 { width: 65%; }
.w60 { width: 60%; } .w55 { width: 55%; } .w50 { width: 50%; } .w40 { width: 40%; }

.pw { display: inline-block; height: .78em; background: currentColor; }
/* wordmark slot: outlined box with registration ticks — where the name will go */
.slot { position: relative; display: inline-block; width: 6.4em; height: .82em; border: 1px solid currentColor; opacity: .9; }
.slot--s { width: 4.2em; }
.slot--fill { background: currentColor; border-color: transparent; }
.slot b { position: absolute; width: .09em; height: .09em; border: 1px solid currentColor; }
.slot b:nth-child(1) { top: -.05em; left: -.05em; border-right: 0; border-bottom: 0; }
.slot b:nth-child(2) { top: -.05em; right: -.05em; border-left: 0; border-bottom: 0; }
.slot b:nth-child(3) { bottom: -.05em; left: -.05em; border-right: 0; border-top: 0; }
.slot b:nth-child(4) { bottom: -.05em; right: -.05em; border-left: 0; border-top: 0; }
.pw--serif { height: .7em; background: var(--ink); opacity: .85; }

.bar-text { display: inline-block; height: 1em; background: var(--ink); opacity: .85; }
.bar-text--s  { width: 6ch; height: .7em; }
.bar-text--l  { width: 5.2em; height: 1em; }
.bar-text--xl { width: 8em; height: 1em; }

.mono-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); line-height: 1; white-space: nowrap;
}
.mono-tag--box { padding: 5px 8px 4px; border: 1px solid var(--ink-dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   Layout primitives
   ============================================================ */
main { position: relative; z-index: 2; }
section { position: relative; padding-left: var(--frame); padding-right: var(--frame); }

.block { padding-top: 22vh; padding-bottom: 22vh; }
.block__head {
  display: grid; justify-items: center; gap: 4px;
  margin-bottom: clamp(40px, 8vh, 96px);
  text-align: center;
}
.block__num {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--accent-soft); letter-spacing: .02em;
}
.block__label { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 52px); line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.block__head--center .block__label:not(.block__label--xl) { font-size: clamp(32px, 3.6vw, 56px); }

.grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.col--lead { grid-column: 1 / span 6; }
.col--body { grid-column: 7 / span 6; padding-top: 4.5em; position: relative; }
.col--body .mono-tag { position: absolute; left: -9ch; top: 5.0em; }
.lead { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.35; }
.body { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; color: var(--ink); opacity: .82; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  height: 100vh; min-height: 640px;
  display: grid; align-content: end;
  padding-bottom: calc(var(--frame) - 6px);
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: .98; letter-spacing: -.01em;
  color: var(--ink);
  position: relative;
  display: grid; gap: .08em; justify-items: start;
}
.hero__row { display: flex; align-items: center; gap: .3em; }
.hero__title h1 { font: inherit; margin: 0; display: inline-block; }
.hero__tags {
  display: flex; align-items: center;
  border: 1px solid var(--ink); font-family: var(--mono); font-size: clamp(11px, .22em, 18px); letter-spacing: .08em;
  color: var(--ink); height: .62em; padding: 0 .16em 0 .18em; gap: .14em; font-weight: 400;
}
.hero__tags b { display: grid; gap: 2px; border-left: 1px solid var(--ink); padding-left: .5em; height: 100%; align-content: center; font-weight: 400; }
.hero__tags b i { font-style: normal; font-size: .58em; line-height: 1; letter-spacing: .12em; }
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: .40em; line-height: 1.15; letter-spacing: 0; color: var(--ink); max-width: 24ch; margin: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__meta {
  position: absolute; right: 0; bottom: .2em;
  display: grid; gap: 6px; justify-items: end;
  font-family: var(--mono); font-size: 10px; color: var(--ink-dim);
}
.hero__meta span { display: block; letter-spacing: .12em; text-transform: uppercase; }
.mask-hover { position: relative; display: inline-block; }
.mask-normal, .mask-blur { display: inline-block; }
.mask-blur {
  position: absolute; inset: 0; color: var(--accent);
  filter: blur(10px); opacity: .7;
}
.mask-blur {
  -webkit-mask-image: radial-gradient(circle var(--radius, 0px) at var(--x, 50%) var(--y, 50%), #000 0 60%, transparent 100%);
          mask-image: radial-gradient(circle var(--radius, 0px) at var(--x, 50%) var(--y, 50%), #000 0 60%, transparent 100%);
  transition: --radius .3s;
}
.hero__cue {
  position: absolute; bottom: calc(var(--frame) + 8px); left: 50%; transform: translateX(-50%);
}
.hero__cue span {
  display: block; width: 1px; height: 28px; background: var(--accent);
  animation: cue 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(.2); opacity: .3 } 50% { transform: scaleY(1); opacity: 1 } }

/* ============================================================
   Manifesto — a quiet 130vh where the sentence forms in the field
   ============================================================ */
.manifesto { height: 130vh; }

/* ============================================================
   Journey — 320vh of scroll scrubbing one shot; a sticky HUD adds detail
   ============================================================ */
.journey { height: 720vh; padding: 0; }   /* 16 s of footage; at a reading scroll this is close to real time */
.journey__hud { position: sticky; top: 0; height: 100vh; pointer-events: none; }
.hud { position: absolute; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--accent-soft); letter-spacing: .06em; }
.hud--tl { top: calc(var(--frame) + 20px); left: var(--frame); }
.hud--tr { top: calc(var(--frame) + 20px); right: var(--frame); }
.hud__tc { font-variant-numeric: tabular-nums; }
.hud__rail { display: block; width: 120px; height: 1px; background: var(--ink-faint); position: relative; }
.hud__rail i { position: absolute; left: 0; top: -1px; height: 3px; width: 0%; background: var(--accent); }
.hud__num { font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.hud--cap { width: min(300px, 40vw); align-items: flex-start; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s; }
.hud--cap p { font-family: var(--sans); font-weight: 300; font-size: 13px; line-height: 1.45; letter-spacing: 0; color: var(--ink); margin: 0; }
.hud--cap p em { font-family: var(--serif); font-style: italic; font-size: 1.25em; color: var(--ink); }
.hud--cap.is-on { opacity: 1; transform: none; }
.hud--cap1 { left: var(--frame); bottom: 24vh; }
.hud--cap2 { right: var(--frame); top: 34vh; }
.hud--cap3 { left: 50%; transform: translate(-50%, 12px); bottom: 18vh; text-align: center; align-items: center; }
.hud--cap3.is-on { transform: translate(-50%, 0); }
.hud--reticle { left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); opacity: .6; }
.hud--reticle i { position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent-soft); }
.hud--reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud--reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud--reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud--reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ============================================================
   Statement
   ============================================================ */
.statement {
  min-height: 120vh; display: grid; place-items: center; text-align: center;
}
.statement__stack {
  display: grid; justify-items: center; gap: .05em;
  font-family: var(--serif); font-size: clamp(64px, 12vw, 180px); line-height: .95;
  width: min(100%, 16ch);
}
.statement__line { display: block; width: 100%; text-align: center; letter-spacing: -.02em; }
.statement__line--small { font-size: .38em; font-style: italic; letter-spacing: 0; margin-top: .3em; }
.statement__line.is-blur { filter: blur(5px); opacity: .6; transition: filter .6s, opacity .6s; }
.statement:hover .statement__line.is-blur { filter: blur(0); opacity: .9; }

/* ============================================================
   Cards
   ============================================================ */
.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.card { display: grid; gap: 18px; align-content: start; }
.card .mono-tag--box { justify-self: start; }
.card__media {
  aspect-ratio: 4 / 3; width: 100%;
  border: 1px solid var(--ink-faint);
  background: #000;
  position: relative; overflow: hidden;
}
.card__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__title { font-size: clamp(16px, 1.3vw, 20px); font-weight: 400; margin-top: 6px; letter-spacing: .01em; }
.card__body { font-family: var(--serif); font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-dim); }

/* ============================================================
   Index list
   ============================================================ */
.filters { display: grid; gap: 10px; justify-content: flex-start; max-width: var(--max); margin: 0 auto 40px; font-family: var(--mono); font-size: 12px; color: var(--accent-soft); }
.filters .chip { display: flex; align-items: center; gap: 10px; width: auto; height: auto; border: 0; }
.filters .chip::before { content: "->"; color: var(--accent-soft); }
.filters .chip span { color: var(--ink); opacity: .75; letter-spacing: .06em; text-transform: uppercase; }
.filters .chip.is-active span { color: var(--accent-soft); opacity: 1; }
.prompt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; width: min(360px, 100%); padding: 0 18px; margin: 10px auto 0 0;
  border: 1px solid rgba(236,232,223,.18); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: none;
  transition: border-color .25s, color .25s;
}
.prompt:hover, .prompt:focus-visible { border-color: var(--accent-soft); color: var(--accent-soft); outline: none; }
.prompt span { opacity: .8; } .prompt b { font-weight: 400; color: var(--accent-soft); }
.index { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--ink-faint); }
.row {
  display: grid; grid-template-columns: 3fr 4fr 1fr 32px; gap: var(--gutter); align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--ink-faint);
  transition: background .25s;
}
.row:hover { background: rgba(61,90,254,.06); }
.row__title { font-size: 15px; font-weight: 400; letter-spacing: .01em; }
.row__desc { font-family: var(--serif); font-size: 15px; color: var(--ink-dim); }
.row__tag { justify-self: start; margin-top: 2px; }
.row__arrow { justify-self: end; color: var(--accent-soft); font-family: var(--mono); font-size: 14px; }
.more { display: flex; justify-content: center; margin-top: 48px; }
.more a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent-soft); text-decoration: none; }
.more a:hover { color: var(--ink); }

/* ============================================================
   Team
   ============================================================ */
.team {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.team--founder { grid-template-columns: 4fr 3fr 3fr 3fr; align-items: start; }
.founder { margin: 0; display: grid; gap: 12px; grid-row: span 1; }
.founder .box__media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: #000; border: 1px solid var(--ink-faint); clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.22,1,.36,1); }
.founder.is-in .box__media { clip-path: inset(0); }
.founder .box__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder figcaption { display: grid; gap: 6px; }
.founder__note { color: var(--ink-dim); }
.person { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink-faint); }
.person__photo {
  aspect-ratio: 3 / 4; width: 100%;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.6)),
    repeating-linear-gradient(0deg, var(--ink-faint) 0 1px, transparent 1px 6px);
  border: 1px solid var(--ink-faint);
}
.person__name { display: block; font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: .01em; color: var(--ink); }
.person__role { font-family: var(--serif); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.4; color: var(--ink); opacity: .75; margin: 0; }

/* ============================================================
   Close
   ============================================================ */
.close {
  min-height: 90vh; display: grid; align-content: center; justify-items: center; gap: 48px;
  padding-bottom: 16vh;
}
.close__mark {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 96px); line-height: .9; letter-spacing: -.02em;
  color: var(--ink);
}
.close__meta { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.close__line { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 26px); color: var(--ink); opacity: .85; text-align: center; margin: -16px 0 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .bar { top: auto; bottom: 14px; width: auto; grid-template-columns: 1fr; padding: 0 18px; }
  .bar__menu, .bar__progress { display: none; }
  .bar__links { gap: 16px; }
  .bar__cta { padding: 0 14px; }
  .hero__meta { display: none; }
  .hero { padding-bottom: calc(var(--frame) + 64px); }
  .hero__tagline { font-size: .46em; }
  .hud--cap { width: min(260px, 70vw); }
  .hud--cap2 { top: auto; bottom: 36vh; right: var(--frame); }
  .hud--tr { display: none; }                                    /* the frame counter is noise on a phone */
  .hud--reticle { width: 34px; height: 34px; }
  .ld__bar { gap: 12px; }
  .col--lead, .col--body { grid-column: 1 / -1; }
  .col--body { padding-top: 0; }
  .col--body .mono-tag { position: static; display: block; margin-bottom: 12px; }
  .cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row__arrow { justify-self: start; }
  .team, .team--founder { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .statement__stack { width: 100%; }
  .bar__brand-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cue span { animation: none; }
}

/* ============================================================
   Cursor — dot + lagging ring + one word (see src/cursor.js)
   ============================================================ */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .box, .has-cursor .rowx { cursor: none; }
.cur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.cur.is-on { opacity: 1; }
.cur__dot, .cur__ring { position: absolute; left: 0; top: 0; display: block; border-radius: 50%; will-change: transform; }
.cur__dot { width: 5px; height: 5px; margin: -2.5px; background: var(--ink); transition: width .25s, height .25s, margin .25s, background .4s; }
.cur__ring { width: 34px; height: 34px; margin: -17px; border: 1px solid var(--accent-soft); background: rgba(61,90,254,0); box-sizing: border-box;
  transition: width .4s cubic-bezier(.22,1,.36,1), height .4s cubic-bezier(.22,1,.36,1), margin .4s cubic-bezier(.22,1,.36,1), background .35s ease, border-color .35s ease; }
.cur__label { position: absolute; left: 50%; top: 50%; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .25s ease; white-space: nowrap; }
.cur.is-hover .cur__ring { width: 58px; height: 58px; margin: -29px; background: rgba(61,90,254,.92); border-color: transparent; }
.cur.is-hover .cur__label { opacity: 1; transition-delay: .1s; }
.cur.is-hover .cur__dot { width: 0; height: 0; margin: 0; }
.cur.is-down .cur__dot { width: 12px; height: 12px; margin: -6px; }
.cur.is-down .cur__ring { width: 26px; height: 26px; margin: -13px; }
.cur.is-hover.is-down .cur__ring { width: 50px; height: 50px; margin: -25px; }
body.is-light .cur__ring { border-color: var(--accent); }
body.is-light .cur__label { color: #ece8df; }
.bar__cta, .bar__links a, .bar__brand, .close__meta a { transition: transform .5s cubic-bezier(.22,1,.36,1), background .25s, color .25s; will-change: transform; }
@media (pointer: coarse) { .cur { display: none; } }
.cur.is-small .cur__ring { width: 22px; height: 22px; margin: -11px; background: rgba(61,90,254,.9); border-color: transparent; }
.cur.is-small .cur__dot { width: 0; height: 0; margin: 0; }
.cur.is-inverse .cur__ring { background: rgba(236,232,223,.94); }
.cur.is-inverse .cur__label { color: var(--accent); }

/* ============================================================
   Loader — one blue hairline drawing across the black (see src/loader.js)
   ============================================================ */
.ld { position: fixed; inset: 0; z-index: 80; background: var(--bg); pointer-events: none; transition: opacity 1s ease .15s; }
.ld.is-out { opacity: 0; }
.ld__field { position: absolute; inset: 0; display: block; transition: opacity .6s ease; }
.ld__word { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.ld__mark { font-family: var(--serif); font-size: clamp(56px, 11vw, 150px); letter-spacing: 0; color: var(--ink); line-height: 1; transform: translateY(1%); }
.ld__mark i { font-style: normal; color: var(--accent-soft); font-family: var(--mono); font-size: .62em; font-weight: 700; vertical-align: 0; margin: 0 .05em; }
.ld.is-out .ld__word { transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .9s ease; transform: translateY(-2%) scale(1.02); opacity: 0 !important; }
.ld__bar { position: absolute; left: var(--frame); right: var(--frame); bottom: calc(var(--frame) - 6px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.ld__tag, .ld__pct { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink); opacity: .85; font-variant-numeric: tabular-nums; }
.ld__pct { color: var(--accent-soft); }
.ld__line { display: block; height: 1px; background: var(--ink-faint); position: relative; overflow: hidden; }
.ld__line b { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(0); box-shadow: 0 0 12px rgba(61,90,254,.7); }
.ld.is-out .ld__line b { transition: transform 1s cubic-bezier(.22,1,.36,1); transform-origin: right center; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .ld__field, .ld__word { display: none; } }
.is-loading .cur { opacity: 0 !important; }
.is-loading .bar, .is-loading .bar__brand, .is-loading .bar__cta, .is-loading .frame { opacity: 0; }
.bar, .bar__brand, .bar__cta, .frame { transition: opacity .9s ease .35s; }

.bar { grid-template-columns: 1fr 92px 44px; width: min(540px, calc(100vw - 2 * var(--frame))); }
@media (max-width: 900px) { .bar { grid-template-columns: 1fr; } }
/* ============================================================
   Access — skip link, focus, hit areas, reduced motion
   ============================================================ */
.skip { position: fixed; left: var(--frame); top: -60px; z-index: 90; padding: 10px 14px; background: var(--accent); color: var(--bg); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; transition: top .25s; }
.skip:focus { top: 14px; }
:focus-visible { outline: 1.5px solid var(--accent-soft); outline-offset: 4px; border-radius: 2px; }
.bar__links a:focus-visible, .bar__cta:focus-visible { outline: 1.5px solid var(--accent-soft); outline-offset: 4px; }
.bar__links a { padding: 8px 2px; }                     /* ≥24 px hit area */
@media (prefers-reduced-motion: reduce) {
  .is-split .w > span, .js-reveal, .rowx__title, .box__media, .box figcaption { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .dc.is-x { display: none; }
}

/* ============================================================
   Veils — menu + contact panel
   ============================================================ */
.veil { position: fixed; inset: 0; z-index: 70; display: grid; align-content: center; padding: var(--frame); background: rgba(5,6,10,.58); -webkit-backdrop-filter: blur(4px) saturate(1.1); backdrop-filter: blur(4px) saturate(1.1); opacity: 0; transition: opacity .5s ease; }   /* the field stays alive behind the veil; it spells the link you hover */
.veil.is-open { opacity: 1; }
.veil[hidden] { display: none; }
.veil__close { position: absolute; top: 14px; right: var(--frame); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(236,232,223,.2); color: var(--ink); font-size: 22px; line-height: 1; display: grid; place-items: center; }
.veil__nav { display: grid; gap: .08em; }
.veil__nav a { position: relative; font-family: var(--serif); font-size: clamp(48px, 9vw, 140px); line-height: 1; letter-spacing: -.02em; color: var(--ink); text-decoration: none; padding-left: 2.2em; transform: translateY(24px); opacity: 0; transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .6s, color .3s; }
.veil.is-open .veil__nav a { transform: none; opacity: 1; }
.veil.is-open .veil__nav a:nth-child(2) { transition-delay: .06s; } .veil.is-open .veil__nav a:nth-child(3) { transition-delay: .12s; } .veil.is-open .veil__nav a:nth-child(4) { transition-delay: .18s; }
.veil__nav a:hover, .veil__nav a:focus-visible { color: var(--accent-soft); outline: none; }
.veil__nav a::after { content: ''; position: absolute; left: 1.55em; top: 50%; width: .14em; height: .14em; border-radius: 50%; background: var(--accent-soft); transform: translateY(-50%) scale(0); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.veil__nav a:hover::after, .veil__nav a:focus-visible::after { transform: translateY(-50%) scale(1); }
.veil__num { position: absolute; left: 0; top: .32em; font-family: var(--mono); font-size: .16em; letter-spacing: .14em; color: var(--accent-soft); }
.veil__meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8vh; }
.veil__meta a { text-decoration: none; color: var(--accent-soft); }
.veil--talk { justify-items: center; }
.talk { width: min(620px, 100%); display: grid; gap: 22px; }
.talk__lead { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 0 0 8px; }
.talk__field { display: grid; gap: 8px; }
.talk__field input, .talk__field textarea { background: none; border: 0; border-bottom: 1px solid rgba(236,232,223,.25); color: var(--ink); font-family: var(--serif); font-size: clamp(20px, 1.6vw, 26px); padding: 6px 0 10px; outline: none; resize: vertical; transition: border-color .3s; }
.talk__field input:focus, .talk__field textarea:focus { border-bottom-color: var(--accent-soft); }
.talk__field input:user-invalid, .talk__field textarea:user-invalid { border-bottom-color: #ff4fd8; }   /* the ink palette's magenta says 'missing', no red box */
.talk__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.talk__send { height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--bg); font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; transition: background .25s, color .25s, transform .4s cubic-bezier(.22,1,.36,1); }
.talk__send:hover { background: var(--ink); transform: translateX(4px); }
.talk__note a { color: var(--accent-soft); text-decoration: none; }
.talk__done { color: var(--accent-soft); animation: talk-done .9s cubic-bezier(.22,1,.36,1) both; }
@keyframes talk-done { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.talk__done[hidden], .veil[hidden] { display: none !important; }
.has-veil main, .has-veil .bar, .has-veil .bar__brand, .has-veil .bar__cta { filter: blur(0); }
@media (max-width: 900px) { .veil__nav a { padding-left: 1.6em; } .bar__menu { display: grid; } }

/* ============================================================
   Sound toggle
   ============================================================ */
.snd { display: flex; align-items: center; justify-content: center; height: 100%; }
.snd__btn { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 8px; color: var(--ink); opacity: .8; transition: opacity .3s; }
.snd__btn:hover { opacity: 1; }
.snd__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.snd__bars b { display: block; width: 2px; height: 3px; background: var(--accent-soft); transition: height .3s; }
.snd.is-on .snd__bars b { animation: snd 1.1s ease-in-out infinite; }
.snd.is-on .snd__bars b:nth-child(2) { animation-delay: .15s; } .snd.is-on .snd__bars b:nth-child(3) { animation-delay: .3s; } .snd.is-on .snd__bars b:nth-child(4) { animation-delay: .45s; }
@keyframes snd { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.snd__label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .snd { display: none; } }
@media (prefers-reduced-motion: reduce) { .snd.is-on .snd__bars b { animation: none; height: 8px; } }

/* the small things a jury notices */
::selection { background: var(--accent); color: #fff; }
.hero__hint { position: fixed; right: var(--frame); bottom: calc(var(--frame) - 4px); z-index: 5; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); opacity: 0; transition: opacity .8s ease 1.6s; pointer-events: none; }
.hero__hint i { display: block; width: 1px; height: 28px; background: linear-gradient(180deg, var(--accent-soft), transparent); animation: hint-fall 1.8s ease-in-out infinite; }
@keyframes hint-fall { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
html:not(.is-loading) .hero__hint { opacity: .9; }
html.has-scrolled .hero__hint, .is-loading .hero__hint { opacity: 0 !important; transition-delay: 0s; }
noscript .nojs { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg) url('assets/noir/poster.jpg') center / cover no-repeat; color: var(--ink); font-family: var(--serif); font-size: 22px; text-align: center; padding: 40px; }
@media (prefers-reduced-motion: reduce) { .hero__hint i { animation: none; } }
