/* ==========================================================================
   Intelli Living — Hero film, 21:9 cinematic frame
   assets/css/hero-21x9.css  ·  loaded last, after atelier.css

   The studio film is a 21:9 master (1920 × 816). On desktop it now plays inside
   a true 21:9 frame — full viewport width, never stretched and never squeezed
   into the 16:9 poster's box — and the height the frame does not cover is
   filled with a blurred, darkened copy of the same frame, so the hero still
   reads as one full-bleed image instead of a letterbox with empty bands.

   Phones keep the full-bleed cover crop: a 21:9 strip would be roughly 170px
   tall on a portrait screen, so there the film fills the hero and the crop is
   driven by object-position (unchanged from the previous behaviour).
   ========================================================================== */

/* Poster painted behind the film while the video is still loading. */
.hero--film { background: #02040a; }
.hero__film {
  background: #02040a url("../intelli_stealth_hero_30s_poster_21x9.png") center 50% / cover no-repeat;
}

/* Ambient continuation — the same frame, blurred and dimmed, fills the rest. */
.hero__film::before {
  content: "";
  position: absolute;
  inset: -14% -6%;
  background: url("../intelli_stealth_hero_30s_poster_21x9.png") center 50% / cover no-repeat;
  filter: blur(56px) brightness(0.42) saturate(0.9);
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}

/* The frame itself: exactly 21:9 (1920 × 816), centred on the hero. */
@media (min-width: 900px) {
  .hero__poster,
  .hero__video {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 816;
    transform: translateY(-50%);
    object-fit: cover;
    object-position: center 50%;
  }
  .hero__poster img {
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
  }
  /* Feather the frame's top and bottom edges into the ambient fill. */
  .hero__poster,
  .hero__video {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}

/* Wider than 21:9 (super-wide screens): the frame would grow past the hero,
   so cap it at the hero's height and let the sides cover-crop instead. */
@media (min-width: 900px) and (min-aspect-ratio: 21 / 9) {
  .hero__poster,
  .hero__video {
    max-height: 100%;
  }
}

/* --------------------------------------------------------------------------
   Statement hero (home) — a single short line and no lead paragraph.
   The copy column widens and the display size is capped so the sentence
   stays on one line from 320px up to wide desktop, with 0px overflow.
   -------------------------------------------------------------------------- */
.hero--statement .hero__copy { max-width: min(820px, 58vw); }
.hero.hero--statement h1 {
  font-size: clamp(46px, 7.6vw, 138px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: clamp(34px, 4vw, 54px);
}
.hero.hero--statement h1 .line { white-space: nowrap; }

@media (min-width: 901px) {
  html[lang="en"] .hero.hero--statement h1 {
    font-size: clamp(46px, 6.6vw, 112px);
    letter-spacing: -0.04em;
  }
}

@media (max-width: 900px) {
  .hero--statement .hero__copy { max-width: 100%; }
  .hero.hero--statement h1 {
    font-size: clamp(36px, 12.2vw, 66px);
    letter-spacing: -0.04em;
    margin-bottom: clamp(28px, 6vw, 40px);
  }
}
