/* =========================================================
   AXANTUR · landing page
   Palette: near-black #141313, warm black #231f20, off-white #f4f4f9,
   plum #593f62 (fills) with light plum #b9a0c2 (text and lines), red #f24333 (live / signal).
   Type: Space Grotesk (display + text), Archivo (wordmark only),
   IBM Plex Mono (labels, data).
   Rules: 1px hairlines, never shadows. Flat fills, no UI gradients.
   12-column grid, left-weighted; spacing between sections varies on purpose.
   ========================================================= */
:root {
  --bg: #141313;
  --bg-2: #231f20;
  --planet: #231f20;
  --ink: #f4f4f9;
  --ink-2: #d2d2d6;                    /* off-white at ~85% */
  --muted: #96959a;                    /* off-white at ~58% */
  --faint: #5f5d60;
  --line: rgba(244, 244, 249, 0.62);   /* major rules */
  --rule: rgba(244, 244, 249, 0.14);   /* row hairlines */
  --accent: #593f62;
  --accent-2: #b9a0c2;                 /* light plum: text, hairlines and small marks on dark */
  --accent-ink: #f4f4f9;               /* text on a plum fill */
  --live: #f24333;

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --brand: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1400px;
  --gap: clamp(1rem, 2vw, 2rem);
  --r: 2px;
  --ticker-h: 44px;

  /* deliberately uneven section rhythm */
  --sp-1: clamp(2.5rem, 5vw, 4rem);
  --sp-2: clamp(4rem, 8vw, 7rem);
  --sp-3: clamp(6rem, 12vw, 10rem);
  --sp-4: clamp(8rem, 18vw, 16rem);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1px solid var(--accent-2); outline-offset: 3px; border-radius: var(--r); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id], div[id] { scroll-margin-top: calc(var(--ticker-h) + 4rem); }

/* ---------- atmosphere ---------- */
/* nebula glows behind the stars.
   - scroll: script.js sets --np (0 → 1 page progress); each layer drifts up by its own --drift (transform)
   - idle: each layer floats slowly on its own loop (translate) and cycles red → chartreuse → white (--c)
   layers are oversized (20vw spare each side, 60vh below) so the float never exposes an edge */
@property --c { syntax: "<color>"; inherits: false; initial-value: rgba(242, 67, 51, 0.14); }
.nebula { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.nebula i {
  position: absolute; left: -20vw; top: 0; width: 140vw; height: 160vh;
  background: radial-gradient(var(--size) at var(--at), var(--c), transparent 70%);
  transform: translate3d(0, calc(var(--np, 0) * var(--drift)), 0); will-change: transform, translate;
  animation:
    nebula-float var(--float-t) ease-in-out infinite alternate,
    nebula-tint 72s linear infinite;
}
.nebula i:nth-child(1) { --drift: -18vh; --size: 60vw 50vh; --at: 98vw 18vh; --mx: -9vw; --my: 6vh;  --float-t: 41s; animation-delay: 0s, 0s; }
.nebula i:nth-child(2) { --drift: -32vh; --size: 50vw 45vh; --at: 32vw 62vh; --mx: 8vw;  --my: -7vh; --float-t: 53s; animation-delay: -12s, -24s; }
.nebula i:nth-child(3) { --drift: -10vh; --size: 40vw 35vh; --at: 80vw 95vh; --mx: -6vw; --my: -9vh; --float-t: 47s; animation-delay: -30s, -48s; }
@keyframes nebula-float { from { translate: 0 0; } to { translate: var(--mx) var(--my); } }
/* each colour at its own strength: plum needs more opacity than red or white to show on near-black */
@keyframes nebula-tint {
  0%, 100% { --c: rgba(242, 67, 51, 0.15); }
  33%      { --c: rgba(89, 63, 98, 0.45); }
  66%      { --c: rgba(244, 244, 249, 0.07); }
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer { position: relative; z-index: 4; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.35rem;
  background: var(--accent); color: var(--accent-ink);
  font: 700 0.88rem/1 var(--display);
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  border: 1px solid var(--accent); border-radius: var(--r); cursor: pointer;
  transition: border-color 0.35s, color 0.35s;
}
/* hover: a red ball grows from where the pointer came in until it fills the button,
   and shrinks back out toward where it leaves. script.js sets --x/--y (entry/exit point)
   and --d (a diameter big enough to cover the button from any corner). */
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%);
  width: var(--d, 300%); aspect-ratio: 1; border-radius: 50%;
  background: var(--live);
  translate: -50% -50%; scale: 0;
  transition: scale 0.7s var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { scale: 1; }
.btn:hover, .btn:focus-visible { border-color: var(--live); color: var(--ink); }
.btn .arrow { width: 1.4rem; height: 0.75rem; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--small { padding: 0.68rem 0.95rem; font-size: 0.72rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }

.textlink { text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.textlink:hover { color: var(--ink); border-color: var(--accent-2); }

/* ---------- live news bar ---------- */
/* sits right under the landing screen; sticky makes it ride up with the page and lock to the top */
.ticker {
  position: sticky; top: 0; z-index: 50;
  height: var(--ticker-h);
  display: flex; align-items: stretch;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  /* rounded on the landing; flattens to square as it travels up (script.js sets --lp-p 0 → 1) */
  border-radius: calc(18px * (1 - var(--lp-p, 0))) calc(18px * (1 - var(--lp-p, 0))) 0 0;
  overflow: hidden;
}
.ticker__label {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.85rem;
  padding: 0 1rem 0 3.1vw;
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--live);
  border-right: 1px solid var(--line);
}
.ticker__dot { width: 8px; height: 8px; background: var(--live); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.marquee { flex: 1; min-width: 0; display: flex; overflow: hidden; align-items: stretch; }
.marquee__track { display: flex; flex: 0 0 auto; align-items: stretch; animation: scroll 90s linear infinite; }
.marquee__track li { display: flex; white-space: nowrap; font-size: 0.8rem; line-height: 1.4; color: var(--ink); }
/* each item, its leading "/" included, is one link filling the bar's height */
.marquee__track .item { display: flex; align-items: center; gap: 0.65rem; padding-right: 0.6rem; text-decoration: none; }
.marquee__track .item::before { content: "/"; margin: 0 1.1rem 0 1.5rem; color: var(--faint); font-family: var(--mono); }
.marquee__track b { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.marquee__track .src { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* underline the date, headline and source on hover, but not the "/" separator */
.marquee__track a.item:is(:hover, :focus-visible) :is(b, .t, .src) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------- top bar ---------- */
/* sits right under the live bar, scrolls up with it and then sticks just below it.
   The negative margin cancels its height, so it floats over the content instead of pushing it down. */
.topbar {
  --topbar-h: 4.25rem;
  position: sticky; z-index: 45;
  top: calc(var(--ticker-h) + env(safe-area-inset-top, 0px));
  height: var(--topbar-h); margin-bottom: calc(-1 * var(--topbar-h));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar { justify-content: flex-end; }   /* the logo lives in .topbar-brand */
/* the logo, on the same spot as the top bar but in its own strip. mix-blend-mode: difference flips it
   per pixel: white over the dark page, dark wherever it passes over white text. It has to sit outside
   .topbar, because .topbar's z-index makes its own layer and would hide the page from the blend. */
.topbar-brand {
  position: sticky; z-index: 46;
  top: calc(var(--ticker-h) + env(safe-area-inset-top, 0px));
  height: 4.25rem; margin-bottom: -4.25rem;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  mix-blend-mode: difference;
}
.topbar-brand .brand { pointer-events: auto; color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 0.75rem; }
.menu-open .topbar__cta { visibility: hidden; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--brand);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.15rem;
}
.brand__mark { width: 30px; height: 30px; }
.brand--sm { font-size: 0.95rem; }

/* menu button: label rolls Menu -> Close, two bars cross into an X */
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  height: 2.5rem; padding: 0 0.4rem 0 1rem;
  background: rgba(20, 19, 19, 0.6); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.menu-btn:hover { border-color: var(--accent-2); }
.menu-btn__label { display: grid; height: 1.1em; overflow: hidden; font-size: 0.7rem; line-height: 1.1; }
.menu-btn__label span { grid-area: 1 / 1; transition: transform 0.6s var(--ease-io); }
.menu-btn__label span + span { transform: translateY(110%); }
.menu-btn[aria-expanded="true"] .menu-btn__label span:first-child { transform: translateY(-110%); }
.menu-btn[aria-expanded="true"] .menu-btn__label span + span { transform: none; }
.menu-btn__icon {
  position: relative; width: 1.7rem; height: 1.7rem; border-radius: 1px;
  background: var(--accent); transition: background 0.3s, transform 0.6s var(--ease-io);
}
.menu-btn__icon i {
  position: absolute; left: 0.42rem; right: 0.42rem; height: 1.5px; background: var(--accent-ink);
  transition: transform 0.6s var(--ease-io);
}
.menu-btn__icon i:first-child { top: calc(50% - 3px); }
.menu-btn__icon i:last-child { top: calc(50% + 2px); }
.menu-btn:hover .menu-btn__icon { transform: rotate(90deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon { background: var(--ink); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i { background: var(--bg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  visibility: hidden; transition: visibility 0s 1.1s;
}
.menu.is-open { visibility: visible; transition-delay: 0s; }

/* two curtains slide down from the top: red first, then near-black over it */
.menu__curtain {
  position: absolute; inset: 0;
  transform: translateY(-101%);
  transition: transform 0.85s var(--ease-io);
}
.menu__curtain--a { background: var(--live); }
.menu__curtain--b { background: var(--bg); transition-delay: 0.1s; }
.menu.is-open .menu__curtain { transform: none; }
.menu:not(.is-open) .menu__curtain--a { transition-delay: 0.22s; }
.menu:not(.is-open) .menu__curtain--b { transition-delay: 0.12s; }

.menu__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--ticker-h) + env(safe-area-inset-top, 0px) + 6rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  max-width: var(--max); margin: 0 auto;
  overflow-y: auto;
}
.menu nav:focus { outline: none; }
/* row lines draw in left to right, in step with the words rising */
.menu__list { position: relative; }
.menu__list::before, .menu__item::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-io);
}
.menu__list::before { top: 0; }
.menu__item { position: relative; display: flex; align-items: center; gap: 2rem; }
.menu__item::after { bottom: 0; }
.menu.is-open .menu__list::before { transform: none; transition: transform 1.1s var(--ease-io) 0.35s; }
.menu.is-open .menu__item::after { transform: none; transition: transform 1.1s var(--ease-io) calc(0.42s + var(--row, 0) * 0.07s); }
.menu__item > a:focus-visible { outline: none; }
.menu__item > a {
  display: flex; align-items: flex-start; gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(0.9rem, 2vh, 1.4rem) 0;
  text-decoration: none; transition: opacity 0.45s var(--ease);
}
.menu__n { color: var(--accent-2); font-size: 0.72rem; padding-top: 0.5em; min-width: 2ch; }
.menu__mask {
  display: block; overflow: hidden;
  font-weight: 700;
  font-size: clamp(2.4rem, min(8.5vw, 11vh), 7.5rem); line-height: 1; height: 1.04em; letter-spacing: -0.04em;
}
.menu__text { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease-io); }
.menu.is-open .menu__text { transform: none; transition-delay: calc(0.35s + var(--row, 0) * 0.07s); }

/* letters roll up on hover, revealing a green copy underneath (text-shadow used as a duplicate glyph, not a shadow) */
.menu__text .ch {
  display: inline-block; white-space: pre;
  text-shadow: 0 1.04em 0 var(--accent-2);
  transition: transform 0.55s var(--ease-io);
  transition-delay: calc(var(--i) * 22ms);
}
.menu__item > a:hover .ch, .menu__item > a:focus-visible .ch { transform: translateY(-1.04em); }
.menu__list:hover .menu__item > a { opacity: 0.28; }
.menu__list:hover .menu__item:hover > a { opacity: 1; }

.menu__sub { display: flex; flex-direction: column; gap: 0.35rem; overflow: hidden; padding: 0.25rem 0; }
.menu__sub li { transform: translateX(-1.5rem); opacity: 0; transition: transform 0.55s var(--ease-io), opacity 0.35s; }
.menu__item--has-sub:hover .menu__sub li,
.menu__item--has-sub:focus-within .menu__sub li { transform: none; opacity: 1; }
.menu__sub li:nth-child(2) { transition-delay: 0.06s; }
.menu__sub li:nth-child(3) { transition-delay: 0.12s; }
.menu__sub a {
  display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none;
  font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: var(--muted); transition: color 0.3s;
}
.menu__sub a span { color: var(--accent-2); font-size: 0.65rem; }
.menu__sub a:hover { color: var(--ink); }

.menu__foot {
  display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap;
  margin-top: 2.5rem; color: var(--muted); font-size: 0.66rem;
  opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s var(--ease);
}
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: 0.75s; }

@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* mission: solid warm-black block right under the live bar (straight top),
   ending in a planet's curved underside with a single hairline */
.planet {
  position: relative; z-index: 2; overflow-x: clip;
  min-height: calc(100svh - var(--ticker-h));
  padding: calc(4.25rem + var(--sp-1)) var(--gutter) calc(var(--sp-2) + 5vw);   /* top clears the sticky top bar */
  display: flex; flex-direction: column;
}
.planet::before {
  content: ""; position: absolute; left: 50%; width: 170vw; transform: translateX(-50%);
  border-radius: 0 0 50% 50% / 0 0 26vw 26vw; pointer-events: none;
  z-index: -1; top: 0; bottom: 0;
  background: var(--planet);
  border: 1px solid var(--line); border-top: 0;
}
.intro {
  flex: 1; width: 100%;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-rows: auto auto auto 1fr;      /* label, lede, body, then the foot sinks to the bottom */
}
/* mission: left half empty for now, everything on the right half (columns 7–12):
   label, the two key sentences (setup dimmed), the supporting sentence, and the foot at the bottom */
.intro > * { grid-column: 7 / -1; }
/* left half: the title, rising line by line when it scrolls into view (script.js adds .is-in) */
.intro .intro__title {
  grid-column: 1 / span 6; grid-row: 1 / span 3; align-self: start;
  font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: 0.9; letter-spacing: -0.05em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: block; transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.l2 > span { animation-delay: 0.12s; color: var(--accent-2); }
@keyframes rise { to { transform: none; } }
.js .intro__title:not(.is-in) .line > span { animation-play-state: paused; }
.intro .intro__label { grid-column: 7 / -1; grid-row: 1; margin-bottom: 1.5rem; }   /* beats .who__label (full width) */
.intro__lede {
  grid-row: 2;
  font-size: clamp(1.2rem, 1.75vw, 1.6rem); line-height: 1.25; font-weight: 500;
  letter-spacing: -0.015em; text-wrap: pretty;
}
.intro__setup { color: var(--muted); }
.intro__body {
  grid-row: 3;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ink-2); font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.6; text-wrap: pretty;
}
.intro__foot {
  grid-row: 4; align-self: end;
  margin-top: var(--sp-1); padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap;
}
.intro__by { color: var(--muted); font-size: 0.72rem; }
.intro__ctas { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- sections: 12-col grid, every child placed on purpose ---------- */
.section {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
}
.section > * { grid-column: 1 / -1; }

/* section header: a full-width hairline with the number and the name sitting together on the left */
.sec-head {
  display: flex; align-items: baseline; gap: 1.25rem; grid-column: 1 / -1;
  position: relative; padding-top: 0.85rem;
  margin-bottom: var(--sp-2);
}
/* section-header hairlines: drawn from the middle outwards when they scroll into view (quick),
   labels follow a beat later. The .reveal fade is switched off here so only the line moves. */
.sec-head::before, .who__label::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
}
.js .sec-head.reveal, .js .who__label.reveal { opacity: 1; transform: none; transition: none; }
.js .sec-head::before, .js .who__label::before { transform: scaleX(0); transform-origin: center; transition: transform 0.55s var(--ease-io); }
.js .sec-head.is-in::before, .js .who__label.is-in::before { transform: none; }
.js .sec-head span { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s var(--ease); }
.js .sec-head.is-in span { opacity: 1; transform: none; transition-delay: 0.25s; }
.js .sec-head.is-in span + span { transition-delay: 0.32s; }
.js .who__label { color: transparent; transition: color 0.35s; }
.js .who__label.is-in { color: var(--accent-2); transition-delay: 0.25s; }
.sec-head span { font-size: 0.7rem; }
.sec-head span:first-child { color: var(--accent-2); }
.sec-head span:last-child { color: var(--ink-2); }

.h2 {
  font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance;
}
.h3 { font-weight: 700; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
.body { color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.18rem); }
.small { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.kicker { color: var(--accent-2); font-size: 0.7rem; margin-bottom: 1rem; }

/* 01 problem: lots of air above, text runs long and ragged on the left 10 columns */
.problem { padding-top: var(--sp-4); padding-bottom: var(--sp-2); }
.problem .sec-head { margin-bottom: var(--sp-1); }
/* sits on the left half of the page */
.scrub {
  grid-column: 1 / span 6;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.025em;
}
.js .scrub .w { opacity: 0.16; transition: opacity 0.25s; }
.js .scrub .w.on { opacity: 1; }

/* 02 service: heading left 7, body dropped low on the right 4 */
.service { padding-top: var(--sp-2); padding-bottom: var(--sp-1); }
.service__title { grid-column: 1 / span 7; }
.service__body { grid-column: 9 / -1; align-self: end; padding-bottom: 0.4rem; }

/* A · coverage table: narrow note in the left rail, table across the other 9 */
.coverage {
  display: grid; grid-template-columns: subgrid; grid-column: 1 / -1;
  margin-top: var(--sp-3);
}
.aside { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--ticker-h) + 5.5rem); padding-right: 1rem; }
.regimes { grid-column: 4 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.regimes thead th {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: bottom;
}
.regimes tbody th, .regimes td { padding: 1.05rem 1.25rem 1.05rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.regimes tbody tr:last-child > * { border-bottom: 0; }
.regimes tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.regimes tbody th .mono { display: block; color: var(--accent-2); font-size: 0.62rem; margin-bottom: 0.3rem; }
.regimes td { color: var(--ink-2); }
.regimes td:last-child { color: var(--ink); }
.regimes tbody tr { transition: background 0.25s; }
.regimes tbody tr:hover { background: rgba(244, 244, 249, 0.035); }


/* 03 process: big gap above, heading pinned in the left 5, steps in the right 6 */
.process { padding-top: var(--sp-4); padding-bottom: var(--sp-3); }
.process__title { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--ticker-h) + 5.5rem); font-size: clamp(2.1rem, 3.8vw, 3.6rem); padding-right: 1rem; }
.steps { grid-column: 7 / -1; position: relative; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.steps__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.steps__fill { position: absolute; inset: 0; background: var(--accent-2); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step {
  position: relative; display: grid; grid-template-columns: clamp(4.5rem, 9vw, 8rem) 1fr; gap: 1.25rem; align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--line);
}
.step:first-of-type { border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: clamp(1.75rem, 3.5vw, 2.75rem); left: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
  width: 9px; height: 9px; margin: 0.6rem 0 0 -4px;
  border: 1px solid var(--accent-2); background: var(--bg); transition: background 0.4s;
}
.step__n {
  font-weight: 700; font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--muted); transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.step h3 { font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 0.5rem; }
.step p { color: var(--muted); max-width: 32rem; }
.step.is-lit::before { background: var(--accent-2); }
.step.is-lit .step__n { color: var(--accent-2); -webkit-text-stroke-color: var(--accent-2); }

/* 04 team: same split as the process section: heading pinned in the left 5, people in the right 6,
   one hairline row each (photo, then name / role / bio) */
.team { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.team__title { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--ticker-h) + 5.5rem); font-size: clamp(2.1rem, 3.8vw, 3.6rem); padding-right: 1rem; }
.members { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.member {
  display: grid; grid-template-columns: clamp(6rem, 11vw, 9rem) 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line);
}
.member__photo {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r);
  border: 1px dashed var(--line); display: flex; align-items: flex-end; padding: 0.6rem;
  color: var(--muted);
}
.member__photo .mono { font-size: 0.6rem; }
img.member__photo { border-style: solid; border-color: var(--rule); padding: 0; }
.member__name { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.member__role { margin-top: 0.35rem; color: var(--accent-2); font-size: 0.66rem; }
.member__bio { margin-top: 0.9rem; color: var(--ink-2); font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.6; max-width: 34rem; }

/* who: right under the problem, mirrored onto the right half (problem left | who right) */
.who { padding-top: var(--sp-1); padding-bottom: var(--sp-4); }
.who__label { position: relative; grid-column: 7 / -1; color: var(--accent-2); font-size: 0.7rem; padding-top: 0.9rem; margin-bottom: var(--sp-1); }
.who__line {
  grid-column: 7 / -1;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.025em;
}
.who__line em { font-style: normal; color: var(--accent-2); }

/* 04 access: huge title left 7, form bottom-right 4, no box */
.access { padding-top: var(--sp-2); padding-bottom: var(--sp-3); }
.access__title {
  grid-column: 1 / span 7; align-self: end;
  font-weight: 700; font-size: clamp(3.2rem, 9.5vw, 9.5rem); line-height: 0.94; letter-spacing: -0.055em;
}
.access__form { grid-column: 9 / -1; align-self: end; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.access__intro { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 1.75rem; }
.signup label { display: block; color: var(--muted); margin-bottom: 0.6rem; font-size: 0.66rem; }
.signup__row { display: flex; flex-direction: column; gap: 0.5rem; }
.signup input[type="email"] {
  width: 100%; min-width: 0; padding: 0.95rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 400 1rem var(--display); transition: border-color 0.3s;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.signup input[type="email"]:focus { outline: none; border-color: var(--accent-2); }
.signup .btn { justify-content: space-between; }
.signup__status { min-height: 1.2em; margin-top: 0.75rem; color: var(--accent-2); font-size: 0.7rem; text-transform: none; letter-spacing: 0.02em; }
.signup__done { font-size: 1.15rem; padding: 1rem 0; color: var(--accent-2); }
.chat { display: inline-block; margin-top: 1.25rem; font-size: 0.66rem; }

/* message dialog */
.label { color: var(--accent-2); }
.msg {
  margin: auto; width: min(40rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem); overflow-y: auto;
  color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
}
.msg[open] { animation: msg-in 0.55s var(--ease); }
.msg::backdrop { background: rgba(10, 9, 9, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes msg-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.msg .label { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.msg__title { font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 0.98; letter-spacing: -0.04em; padding-right: 2.5rem; }
.msg__intro { color: var(--muted); margin: 0.9rem 0 1.75rem; }
.msg__close {
  position: absolute; top: 1rem; right: 1rem; width: 2.3rem; height: 2.3rem; border-radius: var(--r);
  border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.msg__close:hover { background: var(--ink); color: var(--bg); }
.msg__form { display: grid; gap: 1.25rem; }
.msg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.5rem; border: 0; min-width: 0; }
.field > span, .field legend { color: var(--muted); font-size: 0.66rem; }
.field legend { margin-bottom: 0.6rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--r); border: 1px solid var(--rule);
  background: var(--bg); color: var(--ink); font: 400 1rem var(--display); resize: vertical; transition: border-color 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 0.5rem 0.8rem; border-radius: var(--r); border: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--muted); transition: all 0.25s;
}
.chips label:hover span { color: var(--ink); border-color: var(--line); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 1px solid var(--accent-2); outline-offset: 2px; }
.msg__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { color: var(--accent-2); font-size: 0.7rem; text-transform: none; letter-spacing: 0.02em; }
.msg__done { font-size: 1.15rem; color: var(--accent-2); padding: 1rem 0; }
@media (max-width: 560px) { .msg__row { grid-template-columns: 1fr; } }

/* footer: same 12-col grid, items placed unevenly */
.footer {
  width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter)); margin: 0 auto; padding: 1.25rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1rem; align-items: center;
  border-top: 1px solid var(--line); color: var(--muted);
}
.footer .brand { grid-column: 1 / span 3; color: var(--ink); }
.footer__note { grid-column: 4 / span 5; }
.footer__copy { grid-column: 9 / span 3; }
.footer__in { grid-column: 12; justify-self: end; }
.footer .mono { font-size: 0.64rem; }
.footer__in { display: inline-flex; color: var(--muted); transition: color 0.3s; }
.footer__in:hover { color: var(--accent-2); }
.footer__in svg { width: 18px; height: 18px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   LANDING (first screen)
   Positions measured from the 1440 × 806 Figma frame, in vw (horizontal)
   so every element keeps its spot at any screen width.
   ========================================================= */
.lp {
  --edge: 1.875vw;                      /* 27px at 1440: outer margin of the wordmark */
  position: fixed; top: 0; left: 0; right: 0; z-index: 4;   /* above the sky layers, like the rest of the content */
  /* cut off at the live bar's top edge as the page scrolls up over it (script.js sets --lp-clip) */
  clip-path: inset(0 0 var(--lp-clip, 0px) 0);
  height: calc(100svh - var(--ticker-h));
  min-height: 34rem;
  line-height: 1.4;
  /* being covered: shrinks a little toward the top and darkens (fades into the near-black page) */
  transform-origin: 50% 0;
  scale: calc(1 - 0.08 * var(--lp-p, 0));      /* --lp-p: 0 → 1 as the page scrolls over it (script.js, on :root) */
  opacity: calc(1 - 0.6 * var(--lp-p, 0));
}
.lp.is-covered { visibility: hidden; }   /* fully covered: stop painting it */
/* takes the landing's height in the scroll so the live bar starts at the bottom of the first screen */
.lp-space { height: var(--lp-h, calc(100svh - var(--ticker-h))); }


/* AXANTUR across the top, edge to edge. script.js sets the exact font-size so the
   letters span the full width; the vw value is the fallback before it runs. */
.lp__wordmark {
  position: absolute; left: var(--edge); right: var(--edge); top: -0.15vw;
  font-family: var(--brand); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap;
}
.lp__fit { display: inline-block; font-size: 14.2vw; }

/* small text row under the wordmark */
.lp__menu, .lp__etym, .lp__signup { position: absolute; top: 13.4vw; }
.lp__menu { left: 16.25vw; }
.lp__menu a {
  display: inline-block;
  font-size: clamp(0.95rem, 1.25vw, 1.45rem); font-weight: 400; line-height: 1.33;
  text-decoration: none;
  text-decoration-thickness: 1px; text-underline-offset: 0.18em;
}
.lp__menu a:hover, .lp__menu a:focus-visible { text-decoration-line: underline; }

.lp__etym { font-size: clamp(0.7rem, 0.84vw, 1rem); line-height: 1.3; }
.lp__etym { left: 76.6vw; width: 9.6vw; list-style: disc outside; padding-left: 1em; }
.lp__etym li + li { margin-top: 0.2em; }
.lp__etym li::marker { font-size: 0.75em; }
.lp__etym u { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.lp__tagline {
  position: absolute; left: 2.6vw; bottom: 26px;
  font-size: clamp(1.6rem, 2.5vw, 3rem); font-weight: 400; line-height: 1.3;
}

/* bottom-right: scroll hint */
.lp__scroll { font-size: clamp(0.85rem, 1vw, 1.2rem); }
.lp__scroll {
  position: absolute; left: 71.95vw; right: 3.1vw; bottom: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2em;
}
.lp__arrow { width: 0.75em; height: 1em; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 -1px; } 50% { translate: 0 3px; } }

/* landing sign up: a plain .btn .btn--small (identical to the top bar's Early access),
   placed top-right under the wordmark, its right edge lined up with the R */
.lp__signup { right: var(--edge); }

/* launch animation
   1. each AXANTUR letter rises out of its baseline, left to right (70ms apart)
   2. then the other text fades in, in groups set by --d on each .lp-fade (120ms apart)
   script.js splits the letters and adds .lp-ready once the fonts have loaded */
.lp__fit { vertical-align: top; clip-path: inset(-20% -2% 0.15em -2%); }   /* clip edge on the baseline */
.lp__wordmark .ch { display: inline-block; }
.js .lp__wordmark .ch { translate: 0 105%; }
.js .lp-fade { opacity: 0; }
.js.lp-ready .lp__wordmark .ch { animation: letter-up 1s cubic-bezier(0.2, 0.75, 0.1, 1) calc(var(--i) * 70ms) both; }
.js.lp-ready .lp-fade { animation: lp-fade-in 0.9s cubic-bezier(0.2, 0.75, 0.1, 1) calc(0.85s + var(--d, 0) * 120ms) both; }
@keyframes letter-up { from { translate: 0 105%; } to { translate: 0 0; } }
@keyframes lp-fade-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
  .lp {
    --edge: 16px;
    height: auto; min-height: calc(100svh - var(--ticker-h));
    display: flex; flex-direction: column; gap: 1.5rem;
    padding: 0 var(--edge) 1.5rem;
  }
  .lp > * { position: static; }
  .lp__wordmark { margin-top: 12px; }
  .lp__menu a { font-size: 1.05rem; }
  .lp__etym { width: auto; font-size: 0.8rem; }
  .lp__tagline { margin-top: auto; font-size: 1.9rem; }
  .lp__signup { align-self: flex-start; }
  .lp__scroll { justify-content: flex-start; color: var(--muted); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .aside { grid-column: 1 / -1; grid-row: auto; position: static; max-width: 34rem; margin-bottom: 1.75rem; }
  .regimes { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 900px) {
  .service__title, .service__body, .scrub, .who__label, .who__line, .access__title, .access__form,
  .process__title, .steps, .intro__lede, .intro__body, .intro__foot { grid-column: 1 / -1; }
  .intro > * { grid-row: auto; }
  .intro .intro__label { grid-column: 1 / -1; }
  .intro .intro__title { grid-column: 1 / -1; grid-row: auto; margin-bottom: var(--sp-1); }
  .intro { grid-template-rows: none; }
  .intro__body { max-width: 36rem; }
  .service__body { margin-top: 1.75rem; max-width: 36rem; }
  .process__title { position: static; margin-bottom: var(--sp-1); }
  .team__title, .members { grid-column: 1 / -1; }
  .team__title { position: static; margin-bottom: var(--sp-1); }
  .who__label { margin-bottom: 1.5rem; }
  .access__form { margin-top: var(--sp-1); max-width: 30rem; }
  .footer .brand, .footer__note, .footer__copy { grid-column: 1 / span 11; }
  .footer__in { grid-row: 1; }
}
@media (max-width: 760px) {
  .topbar__cta { display: none; }
  .menu__sub { display: none; }
  .menu-btn { padding-left: 0.85rem; }
  .planet::before { width: 260vw; border-radius: 50% / 40vw; }
  .step { grid-template-columns: 1fr; gap: 0.6rem; }

  /* tables become stacked records: each row a block, each cell labelled */
  .regimes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .regimes tbody tr { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
  .regimes tbody tr:last-child { border-bottom: 0; }
  .regimes tbody th, .regimes td { display: block; width: auto; padding: 0; border: 0; }
  .regimes tbody th { margin-bottom: 0.6rem; }
  .regimes td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.2rem 0; font-size: 0.9rem; }
  .regimes td::before { content: attr(data-label); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }

}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nebula i { animation: none; }
  .line > span { animation: none; transform: none; opacity: 1; }
  .ticker__dot { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .menu__curtain, .menu__text, .menu__text .ch, .menu__foot, .menu__sub li, .menu__list::before, .menu__item::after { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .sec-head::before, .js .who__label::before, .js .sec-head span { transform: none; opacity: 1; transition: none; }
  .js .who__label { color: var(--accent-2); transition: none; }
  .btn::before { transition: none; }
  .lp__arrow { animation: none; }
  .js .lp__wordmark .ch { translate: none; }
  .js.lp-ready .lp__wordmark .ch { animation: none; }
  .js.lp-ready .lp-fade { animation: lp-fade-plain 0.6s ease both; }
  @keyframes lp-fade-plain { from { opacity: 0; } to { opacity: 1; } }
  .topbar { transition: none; }
  .js .scrub .w { opacity: 1; }
}
