/* v10: ONE motion + media model for every device.
   Wide screens (aspect > 1): the 16:9 film/still covers the stage, exactly as before.
   Tall screens (aspect <= 1): the whole frame is shown.  A 9:16 PLATE (sky above, ground/sea below) is laid at the stage WIDTH from the top,
   and the 16:9 film sits over the plate's matching band at FULL WIDTH (--bt = band top as a fraction of the plate height), its top/bottom edges
   feathered into the plate.  Nothing is centre-cropped.  Heights are svh (small viewport) so the iOS address bar never moves anything.
   Glass: a tint + gradient, no backdrop-filter anywhere. */
:root{--tz-ph:calc(100vw*1.7917)}                       /* plate height at stage width */
.tzfb-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s;background:transparent}
.tzfb-film.on{opacity:1}
/* glass: same on every device */
.tzv-card,.tzp-card,.tzo-card{background:linear-gradient(165deg,rgba(44,45,49,.62),rgba(16,17,19,.78))!important;border-color:rgba(236,232,223,.16)!important}
.tzg-frost{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 42%)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.2),inset 0 -1px 2px rgba(0,0,0,.22)!important}
.tzg:hover .tzg-frost{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%)!important}
/* v12: hero and walk are scroll-scrubbed again (canvas frame packs, theis-seq.js): v9 scroll lengths */
.tzh--hero{height:230svh}
.tzh--walk{height:270svh}
.tzh-stage,.tzs-stage,.tzw-stage{height:100svh}
@media (max-aspect-ratio:1/1){
  /* the plate: full stage width, top-anchored */
  .tzfb .tzh-poster,.tzfb>picture img,.tzfb>picture>img,.tzfb-still img,.tzw-sc.tzfb picture img{position:absolute;left:0;top:0;right:auto;bottom:auto;width:100%;height:auto;max-width:none;object-fit:fill}
  .tzfb>picture,.tzw-sc.tzfb>picture,.tzfb-still{position:absolute;left:0;top:0;width:100%;height:var(--tz-ph);inset:auto;display:block}
  .tzfb-still{left:0;right:auto}
  /* the film where it sits in the plate (--fx/--fy/--fw in plate-width units; fw>1 = the plate is a crop of the frame), feathered top/bottom (and sides if inside) */
  .tzfb .tzfb-film,.tzfb>video,.tzw-sc.tzfb video,.tzfb>canvas.tzh-cv{position:absolute;right:auto;bottom:auto;inset:auto;left:calc(var(--vl,var(--fx,0))*100vw);top:calc(var(--fy,.5)*100vw);width:calc(var(--vw,var(--fw,1))*100vw);height:calc(var(--fw,1)*56.25vw);object-fit:fill;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 11.8%,#000 88.2%,transparent 100%),linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%);-webkit-mask-composite:source-in;
    mask-image:linear-gradient(180deg,transparent 0,#000 11.8%,#000 88.2%,transparent 100%),linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%);mask-composite:intersect}
  /* below the plate the stage is dark; fade the plate's last rows into it so no edge shows */
  .tzfb>picture::after,.tzfb-still::after{content:"";position:absolute;left:0;right:0;bottom:0;height:27vw;pointer-events:none;background:linear-gradient(180deg,rgba(10,10,11,0),#0a0a0b 92%)}
  .tzw-sc.tzfb{overflow:hidden}
  /* residence */
  .tzo-img{inset:0 auto auto 0;width:100%;height:var(--tz-ph)}
  .tzo-stage{background:#0a0a0b}
  .tzo-img.tzfb-still img{top:0}
  /* headline type lives in the sky above the house */
  .tzh--hero .tzh-copy{top:max(72px,calc(env(safe-area-inset-top) + 66px));bottom:auto!important;left:var(--tz-pad)}
  .tzh--hero .tzh-copy h1{font-size:26px!important;margin-top:10px;line-height:1.04}
  .tzh--hero .tzh-copy::before{display:none}
  .tzh--walk .tzh-copy{top:auto;bottom:max(48px,calc(env(safe-area-inset-bottom) + 40px))}
  .tzh--walk .tzh-copy h1{font-size:30px}
  .tzh-fade{background:linear-gradient(180deg,rgba(10,10,11,.45),rgba(10,10,11,0) 22%),linear-gradient(0deg,rgba(10,10,11,.7),rgba(10,10,11,0) 30%)}
  .tzw-fade{background:linear-gradient(180deg,rgba(10,10,11,.4),rgba(10,10,11,0) 22%),linear-gradient(0deg,rgba(10,10,11,.86),rgba(10,10,11,.5) 22%,rgba(10,10,11,0) 44%)}
  .tzh--hero .tzv-card{bottom:max(16px,env(safe-area-inset-bottom))}
  .tzw-copy{bottom:calc(clamp(56px,11svh,110px) + 56px)}
  /* made: plates, no scale headroom (it would crop the plate's sides) */
  html.tzpx .tzs-made .tzs-layers,html.tzpx .tzs-made .tzf{scale:1}
  .tzs-layer.tzfb{background:#0a0a0b}
  .tzs-layer>picture{position:absolute;left:0;top:0;width:100%;height:var(--tz-ph)}
  /* close: card sits under the house, not over it */
  .tzp-media{inset:0 auto auto 0;width:100%;height:var(--tz-ph)}
  html.tzpx .tzp-media{scale:1}
  .tzp-media>picture{position:absolute;left:0;top:0;width:100%;height:var(--tz-ph)}
  .tzp-media>picture img{position:absolute;left:0;top:0;width:100%;height:auto;object-fit:fill}
  .tzp-close{justify-content:flex-start;padding-top:calc(100vw*1.42 + 24px)}
  .tzp-close .tzp-bg::after{background:linear-gradient(var(--tz-char) 0%,rgba(18,19,21,0) 8%,rgba(18,19,21,0) 52%,var(--tz-char) 74%)}
}
/* close: the orbit plate does not register under its film (different re-render), so tall screens show the graded plate as the still */
@media (max-aspect-ratio:1/1){
  .tzp-media[data-pl=pl_orbit] video{display:none}
  /* made: the stage below the plate fades to the page colour instead of the light desktop ground */
  .tzs-made .tzs-stage{background:#0a0a0b}
  .tzs-made .tzs-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(100% - var(--tz-ph) + 27vw);z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(10,10,11,0),#0a0a0b 27vw)}
}
/* short viewports (Safari with toolbars, small phones): a compact hero card so the base of the house stays clear */
@media (max-aspect-ratio:1/1) and (max-height:780px){
  .tzh--hero .tzv-card{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:12px 14px 12px}
  .tzh--hero .tzv-card .tzv-head{padding-bottom:7px}
  .tzh--hero .tzv-eye{font-size:9px}
  .tzh--hero .tzv-q{font-size:15px!important;margin-top:7px;line-height:1.2}
  .tzh--hero .tzv-sub{font-size:10.5px;margin-top:4px;line-height:1.35}
  .tzh--hero .tzv-btn{height:34px;margin-top:9px;font-size:9.5px}
}
@media (max-aspect-ratio:1/1) and (max-width:380px){.tzh--hero .tzh-copy h1{font-size:23px!important}}
/* v12: hero eyebrow on narrow phones stays on one line */
@media (max-aspect-ratio:1/1) and (max-width:380px){.tzh--hero .tzh-copy .tz-sc{font-size:9px;letter-spacing:.2em;white-space:nowrap}}
/* v12: "Spray into the mold" sits on a bright floor: a soft local scrim behind the peak copy (no blur) */
.tzs-made .tzs-peak:before{background:radial-gradient(closest-side,rgba(28,21,16,.84),rgba(28,21,16,.56) 52%,rgba(28,21,16,0) 100%)!important}
@media (max-aspect-ratio:1/1){.tzs-made .tzs-peak:before{width:118vw!important;height:min(380px,50svh)!important}}
/* reduced motion: still plates, last frame of the film, no parallax (see JS) */
@media (prefers-reduced-motion:reduce){.tzfb-film{transition:none}}
