/* XYRA Labs — midnight observatory wireframe.
   Layout: a pinned hero that fades under the page, headlines spread edge to edge with
   mono labels above them, wireframe frames with white corner marks, a rounded card that
   slides over the pinned design section, and a contact footer lit by white rays. */

:root {
  --ice: #e8e4dc;
  --void: #0b0b0b;
  --carbon: #121211;
  --graphite: #1a1a19;
  --slate: #232322;
  --iron: #3a3936;
  --steel: #5b5955;
  --fog: #9a968f;
  --highlight: #ffffff;
  --action: #e8e4dc;
  --headline: #d4d0c8;

  --line: rgba(232, 228, 220, 0.2);
  --line-strong: rgba(232, 228, 220, 0.45);

  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wide: 118%;

  --text-display: clamp(36px, 6.4vw, 84px);
  --text-spread: clamp(34px, 5.6vw, 76px);
  --text-heading-sm: 24px;
  --text-body: 16px;
  --text-caption: 11px;

  --radius-button: 8px;
  --radius-card: 16px;
  --radius-large: 24px;

  --page-max: 1400px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section-gap: clamp(80px, 10vw, 140px);
  --header-h: 72px;
  --header-top: 16px;

  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Crect width='5' height='5' fill='%23ffffff'/%3E%3C/svg%3E");

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--font-display);
  font-size: var(--text-body);
  line-height: 1.5;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--highlight);
}

/* Browser surfaces carry the palette too */
::selection { background: var(--ice); color: var(--void); }
html { scrollbar-color: var(--iron) var(--void); }

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--void);
  z-index: 30;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
s { text-decoration-color: var(--steel); }
svg { display: block; }
canvas { display: block; }

:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--gutter-l);
  z-index: 40;
  padding: 10px 16px;
  background: var(--void);
  border: 1px solid var(--ice);
  border-radius: var(--radius-button);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Scroll reveal: resting state is visible; JS adds the hidden start, then .in.
   Bodies rise and fade; headlines wipe up out of their baseline. */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
/* A mask, not a clip-path: Chrome's IntersectionObserver treats a clipped element as
   zero-size, so a clipped headline would never be seen entering the viewport. */
html.js .spread.reveal, html.js .lead.reveal {
  transform: none;
  -webkit-mask-image: linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0 0);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  -webkit-mask-size: 100% 0%;
  mask-size: 100% 0%;
  transition: opacity 0.4s ease-out, -webkit-mask-size 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), mask-size 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .spread.reveal.in, html.js .lead.reveal.in {
  -webkit-mask-size: 100% 130%;
  mask-size: 100% 130%;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .spread.reveal, html.js .lead.reveal { opacity: 1; transform: none; -webkit-mask-image: none; mask-image: none; transition: none; }
}

/* Type roles */

.display {
  font-size: var(--text-display);
  font-stretch: var(--wide);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}

.display em, .spread em, .lead em, .phase h3 em {
  font-style: normal;
  color: var(--highlight);
}

.labels {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
/* Each word owns an equal share of the row; a hairline leader carries the eye to the next one. */
.labels span {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}
.labels span:last-child { flex: 0 0 auto; }
.labels span:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 12px;
  border-top: 1px solid var(--line);
}

.spread {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 24px;
  font-size: var(--text-spread);
  font-stretch: var(--wide);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.spread span { white-space: nowrap; transition: color 0.4s ease; }
.spread span.is-live { color: var(--highlight); }

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.dotted::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  background: var(--highlight);
  vertical-align: middle;
}
.label.dotted::before { margin-right: 0; }

.statement {
  max-width: 62ch;
  margin-top: 40px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--fog);
}
.center {
  margin-inline: auto;
  text-align: center;
  max-width: 52ch;
}

h3 {
  font-size: var(--text-heading-sm);
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.mark {
  width: 20px;
  height: 20px;
  color: var(--ice);
  flex: none;
}

.aside {
  margin-top: 64px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fog);
}
.aside span { color: var(--ice); }

/* Wireframe frame with white corner marks */

.frame, .verdict, .slide.is-active .tile {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  background-image: var(--dot), var(--dot), var(--dot), var(--dot);
  background-repeat: no-repeat;
  background-position: left top, right top, left bottom, right bottom;
  background-origin: border-box;
}

.rule {
  position: relative;
  height: 1px;
  margin-top: 56px;
  background: var(--line-strong);
}
.rule::before, .rule::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--highlight);
}
.rule::before { left: 0; }
.rule::after { right: 0; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--action);
  border-radius: var(--radius-button);
  color: var(--action);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 160ms ease;
}
.btn:hover { background: rgba(232, 228, 220, 0.08); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ice);
}
.btn-ghost:hover { background: rgba(232, 228, 220, 0.06); }

.tag {
  padding: 6px 10px;
  border: 1px solid var(--action);
  border-radius: var(--radius-button);
  color: var(--action);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Header: a pill floating over the page. Once the page scrolls it crunches into a
   tighter, shorter pill and the wordmark folds down to the mark alone. */

.site-header {
  position: fixed;
  top: calc(var(--header-top) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 20;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--page-max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 0 10px 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.86);
  pointer-events: auto;
  transition: max-width 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), min-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), padding 0.45s ease, border-color 0.3s ease;
}
.site-header.compact { --header-h: 56px; }
.site-header.compact .nav {
  max-width: 780px;
  padding: 0 6px 0 16px;
  border-color: var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  font-stretch: var(--wide);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: gap 0.4s ease;
}
.brand .mark { align-self: center; width: 24px; height: 24px; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.brand-name, .brand-sub {
  display: inline-block;
  max-width: 8ch;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.site-header.compact .brand { gap: 0; }
.site-header.compact .brand-name,
.site-header.compact .brand-sub {
  max-width: 0;
  opacity: 0;
}

.nav nav { flex: 1; min-width: 0; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 4px;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--headline);
  transition: color 160ms ease;
}
.nav .btn { font-size: 12px; padding: 12px 22px; }
.nav-cta { display: none; }
.menu-btn { display: none; }
.nav-links a:hover { color: var(--fog); }
.nav-links a[aria-current="true"] { color: var(--action); }
.nav-links a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--action);
}

/* Hero: pinned under the page, fades out as it scrolls */

.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--void);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-top: calc(var(--header-top) + var(--header-h));
  text-align: center;
  will-change: transform, opacity;
}
.hero-inner .display { max-width: 15ch; }

/* The headline wipes up out of its baseline once the mark has dispersed into the field. */
.word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .word {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.35em);
    animation: wordin 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: calc(var(--hero-delay, 1.7s) + var(--i, 0) * 0.09s);
  }
  @keyframes wordin {
    to { opacity: 1; clip-path: inset(-10% 0 -15% 0); transform: none; }
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 1;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ice);
  border-radius: 4px;
  color: var(--ice);
}
.scroll-cue svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue 2.4s ease-in-out infinite; }
  @keyframes cue {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(2px); }
  }
}

/* Everything after the hero scrolls over it */

.after-hero {
  position: relative;
  z-index: 2;
  background: var(--void);
}

.section { padding-block: var(--section-gap); }

/* Threat: labels, spread headline, wireframe grid */

.grid-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr);
  margin-top: 64px;
}

.cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-width: 0;
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cell:nth-child(n + 4) { border-bottom: 0; }
.cell-name { font-size: 15px; line-height: 1.3; }
.cell-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.panel {
  position: relative;
  grid-column: 4;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 56px 24px;
}
.corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.tl { top: 20px; left: 24px; }
.tr { top: 20px; right: 24px; }
.bl { bottom: 20px; left: 24px; }
.br { bottom: 20px; right: 24px; }

/* Threat scene: one payment recorded, waited on, then read */

.scene {
  margin-top: 56px;
  padding: 24px clamp(20px, 3vw, 40px) 32px;
  background-color: var(--carbon);
}
.scene-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.scene-head .label { flex: 1; }
.scene-year {
  font-stretch: var(--wide);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
}
.scene-replay { min-height: 36px; padding: 8px 14px; }
.scene-ledgers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.scene-ledger { min-width: 0; padding-top: 24px; }
.scene-ledger + .scene-ledger { border-left: 1px solid var(--line); padding-left: 40px; }
.scene-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.scene-title .mark { width: 14px; height: 14px; }
.scene-rows { display: flex; flex-direction: column; margin-top: 18px; }
.scene-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.scene-rows > div:last-child { border-bottom: 1px solid var(--line); }
.scene-rows dt { color: var(--fog); }
.scene-rows dd {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  text-align: right;
  color: var(--ice);
}
.scene-rows dd.is-plain { color: var(--highlight); }
.scene-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  transition: color 0.4s ease;
}
.scene-state.is-exposed, .scene-state.is-sealed { color: var(--highlight); }
.scene-state.is-sealed::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--highlight);
}

/* Design: pinned section with a centred carousel */

/* The content sits at the top of the pinned block rather than centred in it, so there is no
   empty half-screen before the lead; the threat section's bottom padding is trimmed to match. */
#threat { padding-bottom: 72px; }

.pinned {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: calc(var(--header-top) + var(--header-h) + 40px) 60px;
  background: var(--void);
}

.lead {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 28px;
  max-width: 30ch;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
/* The mark beside the lead rebuilds square by square each time the carousel moves. */
.lead-mark {
  flex: none;
  width: 60px;
  height: 60px;
  margin-top: 0.05em;
  color: var(--ice);
}
.lead-mark rect { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .lead-mark.is-built rect {
    opacity: 0;
    animation: build 0.4s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 22ms);
  }
  @keyframes build { to { opacity: 1; } }
}

.carousel {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  touch-action: pan-y;
}

.track {
  display: flex;
  gap: 24px;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .track { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .slide { transition: opacity 0.6s ease, transform 0.6s ease; }
}

.slide {
  flex: 0 0 var(--slide-w, 360px);
  width: var(--slide-w, 360px);
  opacity: 0.35;
  transform: scale(0.94);
  cursor: pointer;
  user-select: none;
}
.slide.is-active {
  opacity: 1;
  transform: none;
  cursor: default;
}

.tile {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
}
.tile-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.tile-name {
  font-size: clamp(24px, 2.4vw, 34px);
  font-stretch: var(--wide);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fog);
}
.tile-meta s { color: var(--steel); }

.caption {
  width: min(100%, 420px);
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
}
.quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ice);
}
.quote-mark {
  color: var(--highlight);
  font-size: 22px;
  line-height: 0;
  margin-right: 6px;
  vertical-align: -4px;
}
.caption-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog);
}
.caption-meta span:first-child { color: var(--ice); }

.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.dot {
  width: 44px;
  height: 44px;
  margin: -15px 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dot::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--steel);
  transition: background-color 0.3s ease;
}
.dot[aria-selected="true"]::before { background: var(--highlight); }

/* The rounded card and everything after it slide over the pinned section */

.over {
  position: relative;
  z-index: 3;
  background: var(--void);
}

.card-section {
  position: relative;
  margin: 0 16px 180px;
  padding-block: clamp(56px, 7vw, 100px);
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}
.card-section::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -170px;
  height: 240px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
.card-section .wrap {
  padding-left: clamp(16px, 4vw, 56px);
  padding-right: clamp(16px, 4vw, 56px);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.ledger {
  position: sticky;
  top: calc(var(--header-top) + 56px + env(safe-area-inset-top, 0px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  min-width: 0;
  background-color: var(--void);
}
.ledger-field {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--void);
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ledger-rows { display: flex; flex-direction: column; }
.ledger-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ledger-rows > div:last-child { border-bottom: 1px solid var(--line); }
.ledger-rows dt { color: var(--fog); }
.ledger-rows dd {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
  text-align: right;
}
.cursor::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.35em;
  background: var(--highlight);
  vertical-align: -0.15em;
}
@media (prefers-reduced-motion: no-preference) {
  .cursor::after { animation: blink 1.1s steps(2, start) infinite; }
  @keyframes blink { to { visibility: hidden; } }
}
.hidden-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hidden-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog);
  text-decoration: line-through;
  text-decoration-color: var(--steel);
}

.flow { display: flex; flex-direction: column; }
.flow li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.flow li:first-child { padding-top: 8px; border-top: 0; }
.flow h3 { max-width: 22ch; }
.flow p:not(.label) {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fog);
}

/* Compare: the Q-day verdict leads, the detail rows follow as small print */

.verdict {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
}
.verdict-col {
  min-width: 0;
  padding: 28px 28px 32px;
  border-left: 1px solid var(--line);
}
.verdict-col:first-child { border-left: 0; }
.verdict-col.us { background: rgba(255, 255, 255, 0.05); }
.verdict-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.verdict-col.us .verdict-name { color: var(--ice); }
.verdict-name .mark { width: 14px; height: 14px; }
.verdict-word {
  margin-top: 28px;
  font-stretch: var(--wide);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fog);
}
.verdict-col.us .verdict-word { color: var(--highlight); }
.verdict-q {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}
.verdict-rows { display: flex; flex-direction: column; margin-top: 32px; }
.verdict-rows > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.verdict-rows dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}
.verdict-rows dd { font-size: 15px; line-height: 1.4; color: var(--fog); }
.verdict-col.us .verdict-rows dd { color: var(--ice); }

/* Numbers */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 32px;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.metric-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.metric-value {
  font-size: clamp(32px, 3vw, 44px);
  font-stretch: var(--wide);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ice);
}
.metric-label { color: var(--fog); font-size: 14px; line-height: 1.6; }

/* Roadmap: one rail, five ticks, the live phase pulsing */

.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 72px;
  padding-top: 36px;
}
.rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px solid var(--line-strong);
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.tick {
  position: absolute;
  left: 0;
  top: -39px;
  width: 6px;
  height: 6px;
  background: var(--highlight);
}
.phase-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.phase-meta span:last-child { color: var(--fog); }
.phase h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--fog);
}
@media (prefers-reduced-motion: no-preference) {
  .phase.is-live .tick::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid var(--highlight);
    animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
  }
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
}

/* FAQ */

.faq { display: flex; flex-direction: column; margin-top: 56px; }
.faq > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-size: var(--text-heading-sm); line-height: 1.24; letter-spacing: -0.01em; }
.faq dd { color: var(--fog); line-height: 1.7; max-width: 60ch; }

/* Contact: white rays behind a centred call */

.contact {
  position: relative;
  min-height: 82svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: 120px;
  background: var(--void);
}
#rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-side.right { align-items: flex-end; text-align: right; }
.contact-links { display: flex; gap: 20px; }
.contact-links a {
  display: inline-block;
  padding: 13px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.contact-note {
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog);
}
.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.contact-center .display { font-size: clamp(36px, 6.4vw, 84px); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--void);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--fog);
  max-width: 70ch;
}

/* Narrow screens */

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* The section links move into a full-screen panel behind the pill, opened by a Menu button. */
  .nav { gap: 16px; }
  /* Negative z-index keeps the panel under the pill, inside the header's own stacking context. */
  .nav nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: calc(var(--header-top) + var(--header-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter-r) 32px var(--gutter-l);
    background: var(--void);
    overflow-y: auto;
    pointer-events: auto;
  }
  .site-header.menu-open nav { display: block; }
  html.menu-open { overflow: hidden; }
  .nav-links { flex-direction: column; gap: 0; padding: 0; overflow: visible; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links li:not(.nav-cta) a {
    display: block;
    padding: 20px 0 20px 24px;
    font-family: var(--font-display);
    font-stretch: var(--wide);
    font-weight: 500;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: none;
  }
  .nav-links a[aria-current="true"]::before { left: 0; width: 6px; height: 6px; margin-top: -3px; }
  .nav-cta { display: block; padding-top: 28px; border-top: 0; }
  .nav-btn { display: none; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--ice);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .pinned { position: static; min-height: 0; padding-block: var(--section-gap); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .ledger { position: static; }
  .faq > div { grid-template-columns: 1fr; gap: 12px; }
  .grid-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { min-height: 140px; }
  .cell:nth-child(n + 4) { border-bottom: 1px solid var(--line); }
  .cell:nth-child(even) { border-right: 0; }
  .panel { grid-column: 1 / -1; grid-row: auto; min-height: 240px; }
  .scene-ledgers { grid-template-columns: 1fr; }
  .scene-ledger + .scene-ledger { margin-top: 24px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .verdict { grid-template-columns: 1fr; }
  .verdict-col { border-left: 0; border-top: 1px solid var(--line); }
  .verdict-col:first-child { border-top: 0; }
  .verdict-word { margin-top: 20px; }
  .verdict-rows { margin-top: 24px; }
  .rail { grid-template-columns: 1fr; gap: 28px 0; margin-top: 48px; padding-top: 0; padding-left: 28px; }
  .rail::before { right: auto; bottom: 0; border-top: 0; border-left: 1px solid var(--line-strong); }
  .tick { left: -31px; top: 4px; }
  .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-side, .contact-side.right { align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .scroll-cue { display: none; }
  .hero { min-height: 0; }
  .spread { justify-content: flex-start; gap: 0 0.3em; }
  .labels { gap: 12px; }
  .labels span { gap: 12px; }
  .card-section { margin-inline: 8px; }
  .scene { padding-inline: 18px; }
  .scene-head { flex-wrap: wrap; }
  .metrics { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
  .metric { gap: 8px; padding: 20px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .metric:last-child { border-bottom: 1px solid var(--line); }
  .metric-value { font-size: 32px; }
  .verdict-col { padding: 24px 20px 28px; }
  .cell { padding: 18px; }
}

/* Monochrome: neutral headline words sit in grey so the white highlight words carry the color's job */

.display, .spread, .lead { color: var(--headline); }
.display em, .spread em, .lead em { color: var(--highlight); }
