/* NEXPLATE 3D experience */
.x3d{background:radial-gradient(ellipse at 70% 30%,#fff 0%,var(--paper) 55%,#efede6 100%) fixed}
.x3d header{position:sticky;top:0;background:rgba(249,248,244,.84);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#scene{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;display:block;opacity:0;transition:opacity 1.2s ease}
#scene.ready{opacity:1}
.x3d main,.x3d footer{position:relative;z-index:1}
.x3d footer{background:var(--paper);padding-top:40px}
.progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:20;pointer-events:none}
.progress span{display:block;height:100%;width:0;background:var(--orange)}
.stage{min-height:100vh;display:flex;align-items:center;padding:0 5%}
.stage.final{min-height:90vh}
.panel{max-width:470px;padding:34px 36px;border-radius:14px;background:rgba(255,255,255,.8);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 20px 60px #17242d14;border:1px solid #ffffffaa}
.panel.right{margin-left:auto}
.panel.center{margin:0 auto;text-align:center;max-width:620px}
.panel.center .actions{justify-content:center}
.panel h2{margin-bottom:18px}
.panel>p:not(.eyebrow){color:var(--muted)}
.hero-panel{max-width:560px;background:transparent;box-shadow:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding-left:0}
.scroll-hint{margin-top:34px;font-size:.875rem;color:var(--muted)}
.scroll-hint b{display:inline-block;color:var(--brand-text)}
.chips{list-style:none;padding:0;margin:26px 0 0;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.chips li{padding:9px 16px;border-radius:99px;background:#fff;border:1px solid var(--line);font-size:14px;font-weight:600}
.cta3d{background:rgba(23,36,45,.94);color:#fff;border-color:#ffffff22}
.cta3d .eyebrow{color:#ffa263}
.cta3d .btn.secondary{color:#fff;border-color:#ffffff55}
@media (prefers-reduced-motion:no-preference){
.scroll-hint b{animation:np-hint 1.6s ease-in-out infinite}
.js-reveal .panel:not(.hero-panel){opacity:0;transform:translateY(40px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
.js-reveal .panel.in{opacity:1;transform:none}
}
@keyframes np-hint{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@media(max-width:700px){
.stage{align-items:flex-end;padding:0 16px 9vh}
.panel,.panel.right{margin:0;max-width:none;padding:24px}
.hero-panel{padding:24px;background:rgba(255,255,255,.8);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.stage:first-child{align-items:flex-end}
}
/* No WebGL / reduced motion: show static art instead */
.no3d #scene{display:none}
.no3d .stage{min-height:auto;padding-top:60px;padding-bottom:60px}

/* 3D hero on inner pages */
.pagehead.has3d{display:grid;grid-template-columns:1fr 1.05fr;gap:20px;align-items:center;padding-bottom:20px}
.pagehead.has3d>div>*:last-child{margin-bottom:0}
.hero3d{width:100%;height:440px;display:block;opacity:0;transition:opacity 1.2s ease;cursor:grab}
.hero3d.ready{opacity:1}
.no3d .hero3d{display:none}
.no3d .pagehead.has3d{display:block}
@media(max-width:900px){.pagehead.has3d{grid-template-columns:1fr}.hero3d{height:320px}}

/* crawlable info band under the 3D journey */
.info{background:var(--paper);padding:clamp(56px,8vw,96px) 0;position:relative;z-index:1}.info .wrap>h2{max-width:20ch;margin-bottom:var(--sp-5)}.info .tiles{margin:var(--sp-6) 0}.info .tiles a{display:inline-block;margin-top:var(--sp-3);font-size:var(--fs-sm);font-weight:700;text-decoration:underline;text-underline-offset:4px}.info .tiles a:hover{color:var(--brand-text)}.info .faq{padding-top:var(--sp-7)}

.panel h2{font-size:clamp(1.75rem,1.2rem + 1.5vw,2.5rem)}

/* mobile 3D strip: the scene is a short band under the header; the text sits below it, so nothing overlaps */
@media(max-width:700px){
#scene{top:80px;height:36vh;height:36svh}
.stage:first-child{align-items:flex-start;padding-top:calc(36vh + 12px);padding-top:calc(36svh + 12px);padding-bottom:5vh}
.hero-panel{padding:18px 20px}
.hero-panel .eyebrow{margin-bottom:12px}
.hero-panel .lead{margin:14px 0 18px;font-size:1rem}
.hero-panel h1{font-size:clamp(2.1rem,9.5vw,2.6rem)}
}

@media(max-width:700px){.hero-panel .eyebrow{letter-spacing:.08em}}
@media(max-width:700px) and (max-height:760px){#scene{height:28vh;height:28svh}.stage:first-child{padding-top:calc(28vh + 10px);padding-top:calc(28svh + 10px)}.hero-panel{padding:14px 18px}.hero-panel .lead{margin:10px 0 14px}.hero-panel h1{font-size:clamp(1.9rem,8.6vw,2.3rem)}}

@media(max-width:700px) and (max-height:660px){#scene{height:24vh;height:24svh}.stage:first-child{padding-top:calc(24vh + 8px);padding-top:calc(24svh + 8px)}}

/* mobile stage panels under the strip */
@media(max-width:700px){.stage[data-stage="1"],.stage[data-stage="2"],.stage[data-stage="3"]{align-items:flex-start;padding-top:calc(80px + 36vh + 12px);padding-top:calc(80px + 36svh + 12px);padding-bottom:16px}}
@media(max-width:700px) and (max-height:760px){.stage[data-stage="1"],.stage[data-stage="2"],.stage[data-stage="3"]{padding-top:calc(80px + 28vh + 10px);padding-top:calc(80px + 28svh + 10px)}}
@media(max-width:700px) and (max-height:660px){.stage[data-stage="1"],.stage[data-stage="2"],.stage[data-stage="3"]{padding-top:calc(80px + 24vh + 8px);padding-top:calc(80px + 24svh + 8px)}}

/* static product visuals: shown while the 3D scene loads, if it fails, or on slow connections - never a blank area */
.hero-fallback{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:min(42vw,680px);margin:0;transition:opacity .7s ease,visibility .7s}
.hero-fallback img{display:block;width:100%;height:auto}
.stage[data-stage="0"]{position:relative}
.scene-ready .hero-fallback{opacity:0;visibility:hidden;pointer-events:none}
.stage-fallback{display:none;margin:0}
.frame{background:#151c21;border-radius:18px;padding:10px;box-shadow:0 24px 50px #17242d22}
.frame img{display:block;width:100%;height:auto;border-radius:10px}
figcaption{font-size:var(--fs-sm);color:var(--muted);margin-top:var(--sp-3)}
figcaption b{color:var(--ink)}
.no3d .stage[data-stage="0"]{min-height:100vh;padding-top:0;padding-bottom:0}
:is(.no3d,.scene-late) .stage:is([data-stage="1"],[data-stage="2"],[data-stage="3"]){display:grid;grid-template-columns:minmax(0,470px) minmax(0,1fr);gap:48px;align-items:center;min-height:auto;padding:56px 5%}
:is(.no3d,.scene-late) .stage[data-stage="2"]{grid-template-columns:minmax(0,1fr) minmax(0,470px)}
:is(.no3d,.scene-late) .stage[data-stage="2"] .stage-fallback{order:-1}
:is(.no3d,.scene-late) .stage-fallback{display:block}
:is(.no3d,.scene-late) .panel.right{margin-left:0}
/* product preview section (always visible, crawlable) */
.preview{padding-bottom:clamp(40px,6vw,72px)}
.preview>h2{margin-bottom:var(--sp-4)}
.preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-6);margin-top:var(--sp-6);align-items:start}
.preview-grid figure{margin:0}
/* inner-page hero while the scene loads: a soft orb instead of an empty box */
.hero3d:not(.ready){background:radial-gradient(circle at 62% 46%,#ffc46b 0,#ffa95a 14%,#f9c58e 22%,transparent 23%)}
@media(max-width:900px){
.preview-grid{grid-template-columns:1fr}
:is(.no3d,.scene-late) .stage:is([data-stage="1"],[data-stage="2"],[data-stage="3"]),:is(.no3d,.scene-late) .stage[data-stage="2"]{grid-template-columns:1fr;gap:24px;padding:40px 16px}
:is(.no3d,.scene-late) .stage[data-stage="2"] .stage-fallback{order:0}
}

/* ===== stacked layout for phones AND tablets (< 1200px): 3D strip under the header, text directly below ===== */
:root{--hdr:100px;--strip:36vh;--strip:36svh}
@media(max-width:700px){:root{--hdr:80px}}
@media(max-height:760px){:root{--strip:28vh;--strip:28svh}}
@media(max-height:660px){:root{--strip:24vh;--strip:24svh}}
@media(max-width:1199px){
#scene{top:var(--hdr);height:var(--strip)}
.stage[data-stage="0"]{align-items:flex-start;padding:calc(var(--strip) + 12px) 16px 5vh;min-height:100vh}
.stage:is([data-stage="1"],[data-stage="2"],[data-stage="3"]){align-items:flex-start;padding:calc(var(--hdr) + var(--strip) + 12px) 16px 16px;min-height:100vh}
.panel,.panel.right{margin:0 auto;max-width:640px}
.hero-panel{padding:18px 22px;max-width:640px;background:rgba(255,255,255,.8);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid #ffffffaa;box-shadow:0 20px 60px #17242d14}
.hero-panel .eyebrow{margin-bottom:12px;letter-spacing:.08em}
.hero-panel .lead{margin:14px 0 18px;font-size:1rem}
.hero-panel h1{font-size:clamp(2.1rem,7vw,3rem)}
.scroll-hint{display:none}
.stage[data-stage="0"] .hero-fallback{position:absolute;left:0;right:0;top:12px;height:calc(var(--strip) - 12px);width:auto;margin:0;transform:none;display:flex;justify-content:center}
.stage[data-stage="0"] .hero-fallback img{height:100%;width:auto;max-width:100%;object-fit:contain}
.no3d .stage[data-stage="0"]{padding-top:12px;min-height:auto;flex-direction:column;align-items:center}
.no3d .stage[data-stage="0"] .hero-panel{width:100%}
.no3d .stage[data-stage="0"] .hero-fallback{position:static;height:auto;margin:16px auto 0;display:block;width:min(90%,560px)}
.no3d .stage[data-stage="0"] .hero-fallback img{height:auto;width:100%}
}

/* full-bleed footer: an opaque band edge to edge so the fixed 3D canvas can never show through beside the content */
.x3d footer.wrap{width:100%;max-width:none;margin:0;padding-left:max(5%,calc((100% - 1280px) / 2));padding-right:max(5%,calc((100% - 1280px) / 2));background:var(--paper);position:relative;z-index:1}
