/* Entrance assembly followed by the reversible, scroll-driven studio scene. */
.home-masthead{--studio-height:clamp(600px,calc(100svh - var(--site-header-offset,96px) - 28px),820px);--studio-travel:500px;position:relative;isolation:isolate;overflow:clip;background:#f0eee8;padding-bottom:32px}
.home-masthead:before{display:none}
.studio-story{position:relative;height:calc(var(--studio-height) + var(--studio-travel))}
.studio-stage{position:sticky;top:var(--site-header-offset,96px);height:var(--studio-height);isolation:isolate}
.studio-environment{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 75% 35%,#fffefb 0,#fcfaf755 35%,transparent 58%),radial-gradient(ellipse at 85% 80%,#f0bd9b2b,transparent 46%),linear-gradient(115deg,#f8f7f3 0,#eeebe3 65%,#dedfd9 100%)}
.studio-beam{position:absolute;inset:-35% -20%;transform:rotate(-23deg);background:linear-gradient(90deg,transparent 34%,#ffffff48 36%,#ffffff90 43%,transparent 46%,transparent 64%,#f9fbf780 66%,#fff9 72%,transparent 74%);filter:blur(7px)}
.studio-floor{position:absolute;inset:61% -15% -25%;border-radius:50% 50% 0 0/18% 18% 0 0;background:linear-gradient(180deg,#ffffff50,#e1ded4bb 40%,#f0eee8 82%);box-shadow:0 -16px 90px #ffffff70;transform:rotate(-3deg)}
.studio-word{position:absolute;right:3%;top:15%;font-size:clamp(90px,11vw,180px);line-height:.9;font-weight:750;letter-spacing:-.065em;color:#7a817c0b;white-space:nowrap;user-select:none}
.home-masthead .hero{height:100%;grid-template-columns:.87fr 1.13fr;gap:24px;padding:22px 56px 28px;align-items:center;position:relative}
.home-masthead .hero-copy{position:relative;z-index:2;min-width:0;padding:0 0 8px}
.home-masthead .hero-description{max-width:440px}
.home-masthead .hero-description br{display:none}
.home-masthead .hero-search{flex-wrap:nowrap}
.home-masthead .hero-search input{width:100%;border:0;background:transparent}
.home-masthead .hero-search .button{width:auto}
.studio-scroll-cue{display:flex;align-items:center;gap:11px;margin-top:34px;font-size:10px;color:var(--muted,#686e64)}
.scroll-cue-icon{display:grid;place-items:center;width:27px;height:36px;border:1px solid #acb6aa8c;border-radius:16px;color:var(--muted,#6a7260);font-size:17px}
.scroll-cue-icon:empty:before{content:'';width:2px;height:8px;background:currentColor;border-radius:2px}
.engine-progress{display:block;position:relative;width:48px;height:2px;background:#9caa8b45;margin-left:5px;flex-shrink:0;overflow:hidden}
.engine-progress-fill{display:block;width:100%;height:100%;background:var(--accent,#c94520);transform:scaleX(0);transform-origin:left}
.engine-story{min-width:0;width:100%}
.engine-scene.hero-visual{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);justify-content:stretch;justify-items:stretch;position:relative;isolation:isolate;min-width:0;min-height:0;height:calc(var(--studio-height) - 50px);max-height:none;aspect-ratio:auto;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink,#343a35)}
.engine-scene.hero-visual:before,.engine-scene.hero-visual:after{display:none}
.engine-scene-head{display:flex;align-items:center;justify-content:center;position:relative;z-index:3;height:24px}
.engine-scene-head>span{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:.17em;font-weight:600;color:#6b7068}
.engine-indicator{width:5px;height:5px;border-radius:50%;background:var(--accent,#c94520)}
.engine-viewport{position:relative;min-height:0;height:100%;width:100%;min-width:0;overflow:visible;cursor:default;touch-action:pan-y}
.engine-viewport canvas{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;outline:none;pointer-events:none}
.engine-floor-shadow{position:absolute;z-index:0;bottom:8%;left:21%;width:62%;height:7%;border-radius:50%;background:#4a504455;filter:blur(20px);opacity:calc(.65 - var(--engine-open,0)*.25);transform:scaleX(calc(1 - var(--engine-open,0)*.2));pointer-events:none}
.engine-fallback{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;mix-blend-mode:multiply;z-index:1;visibility:hidden}
.engine-scene[data-ready=fallback] .engine-fallback{visibility:visible}
.engine-scene[data-ready=fallback] canvas{display:none}
.engine-fallback-note{font-size:11px;color:#5c6558;text-align:center;padding:8px 15px;position:absolute;bottom:34px;left:0;right:0;background:#f8f7f1dd;border-radius:10px}
.engine-scene-footer{display:flex;align-items:center;justify-content:center;gap:20px;position:relative;padding:12px 0 0;font-size:9px;color:#69725f;line-height:1.6}
.engine-scene-footer a{font-size:10px;color:#505d44;padding:2px 0;border-bottom:1px solid #b9c1ad}
.engine-scene-footer a:hover{color:var(--accent,#ad3515)}
@media(min-width:1700px){.home-masthead .hero{grid-template-columns:.8fr 1.2fr}}
@media(max-width:1150px) and (min-width:901px){.home-masthead .hero{grid-template-columns:.95fr 1.05fr;gap:12px;padding-inline:32px}.home-masthead .hero-search .search-icon{display:none}.home-masthead .hero-search input{padding-left:10px}.engine-scene-footer{gap:10px;font-size:8px}}
@media(max-width:900px){
 .home-masthead{--studio-travel:240px;--engine-height:min(520px,calc(100svh - var(--site-header-offset,96px) - 28px));padding-bottom:25px}
 .studio-story{height:auto}.studio-stage{position:relative;top:0;height:auto}
 .studio-environment{background:radial-gradient(ellipse at 60% 52%,#fffcf5 0,transparent 42%),radial-gradient(ellipse at 90% 62%,#edb3881a,transparent 42%),linear-gradient(140deg,#f7f6f1,#e7e5dc 65%,#f0eee8)}
 .studio-beam{inset:-10% -85%;transform:rotate(-19deg)}.studio-word{top:47%;right:4%;font-size:14vw}.studio-floor{top:58%}
 .home-masthead .hero{height:auto;grid-template-columns:1fr;gap:24px;padding:28px 24px 30px}
 .home-masthead .hero-copy{padding:0;max-width:620px;width:100%;margin:0 auto}
 .home-masthead .hero h1 .desktop-break{display:none}
 .home-masthead .hero-description{max-width:480px}
 .home-masthead .hero-search{max-width:none}
 .home-masthead .hero-search input{font-size:16px;padding-left:3px}
 .home-masthead .hero-bottom{max-width:none}
 .studio-scroll-cue{margin-top:24px;font-size:10px}.scroll-cue-icon{width:23px;height:30px;font-size:16px}
 .engine-story{height:calc(var(--engine-height) + var(--studio-travel));max-width:650px;margin:auto}
 .engine-scene.hero-visual{position:sticky;top:calc(var(--site-header-offset,96px) + 12px);height:var(--engine-height)}
 .engine-scene-head>span{font-size:8px}
 .engine-scene-footer{font-size:9px;gap:15px}
}
@media(max-width:540px){.home-masthead{--engine-height:min(440px,calc(100svh - var(--site-header-offset,96px) - 28px))}.home-masthead .hero{padding-inline:18px}.engine-scene-footer{font-size:8px;gap:12px}.engine-scene-footer a{font-size:9px}.studio-word{top:50%;font-size:16vw}.engine-floor-shadow{bottom:11%;filter:blur(14px)}.home-masthead .hero-search .search-icon{display:none}.home-masthead .hero-search input{padding-left:8px}}
@media(max-width:380px){.home-masthead .hero-search .button{min-width:72px;padding-left:10px;padding-right:10px}.home-masthead .hero-search input{font-size:14px}.engine-scene-footer{flex-wrap:wrap;gap:3px 12px;font-size:8px}.engine-scene-head>span{font-size:7px}}
.studio-story[data-engine-fallback=true]{height:auto}
.studio-story[data-engine-fallback=true] .studio-stage{position:relative;top:0}
.studio-story[data-engine-fallback=true] .engine-story{height:auto}
.studio-story[data-engine-fallback=true] .studio-scroll-cue{display:none}
.studio-story[data-engine-fallback=true] .engine-scene{position:relative;top:0}
@media(prefers-reduced-motion:reduce){.studio-story{height:auto}.studio-stage{position:relative;top:0}.engine-story{height:auto}.studio-scroll-cue{display:none}.engine-scene.hero-visual{position:relative;top:0}.engine-progress-fill{transition:none}}
