/* Hallmark · macrostructure: bespoke observatory (coin dive → plate → findings → drawn rule → card drawer → light curve → token table → sides → faq → statement foot)
 * tone: luxury-technical · anchor hue: vermilion 33° on night 263°
 * nav: N6 masthead · footer: Ft5 statement · enrichment: Tier A WebGL brass coin + Tier A canvas plate/curve + Tier B SVG drawing
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-night);
  color: var(--color-sky-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
/* film grain over the whole night, so no surface reads as a flat CSS fill */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--color-vermilion); color: var(--color-starlight); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-brass); color: var(--color-ink); padding: var(--space-2) var(--space-4); }
.skip:focus-visible { top: var(--space-4); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--color-starlight);
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.025em; color: var(--color-starlight); margin: 0 0 var(--space-3); }

.mark { width: 1em; height: 1em; color: currentColor; flex: none; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: var(--radius-sm); border: 0;
  font-weight: 600; font-size: var(--text-base); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn--brass { background: var(--color-brass); color: var(--color-ink); }
.btn--brass:hover { background: oklch(0.84 0.11 84); }
.btn--brass:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.link-quiet {
  color: var(--color-starlight); text-decoration: underline; text-decoration-color: var(--color-vermilion);
  text-underline-offset: 0.3em; text-decoration-thickness: 1px; white-space: nowrap;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.link-quiet:hover { text-decoration-color: var(--color-starlight); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 38px; padding: 0 var(--space-4);
  border: var(--rule) solid var(--color-night-line); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-sky-text);
  font-size: var(--text-sm); font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--color-sky-dim); color: var(--color-starlight); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { border-color: var(--color-brass); color: var(--color-starlight); background: oklch(0.79 0.115 82 / 0.1); }
.chip:disabled { opacity: 0.4; cursor: default; }

/* ---------- masthead (N6) ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-6);
  padding: var(--space-4) var(--gutter);
  color: var(--color-starlight);
  transition: background-color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
  border-bottom: var(--rule) solid transparent;
}
.masthead.is-solid { background: oklch(0.145 0.032 264 / 0.92); border-bottom-color: var(--color-night-line); backdrop-filter: blur(10px); }
.masthead__brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; font-size: 26px; }
.masthead__name { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.masthead__title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-sky-text); }
.masthead__edition { margin: 0; font-family: var(--font-data); font-size: var(--text-sm); color: var(--color-sky-dim); white-space: nowrap; }
.masthead__link { font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-vermilion); }

/* ---------- hero: the coin ---------- */
.hero { position: relative; height: 245svh; background:
  radial-gradient(120% 80% at 70% 40%, var(--color-night-raised) 0%, var(--color-night) 55%, var(--color-night-deep) 100%); }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms var(--ease-out); }
.hero__canvas.is-ready { opacity: 1; }
.hero__fallback { display: none; position: absolute; right: 8vw; top: 50%; width: min(42vw, 520px); translate: 0 -50%; color: var(--color-brass); }
.no-webgl .hero__fallback { display: block; }
.hero__copy {
  position: absolute; left: var(--gutter); bottom: clamp(2.5rem, 9svh, 6.5rem);
  width: min(46rem, calc(100% - 2 * var(--gutter)));
  opacity: calc(1 - var(--dive, 0) * 2.4);
  translate: calc(var(--dive, 0) * -12vw) 0;
  will-change: opacity, translate;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-display);
  line-height: 0.94; letter-spacing: -0.045em; color: var(--color-starlight);
  margin: 0 0 var(--space-6); max-width: 9.5ch; overflow-wrap: anywhere; min-width: 0;
  
}
.hero__lead { margin: 0 0 var(--space-6); max-width: 31rem; font-size: var(--text-lg); line-height: 1.5; color: var(--color-sky-text); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); margin-bottom: var(--space-6); }
.hero__status { margin: 0; display: flex; gap: var(--space-3); align-items: baseline; font-family: var(--font-data); font-size: var(--text-sm); color: var(--color-sky-dim); max-width: 34rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-vermilion); flex: none; translate: 0 -1px; box-shadow: 0 0 0 4px var(--color-vermilion-soft); }
.hero__beat {
  position: absolute; inset: 0; margin: 0; display: grid; place-content: center; gap: var(--space-3);
  text-align: center; padding: 0 var(--gutter);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 1.12; color: var(--color-starlight);
  opacity: var(--beat, 0); pointer-events: none;
}
.hero__beat span:last-child { color: var(--color-vermilion); }

/* ---------- plate ---------- */
.plate { position: relative; padding: var(--space-10) 0 var(--space-9); background: var(--color-night-deep); }
.plate__head, .rule, .drawer, .curve__text, .token, .sides, .faq, .findings { padding-left: var(--gutter); padding-right: var(--gutter); }
.plate__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6) var(--space-8); align-items: end; margin-bottom: var(--space-7); }
.plate__head .h2 { max-width: 12ch; }
.plate__lead { margin: 0; max-width: var(--measure); color: var(--color-sky-text); }
.plate__figure { margin: 0; }
.plate__frame { position: relative; margin: 0 var(--gutter); aspect-ratio: 16 / 7.4; min-height: 420px; cursor: crosshair; touch-action: pan-y; }
.plate__canvas, .plate__loupe { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate__loupe { pointer-events: none; }
.plate__readout {
  position: absolute; z-index: 2; width: 300px; pointer-events: none;
  background: var(--color-card); color: var(--color-ink);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4) var(--space-4);
  font-family: var(--font-data); font-size: 12.5px; line-height: 1.55;
  border-top: 3px solid var(--color-vermilion);
}
.plate__readout b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; line-height: 1.2; margin: 2px 0 6px; overflow-wrap: anywhere; }
.plate__readout dl { display: grid; grid-template-columns: auto 1fr; gap: 1px var(--space-3); margin: 0; }
.plate__readout dt { color: var(--color-ink-soft); }
.plate__readout dd { margin: 0; overflow-wrap: anywhere; }
.plate__bar { display: grid; grid-template-columns: auto auto 1fr; gap: var(--space-5) var(--space-6); align-items: center; padding: var(--space-5) var(--gutter) 0; }
.plate__controls { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.plate__clock { margin: 0; font-family: var(--font-data); font-weight: 500; font-size: var(--text-sm); color: var(--color-starlight); white-space: nowrap; min-width: 17ch; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--color-sky-dim); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.legend b { color: var(--color-starlight); font-weight: 600; font-variant-numeric: tabular-nums; }
.mag { display: inline-block; border-radius: 50%; background: var(--color-starlight); }
.mag--answered { width: 9px; height: 9px; box-shadow: 0 0 8px 2px oklch(0.95 0.03 90 / 0.6); }
.mag--silent { width: 6px; height: 6px; opacity: 0.85; }
.mag--declared { width: 5px; height: 5px; opacity: 0.7; background: var(--color-brass); }
.mag--card { width: 4px; height: 4px; opacity: 0.55; }
.mag--blank { width: 3px; height: 3px; opacity: 0.35; }
.mag--reviewed { width: 12px; height: 12px; background: transparent; border: 1.5px solid var(--color-vermilion); }

/* ---------- findings ---------- */
.findings { padding-top: var(--space-10); padding-bottom: var(--space-9); display: grid; gap: var(--space-9); }
.finding { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5) var(--space-8); align-items: end; }
.finding__line {
  grid-column: 1 / -1; margin: 0; max-width: 17ch;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 0.98; letter-spacing: -0.04em; color: var(--color-starlight);
  overflow-wrap: anywhere; min-width: 0;
}
.finding__line--s { font-size: var(--text-3xl); max-width: 22ch; }
.finding__note { margin: 0; grid-column: 2; max-width: var(--measure); color: var(--color-sky-dim); }
.finding__note a { color: var(--color-sky-text); text-decoration-color: var(--color-vermilion); text-underline-offset: 0.25em; }
.finding--burst .finding__note { grid-column: 2; }
.burst { --bh: 168px; grid-column: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; align-items: end; height: calc(var(--bh) + 22px); padding-bottom: 22px; margin-top: var(--space-5); position: relative; }
.burst__mean { position: absolute; left: 0; right: 0; bottom: calc(22px + var(--bh) * var(--h) / 100); border-top: 1px dashed var(--color-vermilion); opacity: var(--grow, 0); transition: opacity var(--dur-mid) var(--ease-out) 1100ms; pointer-events: none; }
.burst__mean span { position: absolute; right: 0; bottom: 6px; font-family: var(--font-data); font-size: 10.5px; color: var(--color-vermilion); background: var(--color-night); padding-left: 6px; }
.burst__bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.burst__bar i {
  display: block; width: 100%; height: calc(var(--h) * 1%); min-height: 2px;
  background: var(--color-starlight); transform-origin: bottom; transform: scaleY(var(--grow, 0));
  transition: transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i) * 45ms);
}
.burst__bar.is-peak i { background: var(--color-vermilion); }
.burst__bar span { position: absolute; top: calc(100% + 6px); left: 0; font-family: var(--font-data); font-size: 10px; color: var(--color-sky-dim); white-space: nowrap; }
.burst__bar em { position: absolute; bottom: calc(var(--h) * 1% + 6px); left: 50%; translate: -50% 0; font-style: normal; font-family: var(--font-data); font-size: 10px; color: var(--color-starlight); opacity: var(--grow, 0); transition: opacity var(--dur-mid) var(--ease-out) 900ms; }
.burst.is-in { --grow: 1; }

/* ---------- rule + drawing ---------- */
.rule { padding-top: var(--space-10); padding-bottom: var(--space-10); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; border-top: var(--rule) solid var(--color-night-line); }
.rule__text { position: sticky; top: 110px; }
.rule__text p { max-width: var(--measure); margin: var(--space-5) 0 0; }
.drawing__svg { width: 100%; height: auto; overflow: visible; }
.drawing__svg .ln { fill: none; stroke: var(--color-sky-text); stroke-width: 1.1; }
.drawing__svg .ln--fine { stroke: var(--color-sky-dim); stroke-dasharray: 3 4; }
.drawing__svg .ln--brass { stroke: var(--color-brass); stroke-width: 1.4; }
.drawing__svg .ln--verm { stroke: var(--color-vermilion); stroke-width: 1.4; }
.drawing__svg .fill-brass { fill: oklch(0.79 0.115 82 / 0.12); }
.drawing__svg text { font-family: var(--font-data); font-size: 12.5px; fill: var(--color-sky-dim); }
.drawing__svg .num circle { fill: var(--color-night); stroke: var(--color-vermilion); stroke-width: 1.3; }
.drawing__svg .num text { fill: var(--color-starlight); font-size: 12px; text-anchor: middle; dominant-baseline: central; }
.drawing [data-draw] { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1600ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
.drawing.is-in [data-draw] { stroke-dashoffset: 0; }
.drawing .num, .drawing .tag { opacity: 0; transition: opacity var(--dur-mid) var(--ease-out); transition-delay: var(--d, 0ms); }
.drawing.is-in .num, .drawing.is-in .tag { opacity: 1; }
.callouts { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); counter-reset: c; }
.callouts li { position: relative; padding-left: 40px; color: var(--color-sky-text); font-size: var(--text-sm); line-height: 1.55; }
.callouts li::before {
  content: attr(data-n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.3px solid var(--color-vermilion); display: grid; place-items: center;
  font-family: var(--font-data); font-size: 12px; color: var(--color-starlight);
}
.callouts b { color: var(--color-starlight); font-weight: 600; }

/* ---------- drawer of cards ---------- */
.drawer { padding-top: var(--space-10); padding-bottom: var(--space-10); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center;
  background: radial-gradient(60% 70% at 72% 55%, oklch(0.3 0.04 70 / 0.35) 0%, transparent 70%); }
.drawer__text p { max-width: var(--measure); margin: var(--space-5) 0 var(--space-6); }
.drawer__nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
.cards { position: relative; height: 470px; perspective: 1500px; perspective-origin: 50% -30%; }
.icard {
  position: absolute; left: 50%; bottom: 0; width: min(560px, 100%); height: 330px; translate: -50% 0;
  transform-origin: 50% 100%;
  transform: translate3d(0, calc(var(--k) * -26px), calc(var(--k) * -40px)) rotateX(calc(var(--k) * 2deg));
  background:
    linear-gradient(to bottom, transparent 62px, var(--color-vermilion) 62px, var(--color-vermilion) 63.5px, transparent 63.5px),
    repeating-linear-gradient(to bottom, transparent 0 25px, oklch(0.72 0.06 245 / 0.45) 25px 26px) 0 63px / 100% calc(100% - 63px) no-repeat,
    var(--color-card);
  color: var(--color-ink); border-radius: 4px; padding: 16px 24px 18px;
  box-shadow: 0 1px 0 var(--color-card-line), 0 18px 40px -18px oklch(0.05 0.02 262 / 0.8);
  filter: brightness(calc(1 - var(--k) * 0.09));
  transition: transform 900ms var(--ease-in-out), filter 900ms var(--ease-out), opacity 600ms var(--ease-out);
  overflow: hidden;
}
.icard::before { /* the tab */
  content: attr(data-tab); position: absolute; top: 0; left: min(var(--tab, 24px), calc(100% - 15em));
  font-family: var(--font-data); font-size: 10px; color: var(--color-ink-soft);
}
.icard.is-out { transform: translate3d(0, 40px, 120px) rotateX(-96deg); opacity: 0; transition: transform 800ms var(--ease-in), opacity 500ms var(--ease-in) 300ms; }
.icard__no { margin: 0; font-family: var(--font-data); font-size: 12px; color: var(--color-ink-soft); display: flex; justify-content: space-between; gap: var(--space-3); }
.icard__name { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard dl { margin: 22px 0 0; display: grid; grid-template-columns: 8.5em 1fr; font-family: var(--font-data); font-size: 13px; line-height: 26px; }
.icard dt { color: var(--color-ink-soft); }
.icard dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard .stars { letter-spacing: 0.2em; color: var(--color-ink-soft); }
.icard .ok { color: oklch(0.45 0.12 150); }
.icard .no { color: var(--color-vermilion); }

/* ---------- light curve ---------- */
.curve { padding: var(--space-10) 0; border-top: var(--rule) solid var(--color-night-line); }
.curve__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6) var(--space-8); align-items: end; margin-bottom: var(--space-7); }
.curve__text p { margin: 0; max-width: var(--measure); }
.curve__figure { margin: 0 var(--gutter); }
.curve__canvas { width: 100%; height: 360px; }
.curve__cap { margin-top: var(--space-3); font-family: var(--font-data); font-size: var(--text-xs); color: var(--color-sky-dim); }

/* ---------- token ---------- */
.token { padding-top: var(--space-10); padding-bottom: var(--space-9); border-top: var(--rule) solid var(--color-night-line); }
.token__strip { display: flex; flex-wrap: wrap; margin: var(--space-6) 0 var(--space-7); border-top: var(--rule) solid var(--color-night-line); border-bottom: var(--rule) solid var(--color-night-line); }
.token__strip span { padding: var(--space-4) var(--space-5); border-right: var(--rule) solid var(--color-night-line); font-size: var(--text-sm); color: var(--color-sky-text); }
.token__strip span:first-child { padding-left: 0; font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); letter-spacing: 0.02em; color: var(--color-brass); }
.token__strip span:last-child { border-right: 0; color: var(--color-sky-dim); }
.flow { width: 100%; border-collapse: collapse; }
.flow th, .flow td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-5) var(--space-4) 0; border-bottom: var(--rule) solid var(--color-night-line); }
.flow thead th { font-family: var(--font-data); font-size: var(--text-xs); font-weight: 400; color: var(--color-sky-dim); padding-top: 0; }
.flow tbody th { font-weight: 600; color: var(--color-starlight); width: 36%; }
.flow td { color: var(--color-sky-text); }
.token__note { margin: var(--space-5) 0 0; font-size: var(--text-sm); color: var(--color-sky-dim); max-width: 46rem; }

/* ---------- sides ---------- */
.sides { padding-top: var(--space-9); padding-bottom: var(--space-9); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: var(--rule) solid var(--color-night-line); }
.side { padding: var(--space-4) var(--space-7) var(--space-4) 0; }
.side + .side { padding: var(--space-4) 0 var(--space-4) var(--space-7); border-left: var(--rule) solid var(--color-night-line); }
.side p { margin: 0 0 var(--space-5); max-width: var(--measure); }

/* ---------- faq ---------- */
.faq { padding-top: var(--space-9); padding-bottom: var(--space-10); border-top: var(--rule) solid var(--color-night-line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-8); }
.faq .h2 { grid-row: span 6; }
.faq details { border-bottom: var(--rule) solid var(--color-night-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-weight: 600; font-size: var(--text-lg); color: var(--color-starlight); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--color-vermilion); transition: rotate var(--dur-fast) var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 var(--space-5); max-width: 40rem; }

/* ---------- foot (Ft5 statement) ---------- */
.foot { padding: var(--space-10) var(--gutter) var(--space-7); background: var(--color-night-deep); border-top: var(--rule) solid var(--color-night-line); }
.foot__line { display: flex; align-items: center; gap: 0.25em; margin: 0 0 var(--space-9); font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 1; letter-spacing: -0.04em; color: var(--color-starlight); overflow-wrap: anywhere; min-width: 0; }
.foot__line .mark { width: 0.8em; height: 0.8em; color: var(--color-brass); margin-right: 0.15em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); font-size: var(--text-sm); }
.foot__cols h4 { margin: 0 0 var(--space-3); font-family: var(--font-data); font-weight: 400; font-size: var(--text-xs); color: var(--color-sky-dim); }
.foot__cols a, .foot__cols span { display: block; margin-bottom: var(--space-2); color: var(--color-sky-text); text-decoration: none; overflow-wrap: anywhere; }
.foot__cols a:hover { color: var(--color-starlight); text-decoration: underline; text-decoration-color: var(--color-vermilion); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .masthead { grid-template-columns: auto 1fr auto; }
  .masthead__title { display: none; }
  .masthead__edition { justify-self: end; }
  .plate__bar { grid-template-columns: auto 1fr; }
  .legend { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .plate__head, .finding, .curve__text, .rule, .drawer, .sides, .faq { grid-template-columns: minmax(0, 1fr); }
  .finding__note, .finding--burst .finding__note, .burst { grid-column: 1; }
  .rule__text { position: static; }
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .side, .side + .side { padding: var(--space-5) 0; border-left: 0; }
  .side + .side { border-top: var(--rule) solid var(--color-night-line); }
  .faq .h2 { grid-row: auto; margin-bottom: var(--space-4); }
  .plate__frame { aspect-ratio: 4 / 5; min-height: 0; }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
  .cards { height: 430px; }
  .hero { height: 210svh; }
}
@media (max-width: 560px) {
  .masthead { gap: var(--space-3); }
  .masthead__edition { display: none; }
  .masthead__link { justify-self: end; }
  .hero__copy { bottom: 2rem; }
  .hero__lead { font-size: var(--text-base); }
  .plate__readout { width: min(280px, calc(100% - 16px)); }
  .icard { padding: 14px 16px; height: 318px; }
  .icard dl { grid-template-columns: 7.8em 1fr; font-size: 11px; }
  .icard__name { font-size: 21px; }
  .token__strip span { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-right: 0; width: 100%; }
  .flow tbody th { width: 42%; }
  .burst { --bh: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero__copy { opacity: 1; translate: none; }
  .burst__bar i, .drawing [data-draw], .icard { transition-duration: 150ms; transition-delay: 0ms; }
  .icard.is-out { transform: none; }
}

/* ---------- census page ---------- */
.page-census { background: var(--color-night-deep); }
.census { padding: calc(var(--space-10) + 20px) var(--gutter) var(--space-9); }
.census__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-5) var(--space-8); align-items: end; margin-bottom: var(--space-8); }
.census__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 0.95; letter-spacing: -0.04em; color: var(--color-starlight); overflow-wrap: anywhere; min-width: 0; }
.census__lead { margin: 0; max-width: var(--measure); }
.census__tools { display: grid; gap: var(--space-4); padding: var(--space-5) 0; border-top: var(--rule) solid var(--color-night-line); border-bottom: var(--rule) solid var(--color-night-line); position: sticky; top: 64px; z-index: 5; background: var(--color-night-deep); }
.field input {
  width: 100%; min-height: 48px; padding: 0 var(--space-4);
  background: var(--color-night); color: var(--color-starlight);
  border: var(--rule) solid var(--color-night-line); border-radius: var(--radius-sm);
  font: 500 var(--text-base) var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input::placeholder { color: var(--color-sky-dim); }
.field input:hover { border-color: var(--color-sky-dim); }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-brass); }
.census__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.census__filters b { font-weight: 600; color: var(--color-starlight); font-variant-numeric: tabular-nums; }
.census__opts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); font-size: var(--text-sm); }
.check { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.check input { accent-color: var(--color-brass); width: 16px; height: 16px; }
.select { display: inline-flex; align-items: center; gap: var(--space-3); }
.select span { color: var(--color-sky-dim); }
.select select { min-height: 38px; background: var(--color-night); color: var(--color-starlight); border: var(--rule) solid var(--color-night-line); border-radius: var(--radius-sm); padding: 0 var(--space-3); font: inherit; }
.census__count { margin: var(--space-5) 0 var(--space-3); font-family: var(--font-data); font-size: var(--text-xs); color: var(--color-sky-dim); }
.rows { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.rows thead th { text-align: left; font-family: var(--font-data); font-weight: 400; font-size: var(--text-xs); color: var(--color-sky-dim); padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: var(--rule) solid var(--color-night-line); }
.rows td { vertical-align: top; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: var(--rule) solid oklch(0.26 0.03 262); }
.rows tbody tr[data-id] { cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.rows tbody tr[data-id]:hover { background: oklch(0.19 0.035 262); }
.rows tbody tr[data-id]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.c-no { font-family: var(--font-data); color: var(--color-sky-dim); white-space: nowrap; width: 5.5em; }
.c-name b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; color: var(--color-starlight); overflow-wrap: anywhere; }
.c-name span { display: block; margin-top: 2px; color: var(--color-sky-dim); max-width: 46ch; overflow-wrap: anywhere; }
.c-name small, .c-sv small, .c-k small { display: inline-block; margin-top: 4px; font-family: var(--font-data); font-size: 10.5px; color: var(--color-sky-dim); border: var(--rule) solid var(--color-night-line); padding: 0 6px; border-radius: 2px; }
.c-name .tag-fx { color: var(--color-vermilion); border-color: oklch(0.63 0.2 33 / 0.5); margin-left: 0; }
.c-t, .c-k { font-family: var(--font-data); font-size: 13px; white-space: nowrap; }
.c-k small { display: block; width: fit-content; }
.k-ok { color: oklch(0.82 0.12 150); }
.k-no { color: var(--color-vermilion); }
.k-dim { color: var(--color-sky-dim); white-space: normal; }
.c-f { font-family: var(--font-data); text-align: right; width: 5em; }
.c-s { color: var(--color-sky-dim); letter-spacing: 0.15em; white-space: nowrap; }
.row-detail td { background: oklch(0.19 0.035 262); padding: var(--space-4) var(--space-5); }
.row-detail dl { margin: 0; display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: var(--space-2) var(--space-5); font-family: var(--font-data); font-size: 13px; }
.row-detail dt { color: var(--color-sky-dim); }
.row-detail dd { margin: 0; overflow-wrap: anywhere; }
.row-detail ul { margin: 0; padding: 0; list-style: none; }
.row-detail a { color: var(--color-sky-text); text-decoration-color: var(--color-vermilion); }
.census__more { display: flex; justify-content: center; padding: var(--space-7) 0; }
.census__method { max-width: 52rem; font-size: var(--text-sm); color: var(--color-sky-dim); border-top: var(--rule) solid var(--color-night-line); padding-top: var(--space-6); }
.census__method code { font-family: var(--font-data); font-size: 0.92em; color: var(--color-sky-text); }
.census__method a { color: var(--color-sky-text); text-decoration-color: var(--color-vermilion); }
.foot--slim { padding-top: var(--space-7); }

@media (max-width: 860px) {
  .census__head { grid-template-columns: minmax(0, 1fr); }
  .census__tools { position: static; }
  .rows thead { display: none; }
  .rows, .rows tbody, .rows tr, .rows td { display: block; width: auto; }
  .rows tbody tr[data-id] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-4); padding: var(--space-4) 0; border-bottom: var(--rule) solid var(--color-night-line); }
  .rows td { padding: 0; border: 0; }
  .c-no { grid-column: 2; grid-row: 1; text-align: right; }
  .c-name { grid-column: 1; grid-row: 1 / span 2; }
  .c-t, .c-sv, .c-k, .c-f, .c-s { grid-column: 1 / -1; display: flex !important; gap: var(--space-3); white-space: normal; text-align: left !important; }
  .c-t::before, .c-sv::before, .c-k::before, .c-f::before, .c-s::before { content: attr(data-l); color: var(--color-sky-dim); font-family: var(--font-data); font-size: 10.5px; min-width: 7.5em; }
  .row-detail dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .plate__bar { grid-template-columns: minmax(0, 1fr); }
  .plate__clock { min-width: 0; white-space: normal; }
  .legend li { white-space: normal; }
}
/* no widows in display lines */
.h2, .finding__line, .hero__beat span, .census__title, .foot__line, .faq summary { text-wrap: balance; }
.hero__beat span { display: block; }

/* ---------- Orbio launchpad ---------- */
.pad { padding: var(--space-10) 0 var(--space-9); background: var(--color-night-deep); border-top: var(--rule) solid var(--color-night-line); }
.pad__head, .queue { padding-left: var(--gutter); padding-right: var(--gutter); }
.pad__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) var(--space-8); align-items: end; margin-bottom: var(--space-7); }
.pad__head .h2 { max-width: 16ch; }
.pad__lead { margin: 0; max-width: var(--measure); }
.pad__figure { margin: 0; position: relative; }
.pad__frame { position: relative; margin: 0 var(--gutter); height: 420px; cursor: crosshair; touch-action: pan-y; background: radial-gradient(80% 90% at 60% 40%, oklch(0.19 0.04 262) 0%, oklch(0.135 0.03 264) 100%); border-radius: var(--radius-sm); }
.pad__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-6) var(--gutter) 0; }
.pad__stats p { margin: 0; color: var(--color-sky-dim); font-size: var(--text-sm); line-height: 1.4; }
.pad__stats b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.03em; color: var(--color-starlight); }
.queue { margin-top: var(--space-9); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6) var(--space-8); align-items: start; }
.queue__text p { margin: 0; max-width: 30rem; color: var(--color-sky-text); }
.queue__table th small, .queue__table td small { display: block; color: var(--color-sky-dim); font-weight: 400; font-size: var(--text-xs); }
.queue__table th a { color: var(--color-starlight); text-decoration: none; }
.queue__table th a:hover { text-decoration: underline; text-decoration-color: var(--color-vermilion); }
.queue__table tbody th { width: 28%; }
.queue__table .no { color: var(--color-vermilion); }
.queue__stars { color: var(--color-sky-dim); letter-spacing: 0.12em; white-space: nowrap; }
.queue__stars small { display: inline !important; letter-spacing: 0; margin-left: 4px; }
.queue .token__note { grid-column: 2; }
.token__lead { margin: 0 0 var(--space-6); max-width: 40rem; color: var(--color-sky-text); font-size: var(--text-lg); }
@media (max-width: 860px) {
  .pad__head, .queue { grid-template-columns: minmax(0, 1fr); }
  .queue .token__note { grid-column: 1; }
  .pad__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pad__frame { height: 340px; }
  .queue__table thead { display: none; }
  .queue__table, .queue__table tbody, .queue__table tr { display: block; }
  .queue__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-4); padding: var(--space-3) 0; border-bottom: var(--rule) solid var(--color-night-line); }
  .queue__table th, .queue__table td { border: 0; padding: 0; width: auto !important; }
  .queue__table td:nth-child(3), .queue__table td:nth-child(4) { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-sky-dim); }
  .queue__table td:last-child { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  .pad__readout { position: static !important; width: auto; margin: var(--space-4) var(--gutter) 0; }
}

/* ---------- masthead nav, sub pages ---------- */
.masthead__nav { display: flex; gap: var(--space-5); }
.page-sub { background: var(--color-night-deep); }
.sub { padding: calc(var(--space-10) + 20px) var(--gutter) var(--space-9); }
.sub__head { max-width: 56rem; margin-bottom: var(--space-8); }
.sub__title { margin: 0 0 var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 0.95; letter-spacing: -0.04em; color: var(--color-starlight); overflow-wrap: anywhere; min-width: 0; }
.sub__lead { margin: 0 0 var(--space-5); max-width: 44rem; font-size: var(--text-lg); line-height: 1.5; }
.sub__meta { margin: 0 0 var(--space-5); color: var(--color-sky-dim); font-size: var(--text-sm); }
.sub__actions { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; margin: 0; }

.insp-list { display: grid; gap: var(--space-6); }
.insp__empty { max-width: 40rem; color: var(--color-sky-dim); border-top: var(--rule) solid var(--color-night-line); padding-top: var(--space-6); }
.insp { background: var(--color-night); border: var(--rule) solid var(--color-night-line); border-radius: var(--radius-md); padding: var(--space-6); scroll-margin-top: 90px; }
.insp__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-5); align-items: end; margin-bottom: var(--space-5); }
.insp__no { grid-column: 1 / -1; margin: 0; color: var(--color-sky-dim); font-size: var(--text-sm); }
.insp__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.03em; color: var(--color-starlight); overflow-wrap: anywhere; }
.insp__stars { margin: 0; font-size: var(--text-xl); color: var(--color-brass); letter-spacing: 0.08em; white-space: nowrap; }
.insp__stars span { font-size: var(--text-sm); letter-spacing: 0; color: var(--color-sky-dim); margin-left: var(--space-2); }
.insp__stars.is-out { color: var(--color-sky-dim); }
.insp__grid { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-3) var(--space-5); margin: 0; font-size: var(--text-sm); }
.insp__grid dt { color: var(--color-sky-dim); }
.insp__grid dd { margin: 0; color: var(--color-sky-text); overflow-wrap: anywhere; }
.insp__grid small { display: block; color: var(--color-sky-dim); margin-top: 2px; }
.insp__grid a { color: var(--color-starlight); text-decoration-color: var(--color-vermilion); text-underline-offset: 0.2em; }
.insp__grid pre { margin: 0; white-space: pre-wrap; font: inherit; max-height: 14rem; overflow: auto; background: var(--color-night-deep); padding: var(--space-3); border-radius: var(--radius-sm); }
.insp__checks { list-style: none; margin: 0; padding: 0; }
.insp__checks .ok, .insp__verify .ok { color: oklch(0.82 0.12 150); }
.insp__checks .no, .insp__verify .no { color: var(--color-vermilion); }
.insp__verify { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin: var(--space-5) 0 0; font-size: var(--text-sm); }
.insp__verify span[data-out] { display: grid; gap: 2px; }

.req { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; }
.req__results { list-style: none; margin: var(--space-4) 0 0; padding: 0; border-top: var(--rule) solid var(--color-night-line); }
.req__hit { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-4); text-align: left; padding: var(--space-4) var(--space-2); background: none; border: 0; border-bottom: var(--rule) solid var(--color-night-line); color: var(--color-sky-text); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.req__hit:hover { background: var(--color-night); }
.req__hit b { color: var(--color-starlight); font-weight: 600; }
.req__hit span { grid-column: 1; color: var(--color-sky-dim); font-size: var(--text-sm); }
.req__hit code { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--color-sky-dim); font-size: var(--text-sm); }
.req__none { padding: var(--space-4) 0; color: var(--color-sky-dim); }
.req__card { position: sticky; top: 100px; background: var(--color-night); border: var(--rule) solid var(--color-night-line); border-radius: var(--radius-md); padding: var(--space-6); }
.req__label { margin: 0; color: var(--color-sky-dim); font-size: var(--text-sm); }
.req__picked, .req__price { margin: var(--space-1) 0 var(--space-5); color: var(--color-starlight); font-size: var(--text-lg); overflow-wrap: anywhere; }
.req__picked code { color: var(--color-sky-dim); font-size: var(--text-sm); }
.req__status { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--color-sky-text); }
.req__status.ok { color: oklch(0.82 0.12 150); } .req__status.no { color: var(--color-vermilion); } .req__status.wait { color: var(--color-brass); }
.req__queue { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--color-sky-dim); }
@media (max-width: 860px) {
  .req { grid-template-columns: minmax(0, 1fr); }
  .req__card { position: static; }
  .insp__grid { grid-template-columns: minmax(0, 1fr); }
  .insp__grid dt { margin-top: var(--space-3); }
  .masthead__nav { gap: var(--space-4); }
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.req__hit code, .req__picked code { font-family: var(--font-data); }
@media (max-width: 560px) {
  .insp { padding: var(--space-5) var(--space-4); }
  .insp__head { grid-template-columns: minmax(0, 1fr); }
  .insp__name { overflow-wrap: break-word; }
}
