/* SPDX-License-Identifier: AGPL-3.0-only */
@font-face{font-family:'Alegreya Sans';src:url('/fonts/AlegreyaSans-Regular-subset.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Alegreya Sans';src:url('/fonts/AlegreyaSans-Medium-subset.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Alegreya Sans';src:url('/fonts/AlegreyaSans-Bold-subset.woff2') format('woff2');font-weight:600 700;font-display:swap}
@font-face{font-family:Alegreya;src:url('/fonts/Alegreya-subset.woff2') format('woff2');font-weight:400 600;font-display:swap}

*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;font-family:var(--font-family);font-size:var(--text-base);line-height:var(--leading-normal);background:var(--color-surface-0);color:var(--story-ink)}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid var(--color-accent-warm);outline-offset:var(--space-1)}button{border:0}a{color:inherit;text-underline-offset:.2em}p,h1,h2,h3{margin:0}button svg{pointer-events:none}[hidden]{display:none!important}
.stage{position:fixed;inset:0;overflow:hidden;background:var(--color-surface-1);transition:inset var(--duration-enter) var(--ease-out),border-radius var(--duration-enter) var(--ease-out)}
.stage iframe{display:block;width:100%;height:100%;border:0}.stage-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:var(--space-3);background:var(--color-surface-0);font-family:var(--font-family-display);font-size:var(--text-lg)}.stage-loading img{width:var(--space-7)}
body[data-mode=welcome] .stage iframe{pointer-events:none}.welcome-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--story-shade),color-mix(in srgb,var(--color-surface-0) 45%,transparent) 42%,transparent 76%),linear-gradient(0deg,var(--story-shade),transparent 30%,transparent 80%,color-mix(in srgb,var(--color-surface-0) 65%,transparent));transition:opacity var(--duration-enter)}
.site-header{position:fixed;z-index:4;inset:0 0 auto;height:var(--story-header);padding:0 var(--story-gutter);display:flex;align-items:center;gap:var(--space-6)}.brand{padding:0;background:transparent;display:flex;align-items:center}.brand img{display:block;width:139px;height:auto}.header-note{font-family:var(--font-family-display);font-style:italic;font-size:var(--text-md);color:var(--color-text-secondary)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:var(--space-5)}.text-button,.language{padding:var(--space-2) 0;background:transparent;font-size:var(--text-sm)}.text-button:hover,.language:hover{color:var(--color-accent-warm)}.language{font-size:var(--text-xs);letter-spacing:var(--tracking-caps)}.get-button{min-height:var(--story-touch);border:var(--story-rule) solid var(--story-border);border-radius:var(--radius-full);padding:var(--space-2) var(--space-5);background:color-mix(in srgb,var(--color-surface-0) 24%,transparent);display:flex;gap:var(--space-5);align-items:center;font-size:var(--text-sm)}.get-button:hover{border-color:var(--color-accent-warm)}
.invitation{position:fixed;z-index:2;left:8vw;top:50%;transform:translateY(-46%);max-width:70vw}.eyebrow{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-2xs);letter-spacing:var(--tracking-caps);font-weight:var(--font-weight-medium)}.live-dot{width:6px;height:6px;background:var(--color-accent-warm);border-radius:var(--radius-full);display:inline-block;flex-shrink:0;box-shadow:0 0 var(--space-3) color-mix(in srgb,var(--color-accent-warm) 40%,transparent)}h1{font:400 var(--story-title)/.96 var(--font-family-display);letter-spacing:var(--tracking-tighter);margin-top:var(--space-5)}h1 em{font-weight:400;color:var(--color-accent-warm)}.intro-text{margin-top:var(--space-6);font-size:var(--text-lg);line-height:var(--leading-normal);color:color-mix(in srgb,var(--color-text-primary) 85%,transparent)}.invitation-actions{display:flex;align-items:center;gap:var(--space-5);margin-top:var(--space-6)}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:var(--space-7);padding:var(--space-4) var(--space-5);border-radius:var(--radius-full);background:var(--color-accent-warm);color:var(--color-text-on-accent);font-weight:var(--font-weight-medium);min-height:var(--story-touch)}.primary:hover{background:var(--color-accent-warm-hover)}.primary span:last-child{font-size:var(--text-lg)}.intro-footnote{margin-top:var(--space-4);font-size:var(--text-xs);color:var(--color-text-secondary)}.scene-meta{position:fixed;right:var(--story-gutter);bottom:calc(var(--story-footer) + var(--space-7));display:flex;align-items:flex-start;gap:var(--space-3);font-size:var(--text-2xs);line-height:var(--leading-relaxed);letter-spacing:var(--tracking-wide);color:var(--color-text-primary)}.scene-line{width:var(--space-7);height:var(--story-rule);background:var(--color-accent-warm);margin-top:var(--space-2)}
.experience-footer{position:fixed;z-index:4;inset:auto 0 0;height:var(--story-footer);padding:0 var(--story-gutter)}.welcome-footer,.story-footer{height:100%;display:flex;align-items:center;gap:var(--space-6)}.welcome-footer{border-top:var(--story-rule) solid var(--story-border);font-size:var(--text-xs)}.welcome-footer>span:nth-child(2){color:var(--color-text-secondary)}.welcome-footer>button{margin-left:auto}.story-footer{justify-content:space-between}.mode-button{display:flex;align-items:center;gap:var(--space-2);background:transparent;font-size:var(--text-xs);padding:var(--space-3) 0}.mode-button:hover{color:var(--color-accent-warm)}.chapters{display:flex;gap:var(--space-5);align-items:center}.chapter{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3) 0;background:transparent;color:var(--color-text-secondary);font-size:var(--text-xs);white-space:nowrap}.chapter-number{display:grid;place-items:center;width:var(--space-6);height:var(--space-6);border:var(--story-rule) solid var(--story-border);border-radius:var(--radius-full);font-size:var(--text-2xs);font-variant-numeric:tabular-nums}.chapter[aria-current=step]{color:var(--color-text-primary)}.chapter[aria-current=step] .chapter-number{color:var(--color-text-on-accent);background:var(--color-accent-warm);border-color:var(--color-accent-warm)}.chapter.is-visited .chapter-number{border-color:color-mix(in srgb,var(--color-accent-warm) 50%,transparent)}.journey-controls{display:flex;gap:var(--space-2)}.icon-button{display:grid;place-items:center;min-width:var(--story-touch);height:var(--story-touch);background:transparent;border:var(--story-rule) solid var(--story-border);border-radius:var(--radius-full);font-size:var(--text-lg)}.icon-button:hover{border-color:var(--color-accent-warm)}.next-button{display:flex;align-items:center;gap:var(--space-5);background:var(--color-text-primary);color:var(--color-text-on-inverse);border-radius:var(--radius-full);padding:var(--space-2) var(--space-5);min-height:var(--story-touch);font-size:var(--text-sm)}
body:not([data-mode=welcome]) .stage{inset:var(--story-header) var(--story-gutter) var(--story-footer);border-radius:var(--radius-2xl);box-shadow:inset 0 0 0 var(--story-rule) var(--story-border)}body:not([data-mode=welcome]) .welcome-shade,body:not([data-mode=welcome]) .scene-meta{opacity:0;visibility:hidden}body:not([data-mode=welcome]) .site-header{background:var(--color-surface-0)}

.guide{position:fixed;z-index:3;left:calc(var(--story-gutter) + var(--space-5));bottom:calc(var(--story-footer) + var(--space-5));width:var(--story-guide);padding:var(--space-5);border:var(--story-rule) solid var(--story-border);border-radius:var(--radius-xl);background:var(--story-shade);backdrop-filter:blur(var(--space-5));box-shadow:var(--elevation-overlay-shadow);animation:guide-in var(--duration-enter) var(--ease-out)}.guide-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-3);gap:var(--space-3)}.guide-top .eyebrow{color:var(--color-accent-warm)}.guide-top .icon-button{min-width:var(--space-6);height:var(--space-6);font-size:var(--text-md)}.guide h2{font:400 var(--text-2xl)/var(--leading-hero) var(--font-family-display);letter-spacing:var(--tracking-tight);text-wrap:balance}.guide p{margin-top:var(--space-3);font-size:var(--text-sm);line-height:var(--leading-relaxed);color:var(--color-text-primary)}.detail-link{margin-top:var(--space-4);padding:0;background:transparent;font-size:var(--text-xs);color:var(--color-text-secondary);text-decoration:underline;text-decoration-color:var(--story-border);text-underline-offset:var(--space-1)}.detail-link:hover{color:var(--color-accent-warm)}.chapter-action{margin-top:var(--space-4);display:flex;gap:var(--space-2)}.chapter-action:empty{display:none}.pill{border:var(--story-rule) solid var(--story-border);border-radius:var(--radius-full);background:transparent;padding:var(--space-2) var(--space-4);font-size:var(--text-xs);min-height:var(--story-touch)}.pill[aria-pressed=true]{background:var(--color-accent-warm);color:var(--color-text-on-accent);border-color:var(--color-accent-warm)}.guide .response{padding-top:var(--space-3);border-top:var(--story-rule) solid var(--story-border);color:var(--color-accent-warm);font-size:var(--text-xs)}.guide.is-collapsed{padding-block:var(--space-3)}.guide.is-collapsed .guide-top{margin:0}.guide.is-collapsed #guide-content{display:none}
.lamp-hint{position:fixed;z-index:2;pointer-events:none;transform:translate(-50%,-50%)}.lamp-ring{display:block;width:var(--space-7);height:var(--space-7);border:var(--story-rule) solid var(--color-accent-warm);border-radius:var(--radius-full);box-shadow:0 0 0 var(--space-2) color-mix(in srgb,var(--color-accent-warm) 12%,transparent);animation:breathe calc(var(--duration-emphasis) * 7) ease-in-out infinite}.hint-label{position:absolute;top:calc(100% + var(--space-3));left:50%;transform:translateX(-50%);white-space:nowrap;color:var(--color-text-primary);background:var(--story-shade);padding:var(--space-2) var(--space-3);border-radius:var(--radius-full);font:italic var(--text-sm) var(--font-family-display)}.explore-label{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--story-footer) + var(--space-4));z-index:2;display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-4);border-radius:var(--radius-full);background:var(--story-shade);font-size:var(--text-xs);pointer-events:none;white-space:nowrap}body[data-mode=explore] .chapters{opacity:.6}
dialog{position:fixed;inset:var(--space-5) var(--space-5) var(--space-5) auto;margin:0;width:min(var(--story-sheet-width),calc(100% - var(--space-7)));max-width:none;max-height:calc(100dvh - var(--space-7));height:calc(100dvh - var(--space-7));overflow-y:auto;border:0;border-radius:var(--radius-2xl);padding:var(--space-6);background:var(--color-surface-2);color:var(--color-text-primary);box-shadow:var(--elevation-overlay-shadow)}dialog::backdrop{background:color-mix(in srgb,var(--color-surface-0) 65%,transparent);backdrop-filter:blur(var(--space-1))}.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-5);margin-bottom:var(--space-7)}.sheet-top img{filter:brightness(0) invert(.95)}.sheet-top .icon-button{color:var(--color-text-primary)}#sheet-body>.eyebrow{color:var(--color-accent-warm)}#sheet-body h2{font:400 var(--text-3xl)/var(--leading-hero) var(--font-family-display);letter-spacing:var(--tracking-tighter);margin:var(--space-4) 0 var(--space-5);text-wrap:balance}#sheet-body p{font-size:var(--text-base);line-height:var(--leading-relaxed);margin-block:var(--space-4);color:var(--color-text-secondary)}#sheet-body strong{color:var(--color-text-primary);font-weight:500}#sheet-body .primary{margin-block:var(--space-3);text-decoration:none;font-size:var(--text-sm)}.sheet-section{padding-block:var(--space-5);border-top:var(--story-rule) solid var(--story-border)}.sheet-section h3{font-size:var(--text-lg);font-weight:500}.sheet-section .sub{font-size:var(--text-xs);color:var(--color-accent-warm)}.sheet-links{display:flex;flex-wrap:wrap;gap:var(--space-5);margin-top:var(--space-5);font-size:var(--text-xs)}.smallprint{font-size:var(--text-xs)!important}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3);margin-block:var(--space-5)}.photo-pair figure{margin:0}.photo-pair img{width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:var(--radius-md)}.photo-pair figcaption{font-size:var(--text-xs);margin-top:var(--space-2);color:var(--color-text-secondary)}.skip-link{position:fixed;z-index:10;top:var(--space-2);left:var(--space-5);transform:translateY(-200%);background:var(--color-accent-warm);color:var(--color-text-on-accent);padding:var(--space-3)}.skip-link:focus{transform:none}.no-script{position:fixed;z-index:10;inset:30%;background:var(--color-surface-1);padding:var(--space-6)}
@keyframes breathe{50%{box-shadow:0 0 0 var(--space-4) color-mix(in srgb,var(--color-accent-warm) 0%,transparent)}}@keyframes guide-in{from{opacity:0;transform:translateY(var(--space-3))}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){:root{--story-guide:400px}.guide h2{font-size:var(--text-3xl)}}
@media(max-width:1100px){:root{--story-guide:290px}.chapter-label{display:none}.chapters{gap:var(--space-3)}.header-note{display:none}.guide h2{font-size:var(--text-xl)}.guide p{font-size:var(--text-xs)}.scene-meta{max-width:240px}.invitation{left:var(--story-gutter)}}
@media(max-height:700px) and (min-width:768px){:root{--story-header:var(--space-8);--story-footer:var(--space-8);--story-title:var(--text-4xl)}.intro-text{font-size:var(--text-md);margin-top:var(--space-5)}.invitation-actions{margin-top:var(--space-5)}.guide{padding:var(--space-4);bottom:calc(var(--story-footer) + var(--space-4))}.guide h2{font-size:var(--text-xl)}.guide p{font-size:var(--text-xs)}.guide-top{margin-bottom:var(--space-2)}}
@media(max-width:767px){
 :root{--story-header:var(--space-8);--story-footer:calc(var(--space-8) + var(--space-5));--story-gutter:var(--space-4);--story-title:clamp(var(--text-3xl),14vw,var(--text-4xl))}
 .site-header{gap:var(--space-4)}.brand img{width:110px}.header-actions{gap:var(--space-4)}#about{display:none}.get-button{padding:var(--space-2) var(--space-4);min-height:var(--space-6);font-size:var(--text-xs)}.get-button span{display:none}
 body[data-mode=welcome] .stage{inset:0}.welcome-shade{background:linear-gradient(90deg,var(--story-shade),color-mix(in srgb,var(--color-surface-0) 30%,transparent)),linear-gradient(0deg,var(--color-surface-0),transparent 70%)}
 .invitation{top:44%;left:var(--space-5);max-width:calc(100% - var(--space-7));transform:translateY(-42%)}.eyebrow{font-size:var(--text-3xs)}.intro-text{font-size:var(--text-md);margin-top:var(--space-5)}.invitation-actions{align-items:flex-start;flex-direction:column;gap:var(--space-3);margin-top:var(--space-5)}.primary{padding:var(--space-3) var(--space-5)}.intro-footnote{max-width:260px;font-size:var(--text-2xs);margin-top:var(--space-3)}.scene-meta{display:none}.welcome-footer{gap:var(--space-2);flex-wrap:wrap;align-content:center;font-size:var(--text-2xs)}.welcome-footer>span:nth-child(2){margin-left:auto}.welcome-footer>button{margin-left:0;width:100%;text-align:left;font-size:var(--text-2xs)}
 body:not([data-mode=welcome]) .stage{inset:var(--story-header) var(--space-2) calc(var(--story-footer) + var(--story-guide-reserve));border-radius:var(--radius-xl)}
 .guide{left:var(--space-4);right:var(--space-4);bottom:calc(var(--story-footer) + var(--space-2));width:auto;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);box-shadow:none;background:var(--color-surface-1)}.guide-top{margin-bottom:var(--space-1)}.guide-top .icon-button{height:var(--space-5);min-width:var(--space-5)}.guide h2{font-size:var(--text-lg);line-height:var(--leading-tight)}.guide p{font-size:var(--text-xs);line-height:var(--leading-snug);margin-top:var(--space-2)}.detail-link{margin-top:var(--space-2);font-size:var(--text-2xs)}.chapter-action{margin-top:var(--space-2)}.pill{padding:var(--space-1) var(--space-3);min-height:var(--space-6)}.guide .response{padding-top:var(--space-2);font-size:var(--text-2xs)}
 .story-footer{position:relative;gap:var(--space-3);align-items:flex-end;padding-bottom:var(--space-3)}.chapters{position:absolute;left:50%;transform:translateX(-50%);top:var(--space-1);gap:var(--space-3)}.chapter{padding:0}.chapter-number{width:var(--space-5);height:var(--space-5);font-size:var(--text-3xs)}.mode-button{font-size:var(--text-2xs);padding:var(--space-2) 0}.journey-controls{margin-left:auto}.journey-controls .icon-button{height:var(--space-6);min-width:var(--space-6);font-size:var(--text-base)}.next-button{min-height:var(--space-6);font-size:var(--text-xs);padding:var(--space-1) var(--space-4)}
 body[data-mode=explore] .stage{bottom:var(--story-footer)}.explore-label{font-size:var(--text-3xs);max-width:90%;white-space:normal;text-align:center;bottom:calc(var(--story-footer) + var(--space-2))}.lamp-hint{display:none}.guide.is-collapsed~.lamp-hint{display:none}.hint-label{font-size:var(--text-xs)}
 dialog{inset:var(--space-2);height:calc(100dvh - var(--space-4));max-height:calc(100dvh - var(--space-4));width:calc(100% - var(--space-4));padding:var(--space-5);border-radius:var(--radius-xl)}.sheet-top{margin-bottom:var(--space-6)}#sheet-body h2{font-size:var(--text-2xl)}#sheet-body p{font-size:var(--text-sm)}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* The entrance waits for actual loading milestones; no timed percentage. */
body[data-loading=true] .stage iframe{opacity:0}
body[data-loading=true][data-mode=welcome] :is(.invitation-actions,.intro-footnote){display:none}
.loading-panel{margin-top:var(--space-6);max-width:var(--story-guide);padding-block:var(--space-3)}
.loading-title{font-size:var(--text-sm);color:var(--color-text-primary)}
.loading-panel progress{display:block;appearance:none;width:100%;height:var(--space-1);margin-top:var(--space-4);border:0;border-radius:var(--radius-full);overflow:hidden;background:var(--story-border);color:var(--color-accent-warm)}
.loading-panel progress::-webkit-progress-bar{background:var(--story-border);border-radius:var(--radius-full)}
.loading-panel progress::-webkit-progress-value{background:var(--color-accent-warm);border-radius:var(--radius-full);transition:width var(--duration-enter) var(--ease-out)}
.loading-panel progress::-moz-progress-bar{background:var(--color-accent-warm)}
.loading-phase,#loading-slow-text{font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-secondary);margin-top:var(--space-3)}
.stage>.loading-panel{position:absolute;inset:0;max-width:none;margin:0;padding:var(--space-6);display:flex;flex-direction:column;justify-content:center;background:var(--color-surface-0);z-index:1}
.stage>.loading-panel progress{max-width:var(--story-guide)}
.tour-progress{font-size:var(--text-2xs);color:var(--color-text-secondary);margin-bottom:var(--space-3);letter-spacing:var(--tracking-wide)}
@media(max-width:767px){.loading-panel{margin-top:var(--space-5)}.tour-progress{margin-bottom:var(--space-2);font-size:var(--text-3xs)}}
/* Phone guidance keeps only chapter shortcuts and actions below the app. */
@media(max-width:767px){
 :root{--story-footer:calc(var(--space-7) + var(--space-6))}
 body[data-mode=welcome] .experience-footer{display:none}
 body:not([data-mode=welcome]) :is(.guide,.explore-label,.lamp-hint){display:none!important}
 body:not([data-mode=welcome]) .stage{inset:var(--story-header) var(--space-2) calc(var(--story-footer) + var(--space-2))}
 .story-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:var(--space-5) var(--story-touch);grid-template-areas:"chapters mode" "controls controls";gap:var(--space-1);align-items:center;padding-block:var(--space-1)}
 .chapters{grid-area:chapters;position:static;transform:none;justify-content:flex-start;gap:var(--space-2)}
 .mode-button{grid-area:mode;justify-self:end;min-height:var(--space-5);padding:0}
 .journey-controls{grid-area:controls;display:flex;gap:var(--space-2);margin:0}
 .journey-controls .icon-button{min-width:var(--story-touch);height:var(--story-touch)}
 .journey-controls .next-button{flex:1;min-width:0;min-height:var(--story-touch);justify-content:space-between}
 body[data-mode=explore]{--story-footer:var(--space-7)}
 body[data-mode=explore] .story-footer{display:flex;justify-content:space-between;align-items:center}
 body[data-mode=explore] .journey-controls{display:none}
}
/* Keep the next action with the explanation, including when it is collapsed. */
@media(min-width:768px){
 .story-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
 .story-footer .mode-button{justify-self:start}
 .guide{display:flex;flex-direction:column;max-height:calc(100dvh - var(--story-header) - var(--story-footer) - var(--space-6) - var(--space-2))}
 body[data-mode=story][data-step=tap] .guide{max-height:calc(100dvh - var(--story-header) - var(--story-footer) - var(--space-8) - var(--space-5) - var(--space-2))}
 .guide-top{flex-shrink:0}
 #guide-content{min-height:0;overflow-y:auto}
 .guide .journey-controls{flex-shrink:0;margin-top:var(--space-5);padding-top:var(--space-4);border-top:var(--story-rule) solid var(--story-border)}
 .guide .next-button{flex:1;min-width:0;justify-content:space-between;gap:var(--space-2);padding-inline:var(--space-4);text-align:left}
 .guide.is-collapsed .journey-controls{margin-top:var(--space-3)}
}

#sheet-body>.sheet-section:first-child{border-top:0;padding-top:0}

.brand{gap:var(--space-3)}.brand-beta{font-size:var(--text-2xs);font-weight:var(--font-weight-medium);line-height:var(--leading-tight);white-space:nowrap;color:var(--color-accent-warm);border:var(--story-rule) solid var(--story-border);border-radius:var(--radius-full);padding:var(--space-1) var(--space-2)}
@media(max-width:767px){.brand{flex-direction:column;align-items:flex-start;gap:0}.brand .brand-beta{font-size:var(--text-3xs);border:0;padding:0}}

.sheet-brand{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.sheet-brand img{flex-shrink:0}
/* The panel keeps its natural tablet proportions; text floats around real UI. */
body:not([data-mode=welcome]) .stage{inset:auto;border-radius:var(--radius-xl);transition:none}
.film-copy{position:fixed;z-index:3;pointer-events:none;width:var(--story-guide);padding:var(--space-4);border-radius:var(--radius-xl);background:radial-gradient(ellipse at center,var(--story-shade),color-mix(in srgb,var(--story-shade) 85%,transparent) 60%,transparent);text-shadow:0 var(--story-rule) var(--space-3) var(--color-surface-0)}
.film-copy .eyebrow{color:var(--color-accent-warm);font-size:var(--text-2xs);margin-bottom:var(--space-2)}
.film-copy h2{font:400 var(--text-2xl)/var(--leading-hero) var(--font-family-display);letter-spacing:var(--tracking-tight);text-wrap:balance}
.film-copy>p:last-of-type{margin-top:var(--space-3);font-size:var(--text-md);line-height:var(--leading-snug);color:var(--color-text-primary)}
.film-copy[data-place=rail]{padding:0;background:transparent;text-shadow:none}.film-copy[data-place=rail] h2{font-size:var(--text-xl)}.film-copy[data-place=rail]>p:last-of-type{font-size:var(--text-sm)}
.room-photo{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;visibility:hidden;pointer-events:none;transition:opacity calc(var(--duration-enter) * 3) var(--ease-out),visibility calc(var(--duration-enter) * 3)}
.room-photo.is-visible{opacity:1;visibility:visible}
body:not([data-mode=welcome]) .experience-footer{inset:auto auto var(--space-5) var(--story-gutter);width:var(--story-rail-width);height:auto;padding:0}
.story-footer{display:flex!important;flex-direction:column;justify-content:center;gap:var(--space-2)}.story-footer[hidden]{display:none!important}
.playback{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:var(--space-1);padding:var(--space-3) var(--space-4);width:100%;border:var(--story-rule) solid var(--glass-border);border-radius:var(--radius-xl);background:var(--glass-fill);backdrop-filter:blur(var(--glass-blur-radius)) saturate(var(--glass-saturation));box-shadow:var(--elevation-pill-shadow);overflow:hidden}
.playback button,.chapter-picker select{background:transparent;min-height:var(--story-touch);font-size:var(--text-sm);white-space:nowrap}
.play-button{text-align:left}.chapter-picker{display:flex;align-items:center;gap:var(--space-2);min-width:0;font-size:var(--text-xs)}
.chapter-picker span{color:var(--color-accent-warm);font-variant-numeric:tabular-nums}.chapter-picker select{flex:1;min-width:0;color:var(--story-ink);border:0;font-family:var(--font-family);cursor:pointer}
.chapter-picker option{background:var(--color-surface-1);color:var(--color-text-primary)}.playback .mode-button{padding:0;margin:0;font-size:var(--text-sm);min-height:var(--story-touch)}
#film-progress{position:absolute;bottom:0;left:var(--space-4);width:calc(100% - var(--space-4) * 2);height:var(--story-rule);border:0;appearance:none;background:transparent;pointer-events:none}
#film-progress::-webkit-progress-bar{background:transparent}#film-progress::-webkit-progress-value{background:var(--color-accent-warm)}#film-progress::-moz-progress-bar{background:var(--color-accent-warm)}
#playback-status{font-size:var(--text-xs);line-height:var(--leading-snug);color:var(--color-text-secondary);min-height:var(--space-4);text-align:left}
.finish-actions{display:flex;flex-wrap:wrap;gap:var(--space-3);pointer-events:auto;margin-top:var(--space-5)}.finish-actions button{font-size:var(--text-sm)}
body[data-mode=explore] .playback .chapter-picker,body[data-mode=explore] #play,body[data-mode=explore] #film-progress{display:none}
.panel-label{position:fixed;z-index:3;font-size:var(--text-xs);color:var(--color-text-secondary)}
@media(max-width:767px){
 body:not([data-mode=welcome]) .experience-footer{left:var(--space-2);right:var(--space-2);bottom:var(--space-3);width:auto}
 .playback{flex-direction:row;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-1) var(--space-3);border-radius:var(--radius-full)}
 .playback button,.chapter-picker select,.playback .mode-button{font-size:var(--text-xs)}.chapter-picker{gap:var(--space-1)}.chapter-picker select{max-width:calc(var(--space-8) * 3)}
 #playback-status{text-align:center}.film-copy{padding:var(--space-3);max-width:calc(100vw - var(--space-7))}.film-copy h2{font-size:var(--text-xl)}.film-copy>p:last-of-type{font-size:var(--text-sm);margin-top:var(--space-2)}
 body[data-wall=false] .film-copy{padding:0;background:transparent}
}
@media(prefers-reduced-motion:reduce){.room-photo{transition:none}}
body[data-takeover=true] .film-copy,body[data-takeover=true] .room-photo{opacity:0;visibility:hidden}
