/* Innovation Blockchain. The "Orbit" design.
   Hand-written. No imports, no fonts, no third-party requests.
   The header and the opening of each page are deep slate in both themes.
   Everything below the opening follows the theme: paper, cream and slate ink by day,
   a night ground with light line-work in the dark. */

:root {
  --slate: #44546A;
  --ink: #0D0D0D;
  --cream: #E9E6DF;
  --paper: #FBFAF7;

  /* deep surfaces, the same in both themes */
  --deep: #111925;
  --deep-0: #0B1119;
  --deep-2: #182332;
  --deep-3: #223146;
  --on-deep: #E9E6DF;
  --on-deep-2: #B3BDCB;
  --deep-rule: rgba(233, 230, 223, 0.18);
  --mark-deep: #8FA1BA;
  --live: #6FE6F3;

  /* reading surfaces: day */
  --bg: var(--paper);
  --panel: #F1EEE7;
  --panel-2: var(--cream);
  --text: #0D0D0D;
  --text-2: #3D4A5C;
  --brand: #44546A;
  --rule: #D6D1C6;
  --rule-2: #A9A294;
  --link: #27405F;
  --red: #B4232C;
  --amber: #8A5000;   /* 5.2:1 on the cream cards, 6.2:1 on paper */
  --green: #17663A;
  --spine: #8E9AAB;

  /* diagram and code: cream card by day */
  --dg-bg: var(--cream);
  --dg-edge: #CFC9BC;
  --dg-zone: rgba(68, 84, 106, 0.1);
  --dg-ink: #0D0D0D;
  --dg-ink-2: #3D4A5C;
  --dg-line: #44546A;
  --dg-st: #44546A;
  --dg-st-ink: #FBFAF7;
  --dg-ok: #17663A;
  --dg-no: #B4232C;

  /* colophon: brand slate by day */
  --foot-bg: #44546A;
  --foot-text: #F3F1EC;
  --foot-rule: rgba(233, 230, 223, 0.3);

  --sans: Tenorite, "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 68ch;
  --wrap: 80rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* the spine: station size, link width, room kept for it */
  --st: 0.8rem;
  --lw: 0.3rem;
  --sp: 1.5rem;
}

/* reading surfaces: night. The same block is repeated for a forced theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F16;
    --panel: #121A26;
    --panel-2: #182332;
    --text: #E9E6DF;
    --text-2: #B3BDCB;
    --brand: #A9B9CE;
    --rule: #222D3D;
    --rule-2: #3A4960;
    --link: #BCD0EA;
    --red: #FF8E8E;
    --amber: #F2B95A;
    --green: #6DD6A0;
    --spine: #4C5D76;
    --dg-bg: #0E1620;
    --dg-edge: #2A384C;
    --dg-zone: rgba(143, 161, 186, 0.1);
    --dg-ink: #E9E6DF;
    --dg-ink-2: #B3BDCB;
    --dg-line: #8FA1BA;
    --dg-st: #E9E6DF;
    --dg-st-ink: #0B1119;
    --dg-ok: #6DD6A0;
    --dg-no: #FF8E8E;
    --foot-bg: #070B11;
    --foot-text: #B3BDCB;
    --foot-rule: rgba(233, 230, 223, 0.16);
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F16;
  --panel: #121A26;
  --panel-2: #182332;
  --text: #E9E6DF;
  --text-2: #B3BDCB;
  --brand: #A9B9CE;
  --rule: #222D3D;
  --rule-2: #3A4960;
  --link: #BCD0EA;
  --red: #FF8E8E;
  --amber: #F2B95A;
  --green: #6DD6A0;
  --spine: #4C5D76;
  --dg-bg: #0E1620;
  --dg-edge: #2A384C;
  --dg-zone: rgba(143, 161, 186, 0.1);
  --dg-ink: #E9E6DF;
  --dg-ink-2: #B3BDCB;
  --dg-line: #8FA1BA;
  --dg-st: #E9E6DF;
  --dg-st-ink: #0B1119;
  --dg-ok: #6DD6A0;
  --dg-no: #FF8E8E;
  --foot-bg: #070B11;
  --foot-text: #B3BDCB;
  --foot-rule: rgba(233, 230, 223, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
.defs { position: absolute; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 1px; }
/* white, not the live colour: on this site cyan means only "read from the chain just now" */
.on-deep :focus-visible, .on-deep:focus-visible { outline-color: #FFFFFF; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 50;
  padding: 0.5rem 0.9rem; background: var(--cream); color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.012em; }
p { margin: 0 0 1rem; }
p, li, dd, td, figcaption { text-wrap: pretty; } /* no single word left alone on a last line, where the browser can */
small { font-size: 0.875rem; }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Masthead (deep in both themes) ---------- */

.masthead {
  background: var(--deep-0);
  color: var(--on-deep);
  border-bottom: 1px solid var(--deep-rule);
  position: relative; z-index: 30;
}
.masthead .wrap {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0.15rem; padding-top: 0.75rem; padding-bottom: 0.45rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--on-deep); text-decoration: none;
  font-size: 1.0625rem; letter-spacing: 0.01em; font-weight: 500;
  margin: 0;
}
.brand svg { color: var(--on-deep); flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.nav a {
  display: block; padding: 0.5rem 0 0.45rem; color: var(--on-deep-2);
  text-decoration: none; font-size: 0.875rem; white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.nav a:hover { color: var(--on-deep); }
.nav a[aria-current="page"] { color: var(--on-deep); box-shadow: inset 0 -2px 0 var(--on-deep); }

@media (min-width: 68rem) {
  html { scroll-padding-top: 5.5rem; }
  .masthead { position: sticky; top: 0; }
  .masthead .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.25rem; padding-top: 0; padding-bottom: 0; }
  .nav ul { flex-wrap: nowrap; gap: 0 1.5rem; }
  .nav a { font-size: 0.9375rem; padding: 0.55rem 0; }
}

/* ---------- Opening (deep in both themes) ---------- */

.opening {
  position: relative;
  background:
    radial-gradient(60rem 42rem at 76% 34%, #1E2C41 0%, rgba(30, 44, 65, 0) 62%),
    linear-gradient(180deg, var(--deep-0) 0%, var(--deep) 55%, #0E151F 100%);
  color: var(--on-deep);
  overflow: hidden;
  padding-bottom: clamp(3.25rem, 7vw, 6.5rem);
}
/* the panel cut by one diagonal, from the deck: the page's own ground comes up under the opening */
.opening::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(2rem, 5vw, 4.5rem);
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.opening::before { /* a hairline along the cut, so it reads at night too */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(2rem, 5vw, 4.5rem);
  background: var(--mark-deep); opacity: 0.55;
  clip-path: polygon(0 calc(100% - 1.5px), 100% 0, 100% 1.5px, 0 100%);
}
.opening .lines {
  position: absolute; right: -6rem; top: 1rem; width: 62rem; max-width: none; height: auto;
  color: var(--on-deep); opacity: 0.09; pointer-events: none;
}
.opening .label { color: var(--on-deep-2); }
.opening a { color: var(--on-deep); }

.hero {
  position: relative;
  display: flex; flex-direction: column;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.hero-text, .hero-orb { display: contents; }
.hero .label { order: 1; }
.hero h1 {
  order: 2;
  font-size: clamp(2.05rem, 8.6vw, 2.9rem);
  line-height: 1.04; letter-spacing: -0.028em; font-weight: 500;
  margin: 0.8rem 0 0; max-width: 15.5em; text-wrap: balance;
}
.hero .orbit { order: 3; align-self: center; width: min(68vw, 17.5rem); margin: 0.9rem 0 0.2rem; }
.hero .steps { order: 4; }
.hero .lead { order: 5; }
.hero .readout { order: 6; }
.lead { font-size: 1.0625rem; line-height: 1.55; max-width: 35rem; color: var(--on-deep-2); margin-bottom: 0.8rem; }
.hero h1 + .lead { color: var(--on-deep); margin-top: 1.4rem; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 36rem;
  border-top: 1px solid var(--deep-rule);
}
.steps li {
  position: relative; padding: 0.65rem 0.4rem 0 0;
  font-size: 1rem; color: var(--on-deep);
  opacity: 0.74; transition: opacity 0.9s ease-in-out;
}
.steps li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px;
  background: var(--on-deep); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}
.steps .num { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--on-deep-2); }
.steps small { display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-deep-2); margin-top: 0.1rem; }
.steps li.on { opacity: 1; }
.steps li.on::before { transform: none; transform-origin: 0 50%; }   /* in from the left, out to the right: the bar moves along */
html:not(.js) .steps li, .still .steps li { opacity: 1; }

@media (min-width: 64rem) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
    padding-top: clamp(0.9rem, 1.5vw, 1.4rem);
    padding-bottom: clamp(0.9rem, 1.4vw, 1.25rem);
  }
  .hero-text { display: block; }
  .hero-orb { position: relative; display: grid; justify-items: center; }
  .hero h1 { font-size: clamp(2.15rem, 3.7vw, 3.35rem); margin: 0.8rem 0 1.1rem; }
  .hero h1 + .lead { margin-top: 0; }
  .hero .orbit { width: min(100%, 24.5rem); margin: 0; }
  .hero .steps { margin-top: 1.25rem; }
  .steps li { font-size: 1.0625rem; }
}

/* ---------- The mark as a moving object ---------- */

.orbit { display: block; height: auto; overflow: visible; }
/* .o-calm is a soft disc of the opening's own slate behind the mark: it covers the thin-line
   motif there, so no line crosses the mark, and fades out at its edge */
.orbit stop { stop-color: var(--calm, #172232); }
.mc-globe .orbit { --calm: #0E151F; }
@media (min-width: 62rem) { .mc-globe .orbit { --calm: #121B27; } }
@media (max-width: 63.99rem) { .hero .orbit { --calm: #121B27; } }
.o-globe { fill: none; stroke: var(--mark-deep); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.o-trace { fill: var(--mark-deep); stroke: none; }
.o-link { fill: var(--on-deep); }
.o-link.gap { fill: none; stroke: var(--on-deep); stroke-width: 1.5; stroke-dasharray: 2.5 2.5; }
.o-sat { opacity: 0; }
.o-sat .core { fill: var(--on-deep); }
.o-sat .halo { fill: var(--on-deep); opacity: 0.22; }
html[data-read="live"] .o-sat .core, html[data-read="live"] .o-sat .halo { fill: var(--live); }

/* The mark arrives once, one part after another, and then holds still: outline and ticks,
   the ring, the moon, the chain, then the band lines drawn from the outline inwards.
   After that the only movement is the light on the chain (orbit.js). */
.o-arc, .o-trace, .o-ring, .o-moon, .o-chain { animation: o-fade 0.9s ease-in-out both; }
.o-ring { animation-delay: 0.2s; }
.o-moon { animation-delay: 0.4s; }
.o-chain { animation-delay: 0.6s; }
.o-band { transform-box: fill-box; transform-origin: 0 50%; animation: o-draw 0.9s cubic-bezier(0.45, 0, 0.2, 1) both; animation-delay: 1s; }
.o-band.r { transform-origin: 100% 50%; }
.o-band:nth-of-type(4) { animation-delay: 1.12s; }
.o-band:nth-of-type(5) { animation-delay: 1.24s; }
.o-band:nth-of-type(6) { animation-delay: 1.36s; }
.o-band:nth-of-type(7) { animation-delay: 1.48s; }
.away *, .away *::before, .away *::after { animation-play-state: paused !important; }

@keyframes o-draw { from { transform: scaleX(0); opacity: 0; } }
@keyframes o-fade { from { opacity: 0; } }
@keyframes o-pulse { 50% { opacity: 0.35; } }

/* ---------- Network reading on the opening ---------- */

.readout {
  position: relative; z-index: 1; width: 100%; max-width: 36rem; margin-top: 1rem;
  border: 1px solid rgba(233, 230, 223, 0.3); background: #0C131C;
  padding: 0.75rem 1rem 0.7rem;
}
.readout .label { font-size: 0.6875rem; margin-bottom: 0.4rem; }
.readout p { margin: 0; }
.readout .ro-line { font-size: 1.0625rem; line-height: 1.35; margin: 0.45rem 0 0.4rem; color: var(--on-deep); }
.readout .ro-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; font-size: 0.875rem; color: var(--on-deep-2); }
@media (min-width: 64rem) { .readout { max-width: 32rem; margin-top: -3.25rem; } }

.state { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--on-deep); display: flex; gap: 0.6rem; align-items: baseline; margin: 0; }
.state::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border: 1.5px solid var(--on-deep-2); transform: translateY(-0.05em); }
.state[data-mode="live"]::before { background: var(--live); border-color: var(--live); animation: o-pulse 2.4s ease-in-out infinite; }
.state[data-mode="live"] { color: var(--live); }
.state[data-mode="down"]::before { background: #F2B95A; border-color: #F2B95A; }
.sub { font-size: 0.8125rem; line-height: 1.45; color: var(--on-deep-2); margin: 0.2rem 0 0 1.1rem; }

.btn {
  font: inherit; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-deep); background: transparent; border: 1px solid var(--on-deep-2);
  padding: 0.5rem 0.85rem; cursor: pointer; min-height: 2.25rem;
}
.btn:hover { background: var(--on-deep); color: var(--deep-0); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--on-deep); }
.btn[hidden] { display: none; }
.readout .btn { min-height: 1.9rem; padding: 0.3rem 0.7rem; font-size: 0.6875rem; }

/* ---------- Project-status stamp ---------- */

.stamp { position: relative; border: 1px solid rgba(233, 230, 223, 0.34); background: rgba(11, 17, 25, 0.5); }
.stamp-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.5rem;
  padding: 0.45rem 1.25rem; border-bottom: 1px solid rgba(233, 230, 223, 0.34);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; line-height: 1.5;
  color: var(--on-deep);
}
.stamp dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.stamp dl > div { position: relative; padding: 0.75rem 1.25rem 0.8rem 2.5rem; border-top: 1px solid var(--deep-rule); }
.stamp dl > div:first-child { border-top: 0; }
.stamp dl > div::before { /* one link per statement */
  content: ""; position: absolute; left: 1.25rem; top: 0.95rem; width: 0.5rem; height: 0.5rem; background: var(--mark-deep);
}
.stamp dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-deep-2); margin-bottom: 0.3rem; }
.stamp dd { margin: 0; font-size: 1.125rem; line-height: 1.25; color: var(--on-deep); }
.stamp dd small { display: block; margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.45; color: var(--on-deep-2); }
.stamp-foot { margin: 0; padding: 0.65rem 1.25rem 0.7rem; border-top: 1px solid var(--deep-rule); font-size: 0.9375rem; line-height: 1.5; color: var(--on-deep-2); max-width: none; }
@media (min-width: 40rem) {
  .stamp dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp dl > div { border-left: 1px solid var(--deep-rule); }
  .stamp dl > div:nth-child(odd) { border-left: 0; }
  .stamp dl > div:nth-child(2) { border-top: 0; }
}
@media (min-width: 64rem) {
  .stamp dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr); }
  .stamp dl > div { border-top: 0; padding: 0.7rem 1.25rem 0.75rem; }
  .stamp dl > div:nth-child(odd) { border-left: 1px solid var(--deep-rule); }
  .stamp dl > div:first-child { border-left: 0; }
  .stamp dl > div::before { display: none; }
}

/* ---------- Page: rail (dial) + flow (spine) ---------- */

.page { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: clamp(0.5rem, 3vw, 3rem); padding-bottom: 4rem; }

.flow { position: relative; min-width: 0; padding-left: var(--sp); }
.flow::before { /* the spine: a chain of square links down the page */
  content: ""; position: absolute; left: calc((var(--st) - var(--lw)) / 2); top: 0; bottom: 0; width: var(--lw);
  background: repeating-linear-gradient(180deg, var(--spine) 0 var(--lw), transparent var(--lw) calc(var(--lw) * 2.6));
}

.sec { position: relative; padding: clamp(2.25rem, 5vw, 4.5rem) 0 0; }
.sec-ref { position: relative; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; color: var(--brand); }
.sec-ref::before { /* the station: one large link, on the spine */
  content: ""; position: absolute; left: calc(-1 * var(--sp)); top: 50%; margin-top: calc(var(--st) / -2);
  width: var(--st); height: var(--st); background: var(--brand); box-shadow: 0 0 0 0.25rem var(--bg);
}
.sec-ref::after { content: ""; flex: 1; height: 1px; background: var(--rule); order: 3; }
.sec-ref .num { color: var(--text); font-size: 0.8125rem; }

.sec-body > * { max-width: var(--measure); }
.sec-body > .table-scroll, .sec-body > .diagram, .sec-body > .clauses, .sec-body > .pair, .sec-body > pre, .sec-body > .facts, .sec-body > .five { max-width: 60rem; }
.sec h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -0.024em; margin-bottom: 1.3rem; text-wrap: balance; }
.sec h3 { font-size: 1.375rem; margin: 2.75rem 0 0.9rem; letter-spacing: -0.012em; }
.sec h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.25rem; line-height: 1.3; }
.sec ul, .sec ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.sec li { margin-bottom: 0.4rem; }
.sec li::marker { color: var(--brand); }
.note { font-size: 0.9375rem; color: var(--text-2); }
.caveat { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-top: -0.6rem; }
strong { font-weight: 600; }

/* docking: the station link turns and fills, and the section settles, when it arrives */
.js .sec .sec-ref::before { opacity: 0.35; transform: scale(0.6) rotate(45deg); transition: transform 0.7s var(--ease), opacity 0.5s 0.2s; }
.js .sec .sec-ref::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease) 0.1s; }
.js .sec .sec-body { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease 0.1s, transform 0.8s var(--ease) 0.1s; }
.js .sec.docked .sec-ref::before { opacity: 1; transform: none; }
.js .sec.docked .sec-ref::after { transform: none; }
.js .sec.docked .sec-body { opacity: 1; transform: none; }

/* the rail. On a phone it is a bar that stays at the top: the chain laid flat, one link per
   station, with the station being read filled in. From 68rem it is the dial beside the text. */
.rail {
  position: sticky; top: 0; z-index: 20;
  margin: 0 calc(-1 * var(--gut)); padding: 0.3rem var(--gut) 0.45rem;
  background: var(--bg); border-bottom: 1px solid var(--rule);
}
.dial { display: none; }
.rail-in { display: flex; flex-direction: column-reverse; }
.rail-read { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.dial-now { margin: 0; flex: none; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.dial-name { margin: 0; font-size: 0.9375rem; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-nav { /* the chain between stations */
  list-style: none; margin: 0; padding: 0; display: flex;
  background: repeating-linear-gradient(90deg, var(--spine) 0 0.25rem, transparent 0.25rem 0.625rem) 0 50% / 100% 0.25rem no-repeat;
}
.rail-nav li { flex: 1 1 0; min-width: 0; }
.rail-nav a { position: relative; display: block; height: 2rem; color: var(--brand); }
.rail-nav a::after { /* the station */
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem;
  background: var(--bg); border: 1.5px solid var(--brand); box-shadow: 0 0 0 0.2rem var(--bg);
  transition: transform 0.4s var(--ease);
}
.rail-nav a.past::after { background: var(--spine); border-color: var(--spine); }
.rail-nav a[aria-current="true"]::after { background: var(--brand); transform: scale(1.3) rotate(45deg); }
.rail-nav a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 68rem) {
  :root { --st: 1.1rem; --lw: 0.4rem; --sp: 3.25rem; }
  .page.has-rail { grid-template-columns: 13.5rem minmax(0, 1fr); column-gap: 2.5rem; }
  .rail { position: static; margin: 0; padding: 0; background: none; border: 0; }
  .rail-in { display: block; position: sticky; top: 5.75rem; padding-bottom: 1rem; }
  .rail-read { display: block; }
  .sec-ref .num { position: relative; }
  .sec-ref .num::before { content: ""; position: absolute; right: calc(100% + 0.6rem); top: 50%; width: 1.5rem; height: 1px; background: var(--brand); }

  .dial { display: block; width: 11.5rem; height: auto; color: var(--brand); overflow: visible; margin-left: -0.4rem; }
  .dial-now { margin: 0.9rem 0 0; font-size: 0.75rem; }
  .dial-name { margin: 0.15rem 0 1rem; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; white-space: normal; }
  .rail-nav { display: block; padding: 0.8rem 0 0; border-top: 1px solid var(--rule); background: none; }
  .rail-nav a { display: flex; gap: 0.7rem; height: auto; padding: 0.28rem 0; font-size: 0.9375rem; color: var(--text-2); text-decoration: none; }
  .rail-nav a::after { content: none; }
  .rail-nav a > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .rail-nav a:hover { color: var(--text); }
  .rail-nav .num { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; padding-top: 0.2em; }
  .rail-nav a[aria-current="true"] { color: var(--text); font-weight: 600; }

  /* a long page (the standard): a smaller dial and a tighter list, so the rail fits the window */
  .rail.long .dial { width: 8.5rem; margin-left: -0.2rem; }
  .rail.long .dial-name { font-size: 1.125rem; margin-bottom: 0.7rem; }
  .rail.long .rail-nav { padding-top: 0.55rem; }
  .rail.long .rail-nav a { padding: 0.14rem 0; font-size: 0.875rem; line-height: 1.35; }
}
@media (min-width: 68rem) and (max-height: 46rem) {
  .rail.long .dial { display: none; }
  .rail.long .dial-now { margin-top: 0; }
}

.d-orbit { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.d-ring { transition: transform 0.9s var(--ease); }
.d-st { fill: var(--bg); stroke: var(--brand); stroke-width: 1.5; }
.d-st.on { fill: var(--brand); }
.d-dock { fill: none; stroke: var(--brand); stroke-width: 1.5; }

/* ---------- Content pieces ---------- */

.five { list-style: none; counter-reset: five; padding: 0 !important; margin: 1.5rem 0 1.75rem !important; border-top: 1px solid var(--rule); }
.five li {
  counter-increment: five; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: baseline;
  padding: 0.8rem 0; margin: 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.3; letter-spacing: -0.01em;
}
.five li::before { content: "0" counter(five); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--brand); }

.clauses { list-style: none; padding: 0 !important; margin: 1rem 0 1.5rem !important; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.clauses > li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0; padding: 1.05rem 0 0.9rem; margin: 0; border-bottom: 1px solid var(--rule); }
.clauses .ref { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--brand); padding-top: 0.2rem; }
.clauses h3 { margin: 0 0 0.4rem; font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.clauses p { margin: 0; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.clauses ul { margin-bottom: 0; }
@media (min-width: 52rem) {
  .five li, .clauses > li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .clauses.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}

.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.5; }
thead th {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400;
  color: var(--text-2); text-align: left; padding: 0 1rem 0.55rem 0; border-bottom: 1px solid var(--text); vertical-align: bottom;
}
tbody th, tbody td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); }
tbody th { font-weight: 600; width: 32%; }
tbody th.code { font-family: var(--mono); width: 4.5rem; font-size: 1.0625rem; }
tbody td { color: var(--text-2); }
table.wide { min-width: 44rem; }
table.wide tbody th { width: 9.5rem; }

@media (max-width: 39.99rem) {
  /* two- and three-column tables fold into stacked rows; the wide one scrolls in its own region */
  table:not(.wide) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table:not(.wide), table:not(.wide) tbody, table:not(.wide) tr, table:not(.wide) th, table:not(.wide) td { display: block; width: auto; }
  table:not(.wide) tbody { border-top: 1px solid var(--text); }
  table:not(.wide) tr { padding: 0.75rem 0 0.8rem; border-bottom: 1px solid var(--rule); }
  table:not(.wide) tbody th, table:not(.wide) tbody td { padding: 0; border: 0; }
  table:not(.wide) tbody th { margin-bottom: 0.2rem; }
  table:not(.wide) tbody td:empty { display: none; }
  /* a later column that would read as part of the one before it carries its heading */
  table:not(.wide) td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 0.45rem;
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  }
}

.proposed {
  display: inline-block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--rule-2); padding: 0.02rem 0.4rem; vertical-align: 0.08em; white-space: nowrap;
}
.on-deep .proposed { color: var(--on-deep); border-color: var(--on-deep-2); }

.rating { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.rating::before { content: ""; width: 0.7rem; height: 0.7rem; flex: none; background: currentColor; }
.rating.red::before { background: var(--red); }
.rating.amber::before { background: var(--amber); }
.rating.green::before { background: var(--green); }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.pair > div { background: var(--panel-2); padding: 1.4rem 1.5rem 0.9rem; border-top: 2px solid var(--brand); }
.pair h3 { margin-top: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
ul.plain { list-style: none; padding: 0 !important; }
ul.plain li { padding: 0.5rem 0; margin: 0; border-top: 1px solid var(--rule-2); }

pre {
  margin: 0.6rem 0 1.5rem; padding: 1.25rem 1.4rem; overflow-x: auto;
  background: var(--dg-bg); color: var(--dg-ink); border: 1px solid var(--dg-edge); border-left: 0.4rem solid var(--brand);
  font-family: var(--mono); font-size: 0.875rem; line-height: 1.6;
}
#sample-cap { margin-top: 1.5rem; }

.contact-line { margin: 1.25rem 0; }
.contact-line a { font-size: clamp(1.15rem, 4.6vw, 2.5rem); letter-spacing: -0.02em; color: var(--text); text-decoration-color: var(--rule-2); }
.contact-line a:hover { text-decoration-color: currentColor; }

.facts { margin: 1rem 0 1.25rem; border-top: 1px solid var(--text); }
.facts > div { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 0.15rem 1.5rem; padding: 0.7rem 0 0.75rem; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd small { display: block; font-weight: 400; color: var(--text-2); margin-top: 0.15rem; }
.facts dd.addr, .facts .addr a { font-family: var(--mono); font-size: 0.875rem; font-weight: 400; word-break: break-all; }
[data-bad] { color: var(--text-2); }
@media (max-width: 39.99rem) { .facts > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The proof diagram: the chain, with its four stations ---------- */

.diagram { margin: 2rem 0 2.25rem; background: var(--dg-bg); color: var(--dg-ink); padding: 1.1rem 1rem 1.2rem; border: 1px solid var(--dg-edge); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .dg-narrow { max-width: 25rem; }
.diagram .dg-wide { display: none; }
@media (min-width: 80rem) {
  .diagram .dg-wide { display: block; }
  .diagram .dg-narrow { display: none; }
}
.diagram figcaption { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--dg-edge); color: var(--dg-ink-2); font-size: 0.9375rem; line-height: 1.5; max-width: 62rem; }
.dg-zone { fill: var(--dg-zone); }
.dg-st { fill: var(--dg-st); }
.dg-st-n { fill: var(--dg-st-ink); font-family: var(--mono); font-size: 15px; font-weight: 600; text-anchor: middle; }
.dg-rec { fill: var(--dg-st); }
.dg-rec-o { fill: none; stroke: var(--dg-st); stroke-width: 1.5; }
.dg-rec-l { fill: none; stroke: var(--dg-st-ink); stroke-width: 2; }
.dg-links { fill: none; stroke: var(--dg-line); stroke-width: 6; stroke-dasharray: 6 7; }
.dg-head { fill: var(--dg-line); }
.dg-hang { fill: none; stroke: var(--dg-line); stroke-width: 1; }
.dg-dash { fill: none; stroke: var(--dg-ink-2); stroke-width: 1.25; stroke-dasharray: 4 4; }
.dg-t { fill: var(--dg-ink); font-family: var(--sans); font-size: 14px; }
.dg-l { fill: var(--dg-ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.dg-step { fill: var(--dg-ink); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; }
.dg-ok { fill: none; stroke: var(--dg-ok); stroke-width: 2.25; }
.dg-no { fill: none; stroke: var(--dg-no); stroke-width: 2.25; }

/* ---------- Status page: mission control ---------- */

.console-in { position: relative; }
.console { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.console-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem 4rem; align-items: end; margin-bottom: clamp(1rem, 2.5vw, 2rem); }
.console-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.03em; margin-top: 0.7rem; }
.console-head .lead { margin: 0; max-width: 40rem; }
@media (min-width: 62rem) { .console-head { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); } }

.mc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.mc-globe { display: grid; place-items: center; }
.mc-globe .orbit { width: min(64vw, 17rem); }
.tile { position: relative; border: 1px solid var(--deep-rule); background: rgba(11, 17, 25, 0.55); padding: 0.9rem 1.1rem 0.4rem; }
.tile h2, .inst h2, .inst h3 { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-deep); margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: center; line-height: 1.5; }
.tile h2::before, .inst h3::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--on-deep); flex: none; }
.tile dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.tile dl > div { padding: 0.55rem 0 0.6rem; border-top: 1px solid var(--deep-rule); }
.tile dl > div.full { grid-column: 1 / -1; }
.tile dt { font-size: 0.8125rem; line-height: 1.35; color: var(--on-deep-2); margin-bottom: 0.1rem; }
.tile dd { margin: 0; font-size: 1.125rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--on-deep); }
.tile dd small { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--on-deep-2); margin-top: 0.15rem; }
.tile .big { font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1.1; }
.on-deep .rating { color: var(--on-deep); }
.on-deep .rating.red::before { background: #FF8E8E; }
.on-deep .rating.amber::before { background: #F2B95A; }
.on-deep .rating.green::before { background: #6DD6A0; }
.on-deep [data-bad] { color: var(--on-deep-2); }
.tile-note { font-size: 0.8125rem; line-height: 1.4; color: var(--on-deep-2); margin: 0 0 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--deep-rule); }

@media (min-width: 40rem) and (max-width: 61.99rem) {
  .mc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-globe { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .mc {
    grid-template-columns: minmax(0, 1fr) clamp(17rem, 27vw, 23rem) minmax(0, 1fr);
    grid-template-areas: "net globe reg" "ext globe gate";
    gap: 1rem 2.75rem; align-items: stretch;
  }
  .t-net { grid-area: net; } .t-reg { grid-area: reg; } .t-ext { grid-area: ext; } .t-gate { grid-area: gate; }
  .mc-globe { grid-area: globe; }
  .mc-globe .orbit { width: 100%; }
  /* leaders from each tile to the globe */
  .tile::after { content: ""; position: absolute; top: var(--ly); width: 2.75rem; height: 1px; background: var(--deep-rule); }
  .t-net::after, .t-ext::after { left: 100%; }
  .t-reg::after, .t-gate::after { right: 100%; }
  .t-net, .t-reg { --ly: calc(100% - 2.5rem); } .t-ext, .t-gate { --ly: 2.5rem; }
  .tile::before { content: ""; position: absolute; top: calc(var(--ly) - 2.5px); width: 6px; height: 6px; background: var(--on-deep-2); }
  .t-net::before, .t-ext::before { left: calc(100% + 2.75rem - 3px); }
  .t-reg::before, .t-gate::before { right: calc(100% + 2.75rem - 3px); }
}

.readbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 1rem; padding: 0.85rem 1.1rem; border: 1px solid rgba(233, 230, 223, 0.34); background: rgba(11, 17, 25, 0.5); }
.readbar .state { font-size: 0.9375rem; }
.readbar .sub { font-size: 0.875rem; }
.console .note { color: var(--on-deep-2); margin: 0.75rem 0 0; }

.reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 3rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.reading h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-deep-2); line-height: 1.5; padding-top: 0.5rem; }
.reading p { margin: 0; }
.reading [data-k="reading"] { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.6rem; text-wrap: balance; }
.reading [data-k="reading-2"] { color: var(--on-deep-2); max-width: 44rem; }
.console .measure { color: var(--on-deep-2); max-width: 46rem; margin: 1.25rem 0 0; font-size: 0.9375rem; }
@media (min-width: 62rem) {
  .reading { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .console .measure { margin-left: 16.5rem; }
}

/* the instruments: the validity window as a chain, and two orbits used as gauges */
.inst { margin-top: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--deep-rule); background: rgba(11, 17, 25, 0.55); }
.inst > h2 { margin: 0; padding: 0.55rem 1.1rem; border-bottom: 1px solid var(--deep-rule); justify-content: space-between; flex-wrap: wrap; gap: 0.2rem 1.5rem; }
.inst > h2 span:last-child { color: var(--on-deep-2); }
.inst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inst-cell { padding: 0.9rem 1.1rem 1rem; min-width: 0; }
.inst-cell.tl { grid-column: 1 / -1; border-bottom: 1px solid var(--deep-rule); }
.inst-cell + .inst-cell.g2 { border-left: 1px solid var(--deep-rule); }
.inst h3 { justify-content: flex-start; }
.inst h3 b { margin-left: auto; font-weight: 400; color: var(--on-deep-2); }
.inst p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--on-deep-2); }
.inst .fig { font-family: var(--mono); font-size: 1.0625rem; line-height: 1.3; color: var(--on-deep); margin: 0.5rem 0 0.3rem; font-variant-numeric: tabular-nums; }
@media (min-width: 62rem) {
  .inst-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .inst-cell.tl { grid-column: auto; border-bottom: 0; }
  .inst-cell + .inst-cell { border-left: 1px solid var(--deep-rule); }
}

.tl-track { display: block; width: 100%; height: 4.5rem; overflow: visible; margin-top: 0.4rem; }
.tl-win { fill: url(#tl-dim); }
.tl-run { fill: url(#tl-lit); }
.tl-stale { fill: url(#tl-hatch); }
.tl-edge { stroke: var(--on-deep-2); stroke-width: 1; }
.tl-p-dim { fill: var(--on-deep); fill-opacity: 0.3; }
.tl-p-lit { fill: var(--on-deep); }
.tl-p-hatch { stroke: #F2B95A; stroke-width: 1.25; stroke-opacity: 0.75; }
.tl-now { overflow: visible; }
.tl-now line { stroke: var(--on-deep); stroke-width: 1; }
.tl-now .core { fill: var(--deep-0); stroke: var(--on-deep); stroke-width: 1.5; }
.tl-now .halo { fill: var(--on-deep); opacity: 0.18; }
.tl-now text { fill: var(--on-deep); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
html[data-read="live"] .tl-now .core { fill: var(--live); stroke: var(--live); }
html[data-read="live"] .tl-now .halo { fill: var(--live); }
.tl-ends { display: grid; grid-template-columns: 84% 16%; }
.tl-ends > div:first-child { display: flex; justify-content: space-between; gap: 0.75rem; padding-right: 0.6rem; }
.tl-ends p:nth-child(2) { text-align: right; }
.tl-ends b { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--on-deep); }
.tl-ends .stale b { color: #F2B95A; }
.inst .tl-say { margin-top: 0.7rem; max-width: 40rem; }
.tl-track[data-bad] .tl-run, .tl-track[data-bad] .tl-now { opacity: 0; }

.gauge { display: block; width: min(100%, 11rem); height: auto; margin: 0.2rem auto 0; overflow: visible; }
.g-orbit { fill: none; stroke: var(--on-deep); stroke-opacity: 0.2; stroke-width: 1; }
.g-ticks { fill: none; stroke: var(--on-deep); stroke-opacity: 0.45; stroke-width: 5; stroke-dasharray: 0.5 4.5; }
.g-track { fill: none; stroke: var(--on-deep); stroke-opacity: 0.13; stroke-width: 9; }
.g-on { fill: none; stroke: var(--mark-deep); stroke-width: 9; }
.g-zone { fill: none; stroke: var(--mark-deep); stroke-opacity: 0.4; stroke-width: 9; }
.g-link { fill: var(--on-deep); }
.g-zero { stroke: var(--on-deep-2); stroke-width: 1; }
.gauge text { fill: var(--on-deep); font-family: var(--sans); font-size: 30px; text-anchor: middle; letter-spacing: -0.02em; }
.gauge text.g-cap { fill: var(--on-deep-2); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; }
.gauge[data-bad] .g-on, .gauge[data-bad] .g-zone, .gauge[data-bad] .g-link { opacity: 0; }

/* ---------- Document opening (the standard) and the not-found page ---------- */

.opening.plain .wrap { position: relative; padding-top: clamp(1.75rem, 4vw, 3.25rem); }
.opening.plain h1 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -0.03em; margin: 1rem 0; max-width: 14em; text-wrap: balance; }
.opening.plain .measure { color: var(--on-deep-2); max-width: 40rem; }
.draft-flag { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--on-deep); padding: 0.25rem 0.6rem; }
.docmeta { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; }
.doc-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.doc-orb { display: none; }
@media (min-width: 64rem) {
  .doc-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 2rem clamp(2rem, 5vw, 5rem); }
  .doc-orb { display: grid; justify-items: center; }
  .doc-orb .orbit { width: min(100%, 22rem); }
}
.toc { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 2rem; border-top: 1px solid var(--deep-rule); }
.toc li { margin: 0; border-bottom: 1px solid var(--deep-rule); }
.toc a { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.5rem 0; text-decoration: none; color: var(--on-deep); }
.toc a:hover { color: #fff; }
.toc .ref { position: relative; font-family: var(--mono); font-size: 0.8125rem; color: var(--on-deep-2); min-width: 2.6rem; padding-left: 1.1rem; }
.toc .ref::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.45rem; height: 0.45rem; margin-top: -0.225rem; background: var(--mark-deep); }

.opening.lost { min-height: calc(100vh - 12rem); display: grid; align-items: center; }
.lost-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; padding-bottom: 1rem; }
.lost-in .orbit { width: min(70vw, 18rem); justify-self: center; }
.lost-in h1 { margin-top: 0.8rem; }
.lost-in .lead { color: var(--on-deep); }
.lost-in p:last-child { color: var(--on-deep-2); max-width: 35rem; }
@media (min-width: 64rem) {
  .lost-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem 5rem; }
  .lost-in .orbit { width: min(100%, 26rem); order: 2; }
}

/* ---------- Colophon ---------- */

.colophon { position: relative; overflow: hidden; background: var(--foot-bg); color: var(--foot-text); padding: 2.75rem 0 3rem; font-size: 0.9375rem; border-top: 1px solid var(--foot-rule); }
.colophon .lines { position: absolute; right: -4rem; bottom: -6rem; width: 46rem; max-width: none; height: auto; color: var(--on-deep); opacity: 0.13; pointer-events: none; }
.colophon .wrap { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 4rem; }
.colophon p { margin: 0 0 0.6rem; max-width: 34rem; }
.colophon .brand { margin-bottom: 0.9rem; }
.colophon a { color: var(--on-deep); }
.colophon :focus-visible { outline-color: var(--on-deep); }
.foot-nav { list-style: none; margin: 0.9rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--foot-rule); display: flex; flex-wrap: wrap; gap: 0.1rem 1.25rem; }
.foot-nav a { display: block; padding: 0.3rem 0; }
.colophon .legal { display: block; margin-top: 1.75rem; }
.colophon .legal p { max-width: 60rem; margin: 0 0 0.5rem; font-size: 0.8125rem; line-height: 1.55; }
.colophon .legal p:first-child { border-top: 1px solid var(--foot-rule); padding-top: 1.1rem; max-width: none; font-size: 0.9375rem; }

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .sec .sec-body { opacity: 1; transform: none; }
  .js .sec .sec-ref::before { opacity: 1; transform: none; }
  .js .sec .sec-ref::after { transform: none; }
  .steps li { opacity: 1; }
}

@media print {
  .masthead, .rail { position: static; }
  .rail, .btn { display: none; }
  .js .sec .sec-body { opacity: 1; transform: none; }
}
