/* The original isometric drawings sit on the same paper as the copy. */
.illustrated { --map-paper:#f5f2f7; --map-type:#302337; --map-link:#67328e; }
.scene-library { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
.illustrated .topbar { background:var(--map-paper); color:var(--map-type); border-color:#ded8e2; }
.illustrated .nav a,.illustrated .nav-action { color:#4d4056; }
.illustrated .nav a:hover,.illustrated .nav a[aria-current] { color:var(--map-link); }
.illustrated .nav-action,.illustrated .menu-toggle { border-color:#b4a7be; }
.illustrated .nav-action:hover,.illustrated .menu-toggle:hover { background:#e9dff1; }
.map-hero,.article-front {
  color:var(--map-type); background:radial-gradient(ellipse at 89% 75%,#e8e4f1 0,transparent 48%),var(--map-paper);
}
.map-spread { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.04fr); align-items:center; gap:clamp(12px,2vw,38px); padding-block:clamp(54px,5.8vw,92px); }
.map-hero .eyebrow,.article-front .eyebrow { color:#63506d; }
.map-hero .eyebrow i,.article-front .eyebrow i { background:#6d4488; box-shadow:none; }
.map-hero h1 { font-size:clamp(46px,5.16vw,80px); line-height:1.02; font-weight:500; letter-spacing:-.055em; margin:22px 0; }
.map-hero h1 em { display:block; color:var(--map-link); }
.map-lead,.chapter-spread p,.story-intro p { color:#554c5d; text-wrap:pretty; }
.map-lead { font-size:clamp(17px,1.36vw,21px); line-height:1.53; max-width:49ch; }
.map-hero .primary { background:#542d6f; color:#fff; }
.map-hero .primary:hover { background:#69348c; }
.map-hero .text-link,.map-hero .text-link svg { color:var(--map-link); }
.map-hero .platform-bar { background:#272130; }
.map-figure,.story-art,.chapter-art { min-width:0; margin:0; align-self:center; }
.visual-scene { position:relative; isolation:isolate; }
.world { width:100%; height:auto; overflow:visible; --route:#9772ad; --pulse:#8349a7; }
.world-logistics { --route:#73968d; --pulse:#226e59; }
.world-consultant { --route:#a37eab; --pulse:#8a458d; }
.district-lines,.route-bed,.route-line,.route-pulse { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.district-lines { stroke:var(--route); stroke-width:1.2; opacity:.36; }
.route-bed { stroke:#f9f6fa; stroke-width:6; }
.route-line { stroke:var(--route); stroke-width:1.55; }
.route-pulse { stroke:var(--pulse); stroke-width:3.4; stroke-dasharray:5 95; stroke-dashoffset:0; }
.signal-ring { fill:none; stroke:var(--route); stroke-width:1.2; }
.signal-dot { fill:var(--pulse); }
.map-figure figcaption,.story-art figcaption,.chapter-art figcaption {
  width:fit-content; max-width:100%; display:flex; align-items:center; gap:9px; color:#5d5068;
  margin:0 auto; font:500 10px/1.45 Consolas,monospace; text-transform:uppercase; letter-spacing:.095em;
}
.map-key { width:26px; height:1px; background:#77958c; display:inline-block; flex:none; position:relative; }
.map-key::after { content:""; position:absolute; right:2px; bottom:-2px; width:5px; height:5px; background:#587c70; transform:rotate(45deg); }
.scene-control.motion { width:35px; height:35px; color:#513c60; border-color:#baafc2; margin-left:5px; }
.scene-control.motion:hover { background:#e8dff0; }
.scene-section { background:#faf8fb; }
.scene-nav { margin:4px 0 0; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; }
.scene-nav .scene-tab {
  position:relative; border:0; border-bottom:1px solid #d6ccda; border-radius:0;
  padding:14px 8px; justify-content:center; gap:8px; background:transparent; color:#5f5269;
}
.scene-nav .scene-tab.active { color:#54296d; background:transparent; }
.scene-nav .scene-tab::after { content:""; height:2px; background:#693b85; position:absolute; inset:auto 0 -1px; transform:scaleX(0); transition:transform .28s ease; }
.scene-nav .scene-tab.active::after { transform:scaleX(1); }
.scene-nav .scene-tab.active small,.scene-nav .scene-tab small { color:#755987; }
.scene-nav .scene-tab:hover:not(.active) { background:#f0eaf4; }
.scene-section .story {
  display:grid; grid-template-columns:minmax(0,.35fr) minmax(0,.65fr); gap:0 clamp(26px,4.4vw,70px);
  grid-template-areas:"art intro" "art details"; align-content:center; align-items:start;
  background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible;
  margin:0; padding:clamp(32px,4.5vw,74px) 0 0; scroll-margin-top:70px;
}
.scene-section .story[hidden] { display:none; }
.story-intro { grid-area:intro; }
.story-intro h3 { font-size:clamp(30px,3.2vw,50px); line-height:1.08; margin:11px 0 14px; max-width:27ch; text-wrap:balance; }
.story-intro p { font-size:clamp(16px,1.16vw,19px); line-height:1.54; max-width:63ch; }
.story-art { grid-area:art; width:min(100%,28rem); justify-self:center; }
.story-details { grid-area:details; }
.story-details .pipeline { margin:20px 0 15px; }
.story-details .pipeline div { grid-template-columns:74px 1fr; border-color:#ded8e2; padding-block:10px; }
.article-front { padding:22px 0 clamp(42px,5vw,76px); }
.article-front .crumb { color:#65576f; }
.chapter-spread { padding-top:clamp(34px,4vw,60px); display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.86fr); grid-template-areas:"title art" "summary art"; gap:0 clamp(16px,3.5vw,58px); align-items:center; }
.chapter-title { grid-area:title; align-self:end; }
.chapter-summary { grid-area:summary; align-self:start; }
.chapter-spread h1 { font-size:clamp(38px,4.45vw,69px); line-height:1.045; text-wrap:balance; margin:14px 0 18px; }
.chapter-spread p { font-size:clamp(17px,1.4vw,21px); line-height:1.52; max-width:64ch; }
.chapter-art { grid-area:art; width:100%; }
.chapter-actions { display:flex; align-items:center; gap:12px 22px; flex-wrap:wrap; margin-top:23px; }
.chapter-actions .primary { background:#542d6f; color:white; }
.chapter-actions .primary:hover { background:#69348c; }
.reading .return-program { display:block; width:fit-content; color:var(--map-link); font-size:14px; margin-bottom:15px; }
.reading .exercise-table { width:100%; border-collapse:collapse; font-size:clamp(14px,1.13vw,17px); margin:24px 0; line-height:1.4; font-variant-numeric:tabular-nums; }
.exercise-table caption { text-align:left; color:#5c4868; font-weight:500; padding-bottom:10px; }
.exercise-table thead { background:#ede7f2; }
.exercise-table th,.exercise-table td { text-align:right; border-bottom:1px solid #dcd5e0; padding:10px clamp(5px,1vw,15px); }
.exercise-table th:first-child { text-align:left; }
.exercise-table tbody th { font-weight:400; }
.reading section:has(> .syllabus) { container: course / inline-size; }
.syllabus { table-layout:fixed; }
.syllabus th,.syllabus td { text-align:left; vertical-align:top; }
.syllabus th:first-child { width:26%; }
.syllabus tbody th { font-weight:500; color:#573b68; }
@container course (max-width:42rem) {
  .reading .syllabus,.reading .syllabus tbody,.reading .syllabus td,.reading .syllabus th { display:block; width:100%; }
  .reading .syllabus caption { display:block; }
  .syllabus thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .syllabus tbody tr { display:grid; border-top:1px solid #d4c9da; padding-block:13px; }
  .syllabus tbody td,.syllabus tbody th { padding:4px 0; border:0; }
  .syllabus tbody th { font-size:18px; }
  .syllabus td::before { content:attr(data-heading); display:block; font-size:13px; color:#694e79; }
}
.reading .archive-chapter h2 { font-size:clamp(23px,2.2vw,34px); }
.archive-chapter summary { cursor:pointer; color:#653588; width:fit-content; min-height:36px; padding-block:5px; }
.archive-chapter details[open] summary { margin-bottom:8px; }

@media(prefers-reduced-motion:no-preference) {
  .motion-ready .route-pulse { animation:map-traffic 5.2s linear infinite; animation-play-state:var(--artwork-play,paused); }
  .motion-ready .signal-ring { transform-box:fill-box; transform-origin:center; animation:map-beacon 3.4s ease-out infinite; animation-play-state:var(--artwork-play,paused); }
  .motion-ready .signal-1 { animation-delay:-1.75s; }
  .motion-ready .world-logistics .route-pulse { animation-duration:6.4s; }
  .motion-ready .world-consultant .route-pulse { animation-direction:reverse; }
  .motion-ready[data-motion="running"] .story.active .story-art .world { animation:scene-arrive .36s cubic-bezier(.2,.65,.2,1) backwards; }
  .motion-ready[data-motion="running"] .in-view .scene-subject { transform:translate(var(--depth-x,0px),var(--depth-y,0px)); transition:transform .45s ease-out; }
}
@keyframes map-traffic { to { stroke-dashoffset:-100; } }
@keyframes map-beacon { 0%,14% { transform:scale(.72); opacity:.95; } 80%,100% { transform:scale(1.85); opacity:.08; } }
@keyframes scene-arrive { from { opacity:.68; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(max-width:960px) {
  .map-spread { grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); }
  .scene-nav .scene-tab { padding-inline:3px; gap:5px; }
}
@media(max-width:760px) {
  .illustrated .nav.open { background:var(--map-paper); }
  .map-spread { grid-template-columns:1fr; }
  .map-spread { padding-block:38px 25px; gap:16px; }
  .map-hero h1 { font-size:clamp(39px,7.8vw,57px); margin:16px 0; }
  .map-hero .hero-actions { margin-top:22px; }
  .map-figure,.chapter-art { width:min(100%,490px); justify-self:center; }
  .scene-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .scene-nav .scene-tab { font-size:14px; padding:11px 2px; }
  .scene-section .story { padding-top:27px; scroll-margin-top:15px; }
  .article-front { padding-bottom:24px; }
  .chapter-spread { padding-top:24px; }
  .chapter-spread h1 { font-size:clamp(36px,7.3vw,55px); }
  .chapter-art { max-width:370px; }
}
/* Illustration and lead share a row on tablets. The working details get the full line. */
@media (min-width:600px) and (max-width:1000px) {
  .scene-section .story { grid-template-areas:"art intro" "details details"; column-gap:clamp(20px,3.4vw,34px); }
  .story-details .pipeline { margin-top:1.5rem; }
  .chapter-spread { grid-template-columns:minmax(0,1fr) minmax(0,.46fr); grid-template-areas:"title art" "summary summary"; gap:1rem clamp(16px,3vw,30px); }
  .chapter-title { align-self:center; }
  .chapter-title h1 { margin-bottom:0; }
  .chapter-summary p { max-width:62ch; }
}
@media (max-width:599px) {
  .scene-section .story { grid-template-columns:minmax(0,1fr); grid-template-areas:"intro" "art" "details"; gap:1rem; }
  .story-details .pipeline { margin-top:0; }
  .chapter-spread { grid-template-columns:minmax(0,1fr); grid-template-areas:"title" "summary" "art"; }
  .chapter-art { margin-top:1rem; }
  .story-art,.chapter-art {
    display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); align-items:center;
    width:min(100%,25rem); max-width:none; justify-self:start; gap:.75rem;
  }
  .story-art .visual-scene,.chapter-art .visual-scene { min-width:0; }
  .story-art figcaption,.chapter-art figcaption {
    flex-direction:column; align-items:flex-start; width:auto; margin:0; text-align:left;
  }
  .story-art .map-key,.chapter-art .map-key { display:none; }
  .story-art .scene-control,.chapter-art .scene-control { margin-left:0; }
}
@media(max-width:379px) {
  .map-hero h1 { font-size:clamp(33px,10.4vw,39px); }
  .scene-nav .scene-tab { font-size:13px; }
  .scene-nav .scene-tab small { display:none; }
  .story-details .pipeline div { grid-template-columns:64px 1fr; }
}
