/* Video-first home; shared styles.css remains the foundation for ENUMA-Bench. */
.home-page{background:#07090b;color:#f6f7f3}
.home-page [hidden]{display:none!important}
.home-page .header{height:76px;padding:0 5%;border-bottom:1px solid #ffffff30;position:absolute;z-index:5}
.home-page .header nav{gap:30px;font-size:.82rem}
.home-page .header nav a{color:#f3f5f0;opacity:.85}
.home-page .header nav a:hover{opacity:1;color:#fff}
.home-hero{position:relative;height:min(920px,100svh);min-height:650px;overflow:hidden;background:#13191c}
.home-hero-video,.journey-card video,.sample-card video{display:block;width:100%;height:100%;object-fit:cover}
.home-hero-video,.home-hero-final-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;pointer-events:none}
.home-hero-video{transition:opacity .7s ease}
.home-hero-video.is-active{opacity:1}
.home-hero-video.instant-cut{transition:none}
.home-hero-final-frame{transition:opacity .25s ease}
.home-hero-final-frame.is-active{opacity:1}
.home-hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,#07090b 0%,#07090bdf 7%,#07090b57 37%,transparent 73%),linear-gradient(90deg,#07090b73 0%,transparent 62%);pointer-events:none}
.home-hero-content{position:absolute;left:7.5%;bottom:116px;z-index:1;max-width:850px}
.home-kicker,.home-index{display:block;font-family:var(--heading);font-size:.7rem;font-weight:600;letter-spacing:.18em;color:#caeccc}
.home-hero h1{font-size:clamp(5rem,13vw,11rem);font-weight:500;line-height:.95;letter-spacing:-.07em;margin:16px 0 14px;text-shadow:0 2px 30px #0005}
.home-hero h1 span{color:var(--accent)}
.home-hero-content>p{font-family:var(--heading);font-size:clamp(1.1rem,2vw,1.55rem);font-weight:400;color:#f3f6f3;margin:0 0 26px}
.home-hero-actions{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.home-primary,.home-secondary{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;font-size:.83rem;font-weight:700;letter-spacing:.03em;transition:background .2s,transform .2s}
.home-primary{padding:13px 17px;background:#e4f4e5;color:#0b1711;min-width:170px}
.home-primary:hover{background:#fff;transform:translateY(-2px)}
.home-secondary{padding:13px 0;color:#fff;border-bottom:1px solid #ffffff80}
.home-secondary:hover{border-bottom-color:#fff}
.home-hero-bottom{position:absolute;left:5%;right:5%;bottom:23px;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#d1ddd2;font-size:.67rem;font-weight:600;letter-spacing:.15em}
.home-hero-bottom i{font-style:normal;color:var(--accent);padding:0 8px}
.home-hero-controls{display:flex;align-items:center;gap:16px;white-space:nowrap}
.home-hero-controls>span{font-variant-numeric:tabular-nums;color:#f4f8f3}
.home-hero-bottom button{border:1px solid #ffffff5e;background:#10171973;padding:7px 10px;font-size:.7rem;letter-spacing:0;display:flex;align-items:center;gap:8px}
.home-hero-bottom button:hover{background:#17211f}
.home-section{max-width:1600px;margin:0 auto;padding:100px 6.5%}
.home-section-head{display:flex;align-items:end;justify-content:space-between;gap:36px;margin-bottom:36px}
.home-section-head h2,.research-short h2{font-size:clamp(2.45rem,4.6vw,4.5rem);font-weight:400;line-height:1.07;letter-spacing:-.055em;margin:16px 0 0}
.home-section-head p{margin:0 0 7px;color:#a8b2ad;font-size:.9rem;max-width:315px;line-height:1.55}
.demo-feature{padding-bottom:75px}
.demo-film-frame{position:relative;aspect-ratio:16/9;background:#030405;border:1px solid #ffffff32;overflow:hidden}
.demo-film-frame video{display:block;width:100%;height:100%;object-fit:contain}
.demo-film-play{position:absolute;right:24px;bottom:24px;display:flex;align-items:center;gap:12px;border:1px solid #e8f4e8;background:#e8f4e8;color:#0b1711;padding:13px 17px;font-size:.74rem;font-weight:700;letter-spacing:.12em;cursor:pointer}
.demo-film-play:hover{background:#fff;border-color:#fff}
.demo-film-play:disabled{cursor:progress;opacity:.82}
.demo-film-play span{font-size:.87rem;letter-spacing:0}
.interactive-showcase{padding-top:45px;padding-bottom:70px}
.journey-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.journey-card{position:relative;display:block;aspect-ratio:1.35;background:#1d2528;overflow:hidden;border:1px solid #ffffff30}
.journey-card video{position:absolute;inset:0;transition:transform .55s}
.journey-card:hover video{transform:scale(1.025)}
.journey-shade{position:absolute;inset:0;background:linear-gradient(0deg,#050808e8 0%,#05080869 28%,transparent 62%),linear-gradient(180deg,#05080877 0%,transparent 22%);pointer-events:none}
.journey-top,.journey-bottom{position:absolute;left:25px;right:25px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.journey-top{top:20px;font-family:var(--heading);font-size:.75rem;letter-spacing:.17em;color:#edf4eb}
.journey-top span{font-size:.65rem;letter-spacing:.12em}
.journey-bottom{bottom:24px}
.journey-bottom strong{font-family:var(--heading);font-size:clamp(1.4rem,2.7vw,2.45rem);font-weight:500;line-height:1.12;letter-spacing:-.035em}
.journey-bottom span{font-size:.68rem;letter-spacing:.12em;white-space:nowrap;border-bottom:1px solid #fff9;padding-bottom:5px}
.journey-branch-actions{position:absolute;left:25px;bottom:82px;color:#e4f5e7;font-size:.61rem;font-weight:700;letter-spacing:.14em}
.journey-branch-actions i{font-style:normal;color:#a8b9a9;padding:0 5px}
.capability-rail{max-width:1400px;margin:22px auto 0;padding:20px 0;border-top:1px solid #ffffff30;border-bottom:1px solid #ffffff30;display:flex;align-items:center;justify-content:space-between;gap:20px}
.capability-rail span{color:#9eb5a2;font-size:.61rem;font-weight:700;letter-spacing:.15em;white-space:nowrap}
.capability-rail a{font-family:var(--heading);font-size:.85rem;color:#dce6dd;white-space:nowrap}
.capability-rail a:hover{color:#fff}
.capability-section{padding-top:90px;padding-bottom:90px;border-bottom:1px solid #ffffff1b}
.capability-section:nth-of-type(even){background:linear-gradient(180deg,#0b1010,#07090b 82%)}
.capability-embodied{border-bottom:0}
.capability-subhead{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:1px 0 16px;border-top:1px solid #ffffff36;padding-top:16px;font-family:var(--heading);letter-spacing:.13em}
.capability-subhead strong{font-size:.68rem;font-weight:600;color:#e1ede2}
.capability-subhead span{font-size:.62rem;color:#a1b8a5;white-space:nowrap}
.capability-subhead-secondary{margin-top:55px}
.carousel-viewport{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:1px;scroll-behavior:smooth;overscroll-behavior-inline:contain;scrollbar-width:none}
.carousel-viewport::-webkit-scrollbar{display:none}
.carousel-viewport .sample-card{flex:0 0 72%;scroll-snap-align:start}
.carousel-viewport .sample-card:last-child{scroll-snap-align:end}
.carousel-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.sample-card{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;padding:0;border:1px solid #ffffff27;background:#1a2529;text-align:left}
.sample-play{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:none;color:inherit;text-align:left}
.sample-play:focus-visible{outline:2px solid var(--accent);outline-offset:-5px}
.sample-card video{position:absolute;inset:0;object-fit:contain;transition:transform .5s}
.sample-card:hover video{transform:scale(1.04)}
.sample-card:after{content:"";position:absolute;inset:44% 0 0;background:linear-gradient(0deg,#050808d9,transparent);pointer-events:none}
.reference-inputs{position:absolute;z-index:2;top:12px;right:12px;display:flex;align-items:center;gap:4px;padding:5px;background:#080c0bd9;border:1px solid #ffffff53;box-shadow:0 8px 20px #0006}
.reference-inputs span{font-size:.5rem;font-weight:700;letter-spacing:.1em;color:#d6e5d6;padding:0 5px;white-space:nowrap}
.reference-inputs img{width:66px;height:58px;object-fit:cover;background:#d5d5d0}
.reference-thumb{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border:1px solid transparent;background:none;line-height:0;cursor:zoom-in}
.reference-thumb img{display:block}
.reference-thumb:hover,.reference-thumb:focus-visible{border-color:#d9eddd}
.sample-caption{position:absolute;z-index:1;left:20px;right:20px;bottom:17px;display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:end}
.sample-caption small{grid-column:1 / -1;color:#d1dfd5;font-size:.59rem;font-weight:700;letter-spacing:.15em}
.sample-caption strong{font-family:var(--heading);font-size:clamp(1.35rem,2.2vw,2rem);font-weight:500;line-height:1.15;letter-spacing:-.025em}
.sample-caption b{font-size:1rem;font-weight:400;line-height:1}
.gallery-note{font-size:.72rem;color:#889890;margin:20px 0 0}
.carousel-footer{display:flex;align-items:center;gap:20px;margin-top:18px}
.carousel-progress{height:2px;background:#ffffff35;flex:1;max-width:320px;overflow:hidden}
.carousel-progress span{display:block;width:0;height:100%;background:#ccebd2;transition:width .15s linear}
.carousel-count{font-family:var(--heading);font-size:.71rem;letter-spacing:.11em;color:#c9d6cb;font-variant-numeric:tabular-nums;white-space:nowrap}
.carousel-arrows{display:flex;gap:6px;margin-left:auto}
.carousel-arrows button{width:42px;height:38px;background:#11191a;border:1px solid #ffffff50;font-size:1.15rem;line-height:1}
.carousel-arrows button:not(:disabled):hover{background:#d9eddd;color:#0e1810;border-color:#d9eddd}
.carousel-arrows button:disabled{opacity:.35;cursor:default}
.research-short{border-top:1px solid #ffffff28;background:#0d1313;padding-bottom:80px}
.research-short-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:10%;margin-top:28px}
.research-short-grid>div:first-child>p{color:#a8b6ac;font-size:1rem;margin:18px 0 0}
.research-paper{border-left:1px solid #ffffff35;padding:7px 0 0 36px}
.research-paper h3{font-family:var(--heading);font-size:clamp(1.4rem,2.3vw,2.2rem);font-weight:400;line-height:1.28;letter-spacing:-.04em;margin:16px 0 22px;max-width:630px}
.research-paper details{border-top:1px solid #ffffff30;padding-top:13px}
.research-paper summary{list-style:none;cursor:pointer;color:#d5ead8;font-size:.8rem;display:flex;align-items:center;justify-content:space-between;max-width:610px}
.research-paper summary::-webkit-details-marker{display:none}
.research-paper summary span{font-size:1rem}
.research-paper details p{color:#adbbb1;font-size:.88rem;line-height:1.75;max-width:610px;margin:16px 0 2px}
.benchmark-callout{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff30;margin-top:75px;padding-top:22px}
.benchmark-callout>span:first-child{display:flex;align-items:baseline;gap:22px}
.benchmark-callout small{font-size:.65rem;color:#bad8be;letter-spacing:.16em}
.benchmark-callout strong{font-family:var(--heading);font-size:1.45rem;font-weight:400;letter-spacing:-.03em}
.benchmark-callout>span:last-child{font-size:1.7rem;color:#ccebd2}
.benchmark-callout:hover{color:#cdebd2}
.home-page footer{background:#0d1313;border-top:1px solid #ffffff25}
.home-page dialog{background:#0d1313;border:1px solid #ffffff4a;max-width:1250px;width:calc(100% - 50px)}
.home-page dialog video{aspect-ratio:16/9;object-fit:contain;max-height:75svh}
.home-page dialog::backdrop{background:#020505e8}
.home-page #reference-dialog{width:min(96vw,1600px);max-width:1600px;max-height:94svh;padding:16px}
#reference-dialog .dialog-top{align-items:flex-start;margin-bottom:12px}
#reference-dialog .dialog-top h2{font-size:clamp(1rem,1.8vw,1.45rem);line-height:1.25;padding-top:5px}
.reference-dialog-controls{display:flex;align-items:center;gap:5px;flex-shrink:0}
.reference-dialog-controls span{font-family:var(--heading);font-size:.7rem;color:#b5cbb9;letter-spacing:.08em;margin-right:8px;white-space:nowrap}
.reference-dialog-controls button{width:36px;height:36px;font-size:1.2rem}
#reference-dialog #reference-full{display:block;max-width:100%;max-height:calc(94svh - 94px);width:auto;height:auto;object-fit:contain;margin:auto;background:#151a19}
@media(max-width:950px){.home-section{padding-left:5%;padding-right:5%}.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-bottom{left:18px;right:18px;bottom:17px}.journey-top{left:18px;right:18px;top:15px}.journey-bottom strong{font-size:1.6rem}.journey-branch-actions{left:18px;bottom:69px}.research-short-grid{gap:5%}}
@media(max-width:680px){.home-page .header{height:auto;padding:17px 6% 14px;display:flex;flex-wrap:wrap;gap:13px}.home-page .header .brand img{width:118px}.home-page .header nav{width:100%;display:flex;justify-content:space-between;gap:6px;font-size:.68rem}.home-hero{height:760px;min-height:700px}.home-hero-video{object-position:53% center}.home-hero-shade{background:linear-gradient(0deg,#07090b 0%,#07090bf0 7%,#07090b82 43%,#07090b24 75%)}.home-hero-content{left:6%;right:6%;bottom:132px}.home-hero h1{font-size:clamp(4.7rem,19vw,7.5rem);margin-bottom:10px}.home-hero-content>p{font-size:1.08rem}.home-hero-actions{gap:18px}.home-primary{min-width:145px;gap:10px;padding:11px 12px}.home-secondary{padding:10px 0}.home-hero-bottom{left:6%;right:6%;bottom:27px;align-items:flex-start;flex-direction:column;gap:12px;font-size:.58rem}.home-hero-bottom button{font-size:.65rem}.home-section{padding:70px 6%}.home-section-head{display:block;margin-bottom:25px}.home-section-head h2,.research-short h2{font-size:2.65rem}.home-section-head p{margin-top:14px}.demo-film-play{right:11px;bottom:11px;padding:10px 12px;font-size:.64rem}.interactive-showcase{padding-top:25px}.journey-grid{grid-template-columns:1fr;gap:14px}.journey-card,.journey-card-branch{grid-column:auto;aspect-ratio:1.55}.journey-bottom strong{font-size:1.85rem}.journey-branch-actions{bottom:73px}.sample-caption strong{font-size:1.3rem}.research-short-grid{grid-template-columns:1fr;gap:36px}.research-paper{padding-left:18px}.benchmark-callout{margin-top:54px}.benchmark-callout>span:first-child{display:block}.benchmark-callout small{display:block;margin-bottom:7px}.home-page footer{padding:36px 6%}.home-page dialog{width:calc(100% - 20px);padding:12px}.home-page dialog video{max-height:65svh}}
@media(prefers-reduced-motion:reduce){.home-hero-video,.home-hero-final-frame,.journey-card video,.sample-card video{transition:none!important}}
@media(max-width:950px){.capability-rail{margin:20px 5% 0}.capability-rail span{display:none}}
@media(max-width:680px){.capability-rail{margin:10px 0 0;padding:16px 6%;justify-content:flex-start;overflow-x:auto;gap:24px;scrollbar-width:thin}.capability-rail a{font-size:.76rem}.capability-section{padding-top:70px;padding-bottom:70px}.reference-inputs{top:8px;right:8px;padding:3px}.reference-inputs img{width:42px;height:38px}.reference-inputs span{font-size:.46rem}}
@media(max-width:950px){.carousel-viewport .sample-card{flex-basis:82%}}
@media(max-width:680px){.carousel-viewport .sample-card{flex-basis:91%}.capability-subhead-secondary{margin-top:40px}.carousel-footer{margin-top:14px;gap:12px}.carousel-progress{max-width:none}.carousel-arrows button{width:40px;height:36px}}
@media(prefers-reduced-motion:reduce){.carousel-viewport{scroll-behavior:auto}.carousel-progress span{transition:none}}
