/* Visual Lab v3 — scoped presentation changes. Existing data, cards and mock business flows stay intact. */
:root { --nav-height:72px; }
html { scroll-behavior:auto; }
.site-header {height:var(--nav-height);background:rgba(5,11,20,.96);backdrop-filter:blur(12px);}
.site-header .main-nav a {line-height:var(--nav-height);}
.site-header .nav-inner {max-width:1540px;padding-inline:36px;gap:28px;position:relative;}
.site-header .main-nav {gap:30px;}
.site-header .nav-tools {gap:10px;}
.nav-brand {width:164px;height:46px;display:block;overflow:hidden;position:relative;flex:none;}
.nav-brand .brand-img {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:182px;height:auto;max-width:none;}
.site-header .nav-profile {font-size:14px;}
.site-header .display-settings-trigger {width:36px;height:38px;color:#c1c6d0;}
.site-header .display-settings-trigger .icon {width:18px;height:18px;}
body[data-page="home"] #header {height:0;}
body[data-page="home"] .site-header {position:fixed;inset:0 0 auto;background:linear-gradient(180deg,rgba(3,9,18,.86),rgba(4,10,20,.45));border-bottom:0;backdrop-filter:blur(6px);transition:background .2s;}
body[data-page="home"] .site-header:after {content:"";position:absolute;bottom:0;left:8%;right:8%;height:1px;background:linear-gradient(90deg,transparent,rgba(228,199,142,.48) 20%,rgba(228,199,142,.65) 50%,rgba(228,199,142,.48) 80%,transparent);pointer-events:none;}
body[data-page="home"].past-hero .site-header {background:rgba(5,11,20,.97);backdrop-filter:blur(12px);}
body[data-page="home"] .main-nav a.active:after {height:1px;background:#efd29b;box-shadow:0 0 10px 2px #efbc6166;}

/* Whole scene is fitted, not chopped to achieve a screen-filling rectangle.
   The subtle poster extension occupies only the unused margin on non-16:9 screens. */
body[data-page="home"] .hero {height:100vh;height:100dvh;min-height:0;max-height:none;margin:0;position:relative;isolation:isolate;overflow:hidden;display:block;background:#060c18;}
body[data-page="home"] .hero:before {content:"";position:absolute;inset:-12px;z-index:-1;background-image:linear-gradient(#04091699,#040916bb),var(--hero-poster-image);background-size:cover;background-position:center;filter:blur(14px);pointer-events:none;}
body[data-page="home"] .hero-bg,body[data-page="home"] .hero-poster {inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%;}
body[data-page="home"] .hero:after {background:linear-gradient(180deg,#03091518,transparent 25%,transparent 68%,#04091430);pointer-events:none;}
body[data-page="home"] .hero-content {position:absolute;left:50%;top:47%;transform:translate(-50%,-42%);width:min(1100px,calc(100% - 64px));padding:0;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;}
body[data-page="home"] .hero-content:before {inset:-28px -52px -34px;border-radius:48%;background:radial-gradient(ellipse at 50% 50%,#050d1bea 0%,#06101ee0 34%,#06101e94 57%,transparent 76%);filter:blur(20px);z-index:-1;}
.hero-crest {display:flex;align-items:center;justify-content:center;gap:20px;height:32px;width:min(620px,70%);color:#ecd4a4;margin:0 0 13px;}
.hero-crest>span {position:relative;width:200px;height:1px;background:linear-gradient(90deg,transparent,#d0b171);}
.hero-crest>span:last-child {transform:rotate(180deg);}
.hero-crest>span:after {content:"";position:absolute;right:12px;top:-2px;width:4px;height:4px;transform:rotate(45deg);border:1px solid #ddc48f;background:#0b1521;}
.hero-crest svg {width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1;overflow:visible;filter:drop-shadow(0 0 5px #e5b77225);}
body[data-page="home"] .hero-overline {font-family:var(--title);font-size:clamp(12px,1.05vw,16px);letter-spacing:.24em;line-height:1.55;color:#f5eada;margin:0 0 22px;padding-left:.24em;text-shadow:0 2px 8px #000;white-space:nowrap;}
body[data-page="home"] .hero h1 {font-size:0;line-height:0;margin:0 0 12px;}
.hero-wordmark {display:block;position:relative;width:min(40vw,800px);aspect-ratio:5.3;overflow:hidden;filter:drop-shadow(0 4px 15px #e4b15d22);}
body[data-page="home"] .hero-logo {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:112%;height:auto;max-width:none;margin:0;filter:none;}
body[data-page="home"] .hero-tagline {font-size:clamp(21px,1.64vw,29px);line-height:1.45;letter-spacing:.075em;color:#f3eee5;font-weight:500;margin:0 0 26px;white-space:nowrap;text-shadow:0 2px 12px #000;}
html[lang="en"] body[data-page="home"] .hero-tagline {font-family:Georgia,'Times New Roman',serif;font-size:clamp(20px,1.68vw,30px);letter-spacing:0;font-weight:400;}
body[data-page="home"] .hero-actions {gap:22px;justify-content:center;flex-wrap:nowrap;}
body[data-page="home"] .hero-content .hero-cta {position:relative;isolation:isolate;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0;width:clamp(220px,18vw,322px);height:64px;min-height:64px;padding:12px 30px;font-size:clamp(16px,1.08vw,20px);font-weight:600;gap:17px;color:#211a13;filter:drop-shadow(0 5px 13px #0004);transition:filter .16s,transform .16s;}
body[data-page="home"] .hero-content .hero-cta.purple {width:clamp(208px,16vw,285px);color:#f7f2ff;}
.hero-cta:before {content:"";position:absolute;inset:2px;z-index:-1;clip-path:polygon(5% 0,95% 0,97% 12%,99% 12%,99% 36%,100% 42%,100% 58%,99% 64%,99% 88%,97% 88%,95% 100%,5% 100%,3% 88%,1% 88%,1% 64%,0 58%,0 42%,1% 36%,1% 12%,3% 12%);background:linear-gradient(110deg,#aa773a 0%,#dfb777 9%,#f1d29b 35%,#fff0c5 54%,#e5bb7d 78%,#b08248 100%);}
.hero-cta.purple:before {background:linear-gradient(110deg,#191327ed,#0b1020ed 50%,#211434ed);}
.hero-btn-outline {position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#efd09b;stroke-width:1.5;pointer-events:none;}
.hero-btn-outline .inner-line {stroke:#8a5d2d;stroke-width:.8;opacity:.7;}
.hero-cta.purple .hero-btn-outline {stroke:#c1a4ce;}
.hero-cta.purple .hero-btn-outline .inner-line {stroke:#927552;}
body[data-page="home"] .hero-content .hero-cta:hover {background:transparent;filter:brightness(1.09) drop-shadow(0 0 13px #d3b76b66);transform:translateY(-1px);}
body[data-page="home"] .hero-content .hero-cta:active {transform:translateY(0);}
body[data-page="home"] .hero-cta:focus-visible {outline:2px solid #fff0c8;outline-offset:5px;}
body[data-page="home"] .hero-cta>.icon {width:18px;height:18px;}
body[data-page="home"] .hero-scroll {bottom:clamp(15px,3.3vh,40px);font-size:11px;letter-spacing:.18em;gap:6px;color:#f2dfb6;padding:7px 17px;min-height:44px;line-height:1.2;text-shadow:0 2px 6px #000;white-space:nowrap;}
body[data-page="home"] #explore {position:relative;scroll-margin-top:var(--nav-height);}
body[data-page="home"] .home-search {padding-top:52px;}
#chapterVeil {position:fixed;inset:0;z-index:29;background:#040912;opacity:0;pointer-events:none;}
.hero-transitioning .site-header {background:#050b14e8!important;}

/* Review-only controls never occupy the default customer viewport. */
body:not([data-review="true"]) #labDock,
body:not([data-review="true"]) [data-review-only],
body:not([data-review="true"]) [data-review-note] {display:none!important;}
.hero-play,.dock-right {display:none!important;}
#labDock {max-width:calc(100vw - 32px);flex-wrap:wrap;}
.display-options {border:0;padding:0;margin:25px 0 20px;}
.display-options legend {font-size:14px;font-weight:650;color:var(--ink);margin-bottom:12px;}
.display-options label {display:flex;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:16px 18px;cursor:pointer;margin-top:10px;}
.display-options label:has(input:checked) {border-color:var(--accent);background:#cfac6220;}
.display-options input {width:18px;height:18px;min-height:0;flex:none;margin:4px 0 0;accent-color:#dabc7f;}
.display-options strong {display:block;font-size:16px;margin-bottom:5px;}
.display-options small {display:block;font-size:13px;line-height:1.7;color:var(--muted);}
[data-motion="reduced"] *,[data-motion="reduced"] *:before,[data-motion="reduced"] *:after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
[data-motion="reduced"] #chapterVeil {display:none;}

@media(min-width:1800px) {body[data-page="home"] .hero-content{transform:translate(-50%,-42%);}}
@media(max-width:1280px) {
 .site-header .nav-inner{padding-inline:24px;gap:20px;}
 .site-header .main-nav{gap:22px;}
 .site-header .nav-tools{gap:8px;}
 body[data-page="home"] .hero-content .hero-cta{height:58px;min-height:58px;}
}
@media(max-height:800px) and (min-width:960px) {
 :root{--nav-height:64px;}
 .hero-crest{height:25px;margin-bottom:10px;}
 .hero-crest svg{height:28px;width:28px;}
 body[data-page="home"] .hero-overline{margin-bottom:14px;font-size:13px;}
 .hero-wordmark{width:min(40vw,calc(100dvh * .79),760px);}
 body[data-page="home"] .hero-tagline{margin-bottom:20px;font-size:23px;}
 html[lang="en"] body[data-page="home"] .hero-tagline{font-size:23px;}
 body[data-page="home"] .hero-content .hero-cta{height:55px;min-height:55px;font-size:17px;}
}
@media(max-height:590px) and (min-width:960px) {
 :root{--nav-height:56px;}
 .hero-crest{height:18px;margin-bottom:5px;}
 .hero-crest svg{height:23px;width:23px;}
 .hero-wordmark{width:min(35vw,calc(100dvh * .9),600px);}
 body[data-page="home"] .hero-content{top:50%;transform:translate(-50%,-32%);}
 body[data-page="home"] .hero-overline{font-size:11px;margin-bottom:6px;}
 body[data-page="home"] .hero-tagline,html[lang="en"] body[data-page="home"] .hero-tagline{font-size:19px;margin-bottom:13px;}
 body[data-page="home"] .hero-content .hero-cta{height:46px;min-height:46px;font-size:15px;}
 body[data-page="home"] .hero-scroll{bottom:5px;font-size:10px;}
}
@media(max-width:959px){
 :root{--nav-height:66px;}
 body[data-page="home"] .hero-bg,body[data-page="home"] .hero-poster{object-fit:cover;}
 .hero-wordmark{width:min(72vw,650px);}
 body[data-page="home"] .hero-content{width:calc(100% - 40px);top:50%;transform:translate(-50%,-40%);}
 body[data-page="home"] .hero-overline{font-size:11px;letter-spacing:.12em;}
 body[data-page="home"] .hero-tagline,html[lang="en"] body[data-page="home"] .hero-tagline{font-size:22px;white-space:normal;max-width:95%;}
 .site-header .nav-profile span:not(.avatar){display:none;}
 .site-header .nav-inner{padding-inline:18px;}
 .site-header .nav-brand{width:145px;}
}
@media(max-width:580px){
 :root{--nav-height:62px;}
 .site-header .nav-inner{gap:12px;padding-inline:14px;}
 .site-header .nav-brand{width:114px;}
 .site-header .nav-brand .brand-img{width:128px;}
 .site-header .nav-tools{gap:4px;margin-left:auto;}
 .site-header .nav-profile{display:none;}
 .site-header .nav-lang{font-size:12px;padding:6px 8px;}
 body[data-page="home"] .hero-content{width:calc(100% - 28px);padding:0;}
 .hero-crest{width:72%;height:26px;gap:12px;margin-bottom:12px;}
 .hero-crest svg{width:28px;height:28px;}
 .hero-wordmark{width:90vw;aspect-ratio:5.3;}
 body[data-page="home"] .hero-overline{font-size:10px;letter-spacing:.1em;margin-bottom:22px;}
 html[lang="en"] body[data-page="home"] .hero-overline{font-size:9px;letter-spacing:.075em;}
 body[data-page="home"] .hero-tagline,html[lang="en"] body[data-page="home"] .hero-tagline{font-size:18px;max-width:330px;margin-top:12px;margin-bottom:24px;}
 body[data-page="home"] .hero-actions{gap:10px;flex-wrap:wrap;width:100%;}
 body[data-page="home"] .hero-content .hero-cta,body[data-page="home"] .hero-content .hero-cta.purple{flex:none;width:min(280px,88%);height:49px;min-height:49px;font-size:15px;}
 body[data-page="home"] .hero-scroll{font-size:10px;bottom:17px;}
}

/* Keep the exploration control below the floor wordmark rather than over it. */
@media(min-width:960px) and (min-height:591px){body[data-page="home"] .hero-scroll{bottom:9px;gap:3px;padding:6px 18px;min-height:38px;border-radius:30px;background:#04091444;}}
/* Existing V2 title-backdrop overhang was 24px against a 16px mobile gutter.
   Keep the decorative pseudo-element inside its section; do not clip document content. */
@media(max-width:580px){body[data-page="home"] .section-head:before,body[data-page="store"] .section-head:before{left:0;right:0;}}

.compare-grid{height:auto;align-items:start;}

@media(min-width:960px) and (min-height:591px){body[data-page="home"] .hero-scroll{font-size:13px;line-height:1.25;background:#04091488;}}
@media(min-width:2200px) and (min-height:900px){.hero-wordmark{width:min(40vw,1000px);}body[data-page="home"] .hero-content .hero-cta{width:380px;height:68px;min-height:68px;}body[data-page="home"] .hero-content .hero-cta.purple{width:330px;}}
