@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-vf.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("assets/source-code-pro-full.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #0b1726;
  --ink-2: #10253a;
  --ink-3: #17364a;
  --paper: #eef2ef;
  --paper-2: #f6f7f4;
  --paper-warm: #eee9df;
  --line: #c8d2d0;
  --line-dark: #3d5966;
  --text: #102131;
  --muted: #586875;
  --muted-dark: #a6bac0;
  --warm: #ef6a46;
  --warm-soft: #f7c1a9;
  --cool: #4ca2c1;
  --cool-soft: #b8dce5;
  --gold: #e9b75a;
  --mint: #9fddba;
  --danger: #a84732;
  --max: 1280px;
  --gutter: clamp(22px, 5vw, 74px);
  --display: "Source Sans 3", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", sans-serif;
  --mono: "Source Code Pro", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
}

::selection {
  color: var(--paper-2);
  background: var(--warm);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

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

h2 {
  margin-bottom: 0.26em;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.01;
  max-width: 11ch;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p {
  max-width: 68ch;
}

.skip-link {
  position: fixed;
  z-index: 30;
  left: 18px;
  top: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

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

.section-wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.eyebrow,
.event-tag,
.source-type,
.header-meta,
.footer-label,
.status-label,
.control-question,
.relay-label,
.relay-index,
.svg-label {
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--warm);
}

.eyebrow-light {
  color: var(--gold);
}

.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 30px;
  align-items: center;
  padding: 24px var(--gutter);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 600;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--body);
  font-size: 0.9rem;
}

.header-meta,
.header-link {
  margin: 0;
  color: var(--muted-dark);
}

.header-link {
  color: var(--paper-2);
  text-decoration: none;
}

.language-nav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.language-link {
  min-width: 28px;
  padding: 7px 5px;
  color: var(--muted-dark);
  text-align: center;
  text-decoration: none;
}

.language-link.is-current,
.language-link[aria-current="page"] {
  color: var(--ink);
  background: var(--gold);
}

.header-link span,
.closing-link span {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  overflow: hidden;
  color: var(--paper-2);
  background:
    radial-gradient(circle at 77% 34%, rgba(76, 162, 193, 0.15), transparent 30%),
    radial-gradient(circle at 17% 80%, rgba(239, 106, 70, 0.12), transparent 30%),
    var(--ink);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(159, 221, 186, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 221, 186, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  min-height: min(795px, 88svh);
  margin-inline: auto;
  padding-top: 90px;
}

.hero-copy {
  padding-top: 34px;
}

.hero h1 {
  max-width: 10.5ch;
  margin-bottom: 30px;
  font-size: clamp(3.9rem, 7.2vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  color: var(--warm-soft);
}

.hero-deck {
  max-width: 30ch;
  margin-bottom: 34px;
  color: #d8e5e4;
  font-size: clamp(1.22rem, 1.9vw, 1.65rem);
  line-height: 1.15;
}

.hero-thesis {
  max-width: 58ch;
  padding-left: 18px;
  border-left: 2px solid var(--warm);
  color: #b4c5c8;
  font-size: 0.97rem;
}

.hero-thesis p {
  margin-bottom: 14px;
}

.hero-thesis p:last-child {
  margin-bottom: 0;
}

.hero-thesis a {
  color: var(--warm-soft);
}

.source-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.signal-board {
  position: relative;
  margin: 0;
}

.signal-board::after {
  position: absolute;
  right: 11%;
  bottom: -12px;
  left: 11%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(233, 183, 90, 0.8), transparent);
  content: "";
}

.signal-board svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.28));
}

.svg-label {
  fill: #c3d2d4;
}

.svg-label-muted {
  fill: #77919a;
}

.svg-label-warm {
  fill: var(--warm-soft);
}

.svg-label-cool {
  fill: var(--cool-soft);
}

.svg-label-small {
  font-size: 11px;
  letter-spacing: 0.11em;
}

.svg-label-center {
  fill: #e6f0eb;
  font-size: 17px;
  letter-spacing: 0.13em;
}

.trace {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-warm {
  stroke: var(--warm);
}

.trace-cool {
  stroke: var(--cool);
}

.trace-dot {
  stroke: var(--ink-2);
  stroke-width: 3;
}

.trace-dot-warm {
  fill: var(--warm);
}

.trace-dot-cool {
  fill: var(--cool);
}

.signal-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
  margin-top: 16px;
  color: #91a6aa;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.caption-key {
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: -9px;
  vertical-align: middle;
}

.warm-key {
  background: var(--warm);
}

.cool-key {
  background: var(--cool);
}

.gap-key {
  border-top: 2px dashed var(--gold);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  border-top: 1px solid rgba(188, 212, 210, 0.4);
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 98px;
  padding: 18px 20px 8px 0;
  border-right: 1px solid rgba(188, 212, 210, 0.26);
}

.hero-fact + .hero-fact {
  padding-left: 22px;
}

.hero-fact:last-child {
  border-right: 0;
}

.hero-fact-number {
  color: var(--paper-2);
  font-family: var(--display);
  font-size: clamp(2.05rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-fact-label {
  max-width: 18ch;
  color: #9cb2b5;
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 27px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-cue span {
  font-size: 1rem;
}

.scene-light,
.scene-paper,
.timeline-section,
.exposure-section {
  background: var(--paper);
}

.scene-paper {
  background: var(--paper-warm);
}

.intro {
  padding: clamp(90px, 12vw, 170px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(40px, 9vw, 150px);
  align-items: start;
}

.intro h2 {
  max-width: 8.4ch;
}

.intro-copy {
  padding-top: 42px;
  color: var(--muted);
  font-size: 1.15rem;
}

.intro-copy p + p {
  margin-top: 28px;
}

.timeline-section {
  padding: clamp(88px, 11vw, 150px) 0 clamp(110px, 13vw, 175px);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 56px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: end;
}

.split-heading h2 {
  margin-bottom: 0;
}

.heading-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1.02rem;
}

.heading-note-wide {
  max-width: 38ch;
}

.lens-switch {
  display: inline-flex;
  margin-top: 23px;
  padding: 4px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.28);
}

.lens-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.lens-button.is-active,
.lens-button[aria-pressed="true"] {
  color: var(--paper-2);
  background: var(--ink);
}

.timeline-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.key-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: -1px;
}

.key-warm {
  background: var(--warm);
}

.key-cool {
  background: var(--cool);
}

.key-gap {
  background: var(--gold);
}

.timeline-table {
  border-top: 2px solid var(--ink);
}

.timeline-header,
.timeline-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(0, 1fr);
}

.timeline-header {
  gap: 0;
  padding: 14px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.timeline-header span:nth-child(2) {
  padding-left: 25px;
  color: var(--warm);
}

.timeline-header span:nth-child(3) {
  padding-left: 25px;
  color: #3183a1;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-row {
  position: relative;
  border-top: 1px solid var(--line);
}

.timeline-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 118px;
  width: 1px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.timeline-row > time {
  padding: 26px 18px 28px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.timeline-row > time span {
  color: #84939a;
}

.timeline-event {
  position: relative;
  min-height: 174px;
  padding: 25px 25px 30px;
  border-left: 1px solid var(--line);
  transition: opacity 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.timeline-event::before {
  position: absolute;
  top: 31px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  content: "";
}

.event-warm::before {
  background: var(--warm);
}

.event-cool::before {
  background: var(--cool);
}

.timeline-event h3 {
  max-width: 24ch;
  margin: 10px 0 12px;
}

.timeline-event p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.event-tag {
  color: var(--muted);
}

.event-warm .event-tag {
  color: var(--danger);
}

.event-cool .event-tag {
  color: #2c809d;
}

.event-gap {
  background: rgba(233, 183, 90, 0.12);
}

.event-gap .event-tag {
  color: #936b19;
}

.event-worked {
  background: rgba(159, 221, 186, 0.18);
}

.event-worked .event-tag {
  color: #327653;
}

.timeline-row.is-critical {
  background: rgba(239, 106, 70, 0.04);
}

html[data-lens="attacker"] .timeline-event.event-cool:not(.event-gap) {
  opacity: 0.55;
}

html[data-lens="attacker"] .timeline-event.event-warm {
  background-color: rgba(239, 106, 70, 0.08);
}

html[data-lens="defence"] .timeline-event.event-warm {
  opacity: 0.55;
}

html[data-lens="defence"] .timeline-event.event-cool {
  background-color: rgba(76, 162, 193, 0.09);
}

html[data-lens="defence"] .timeline-event.event-gap {
  background-color: rgba(233, 183, 90, 0.2);
}

.timeline-caption,
.static-note {
  margin: 22px 0 0 118px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.static-note {
  color: var(--danger);
}

.scene-dark {
  color: var(--paper-2);
  background: var(--ink);
}

.relay-section {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 13vw, 180px) 0;
}

.relay-section::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(76, 162, 193, 0.08));
  content: "";
  pointer-events: none;
}

.narrow-heading {
  max-width: 850px;
}

.narrow-heading h2 {
  max-width: 10ch;
}

.section-lede {
  max-width: 42ch;
  margin-top: 28px;
  color: var(--muted-dark);
  font-size: 1.2rem;
}

.relay-chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 88px 0 0;
  padding: 0;
  list-style: none;
}

.relay-chain::before {
  position: absolute;
  top: 27px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.relay-node {
  position: relative;
  z-index: 1;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
}

.relay-node::after {
  position: absolute;
  top: 20px;
  right: -7px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--line-dark);
  content: "";
}

.relay-node:last-child::after {
  display: none;
}

.relay-index {
  display: block;
  margin-bottom: 42px;
  color: var(--muted-dark);
}

.relay-label {
  display: block;
  margin-bottom: 13px;
  color: var(--cool-soft);
}

.relay-node strong {
  display: block;
  max-width: 14ch;
  color: var(--paper-2);
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.relay-node p {
  margin: 19px 0 0;
  color: var(--muted-dark);
  font-size: 0.94rem;
}

.relay-pass {
  border-top: 4px solid var(--cool);
}

.relay-pass .relay-index {
  color: var(--cool-soft);
}

.relay-break {
  border-top: 4px solid var(--warm);
  background: linear-gradient(180deg, rgba(239, 106, 70, 0.13), rgba(16, 37, 58, 0.98) 42%);
}

.relay-break .relay-index,
.relay-break .relay-label {
  color: var(--warm-soft);
}

.relay-break::after {
  border-radius: 0;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(239, 106, 70, 0.12);
}

.relay-footnote {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 800px;
  margin: 80px 0 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.footnote-marker {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.relay-footnote p {
  margin: 0;
  color: #d4e1dd;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.exposure-section {
  padding: clamp(100px, 13vw, 175px) 0;
}

.exposure-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(50px, 11vw, 180px);
  align-items: start;
}

.exposure-number {
  position: sticky;
  top: 34px;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

.big-number {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4.9rem, 9vw, 10.5rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.1em;
  white-space: nowrap;
}

.number-caption {
  max-width: 15ch;
  margin-top: 22px;
  color: var(--warm);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.exposure-copy h2 {
  max-width: 10ch;
}

.exposure-copy > p:not(.eyebrow):not(.limit-note) {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.13rem;
}

.data-register {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 42px;
}

.data-register span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.38);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.limit-note {
  max-width: 62ch;
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  color: var(--ink-3);
  background: rgba(233, 183, 90, 0.17);
  font-size: 0.96rem;
}

.controls-section {
  padding: clamp(100px, 13vw, 170px) 0;
}

.controls-section .section-heading {
  margin-bottom: 62px;
}

.control-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-node {
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.control-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 72px;
}

.control-symbol {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.status-label {
  color: var(--muted);
}

.control-fail {
  border-top: 4px solid var(--warm);
}

.control-fail .control-symbol,
.control-fail .status-label {
  color: var(--danger);
}

.control-unknown {
  border-top: 4px solid var(--gold);
}

.control-unknown .control-symbol,
.control-unknown .status-label {
  color: #96731e;
}

.control-worked {
  border-top: 4px solid #4d9c6c;
  background: rgba(159, 221, 186, 0.22);
}

.control-worked .control-symbol,
.control-worked .status-label {
  color: #36734f;
}

.control-question {
  margin-bottom: 14px;
  color: var(--muted);
}

.control-node h3 {
  max-width: 17ch;
  margin-bottom: 17px;
}

.control-answer {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.scene-blue {
  color: var(--paper-2);
  background: var(--ink-3);
}

.known-section {
  padding: clamp(100px, 13vw, 175px) 0;
}

.known-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 75px;
}

.known-column {
  padding: 28px 30px 34px;
  border: 1px solid rgba(190, 220, 218, 0.25);
  background: rgba(11, 23, 38, 0.22);
}

.known-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(190, 220, 218, 0.25);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.known-head-fact {
  color: var(--mint);
}

.known-head-open {
  color: var(--warm-soft);
}

.known-column ul {
  display: grid;
  gap: 14px;
  margin: 23px 0 0;
  padding: 0 0 0 20px;
}

.known-column li {
  padding-left: 5px;
  color: #d8e5e2;
}

.known-column li::marker {
  color: var(--gold);
}

.attribution-note {
  max-width: 64ch;
  margin: 35px 0 0 auto;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.romania-section {
  color: var(--paper-2);
  background:
    linear-gradient(120deg, rgba(239, 106, 70, 0.95), rgba(166, 72, 50, 0.98)),
    var(--danger);
}

.romania-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(42px, 10vw, 160px);
  padding-top: clamp(90px, 12vw, 150px);
  padding-bottom: clamp(90px, 12vw, 150px);
}

.romania-section .eyebrow {
  color: #ffe0ad;
}

.romania-section h2 {
  max-width: 9ch;
}

.romania-copy {
  padding-top: 34px;
}

.romania-copy > p {
  max-width: 58ch;
  color: #fff3e6;
  font-size: 1.12rem;
}

.romania-copy blockquote {
  max-width: 24ch;
  margin: 42px 0 40px;
  padding-left: 23px;
  border-left: 2px solid #ffe0ad;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.romanian-verbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  border-top: 1px solid rgba(255, 240, 213, 0.47);
  border-bottom: 1px solid rgba(255, 240, 213, 0.47);
}

.romanian-verbs span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 10px 15px 0;
  border-right: 1px solid rgba(255, 240, 213, 0.28);
}

.romanian-verbs span + span {
  padding-left: 14px;
}

.romanian-verbs span:last-child {
  border-right: 0;
}

.romanian-verbs strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.romanian-verbs small {
  color: #ffd5b6;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.romania-copy .romania-limit {
  margin-top: 30px;
  color: #ffd5b6;
  font-size: 0.93rem;
}

.sources-section {
  padding: clamp(100px, 13vw, 175px) 0;
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.55fr);
  gap: clamp(50px, 10vw, 150px);
  align-items: start;
}

.source-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.source-item {
  position: relative;
  padding: 28px 0 32px 58px;
  border-top: 1px solid var(--line);
  counter-increment: source;
}

.source-item::before {
  position: absolute;
  top: 31px;
  left: 0;
  color: var(--warm);
  content: counter(source, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.source-type {
  margin-bottom: 12px;
  color: var(--muted);
}

.source-item h3 {
  max-width: 34ch;
  margin-bottom: 12px;
}

.source-item p {
  max-width: 67ch;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.96rem;
}

.source-item a {
  color: var(--danger);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-aside {
  padding-top: 29px;
}

.aside-rule {
  width: 52px;
  height: 4px;
  margin-bottom: 25px;
  background: var(--warm);
}

.source-aside h3 {
  margin-bottom: 24px;
}

.status-list {
  margin: 0;
}

.status-list > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.status-list dt {
  color: var(--danger);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.source-aside-note {
  margin-top: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.55;
}

.closing-scene {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: clamp(100px, 15vw, 220px) 0;
}

.closing-mark {
  position: absolute;
  top: 50%;
  right: 7%;
  display: flex;
  gap: 12px;
  align-items: end;
  height: 300px;
  transform: translateY(-50%) rotate(-23deg);
  opacity: 0.44;
}

.closing-mark span {
  display: block;
  width: 18px;
  border: 1px solid var(--line-dark);
  background: linear-gradient(to top, var(--cool), transparent);
}

.closing-mark span:nth-child(1) { height: 84px; }
.closing-mark span:nth-child(2) { height: 154px; }
.closing-mark span:nth-child(3) { height: 234px; border-color: var(--warm); background: linear-gradient(to top, var(--warm), transparent); }
.closing-mark span:nth-child(4) { height: 182px; }
.closing-mark span:nth-child(5) { height: 120px; }

.closing-wrap {
  position: relative;
  z-index: 1;
}

.closing-wrap h2 {
  max-width: 8ch;
  color: var(--paper-2);
}

.closing-wrap > p:not(.eyebrow) {
  max-width: 38ch;
  margin-top: 32px;
  color: var(--muted-dark);
  font-size: 1.25rem;
}

.closing-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer {
  padding: 32px var(--gutter) 24px;
  color: var(--muted-dark);
  background: var(--ink);
  font-size: 0.78rem;
}

.footer-top,
.footer-bottom {
  display: flex;
  gap: 28px;
  align-items: start;
  justify-content: space-between;
  max-width: var(--max);
  margin-inline: auto;
}

.footer-top {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-label {
  margin-bottom: 8px;
  color: var(--paper-2);
}

.footer-meta,
.footer-bottom {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.back-top-link,
.footer-bottom a {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.js-enabled .back-top-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 8px 24px rgba(11, 23, 38, 0.2);
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.js-enabled.has-scrolled .back-top-link {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-bottom {
  padding-top: 18px;
  color: #80959a;
}

.footer-bottom a {
  color: #b4c9c6;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 7.8vw, 6.4rem);
  }

  .relay-chain {
    gap: 8px;
  }

  .relay-node {
    padding: 17px;
  }

  .relay-node strong {
    font-size: 1.12rem;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 17px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .header-meta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 108px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.7rem, 12vw, 6.4rem);
  }

  .hero-deck {
    max-width: 32ch;
  }

  .signal-board {
    max-width: 650px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  .hero-fact {
    min-height: 90px;
    border-bottom: 1px solid rgba(188, 212, 210, 0.26);
  }

  .hero-fact:nth-child(2) {
    border-right: 0;
  }

  .hero-fact:nth-child(3),
  .hero-fact:nth-child(4) {
    border-bottom: 0;
  }

  .hero-fact:nth-child(3) {
    padding-left: 0;
  }

  .hero-fact:nth-child(4) {
    padding-left: 22px;
  }

  .hero-cue {
    position: static;
    justify-content: flex-end;
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 24px auto 0;
  }

  .intro-grid,
  .exposure-grid,
  .romania-grid,
  .sources-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-copy,
  .romania-copy {
    padding-top: 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .heading-note {
    max-width: 50ch;
  }

  .timeline-header,
  .timeline-row {
    grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr);
  }

  .timeline-row::before {
    left: 82px;
  }

  .timeline-event {
    padding-inline: 18px;
  }

  .timeline-caption,
  .static-note {
    margin-left: 82px;
  }

  .relay-chain {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .relay-chain::before {
    display: none;
  }

  .relay-node {
    min-height: 240px;
  }

  .relay-node::after {
    display: none;
  }

  .relay-footnote {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 58px;
  }

  .exposure-number {
    position: static;
  }

  .big-number {
    font-size: clamp(5rem, 20vw, 9rem);
  }

  .control-chain,
  .known-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .control-node {
    min-height: 330px;
  }

  .closing-mark {
    right: -2%;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .wordmark {
    font-size: 0.63rem;
  }

  .header-link {
    display: none;
  }

  .language-nav {
    gap: 4px;
  }

  .language-link {
    min-width: 25px;
    padding-inline: 3px;
    font-size: 0.62rem;
  }

  .hero-grid {
    padding-top: 91px;
  }

  .hero h1 {
    max-width: 11.2ch;
    font-size: clamp(3.25rem, 15.2vw, 5.3rem);
  }

  .hero-deck {
    font-size: 1.16rem;
  }

  .hero-thesis {
    font-size: 0.91rem;
  }

  .signal-board {
    margin-inline: -8px;
  }

  .signal-caption {
    font-size: 0.58rem;
  }

  .hero-fact-number {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .hero-fact-label {
    max-width: 17ch;
    font-size: 0.59rem;
  }

  h2 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .timeline-key {
    display: grid;
    gap: 8px;
  }

  .lens-switch {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .lens-button {
    padding-inline: 8px;
    font-size: 0.59rem;
  }

  .timeline-header,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    display: none;
  }

  .timeline-row {
    padding: 0;
  }

  .timeline-row::before {
    display: none;
  }

  .timeline-row > time {
    padding: 20px 18px 7px;
    border-bottom: 0;
  }

  .timeline-event {
    min-height: auto;
    padding: 18px 18px 26px 29px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .timeline-event::before {
    top: 22px;
    left: 13px;
    border-color: var(--paper);
  }

  .timeline-event h3 {
    max-width: none;
    font-size: 1.18rem;
  }

  .timeline-caption,
  .static-note {
    margin-left: 0;
  }

  .relay-chain,
  .control-chain,
  .known-grid {
    grid-template-columns: 1fr;
  }

  .relay-node,
  .control-node {
    min-height: auto;
  }

  .relay-node {
    min-height: 205px;
  }

  .relay-index,
  .control-node-top {
    margin-bottom: 32px;
  }

  .relay-footnote p {
    font-size: 1.65rem;
  }

  .big-number {
    font-size: clamp(4.45rem, 20vw, 7rem);
  }

  .romanian-verbs {
    grid-template-columns: 1fr;
  }

  .romanian-verbs span {
    flex-direction: row;
    gap: 12px;
    align-items: baseline;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 240, 213, 0.28);
  }

  .romanian-verbs span + span {
    padding-left: 0;
  }

  .romanian-verbs span:last-child {
    border-bottom: 0;
  }

  .source-item {
    padding-left: 42px;
  }

  .status-list > div {
    grid-template-columns: 74px 1fr;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 17px;
  }

  .footer-bottom {
    align-items: start;
  }

  body.js-enabled .back-top-link {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

@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;
  }
}
