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

@font-face {
  font-family: "Newsreader Local";
  src: url("/cine-detine-apa/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("/cine-detine-apa/fonts/PlexMono.a9b4c49bb299.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #090d16;
  --ink-soft: #1e293b;
  --deep: #123e4a;
  --deep-2: #0c2e38;
  --deep-3: #1f5663;
  --paper: #eef0ea;
  --paper-bright: #f9faf5;
  --paper-warm: #e0e0d5;
  --line: rgba(18, 32, 39, 0.2);
  --line-light: rgba(249, 250, 245, 0.24);
  --blue: #3c9fb0;
  --blue-pale: #9dd5dc;
  --copper: #70421c;
  --rust: #76251d;
  --coral: #d4614d;
  --yellow: #e4c45e;
  --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(5rem, 10vw, 10rem);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

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




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

button,
summary { font: inherit; cursor: pointer; }

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

::selection { color: var(--paper-bright); background: var(--rust); }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.9rem;
  color: var(--paper-bright);
  background: var(--deep-2);
  transform: translateY(-160%);
}

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

.eyebrow,
.route-label,
.wordmark,
.language-switch,
.hero-note,
.callout-label,
.hero-callout > .source-chip,
.diagram-topline,
.route-legend,
.stop-index,
.detail-kicker,
.source-kind,
.source-id,
.source-org,
.method-note,
.updated-line,
.footer-grid,
.event-meta,
.role-detail strong,
.status-label,
.back-top {
  font-family: var(--utility);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.035em;
}

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

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

h1 {
  max-width: 8ch;
  margin-bottom: 1.2rem;
  color: var(--paper-bright);
  font-size: clamp(4.8rem, 8.6vw, 8.8rem);
  line-height: 0.88;
}

h2 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.8rem, 6.6vw, 6.2rem);
  line-height: 0.92;
}

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

.site-header {
  color: var(--paper-bright);
  background: var(--deep-2);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  min-height: 3.35rem;
  border-bottom: 1px solid var(--line-light);
}

.wordmark,
.language-switch {
  color: var(--blue-pale);
  text-transform: uppercase;
  text-decoration: none;
}

.route-label {
  color: rgba(249, 250, 245, 0.7);
  text-align: center;
}

.language-switch { color: var(--yellow); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--deep-2);
}

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

.hero::before {
  top: 0;
  right: 13%;
  bottom: 0;
  width: 1px;
  background: rgba(157, 213, 220, 0.18);
}

.hero::after {
  right: 4%;
  bottom: 9%;
  width: 20rem;
  height: 1px;
  background: var(--yellow);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  min-height: min(760px, calc(100svh - 3.35rem));
  padding-block: clamp(4rem, 8vw, 8rem) 3rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--copper);
  text-transform: uppercase;
}

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

.hero-subtitle {
  max-width: 26rem;
  margin-bottom: 1.4rem;
  color: var(--blue-pale);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.04;
}

.hero-deck {
  max-width: 34rem;
  margin-bottom: 2.2rem;
  color: var(--paper-bright);
  font-size: clamp(1.25rem, 2.15vw, 1.7rem);
  line-height: 1.22;
}

.hero-note {
  max-width: 36rem;
  margin-bottom: 0;
  color: rgba(249, 250, 245, 0.68);
}

.hero-note .source-chip { margin-left: 0.35rem; }

.hero-art {
  align-self: start;
  margin-top: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid rgba(157, 213, 220, 0.38);
  background: var(--deep);
}

.hero-diagram { margin: 0; }

.diagram-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
  padding-bottom: 0.9rem;
  color: var(--yellow);
  border-bottom: 1px solid rgba(157, 213, 220, 0.26);
  text-transform: uppercase;
}

.diagram-topline span:last-child { color: var(--copper); }

.atlas-plot {
  position: relative;
  aspect-ratio: 1000 / 380;
  min-height: clamp(12rem, 16vw, 18rem);
}

.atlas-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.atlas-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.atlas-line-main { stroke: var(--blue-pale); stroke-width: 6; }
.atlas-line-branch { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 2 11; }
.atlas-line-pressure { stroke: var(--copper); stroke-width: 2; stroke-dasharray: 1 9; }
.atlas-pin { vector-effect: non-scaling-stroke; }
.atlas-pin-origin,
.atlas-pin-destination { fill: var(--blue-pale); }
.atlas-pin-hinge { fill: var(--yellow); }

.atlas-node {
  position: absolute;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 7rem;
  min-height: 4.1rem;
  padding: 0.7rem;
  color: var(--paper-bright);
  border: 1px solid var(--blue);
  background: var(--deep-2);
  font-family: var(--utility);
  font-size: clamp(0.6rem, 0.75vw, 0.72rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.atlas-index {
  align-self: start;
  color: var(--yellow);
  font-size: 0.58rem;
  line-height: 1;
}

.atlas-name { overflow-wrap: normal; }

.atlas-node-origin {
  top: 54.7%;
  left: 0;
  width: 18%;
  transform: translateY(-50%);
}

.atlas-node-hinge {
  top: 54.7%;
  left: 22.5%;
  width: 13%;
  color: var(--deep-2);
  border-color: var(--yellow);
  background: var(--yellow);
  transform: translate(-50%, -50%);
}

.atlas-node-hinge .atlas-index { color: var(--deep-2); }

.atlas-node-branch {
  top: 33.2%;
  left: 36%;
  width: 20%;
  transform: translate(-50%, -50%);
}

.atlas-node-canal {
  top: 33.2%;
  left: 57%;
  width: 17%;
  border-color: var(--copper);
  transform: translate(-50%, -50%);
}

.atlas-node-destination {
  top: 54.7%;
  right: 0;
  width: 18%;
  transform: translateY(-50%);
}

.atlas-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.2rem;
  color: rgba(249, 250, 245, 0.72);
  font-family: var(--utility);
  font-size: 0.6rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.atlas-key span { display: inline-flex; gap: 0.45rem; align-items: center; }

.atlas-key-line {
  display: inline-block;
  width: 2.4rem;
  height: 3px;
  background: var(--blue-pale);
}

.atlas-key-pressure {
  height: 2px;
  background: var(--copper);
}

@keyframes atlas-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .atlas-line-main {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: atlas-draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  }
}

.hero-diagram figcaption {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: rgba(249, 250, 245, 0.65);
  font-size: 1rem;
  line-height: 1.45;
}

.hero-callout {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 48rem;
  padding: 1.4rem 0 1.7rem;
  border-top: 1px solid var(--line-light);
}

.hero-callout > div {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 1.2rem;
  align-items: baseline;
}

.callout-label {
  grid-column: 1 / -1;
  color: rgba(249, 250, 245, 0.62);
  text-transform: uppercase;
}

.hero-callout strong {
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero-callout > div > span:last-child {
  max-width: 18rem;
  color: rgba(249, 250, 245, 0.72);
}

.source-chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.3rem 0.4rem 0.25rem;
  color: currentColor;
  border: 1px solid transparent;
  font-family: var(--utility);
  font-size: 0.62rem;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.source-chip span { text-decoration: underline; text-underline-offset: 0.2em; }
.source-chip b { color: var(--yellow); font-weight: 600; }
.source-chip:hover {
  border-color: currentColor;
  background: rgba(161, 63, 50, 0.08);
}
.section-dark .source-chip:hover,
.hero .source-chip:hover { background: rgba(249, 250, 245, 0.1); }
.source-chip:hover span { text-decoration-thickness: 0.12em; }

.route-section,
.responsibility-section,
.sources-section {
  padding-block: var(--section-space);
}

.section-head { max-width: 54rem; margin-bottom: 3rem; }

.section-intro {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.25rem, 2.15vw, 1.65rem);
  line-height: 1.25;
}

.route-note {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: 68rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem 0 0.8rem 1.1rem;
  border-left: 3px solid var(--copper);
}

.route-note strong {
  color: var(--rust);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}

.route-note span { max-width: 44rem; color: var(--ink-soft); }

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.route-legend span { display: inline-flex; gap: 0.45rem; align-items: center; }

.legend-line {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--blue);
}

.legend-line-record { background: var(--rust); }

.waterline {
  position: relative;
  max-width: 1060px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.waterline::before {
  position: absolute;
  top: 1.45rem;
  bottom: 1.45rem;
  left: 1.05rem;
  width: 2px;
  content: "";
  background: var(--blue);
}

.waterline-item,
.waterline-marker {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 1.5rem;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.waterline-marker,
.route-entry summary {
  min-height: 5.2rem;
}

.waterline-marker {
  align-items: center;
  padding: 1rem 0;
}

.route-entry { grid-column: 1 / -1; }

.route-entry summary {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  list-style: none;
}

.route-entry summary::-webkit-details-marker { display: none; }
.route-entry summary::marker { display: none; }
.route-entry summary:hover .stop-summary strong { color: var(--rust); }
.route-entry summary:hover .summary-cue,
.route-entry summary:focus-visible .summary-cue {
  color: var(--paper-bright);
  background: var(--rust);
}
.route-entry[open] summary .stop-summary strong { color: var(--rust); }

.stop-marker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.1rem;
  justify-items: center;
  align-items: center;
  width: 2.1rem;
  color: var(--paper-bright);
}

.stop-index {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--paper-bright);
  background: var(--blue);
}

.waterline-marker .stop-index { background: var(--deep-3); }
.waterline-item-copper .stop-index { background: var(--copper); }
.waterline-item-coral .stop-index { background: var(--coral); }

.stop-dot { display: none; }

.stop-summary {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.stop-summary strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.stop-summary span { color: var(--ink-soft); }

.marker-source { align-self: center; justify-self: end; }
.marker-source .source-chip { color: var(--rust); }

.summary-cue {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--rust);
  border: 1px solid var(--rust);
  font-family: var(--utility);
  font-size: 1.1rem;
  line-height: 1;
}

.route-entry[open] .summary-cue { font-size: 0; }
.route-entry[open] .summary-cue::after { content: "−"; font-size: 1.1rem; }

.stop-detail {
  margin-left: 4.1rem;
  padding: 0.2rem 0 1.8rem 1.2rem;
  border-left: 3px solid var(--rust);
}

.stop-detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.detail-kicker {
  color: var(--rust);
  text-transform: uppercase;
}

.stop-detail-head .source-chip { margin-top: 0; color: var(--rust); }

.stop-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.8rem);
}

.stop-facts h3 { color: var(--rust); font-size: 1.2rem; }
.stop-facts p { margin-bottom: 0; color: var(--ink-soft); }

.section-dark {
  color: var(--paper-bright);
  background: var(--deep-2);
}

.project-section,
.status-section { padding-block: var(--section-space); }

.section-head-dark .eyebrow { color: var(--yellow); }
.section-head-dark h2 { color: var(--paper-bright); }
.section-head-dark .section-intro { color: rgba(249, 250, 245, 0.72); }

.hinge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(2rem, 8vw, 8rem);
  max-width: 1040px;
}

.hinge-copy { max-width: 45rem; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.28; }
.hinge-copy p + p { color: rgba(249, 250, 245, 0.68); }

.hinge-reading {
  align-self: start;
  padding-left: 1.5rem;
  border-left: 3px solid var(--copper);
}

.reading-label { color: var(--yellow); text-transform: uppercase; }
.reading-quote { color: var(--paper-bright); font-family: var(--display); font-size: 1.75rem; line-height: 1.03; }
.hinge-reading .source-chip { color: rgba(249, 250, 245, 0.82); }

.project-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px;
  margin: 4.2rem 0 0;
  border-top: 1px solid var(--line-light);
}

.project-ledger > div {
  position: relative;
  min-width: 0;
  padding: 1.1rem 1.2rem 0 0;
  border-right: 1px solid var(--line-light);
}

.project-ledger > div + div { padding-left: 1.2rem; }
.project-ledger > div:last-child { border-right: 0; }
.project-ledger dt { margin-bottom: 0.55rem; color: var(--yellow); text-transform: uppercase; }
.project-ledger dd { margin: 0; color: rgba(249, 250, 245, 0.82); font-family: var(--display); font-size: 1.1rem; line-height: 1.05; }
.project-ledger .source-chip { color: rgba(249, 250, 245, 0.8); }

.section-wash { padding-block: var(--section-space); background: var(--paper-warm); }

.event-line {
  display: grid;
  gap: 0;
  max-width: 1000px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.event-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
}

.event-row time { padding-top: 0.25rem; color: var(--rust); font-family: var(--utility); font-size: 0.74rem; }
.event-body { max-width: 44rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 0.5rem; color: var(--rust); text-transform: uppercase; }
.event-meta .source-chip { margin-top: 0; color: var(--ink); }
.event-body p { max-width: 42rem; margin-bottom: 0; color: var(--ink-soft); font-size: 1.2rem; }

.responsibility-section { padding-bottom: calc(var(--section-space) * 0.78); }

.role-ledger,
.open-ledger {
  max-width: 1060px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.role-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.role-object h3 { margin-bottom: 0.3rem; }
.role-object .source-chip { margin-top: 0; color: var(--rust); }
.role-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.role-detail p { margin: 0; color: var(--ink-soft); }
.role-detail strong { display: block; margin-bottom: 0.35rem; color: var(--rust); text-transform: uppercase; }

.open-ledger { border-color: var(--line-light); }

.open-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-light);
}

.open-value { display: grid; align-content: start; gap: 0.8rem; }
.status-label { color: var(--yellow); text-transform: uppercase; }
.open-value strong { color: var(--paper-bright); font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.86; letter-spacing: -0.03em; }
.open-copy p { max-width: 40rem; margin: 0; color: rgba(249, 250, 245, 0.72); font-size: 1.18rem; }
.open-copy .source-chip { color: rgba(249, 250, 245, 0.8); }
.status-closing { max-width: 52rem; margin: 3.2rem 0 0; color: var(--blue-pale); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.16; }

.sources-section { padding-top: calc(var(--section-space) * 0.85); }

.sources-list {
  max-width: 1060px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.source-entry { padding: 1.5rem 0 1.8rem; border-bottom: 1px solid var(--line); }
.source-entry-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
.source-id { color: var(--rust); }
.source-kind { color: var(--ink-soft); text-transform: uppercase; }
.source-entry h3 { max-width: 48rem; margin-bottom: 0.45rem; font-size: 1.45rem; }
.source-entry h3 a { text-decoration: none; }
.source-entry h3 a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.source-org { margin-bottom: 0.8rem; color: var(--ink-soft); }
.source-entry > p:last-child { max-width: 42rem; margin-bottom: 0; color: var(--ink-soft); }

.limits { max-width: 57rem; margin-top: 3.6rem; padding-top: 1.2rem; border-top: 3px solid var(--rust); }
.limits h3 { font-size: 1.5rem; }
.limits ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.limits li + li { margin-top: 0.5rem; }
.method-note, .updated-line { max-width: 52rem; margin-bottom: 0.55rem; color: var(--ink-soft); }
.method-note { margin-top: 3rem; }
.updated-line { color: var(--rust); }

.related-line { margin: 2rem 0 0; color: var(--rust); font-family: var(--utility); font-size: 0.7rem; }
.related-line a { text-decoration: none; }

.site-footer { padding: 2rem 0 4rem; color: var(--paper-bright); background: var(--deep-2); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; text-transform: uppercase; }
.footer-grid p { margin-bottom: 0.55rem; color: var(--blue-pale); }
.footer-grid a { color: var(--paper-bright); }

.back-top {
  position: static;
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  color: var(--deep-2);
  border: 1px solid var(--yellow);
  background: var(--yellow);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}



.back-top:hover { transform: translateY(-3px); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .hero-art { max-width: 760px; margin-top: 1rem; }
  .hinge-grid { gap: 3rem; }
  .role-row { grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr); gap: 1.5rem; }
  .role-detail { grid-template-columns: 1fr; gap: 0.8rem; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1180px); }
  body { font-size: 1rem; }
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand language" "date date";
    gap: 0.55rem 0.7rem;
    padding-block: 0.65rem 0.8rem;
  }
  .wordmark { grid-area: brand; }
  .language-switch { grid-area: language; }
  .route-label { grid-area: date; padding-top: 0.25rem; text-align: left; }
  h1 { max-width: 6ch; font-size: clamp(3.8rem, 19vw, 6rem); }
  h2 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .hero-grid { padding-block: 3.5rem 2.5rem; }
  .hero-art { margin-top: 0.5rem; padding: 0.8rem; }
  .diagram-topline { font-size: 0.57rem; }
  .atlas-plot {
    display: grid;
    gap: 0.6rem;
    aspect-ratio: auto;
    min-height: 0;
    padding-left: 0.8rem;
  }
  .atlas-lines { display: none; }
  .atlas-node,
  .atlas-node-origin,
  .atlas-node-hinge,
  .atlas-node-branch,
  .atlas-node-canal,
  .atlas-node-destination {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    min-height: 3.2rem;
    transform: none;
    font-size: 0.68rem;
  }
  .atlas-node::before {
    position: absolute;
    bottom: 100%;
    left: 0.75rem;
    width: 2px;
    height: 0.6rem;
    content: "";
    background: var(--blue);
  }
  .atlas-node-origin::before { display: none; }
  .atlas-node-branch { margin-left: 1rem; width: calc(100% - 1rem); border-color: var(--copper); }
  .atlas-key { gap: 0.7rem 1rem; margin-top: 1rem; font-size: 0.57rem; }
  .hero-callout { display: block; padding-bottom: 1.3rem; }
  .hero-callout > div { grid-template-columns: auto 1fr; }
  .hero-callout > div > span:last-child { max-width: none; }
  .hero-callout > .source-chip { margin-top: 0.8rem; }
  .back-top {
    width: 2.75rem;
    min-width: 2.75rem;
    padding-inline: 0;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
    letter-spacing: 0;
  }
  .back-top span { font-size: 1rem; }
  .route-section,
  .responsibility-section,
  .sources-section { padding-block: 5rem; }
  .section-head { margin-bottom: 2.2rem; }
  .route-note { grid-template-columns: 1fr; gap: 0.45rem; margin-bottom: 1.2rem; }
  .route-legend { gap: 0.8rem; font-size: 0.59rem; }
  .waterline::before { left: 0.9rem; }
  .waterline-item,
  .waterline-marker { grid-template-columns: 1fr; gap: 0.35rem; }
  .route-entry summary { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0.7rem; min-height: 4.7rem; }
  .waterline-marker { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.7rem; padding: 0.9rem 0; }
  .waterline-marker .marker-source { grid-column: 2; justify-self: start; }
  .stop-marker { width: 1.8rem; }
  .stop-index { width: 1.8rem; height: 1.8rem; font-size: 0.6rem; }
  .stop-summary strong { font-size: 1.45rem; }
  .stop-summary span { font-size: 0.95rem; line-height: 1.35; }
  .stop-detail { margin-left: 3.3rem; padding-left: 0.9rem; }
  .stop-facts { grid-template-columns: 1fr; gap: 1.1rem; }
  .stop-facts h3 { margin-bottom: 0.25rem; }
  .hinge-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hinge-copy { font-size: 1.28rem; }
  .hinge-reading { padding-left: 1rem; }
  .project-ledger { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .project-ledger > div,
  .project-ledger > div + div { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .project-ledger > div:last-child { border-bottom: 0; }
  .section-wash,
  .project-section,
  .status-section { padding-block: 5rem; }
  .event-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .event-row time { padding-top: 0; }
  .event-body p { font-size: 1.08rem; }
  .role-row,
  .open-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .role-detail { gap: 0.8rem; }
  .open-value { grid-template-columns: 1fr auto; align-items: baseline; gap: 0.8rem; }
  .open-value strong { font-size: 3rem; }
  .status-closing { margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

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

/* Editorial revision: the source and first action share the opening. */
:root { color-scheme: light; --focus: var(--rust); }
:root[data-theme="dark"] { color-scheme: dark; --ink: #f9faf5; --ink-soft: #c7d8da; --paper: #102932; --paper-warm: #163640; --line: #55717a; --rust: #ffb8a8; --copper: #e4c45e; }
.site-header, .hero, .section-dark, .site-footer { --focus: var(--yellow); }
.topbar { grid-template-columns: auto 1fr auto auto; }
.theme-toggle { min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--blue-pale); border-radius: 2rem; background: transparent; color: var(--paper-bright); font: .75rem var(--display); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--deep); }
h1 { max-width: 17ch; font-size: clamp(2.8rem,4.6vw,4.6rem); line-height: 1.06; text-wrap: balance; }
h2 { max-width: 22ch; font-size: clamp(2.3rem,4.2vw,4rem); line-height: 1.09; text-wrap: balance; }
h3 { line-height: 1.18; }
.hero-grid { grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); min-height: 0; padding-block: 3.5rem 2.5rem; gap: 3rem; }
.hero-deck { max-width: 38rem; font-size: clamp(1.25rem,1.8vw,1.5rem); line-height: 1.4; margin-bottom: 1.2rem; }
.hero-note { font: 1rem/1.45 var(--body); letter-spacing: 0; color: var(--blue-pale); }
.hero-note .source-chip { display: flex; width: fit-content; margin-left: 0; }
.hero-action { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; padding: .6rem 0; margin-top: .75rem; color: var(--yellow); font: 600 1rem/1.4 var(--display); text-underline-offset: .3em; }
.hero-action:hover { text-decoration-thickness: .15em; }
.hero-art { margin-top: 0; padding: 1.5rem; }
.diagram-topline { flex-wrap: wrap; gap: .5rem; }
.diagram-topline span:last-child { color: var(--blue-pale); }
.route-schematic { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.route-schematic li { position: relative; display: flex; gap: 1rem; align-items: center; min-height: 3rem; margin-top: 1.1rem; padding: .65rem 1rem; border: 1px solid var(--blue-pale); color: var(--paper-bright); font: 1rem/1.3 var(--display); }
.route-schematic li + li::before { content: ""; position: absolute; width: 2px; height: 1.1rem; bottom: 100%; left: 1.45rem; background: var(--blue-pale); }
.route-schematic li span { font: .7rem var(--utility); }
.route-schematic .schematic-bala { background: var(--yellow); border-color: var(--yellow); color: var(--deep-2); }
.hero-diagram figcaption { color: var(--blue-pale); font-size: 1rem; line-height: 1.4; }
.source-chip { min-height: 32px; font-size: .7rem; }
.source-chip b { color: currentColor; }
.hero-callout > div > span:last-child { max-width: 32rem; }
.route-entry { scroll-margin-top: 1rem; }
.route-note { border-left-width: 1px; }
.route-entry summary { color: var(--ink); }
:root[data-theme="dark"] .stop-summary strong { color: var(--ink); }
:root[data-theme="dark"] .stop-index { color: var(--deep-2); background: var(--blue-pale); }
:root[data-theme="dark"] .waterline-item-copper .stop-index { background: var(--yellow); }
:root[data-theme="dark"] .source-entry h3 a { color: var(--ink); }
.footer-grid { grid-template-columns: 1fr 1fr; }
@media(max-width:900px) { .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; } .hero-art { max-width: 100%; } }
@media(max-width:640px) {
 .topbar { grid-template-columns: 1fr auto auto; grid-template-areas: "brand theme language" "date date date"; gap: .25rem .7rem; }
 .theme-toggle { grid-area: theme; padding: .3rem .55rem; }
 .hero-grid { padding-top: 1.5rem; }
 h1 { max-width: 100%; font-size: 2.7rem; line-height: 1.07; }
 .hero-deck { font-size: 1.2rem; line-height: 1.4; }
 .hero-note { font-size: .98rem; }
 .hero-art { padding: 1rem; }
 .route-schematic li { min-height: 2.75rem; }
 .hero-callout > div { grid-template-columns: 1fr; gap: .65rem; }
 .footer-grid { grid-template-columns: 1fr; }
}

.stop-index { color: var(--deep-2); }
.waterline-item-copper .stop-index { color: var(--paper-bright); }
.summary-cue { min-width: 44px; min-height: 44px; }
.hero-note .source-chip { min-height: 44px; }

.waterline-marker { grid-template-columns: 3.1rem minmax(0,1fr) auto; gap: 1rem; }
.waterline-marker .stop-index { color: var(--paper-bright); }
.stop-index { background: var(--blue-pale); }
.waterline-item-coral .stop-index { background: var(--rust); color: var(--paper-bright); }
.site-footer .back-top { color: var(--deep-2); }
:root[data-theme="dark"] .waterline-item-coral .stop-index { color: var(--deep-2); }
@media(max-width:640px) {
 .waterline-marker { grid-template-columns: 2.6rem minmax(0,1fr); gap: .7rem; }
 .waterline-marker .marker-source { grid-column: 2; }
 .stop-detail-head { flex-wrap: wrap; }
}
