@font-face {
  font-family: "Bricolage Local";
  src: url("/inainte-de-unda-s/fonts/Bricolage.413e7357809d.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader Local";
  src: url("/inainte-de-unda-s/fonts/Newsreader.8a08d13f8a6c.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono Local";
  src: url("/inainte-de-unda-s/fonts/PlexMono.a9b4c49bb299.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #10191b;
  --night-2: #17272a;
  --night-3: #22383a;
  --paper: #ede9df;
  --paper-2: #e1ded3;
  --paper-white: #fbf9f3;
  --ink: #172321;
  --muted: #64716c;
  --muted-dark: #aab8b0;
  --line: rgba(23, 35, 33, 0.19);
  --line-dark: rgba(237, 233, 223, 0.2);
  --blue: #8bcdd3;
  --blue-deep: #3e777e;
  --copper: #f0af67;
  --copper-deep: #a56334;
  --red: #e26b55;
  --red-deep: #9a4239;
  --green: #a7c89b;
  --display: "Bricolage Local", "Arial Narrow", sans-serif;
  --body: "Newsreader Local", Georgia, serif;
  --utility: "Plex Mono Local", "SFMono-Regular", Consolas, monospace;
  --shell: min(1180px, calc(100vw - 40px));
  --section-space: clamp(4.75rem, 10vw, 9rem);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.has-js .back-top { display: none; }
body.has-js .back-top.is-visible { display: inline-grid; }
body.has-js .back-top.is-fixed {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input { font: inherit; }

button { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

::selection { color: var(--paper-white); background: var(--red-deep); }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 60;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--paper-white);
  background: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow,
.source-kind,
.source-org,
.control-label,
.instrument-footer,
.instrument-readout__label,
.instrument-readout__sub,
.hero-note,
.hero-stat span,
.clock-stage__number,
.clock-stage > span:last-child,
.response-row__meta,
.response-row__tag,
.action-row__mark,
.relay-chain__index,
.relay-chain__item > span:last-child,
.relay-next > span,
.updated-line,
.method-note,
.lifecycle-line,
.footer-grid,
.section-source,
.source-scope,
.range-labels,
.control-hint {
  font-family: var(--utility);
  font-size: 0.65rem;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.eyebrow { margin: 0 0 1rem; color: var(--muted); text-transform: uppercase; }
.eyebrow--light { color: var(--blue); }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.055em; }

h2 {
  max-width: 13ch;
  margin-bottom: 1.45rem;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.02;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--paper-white);
  background: var(--night);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 0;
  opacity: 0.25;
  background: linear-gradient(108deg, transparent 0 68%, rgba(139, 205, 211, 0.22) 68.1% 68.25%, transparent 68.4%), linear-gradient(180deg, transparent 0 88%, rgba(240, 175, 103, 0.16) 88.2% 88.35%, transparent 88.55%);
}

.hero::after {
  top: 18%;
  right: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(139, 205, 211, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(139, 205, 211, 0.035), 0 0 0 8rem rgba(139, 205, 211, 0.025);
}

.hero-shell { position: relative; z-index: 1; padding-top: 1.2rem; padding-bottom: 2rem; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.wordmark,
.language-switch,
.hero-nav a {
  color: rgba(251, 249, 243, 0.72);
  font-family: var(--utility);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark { color: var(--paper-white); }
.wordmark:hover,
.language-switch:hover,
.hero-nav a:hover { color: var(--copper); }

.topbar__right { display: flex; align-items: center; gap: 1.3rem; }
.hero-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  min-height: min(720px, calc(100svh - 12rem));
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy { max-width: 40rem; }

.hero h1 {
  max-width: 10ch;
  margin-bottom: 1.65rem;
  color: var(--paper-white);
  font-size: clamp(3.35rem, 8.3vw, 8rem);
  line-height: 0.86;
}

.hero-deck {
  max-width: 34rem;
  margin-bottom: 1.8rem;
  color: rgba(251, 249, 243, 0.78);
  font-size: clamp(1.18rem, 1.8vw, 1.48rem);
  line-height: 1.25;
}

.hero-note { display: flex; gap: 0.6rem; align-items: center; max-width: 33rem; color: var(--copper); text-transform: uppercase; }
.note-dot { flex: 0 0 0.52rem; width: 0.52rem; height: 0.52rem; border-radius: 50%; background: var(--copper); }
.note-dot--blue { background: var(--blue); }

.hero-instrument {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(237, 233, 223, 0.24);
  background: #142326;
  box-shadow: 1.1rem 1.1rem 0 rgba(240, 175, 103, 0.1);
}

.instrument-grid {
  position: absolute;
  inset: 0;
  opacity: 0.37;
  background-image: linear-gradient(rgba(139, 205, 211, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 205, 211, 0.12) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

.earth-cutaway { position: absolute; inset: 4.3rem 2.2rem 3.8rem; overflow: hidden; border-left: 1px solid rgba(237, 233, 223, 0.42); border-bottom: 1px solid rgba(237, 233, 223, 0.42); }
.earth-layer { position: absolute; left: 0; right: 0; bottom: 0; display: block; border-radius: 50% 50% 0 0; }
.earth-layer--surface { top: 31%; border-top: 1px solid rgba(237, 233, 223, 0.45); background: rgba(167, 200, 155, 0.08); }
.earth-layer--crust { top: 44%; background: rgba(240, 175, 103, 0.08); }
.earth-layer--mantle { top: 61%; background: rgba(226, 107, 85, 0.08); }
.earth-cutaway::after { position: absolute; right: 14%; bottom: 0; width: 1px; height: 72%; content: ""; background: rgba(237, 233, 223, 0.22); }

.surface-label { position: absolute; top: 26%; left: 0.65rem; color: rgba(237, 233, 223, 0.58); font-family: var(--utility); font-size: 0.57rem; letter-spacing: 0.05em; }

.source-zone,
.city-marker,
.wave { position: absolute; z-index: 2; display: grid; gap: 0.2rem; font-family: var(--utility); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; }
.source-zone { left: 15%; bottom: 12%; color: var(--copper); }
.source-zone i,
.city-marker i { display: block; width: 0.64rem; height: 0.64rem; border: 2px solid currentColor; border-radius: 50%; }
.source-zone i { box-shadow: 0 0 0 0.35rem rgba(240, 175, 103, 0.11); }
.source-zone small { color: rgba(237, 233, 223, 0.62); font-size: 0.58rem; }
.city-marker { top: 17%; right: 5%; color: var(--blue); text-align: right; }
.city-marker i { justify-self: end; width: 0.78rem; height: 0.78rem; background: var(--blue); box-shadow: 0 0 0 0.35rem rgba(139, 205, 211, 0.11); }

.wave { z-index: 3; align-items: center; color: var(--paper-white); }
.wave i { display: block; height: 1px; background: currentColor; transform-origin: left center; }
.wave b { position: absolute; top: -0.7rem; left: 0; font-size: 0.74rem; font-weight: 500; }
.wave--p { top: 28%; left: 24%; width: 61%; color: var(--blue); transform: rotate(-23deg); }
.wave--p i { width: 100%; box-shadow: 0 0 0 1px rgba(139, 205, 211, 0.18); }
.wave--p::after { position: absolute; right: 0; width: 4rem; height: 4rem; content: ""; border: 1px solid rgba(139, 205, 211, 0.37); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(28deg); }
.wave--s { top: 40%; left: 18%; width: 70%; color: var(--red); transform: rotate(-17deg); }
.wave--s i { width: 100%; height: 3px; box-shadow: 0 0 0 1px rgba(226, 107, 85, 0.16); }
.wave--s::after { position: absolute; right: 0; width: 6rem; height: 6rem; content: ""; border: 2px solid rgba(226, 107, 85, 0.46); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(26deg); }

.instrument-readout { position: absolute; top: 1.25rem; right: 1.25rem; display: grid; justify-items: end; color: var(--paper-white); text-align: right; }
.instrument-readout__label { color: var(--blue); }
.instrument-readout strong { color: var(--copper); font-family: var(--display); font-size: clamp(3.6rem, 7vw, 6rem); font-weight: 650; letter-spacing: -0.08em; line-height: 0.85; }
.instrument-readout strong span { margin-left: 0.12em; color: var(--red); font-family: var(--utility); font-size: 0.36em; letter-spacing: 0; }
.instrument-readout__sub { color: rgba(237, 233, 223, 0.58); }
.instrument-footer { position: absolute; right: 1rem; bottom: 0.85rem; left: 1rem; display: flex; justify-content: space-between; gap: 0.5rem; color: rgba(237, 233, 223, 0.54); }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.hero-stat { min-width: 0; padding: 1.1rem 1rem 1.05rem 0; border-right: 1px solid var(--line-dark); }
.hero-stat:not(:first-child) { padding-left: 1rem; }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; margin-bottom: 0.35rem; color: var(--paper-white); font-family: var(--display); font-size: clamp(1.8rem, 3.3vw, 3.35rem); font-weight: 650; letter-spacing: -0.07em; line-height: 0.92; white-space: nowrap; }
.hero-stat span { display: block; max-width: 16rem; color: rgba(251, 249, 243, 0.61); }
.hero-stat--blue strong { color: var(--blue); }
.hero-stat--copper strong { color: var(--copper); }
.hero-stat--red strong { color: var(--red); }

.scroll-cue { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.35rem; color: rgba(251, 249, 243, 0.7); font-family: var(--utility); font-size: 0.63rem; text-decoration: none; text-transform: uppercase; }
.scroll-cue__line { display: inline-block; width: 2.7rem; height: 1px; background: var(--copper); }

.section { position: relative; padding: var(--section-space) 0; }
.section--paper { background: var(--paper); }
.section--clock { color: var(--paper); background: var(--night-2); }
.section--action { background: var(--paper-2); }
.section--records { color: var(--paper); background: var(--night-3); }
.section--ending { color: var(--paper); background: var(--night); }
.section--sources { background: var(--paper-white); }

.finding-grid,
.records-grid,
.sources-grid,
.ending-grid { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 8vw, 9rem); }
.section-lead h2 { margin-bottom: 0; }
.finding-copy { max-width: 48rem; }
.lead-copy { margin-bottom: 2.5rem; font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.2; }
.epistemic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.epistemic-note { padding-top: 0.7rem; border-top: 2px solid var(--ink); }
.epistemic-note > span { display: block; margin-bottom: 0.75rem; color: var(--muted); font-family: var(--utility); font-size: 0.65rem; letter-spacing: 0.06em; }
.epistemic-note p { margin-bottom: 0; font-size: 1rem; line-height: 1.36; }
.epistemic-note--fact { border-color: var(--blue-deep); }
.epistemic-note--interpretation { border-color: var(--copper-deep); }
.epistemic-note--unknown { border-color: var(--red-deep); }
.section-source { display: flex; align-items: center; gap: 0.7rem; margin: 2rem 0 0; color: var(--muted); }
.source-rule { display: inline-block; width: 2.5rem; height: 1px; background: var(--copper-deep); }

.section-heading-row { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 3.2rem; }
.section-heading-copy { max-width: 45rem; }
.section-heading-copy h2 { margin-bottom: 1.35rem; }
.section-heading-copy > p:last-child { max-width: 41rem; margin-bottom: 0; color: rgba(237, 233, 223, 0.74); font-size: 1.25rem; line-height: 1.35; }
.section--paper .section-heading-copy > p:last-child { color: var(--ink); }
.clock-readout { min-width: 10rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line-dark); text-align: right; }
.clock-readout span,
.clock-readout small { display: block; color: var(--muted-dark); font-family: var(--utility); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; }
.clock-readout strong { display: inline-block; color: var(--copper); font-family: var(--display); font-size: 4.2rem; font-weight: 650; letter-spacing: -0.08em; line-height: 0.85; }

.signal-timeline { position: relative; padding: 1.5rem 0 0; }
.signal-track { position: relative; height: 8rem; margin: 0 3.2rem 0.5rem; }
.signal-track__line { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, var(--copper) 0 50%, var(--red) 50% 100%); }
.signal-track__line::before,
.signal-track__line::after { position: absolute; top: -0.25rem; width: 0.52rem; height: 0.52rem; content: ""; border-radius: 50%; }
.signal-track__line::before { left: 0; background: var(--copper); box-shadow: 0 0 0 0.4rem rgba(240, 175, 103, 0.12); }
.signal-track__line::after { right: 0; background: var(--red); box-shadow: 0 0 0 0.4rem rgba(226, 107, 85, 0.12); }
.signal-track__p,
.signal-track__s { position: absolute; top: calc(50% - 1.9rem); width: 3.8rem; height: 3.8rem; border: 1px solid currentColor; border-radius: 50%; }
.signal-track__p { left: 27%; color: var(--blue); }
.signal-track__s { right: 1%; color: var(--red); border-width: 2px; }
.signal-track__p::after,
.signal-track__s::after { position: absolute; inset: 0.8rem; content: ""; border: 1px solid currentColor; border-radius: 50%; }
.signal-track__marker { position: absolute; top: 12%; left: 50%; width: 2px; height: 76%; background: var(--paper-white); box-shadow: 0 0 0 0.35rem rgba(251, 249, 243, 0.08); transition: left 160ms ease; }
.signal-track__marker::before { position: absolute; top: -0.1rem; left: -0.25rem; width: 0.52rem; height: 0.52rem; content: ""; border-radius: 50%; background: var(--paper-white); }
.signal-track__marker::after { position: absolute; bottom: -1.5rem; left: -1.4rem; width: 3rem; content: "WINDOW"; color: var(--paper-white); font-family: var(--utility); font-size: 0.55rem; text-align: center; }
.signal-timeline[data-window="5"] .signal-track__marker { left: 12%; }
.signal-timeline[data-window="10"] .signal-track__marker { left: 27%; }
.signal-timeline[data-window="15"] .signal-track__marker { left: 41%; }
.signal-timeline[data-window="20"] .signal-track__marker { left: 55%; }
.signal-timeline[data-window="25"] .signal-track__marker { left: 72%; }
.signal-timeline[data-window="30"] .signal-track__marker { left: 90%; }
.clock-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.clock-stage { display: grid; gap: 0.38rem; min-height: 8.6rem; padding: 1rem 0.8rem 0.6rem 0; border-right: 1px solid var(--line-dark); }
.clock-stage + .clock-stage { padding-left: 0.8rem; }
.clock-stage:last-child { border-right: 0; }
.clock-stage__number { color: var(--copper); }
.clock-stage strong { color: var(--paper-white); font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.clock-stage > span:last-child { color: var(--muted-dark); }
.clock-stage--2 strong { color: var(--blue); }
.clock-stage--5 strong { color: var(--red); }

.clock-control-block { max-width: 52rem; padding: 1.2rem 0 1rem; margin: 3rem 0 2.8rem; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.clock-control-block > label { color: var(--paper-white); font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.clock-control-block output { float: right; color: var(--copper); font-family: var(--utility); font-size: 0.8rem; text-transform: uppercase; }
.clock-control-block output strong { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.04em; }
.clock-control-block input { display: block; width: 100%; margin: 1.4rem 0 0.75rem; accent-color: var(--copper); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted-dark); }
.control-hint { color: var(--muted); }
.section--clock .control-hint { margin: 0.8rem 0 0; color: var(--muted-dark); }

.response-heading { display: grid; grid-template-columns: 0.55fr 1fr; gap: 2rem; align-items: end; margin-bottom: 1rem; }
.response-heading .eyebrow { margin: 0; }
.response-heading > p:last-child { max-width: 32rem; margin: 0; color: var(--muted-dark); font-size: 0.88rem; }
.response-stack { border-top: 1px solid var(--line-dark); }
.response-row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 14rem; gap: 1.3rem; align-items: start; padding: 1.35rem 0; border-bottom: 1px solid var(--line-dark); transition: opacity 160ms ease, background-color 160ms ease; }
.response-row.is-muted { opacity: 0.36; }
.response-row__meta { display: flex; gap: 0.55rem; align-items: center; color: var(--muted-dark); text-transform: uppercase; }
.response-dot { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--blue); }
.response-row--machine .response-dot { background: var(--copper); }
.response-row--record .response-dot { background: var(--red); }
.response-row__min { margin-left: auto; color: var(--paper-white); }
.response-row__body h3 { margin-bottom: 0.45rem; color: var(--paper-white); }
.response-row__body p { max-width: 38rem; margin: 0; color: rgba(237, 233, 223, 0.74); }
.response-row__tag { justify-self: end; max-width: 12rem; padding-top: 0.35rem; color: var(--copper); text-align: right; }
.response-row--person .response-row__tag { color: var(--blue); }
.response-row--record .response-row__tag { color: var(--red); }
.noscript-note { padding: 1rem; margin-top: 1.3rem; color: var(--ink); background: var(--paper); font-family: var(--utility); font-size: 0.7rem; }
.fallback-table { width: 100%; margin-top: 1.7rem; border-collapse: collapse; color: var(--muted-dark); font-size: 0.95rem; }
.fallback-table caption { margin-bottom: 0.55rem; color: var(--paper-white); font-family: var(--utility); font-size: 0.65rem; text-align: left; text-transform: uppercase; }
.fallback-table th,
.fallback-table td { padding: 0.65rem 0.55rem; border-top: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.fallback-table th { color: var(--paper-white); font-family: var(--utility); font-size: 0.72rem; font-weight: 500; }

.section-heading-row--action { display: block; }
.section--action .section-heading-copy > p:last-child { max-width: 47rem; }
.action-stack { margin-top: 3rem; border-top: 1px solid var(--line); }
.action-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) minmax(15rem, 0.7fr); gap: 1.8rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.action-row__mark { display: flex; gap: 0.65rem; align-items: center; color: var(--copper-deep); text-transform: uppercase; }
.action-row__mark i { display: block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0.35rem rgba(165, 99, 52, 0.12); }
.action-row--blue .action-row__mark { color: var(--blue-deep); }
.action-row--red .action-row__mark { color: var(--red-deep); }
.action-row__copy h3 { margin-bottom: 0.35rem; }
.action-row__copy p { max-width: 36rem; margin: 0; }
.action-row__prompt { padding-top: 0.35rem; margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.35; }

.records-grid { grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr); }
.records-intro h2 { color: var(--paper-white); }
.records-intro > p:not(.eyebrow) { max-width: 31rem; color: rgba(237, 233, 223, 0.75); font-size: 1.24rem; line-height: 1.35; }
.relay-chain { padding: 0; margin: 3rem 0 0; list-style: none; border-top: 1px solid var(--line-dark); }
.relay-chain__item { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.15rem 0.6rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }
.relay-chain__item::after { position: absolute; bottom: -0.55rem; left: 1.05rem; width: 1px; height: 1.1rem; content: ""; background: var(--copper); }
.relay-chain__item:last-child::after { display: none; }
.relay-chain__index { grid-row: span 2; color: var(--copper); }
.relay-chain__item strong { color: var(--paper-white); font-family: var(--display); font-size: 1.45rem; line-height: 1; }
.relay-chain__item > span:last-child { color: var(--muted-dark); text-transform: uppercase; }
.relay-chain__item--evr strong { color: var(--blue); }
.relay-chain__item--expertise strong { color: var(--copper); }
.relay-chain__item--programme strong { color: var(--red); }

.records-tool { max-width: 45rem; }
.records-tool .control-label { display: block; margin-bottom: 0.8rem; color: var(--muted-dark); text-transform: uppercase; }
.relay-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.relay-tab { min-height: 2.9rem; padding: 0.65rem 0.85rem; color: var(--paper); border: 1px solid rgba(237, 233, 223, 0.32); background: transparent; font-family: var(--utility); font-size: 0.68rem; text-transform: uppercase; }
.relay-tab:hover,
.relay-tab.is-active { color: var(--night); border-color: var(--copper); background: var(--copper); }
.control-hint--dark { margin: 0.85rem 0 1.2rem; color: var(--muted-dark); }
.relay-panel { min-height: 24rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(237, 233, 223, 0.25); background: rgba(16, 25, 27, 0.32); }
.relay-panel h3 { max-width: 12ch; color: var(--paper-white); font-size: clamp(2rem, 4vw, 3.8rem); }
.relay-panel > p:not(.eyebrow):not(.relay-next) { max-width: 36rem; color: rgba(237, 233, 223, 0.78); font-size: 1.2rem; line-height: 1.3; }
.relay-next { display: grid; gap: 0.4rem; max-width: 35rem; padding: 1rem 0 0; margin-top: 2rem; border-top: 1px solid var(--line-dark); }
.relay-next > span { color: var(--copper); }
.relay-next strong { color: var(--paper-white); font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.text-link--light { color: var(--blue); }
.relay-panel .text-link { display: inline-block; margin-top: 2rem; font-family: var(--utility); font-size: 0.66rem; }
.relay-static-table { display: none; }

.ending-grid { align-items: center; }
.ending-copy h2 { color: var(--paper-white); }
.ending-copy > p:not(.eyebrow):not(.ending-note) { max-width: 40rem; color: rgba(237, 233, 223, 0.78); font-size: 1.3rem; line-height: 1.32; }
.ending-steps { padding: 0; margin: 2.4rem 0 0; list-style: none; border-top: 1px solid var(--line-dark); }
.ending-steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }
.ending-steps span { color: var(--copper); font-family: var(--utility); font-size: 0.72rem; }
.ending-steps p { max-width: 29rem; margin: 0; color: var(--paper-white); }
.ending-note { margin: 1.7rem 0 0; color: var(--muted-dark); font-family: var(--utility); font-size: 0.65rem; }
.ending-object { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 0.7rem; align-items: center; min-height: 9rem; padding: 1.3rem; border: 1px solid rgba(237, 233, 223, 0.23); background: rgba(237, 233, 223, 0.04); font-family: var(--utility); font-size: 0.9rem; }
.ending-object__signal,
.ending-object__node,
.ending-object__record { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.ending-object__signal { color: var(--blue); }
.ending-object__node { color: var(--copper); border-radius: 0; }
.ending-object__record { color: var(--red); }
.ending-object__line { height: 1px; background: var(--blue); }
.ending-object__line--short { background: var(--copper); }

.sources-grid { grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr); }
.sources-intro h2 { max-width: 9ch; }
.sources-intro > p:not(.eyebrow):not(.updated-line):not(.method-note) { max-width: 30rem; font-size: 1.22rem; line-height: 1.35; }
.updated-line { display: flex; gap: 0.65rem; align-items: center; color: var(--muted); }
.method-note { max-width: 30rem; padding-top: 1rem; margin-top: 2rem; color: var(--muted); border-top: 1px solid var(--line); }
.sources-subheading { margin-bottom: 1rem; color: var(--muted); font-family: var(--utility); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--line); }
.source-row { min-width: 0; padding: 1.15rem; background: var(--paper-white); }
.source-row--fact { border-top: 3px solid var(--blue-deep); }
.source-row--record { border-top: 3px solid var(--red-deep); }
.source-row__top { display: flex; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.85rem; }
.source-kind { color: var(--copper-deep); }
.source-org { color: var(--muted); text-align: right; }
.source-row h3 { margin-bottom: 0.55rem; font-size: 1.34rem; }
.source-row p { margin-bottom: 0.7rem; font-size: 0.98rem; line-height: 1.36; }
.source-row .source-scope { color: var(--muted); font-family: var(--utility); font-size: 0.64rem; }
.source-row .text-link { display: inline-block; margin-top: 0.35rem; color: var(--blue-deep); font-family: var(--utility); font-size: 0.66rem; }
.limits-panel { padding-top: 2.8rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.limits-panel ul { padding-left: 1.2rem; margin: 0; columns: 2; column-gap: 2rem; }
.limits-panel li { padding-left: 0.25rem; margin-bottom: 0.8rem; break-inside: avoid; font-size: 0.98rem; }
.lifecycle-line { display: grid; gap: 0.4rem; padding-top: 1rem; margin: 2rem 0 0; color: var(--muted); border-top: 1px solid var(--line); }
.lifecycle-line span { color: var(--red-deep); text-transform: uppercase; }

.site-footer { color: rgba(237, 233, 223, 0.7); background: #0b1213; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 0.8fr auto; gap: 1rem; align-items: center; min-height: 8rem; }
.footer-grid p { margin: 0; }
.footer-grid a:hover,
.footer-grid a:focus-visible { color: var(--copper); }
.back-top { display: inline-grid; min-width: 44px; min-height: 44px; padding: 0.55rem 0.75rem; place-items: center; color: var(--night); border: 1px solid var(--copper); background: var(--copper); text-decoration: none; }
.back-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 760px); }
  .hero-layout,
  .finding-grid,
  .records-grid,
  .sources-grid,
  .ending-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-layout { min-height: auto; padding-top: 4.5rem; }
  .hero-copy { max-width: 44rem; }
  .hero h1 { max-width: 11ch; }
  .hero-instrument { min-height: 470px; }
  .finding-grid { gap: 2.5rem; }
  .section-lead h2,
  .sources-intro h2 { max-width: 13ch; }
  .records-intro > p:not(.eyebrow) { max-width: 42rem; }
  .relay-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; border-top: 0; }
  .relay-chain__item { grid-template-columns: 1.8rem 1fr; border-top: 1px solid var(--line-dark); }
  .relay-chain__item::after { display: none; }
  .relay-chain__item + .relay-chain__item { padding-left: 0.4rem; }
  .sources-intro { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem 2.5rem; align-items: start; }
  .sources-intro .eyebrow,
  .sources-intro h2 { grid-column: 1; }
  .sources-intro > p:not(.eyebrow):not(.updated-line):not(.method-note),
  .sources-intro .updated-line,
  .sources-intro .method-note { grid-column: 2; }
  .sources-intro h2 { grid-row: span 2; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 32px, 520px); --section-space: clamp(4rem, 17vw, 6.5rem); }
  body { font-size: 1rem; }
  .topbar { align-items: start; padding-bottom: 0.75rem; }
  .topbar__right { align-items: end; flex-direction: column-reverse; gap: 0.75rem; }
  .hero-nav { justify-content: end; gap: 0.65rem 0.9rem; }
  .hero-nav a { font-size: 0.58rem; }
  .hero-layout { gap: 2.8rem; padding-top: 3.6rem; }
  .hero h1 { max-width: 12ch; font-size: clamp(3.2rem, 15vw, 5.2rem); }
  .hero-deck { font-size: 1.18rem; }
  .hero-instrument { min-height: 405px; box-shadow: 0.55rem 0.55rem 0 rgba(240, 175, 103, 0.1); }
  .earth-cutaway { inset: 5rem 1.2rem 3rem; }
  .instrument-readout { top: 0.85rem; right: 0.85rem; }
  .instrument-readout strong { font-size: 3.7rem; }
  .instrument-footer { right: 0.7rem; bottom: 0.65rem; left: 0.7rem; font-size: 0.55rem; }
  .source-zone { left: 8%; }
  .city-marker { right: 2%; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat,
  .hero-stat:not(:first-child) { padding: 0.9rem 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .hero-stat:last-child { border-bottom: 0; }
  .hero-stat strong { display: inline-block; min-width: 7rem; margin-right: 0.5rem; font-size: 2.2rem; }
  .hero-stat span { display: inline; }
  h2 { max-width: 11ch; font-size: clamp(2.65rem, 14vw, 4.5rem); }
  .finding-grid,
  .records-grid,
  .sources-grid,
  .ending-grid { gap: 2.3rem; }
  .lead-copy { font-size: 1.4rem; }
  .epistemic-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .section-heading-row { display: block; margin-bottom: 2.4rem; }
  .clock-readout { width: 10rem; margin-top: 2rem; text-align: left; }
  .clock-readout strong { font-size: 3.5rem; }
  .signal-track { margin-inline: 1.7rem; }
  .signal-track__p,
  .signal-track__s { width: 2.7rem; height: 2.7rem; top: calc(50% - 1.35rem); }
  .clock-stages { grid-template-columns: 1fr; }
  .clock-stage,
  .clock-stage + .clock-stage { grid-template-columns: 2rem 1fr; min-height: auto; padding: 0.9rem 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .clock-stage__number { grid-row: span 2; }
  .clock-stage > span:last-child { grid-column: 2; }
  .clock-stage:last-child { border-bottom: 0; }
  .clock-control-block output { display: block; float: none; margin-top: 0.45rem; }
  .range-labels { font-size: 0.55rem; }
  .response-heading { display: block; }
  .response-heading > p:last-child { margin-top: 0.9rem; }
  .response-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .response-row__tag { justify-self: start; max-width: none; text-align: left; }
  .action-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .action-row__prompt { padding-top: 0; }
  .relay-chain { grid-template-columns: 1fr 1fr; }
  .relay-chain__item + .relay-chain__item { padding-left: 0; }
  .relay-panel { min-height: 0; padding: 1.4rem; }
  .relay-panel h3 { max-width: 13ch; font-size: 2.5rem; }
  .relay-panel > p:not(.eyebrow):not(.relay-next) { font-size: 1.1rem; }
  .ending-object { grid-template-columns: 2.8rem 1fr 2.8rem 1fr 2.8rem; gap: 0.35rem; padding: 0.75rem; font-size: 0.72rem; }
  .ending-object__signal,
  .ending-object__node,
  .ending-object__record { width: 2.8rem; height: 2.8rem; }
  .sources-intro { display: block; }
  .sources-intro h2 { max-width: 11ch; }
  .sources-intro .updated-line { margin-top: 1.5rem; }
  .source-list { grid-template-columns: 1fr; }
  .limits-panel ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .hero,
  .section--clock,
  .section--records,
  .section--ending,
  .site-footer { color: #000; background: #fff; }
  .hero-instrument,
  .ending-object { break-inside: avoid; }
  .back-top { display: none !important; }
}
