@font-face {
  font-family: Outfit;
  src: url("assets/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("assets/dm-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  --chapter-gap: clamp(28px, 4vw, 56px);
  --p-bg: #111111; --p-surface: #1c1c1c; --p-ink: #f2f2f2; --p-muted: #8f8f8f;
  --p-accent: #a08672; --p-accent-ink: #111111; --p-action: #a08672; --p-action-ink: #111111;
  --p-inv-bg: #f2f2f2; --p-inv-surface: #e0e0e0; --p-inv-ink: #111111; --p-inv-muted: #5c5c5c;
  --p-inv-accent: #a08672; --p-inv-accent-ink: #111111; --p-inv-action: #a08672; --p-inv-action-ink: #111111;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-text: "Outfit", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
}

.model-frame {
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 28px);
  position: relative;
  overflow: clip;
  border-radius: var(--r-lg);
  background: #211b18;
}
main > .hero--split { height: auto; min-height: 100svh; display: grid; }
.hero--split > .wrap { height: auto; grid-template-rows: 1fr; }
.hero--split > .wrap > .hero-text { height: auto; grid-template-rows: minmax(min-content, 1fr); }
@media (min-width: 1024px) {
  .hero--split > .wrap > .hero-text { min-height: calc(100svh - var(--nav) - var(--chapter-gap) - var(--hpadb)); }
}
.hero--split .hero__media.portrait-frame {
  width: 100%;
  max-width: min(640px, calc(100svh - var(--nav) - var(--chapter-gap) - var(--hpadb)));
  height: auto;
  aspect-ratio: 1;
  align-self: center;
  flex: none;
  min-height: 0;
  justify-self: end;
  isolation: isolate;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 43% 46% at 50% 50%, #92603dba 0%, #66432b82 41%, transparent 100%);
  z-index: -1;
}
.portrait-filter { position: absolute; }
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: url(#portrait-edge) saturate(.92);
  mask-image:
    linear-gradient(#000 0 74%, transparent 100%),
    linear-gradient(90deg, transparent, #000 9% 91%, transparent);
  mask-composite: intersect;
}
.hero--split .hero__text { align-self: center; }
@media (min-width: 1024px) {
  .hero--split .hero__text, .hero--split .hero__media.portrait-frame { align-self: start; }
}
main > #aethelgard > .wrap.routing-layout {
  display: grid;
  align-items: start;
  row-gap: 24px;
}
.routing-overview { min-width: 0; }
.routing-layout .model-frame { min-width: 0; }
.model-frame::before { display: none; }
@media (max-width: 900px) {
  .routing-layout > .span-6 { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero--split .hero__media.portrait-frame { margin-top: 18px; max-width: min(100%, 46svh, 32rem); justify-self: start; }
}
.model-frame > .model-ground {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #17110f;
  pointer-events: none;
}
.model-ground::before, .model-ground::after {
  content: "";
  position: absolute;
  inset: -28%;
  background:
    radial-gradient(ellipse 38% 34% at 22% 35%, #ca8961 0%, #824d31 46%, transparent 100%),
    radial-gradient(ellipse 45% 36% at 80% 70%, #996643 0%, #552f20 50%, transparent 100%);
}
.model-ground::after {
  background: radial-gradient(ellipse 30% 42% at 73% 22%, #edb17ca3 0%, #ad684a61 50%, transparent 100%);
}
.routing-panel {
  width: min(100%, 29rem);
  z-index: 1;
  padding: clamp(14px, 2.3vw, 32px);
  border: 1px solid #786251;
  border-radius: var(--r-lg);
  background: #211b18;
  color: #faf3ec;
}
.routing-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: clamp(1.1rem, 2.7vw, 2rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.routing-brand span, .route-node small {
  font: 400 0.75rem/1.35 var(--font-mono);
  color: #d0b9a5;
}
.routing-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.routing-controls button {
  border: 1px solid #826a58;
  border-radius: 999px;
  padding: 4px 6px;
  min-height: 44px;
  color: #fbefe2;
  background: #342923;
  font-weight: 500;
}
.routing-controls button[aria-pressed="true"] { color: #211b18; background: #e6c3a4; border-color: #e6c3a4; }
.routing-controls button:hover { border-color: #f2d8bf; }
.routing-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.route-map { display: grid; justify-items: stretch; gap: 20px; }
.route-node {
  position: relative;
  display: grid;
  padding: 10px 8px;
  min-width: 0;
  text-align: center;
  border: 1px solid #745c4b;
  border-radius: var(--r-md);
  background: #2c241f;
  line-height: 1.25;
}
.route-node strong { font-size: clamp(0.9rem, 1.55vw, 1.25rem); font-weight: 500; }
.route-input, .route-core { width: 76%; justify-self: center; }
.route-input::after, .route-core::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 21px;
  background: #d1a783;
  top: 100%;
  left: 50%;
}
.route-branches {
  --branch-gap: 12px;
  --branch-rise: 14px;
  --branch-inset: calc((100% - var(--branch-gap)) / 4);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--branch-gap);
  padding-top: var(--branch-rise);
}
.route-branches::before {
  content: "";
  position: absolute;
  inset: 0 var(--branch-inset) auto;
  height: calc(var(--branch-rise) + 1px);
  border: 1px solid #b4957a;
  border-bottom: 0;
}
[data-route="review"] .route-review, [data-route="routine"] .route-local {
  background: #46352a;
  border-color: #eac39d;
}
.route-result { margin: 16px 0 0; min-height: 2.8em; color: #f3dfcb; line-height: 1.4; }

.routing-lead { margin: var(--s-4) 0 var(--s-6); max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.4rem); }
#aethelgard { background: #eaddcf; color: #211b18; overflow: clip; }
#aethelgard #routing-title { max-width: none; font-size: clamp(2.75rem, 5vw, 5rem); }
.routing-diagram {
  --p-h: clamp(230px, 37svh, 360px);
  flex: none;
  height: var(--p-h);
  margin: 0;
}
.routing-diagram .dg { width: 100%; height: 100%; --dg-line: #927761; --dg-w: 2px; }
#aethelgard .routing-diagram { border: 0; background: transparent; }
#aethelgard .routing-diagram::before, #aethelgard .routing-diagram::after { content: none; }
#aethelgard .dg-node--pill.is-hit { box-shadow: var(--dg-shadow); }
#aethelgard .dg::before { mask-image: radial-gradient(ellipse, #000 28%, transparent 76%); }
#inference .routing-diagram { --p-h: clamp(170px, 29svh, 270px); background: #211b18; }
#inference .routing-diagram .dg { --dg-line: #806752; --dg-w: 2px; --dg-pulse: #f5bc88; }
#inference .dg-lit { stroke-width: 4px; }
#inference .dg-lit[stroke-dasharray^="0 "] { stroke: #fff0dc; }
.project-grid { align-items: start; margin-top: var(--s-6); }
.project-grid .routing-lead { margin-block: 0; }
.project-grid .routing-lead + .routing-lead { margin-top: var(--s-4); }
#voice { background: #211b18; }
.voice-scene {
  --voice-icon-size: clamp(82px, 10vw, 152px);
  position: relative;
  padding: clamp(22px, 3vw, 46px);
  border: 1px solid #634a37;
  border-radius: var(--r-lg);
  background: #181411;
  color: #faeee1;
}
.voice-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.voice-stage { display: grid; grid-template-rows: auto 1fr; gap: 28px; }
.voice-icon {
  width: var(--voice-icon-size);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #9d795b;
  background: #32241b;
  color: #f1c69f;
}
.voice-icon svg { width: 62%; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.voice-content { padding-block: 16px 0; border-block-start: 1px solid #604733; }
.voice-content h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 1.8vw, 1.7rem); font-weight: 500; }
.voice-content p { margin: 0; max-width: 31ch; color: #decabc; line-height: 1.5; }
.voice-content code { color: #f4c497; font: .9rem/1.65 var(--font-mono); }
.voice-track {
  position: absolute;
  top: calc(clamp(22px, 3vw, 46px) + var(--voice-icon-size) / 2);
  inset-inline: 16.7%;
  height: 1px;
  background: #7a5b43;
}
.voice-track span {
  position: absolute;
  inset: -1px auto -1px 0;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #745138, #c89265 75%, #ffe6c8);
}
.voice-stage:nth-child(2) { --voice-delay: .9s; }
.voice-stage:nth-child(3) { --voice-delay: 1.8s; }
.pen-readout p { margin: 4px 0 0; }
.voice-step, .pen-feedback { color: #e1ba96; font: 400 .78rem/1.4 var(--font-mono); }
@media (max-width: 639px) {
  .voice-scene { --voice-icon-size: 50px; padding: 18px; }
  .voice-stages { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .voice-stage { grid-template: auto / var(--voice-icon-size) minmax(0, 1fr); gap: 15px; }
  .voice-icon { margin: 0; }
  .voice-content { padding-block-start: 3px; border: 0; }
  .voice-content h3 { margin-bottom: 4px; }
  .voice-track { inset: 34px auto 68px calc(18px + var(--voice-icon-size) / 2); width: 1px; height: auto; }
  .voice-track span { inset: 0 -1px; width: auto; transform-origin: top center; }
}
.prototype-previews { display: grid; gap: var(--s-4); }
.pen-preview {
  display: grid;
  grid-template-columns: 2fr minmax(80px, 1fr);
  min-height: 170px;
  border-radius: var(--r-md);
  overflow: clip;
  background: #211b18;
}
.pen-camera { display: grid; place-items: center; padding: 14px; background: #504033; overflow: clip; }
.bench-pen { position: relative; width: 70%; height: 7px; background: #e1ba96; border-right: 12px solid #29211b; border-radius: 1px 4px 4px 1px; transform: rotate(-26deg); }
.bench-pen::before { content: ""; position: absolute; right: 100%; border: 3.5px solid transparent; border-right: 9px solid #e1ba96; }
.pen-readout { display: grid; align-content: center; padding: 16px; background: #211b18; }
.pen-event { color: #f3dfcb; }
#pan-tilt .rig-preview { display: grid; overflow: clip; border-radius: var(--r-md); height: clamp(190px, 26svh, 260px); }
#arabic-tracing { background: #eaddcf; color: #211b18; }
.project-grid > .project-preview {
  display: grid;
  height: clamp(260px, 47svh, 450px);
  position: relative;
  overflow: clip;
  border-radius: var(--r-md);
  margin: 0;
}
.tracing-preview {
  position: relative;
  place-items: center;
  background: #f8eee3;
  background-image: radial-gradient(#80675235 1px, transparent 1px);
  background-size: 17px 17px;
}
.tracing-preview svg { width: 100%; height: 100%; min-height: 0; max-height: 100%; }
.trace-guide, .trace-ink { fill: none; stroke-width: 7; stroke-linecap: round; }
.trace-guide { stroke: #987b64; stroke-dasharray: 1 12; }
.trace-ink { stroke: #603b27; stroke-dasharray: 100; }
.trace-start, .trace-dot { fill: #603b27; }
.trace-letter { position: absolute; inset: auto 16px 12px auto; color: #603b27; font-size: 2.25rem; }
.rig-preview {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  place-items: center;
  padding: 24px 16px;
  background: #211b18;
  perspective: 420px;
}
.rig-input, .rig-mount { position: relative; width: min(100%, 108px); align-self: center; }
.rig-input {
  aspect-ratio: 1;
  border: 1px solid #9e7b61;
  border-radius: 14px;
  background: radial-gradient(circle, #15100d 31%, #a9876f 32%, #49392e 34%, #332922 58%, #211b18 60%);
}
.rig-stick { position: absolute; inset: 34%; border-radius: 50%; background: #e2bc97; box-shadow: 0 4px 6px #100a06; }
.rig-mount { height: 108px; border-bottom: 10px solid #b28f74; border-radius: 0 0 12px 12px; perspective: 420px; }
.rig-yoke {
  position: absolute;
  inset: 9px 10px 0;
  border: 9px solid #a88368;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform-style: preserve-3d;
  transform-origin: center bottom;
}
.rig-head {
  position: absolute;
  inset: 16% 0 38%;
  display: grid;
  place-items: center;
  border: 1px solid #dfa87e;
  border-radius: 6px;
  background: #624938;
}
.rig-head::after { content: ""; width: 21px; aspect-ratio: 1; border: 3px solid #e0b28e; border-radius: 50%; background: #181310; }
.rig-label { padding: 0 0 10px; color: #efd8c1; font: 400 0.8rem/1.4 var(--font-mono); }
.compute-facts { margin: var(--s-6) 0 0; }
.compute-facts div { padding-block: var(--s-4); border-top: 1px solid #6f5847; }
.compute-facts dt { font: 400 0.8rem/1.4 var(--font-mono); color: #d0b9a5; }
.compute-facts dd { margin: 0; font-size: clamp(1.55rem, 3.1vw, 2.7rem); font-weight: 400; }

#contact { background: #201a16; color: var(--p-ink); }
.contact-grid { align-items: center; align-self: center; width: 100%; }
.contact-lead h2 { font-size: clamp(2.8rem, 7.2vw, 7rem); line-height: .99; }
.contact-art { width: 100%; max-height: min(42vh, 420px); fill: none; stroke: #876348; stroke-width: 1.2; }
.contact-trace { stroke: #e8b68e; stroke-width: 2; stroke-dasharray: 1; }
.contact-point { fill: #ffe6c8; stroke: none; }
@media (max-width: 639px) {
  .contact-art { max-height: min(28svh, 190px); margin-block-start: 12px; }
}

.contact-grid p { max-width: 37ch; margin: 18px 0 22px; font-size: 1.15rem; }
.footer .contact-links { display: flex; list-style: none; padding: 0; gap: 24px; margin-top: 14px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-signature { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 10px; border-top-color: transparent; }
.footer-signature::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--accent); transform-origin: right; }

@media (prefers-reduced-motion: no-preference) {
  .model-ground::before { animation: fluid-drift 8s ease-in-out infinite; }
  .model-ground::after { animation: fluid-drift 11s ease-in-out -4s infinite reverse; }
  .route-node { --route-animation-delay: 0s; }
  .model-frame .is-routing .route-input,
  .model-frame .is-routing .route-core,
  .model-frame .is-routing[data-route="review"] .route-review,
  .model-frame .is-routing[data-route="routine"] .route-local {
    animation: route-handoff .75s var(--route-animation-delay) both;
  }
  .is-routing .route-input::after, .is-routing .route-core::after {
    transform-origin: top;
    animation: route-link .42s var(--route-animation-delay) both;
  }
  .is-routing .route-branches::before { animation: route-link .38s .55s both; }
  .route-core { --route-animation-delay: 0.4s; }
  .route-review, .route-local { --route-animation-delay: 0.85s; }
  .tracing-preview.is-visible .trace-ink { animation: trace-letter 3.8s ease-in-out infinite; }
  .tracing-preview.is-visible .trace-dot { animation: place-dot 3.8s ease-in-out infinite; }
  .portrait-frame::before { animation: portrait-warmth 8s ease-in-out infinite alternate; }
  .voice-scene.is-visible .voice-track span { animation: send-across 2.5s ease-in-out both; }
  .voice-scene.is-visible .voice-icon { animation: voice-arrival .7s var(--voice-delay, 0s) ease-out both; }
  .voice-scene.is-visible .voice-stage:nth-child(n+2) :is(code, .voice-content p) {
    display: block;
    animation: voice-result .58s var(--voice-delay) ease-out both;
  }
  #contact.is-visible .contact-trace { animation: trace-contact 1.65s cubic-bezier(.22,.7,.3,1) both; }
  #contact.is-visible .contact-trace + .contact-trace { animation-delay: .24s; }
  #contact.is-visible .contact-point { animation: contact-on .7s 1.1s ease-out both; }
  .pen-preview.is-visible .bench-pen { animation: pen-arrival 4s ease-out infinite; }
  .pen-preview.is-visible .pen-event { animation: report-entry 4s infinite; }
  .rig-preview.is-visible .rig-stick { animation: move-joystick 4s ease-in-out infinite; }
  .rig-preview.is-visible .rig-yoke { animation: pan-mount 4s ease-in-out infinite; }
  .rig-preview.is-visible .rig-head { animation: tilt-mount 4s ease-in-out infinite; }
  .footer-signature.is-visible::before { animation: sign-line 1.05s ease-out both; }
  .footer-signature.is-visible .mark { animation: sign-mark 0.55s 0.7s ease-out both; }
}

@keyframes fluid-drift {
  0%, 100% { transform: translate(-8%, -5%) rotate(-8deg); }
  33% { transform: translate(14%, -7%) rotate(13deg); }
  66% { transform: translate(4%, 14%) rotate(-10deg); }
}
@keyframes route-link { from { opacity: .2; transform: scaleY(.2); } to { opacity: 1; transform: scaleY(1); } }
@keyframes route-handoff {
  0%, 36%, 100% { box-shadow: background-color: inherit; }
  35% { filter: brightness(1.7); }
}
@keyframes trace-letter {
  0%, 12% { stroke-dashoffset: 100; opacity: 1; }
  64%, 88% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes place-dot {
  0%, 64% { opacity: 0; }
  70%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes portrait-warmth {
  from { transform: translate(-9%, 2%) scale(.93); opacity: .68; }
  to { transform: translate(8%, -5%) scale(1.06); opacity: 1; }
}
@keyframes send-across { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 639px) {
  @keyframes send-across { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@keyframes voice-arrival {
  45% { background: #805635; box-shadow: 0 0 0 7px #d49b6026; }
}
@keyframes voice-result { from { transform: translateY(6px); } to { transform: none; } }
@keyframes trace-contact { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes contact-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes pen-arrival { 0%, 100% { transform: translateX(190%) rotate(-26deg); } 32%, 95% { transform: rotate(-26deg); } }
@keyframes report-entry { 0%, 40%, 100% { color: #ccb4a0; } 48%, 93% { color: #fff3e6; } }
@keyframes move-joystick {
  0%, 47%, 92%, 100% { transform: none; }
  22% { transform: translateX(60%); }
  69% { transform: translateY(-60%); }
}
@keyframes pan-mount { 0%, 47%, 100% { transform: none; } 22% { transform: rotateY(48deg); } }
@keyframes tilt-mount { 0%, 47%, 92%, 100% { transform: none; } 69% { transform: rotateX(48deg) translateY(-9px); } }
@keyframes sign-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sign-mark { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (min-height: 800px) {
  #aethelgard .routing-diagram { --p-h: clamp(300px, calc(70svh - 260px), 560px); }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .hero--split { --hgap: 24px; --hpadb: 22px; }
  .model-frame { padding: 16px; }
  .routing-panel { padding-block: 20px; }
  .route-result { min-height: 2lh; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .project-grid > .project-preview { height: clamp(350px, 43svh, 520px); }
}

@media (max-width: 767px) {
  .routing-panel { padding-block: 12px; }
  .routing-brand { margin-bottom: 9px; }
  .routing-controls { margin-bottom: 9px; }
  .route-node { padding-block: 6px; }
  .route-map { gap: 14px; }
  .route-input::after, .route-core::after { height: 15px; }
  .route-branches { --branch-rise: 9px; }
  .route-result { margin-top: 10px; min-height: 0; }
}
@media (max-width: 639px) {
  .hero--split { --hgap: 16px; }
  .hero--split .hero__lead { margin-top: 12px; }
  .hero--split .hero__text { width: 100%; align-self: stretch; }
  #inference .routing-diagram { --p-h: clamp(250px, 34svh, 285px); }
  .compute-facts div { grid-column: span 6; }
  .project-grid > .project-preview { margin-top: var(--s-4); }
}
@media (max-width: 365px) {
  .hero--split { --hgap: 12px; }
  .hero--split h1 { font-size: 32px; }
  .hero--split .hero__lead { font-size: 15px; line-height: 1.4; margin-top: 12px; }
  .hero--split .hero__text .btn-row { margin-top: 12px; }
  .routing-panel { padding: 9px; }
  .routing-brand span, .route-node small { font-size: 0.66rem; }
  .route-node { padding: 4px; }
  .route-node strong { font-size: 0.82rem; }
  .route-input, .route-core { width: 100%; }
  .route-map { gap: 8px; }
  .route-input::after, .route-core::after { height: 9px; }
  .route-branches { --branch-gap: 7px; }
  .route-result { font-size: 0.85rem; }
}

/* Chapter targets sit at the viewport edge, with the same inset below the fixed header. */
main > :is(.section, .hero), #contact { height: auto; min-height: 100svh; }
main > :is(.section, .hero), #contact { padding-block-start: calc(var(--nav) + var(--chapter-gap)); }
main > .section > .wrap, #contact > .wrap { height: auto; }
#contact {
  display: flex;
  flex-direction: column;
  padding-block-end: calc(var(--padb) + var(--bar));
}
#contact > .wrap {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  gap: 28px;
}
#contact .contact-grid { flex: 1 0 auto; align-content: center; }
.footer .footer-signature { margin-top: 0; }
#inference .dg-lit { filter: drop-shadow(0 0 4px #f5bc88); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
  html:has(:focus-visible) { scroll-behavior: auto; }
  main > section, #contact { scroll-snap-align: start; scroll-snap-stop: always; }

  @supports (animation-timeline: view()) {
    main > .section { view-timeline-name: --chapter-entry; }
    main > .section:not(#aethelgard) > .wrap {
      animation: chapter-arrival linear both;
      animation-timeline: --chapter-entry;
      animation-range: entry 3% entry 85%;
    }
    #aethelgard .routing-diagram {
      animation: chapter-arrival linear both;
      animation-timeline: --chapter-entry;
      animation-range: entry 3% entry 68%;
    }
    main > .section:has(:focus-visible) > .wrap { animation: none; }
  }
}
@keyframes chapter-arrival {
  from { transform: translateY(clamp(28px, 6vw, 84px)); }
  to { transform: none; }
}
