:root{font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:#10243a;background:white;--blue:#0656b5;--bar:64px;--dock:50px;scroll-padding-top:var(--bar)}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}a:focus-visible,select:focus-visible{outline:3px solid #009bff;outline-offset:3px}.skip{position:fixed;top:-80px;background:white;padding:10px;z-index:20}.skip:focus{top:0}
header{height:var(--bar);position:sticky;top:0;background:#fff;z-index:8;display:flex;align-items:center;gap:2rem;padding-inline:max(4%,calc((100% - 1450px)/2));border-bottom:1px solid #dae2eb}
.brand{font-size:1.55rem;font-weight:550;letter-spacing:-.065em;display:inline-flex;align-items:center;gap:.45rem}.brand img{object-fit:contain}
header nav{display:flex;gap:clamp(14px,3vw,55px);margin-inline:auto;align-items:center}header nav a{font-size:.89rem;font-weight:550}header nav a:hover,.secondary:hover{color:var(--blue)}header select{font:inherit;font-size:.8rem;border:1px solid #cbd6e2;color:#233c56;background:white;border-radius:20px;padding:6px;max-width:100px}
.story{position:relative;background:#121c25}.chapter{position:relative}.screen{height:calc(100svh - var(--bar) - var(--dock));min-height:380px;position:relative;isolation:isolate;overflow:hidden;background:#162127;color:white}
.enhanced .chapter{height:145svh}.enhanced .chapter[data-step="0"],.enhanced .chapter[data-step="6"]{height:105svh}.enhanced .screen{position:sticky;top:var(--bar)}
.screen picture,.screen picture img,.screen canvas,.shade,.plans{position:absolute;inset:0;width:100%;height:100%}.screen img{object-fit:cover}.screen canvas{opacity:0}.screen canvas.ready{opacity:1}.shade{background:linear-gradient(90deg,rgba(8,19,29,.79),rgba(8,19,29,.30) 38%,transparent 68%),linear-gradient(0deg,#0b192855,transparent 65%)}
.caption{position:absolute;inset-inline-start:6%;bottom:11%;max-width:min(620px,58%)}.label{font-size:.8rem;letter-spacing:.13em;font-weight:650;margin:0 0 15px}.caption h1,.caption h2,.future h1{font-size:clamp(3rem,6.6vw,7.2rem);line-height:1;letter-spacing:-.07em;font-weight:550;margin:0;text-wrap:balance}.caption h1,#reveal h2{max-width:9ch}.description{font-size:clamp(.98rem,1.3vw,1.25rem);max-width:40ch;margin:16px 0 0;text-wrap:pretty}.action,.secondary{display:inline-flex;align-items:center;gap:.24em;justify-content:center;min-height:44px;border-radius:40px;padding:8px 23px;font-weight:600;font-size:.92rem;margin-top:24px}.action{color:#104c91;background:#fff}.action:hover{background:#e8f4ff}
.plans{display:flex;background:#f6f7f9;align-items:center;justify-content:center;gap:1%;padding:4% 4% 10%}.plans img{width:47%;height:70%;object-fit:contain}.chapter[data-step="1"] .shade{display:none}.chapter[data-step="1"] .caption{color:#142c42;bottom:4%;max-width:90%}.chapter[data-step="1"] h2{font-size:clamp(2rem,4vw,4rem)}.chapter[data-step="1"] .description{max-width:80ch;font-size:.93rem}
.dock{position:sticky;bottom:0;background:#fff;display:flex;align-items:stretch;justify-content:center;height:var(--dock);z-index:4;border-bottom:1px solid #dce5ed}.dock a{position:relative;display:grid;place-items:center;padding:0 clamp(8px,2vw,38px);font-size:.8rem;color:#486079;white-space:nowrap}.dock a[aria-current]{color:#004fa8;font-weight:650}.dock a[aria-current]:after{content:"";position:absolute;bottom:0;inset-inline:12%;height:3px;background:var(--blue)}
.products{padding:clamp(42px,8vw,130px) 6%;max-width:1600px;margin:auto}.products h2{font-size:clamp(2.4rem,4.7vw,5rem);line-height:1;letter-spacing:-.055em;margin:0 0 36px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.product{display:flex;align-items:center;text-align:center;flex-direction:column;background:#f5f8fc;border-radius:18px;padding:24px 12px}.product img,.future img{object-fit:contain;mix-blend-mode:multiply}.product strong{font-size:1.1rem;margin-top:12px}.product span{font-size:.88rem;color:#506077}.product:hover{background:#eaf1fa}.future{min-height:calc(100svh - 160px);display:flex;align-items:center;justify-content:center;gap:6vw;padding:60px 6%;background:#f5f8fc}.future img{width:clamp(175px,25vw,340px);height:auto}.future .label,.secondary{color:var(--blue)}.secondary{border:1px solid #9db5d0}.future h1{font-size:clamp(3rem,6vw,6rem)}
footer{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:24px 6%;border-top:1px solid #dce5ed;font-size:.87rem}footer>a:last-child{margin-inline-start:auto}
@media(max-width:720px){:root{--bar:83px;--dock:45px}header{flex-wrap:wrap;justify-content:space-between;align-content:center;gap:1px;padding:4px 5%}header nav{order:3;flex:0 0 100%;justify-content:space-between}header nav a{padding:3px 4px}header .brand{font-size:1.28rem}header .brand img{width:26px;height:26px}.caption{inset-inline:6%;bottom:6%;max-width:90%}.caption h1,.caption h2{font-size:clamp(2.6rem,10vw,4.8rem)}.shade{background:linear-gradient(0deg,#0b172cef,rgba(11,23,44,.48) 38%,transparent 74%)}.dock{overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.dock a{flex:1 0 auto;padding-inline:12px}.grid{grid-template-columns:1fr 1fr}.product img{width:100px;height:100px}.future{flex-direction:column;text-align:center;gap:24px}.plans{flex-direction:column;padding:2% 2% 140px}.plans img{width:80%;height:48%}.chapter[data-step="1"] .label{margin-bottom:4px}.chapter[data-step="1"] .description{font-size:.84rem;margin-top:6px}footer>a:last-child{margin-inline-start:0}}
@media(max-height:520px){.screen{min-height:230px}.caption h1,.caption h2{font-size:2.4rem}.caption .description{margin-top:5px}.action{margin-top:7px}.caption .label{margin-bottom:3px}}
@media(prefers-reduced-motion:reduce){.screen{position:relative}.dock{position:relative}}

.brand-symbol{position:relative;width:28px;height:33px;overflow:hidden}.brand .brand-symbol img{position:absolute;max-width:none;width:60px;height:60px;left:-16px;top:-5px}

header{--bar:76px;height:var(--bar);gap:clamp(10px,2vw,32px)}:root{--bar:76px}
header .brand img.umbrella-logo{width:82px;height:82px;object-fit:contain}
.main-links{justify-content:flex-start;margin-inline:1vw auto}.main-links summary{font-weight:550;font-size:.89rem;cursor:pointer;list-style:none;padding:.55rem 0}.main-links summary::-webkit-details-marker{display:none}.main-links summary::after{content:"";display:inline-block;width:6px;height:6px;margin:0 3px 3px 9px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.product-menu{position:relative}.product-menu>div{position:absolute;background:white;top:calc(100% + 6px);inset-inline-start:-12px;border:1px solid #d5e0eb;box-shadow:0 12px 32px #10243a17;border-radius:12px;padding:7px;min-width:170px}.product-menu a{display:block;border-radius:6px;padding:9px 12px}.product-menu a:hover{background:#edf5ff}.login{font-size:.87rem;font-weight:600;color:#0754a8}.main-links summary:focus-visible{outline:2px solid #0074ca}
.question{font-size:clamp(1.05rem,2vw,1.8rem);margin:.9em 0 0}.enhanced #dream{height:138svh}.enhanced #dream picture img{transform:scale(calc(1 + .14 * var(--progress,0)));transform-origin:60% 54%}.enhanced #dream .caption{transform:translateY(calc(-48px * var(--progress,0)));opacity:clamp(.15,calc(1 - var(--progress,0)),1)}
.chapter small{display:block;margin-top:12px;max-width:46ch}.drawing-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:2%;padding:0 4% 12%;background:#faf9f5;opacity:clamp(0,calc(1 - 5 * var(--progress,1)),1)}.drawing-layer img{width:46%;max-height:70%;object-fit:contain}
#floor-plan .plans img{mix-blend-mode:multiply}.caption blockquote{margin:1rem 0;font-size:clamp(1.15rem,2vw,2rem);line-height:1.28;max-width:30ch}.caption audio{height:36px;width:min(100%,260px)}.live-panel{position:absolute;width:clamp(180px,23vw,300px);inset-inline-end:9%;top:20%;border-radius:17px;overflow:hidden;background:white;box-shadow:0 14px 60px #13213b33;aspect-ratio:1.78}.live-panel img{display:block;width:100%;height:auto}.enhanced #walkthrough{height:225svh}.ending p{font-size:clamp(1.1rem,2vw,2rem);font-weight:600;margin:.55em 0 0}.studio-link{display:inline-block;color:white;font-weight:600;margin-inline-start:1rem;text-decoration:underline;text-underline-offset:4px}.enhanced #walkthrough .ending{opacity:clamp(0,calc((var(--progress,0) - .55) * 5),1)}#walkthrough:focus-within .ending{opacity:1}
@media(max-width:720px){:root,header{--bar:98px}header{justify-content:flex-start;gap:0 14px}header .brand img.umbrella-logo{width:62px;height:62px}header select{margin-inline-start:auto}header .main-links{margin:0;justify-content:space-between}.main-links summary{padding:4px 0}.product-menu>div{inset-inline-start:0}.caption small{font-size:.72rem}.live-panel{top:9%;inset-inline-end:6%;width:180px}.drawing-layer{flex-direction:column;padding:4% 0 35%}.drawing-layer img{width:80%;max-height:45%}}
@media(max-height:500px){.live-panel{width:150px;top:7%}.caption blockquote{font-size:1rem;margin:5px 0}}

/* The scroll study retains the full wide camera gate, also on a phone. */
.enhanced .chapter .screen{visibility:hidden;position:fixed;inset:var(--bar) 0 auto;min-height:0;pointer-events:none}
.enhanced .chapter.show-shot .screen{visibility:visible;pointer-events:auto}
.enhanced .chapter.show-shot:last-of-type .screen{position:sticky}
.enhanced .chapter{height:240svh}.enhanced #interior,.enhanced #renderstudio{height:300svh}.enhanced #walkthrough{height:380svh}
.screen{background:#17232b}.screen picture img,.enhanced #dream picture img{object-fit:contain;transform:none}.enhanced #dream picture{transform:translateY(calc(-8px * var(--progress,0)))}
.screen .shade{background:linear-gradient(0deg,#101821cf,transparent 45%)}
.screen .caption{bottom:6%;max-width:60%;pointer-events:none}.caption a,.caption audio{pointer-events:auto}.screen .caption h1,.screen .caption h2{font-size:clamp(2.6rem,5vw,5.6rem)}
#floor-plan .screen,#flynn .screen{background:#f2f5f8;color:#11273c}
.tablet{position:absolute;inset:5% 0 auto;margin:auto;width:min(66%,calc((100svh - var(--bar) - var(--dock)) * 1.02));aspect-ratio:1.46;border:2px solid #838c95;border-radius:4.7% / 6.8%;background:#10141a;padding:clamp(7px,.75vw,15px);box-shadow:0 16px 38px #1b2b421c}
.tablet-display{background:white;border-radius:3.2% / 4.7%;overflow:hidden;width:100%;height:100%;position:relative}
.plan-pair{display:flex;width:100%;height:100%;align-items:center;padding:5%;gap:3%}.plan-pair img{width:48.5%;height:84%;object-fit:contain}
#flynn .shade{display:none}.flynn-project{width:65%;height:100%;background:#657487;display:grid;align-items:center}.flynn-project img{width:100%;object-fit:contain}.flynn-sheet{position:absolute;inset:0 0 0 auto;width:39%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:white;padding:3%;gap:5%;box-shadow:-1px 0 10px #11243a18}.microphone{width:100%;aspect-ratio:1.82;overflow:hidden}.microphone img{width:100%;height:auto}.flynn-sheet blockquote{font-size:clamp(.65rem,1.2vw,1.2rem);line-height:1.35;margin:0}.flynn-sheet audio{width:100%;height:32px}
#floor-plan .caption,#flynn .caption{bottom:3%;inset-inline-start:6%;max-width:88%}#floor-plan .caption h2,#flynn .caption h2{font-size:clamp(1.7rem,3.8vw,4rem)}
.screen .label{margin-bottom:6px}#renderstudio blockquote{font-size:clamp(.95rem,1.3vw,1.3rem);margin:.45em 0}




.enhanced .chapter.incoming .screen{visibility:visible;z-index:2;opacity:var(--mix,0);pointer-events:none}
.enhanced .chapter.incoming{pointer-events:none}
.floor-key{display:flex;gap:6px;margin-top:12px}.floor-key span{font-size:.77rem;line-height:1.2;padding:5px 10px;border:1px solid currentColor;border-radius:20px}.enhanced [data-floor="ground"] .floor-key span:last-child,.enhanced [data-floor="upper"] .floor-key span:first-child{visibility:hidden}



#floor-plan .import-view{opacity:0}
.enhanced #floor-plan .import-view{opacity:clamp(0,calc(1.7 - var(--progress,0) * 3.2),1)}
#floor-plan .screen,#flynn .screen{background:#17232b;color:#fff}
#floor-plan .screen .shade,#flynn .screen .shade{display:block;background:linear-gradient(0deg,#101821dc,transparent 39%);pointer-events:none}
#floor-plan .screen .caption,#flynn .screen .caption{color:white;bottom:5%;top:auto;max-width:70%}
#flynn .caption blockquote{font-size:clamp(.94rem,1.3vw,1.22rem);max-width:40ch}


/* These two match moves occupy the actual film gate; the headings clear it before the lens moves in. */
.enhanced #dream{height:295svh}.enhanced #flynn{height:265svh}
.enhanced #dream picture{transform:none}
.enhanced #dream .caption{transform:none;opacity:clamp(0,calc((.40 - var(--progress,0)) * 5),1)}
.enhanced #flynn .caption{opacity:clamp(0,calc((.47 - var(--progress,0)) * 6),1)}


/* The film runs under the floating controls, from viewport edge to viewport edge. */
:root:has(.story) { scroll-padding-top: 0; }
body:has(.story) .app-bar { margin-bottom: calc(-1 * var(--bar)); }
#products { scroll-margin-top: var(--bar); }
.story .chapter .screen { height: 100vh; height: 100dvh; min-height: 0; inset-block-start: 0; color: white; }
.story .chapter .screen :is(picture,canvas) { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.story .chapter .screen picture img { object-fit: cover; }
.story #flynn .screen picture img { object-position: 67% center; }
.story .chapter .screen .shade { display:block; background:linear-gradient(0deg,#071421d9 0%,#09182780 22%,transparent 55%); }
.story .chapter .screen .caption { top:auto; bottom:calc(var(--dock) + clamp(24px,5vh,68px)); inset-inline:6%; max-width:min(660px,88%); color:white; }
.story .ending .action { background:white; color:#123759; }
.story .ending .studio-link { color:white; }
.story .dock { width:max-content; max-width:calc(100% - 24px); margin-inline:auto; bottom:max(10px,env(safe-area-inset-bottom)); border:1px solid #ffffff50; border-radius:18px; background:#132538f2; overflow-x:auto; }
.story .dock a { color:#e7edf5; }
.story .dock a[aria-current] { color:white; }
.story .dock a[aria-current]::after { background:#7ab8ff; }
@media (max-width:720px) and (orientation:portrait) {
  .story .chapter .screen .caption { bottom:calc(var(--dock) + 32px + env(safe-area-inset-bottom)); }
}
@media (max-height:510px) and (orientation:landscape) {
  .story .chapter .screen .caption { bottom:calc(var(--dock) + 10px); }
  .story .caption :is(h1,h2) { font-size:clamp(1.7rem,5vh,2.4rem); }
}
.featured-studio { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.3fr); overflow: hidden; border-radius: 17px; background: #142e43; color: white; }
.featured-studio > div { align-self: center; padding: clamp(24px,4.2vw,64px); }
.featured-studio strong { display: block; font-size: clamp(2.1rem,3.8vw,4.3rem); line-height: 1.05; font-weight: 570; letter-spacing: -.05em; }
.featured-studio span { display: block; color: #e2eaf0; line-height: 1.55; margin: 15px 0 23px; max-width: 39ch; }
.featured-studio b { font-size: .96rem; border-bottom: 1px solid #b5c8d6; padding-bottom: 4px; }
.featured-studio b::after { content: ' ↗'; }
.featured-studio:hover b { border-color: white; }
.featured-studio img { width: 100%; height: 100%; max-height: 410px; object-fit: cover; }
.product-family { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 21px; }
.product-family .product { background: white; border-top: 1px solid #cdd9e0; border-radius: 0; align-items: center; flex-direction: row; padding: 18px 0; gap: .75rem; text-align: start; }
.product-family .product:hover strong { color: #0754a8; }
.product-family .product img { width: 66px; height: 66px; }
.product-family .product strong,.product-family .product span { display: block; margin: 0; }
@media (max-width:720px) {
  .featured-studio,.product-family { grid-template-columns: 1fr; }
  .featured-studio img { aspect-ratio: 1.8; }
  .product-family { gap: 0; }
  .product-family .product { padding-block: 9px; }
}

/* Let the image bridge finish before introducing the next chapter. */
.enhanced .story .chapter .screen .caption { opacity:var(--caption-alpha,1); }
.enhanced .story .chapter.incoming .screen .caption { visibility:hidden; }
@media (max-width:760px) and (orientation:portrait) {
  .story :is(#floor-plan,#autoconvert,#flynn) .screen { background:#211e1a; }
  .story :is(#floor-plan,#autoconvert,#flynn) .screen picture img {
    object-fit:contain; object-position:center 42%; transform:scale(1.30); transform-origin:center 42%;
  }
  .enhanced .story[data-film-tiers] :is(#dream,#floor-plan,#autoconvert,#flynn) .screen:has(canvas.ready) {
    background:linear-gradient(180deg,#121a2217,transparent 58%,#121a2240),image-set(url('/media/villa-8k/tablet-1440.webp') 1x,url('/media/villa-8k/tablet-2560.webp') 2x,url('/media/villa-8k/tablet-7680.jpg') 4x) center / cover;
  }
  .enhanced .story[data-film-tiers] :is(#dream,#floor-plan,#autoconvert,#flynn) .screen:has(canvas.ready) picture { visibility:hidden; }
  .story :is(#floor-plan,#autoconvert,#flynn) .screen .caption { bottom:calc(var(--dock) + 32px + env(safe-area-inset-bottom)); }
}

.future .product-example { max-width:42ch; margin:1em 0 0; line-height:1.55; text-wrap:pretty; }
@media (max-width:720px) { .future .product-example { margin-inline:auto; } }
