/* Only the homepage hero: retain the tablet portrait scale and reserve credits. */
@media(min-width:701px){
 body[data-page="home"] .hero-copy{padding-top:calc(var(--header-height,112px) + var(--news-strip-height,76px) + 28px)}
 /* Preserve the former full-height portrait scale. Let its natural width include
    both shoulders instead of cropping it inside a narrow object-fit:cover box. */
 body[data-page="home"] .hero .hero-photo #hero-branding-image{inset:var(--header-height,112px) 0 auto auto;width:max(52%,calc((var(--hero-frame-height,820px) - var(--header-height,112px)) * .67822));height:auto;object-fit:contain;object-position:right top;mask-image:linear-gradient(90deg,transparent,#000 3%),linear-gradient(180deg,transparent,#000 5%);mask-composite:intersect;-webkit-mask-image:linear-gradient(90deg,transparent,#000 3%),linear-gradient(180deg,transparent,#000 5%);-webkit-mask-composite:source-in}
}
@media(max-width:700px){
 /* Same layered composition as tablet, with compact controls above the picture. */
 body[data-page="home"]>.beta-ticker{min-height:64px;padding:8px 5%;gap:10px}
 body[data-page="home"]>.beta-ticker .beta-ticker-brand{padding:6px 9px}
 body[data-page="home"]>.beta-ticker .beta-ticker-brand b{font-size:12px}
 body[data-page="home"]>.beta-ticker .beta-ticker-brand small{margin-top:2px}
 body[data-page="home"] .hero{height:auto;min-height:690px;max-height:none}
 body[data-page="home"] .hero-copy{width:100%;height:auto;min-height:690px;justify-content:flex-start;padding:28px 5% 132px}
 body[data-page="home"] .hero h1{font-size:clamp(38px,10.5vw,65px);margin:24px 0 20px;max-width:90%}
 body[data-page="home"] .hero-description{font-size:13px;max-width:260px;line-height:1.6}
 body[data-page="home"] .hero .hero-photo #hero-image{object-position:95% 0%;height:100%;top:0}
 body[data-page="home"] .hero .hero-photo #hero-branding-image{inset:0 0 auto auto;width:auto;height:86%;object-fit:contain;object-position:right top;mask-image:none;-webkit-mask-image:none}
 /* Keep the original mobile image gradient from styles.css. */
 body[data-page="home"] .hero-actions{flex-wrap:wrap;gap:14px}
 body[data-page="home"] .hero .button-dark{padding:14px 16px;gap:18px;font-size:11px}
 body[data-page="home"] .hero-instagram-label{display:none}
 body[data-page="home"] .hero-instagram-handle{font-size:13px}
 body[data-page="home"] .hero.hero-video-active .hero-copy{padding-top:calc(56.25vw + 24px)}
}
/* Raise the desktop portrait slightly while retaining its visual presence. */
@media(min-width:1101px) and (hover:hover) and (pointer:fine){
 body[data-page="home"] .hero .hero-photo #hero-branding-image{top:calc(var(--header-height,112px) - 36px);right:1%;width:max(49%,calc((var(--hero-frame-height,820px) - var(--header-height,112px)) * .639));height:auto}
}

/* Tablet: size against the actual slideshow, not a viewport estimate.
   A single contain box preserves the entire cutout and anchors its lower edge
   to the slideshow. No composite mask: the PNG already supplies transparency. */
@media (min-width:701px) and (max-width:1100px), (min-width:701px) and (hover:none), (min-width:701px) and (pointer:coarse){
 body[data-page="home"] .hero .hero-photo #hero-branding-image{
  inset:var(--header-height,112px) 0 0 auto;
  width:100%;height:calc(100% - var(--header-height,112px));
  object-fit:contain;object-position:right bottom;
  mask-image:none;-webkit-mask-image:none;
 }
}
