:root { --chapter-bar: 58px; --reading-ground: #e6e6e6; --reading-accent: #365e34; }
.program-intro { padding: 76px var(--gutter) 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; }
.program-intro .eyebrow { color: var(--green); font-size: 13px; margin-bottom: 18px; }
.program-intro h2 { font-size: 40px; line-height: 1.2; }
.program-copy { max-width: 570px; font-size: 15px; color: #c7c9c1; line-height: 1.85; align-self: center; }
.chapter-nav { view-transition-name: none; display: flex; justify-content: space-between; align-items: stretch; gap: 20px; padding: 0 var(--gutter); margin: 0; border-block: 1px solid #32372e; background: var(--ink); color: var(--paper); z-index: 5; }
.chapter-nav a { display: flex; align-items: center; gap: 8px; min-height: var(--chapter-bar); font-size: 13px; text-decoration: none; border-bottom: 2px solid transparent; }
.chapter-nav span { color: var(--green); font-size: 13px; }
.chapter-nav a:hover, .chapter-nav a[aria-current="step"] { color: var(--green); border-bottom-color: var(--green); }
.chapter-nav .all-papers { color: var(--green); }
.research-story { position: relative; isolation: isolate; background: var(--reading-ground); color: #111511; }
.research-stage { display: none; }
.chapter { position: relative; scroll-margin-top: 0; border-bottom: 1px solid #c5c8bc; }
.chapter-image { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.image-caption { padding: 10px var(--gutter) 0; font-size: 13px; color: #42483e; }
.chapter-copy { max-width: 800px; margin: 0 auto; padding: 36px var(--gutter) 56px; }
.chapter .eyebrow { color: #454d42; font-size: 13px; margin: 0 0 18px; display: flex; gap: 16px; }
.chapter .eyebrow > span { color: var(--reading-accent); }
.chapter h2 { font-size: 44px; line-height: 1.14; max-width: 650px; margin-bottom: 24px; }
.chapter-body { font-size: 15px; line-height: 1.8; max-width: 620px; }
.chapter-papers { margin-top: 28px; border-top: 1px solid #a8b0a2; }
.chapter-papers a { display: block; padding: 14px 28px 14px 0; border-bottom: 1px solid #afb6a8; text-decoration: none; position: relative; }
.chapter-papers a::after { content: ""; position: absolute; top: 22px; right: 2px; width: 18px; height: 18px; background: url("assets/icons/arrow-up-right.svg") center / contain no-repeat; transition: transform 180ms ease; }
.paper-name { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 20px; line-height: 1.3; }
.paper-meta { display: block; color: #454d42; font-size: 13px; line-height: 1.65; margin-top: 6px; }
.chapter-papers a:hover .paper-name { text-decoration: underline; text-underline-offset: 4px; }
.chapter-papers a:hover::after { transform: translate(2px, -2px); }
.chapter-bridge { font-size: 15px; line-height: 1.8; color: #374030; margin-top: 26px; max-width: 600px; }
.chapter-note { color: #374030; font-size: 13px; line-height: 1.8; margin-top: 22px; }
.chapter-copy > .text-link { margin-top: 24px; }
.chapter-record { margin-top: 18px; max-width: 620px; padding-left: 12px; border-left: 2px solid var(--reading-accent); font-size: 13px; line-height: 1.7; color: #111511; }
.chapter-record span { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--reading-accent); }
.illustration-note { max-width: 800px; margin: 0 auto; padding: 8px var(--gutter) 0; font-size: 12px; color: #454d42; }
.motion-story .illustration-note { display: none; }
.research-story + .publications { border-top: 0; }

@media (min-width: 1101px) {
  html { scroll-padding-top: calc(var(--header) + var(--chapter-bar)); }
  .chapter-nav { position: sticky; top: var(--header); height: var(--chapter-bar); }
  .chapter-nav a { min-height: 0; }
}

/* Each copy panel travels with its chapter over the continuous reading ground. */
@media (min-width: 1101px) and (min-height: 720px) {
  .motion-story .research-story { display: grid; grid-template-columns: 1fr; overflow: clip; }
  .motion-story .chapter-nav { grid-area: 1 / 1; }
  .motion-story .research-stage { display: block; grid-area: 2 / 1; align-self: start; position: sticky; top: calc(var(--header) + var(--chapter-bar)); height: calc(100svh - var(--header) - var(--chapter-bar)); overflow: clip; }
  .stage-images { position: absolute; inset: 0; }
  .stage-images::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, transparent 40%, var(--reading-ground) 50%); pointer-events: none; }
  .scene-image { width: 100%; height: 100%; object-fit: cover; object-position: 43% center; position: absolute; inset: 0; opacity: 0; }
  .scene-image:first-child { opacity: 1; }
  .scene-image[data-scene="technology"] { object-position: 70% center; }
  .stage-caption { position: absolute; left: 4.5%; bottom: 18px; z-index: 4; padding: 8px 12px; color: #30392b; background: var(--reading-ground); display: inline-flex; align-items: center; gap: 8px; width: auto; font-size: 13px; }
  .motion-story .chapters { grid-area: 2 / 1; z-index: 1; position: relative; }
  .motion-story .chapter { min-height: calc(100svh - var(--header) - var(--chapter-bar)); display: flex; align-items: center; justify-content: flex-end; padding: 54px 6.5% 76px; border: 0; }
  .motion-story .chapter-image, .motion-story .image-caption { display: none; }
  .motion-story .chapter-copy { width: 48%; max-width: 720px; margin: 0; padding: 40px 44px 36px; background: var(--reading-ground); border: 1px solid transparent; border-radius: 0; box-shadow: none; }
}
@media (min-width: 1101px) and (max-width: 1280px) and (min-height: 720px) {
  .motion-story .chapter { padding: 42px 5.5% 64px; }
  .motion-story .chapter-copy { width: 49%; padding: 30px 34px 26px; }
  .chapter h2 { font-size: 38px; }
  .chapter-body, .chapter-bridge { font-size: 14px; }
  .paper-name { font-size: 18px; }
  .chapter-nav { gap: 14px; }
}
@media (min-width: 1700px) {
  .motion-story .chapter { padding-right: 9%; }
  .chapter h2 { font-size: 52px; }
  .chapter-body, .chapter-bridge { font-size: 17px; }
  .paper-name { font-size: 23px; }
}
@media (max-width: 1100px) {
  .program-intro { gap: 24px; padding-block: 54px 40px; }
  .program-intro h2 { font-size: 34px; }
  .chapter-nav { flex-wrap: wrap; justify-content: flex-start; gap: 0 28px; padding-block: 12px; }
  .chapter-nav a { min-height: 44px; }
  .chapter-copy { max-width: 800px; }
}
@media (max-width: 700px) {
  .program-intro { padding: 40px 24px; grid-template-columns: 1fr; gap: 24px; }
  .program-intro h2 { font-size: 32px; }
  .program-copy { font-size: 14px; }
  .chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .chapter-nav a { font-size: 13px; gap: 10px; }
  .chapter-nav .all-papers { grid-column: 1 / -1; border-top: 1px solid #32372e; margin-top: 8px; }
  .chapter-image { height: 320px; aspect-ratio: auto; object-fit: cover; object-position: 18% center; }
  .chapter-copy { padding: 26px 24px 42px; }
  .chapter h2 { font-size: 34px; margin-bottom: 20px; }
  .chapter-body, .chapter-bridge { font-size: 14px; line-height: 1.8; }
  .chapter-papers { margin-top: 24px; }
  .paper-name { font-size: 20px; }
  .chapter-bridge { margin-top: 24px; }
}
@media (max-width: 1100px) and (min-height: 600px) {
  .mobile-story { --mobile-stage: clamp(200px, 30svh, 280px); }
  .mobile-story .research-story { display: grid; grid-template-columns: minmax(0, 1fr); overflow: clip; }
  .mobile-story .chapter-nav { grid-area: 1 / 1; }
  .mobile-story .research-stage { display: block; grid-area: 2 / 1; align-self: start; position: sticky; top: var(--header); height: var(--mobile-stage); overflow: clip; z-index: 10; isolation: isolate; background: var(--reading-ground); border-bottom: 1px solid #bfc4b8; }
  .mobile-story .stage-images { position: absolute; inset: 0 0 28px; }
  .mobile-story .scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% center; opacity: 0; }
  .mobile-story .scene-image:first-child { opacity: 1; }
  .mobile-story .scene-image[data-scene="technology"] { object-position: 70% center; }
  .mobile-story .stage-caption { position: absolute; inset: auto 0 0; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 24px; background: var(--reading-ground); color: #30392b; font-size: 12px; }
  .mobile-story .chapters { grid-area: 2 / 1; padding-top: var(--mobile-stage); position: relative; z-index: 1; }
  .mobile-story .chapter { scroll-margin-top: var(--mobile-stage); background: var(--reading-ground); }
  .mobile-story .chapter-copy { padding: 30px 24px 60px; }
  .mobile-story .chapters a { scroll-margin-top: var(--mobile-stage); scroll-margin-bottom: 24px; }
  .mobile-story .chapter-image, .mobile-story .illustration-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-image { transition: none; transform: none !important; }
}
@media print {
  .program-intro, .research-story { color: black; background: white; }
  .program-copy, .program-intro .eyebrow { color: black; }
  .chapter-nav, .research-stage, .chapter-image, .image-caption { display: none !important; }
  .chapter-copy { max-width: none; padding: 24px; break-inside: avoid; }
}
