/* Full-bleed CAD environment. The static render is the hero backdrop, never a card. */
html body.v3-home #v3-intro.v4-3d-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;box-sizing:border-box;min-height:calc(var(--v4-header-height,210px) + clamp(560px,43vw,820px));height:auto;padding:calc(var(--v4-header-height,210px) + clamp(65px,6vw,115px)) 3vw 0;overflow:hidden;background:#0c1a29;color:#e4f2fa}
body.v3-home #v3-intro .v4-3d-stage{position:absolute;inset:var(--v4-header-height,210px) 0 0;display:block;width:100%;height:auto;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:#0c1a29;color:#def4ff;cursor:pointer;z-index:-1;overflow:hidden;box-shadow:none;appearance:none}
.v4-scene-environment{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% 50%;pointer-events:none}
.v4-scene-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(6,19,31,.84) 0,rgba(6,19,31,.5) 33%,transparent 67%),linear-gradient(0deg,#0c1a29 0,rgba(12,26,41,.6) 10%,transparent 45%)}
.v4-scene-model{position:absolute;right:-8%;top:-12%;width:80%;height:112%;object-fit:contain;pointer-events:none;filter:drop-shadow(4px 12px 18px #06121f77);transform:translate3d(calc(var(--scene-x,0px)*.6),calc(var(--scene-y,0px)*.6),0);transition:opacity .4s,filter .5s;will-change:transform}
.v4-scene-shadow{position:absolute;right:9%;bottom:23%;width:39%;height:3%;border-radius:50%;background:#020910;filter:blur(16px);opacity:.58;pointer-events:none}
.v4-scene-beam{position:absolute;left:28%;right:-20%;bottom:20%;height:1px;opacity:.6;background:linear-gradient(90deg,transparent,#9ee7fa99,transparent);box-shadow:0 0 12px #87defa66;transform:rotate(-15deg);pointer-events:none}
.v4-scene-beam:after{content:'';position:absolute;left:0;top:-1px;width:15%;height:2px;background:linear-gradient(90deg,transparent,#d9f9ff,transparent);animation:v4-scene-flow 9s linear infinite;box-shadow:0 0 18px #9feaff}
@keyframes v4-scene-flow{0%{transform:translateX(-100%);opacity:0}10%,80%{opacity:.8}100%{transform:translateX(800%);opacity:0}}
.v4-scene-focal{position:absolute;right:8%;top:16%;font:10px Arial,sans-serif;color:#94bbc9;letter-spacing:.14em;display:flex;align-items:center;gap:14px;pointer-events:none}.v4-scene-focal:before{content:'';width:28px;height:1px;background:#7cd6eb}
.v4-scene-activate{position:absolute;right:17%;bottom:29%;display:flex;align-items:center;gap:12px;color:#c9e9f3;font-size:13px;letter-spacing:.02em;pointer-events:none}.v4-scene-activate>span:first-child{width:42px;height:42px;border:1px solid #93d1e777;border-radius:50%;display:grid;place-items:center;background:#0c20334d;backdrop-filter:blur(8px);font:23px Arial,sans-serif;transition:background .3s,box-shadow .3s}.v4-3d-stage:hover .v4-scene-activate>span:first-child{background:#2b576c;box-shadow:0 0 24px #9cecff33}
body.v3-home #v3-intro .v4-3d-copy{position:relative;z-index:1;width:50%;max-width:800px;margin:0 0 65px;pointer-events:none}
.v4-3d-eyebrow{display:flex;align-items:center;gap:15px;color:#b7d6e4;font-size:11px;letter-spacing:.2em;line-height:1.5}.v4-3d-eyebrow:before{content:'';width:5px;height:5px;background:#a7eeff;box-shadow:0 0 15px #7de0ff}
body.v3-home #v3-intro .v4-3d-copy h1{font-size:clamp(45px,6.3vw,116px);font-weight:400;letter-spacing:-.065em;line-height:1.02!important;margin:27px 0 24px;text-shadow:0 4px 35px #06111e66}.v4-3d-copy h1>span{color:#b4cbd7}
body.v3-home #v3-intro .v4-3d-copy p{font-size:clamp(16px,1.3vw,22px)!important;line-height:1.6!important;color:#c1d5e1;margin:0 0 30px;max-width:450px}
.v4-3d-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;pointer-events:auto;width:max-content;max-width:100%}.v4-3d-actions>a,.v4-3d-actions>button{display:inline-flex;align-items:center;justify-content:space-between;gap:23px;min-height:46px;padding:13px 21px;border:1px solid #94b5c555;color:#eff8ff;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.2;border-radius:0;transition:background .3s,border-color .3s,transform .3s;background:#0c203344;backdrop-filter:blur(8px)}
.v4-3d-actions .v4-3d-primary{background:#ec3034;border-color:#ec3034}.v4-3d-actions>a:hover,.v4-3d-actions>button:hover{transform:translateY(-2px);border-color:#a8e5f6}.v4-3d-contact{display:inline-block;margin-top:23px;font-size:13px;color:#c2d9e5;text-decoration:none;pointer-events:auto}
body.v3-home #v3-intro .v4-3d-controls{position:relative;z-index:1;display:flex;align-items:end;justify-content:space-between;gap:30px;width:100%!important;max-width:none!important;margin-top:auto;padding:19px 0 24px;border-top:1px solid #96c3d333}
.v4-3d-selector{display:flex;gap:28px;min-width:0}.v4-3d-selector button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:54px;padding:0 0 13px;width:180px;border:0;border-bottom:1px solid #90b8ca33;border-radius:0;background:transparent;font:inherit;font-size:14px;line-height:1.35;text-align:left;color:#8ca9bc;cursor:pointer;transition:color .3s}
.v4-3d-selector button:after{content:'';position:absolute;bottom:-1px;left:0;width:0;height:1px;background:#a4ecff;box-shadow:0 0 8px #99eaff77;transition:width .45s}.v4-3d-selector button[aria-pressed=true]{color:#e2f7ff}.v4-3d-selector button[aria-pressed=true]:after{width:34px}.v4-3d-selector button span{font-size:10px;letter-spacing:.1em;color:#a2c7da}
.v4-3d-scene-note{display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:420px;color:#bad4e2;font-size:11px;line-height:1.5;letter-spacing:.03em}.v4-3d-scene-note>span:last-child{font-size:10px;color:#85a7ba}.v4-3d-scene-note b{font-weight:400;color:#c4e6f3;letter-spacing:.1em}
.v4-3d-hero button:focus-visible,.v4-3d-hero a:focus-visible{outline:2px solid #aceeff;outline-offset:4px}.v4-3d-stage:focus-visible{outline-offset:-5px!important}
html.v4-3d-open,html.v4-3d-open body{overflow:hidden!important}.v4-3d-fullscreen{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:#0c1a29}.v4-3d-fullscreen::backdrop{background:#0c1a29}.v4-3d-fullscreen iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#0c1a29}.v4-3d-close{position:absolute;top:0;right:0;z-index:0;font:inherit;color:#dff5ff;background:#183341;padding:20px;border:0}
@media(min-width:761px) and (max-width:1100px){body.v3-home #v3-intro .v4-3d-copy{width:55%}body.v3-home #v3-intro .v4-3d-copy h1{font-size:clamp(46px,6.3vw,70px)}.v4-scene-model{width:90%;right:-17%}.v4-scene-activate{right:9%}.v4-3d-selector button{width:150px}.v4-3d-scene-note{max-width:300px}}
@media(max-width:760px){
 html body.v3-home #v3-intro.v4-3d-hero{min-height:calc(var(--v4-header-height,110px) + 570px);padding:calc(var(--v4-header-height,110px) + 28px) 22px 0}
 body.v3-home #v3-intro .v4-3d-stage{inset:var(--v4-header-height,110px) 0 0}
 .v4-scene-environment{object-position:69% 50%}.v4-scene-shade{background:linear-gradient(90deg,rgba(6,19,31,.78),rgba(6,19,31,.32) 75%,rgba(6,19,31,.12)),linear-gradient(0deg,#0c1a29,rgba(12,26,41,.8) 14%,transparent 42%)}
 body.v3-home #v3-intro .v4-3d-copy{width:100%;max-width:none;margin-bottom:215px}.v4-3d-eyebrow{font-size:9px;letter-spacing:.14em;gap:12px}
 body.v3-home #v3-intro .v4-3d-copy h1{font-size:clamp(34px,9.3vw,60px);line-height:1.02!important;margin:22px 0 16px;max-width:100%}
 body.v3-home #v3-intro .v4-3d-copy p{font-size:14px!important;line-height:1.5!important;margin:0 0 20px;max-width:270px}
 .v4-3d-actions{gap:9px}.v4-3d-actions>a,.v4-3d-actions>button{font-size:12px;min-height:41px;gap:15px;padding:11px 14px}.v4-3d-contact{font-size:12px;margin-top:15px}
 .v4-scene-model{width:115%;max-width:none!important;height:75%;right:-7%;top:22%;filter:drop-shadow(2px 8px 12px #020d1877)}.v4-scene-shadow{right:6%;bottom:20%;width:60%;height:2%;filter:blur(9px)}
 .v4-scene-beam{bottom:26%;left:-35%;right:-70%}.v4-scene-focal{right:22px;top:43%;font-size:8px;letter-spacing:.1em}.v4-scene-focal:before{width:17px}
 .v4-scene-activate{right:22px;bottom:21%;font-size:10px;gap:9px}.v4-scene-activate>span:first-child{width:34px;height:34px;font-size:19px}
 body.v3-home #v3-intro .v4-3d-controls{gap:14px;align-items:stretch;flex-direction:column;padding:15px 0 17px}
 .v4-3d-selector{gap:20px}.v4-3d-selector button{flex:1;width:auto;min-height:47px;font-size:12px;gap:7px;padding-bottom:10px}.v4-3d-selector button span{font-size:9px}
 .v4-3d-scene-note{align-items:flex-start;gap:3px;max-width:none;font-size:9px}.v4-3d-scene-note>span:last-child{font-size:9px}
}
@media(max-width:360px){body.v3-home #v3-intro .v4-3d-copy h1{font-size:32px}.v4-3d-eyebrow{font-size:8px}.v4-3d-actions>a,.v4-3d-actions>button{font-size:11px;padding:11px 12px;gap:12px}.v4-scene-focal{display:none}}
@media(prefers-reduced-motion:reduce){.v4-3d-hero *{animation:none!important;transition:none!important}.v4-scene-model{transform:none!important}}

/* Seamless entry: retain the current backdrop and animate visual UI copies away. */
.v4-3d-fullscreen.v4-3d-immersion{background:#0c1a29}.v4-3d-immersion::backdrop{background:transparent}.v4-immersion-environment{position:fixed;overflow:hidden;pointer-events:none;z-index:0;background:#0c1a29}.v4-immersion-environment>*{pointer-events:none}.v4-immersion-model{position:fixed;z-index:1;max-width:none!important;object-fit:contain;pointer-events:none;filter:drop-shadow(4px 12px 18px #06121f77)}
.v4-3d-immersion iframe.v4-immersion-viewer{position:fixed;inset:0;z-index:2;opacity:0;pointer-events:none;background:transparent!important}.v4-immersion-tools{position:fixed;right:24px;top:max(20px,env(safe-area-inset-top));z-index:5;display:flex;align-items:center;gap:10px}.v4-immersion-tools button{border:1px solid #99c3d34d;color:#d7edf6;background:#10283999;backdrop-filter:blur(10px);height:40px;min-width:40px;padding:0 15px;font:13px Arial,sans-serif;cursor:pointer;transition:opacity .4s,background .3s}.v4-immersion-tools .v4-immersion-exit{font-size:26px;line-height:1;padding:0;width:40px}.v4-immersion-tools button:hover{background:#21495e}.v4-immersion-tools button:focus-visible{outline:2px solid #acf0ff;outline-offset:4px}.v4-immersion-tools .v4-immersion-controls{opacity:0;pointer-events:none}.v4-immersion-tools[data-ready=true] .v4-immersion-controls{opacity:1;pointer-events:auto}.v4-immersion-controls[aria-expanded=true]{background:#275c70}.v4-immersion-status{position:fixed;bottom:22px;left:20px;right:20px;z-index:4;color:#bad7e5;text-align:center;font:12px Arial,sans-serif;pointer-events:none}.v4-immersion-status[hidden]{display:none}@media(max-width:760px){.v4-immersion-tools{right:18px;top:max(16px,env(safe-area-inset-top))}.v4-immersion-model{filter:drop-shadow(2px 8px 12px #020d1877)}}

/* Three views share one YS90 model. Keep selectors flexible on all screens. */
.v4-3d-selector{gap:22px;flex:1}.v4-3d-selector button{width:clamp(130px,13vw,195px);min-width:0}.v4-3d-scene-note{max-width:300px}
@media(max-width:1100px){.v4-3d-scene-note{max-width:230px}.v4-3d-selector{gap:15px}}
@media(max-width:760px){.v4-3d-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:12px}.v4-3d-selector button{width:100%;font-size:11px;overflow-wrap:break-word}.v4-3d-selector button span{font-size:8px;letter-spacing:.02em}.v4-3d-scene-note{max-width:none}}

/* Preserve the full height of the upright helm beneath the fixed header. */
@media(min-width:761px){.v4-scene-model{top:0;height:100%}}

/* A single persistent WebGL canvas is clipped to the hero while it rotates slowly. */
.v4-3d-fullscreen.v4-3d-idle{position:absolute;inset:0;width:100%;height:100%;max-height:none;z-index:0;margin:0;padding:0;background:transparent;pointer-events:none;clip-path:inset(0);overflow:hidden}
.v4-3d-idle .v4-immersion-environment,.v4-3d-idle .v4-immersion-proxy,.v4-3d-idle .v4-immersion-tools,.v4-3d-idle .v4-immersion-status{display:none!important}
.v4-3d-idle iframe.v4-immersion-viewer{pointer-events:none!important}

.v4-3d-immersion iframe.v4-immersion-viewer{color-scheme:dark}

.v4-3d-idle iframe.v4-immersion-viewer{mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent)}

/* Confirmed factory CAD: two choices share the original hero experience. */
@media(max-width:760px){.v4-3d-selector{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Catalogue choices are data driven; overflow remains within the selector rail. */
.v4-3d-selector{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.v4-3d-selector button{flex-shrink:0}@media(max-width:760px){.v4-3d-selector{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(132px,1fr)}}

/* Shared return instruction: only visible after the interactive view opens. */
.v4-immersion-return-hint{position:fixed;top:max(20px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));z-index:5;margin:0;max-width:calc(100vw - 215px);min-height:40px;display:flex;align-items:center;color:#c8e7f3;font:13px/1.4 Arial,sans-serif;letter-spacing:.015em;text-shadow:0 1px 8px #06121ddd;pointer-events:none;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .4s,transform .4s,visibility .4s}
.v4-3d-immersion[data-interactive=true] .v4-immersion-return-hint{opacity:1;visibility:visible;transform:none}
.v4-3d-idle .v4-immersion-return-hint{display:none!important}
@media(max-width:760px){.v4-immersion-return-hint{top:max(16px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));max-width:calc(100vw - 195px);font-size:11px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.v4-immersion-return-hint{transition:none}}
