/* SXLA v10: the JEP story (jep-story.html). Loaded on that page only, after style.css.
   Every scene works without JavaScript and with reduced motion: nothing is hidden, nothing moves. */
.story-page { --sd: #07073F; --sd2: #0E0E55; --warm: #FBF5EC; --ph-d: #070759; --ph-p: #3B4FC4; --ph-t: #BF0000; --ph-f: #C95131; }
.story-page main { background: var(--white); }

/* ------------------------------------------------------------------ opening shot */
.story-hero { min-height: 100vh; min-height: 100svh; clip-path: none; background: var(--sd); align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 calc(5vh + 64px); }
.story-hero .aerial-wrap { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--sd); }
.story-hero .aerial { width: 100%; height: 100%; display: block; max-width: none; transform-origin: 72% 78%; }
.story-hero .px { will-change: transform; }
.story-hero::after { background: linear-gradient(0deg, rgba(7, 7, 63, .94) 0%, rgba(7, 7, 63, .7) 30%, rgba(7, 7, 63, .12) 62%, rgba(7, 7, 63, 0) 80%), linear-gradient(90deg, rgba(7, 7, 63, .55) 0%, rgba(7, 7, 63, 0) 60%); }
.story-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 4.5vh 0 0 #000, inset 0 -4.5vh 0 0 #000; }
.story-hero .hero-content { max-width: 980px; }
.story-hero h1 { font-size: clamp(2.05rem, 4.6vw, 4.1rem); text-wrap: balance; }
.story-hero .hero-note { margin: 14px 0 0; font-size: .92rem; color: #CFCFEA; }
.story-hero .buttons { margin-top: 24px; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(4.5vh + 14px); width: 2px; height: 44px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .8)); transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .story-hero .aerial { animation: kb 46s ease-in-out infinite alternate; }
  .scroll-cue { animation: cue 2.4s ease-in-out infinite; }
}
@keyframes kb { to { transform: scale(1.07); } }
@keyframes cue { 0%, 100% { opacity: .2; transform: translate(-50%, -8px); } 50% { opacity: 1; transform: translate(-50%, 4px); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .story-hero::before { animation: letterbox linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes letterbox { to { box-shadow: inset 0 0 0 0 #000, inset 0 0 0 0 #000; } }
@media (max-width: 599px) { .story-hero { padding-bottom: calc(5vh + 40px); } .scroll-cue { display: none; } }

/* ------------------------------------------------------------------ chapter list */
.chapters { background: #05052E; color: #E3E3F4; padding: 34px 0 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.chapters-h { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ro-soft); margin-bottom: 16px; }
.chap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.chap-list a { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); transition: background-color .2s ease, border-color .2s ease; }
.chap-list a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.chap-list .cn { font-weight: 700; color: var(--ro-soft); font-variant-numeric: tabular-nums; }
.chap-list .ct { font-size: .95rem; line-height: 1.3; }

/* ------------------------------------------------------------------ scene progress (shown by story.js) */
.sp { position: fixed; left: 50%; bottom: 14px; z-index: 90; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; width: max-content; max-width: calc(100vw - 24px); }
.sp.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .35s ease, transform .35s ease; }
.sp-in { position: relative; background: rgba(7, 7, 63, .94); color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 30, .4); border: 1px solid rgba(255, 255, 255, .16); overflow: visible; }
.sp-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font: inherit; font-size: .9rem; padding: 10px 16px 12px 18px; cursor: pointer; border-radius: 999px; max-width: 100%; }
.sp-n { font-weight: 700; color: var(--ro-soft); white-space: nowrap; }
.sp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.sp-btn .chev { width: 16px; height: 16px; transition: transform .2s ease; }
.sp-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sp-bar { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--ro-soft); transform-origin: left; transform: scaleX(0); }
.sp-menu { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: min(320px, calc(100vw - 24px)); background: #0B0B4A; border-radius: 16px; padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 30, .5); border: 1px solid rgba(255, 255, 255, .14); }
.sp-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: #fff; text-decoration: none; font-size: .95rem; }
.sp-menu a:hover, .sp-menu a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.sp-menu b { display: inline-block; width: 22px; color: var(--ro-soft); }

/* ------------------------------------------------------------------ scenes */
.scene { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.scene.light { background: var(--white); }
.scene.warm { background: var(--warm); }
.scene.tint { background: var(--tint); }
.scene.dark { background: radial-gradient(ellipse at 85% 0%, #1B1B70 0%, var(--sd) 58%); color: #E3E3F4; }
.scene.navy-scene { background: linear-gradient(180deg, #0B0B4A 0%, var(--sd) 100%); color: #E3E3F4; }
.scene.dark h2, .scene.dark h3, .scene.navy-scene h2, .scene.navy-scene h3 { color: #fff; }
.scene.dark a:not(.btn), .scene.navy-scene a:not(.btn) { color: #fff; }
.scene.first-scene { padding-top: clamp(56px, 7vw, 96px); }
.scene .split + .split, .scene .split + .grid { margin-top: 40px; }

.slate { max-width: 900px; margin-bottom: 26px; }
.slate-n { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ro-dark); margin: 0 0 14px; }
.slate-n::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.slate-n span { color: var(--red); }
.dark .slate-n, .navy-scene .slate-n, .closing .slate-n { color: var(--ro-soft); }
.dark .slate-n span, .navy-scene .slate-n span, .closing .slate-n span { color: #fff; }
.slate h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin-bottom: .3em; text-wrap: balance; }
.logline { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--muted); margin: 0; max-width: 820px; }
.dark .logline, .navy-scene .logline { color: #CFCFEA; }

/* the seven stages strip */
.stages { display: flex; gap: 4px; margin: 26px 0 40px; }
.stages > li { --pc: var(--ph-d); flex: 1 1 0; min-width: 0; border-top: 5px solid var(--pc); padding: 8px 4px 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .45; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages > li.ph-p { --pc: var(--ph-p); } .stages > li.ph-t { --pc: var(--ph-t); } .stages > li.ph-f { --pc: var(--ph-f); }
.dark .stages > li.ph-d, .navy-scene .stages > li.ph-d { --pc: #9097F2; }
.dark .stages > li, .navy-scene .stages > li { color: #CFCFEA; }
.stages > li.done { opacity: .85; }
.stages > li.now { opacity: 1; color: var(--white); background: var(--pc); border-radius: 0 0 10px 10px; padding-bottom: 6px; }
.stages.looped { margin-bottom: 8px; }
.stages-loop { display: block; position: relative; height: 26px; margin: 0 calc(100% / 14) 40px calc(100% / 7 * 1.5); border: 3px solid var(--ro); border-top: 0; border-radius: 0 0 18px 18px; }
.stages-loop::before { content: ""; position: absolute; left: -9px; top: -2px; border: 7.5px solid transparent; border-bottom: 11px solid var(--ro); transform: translateY(-100%); }
.dark .stages-loop, .navy-scene .stages-loop { border-color: var(--ro-soft); }
.dark .stages-loop::before, .navy-scene .stages-loop::before { border-bottom-color: var(--ro-soft); }
@media (max-width: 699px) {
  .stages > li:not(.now) { font-size: 0; padding: 0; height: 22px; }
  .stages > li.now { flex: 0 0 auto; padding: 7px 10px 6px; font-size: .7rem; }
  .stages.looped > li { font-size: 0; padding: 0; height: 18px; }
}
.stage-key { font-size: .92rem; color: #CFCFEA; margin: -22px 0 36px; }
.stage-key b { font-weight: 700; padding: 1px 7px; border-radius: 6px; color: #fff; font-size: .82rem; letter-spacing: .04em; }
.k-d { background: #4B52C8; } .k-p { background: var(--ph-p); } .k-t { background: var(--ph-t); } .k-f { background: var(--ph-f); }

/* kinds of image: illustration or real setting */
.kind { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; font-style: normal; }
.kind.ill { background: #FFE7DE; color: #8A3216; }
.kind.real { background: #DDF2E3; color: #1D5E30; }
.scene figcaption, .closing figcaption { font-size: .92rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.dark figcaption, .navy-scene figcaption { color: #BDBDE0; }
.frame-media img, .frame-media svg { width: 100%; height: auto; border-radius: 16px; display: block; }
.frame-fig { margin: 0; }
.dark .frame-media img { box-shadow: 0 24px 60px rgba(0, 0, 20, .5); }

/* establishing shot and close-up */
.shot { margin: 8px 0 0; }
.shot-media { position: relative; overflow: hidden; border-radius: 16px; background: #000; aspect-ratio: 4 / 3; box-shadow: 0 30px 70px rgba(0, 0, 20, .55); }
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .shot-media { aspect-ratio: 2.35 / 1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shot-media img { animation: push linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes push { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1) translateY(2%); } }
.closeup { margin: 0; }
.closeup .frame-media { border-radius: 16px; overflow: hidden; }
.js .iris .frame-media { clip-path: circle(16% at 33% 64%); transition: clip-path 1.8s cubic-bezier(.6, .05, .25, 1); }
.js .iris.in .frame-media { clip-path: circle(120% at 33% 64%); }
.cut { display: flex; align-items: center; gap: 16px; margin: 56px 0 22px; font-size: .76rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ro-dark); }
.dark .cut { color: var(--ro-soft); }
.cut::before, .cut::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }

/* narration and dialogue */
.beat { max-width: 860px; margin-top: 44px; }
.narr { font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.42; color: var(--navy-deep); margin-bottom: .8em; text-wrap: pretty; }
.narr.big { font-size: clamp(1.6rem, 3.3vw, 2.6rem); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.dark .narr, .navy-scene .narr { color: #fff; }
.line { display: grid; gap: 4px; margin: 0 0 14px; }
.line .who { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.line.t .who { color: var(--ro-dark); }
.line.f .who { color: #2B7A3A; }
.line.n .who { color: var(--muted); }
.line .said { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.45; color: var(--navy-deep); }
.dark .line .said { color: #fff; }
.dark .line .who { color: #9FC2FF; } .dark .line.t .who { color: var(--ro-soft); } .dark .line.f .who { color: #9AD6A6; }
.speech { background: var(--white); border-radius: 18px; padding: 22px 24px 10px; box-shadow: var(--shadow); border-left: 5px solid var(--blue); }
.lead-in { margin: 26px 0 12px; font-weight: 700; color: var(--muted); }
.qs { display: grid; gap: 12px; }
.qs li { display: flex; align-items: center; gap: 14px; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; color: var(--navy-deep); line-height: 1.25; }
.s2-grid { align-items: center; }

/* questions for each audience */
.ask { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 2px 8px rgba(7, 7, 89, .05); }
.ask summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 18px; border-radius: 14px; }
.ask summary::-webkit-details-marker { display: none; }
.ask .aud { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ro-dark); }
.ask .q { font-weight: 700; color: var(--navy-deep); line-height: 1.35; }
.ask .chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--ro); transition: transform .25s ease; }
.ask[open] .chev { transform: rotate(180deg); }
.ask-a { padding: 0 18px 16px; }
.ask-a p { margin: 0; }
.dark .ask, .navy-scene .ask { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.dark .ask .q, .navy-scene .ask .q { color: #fff; }
.dark .ask .aud, .navy-scene .ask .aud { color: var(--ro-soft); }
.dark .ask-a, .navy-scene .ask-a { color: #E3E3F4; }
.ask:target { outline: 3px solid var(--ro); outline-offset: 3px; }

/* scroll-linked scenes. Default: each frame followed by its text, everything visible. */
.scrolly { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.scrolly-media, .scrolly-steps { display: contents; }
.scrolly .frame { margin: 0 0 8px; }
.scrolly.zoomseq .frame { max-width: 560px; }
.zcard { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.zcard h3 { margin-bottom: .3em; } .zcard p { margin: 0; color: #E3E3F4; } .zcard .chip + * { padding-top: 6px; }
.dialogue .sstep .line { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); margin: 0; }
.dialogue .sstep .line.t { border-left: 5px solid var(--ro); }
.dialogue .sstep .line:not(.t):not(.n) { border-left: 5px solid var(--blue); }
.dialogue .sstep .line.n { background: var(--navy-deep); border-color: var(--navy-deep); }
.dialogue .sstep .line.n .said, .dialogue .sstep .line.n .who { color: #fff; }
/* enhanced by story.js when motion is allowed */
.scrolly.is-live { display: grid; grid-template-columns: 1fr; gap: 0; }
.scrolly.is-live .scrolly-media { display: block; position: sticky; top: 66px; height: 46vh; height: 46svh; z-index: 2; background: inherit; }
.scene.dark .scrolly.is-live .scrolly-media { background: var(--sd); }
.scene.light .scrolly.is-live .scrolly-media { background: var(--white); }
.scrolly.is-live .scrolly-steps { display: block; position: relative; z-index: 1; padding: 6vh 0 24vh; }
.scrolly.is-live .frame { position: absolute; left: 0; right: 0; top: 50%; margin: 0 auto; transform: translateY(-50%) scale(var(--s, 1)); opacity: 0; transition: opacity .7s ease, transform 1.2s cubic-bezier(.6, .05, .25, 1); transform-origin: 50% 48%; max-height: 100%; }
.scrolly.is-live .frame .frame-media img { max-height: calc(46svh - 40px); width: auto; max-width: 100%; margin: 0 auto; }
.scrolly.is-live .frame figcaption { text-align: center; margin-top: 6px; }
.scrolly.is-live .frame.is-active { opacity: 1; --s: 1; }
.scrolly.zoomseq.is-live .frame.is-past { --s: .3; }
.scrolly.zoomseq.is-live .frame[data-i="1"].is-past { --s: 2.6; }
.scrolly.zoomseq.is-live .frame.is-future { --s: 1.9; }
.scrolly.zoomseq.is-live .frame[data-i="5"].is-future { --s: .3; }
/* v16: value at three levels, the rings widen as Baraka zooms out */
.scrolly.zoomseq.is-live .frame.vf.is-past { --s: 1.16; }
.scrolly.zoomseq.is-live .frame.vf.is-future { --s: .84; }
.vlev { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ro-soft); margin: 0 0 4px; }
.zcard .within { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.scrolly.is-live .sstep { min-height: 62vh; display: flex; align-items: center; transition: opacity .5s ease; }
.scrolly.dialogue.is-live .sstep { min-height: 44vh; }
.scrolly.is-live .sstep:not(.is-active) { opacity: .28; }
.scrolly.is-live .sstep > * { width: 100%; }
@media (min-width: 900px) {
  .scrolly.is-live { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .scrolly.is-live .scrolly-media { top: 90px; height: calc(100vh - 120px); height: calc(100svh - 120px); background: transparent; }
  .scene .scrolly.is-live .scrolly-media { background: transparent; }
  .scrolly.is-live .frame .frame-media img { max-height: calc(100svh - 190px); }
  .scrolly.is-live .scrolly-steps { padding: 30vh 0 30vh; }
  .scrolly.is-live .sstep { min-height: 70vh; }
  .scrolly.dialogue.is-live .sstep { min-height: 46vh; }
}

/* thinking moves mapped to the seven stages */
.mapping { display: grid; gap: 8px; }
.mapping li { --pc: #9097F2; display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.2fr); align-items: center; gap: 8px; }
.mapping li.ph-p { --pc: #7F95FF; } .mapping li.ph-t { --pc: #FF7A7A; } .mapping li.ph-f { --pc: var(--ro-soft); }
.mapping .mv { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 8px 14px; font-weight: 700; color: #fff; text-align: center; }
.mapping .arr { height: 2px; background: var(--pc); position: relative; }
.mapping .arr::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--pc); }
.mapping .st { border-left: 4px solid var(--pc); padding: 4px 0 4px 12px; font-weight: 700; color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.dark-callout { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); margin-top: 40px; }
.dark-callout p { color: #E3E3F4; }

/* scene 5: the decision journey */
.principle-line { text-align: center; margin: 0 auto 44px; max-width: 920px; }
.principle-line span { display: inline; font-size: clamp(1.45rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.25; color: var(--navy-deep); background: linear-gradient(transparent 62%, rgba(201, 81, 49, .22) 62%); }
.dj-intro { font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.dj-nav { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
@media (min-width: 600px) { .dj-nav { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dj-nav { grid-template-columns: repeat(3, 1fr); } }
.dj-tab { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; color: var(--navy-deep); font-weight: 700; line-height: 1.25; font-size: .98rem; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.dj-tab:hover { border-color: var(--navy-deep); color: var(--navy-deep); }
.dj-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-2, #E8EAF6); color: var(--navy-deep); font-weight: 700; }
.dj-tab[aria-selected="true"] { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.dj-tab[aria-selected="true"] .dj-n { background: var(--ro); color: #fff; }
.dj-tab.is-done .dj-n { background: #DDF2E3; color: #1D5E30; }
.dj-panel { background: var(--white); border-radius: 22px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.dj-panel + .dj-panel { margin-top: 18px; }
.dj.is-live .dj-panel + .dj-panel { margin-top: 0; }
.dj-head { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: center; margin-bottom: 18px; }
.dj-head .chip { grid-row: 1 / span 2; }
.dj-step { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ro-dark); }
.dj-head h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.dj-panel h4 { font-size: 1.1rem; color: var(--navy-deep); margin: 26px 0 8px; }
.bk { background: #FFF4EF; border-left: 4px solid var(--ro); padding: 12px 16px; border-radius: 0 12px 12px 0; color: var(--navy-deep); font-size: 1.05em; }
.bk b { color: var(--ro-dark); }
.rungs, .rules, .needs { display: grid; gap: 10px; margin: 14px 0 18px; }
.rungs li, .rules li, .needs li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.rungs strong, .rules strong, .needs strong { display: block; color: var(--navy-deep); line-height: 1.3; }
.rungs span:not(.chip), .rules span:not(.chip), .needs span:not(.chip) { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.rungs li > div, .rules li > div, .needs li > div { padding-top: 4px; }
@media (min-width: 760px) { .rules, .needs { grid-template-columns: 1fr 1fr; } .rungs { grid-template-columns: 1fr 1fr 1fr; } }
.needs li { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #FCFCFF; }
.needs li.adv { border-style: dashed; background: #FFFBF3; }
.dj-next-wrap { margin: 26px 0 0; }

/* scene 6: AI */
.seq { display: grid; gap: 10px; margin-bottom: 48px; counter-reset: none; }
@media (min-width: 700px) { .seq { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .seq { grid-template-columns: repeat(7, 1fr); } }
.seq li { --pc: #9097F2; position: relative; padding: 16px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-top: 4px solid var(--pc); }
.seq li.ph-p { --pc: #7F95FF; } .seq li.ph-t { --pc: #FF7A7A; } .seq li.ph-f { --pc: var(--ro-soft); }
.seq .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-weight: 700; color: #fff; font-size: .9rem; margin-bottom: 8px; }
.seq strong { display: block; color: #fff; margin-bottom: 4px; }
.seq span:not(.n) { display: block; color: #CFCFEA; font-size: .93rem; line-height: 1.45; }
.seq li.ai { background: rgba(201, 81, 49, .22); border-color: rgba(255, 181, 156, .55); border-top-color: var(--ro-soft); box-shadow: 0 0 0 4px rgba(201, 81, 49, .18); }
.seq li.ai .n { background: var(--ro); }
.ai-split { align-items: center; }
.laptop { max-width: 560px; margin: 0 auto; width: 100%; }
.laptop-screen { background: #10103A; border: 10px solid #2A2A3E; border-radius: 16px 16px 4px 4px; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1B1B4E; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.chat-top .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.chat-title { font-weight: 700; color: #fff; font-size: .9rem; margin-left: 8px; }
.chat-tag { margin-left: auto; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ro-soft); font-weight: 700; }
.chat { display: grid; gap: 10px; padding: 16px; }
.chat li { max-width: 90%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; position: relative; }
.chat .who { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .72; margin-bottom: 3px; }
.chat .me { justify-self: end; background: #2E3FB0; color: #fff; border-bottom-right-radius: 4px; }
.chat .bot { justify-self: start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.chat .flag { box-shadow: 0 0 0 3px var(--red); margin-top: 6px; }
.stamp { position: absolute; right: -8px; top: -16px; transform: rotate(-7deg); border: 3px solid var(--red); color: var(--red); background: rgba(255, 255, 255, .96); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 2px 10px; border-radius: 6px; font-size: .78rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .laptop .stamp { opacity: 0; transform: rotate(-7deg) scale(2.2); transition: opacity .35s ease 1.4s, transform .35s cubic-bezier(.3, 1.6, .5, 1) 1.4s; }
  .js .laptop.in .stamp { opacity: 1; transform: rotate(-7deg) scale(1); }
}
.laptop-base { height: 14px; background: linear-gradient(#4A4A5E, #2A2A3E); border-radius: 0 0 14px 14px; margin: 0 -16px; }
.sticky-note { background: #FFF1A6; color: #3A2E00; padding: 14px 16px; transform: rotate(1.4deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); max-width: 360px; margin: 18px 0 0 auto; border-radius: 4px; font-size: .98rem; }
.sticky-note strong { color: var(--red); }
.check-split { align-items: center; }
.dialogue-static .line { margin-bottom: 22px; }
.ai-cols { margin-top: 56px; gap: 40px; }
@media (min-width: 900px) { .ai-cols { grid-template-columns: 1fr 1fr; } }
.ai-cols .ilist > li { color: #E3E3F4; }
.pull-quote { margin: 56px 0 8px; padding: 0 0 0 24px; border-left: 5px solid var(--ro); }
.pull-quote p { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.3; font-weight: 700; color: #fff; margin: 0; }

/* scene 7 */
.tstrip { position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; padding: 30px 16px; margin: 18px 0 56px; background: #15153F; border-radius: 16px; }
.tstrip::before, .tstrip::after { content: ""; position: absolute; left: 12px; right: 12px; height: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 12px, transparent 12px 26px); border-radius: 2px; }
.tstrip::before { top: 10px; } .tstrip::after { bottom: 10px; }
@media (min-width: 560px) { .tstrip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tstrip { grid-template-columns: repeat(4, 1fr); } }
.tstrip li { background: #fff; border-radius: 10px; padding: 16px; display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: start; }
.tstrip li .chip { grid-row: 1 / span 2; }
.tstrip li .chip.light { background: var(--tint); color: var(--navy-deep); box-shadow: none; }
.tstrip strong { color: var(--navy-deep); }
.tstrip li > span:not(.chip) { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.sheet { margin: 0; }
.sheet-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.sheet table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9rem; }
.sheet caption { caption-side: top; text-align: left; padding: 12px 14px; font-weight: 700; color: var(--navy-deep); background: #EEF6EE; border-bottom: 1px solid var(--line); }
.sheet th, .sheet td { border: 1px solid #E3E6EF; padding: 7px 10px; text-align: left; }
.sheet thead th { background: #F6F7FB; color: var(--navy-deep); font-size: .8rem; }
.sheet tbody th { background: #F6F7FB; color: var(--navy-deep); }
.sheet td { color: var(--text); }
.sheet-split { margin-bottom: 48px; }

/* before and after */
.ba { margin: 0 0 56px; }
.ba-stage { display: grid; gap: 10px; }
@media (min-width: 640px) { .ba:not(.is-live) .ba-stage { grid-template-columns: 1fr 1fr; } }
.ba-pane { position: relative; overflow: hidden; border-radius: 16px; }
.ba-pane img { width: 100%; height: auto; display: block; }
.ba-lab { position: absolute; top: 12px; left: 12px; background: rgba(7, 7, 63, .82); color: #fff; font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; }
.ba-range, .ba-handle { display: none; }
.ba.is-live .ba-stage { display: block; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); }
.ba.is-live .ba-pane { border-radius: 0; }
.ba.is-live .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba.is-live .ba-after .ba-lab { left: auto; right: 12px; background: rgba(43, 122, 58, .9); }
.ba.is-live .ba-handle { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.ba.is-live .ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--navy-deep); font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 1.2rem; }
.ba.is-live .ba-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba.is-live .ba-stage:has(.ba-range:focus-visible) { outline: 3px solid var(--ro); outline-offset: 3px; }
.ba.is-live .ba-stage:has(.ba-range:focus-visible) .ba-handle::after { box-shadow: 0 0 0 4px var(--ro); }
.share-split { align-items: start; margin-bottom: 48px; }
.real-fig .photo { border-radius: 16px; overflow: hidden; }
.real-fig .photo img { width: 100%; height: auto; }
.loopback { background: var(--white); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 24px; }
.lb-k { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ro-dark); margin: 0 0 8px; }
.loopback .narr { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.loopback .stages { margin: 18px 0 8px; }
.loopback .stages-loop { margin-bottom: 18px; }
.lb-note { margin: 0; color: var(--muted); font-size: .98rem; }
.asks-row { gap: 0 24px; margin-bottom: 64px; }
@media (min-width: 900px) { .asks-row { grid-template-columns: 1fr 1fr; } }
.h2-like { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.glimpses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.glimpse { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.g-art img { width: 100%; height: 170px; object-fit: cover; }
.patch-art { background: #0B0B4A; display: grid; place-items: center; height: 170px; }
.patch-art img { width: 150px; height: 150px; object-fit: contain; }
.g-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.g-body p { margin: 0; color: var(--text); font-size: .98rem; line-height: 1.5; }
.g-topic { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ro-dark); }
.glimpse.real { border: 2px solid #9AD6A6; }
.glimpse.real .g-topic { color: #1D5E30; }
.g-path { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 700; }
.g-path .ico { color: var(--ro); width: 18px; height: 18px; }
.pathways { margin: 28px 0 0; max-width: 860px; font-size: 1.08em; }

/* scene 8: the four changes */
.chg-story { display: grid; gap: 32px; margin-top: 8px; }
.chg-media .frame-media svg { background: #F4E7CF; }
.chg-steps { display: grid; gap: 18px; }
.chg { padding: clamp(18px, 3vw, 28px); border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.chg-top { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.chg-top h3 { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.chg-pair { display: grid; gap: 10px; }
@media (min-width: 640px) { .chg-pair { grid-template-columns: .8fr 1.2fr; } }
.chg-pair p { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: .98rem; line-height: 1.5; transition: opacity .6s ease, transform .6s ease, background-color .6s ease; }
.lbl { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.chg-gap { background: rgba(255, 255, 255, .04); border: 1.5px dashed rgba(255, 255, 255, .35); color: #CFCFEA; }
.chg-gap .lbl { color: #9FA6FF; }
.chg-resp { background: #fff; color: var(--ink); }
.chg-resp .lbl { color: var(--ro-dark); }
.chg-why { margin: 12px 0 0; font-size: .95rem; color: #CFCFEA; }
.chg-why strong { color: var(--ro-soft); }
.clsvg .r1, .clsvg .r2, .clsvg .r3, .clsvg .r4 { opacity: 0; transition: opacity .8s ease; }
.clsvg .g1, .clsvg .g2, .clsvg .g3, .clsvg .g4 { transition: opacity .6s ease; }
.clsvg.s1 .r1, .clsvg.s2 .r2, .clsvg.s3 .r3, .clsvg.s4 .r4 { opacity: 1; }
.clsvg.s1 .g1, .clsvg.s2 .g2, .clsvg.s3 .g3, .clsvg.s4 .g4 { opacity: 0; }
.chg-story.is-live .chg:not(.is-on) .chg-resp { opacity: .14; transform: translateX(12px); }
.chg-story.is-live .chg.is-on .chg-gap { opacity: .6; }
.chg-story.is-live .chg.is-on .chg-gap .gt { text-decoration: line-through; text-decoration-color: var(--ro-soft); text-decoration-thickness: 2px; }
@media (min-width: 980px) {
  .chg-story { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
  .chg-media { position: sticky; top: 100px; }
  .chg-story.is-live .chg-steps { padding: 6vh 0 18vh; gap: 28vh; }
}
@media (max-width: 979px) {
  .chg-story.is-live .chg-media { position: sticky; top: 66px; z-index: 2; background: var(--sd); padding-bottom: 8px; }
  .chg-story.is-live .chg-media figcaption { display: none; }
  .chg-story.is-live .chg-steps { gap: 30vh; padding-bottom: 20vh; }
  .chg-story.is-live .chg-media .frame-media svg { max-height: 36svh; width: auto; max-width: 100%; margin: 0 auto; }
}
.after-changes { margin-top: 48px; }

/* scene 9: timeline */
.yrline { display: grid; gap: 16px; margin-bottom: 18px; }
.yr { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.yr-art img { width: 100%; height: auto; border-radius: 12px; background: #F6F7FB; }
.yr-y { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--ro); margin: 0; line-height: 1; letter-spacing: -.02em; }
.yr-c { margin: 6px 0 8px; font-weight: 700; color: var(--navy-deep); }
.yr-c span { display: inline-block; background: var(--navy-deep); color: #fff; border-radius: 6px; padding: 1px 8px; margin-right: 4px; font-size: .9rem; }
.yr p { font-size: .96rem; line-height: 1.5; }
.yr-body > :last-child { margin-bottom: 0; }
.yr-real { display: grid; grid-template-columns: 22px 1fr; gap: 8px; background: #FFF4EF; border-radius: 10px; padding: 8px 10px; font-size: .88rem !important; color: var(--ro-dark); }
.yr-real .ico { width: 20px; height: 20px; }
.yr.last { background: var(--navy-deep); border-color: var(--navy-deep); }
.yr.last .yr-c, .yr.last p { color: #fff; } .yr.last .yr-y { color: var(--ro-soft); } .yr.last .yr-c span { background: var(--ro); }
@media (min-width: 1000px) {
  .yrline { grid-template-columns: repeat(5, 1fr); position: relative; }
  .yrline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 3px; background: linear-gradient(90deg, var(--ph-d), var(--ph-p), var(--ph-t), var(--ph-f)); z-index: 0; }
  .yr { grid-template-columns: 1fr; position: relative; z-index: 1; }
}
.wef { display: grid; gap: 10px 32px; align-items: center; background: radial-gradient(ellipse at 10% 0%, #24249A 0%, var(--navy-deep) 60%); color: #E3E3F4; border-radius: 24px; padding: clamp(24px, 4vw, 48px); margin: 48px 0; }
@media (min-width: 760px) { .wef { grid-template-columns: auto 1fr; } }
.wef-num { font-size: clamp(4.4rem, 11vw, 8.5rem); font-weight: 800; line-height: .9; color: var(--ro-soft); letter-spacing: -.04em; }
.wef-num span { font-size: .5em; }
.wef-q { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 700; color: #fff; margin: 0 0 12px; }
.wef-src { margin: 0; font-size: .95rem; color: #CFCFEA; }
.wef-src a { color: #fff; }
.local-stat strong { font-size: 1.6em; color: var(--ro); }
.plain-split .ask:first-of-type { margin-top: 14px; }

/* questions and sources */
.faq { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.faq-col { background: var(--white); border-radius: 18px; padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq-col h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.faq-col li a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.faq-col li a strong { display: block; color: var(--navy-deep); line-height: 1.35; }
.faq-col li a span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: 2px; }
.faq-col li a:hover strong { color: var(--red); text-decoration: underline; }
.distinct { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 24px; }
.distinct li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; font-weight: 700; color: var(--navy-deep); line-height: 1.35; }
.src-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.src { background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.src-art { height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; position: relative; overflow: hidden; }
.src-art::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .12); }
.src.sk-wef .src-art { background: linear-gradient(135deg, #070759, #2E3FB0); }
.src.sk-sdg2 .src-art { background: linear-gradient(135deg, #8A5A12, #DDA63A); }
.src.sk-sdg4 .src-art { background: linear-gradient(135deg, #6E0000, #BF0000); }
.src.sk-ubos .src-art { background: linear-gradient(135deg, #1E1E64, #C95131); }
.src-kick { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.src-big { font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.src-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.src-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.src-pub { font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.src-body p { font-size: .95rem; line-height: 1.5; }
.src-links { margin-top: auto; display: grid; gap: 6px; }

/* closing */
.closing { position: relative; isolation: isolate; overflow: hidden; background: #0B0B4E; color: #fff; padding: clamp(90px, 12vw, 170px) 0; }
.closing-art { position: absolute; inset: 0; z-index: -2; }
.closing-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 70%; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 7, 63, .92) 0%, rgba(7, 7, 63, .72) 46%, rgba(7, 7, 63, .2) 100%); }
.closing-in { max-width: 860px; }
.closing h2 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.18; text-wrap: balance; }
.credits { margin: 32px 0 0; font-size: .86rem; color: #CFCFEA; max-width: 720px; }

/* reduced motion: nothing moves, nothing is hidden */
@media (prefers-reduced-motion: reduce) {
  .story-hero .aerial, .scroll-cue, .story-hero::before, .shot-media img { animation: none !important; }
  .js .iris .frame-media { clip-path: none !important; transition: none !important; }
  .scrolly .frame, .scrolly .sstep, .chg-pair p, .clsvg *, .sp { transition: none !important; }
}
/* v17: keep scroll-linked frames and the chat stamp inside the page width on small screens (fixes a small sideways scroll from v16) */
.scrolly.is-live .scrolly-media { overflow: clip; }
@media (max-width: 599px) { .stamp { right: 0; } }
