/* Pinned story: the browser owns vertical scrolling. No overflow-hidden scroll lock.
   New layout is scoped to narrative frames; the existing hero, evidence and legal pages stay intact. */
.narrative-transcript{position:relative;margin:28px 0;padding:20px 0;background:#030706;color:#d8e8df}
.reading-state{padding:24px 0;border-top:1px solid #91bca438;scroll-margin-top:90px}
.reading-state h3{font-size:24px;margin:8px 0 12px}.reading-state p{font-size:16px;line-height:1.7;max-width:58ch}
.reading-state dl{display:grid;grid-template-columns:1fr 1fr;gap:22px}.reading-state dd{margin:6px 0}.reading-state dt,.reading-index{font-size:11px;letter-spacing:.08em;color:#a3bdae}
.reading-toggle{appearance:none;font:inherit;background:none;border:1px solid #719a843d;color:#c9e5d5;cursor:pointer;min-height:44px;padding:10px 14px;border-radius:24px}
body.tme-story.narrative-ready[data-pinned-story]{--pin-gutter:clamp(20px,4.5vw,76px)}
body.tme-story.narrative-ready[data-pinned-story] #main,body.tme-story.narrative-ready[data-pinned-story] #story{overflow:visible}
body.tme-story.narrative-ready[data-pinned-story] section.story-scene[data-narrative]{display:block!important;padding:0!important;margin:0;min-height:0!important;overflow:visible!important;isolation:auto;background:transparent!important;border:0}
body.tme-story.narrative-ready[data-pinned-story] .chapter-frame{box-sizing:border-box;position:relative;width:100%;max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:calc(var(--header-height,68px) + 18px) var(--pin-gutter) calc(20px + env(safe-area-inset-bottom));pointer-events:none;background:transparent}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=pin] .chapter-frame{position:sticky;top:0;height:var(--pin-height);grid-template-rows:auto minmax(150px,1fr) auto auto;align-content:stretch}
body.tme-story.narrative-ready[data-pinned-story] .chapter-frame :is(a,button,.chapter-info,.narrative-transcript,.chapter-foot){pointer-events:auto}
body.tme-story.narrative-ready[data-pinned-story] .chapter-heading{grid-row:1;position:relative;min-width:0;pointer-events:auto;z-index:2}
body.tme-story.narrative-ready[data-pinned-story] .chapter-heading .scene-number{font-size:10px;margin:0 0 10px;gap:16px;color:#b8cec1;letter-spacing:.1em}
body.tme-story.narrative-ready[data-pinned-story] .chapter-heading h2{font-size:clamp(30px,8.5vw,54px);line-height:1.02;letter-spacing:-.05em;margin:0!important;max-width:100%;text-wrap:balance;overflow-wrap:normal}
body.tme-story.narrative-ready[data-pinned-story] .chapter-heading .scene-intro{display:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-stage.shot-window{grid-row:2;display:block;position:relative!important;inset:auto!important;min-height:150px;max-width:none;width:100%;height:auto;flex:none;margin:0!important;pointer-events:auto;touch-action:pan-y pinch-zoom;cursor:grab;z-index:1;outline-offset:-3px}
body.tme-story.narrative-ready[data-pinned-story] .chapter-stage:focus-visible{outline:1px solid #79f1c0;border-radius:10px}
body.tme-story.narrative-ready[data-pinned-story] .shot-caption{position:absolute;right:0;bottom:0;font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#a2b5aa;background:#030706a0;padding:5px 7px;pointer-events:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info{grid-row:3;align-self:end;position:relative;min-width:0;padding-top:10px;border-top:1px solid #7aaf9345;background:linear-gradient(90deg,#030706ed,#030706d9 85%,transparent);z-index:2}
body.tme-story.narrative-ready[data-pinned-story] .chapter-act{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#86c7a8;margin:0 0 8px;display:block}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info :is(.market-explanation,.process-detail,.profile-detail){position:relative;inset:auto;width:100%;max-width:none;min-height:0;padding:0;margin:0;border:0;background:transparent;display:block;box-shadow:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info :is(.market-explanation,.process-detail)::before{display:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info :is(h3,#field-name){font-size:24px;line-height:1.1;letter-spacing:-.035em;font-weight:600;margin:0 0 10px;color:#ebf6ef}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info p{font-size:14px;line-height:1.55;margin:0;color:#b6cbbf}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info :is(.state-index,#process-number){display:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .field-story{display:block;position:relative;border:0;min-height:0;margin:0;padding:0}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .profile-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:10px 0;padding:10px 0 0;border-top:1px solid #82ad942e}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .profile-detail :is(dt,dd){font-size:12px;line-height:1.4}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .profile-detail dd{margin:5px 0 0}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .profile-detail .profile-caution{font-size:12px;margin:0 0 4px}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .text-link{display:inline-flex;align-items:center;min-height:36px;font-size:13px;margin:0}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info .chapter-note{font-size:11px;line-height:1.5;color:#a1b6a9;margin:10px 0 0;max-width:64ch}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot{grid-row:4;min-width:0;z-index:3;align-self:end;background:linear-gradient(180deg,#030706cf,#030706)}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot :is(.dimension-choices,.state-selector,.process-selector,.profile-selector){position:relative;inset:auto;display:flex;flex-direction:row;gap:6px;width:100%;max-width:none;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;scrollbar-width:thin;scrollbar-color:#39be8933 transparent;scroll-snap-type:x proximity;scroll-padding:12px;margin:0;padding:0 4px 6px;border:0;mask-image:none;-webkit-mask-image:none;background:transparent}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot :is(.field-choice,.state-selector button,.process-selector button,.profile-selector button){box-sizing:border-box;flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;min-height:48px;max-width:none;margin:0;padding:8px 10px;border:1px solid #73988135;border-radius:8px;background:#07110cc4;opacity:1;font:inherit;font-size:12px;color:#b4c8bc;white-space:nowrap;scroll-snap-align:center;transition:background .15s,border-color .15s}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot :is(.field-choice,.state-selector button,.process-selector button,.profile-selector button):before{display:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot :is(.field-choice.active,button.active,button[aria-selected=true]){background:linear-gradient(125deg,#123727,#082319);border-color:#3cd29b9c;color:#c8ffdf;box-shadow:inset 0 -1px #33d79f30}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot :is(.choice-index,.field-choice small,.field-choice>span:not(.choice-index),.profile-selector button>span,.profile-selector i,.process-selector button>span){display:none}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot :is(.field-choice strong,.profile-selector strong){font-size:13px;line-height:1.2;margin:0;letter-spacing:-.01em;font-weight:600}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot .state-selector button{min-width:100px}
body.tme-story.narrative-ready[data-pinned-story] .chapter-foot .process-selector button{min-width:91px}
body.tme-story.narrative-ready[data-pinned-story] .chapter-progress{height:2px;background:#83bda51f;margin:3px 0 6px;overflow:hidden}
body.tme-story.narrative-ready[data-pinned-story] .chapter-progress span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#169c73,#70f3b9);transform:scaleX(var(--sequence-progress,0));transform-origin:0 50%}
body.tme-story.narrative-ready[data-pinned-story] .chapter-transport{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;font-size:10px;color:#aec8b9}
body.tme-story.narrative-ready[data-pinned-story] .sequence-count{font-variant-numeric:tabular-nums;letter-spacing:.09em;white-space:nowrap}
body.tme-story.narrative-ready[data-pinned-story] .chapter-transport :is(a,button){display:inline-flex;align-items:center;min-height:36px;padding:5px 4px;color:#b9d9c7;text-decoration:none;border:0;background:transparent;border-radius:0;cursor:pointer;font:inherit}
body.tme-story.narrative-ready[data-pinned-story] .chapter-transport :is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:0}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=pin] .narrative-transcript{display:none}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=flow] .chapter-info,body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=read] .chapter-info{display:none}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=flow] .chapter-frame,body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=read] .chapter-frame{display:flex;flex-direction:column;height:auto;gap:20px}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=flow] .chapter-stage{position:sticky!important;top:calc(var(--header-height) + 8px)!important;height:clamp(120px,23svh,210px);min-height:120px;flex:none;background:linear-gradient(180deg,#030706,transparent 20% 80%,#030706);z-index:1}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=read] .chapter-stage{height:180px;min-height:120px;flex:none}
body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=read] .chapter-stage .shot-caption{display:none}
body.tme-story.narrative-ready[data-pinned-story] .narrative-transcript{margin:0;padding:0;pointer-events:auto;z-index:2;background:#030706ee}
body.tme-story.narrative-ready[data-pinned-story] .reading-state{min-height:240px;min-height:32svh;padding:28px 0;scroll-margin-top:calc(var(--header-height) + 180px);opacity:.65;transition:opacity .15s}
body.tme-story.narrative-ready[data-pinned-story] .reading-state[aria-current=true],body.tme-story.narrative-ready[data-pinned-story] [data-pin-mode=read] .reading-state{opacity:1}
body.tme-story.narrative-ready[data-pinned-story] .reading-state h3{font-size:26px;margin:10px 0}
body.tme-story.narrative-ready[data-pinned-story] .reading-state p{font-size:15px;line-height:1.65;margin:0 0 12px}
body.tme-story.narrative-ready[data-pinned-story] .reading-state .text-link{min-height:44px;display:inline-flex;align-items:center}
body.tme-story.narrative-ready[data-pinned-story] .reading-state :is(dt,dd){font-size:13px;line-height:1.5}
body.tme-story.narrative-ready[data-pinned-story] .chapter-frame :is(.mobile-scene-art,.scene-copy,.scene-fineprint){display:none!important}
body.tme-story.narrative-ready[data-pinned-story] .chapter-frame button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body.tme-story.narrative-ready[data-pinned-story] .reading-toggle[hidden]{display:none}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-frame{grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);grid-template-rows:auto 1fr auto;column-gap:clamp(20px,5vw,70px);row-gap:20px;padding-top:calc(var(--header-height,88px) + 30px)}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-heading{grid-column:1;grid-row:1}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-heading h2{font-size:clamp(34px,3.7vw,64px)}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-stage.shot-window{grid-column:2;grid-row:1 / 3;min-height:210px}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-info{grid-column:1;grid-row:2;align-self:center;max-width:560px}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-info h3{font-size:32px}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-info p{font-size:16px;line-height:1.65}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-foot{grid-column:1 / 3;grid-row:3;max-width:100%;width:100%;justify-self:stretch}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-foot :is(.dimension-choices,.state-selector,.process-selector,.profile-selector){gap:12px}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-foot :is(.field-choice strong,.profile-selector strong){font-size:16px}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .chapter-transport{font-size:12px}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] [data-pin-mode=flow] .chapter-frame,body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] [data-pin-mode=read] .chapter-frame{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] :is([data-pin-mode=flow],[data-pin-mode=read]) .chapter-heading{grid-column:1 / 3}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] :is([data-pin-mode=flow],[data-pin-mode=read]) .chapter-stage{grid-column:2;grid-row:2;align-self:start;position:sticky!important;top:calc(var(--header-height) + 12px)!important;height:clamp(150px,54svh,560px)}
body.tme-story.narrative-ready[data-pinned-story][data-narrative-shape=landscape] .narrative-transcript{grid-column:1;grid-row:2}
body.tme-story.narrative-ready[data-pinned-story] .narrative-measure{position:absolute!important;visibility:hidden!important;pointer-events:none!important;inset:0 auto auto 0!important;height:auto!important;min-height:0!important;display:block!important}
body.tme-story.narrative-ready[data-pinned-story] .mobile-navigation{overflow-y:auto}
@media (max-width:390px){body.tme-story.narrative-ready[data-pinned-story]{--pin-gutter:18px}body.tme-story.narrative-ready[data-pinned-story] .chapter-heading h2{font-size:31px}body.tme-story.narrative-ready[data-pinned-story] .chapter-info p{font-size:13px}body.tme-story.narrative-ready[data-pinned-story] .chapter-transport{font-size:9px}}
@media (prefers-reduced-motion:reduce){body.tme-story.narrative-ready[data-pinned-story] *{scroll-behavior:auto!important}body.tme-story.narrative-ready[data-pinned-story] .reading-state,body.tme-story.narrative-ready[data-pinned-story] .chapter-foot button{transition:none}}
@media print{body.tme-story.narrative-ready[data-pinned-story] section.story-scene[data-narrative]{height:auto!important}body.tme-story.narrative-ready[data-pinned-story] .chapter-frame{position:static!important;display:block!important;height:auto!important;padding:20px 0!important}body.tme-story.narrative-ready[data-pinned-story] .chapter-stage,body.tme-story.narrative-ready[data-pinned-story] .chapter-info,body.tme-story.narrative-ready[data-pinned-story] .chapter-foot{display:none!important}body.tme-story.narrative-ready[data-pinned-story] .narrative-transcript{display:block!important;background:white;color:black}body.tme-story.narrative-ready[data-pinned-story] .reading-state{opacity:1;min-height:0;break-inside:avoid}}

/* Keep global controls out of the chapter transport rail on desktop. */
body.tme-story.narrative-ready[data-pinned-story][data-story-layout=desktop]:is([data-chapter="1"],[data-chapter="2"],[data-chapter="3"],[data-chapter="4"]) .story-tools{left:auto;right:var(--pin-gutter);top:calc(var(--header-height) + 8px);bottom:auto;transform:none;padding:4px;gap:4px;z-index:40}
body.tme-story.narrative-ready[data-pinned-story][data-story-layout=desktop]:is([data-chapter="1"],[data-chapter="2"],[data-chapter="3"],[data-chapter="4"]) .story-tools :is(button,a){min-width:44px;width:44px;height:44px;min-height:44px;padding:0;justify-content:center}
body.tme-story.narrative-ready[data-pinned-story][data-story-layout=desktop]:is([data-chapter="1"],[data-chapter="2"],[data-chapter="3"],[data-chapter="4"]) :is(.story-tools #motion-label,.story-tools #replay,.story-tools .tools-separator,.chapter-navigation){display:none}
body.tme-story.narrative-ready[data-pinned-story][data-story-layout=desktop]:is([data-chapter="1"],[data-chapter="2"],[data-chapter="3"],[data-chapter="4"]) .story-tools #model-spin{font-size:0}
body.tme-story.narrative-ready[data-pinned-story][data-story-layout=desktop]:is([data-chapter="1"],[data-chapter="2"],[data-chapter="3"],[data-chapter="4"]) .story-tools #model-spin::before{content:'↻';font-size:22px}
body.tme-story.narrative-ready[data-pinned-story] .chapter-info p.chapter-note{font-size:11px;line-height:1.5;margin-top:10px}
