@font-face{font-family:Rounded;src:url(vendor/rounded.woff2);font-display:swap}@font-face{font-family:Arvo;src:url(vendor/arvo.woff2);font-display:swap}
:root{--canvas:#0f0d08;--ink:#efe9dc;--gold:#c9a84c;--hero-shade:linear-gradient(90deg,rgba(15,13,8,.94) 0,rgba(15,13,8,.86) 36%,rgba(15,13,8,.74) 52%,rgba(15,13,8,.6) 64%,rgba(15,13,8,.34) 78%,rgba(15,13,8,.12) 92%,transparent 100%)}*{box-sizing:border-box}html{background:var(--canvas);color:var(--ink)}body{margin:0;font:16px/1.6 Arvo,Georgia,serif}a{color:inherit}button,input{font:inherit}a,button,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:5px}.stage,.scrim{position:fixed;inset:0;pointer-events:none}.stage{z-index:0;background:var(--canvas);overflow:hidden}.scene{position:absolute;width:100%;height:100%;object-fit:cover;opacity:0}.scene:nth-child(-n+2){object-position:0% 50%}.scene:first-child{opacity:1}.scrim{z-index:1;background:var(--hero-shade)}header,main{position:relative;z-index:2}header{position:absolute;top:0;left:0;width:100%;padding:28px 5vw;display:flex;justify-content:space-between;align-items:center}header a{text-decoration:none;font:800 26px Rounded,sans-serif}header a span{color:var(--gold)}.header-note{font-size:16px}.hero{height:115vh;display:flex;align-items:center;padding:100px 8vw}.hero-copy{max-width:850px;border-left:2px solid var(--gold);padding-left:32px}.eyebrow{font-size:16px;color:var(--gold)}h1,h2{font-family:Rounded,sans-serif;font-weight:800;line-height:1.08;letter-spacing:-.045em;margin:24px 0}h1{font-size:clamp(60px,6.5vw,94px)}h2{font-size:clamp(38px,4.2vw,64px)}p{max-width:560px}.word{display:inline-block;will-change:transform,opacity}.track{height:520vh}.pin{position:sticky;top:0;height:100vh;overflow:hidden}.track-label{position:absolute;top:48px;left:8vw;color:var(--gold)}.strip{display:flex;width:500%;height:100%;will-change:transform}.slide{width:20%;flex-shrink:0;padding:100px 8vw;display:flex;align-items:center}.glass{width:610px;padding:36px 40px;background:rgba(15,13,8,.82);border:1px solid #756947;border-left:2px solid var(--gold)}.glass h2{margin-top:0}.glass p{margin-bottom:0}.progress{position:absolute;bottom:38px;left:8vw;right:8vw}.line{height:2px;background:#7e7563;position:absolute;left:22px;right:22px;top:21px}.line i{display:block;height:2px;background:var(--gold);transform-origin:left;transform:scaleX(0)}.dots{display:flex;justify-content:space-between;position:relative}.dots button{width:44px;height:44px;cursor:pointer;background:transparent;border:0;display:grid;place-items:center}.dots span{width:12px;height:12px;border-radius:50%;border:2px solid var(--gold);background:var(--canvas)}.dots [aria-current=true] span{background:var(--gold);transform:scale(1.3)}.math{min-height:110vh;display:flex;align-items:center;padding:80px 8vw}.math-panel{padding:48px;display:grid;grid-template-columns:1fr 1fr;gap:60px;background:rgba(15,13,8,.98);width:100%;border-top:2px solid var(--gold)}label{display:block;margin-bottom:18px}input{display:block;background:#252117;color:var(--ink);border:1px solid #8a8272;border-radius:0;width:100%;min-height:48px;padding:10px;margin-top:6px}output{display:block;color:var(--gold);font-size:22px;min-height:80px}.formula{font-size:16px}.close{height:170vh}.close-pin{position:sticky;top:0;height:100vh;display:flex;align-items:center;padding:70px 8vw 100px}.close-copy{max-width:730px}.cta{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 32px;background:var(--gold);color:var(--canvas);text-decoration:none;margin-top:16px}.cta:hover{transform:translateY(-3px)}footer{position:absolute;bottom:24px;left:8vw}footer a{display:inline-flex;align-items:center;min-height:44px}html.lenis,html.lenis body{height:auto}.lenis-smooth{scroll-behavior:auto!important}
/* Hero copy sits above the photo (z 0) and the shade (z 1), in both motion modes. */
.hero-copy{position:relative;z-index:3}
@media(prefers-reduced-motion:reduce){.hero{position:relative}.hero>.stage,.hero>.scrim{position:absolute;inset:0}}
/* Static frame on desktop: the hero is 100svh tall here (not 115vh), so the copy sits 7.5vh lower to keep the same position as the scroll-0 frame. */
@media(min-width:601px) and (prefers-reduced-motion:reduce){.hero-copy{top:7.5vh}}
@media(max-width:600px){header{padding:20px 24px}.header-note{display:none}.hero{padding:120px 24px 40px;align-items:flex-start;height:100svh}.hero-copy{padding-left:18px;margin-bottom:7vh}h1{font-size:55px}h2{font-size:39px}.scene,.scene:nth-child(-n+2){object-position:70% center}.scrim{background:linear-gradient(180deg,rgba(15,13,8,.9) 0,rgba(15,13,8,.82) 50%,rgba(15,13,8,.4) 66%,rgba(15,13,8,.55) 84%,rgba(15,13,8,.72) 100%)}.track-label{top:28px;left:24px}.slide{padding:90px 24px 110px;align-items:flex-end}.glass{padding:24px;width:100%}.progress{left:24px;right:24px;bottom:28px}.math{padding:60px 24px}.math-panel{padding:26px 20px;grid-template-columns:1fr;gap:22px}.close-pin{padding:90px 24px 120px;align-items:flex-end}.close{height:150vh}footer{left:24px;bottom:22px}}


/* Keep the world to the open side of desktop cards and above mobile cards. */
.world{position:fixed;inset:0;z-index:1;background:var(--canvas);pointer-events:none;opacity:0;overflow:hidden}
.map{position:absolute;right:1vw;top:10vh;width:58vw;height:80vh;overflow:visible}
.route{stroke-dasharray:1;stroke-dashoffset:1}
/* A short viewport must scroll the calculator naturally, without centering surplus height. */
.math{align-items:flex-start;min-height:100vh;padding-top:72px;padding-bottom:72px}
.math-panel{align-items:start}.math-panel h2{margin-top:16px;font-size:clamp(36px,3.5vw,54px)}
@media(max-width:600px){.map{top:60px;right:0;width:100%;height:42vh}.math{padding:48px 24px}.math-panel h2{font-size:36px}.glass{background:rgba(15,13,8,.9)} }



/* Polish: the map sits above the photographic scrim; cards stay below its action. */
.world{z-index:2}main{z-index:3}
/* Header sits above main in both motion modes; at equal z-index the later main painted over the logo. */
header{z-index:5}
/* Tall desktop windows (800x1000, 1000x1200): the copy column reaches further across the frame, so the shade holds darker to its right edge. */
@media(min-width:601px) and (max-aspect-ratio:1/1){:root{--hero-shade:linear-gradient(90deg,rgba(15,13,8,.94) 0,rgba(15,13,8,.84) 50%,rgba(15,13,8,.64) 82%,rgba(15,13,8,.36) 100%)}.scene:nth-child(-n+2){object-position:72% 50%}}
.map{top:64px;right:3vw;width:94vw;height:57vh;overflow:visible}
.slide{align-items:flex-end;padding:64px 5vw 100px}
.glass{width:850px;max-width:100%;padding:20px 28px;background:rgba(15,13,8,.98)}
.glass h2{font-size:32px;margin:0 0 10px}.glass p{max-width:800px;margin:0;line-height:1.45}
.track-label{top:20px;left:5vw}.progress{bottom:20px;left:5vw;right:5vw}
.math{align-items:center;min-height:110vh}.math-panel{scroll-margin-top:48px}
@media(max-width:600px){
 .map{top:64px;right:0;width:100%;height:43vh}
 .slide{padding:60px 24px 100px}.glass{padding:20px}.glass h2{font-size:29px}
 .track-label{left:24px}.progress{left:24px;right:24px;bottom:24px}
 .math{padding:48px 24px;min-height:110vh}.math-panel{padding:20px;gap:12px}
 .math-panel h2{font-size:30px;margin:10px 0}.math-panel p{line-height:1.45;margin:12px 0}
 .math-panel .eyebrow{margin:0}.math-panel label{margin-bottom:8px;line-height:1.45}
 .math-panel input{min-height:44px;padding:7px 10px;margin-top:4px}
 .math-panel output{font-size:18px;min-height:52px;line-height:1.45}
}




header>a{display:inline-flex;align-items:center;min-height:44px}.cta{transition:transform .18s ease}
footer{display:flex;flex-wrap:wrap;gap:4px 24px;right:5vw}footer a{font-size:16px}
.close-pin{padding-bottom:140px}.field-error{display:block;color:var(--gold);font-size:16px;line-height:1.4}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.map{height:var(--map-height,55vh)}
@media(max-width:600px){.map{top:56px;height:var(--map-height,55vh)}.close-pin{padding-bottom:180px}footer{gap:0 20px}.close-copy h2{font-size:36px}}



@media(prefers-reduced-motion:reduce){
 .stage,.scrim{display:block}.scene{display:none}.scene:first-child{display:block;opacity:1!important;visibility:visible!important;transform:none!important}
 .hero{height:auto;min-height:100svh}.hero,.track,.close{height:auto}
 .pin,.close-pin{position:relative;height:auto}.strip{display:block;width:100%;transform:none!important}
 .slide{width:100%;padding:24px}.glass{width:100%;max-width:none}.progress{display:none}
 .track-label{position:relative;inset:auto;padding:24px}.track{padding:0}
 .track,.math,.close{background:var(--canvas)}.math{min-height:0}
 .world{position:relative;inset:auto;width:100%;height:auto;opacity:1!important;margin:24px 0}
 .world .map{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:1190/510}
 .word{opacity:1!important;transform:none!important}.close-pin{min-height:100svh;padding-bottom:180px}
 .cta{transition:none}
}
@media(max-width:600px) and (prefers-reduced-motion:reduce){.world .map{aspect-ratio:420/470}}


/* One sticky coordinate system: artwork above a reserved card/progress band. */
.pin{isolation:isolate}
.world{position:absolute;inset:0;z-index:0}
.map{top:48px;right:3%;width:94%;height:var(--map-height);overflow:hidden}
.strip{position:absolute;bottom:0;height:var(--card-band);z-index:1}
.slide{padding:0 5vw 100px;align-items:flex-end}
.track-label{top:18px;left:5vw;z-index:2;line-height:26px}
.progress{z-index:2}
@media(max-width:600px){.map{top:64px;right:0;width:100%;height:var(--map-height)}.slide{padding:0 24px 100px}.track-label{left:24px}}
/* Short desktop windows (under 760px tall): compact cards so the map gets the height. Mobile rules are untouched. measure() in scene.js uses the same query. */
@media(min-width:601px) and (max-height:759px){
 .slide{padding:0 5vw 64px}
 .track-label{top:12px}
 .progress{bottom:12px}
 .glass{width:780px;padding:12px 20px}
 .glass h2{font-size:22px;margin:0 0 6px}
 .glass p{font-size:15px;line-height:1.35}
}
@media(prefers-reduced-motion:reduce){
 .world{position:relative;inset:auto;z-index:0}
 .world .map{position:relative;inset:auto;height:auto;width:100%;overflow:hidden}
 .strip{position:relative;inset:auto;height:auto}.slide{padding:24px}
 .track-label{position:relative;inset:auto}
}

@media(prefers-reduced-motion:reduce){.world .map{aspect-ratio:1200/520}}
@media(max-width:600px) and (prefers-reduced-motion:reduce){.world .map{aspect-ratio:420/470}}
