:root {
  color-scheme: dark;
  --page: #0b111d;
  --section: #101825;
  --surface: #121d2c;
  --raised: #192a3e;
  --well: #0c1522;
  --ink: #f1f5fb;
  --muted: #b4c4d8;
  --rule: #33455c;
  --accent: #a5d4ff;
  --accent-hover: #c2e3ff;
  --accent-ink: #0a2035;
  --night: #0e1826;
  --night-soft: #162437;
  --night-ink: #f1f5fb;
  --night-muted: #bfcfe3;
  --gutter: 56px;
  --sans: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  background: var(--page);
  font: 16px/1.65 var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.65rem; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--accent); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1336px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: .45rem; left: .75rem; padding: .6rem .95rem; transform: translateY(calc(-100% - 14px)); color: var(--accent-ink); background: var(--accent); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 5; top: 0; border-top: 2px solid #6ca8d8; border-bottom: 1px solid #293749; background: var(--page); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 63px; gap: 1rem; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 800; white-space: nowrap; }
.brand-icon { position: relative; width: 26px; height: 26px; overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.brand-icon::before, .brand-icon::after { position: absolute; content: ""; background: currentColor; }
.brand-icon::before { inset: 6px 9px 6px 7px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.brand-icon::after { width: 2px; height: 14px; top: 6px; right: 6px; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 3rem); }
.site-nav a { display: grid; min-height: 42px; place-items: center; color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .4rem; }
.sound-button { justify-self: end; display: inline-flex; align-items: center; gap: .48rem; min-height: 38px; padding: .36rem .7rem; border: 1px solid var(--rule); border-radius: 2px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: .88rem; white-space: nowrap; }
.sound-button:hover { border-color: var(--accent); color: var(--accent); }
.sound-button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.audio-mark { display: inline-flex; gap: 2px; align-items: center; height: 12px; }
.audio-mark i { width: 2px; height: 50%; background: currentColor; }
.audio-mark i:nth-child(2) { height: 95%; }
.audio-mark i:nth-child(3) { height: 65%; }
.audio-mark i:nth-child(4) { height: 32%; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(35rem, 71svh, 49rem);
  padding-block: clamp(4.5rem, 7vw, 7rem) clamp(5rem, 8vw, 8rem);
  overflow: hidden;
  background: #0b1421;
}
.hero-frame { position: absolute; z-index: -3; inset: 0 0 0 auto; width: 87%; height: 100%; object-fit: cover; object-position: 35% 45%; }
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, #0b1421 0%, #0b1421 12%, #0b1421e8 25%, #0b1421bd 39%, #0b142124 62%, #080f184d 100%),
              linear-gradient(0deg, #0b111d 0%, #0b111d2b 23%, transparent 51%, #080f184d 100%);
  pointer-events: none;
  content: "";
}
.hero-particles { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.opening-copy { max-width: 36rem; min-width: 0; }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 750; letter-spacing: .06em; }
.opening-copy .eyebrow { display: flex; align-items: center; gap: .7rem; }
.opening-copy .eyebrow::before { width: 1.45rem; height: 2px; background: currentColor; content: ""; }
h1 { margin: .72rem 0 1rem; font-size: clamp(3.15rem, 6.15vw, 6.25rem); font-weight: 800; line-height: 1.07; letter-spacing: -.065em; }
h1 span { color: #bbdfff; white-space: nowrap; }
.opening-summary { max-width: 24em; color: var(--night-muted); font-size: clamp(1rem, 1.32vw, 1.13rem); }
.byline { color: var(--muted); font-size: .88rem; }
.byline strong { margin-left: .28rem; color: var(--ink); font-weight: 750; }
.opening-copy .byline { margin-top: 1.25rem; }
.opening-links { display: flex; flex-wrap: wrap; gap: .62rem .75rem; margin-top: 1.48rem; }
.particle-toggle {
  position: absolute;
  right: max(var(--gutter), calc((100% - 1336px) / 2));
  bottom: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .34rem .66rem;
  border: 1px solid #637d9b;
  border-radius: 3px;
  color: var(--ink);
  background: #0c1729e6;
  font-size: .87rem;
  cursor: pointer;
}
.particle-toggle::before { content: "❄"; color: var(--muted); }
.particle-toggle:hover { border-color: var(--accent); background: var(--raised); }
.particle-toggle[aria-pressed="true"]::before { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: .63rem 1rem; border: 1px solid transparent; border-radius: 2px; color: inherit; font-size: .92rem; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.button.primary { color: var(--accent-ink); background: var(--accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.hero .button.outline { color: var(--ink); border-color: #7396b7; background: #111e2eae; }
.hero .button.outline:hover { border-color: var(--accent); background: var(--raised); }
.button.outline:hover { background: var(--raised); }
.button.small { min-height: 38px; padding: .38rem .66rem; border-color: var(--rule); background: var(--surface); color: var(--accent); font-size: .85rem; }
.button.small:hover { border-color: var(--accent); background: var(--raised); }
.button:disabled { cursor: default; }
.text-link { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.curriculum { border-block: 1px solid var(--rule); background: var(--surface); }
.curriculum .wrap { display: grid; grid-template-columns: minmax(112px, .65fr) minmax(0, 4fr); align-items: stretch; }
.curriculum h2 { display: grid; align-items: center; padding-block: .7rem; color: var(--accent); font-size: .92rem; }
.chapter-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.chapter-links li { min-width: 0; border-left: 1px solid var(--rule); }
.chapter-links a { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-content: center; align-items: baseline; gap: .15rem .55rem; min-height: 94px; height: 100%; padding: .55rem .95rem; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.chapter-links a:hover { background: var(--raised); color: var(--accent); }
.chapter-number { color: var(--accent); font: 700 .83rem/1.3 var(--mono); }
.chapter-links strong { font-size: .98rem; line-height: 1.38; }
.chapter-links small { grid-column: 2; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.screening { margin-top: clamp(2.9rem, 5.8vw, 5.2rem); }
.screening-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, .9fr); grid-template-areas: "video heading" "video storyboard"; align-items: center; gap: 1rem clamp(1rem, 2.55vw, 2.35rem); padding: clamp(1rem, 2.65vw, 2.35rem); border: 1px solid var(--rule); border-radius: 2px; color: var(--night-ink); background: var(--night); }
.screening :focus-visible { outline-color: var(--accent); }
.film-header { grid-area: heading; align-self: end; }
.film-header h2 { font-size: clamp(1.85rem, 3.1vw, 3.05rem); font-weight: 770; letter-spacing: -.045em; line-height: 1.2; }
.film-header p { max-width: 17em; margin-top: .65rem; color: var(--night-muted); font-size: .95rem; }
.film-header .film-duration { margin-top: .68rem; color: var(--accent); font: .85rem var(--mono); }
.film-screen { grid-area: video; display: grid; align-items: center; min-width: 0; overflow: hidden; border: 1px solid var(--rule); background: #080f19; }
.film-screen video { width: 100%; height: auto; max-height: min(69vh, 590px); object-fit: contain; }
.film-sidebar { grid-area: storyboard; min-width: 0; align-self: start; }
.storyboard { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .4rem; }
.storyboard button { min-width: 0; padding: 0; text-align: start; border: 1px solid var(--rule); border-radius: 2px; background: var(--night-soft); color: var(--night-muted); cursor: pointer; }
.storyboard button:hover { border-color: var(--accent-hover); }
.storyboard button[aria-pressed="true"] { border-color: var(--accent); color: var(--night-ink); box-shadow: inset 0 -2px 0 var(--accent); }
.storyboard img { width: 100%; height: auto; aspect-ratio: 992 / 432; object-fit: cover; }
.storyboard span { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 .36rem; min-height: 28px; padding: .22rem .35rem; font-size: .8rem; line-height: 1.4; }
.storyboard small { color: var(--muted); font: .72rem var(--mono); }
.film-note { min-height: 3.2em; margin-top: .68rem; padding-left: .55rem; border-left: 2px solid #638aaf; color: var(--night-muted); font-size: .88rem; }

.chapter { padding-block: clamp(3.35rem, 6.55vw, 6.5rem); }
.chapter-heading h2 { margin-top: .42rem; font-size: clamp(1.95rem, 3.85vw, 3.7rem); font-weight: 790; line-height: 1.2; letter-spacing: -.045em; }
.chapter-heading > p:not(.eyebrow) { max-width: 29em; color: var(--muted); }
.chapter-intro { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .72rem 1.8rem; margin-bottom: clamp(1.4rem, 3vw, 2.65rem); }
.chapter-intro > p { padding-bottom: .08rem; }
.models-layout .chapter-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr); align-items: end; gap: .42rem 1.35rem; margin-bottom: clamp(1.3rem, 2.8vw, 2.5rem); }
.models-layout .chapter-heading .eyebrow { grid-column: 1 / -1; }
.models-layout .chapter-heading h2 { margin-top: 0; }
.models-content { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(205px, 1fr); gap: .7rem clamp(1.25rem, 3.6vw, 3.75rem); align-items: start; }
.model-list h3 { padding-bottom: .55rem; border-bottom: 2px solid #6a8cae; font-size: 1.08rem; }
.model-list dl > div { display: grid; grid-template-columns: minmax(150px, .86fr) minmax(0, 1fr); gap: .23rem .85rem; padding-block: .78rem; border-bottom: 1px solid var(--rule); }
.model-list dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .05rem .48rem; font-weight: 750; line-height: 1.4; }
.model-list dt span { color: var(--accent); font-size: .8rem; }
.model-list dd { color: var(--muted); font-size: .92rem; line-height: 1.52; }
.video-model { min-height: 10rem; padding: clamp(1rem, 2.7vw, 2rem); border-left: 4px solid var(--accent); background: var(--raised); }
.video-model h3 { margin: .35rem 0 .3rem; font-size: clamp(1.28rem, 2.4vw, 1.88rem); line-height: 1.25; }
.video-model p:not(.eyebrow) { color: var(--muted); font-size: .92rem; }
.models-content .disclosure { grid-column: 1 / -1; }
code { font: .96em var(--mono); }
.disclosure { padding: .7rem 0; margin-top: .75rem; border-bottom: 1px solid var(--rule); color: var(--muted); }
.disclosure summary { color: var(--accent); font-size: .94rem; font-weight: 750; cursor: pointer; }
.disclosure p { margin-top: .48rem; font-size: .92rem; }

.comparison-chapter { border-block: 1px solid var(--rule); background: var(--section); }
.guide { display: grid; grid-template-columns: minmax(116px, .22fr) minmax(0, 1.5fr); border: 1px solid var(--rule); background: var(--surface); }
.choice-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.guide > .choice-row { display: grid; gap: .24rem; align-content: start; padding: .8rem .65rem; border-right: 1px solid var(--rule); background: var(--well); }
.choice-row button { min-height: 39px; padding: .33rem .68rem; color: var(--accent); background: transparent; border: 1px solid transparent; border-radius: 2px; font-size: .9rem; font-weight: 730; cursor: pointer; }
.guide > .choice-row button { text-align: start; }
.choice-row button:hover { background: var(--raised); border-color: #789bbd; }
.choice-row button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.guide-stage { min-width: 0; }
.guide-picture { display: grid; align-items: center; min-width: 0; padding: clamp(.45rem, 1.35vw, 1.1rem); background: var(--well); }
.guide-picture:focus-visible { outline-offset: -3px; }
.guide-picture img { width: 100%; height: auto; max-height: clamp(270px, 43vw, 565px); object-fit: contain; }
.guide-caption { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem 1.4rem; padding: clamp(.9rem, 2.4vw, 1.65rem); }
.guide-caption h3 { font-size: 1.02rem; }
.guide-caption p { margin-top: .27rem; color: var(--muted); font-size: .93rem; }
.guide-caption .text-link { justify-self: start; grid-column: 1 / -1; font-size: .86rem; }
.trial-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-block: 1rem .45rem; }
.trial-images figure { padding: .7rem; border: 1px solid var(--rule); background: var(--surface); }
.trial-images img { width: 100%; height: clamp(94px, 14vw, 180px); object-fit: contain; }
.trial-images figcaption { padding-top: .5rem; font-size: .85rem; }

.asset-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.65rem); align-items: start; }
.character-figure { min-width: 0; }
.character-image { display: grid; place-items: center; min-height: 170px; padding: .6rem; border: 1px solid var(--rule); background: var(--well); }
.character-image img { width: 100%; height: auto; max-height: 630px; object-fit: contain; }
.character-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .45rem 1rem; padding-top: .62rem; }
.character-figure figcaption strong { font-size: .96rem; }
.character-figure figcaption p { margin-top: .15rem; color: var(--muted); font-size: .88rem; }
.character-figure figcaption .text-link { flex-shrink: 0; font-size: .86rem; }
.prompt-box { min-width: 0; padding: clamp(.86rem, 2.35vw, 1.7rem); border: 1px solid var(--rule); border-left: 4px solid #7db4e2; background: var(--surface); }
.prompt-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; }
.prompt-header .eyebrow { margin-bottom: .16rem; }
.prompt-header h3 { font-size: clamp(1.1rem, 1.75vw, 1.35rem); }
.prompt-header h4 { font-size: 1rem; }
.prompt-verbatim { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--rule); font-size: .96rem; line-height: 1.94; white-space: pre-line; overflow-wrap: anywhere; }
.asset-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1rem, 3vw, 2.65rem); margin-top: clamp(1.7rem, 4vw, 3.1rem); }
.asset-context > * { padding-top: .75rem; border-top: 1px solid var(--rule); }
.asset-context h3 { font-size: 1.05rem; }
.asset-context p { margin-top: .28rem; color: var(--muted); font-size: .94rem; }

.prompt-chapter { border-top: 1px solid var(--rule); background: var(--section); }
.writing-layout { display: grid; grid-template-columns: minmax(178px,.65fr) minmax(0,1.65fr); gap: clamp(.9rem, 3.4vw, 3.25rem); }
.prompt-methods { display: grid; align-content: start; gap: 1rem; }
.prompt-methods section { padding-top: .7rem; border-top: 2px solid #59728d; }
.prompt-methods h3 { font-size: 1.05rem; }
.prompt-methods p { margin-top: .29rem; color: var(--muted); font-size: .92rem; }
.disclosure > .prompt-box { margin-top: .65rem; }
.prompt-lines { margin-top: .55rem; }
.prompt-lines p { margin: .25rem 0; }
.motion-section { margin-top: clamp(2.55rem, 5vw, 4.5rem); }
.motion-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: .82rem; }
.motion-heading h3 { font-size: clamp(1.46rem, 2.3vw, 2.26rem); font-weight: 760; letter-spacing: -.035em; }
.motion-heading p { color: var(--muted); font-size: .92rem; }
.motion-lab { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); border: 1px solid var(--rule); background: var(--surface); }
.motion-copy { min-width: 0; padding: clamp(.85rem, 2.55vw, 1.75rem); }
.motion-copy .choice-row button { border-color: var(--rule); }
.motion-copy .choice-row button[aria-pressed="true"] { border-color: var(--accent); }
.motion-desc { margin-block: .72rem; }
.motion-desc strong { color: var(--accent); }
.motion-desc p { margin-top: .14rem; color: var(--muted); font-size: .93rem; }

.motion-diagram { position: relative; min-height: 222px; overflow: hidden; background-color: #101e30; background-image: linear-gradient(#a5d4ff20 1px, transparent 1px), linear-gradient(90deg, #a5d4ff20 1px, transparent 1px); background-size: 24px 24px; }
.motion-camera, .motion-subject, .diagram-camera-label, .diagram-subject-label { position: absolute; }
.camera-axis { position: absolute; left: 28%; right: 30%; top: 50%; border-top: 1px dashed #c2d3ffb0; }
.motion-camera { --travel-x: 0px; --travel-y: 0px; --turn: 0deg; left: 68%; top: 50%; width: 31px; height: 25px; border-radius: 4px; background: #f7f9ff; transform: translate(-50%,-50%); }
.motion-camera i { position: absolute; left: -9px; top: 5px; width: 10px; height: 15px; background: inherit; clip-path: polygon(0 0,100% 21%,100% 79%,0 100%); }
.motion-subject { --subject-y: 0px; left: 28%; top: 50%; width: 26px; height: 26px; transform: translate(-50%,-50%); border: 2px solid #eff3ff; border-radius: 50%; background: #9bb2ff65; }
.diagram-camera-label, .diagram-subject-label { top: 66%; transform: translateX(-50%); color: #eff3ff; font-size: .86rem; white-space: nowrap; }
.diagram-camera-label { left: 68%; }
.diagram-subject-label { left: 28%; }
[data-mode="push"] .motion-camera { --travel-x: -50px; }
[data-mode="pull"] .motion-camera { --travel-x: 52px; }
[data-mode="pan"] .motion-camera { --turn: 37deg; }
[data-mode="truck"] .motion-camera { --travel-y: -38px; }
[data-mode="follow"] .motion-camera { --travel-y: -34px; }
[data-mode="follow"] .motion-subject { --subject-y: -34px; }
[data-mode="lift"] .motion-camera { --travel-y: -55px; }
[data-mode="lift"] .camera-axis { left: 68%; top: 18%; height: 47%; border: 0; border-left: 1px dashed #c2d3ffb0; }
.is-moving .motion-camera { animation: camera-path 1.45s ease-in-out both; }
.is-moving .motion-subject { animation: subject-path 1.45s ease-in-out both; }
@keyframes camera-path { to { transform: translate(calc(-50% + var(--travel-x)),calc(-50% + var(--travel-y))) rotate(var(--turn)); } }
@keyframes subject-path { to { transform: translate(-50%,calc(-50% + var(--subject-y))); } }

.next-panel { border-block: 1px solid var(--rule); color: var(--ink); background: linear-gradient(110deg, #162437, #1c324d); }
.next-layout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: clamp(2rem, 4.4vw, 3.65rem); }
.next-layout h2 { font-size: clamp(1.65rem, 2.75vw, 2.65rem); line-height: 1.2; letter-spacing: -.035em; }
.next-layout p { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 75px; padding-block: .78rem; }
.footer-inner > .text-link { font-size: .87rem; }

@media (max-width: 1050px) {
  :root { --gutter: 35px; }
  .curriculum .wrap { grid-template-columns: minmax(94px,.51fr) minmax(0,4fr); }
  .chapter-links a { grid-template-columns: 1.25rem minmax(0,1fr); gap: .12rem .36rem; padding-inline: .6rem; }
}

@media (max-width: 830px) {
  .hero { min-height: clamp(32rem, 68svh, 41rem); padding-block: 3.5rem 6rem; }
  .hero-frame { width: 91%; object-position: 31% 45%; }
  .hero::before {
    background: linear-gradient(90deg, #0b1421 0%, #0b1421ee 12%, #0b1421a8 36%, #0b14212b 72%),
                linear-gradient(0deg, #0b111d 0%, #0b111d1a 24%, transparent 63%, #080f183c 100%);
  }
  h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); }
  .curriculum .wrap { grid-template-columns: minmax(0, 1fr); }
  .curriculum h2 { padding-block: .5rem; }
  .chapter-links { border-top: 1px solid var(--rule); }
  .chapter-links li:first-child { border-left: 0; }
  .chapter-links a { min-height: 69px; }
  .chapter-links li:first-child a { padding-left: 0; }
  .screening-layout { grid-template-columns: minmax(0, 1.5fr) minmax(205px, .8fr); }
  .asset-layout { grid-template-columns: minmax(0, 1fr); }
  .guide { grid-template-columns: minmax(106px, .27fr) minmax(0, 1fr); }
  .guide > .choice-row { padding-inline: .4rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  html { scroll-padding-top: 4.5rem; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 53px; }
  .site-nav { display: none; }
  .hero { min-height: clamp(34rem, 78svh, 42rem); align-items: end; padding-block: 11rem 4.85rem; }
  .hero-frame { width: 100%; object-position: 51% 40%; }
  .hero::before {
    background: linear-gradient(0deg, #0b111d 0%, #0b111df5 14%, #0b111dba 47%, #0b111d26 79%, #080f1826 100%),
                linear-gradient(90deg, #0b142141, transparent 50%);
  }
  h1 { font-size: clamp(2.85rem, 11vw, 4.8rem); margin-block: .58rem .76rem; }
  .opening-summary { max-width: 24em; }
  .opening-copy .byline { margin-top: .8rem; }
  .opening-links { margin-top: .9rem; }
  .particle-toggle { bottom: .85rem; }
  .chapter-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-links li:nth-child(3) { border-left: 0; }
  .chapter-links li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .chapter-links li:nth-child(odd) a { padding-left: 0; }
  .screening { margin-top: 2.35rem; }
  .screening-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "video" "storyboard"; gap: .9rem; }
  .film-header p { max-width: unset; margin-top: .42rem; }
  .film-header .film-duration { margin-top: .62rem; }
  .chapter { padding-block: 2.85rem; }
  .models-layout .chapter-heading, .models-content { grid-template-columns: minmax(0, 1fr); }
  .models-layout .chapter-heading .eyebrow { grid-column: auto; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide > .choice-row { display: flex; border-right: 0; border-bottom: 1px solid var(--rule); }
  .asset-context, .writing-layout, .motion-lab { grid-template-columns: minmax(0, 1fr); }
  .prompt-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .68rem; }
  .motion-diagram { min-height: 186px; }
}

@media (max-width: 400px) {
  :root { --gutter: 14px; }
  .chapter-links a { grid-template-columns: 1.15rem minmax(0,1fr); gap: .05rem .28rem; min-height: 62px; }
  .chapter-links strong { font-size: .9rem; }
  .chapter-links small { font-size: .76rem; }
  .model-list dl > div, .guide-caption, .trial-images { grid-template-columns: minmax(0, 1fr); }
  .guide > .choice-row button { padding-inline: .47rem; font-size: .84rem; }
  .character-image { min-height: 108px; padding: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-links a { transition: none; }
  .is-moving .motion-camera, .is-moving .motion-subject { animation-duration: .01ms; }
}
