@layer components {
  .hero { display: grid; gap: var(--gutter); padding: 0 0 var(--rhythm); }
  .hero__frame {
    position: relative; overflow: clip;
    aspect-ratio: 16 / 9; width: 100%;
    /* Capped so the world name stays on the first screen. At 16:9 full-bleed
       the headline sat entirely below the fold on a laptop. */
    max-height: 62svh;
    background: var(--surface-2);
  }
  .hero__poster, .hero__video {
    width: 100%; height: 100%; object-fit: cover;
  }
  /* The video sits over the poster and fades in once it is actually playing,
     so a refused autoplay leaves the poster visible rather than a black box. */
  .hero__video {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .45s linear;
  }
  .hero__video.is-playing { opacity: 1; }

  /* --- Vertical sources -------------------------------------------------
     A 9:16 film centre-cropped into a 16:9 frame shows a sliver. Instead the
     whole frame is shown, contained, standing on a heavily blurred and
     darkened enlargement of itself. Nothing is cropped, no space sits empty,
     and the film is clearly the subject rather than something that failed to
     fill its box. */
  .hero__backdrop { display: none; }

  .hero__frame[data-orient='portrait'] .hero__backdrop {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* Pushed well past the edges so the blur leaves no visible seam. */
    scale: 1.16;
    /* Dark and desaturated enough that the film reads as the only thing in
       focus. A lighter stage competes with its own subject. */
    filter: blur(40px) saturate(.35) brightness(.26);
  }

  .hero__frame[data-orient='portrait'] .hero__poster,
  .hero__frame[data-orient='portrait'] .hero__video {
    object-fit: contain;
    /* drop-shadow follows the painted pixels, not the element box, so on a
       contained image it hugs the film itself — and it does that for any
       aspect ratio, where a fixed-ratio outline would only suit 9:16. */
    filter: drop-shadow(0 18px 45px rgb(0 0 0 / .55));
  }
  .hero__body { padding-inline: var(--gutter); }
  .hero__h {
    font-family: var(--font-display);
    font-weight: var(--display-wght);
    font-variation-settings: 'wdth' var(--display-wdth);
    font-size: clamp(2.5rem, 1rem + 6vw, 7rem);
    line-height: .9; letter-spacing: var(--display-tracking);
    text-transform: uppercase;
  }
  .hero__tagline { color: var(--ink-quiet); max-width: 40ch; margin-top: .75rem; }

  .logo { width: 100%; height: auto; }
  .logo__story, .logo__filmz {
    font-family: var(--font-display); font-size: 58px; font-weight: 800;
    letter-spacing: -.02em;
  }
  .logo__story { fill: var(--ink); }
  .logo__filmz { fill: var(--accent); font-weight: 500; }
  .logo__o circle { fill: var(--ink); }
  .logo__play { fill: var(--surface); }
}

@layer components {
  /* Client delivery. Quiet and unbranded-ish: the client is here for one file,
     not to be sold to. */
  .deliver {
    max-width: 34rem; margin-inline: auto;
    padding: clamp(3rem, 10vw, 6rem) var(--gutter);
  }
  .deliver__for {
    font-size: .8125rem; color: var(--ink-quiet);
    letter-spacing: .02em; margin-bottom: .5rem;
  }
  .deliver__h {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem);
    line-height: 1.05; letter-spacing: -.03em;
  }
  .deliver__meta {
    display: grid; gap: .5rem;
    margin: 1.75rem 0;
    padding: 1rem 0;
    border-block: 1px solid var(--rule);
    font-size: .875rem;
  }
  .deliver__meta > div { display: flex; gap: 1rem; }
  .deliver__meta dt { color: var(--ink-quiet); min-width: 9rem; }
  .deliver__meta dd { margin: 0; }
  .deliver__note {
    color: var(--ink-quiet); font-size: .8125rem;
    margin-top: 1.25rem; max-width: 46ch;
  }
}

@layer components {
  /* The client's preview player. The box is sized from the stored dimensions
     so it holds its shape before any video arrives. */
  .deliver__player {
    margin: 1.75rem 0 .75rem;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: clip;
  }
  .deliver__player--portrait {
    aspect-ratio: 9 / 16;
    max-height: 70svh;
    margin-inline: auto;
    width: auto;
  }
  .deliver__player video {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
  }
  .deliver__note--tight { margin-top: 0; }
}

@layer components {
  .deliver__pending {
    margin: 1.75rem 0 .5rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--rule);
    background: color-mix(in oklab, var(--ink) 5%, transparent);
  }
  .deliver__pending-h { font-family: var(--font-display); font-weight: 600; }
}
