/* Opening composition study only: four text beats, two deliberate shots. */
#home .living-story.is-enhanced{height:464svh}
#home .story-layer img,#home .story-layer video{animation:none;transition:none}
#home .story-layer video{transition:opacity 700ms ease}
#home .story-copy,#home .story-copy[data-copy]{left:7%;top:43%;bottom:auto;width:58%;max-width:850px;transform:translateY(-20%)}
#home :is(#home-title,#home-title-next){font-size:clamp(46px,6.1vw,96px);line-height:1.04;letter-spacing:-.035em;text-wrap:initial}
#home .story-copy[data-copy=brand] :is(#home-title,#home-title-next){font-size:clamp(48px,7.2vw,112px);font-weight:500;line-height:.97;letter-spacing:-.055em;white-space:normal}
#home .story-shade{background:linear-gradient(90deg,rgba(5,9,10,.62),rgba(5,9,10,.15) 50%,transparent 75%),linear-gradient(0deg,rgba(5,9,10,.55),transparent 28%);transition:opacity 550ms ease}
#home .story-stage[data-chapter=C02] .story-shade,#home .story-stage[data-chapter=C04] .story-shade{opacity:.82}
#home .opening-study-label{position:absolute;z-index:8;right:7%;top:104px;font:10px/1.4 var(--fm-sans);letter-spacing:.07em;color:#e0d7c7;background:#101512aa;padding:5px 9px;border:1px solid #d4c6aa2b;pointer-events:none}
#home .story-skip{top:auto!important;bottom:52px!important;right:7%!important;left:auto!important}
#home .story-layer[data-comp]{--row:0px;--lift:0px;--bt:calc((100cqh - var(--bh)) * var(--fy))}
#home .story-layer[data-comp]::before{display:none}
@media(max-width:700px),(max-aspect-ratio:4/5){
 #home .living-story.is-enhanced{height:424svh}
 #home .story-copy,#home .story-copy[data-copy],#home .story-stage[data-copy-mobile=top] .story-copy{left:7%;right:7%;top:112px;bottom:auto;width:86%;transform:none}
 #home :is(#home-title,#home-title-next){font-size:clamp(32px,9.8vw,58px);line-height:1.06;letter-spacing:-.028em}
 #home .story-copy[data-copy=brand] :is(#home-title,#home-title-next){font-size:clamp(45px,14vw,72px);line-height:.98;letter-spacing:-.05em}
 #home .opening-study-label{top:auto;bottom:82px;left:7%;right:auto;font-size:9px}
 #home .story-skip{top:auto!important;bottom:106px!important;left:7%!important;right:auto!important}
 #home .story-stage[data-copy-mobile=top] .story-shade{background:linear-gradient(180deg,rgba(5,9,10,.46),transparent 42%),linear-gradient(0deg,rgba(5,9,10,.65),transparent 25%)}
 #home #scroll-hint{display:none}
}
@media(prefers-reduced-motion:reduce){#home .story-shade{transition:none}}
/* Old opening grammar puts phone copy over dark foreground, leaving the estate and face clear. */
@media(max-width:700px),(max-aspect-ratio:4/5){
 #home .story-copy,#home .story-copy[data-copy],#home .story-stage[data-copy-mobile=top] .story-copy{top:55%;}
 #home .story-stage[data-chapter=C03] .story-copy,#home .story-stage[data-chapter=C04] .story-copy{top:59%;}
 #home .story-stage[data-copy-mobile=top] .story-shade{background:linear-gradient(0deg,rgba(5,9,10,.68),rgba(5,9,10,.15) 55%,transparent 75%)}
}
@media(max-width:700px) and (max-height:620px){
 #home :is(#home-title,#home-title-next){font-size:32px}
 #home .story-stage[data-chapter=C03] .story-copy,#home .story-stage[data-chapter=C04] .story-copy{top:55%}
 #home .story-skip{display:none}
}
/* Desktop proofs preserve their complete aspect ratio; alternate screens extend only the surrounding field. */
#home .story-layer[data-comp]{--pa:var(--dpa,.625);--study-poster:var(--dstudy-poster);--bw:min(100cqw,calc(100cqh / var(--pa)));--bh:calc(var(--bw) * var(--pa));--bl:calc((100cqw - var(--bw))/2);--bt:calc((100cqh - var(--bh))*.18);isolation:isolate}
#home .story-layer[data-comp]::after{content:"";position:absolute;inset:-5%;z-index:-1;background-image:var(--study-poster);background-size:cover;background-position:center;filter:blur(28px);opacity:.72}
@media(max-width:700px),(max-aspect-ratio:4/5){
 #home .story-layer[data-comp]{--pa:var(--mpa,2.16410256);--study-poster:var(--mstudy-poster)}
 /* The four post-horse automotive scenes are approved full-screen visuals on
    phones. Use cover geometry inside the story canvas, retaining each asset's
    authored focal point, so no black side gutters or early adjacent media can
    enter the intended visual area. The opening horse/castle frames are not
    selected and keep their approved composition. */
 #home .story-layer[data-comp]:is([data-media=DRIVER],[data-media=COLOUR],[data-media=DETAIL],[data-media=WORLD]){
  --bw:max(100cqw,calc(100cqh / var(--pa)));
  --bh:calc(var(--bw) * var(--pa));
  --bl:calc((100cqw - var(--bw)) / 2);
  --bt:calc((100cqh - var(--bh)) * var(--fy))
 }
}
