/* One continuous construction story. The canvas contains real geometry. */
.construction-story{height:540vh;height:540svh;background:#0b1820;color:#eae7df;position:relative;isolation:isolate;scroll-margin-top:0}
.construction-stage{position:sticky;top:0;height:100vh;height:100svh;min-height:650px;overflow:hidden;background:radial-gradient(ellipse at 65% 55%,#233842 0%,#101f29 48%,#0b1820 80%)}
.construction-stage:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0b1820f5 0%,#0b182077 26%,transparent 47%),linear-gradient(0deg,#0b1820 0%,transparent 16%);z-index:1}
#construction-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;cursor:grab;outline-offset:-4px}
#construction-canvas:active{cursor:grabbing}
.construction-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.65}
.construction-heading{position:absolute;z-index:2;top:5vh;left:var(--pad);right:var(--pad);display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.construction-heading .eyebrow{color:#b4c1c6;font-size:9px}.construction-heading h2{font-size:clamp(28px,3vw,51px);margin-top:12px;line-height:1.12;max-width:650px}.construction-heading h2 em{color:#8499a5}
.construction-index{color:#8296a3;font-size:12px;padding-top:15px}.construction-index b{font-size:37px;color:#eae7df;font-weight:400}
.construction-copy{position:absolute;z-index:2;left:var(--pad);top:41%;width:25%;max-width:340px;pointer-events:none}
.construction-copy .eyebrow{color:#c89460;font-size:8px}.construction-copy h3{font-size:clamp(24px,2.65vw,43px);margin:17px 0 20px;line-height:1.13}.construction-copy>p:not(.eyebrow){color:#9cafb9;font-size:12px;line-height:1.95;max-width:290px}.construction-copy a{margin-top:19px;pointer-events:auto;color:#d4dce0;font-size:10px;gap:25px}
.construction-tools{position:absolute;z-index:3;right:var(--pad);top:30%;display:flex;flex-direction:column;gap:9px}.construction-tools button{width:38px;height:38px;border:1px solid #52616a70;border-radius:50%;color:#c2cfd6;background:#101e2780;font-size:17px}.construction-tools button:hover{border-color:#c48851;color:#e0b282}
.construction-coordinates{position:absolute;z-index:2;right:var(--pad);bottom:178px;display:flex;align-items:center;gap:11px;font-size:7px;color:#7a929f;letter-spacing:.12em;pointer-events:none}.construction-coordinates i{width:6px;height:6px;background:#c48851;border-radius:50%}
.construction-bottom{position:absolute;bottom:24px;left:var(--pad);right:var(--pad);z-index:3}.construction-status{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:8px;letter-spacing:.09em;color:#a5b6c0;margin-bottom:13px}.construction-status>span:last-child{text-align:right;color:#718a99;font-size:7px;max-width:360px;line-height:1.7}
.construction-scrub{width:100%;height:2px;margin:10px 0 22px;appearance:none;background:linear-gradient(to right,#c48851 var(--progress,0%),#3c4d58 var(--progress,0%));display:block;cursor:ew-resize;accent-color:#c48851}.construction-scrub::-webkit-slider-thumb{appearance:none;width:10px;height:10px;background:#e1bb90;border-radius:50%;box-shadow:0 0 16px #c4885166}.construction-scrub:focus-visible{outline:2px solid #c48851;outline-offset:7px}
.construction-chapters{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}.construction-chapters button{text-align:left;color:#748b98;padding:0;display:flex;align-items:center;gap:14px;transition:color .3s}.construction-chapters button[aria-pressed=true]{color:#f0e4d3}.construction-chapters button small{font-size:8px;color:#bd8957}.construction-chapters button span{font-size:11px}.construction-chapters button[aria-pressed=true] span:after{content:' ↗';color:#c48851}
.construction-replay{font-size:9px!important;color:#d9b893!important;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.story-bridge{background:#111e26;color:#dce1df;padding:34px var(--pad);display:flex;align-items:center;justify-content:space-between;gap:35px;border-bottom:1px solid #33414a}.story-bridge>p{font-size:clamp(18px,2vw,28px);letter-spacing:-.025em}.story-bridge>p span{color:#8399a6}.story-bridge a{font-size:10px;white-space:nowrap;border-bottom:1px solid #c48851;padding-bottom:9px}
.construction-story.no-webgl .construction-tools,.construction-story.no-webgl .construction-coordinates{display:none}.construction-story.no-webgl .construction-stage:after{background:linear-gradient(90deg,#0b1820f0,#0b182033)}
@media(max-width:1000px) and (min-width:761px){.construction-copy{width:28%}.construction-copy h3{font-size:30px}.construction-copy>p:not(.eyebrow){font-size:11px}.construction-heading h2{font-size:34px}.construction-chapters{gap:16px}.construction-chapters button span{font-size:9px}}
@media(max-width:760px){.construction-story{height:430vh;height:430svh}.construction-stage{min-height:660px}.construction-stage:after{background:linear-gradient(180deg,#0b1820 0%,transparent 29%,transparent 56%,#0b1820dc 69%,#0b1820 86%)}.construction-heading{top:25px}.construction-heading .eyebrow{font-size:7px}.construction-heading h2{font-size:28px;max-width:280px;line-height:1.15}.construction-index{font-size:8px;padding-top:0}.construction-index b{font-size:27px}.construction-copy{left:var(--pad);right:var(--pad);top:auto;bottom:173px;width:auto;max-width:none}.construction-copy .eyebrow{font-size:6px}.construction-copy h3{font-size:24px;margin:8px 0 11px;line-height:1.12}.construction-copy h3 br{display:none}.construction-copy>p:not(.eyebrow){font-size:10px;line-height:1.7;max-width:450px}.construction-copy a{margin-top:7px;font-size:8px;padding:7px 0}.construction-copy a span{font-size:14px}.construction-tools{right:var(--pad);top:27%;gap:7px}.construction-tools button{width:30px;height:30px;font-size:14px}.construction-coordinates{display:none}.construction-bottom{bottom:23px}.construction-status{align-items:flex-start;gap:14px;font-size:6px;margin-bottom:10px}.construction-status>span:last-child{font-size:5.5px;max-width:175px}.construction-scrub{margin:12px 0 23px}.construction-chapters{grid-template-columns:repeat(2,1fr);gap:15px 10px}.construction-chapters button{gap:10px}.construction-chapters button span{font-size:9px}.construction-chapters button small{font-size:6px}.story-bridge{display:block;padding:25px var(--pad)}.story-bridge>p{font-size:22px;line-height:1.35}.story-bridge a{display:inline-block;margin-top:20px;font-size:9px}.hero-sub a{max-width:220px}}
@media(prefers-reduced-motion:reduce){.construction-story{height:auto}.construction-stage{position:relative;height:900px}.construction-chapters button{transition:none}}
@media(max-width:760px) and (prefers-reduced-motion:reduce){.construction-stage{height:800px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
h1,h2,h3{word-spacing:.07em}
.construction-copy h3{letter-spacing:-.04em;word-spacing:.06em}
.construction-chapters button,.construction-tools button{min-height:32px}
.capture-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:0;transform:perspective(1500px) rotateX(var(--capture-y,0deg)) rotateY(var(--capture-x,0deg)) scale(1.012)}
.capture-finish{opacity:0}.baked-active #construction-canvas{transform:perspective(1500px) rotateX(var(--capture-y,0deg)) rotateY(var(--capture-x,0deg)) scale(1.012);cursor:default}
.baked-active .construction-tools{display:none}
.baked-active .construction-stage:after{background:linear-gradient(90deg,#0b1820f5 0%,#0b1820be 19%,#0b182045 37%,transparent 56%),linear-gradient(0deg,#0b1820 0%,transparent 22%,transparent 76%,#0b182077)}
@media(max-width:760px){.baked-active .capture-background{height:auto;aspect-ratio:1.777;top:25%;bottom:auto;object-fit:cover;object-position:center;mask-image:linear-gradient(0deg,transparent,#000 15%,#000 85%,transparent)}.baked-active .construction-stage:after{background:linear-gradient(180deg,#0b1820 0%,#0b182099 20%,transparent 32%,transparent 52%,#0b1820ed 65%,#0b1820 80%)}}
@media(prefers-reduced-motion:reduce){.baked-active #construction-canvas,.capture-background{transform:none!important}}
.no-webgl .capture-background{display:none}
/* Engineering graph paper: fine squares and a stronger line every five cells. */
.construction-stage{background-color:#0c202b;background-image:linear-gradient(#96bed32b 1px,transparent 1px),linear-gradient(90deg,#96bed32b 1px,transparent 1px),linear-gradient(#96bed30c 1px,transparent 1px),linear-gradient(90deg,#96bed30c 1px,transparent 1px);background-size:50px 50px,50px 50px,10px 10px,10px 10px;background-position:center center}
.baked-active .capture-background:not(.capture-finish){display:none}
.baked-active .capture-finish{mask-image:radial-gradient(ellipse 54% 42% at 64% 57%,#000 42%,transparent 100%)}
.construction-stage:after,.baked-active .construction-stage:after,.construction-story.no-webgl .construction-stage:after{background:linear-gradient(90deg,#0b182088 0%,transparent 40%),linear-gradient(0deg,#0b1820b3 0%,transparent 24%,transparent 80%,#0b182022)}
@media(max-width:760px){.construction-stage{background-size:40px 40px,40px 40px,8px 8px,8px 8px}.baked-active .capture-finish{mask-image:radial-gradient(ellipse 60% 55% at 50% 55%,#000 40%,transparent 100%)}.construction-stage:after,.baked-active .construction-stage:after{background:linear-gradient(180deg,#0b182044,transparent 28%,transparent 49%,#0b182066 68%,#0b1820aa)}}
