/* 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}
/* hero and walk: time-based films, no scrub height needed */
.tzh--hero{height:100svh}
.tzh--walk{height:170svh}
.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{position:absolute;right:auto;bottom:auto;inset:auto;left:calc(var(--fx,0)*100vw);top:calc(var(--fy,.5)*100vw);width:calc(var(--fw,1)*100vw);height:calc(var(--fw,1)*56.25vw);object-fit:cover;
    -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:calc(100vw*.9925 + 34px);bottom:auto}
  .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.0463 + 28px)}
  .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%)}
}
/* reduced motion: still plates, last frame of the film, no parallax (see JS) */
@media (prefers-reduced-motion:reduce){.tzfb-film{transition:none}}
