:root{--assembly-header:80px}
html{scroll-padding-top:var(--assembly-header)}
/* Full-bleed opening; the photo covers the viewport under the navigation. */
.smart-hero{height:calc(100svh - var(--assembly-header));min-height:520px;max-height:none;width:100%;overflow:hidden}
.smart-hero>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:74% center}
.smart-hero h1{font-size:clamp(4rem,9vw,9.5rem)}
.smart-hero:after{background:linear-gradient(90deg,#10253591,transparent 70%)}
#assembly,#after-assembly{scroll-margin-top:0}
.restored-story{height:1400svh}
.restored-story .construction-pin{top:var(--assembly-header);height:calc(100svh - var(--assembly-header));min-height:0;max-height:none;padding:20px clamp(20px,4vw,64px) 16px}
.restored-story .construction-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
.restored-story .construction-copy{display:grid;grid-template-columns:1fr 1fr;gap:36px;max-width:none;padding:20px 0 0;flex:none}
.restored-story .construction-copy h2{font-size:clamp(1.9rem,3.2vw,3.3rem);margin:8px 0 16px}
.restored-story .construction-copy p{margin:0;font-size:1rem;line-height:1.45}
.restored-story .construction-copy .eyebrow{font-size:.875rem;text-transform:uppercase}
.restored-story .construction-copy p.story-material-note{margin-top:10px;padding:0;border:0;font-size:.875rem;line-height:1.4;color:#607367}
.restored-story .construction-figure{flex:1;min-height:100px}
.restored-story .construction-canvas{min-height:0;height:calc(100% - 25px)}
.restored-story .construction-figure .panel-material-scene{height:calc(100% - 25px)!important;pointer-events:none}
.restored-story .construction-figure figcaption{font-size:.8rem;height:20px;margin:0;text-align:center}
.restored-story .story-chapters{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px;margin-top:6px}
.restored-story .story-chapters button{font-size:.875rem;min-height:42px;line-height:1.2;padding:8px 0;white-space:normal}
.restored-story .story-top{font-size:.875rem;padding-bottom:12px;letter-spacing:.06em}
.restored-story .story-stage-controls button{font-size:.875rem;min-height:36px}
.restored-story input[type=range]{min-width:0;width:100%;touch-action:pan-x}
.restored-story .construction-fallback{object-fit:contain}
@media(max-width:760px){
 :root{--assembly-header:76px}
 .smart-hero{height:calc(100svh - var(--assembly-header));min-height:480px}.smart-hero>img{object-position:64% center}.smart-hero h1{font-size:clamp(3.4rem,13vw,5rem)}
 #assembly,#after-assembly{scroll-margin-top:0}
 .restored-story .construction-pin{top:var(--assembly-header);height:calc(100svh - var(--assembly-header));padding:12px 18px}
 .restored-story .story-top{font-size:.75rem;letter-spacing:0;gap:12px}.restored-story .story-top a{font-size:.8rem;white-space:nowrap}
 .restored-story .construction-copy{display:block;padding-top:14px}.restored-story .construction-copy h2{font-size:1.9rem;margin:7px 0 10px}.restored-story .construction-copy .eyebrow{font-size:.8rem}
 .restored-story .construction-copy p{font-size:1rem;line-height:1.4}.restored-story .construction-copy p.story-material-note{display:block;font-size:.8rem;margin-top:7px}
 .restored-story .story-chapters{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 10px;margin-top:2px}.restored-story .story-chapters button{font-size:.8rem;min-height:36px;padding:5px 0}
 .restored-story .story-chapters button:last-child{grid-column:span 4}.restored-story .construction-figure figcaption{font-size:.7rem}
 .restored-story .construction-controls{padding-top:0}
}
@media(max-width:360px){.restored-story .construction-pin{padding-inline:12px}.restored-story .construction-copy h2{font-size:1.65rem}.restored-story .construction-copy p.story-material-note{display:none}.restored-story .story-top span{max-width:170px}}
@media(max-height:650px) and (min-width:761px){.restored-story .construction-pin{padding-block:10px}.restored-story .construction-copy{padding-top:10px}.restored-story .construction-copy h2{font-size:1.8rem;margin-bottom:6px}.restored-story .construction-copy p.story-material-note{display:none}.restored-story .story-top{padding-bottom:7px}.restored-story .story-chapters button{min-height:32px}}
@media(prefers-reduced-motion:reduce){.restored-story{height:auto}.restored-story .construction-pin{position:relative;top:0;min-height:650px;height:calc(100svh - var(--assembly-header))}}

@media(max-width:360px){.restored-story[data-stage="8"] .construction-copy p.story-material-note{display:block;font-size:.7rem}}
