/* SDS opening · the proposition introduces the work; it never covers it.
   Uses the shared screening-room tokens and the films' authored aspect ratios.
   Both review directions use the same introduction and selected-work layout. */
.home-opening{padding-top:calc(var(--header-h) + env(safe-area-inset-top,0px))}
.home-opening .opening-intro{
  display:grid;gap:20px;padding-top:24px;padding-bottom:28px;
}
.home-opening .opening-intro>*{min-width:0}
.home-opening .opening-title{
  max-width:20ch;font:400 clamp(34px,10.3vw,54px)/1.01 var(--sans);
  letter-spacing:-.052em;text-wrap:balance;
}
.home-opening .opening-title .s{
  font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.025em;
}
.home-opening .opening-summary{display:grid;gap:16px;align-content:end;min-width:0}
.home-opening .opening-summary .lede{font-size:16px;line-height:1.55;max-width:47ch}
.home-opening .opening-summary .hero-actions{gap:6px 20px}
.home-opening .opening-summary .btn{min-height:48px;padding-inline:20px}
.home-opening .opening-summary .link-arrow{font-size:14px}

/* The work-first opening gives the first film room before the rest of the page.
   One full lead frame, followed by two distinct films, instead of thumbnail rows. */
.home-opening .opening-work{padding-block:0 var(--section)}
.home-opening .opening-work .section-head{
  display:grid;grid-template-columns:minmax(0,1fr);gap:4px;
  align-items:end;padding-top:20px;margin-bottom:18px;
}
.home-opening .opening-work .section-head>div{gap:6px;min-width:0}
.home-opening .opening-work .h2{font-size:30px;line-height:1.05;letter-spacing:-.035em}
.home-opening .opening-work .section-head .opening-work__actions{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:4px 20px;min-width:0;
}
.home-opening .preview-toggle{
  display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;
  min-width:44px;min-height:44px;padding:0;border:1px solid transparent;border-radius:var(--radius);
  background:transparent;color:var(--text-3);cursor:pointer;
  transition:color .2s var(--ease),background-color .2s var(--ease),border-color .2s var(--ease);
}
.home-opening .preview-toggle__icon{display:block;width:18px;height:18px;fill:currentColor;pointer-events:none}
.home-opening .preview-toggle__play{display:none}
.home-opening .preview-toggle[data-state="paused"] .preview-toggle__icon rect{display:none}
.home-opening .preview-toggle[data-state="paused"] .preview-toggle__play{display:block}
.home-opening .preview-toggle:hover{color:var(--text);background:var(--stage);border-color:var(--line-2)}
.home-opening .preview-toggle:focus-visible{color:var(--text);outline-offset:2px}
.home-opening .preview-toggle:active{background:var(--text);color:var(--bg);border-color:var(--text)}
.home-opening .opening-films{display:grid;grid-template-columns:minmax(0,1fr);gap:38px}
.home-opening .opening-films .film-card{gap:12px;min-width:0;width:auto}
.home-opening .opening-films .film-card--portrait{width:100%;max-width:360px;justify-self:center}
.home-opening .opening-films .film-card__media{
  position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:var(--ar,16/9);
  overflow:hidden;background:var(--stage);border-radius:var(--radius);
}
.home-opening .opening-films .film-card__media picture{display:block;width:100%;height:100%}
.home-opening .opening-films .film-card__media img,
.home-opening .opening-films .film-card__media video{
  width:100%;height:100%;object-fit:contain;object-position:center;
}
.home-opening .opening-films .film-card__media video{
  position:absolute;inset:0;z-index:0;opacity:0;pointer-events:none;
  transition:opacity .24s var(--ease);
}
.home-opening .opening-films .film-card__media video.is-playing{opacity:1}
.home-opening .opening-films .film-card__media:hover img{transform:none}
.home-opening .opening-films .film-card__text{gap:2px}
.home-opening .opening-films .film-card__meta{font-size:11px;line-height:1.5}
.home-opening .opening-films .film-card__title{
  font-size:clamp(24px,6.8vw,32px);line-height:1.08;letter-spacing:-.035em;
}
.home-opening .opening-films .film-card__title a{padding-block:5px}
.home-opening .opening-films .frame-cue{font-size:13px;padding:0 14px 12px;min-height:64px}
.home-opening .opening-index{margin-top:40px}
.home-opening .opening-index .home-film-index>li:last-child{border-bottom:0}

/* Ambient is a separate, non-clickable image. Text remains outside the footage.
   The phone rendition is 4:5; landscape views retain the authored 16:9 frame. */
.home-opening .opening-ambient{padding-bottom:32px}
.home-opening .opening-ambient__frame{
  position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;
  overflow:hidden;background:var(--stage);
}
.home-opening .opening-ambient .hero-media{position:absolute;inset:0}
.home-opening .opening-ambient .hero-media picture{display:block;width:100%;height:100%}
.home-opening .opening-ambient .hero-media img,
.home-opening .opening-ambient .hero-media video{
  width:100%;height:100%;object-fit:contain;object-position:center;
}
.home-opening .opening-ambient .hero-media::after{content:none}
.home-opening .opening-ambient .motion-toggle{
  position:absolute;z-index:3;inset:auto auto 16px var(--gutter);
  display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;
  min-width:44px;min-height:44px;margin:0;padding:0 14px;
  clip-path:none;overflow:visible;white-space:normal;
  border:1px solid var(--line-3);border-radius:var(--radius);
  background:var(--bg);color:var(--text);font:400 13px/1.3 var(--sans);cursor:pointer;
}
.home-opening .opening-ambient .motion-toggle:hover{border-color:var(--text)}
.home-opening .opening-ambient .motion-toggle:focus-visible{outline-offset:4px}

@media (max-width:639px){
  .home-opening .opening-films .frame-cue{opacity:1}
}
@media (max-width:599px) and (orientation:portrait){
  .home-opening .opening-ambient__frame{aspect-ratio:4/5}
}
@media (min-width:640px){
  .home-opening .opening-intro{gap:24px;padding-top:36px;padding-bottom:40px}
  .home-opening .opening-title{font-size:clamp(54px,7.4vw,76px);max-width:19ch}
  .home-opening .opening-summary .lede{font-size:17px;max-width:52ch}
  .home-opening .opening-work .section-head{
    grid-template-columns:minmax(0,1fr) auto;gap:20px;padding-top:28px;margin-bottom:28px;
  }
  .home-opening .opening-work .h2{font-size:clamp(34px,3.5vw,46px)}
  .home-opening .opening-work .section-head .opening-work__actions{justify-content:flex-end;gap:4px 24px}
  .home-opening .opening-films{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px var(--gap)}
  .home-opening .opening-films__lead{grid-column:1/-1}
  .home-opening .opening-films .film-card{gap:16px}
  .home-opening .opening-films .film-card--portrait{max-width:420px}
  .home-opening .opening-films .film-card__meta{font-size:12px}
  .home-opening .opening-films .film-card__title{font-size:clamp(25px,3vw,34px)}
  .home-opening .opening-films__lead .film-card__title{font-size:clamp(34px,3.5vw,48px)}
  .home-opening .opening-index{margin-top:56px}
  .home-opening .opening-ambient{padding-bottom:48px}
}
@media (min-width:1024px){
  .home-opening .opening-intro{
    grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:clamp(48px,6vw,88px);
    align-items:end;padding-top:clamp(44px,4.5vw,68px);padding-bottom:52px;
  }
  .home-opening .opening-title{font-size:clamp(62px,5.35vw,82px);max-width:18ch}
  .home-opening .opening-summary{gap:22px;padding-bottom:4px}
  .home-opening .opening-summary .lede{font-size:18px;line-height:1.55;max-width:36ch}
  .home-opening .opening-summary .hero-actions{gap:8px 24px}
  .home-opening .opening-summary .btn{min-height:52px;padding-inline:22px}
  .home-opening .opening-summary .link-arrow{font-size:15px}
  .home-opening .opening-work .section-head{padding-top:32px;margin-bottom:32px}
  .home-opening .opening-films{gap:60px 32px}
  .home-opening .opening-films .film-card--portrait{max-width:480px}
  .home-opening .opening-films .film-card__text{gap:4px}
  .home-opening .opening-films .film-card__title{font-size:32px}
  .home-opening .opening-films__lead .film-card__title{font-size:44px}
  .home-opening .opening-index{margin-top:72px}
  .home-opening .opening-ambient{padding-bottom:64px}
}
/* Compact landscape windows keep the proposition useful without making it a
   second screen. Film frames remain true; a little scrolling is intentional. */
@media (orientation:landscape) and (max-height:500px){
  .home-opening .opening-intro{
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;
    align-items:end;padding-top:20px;padding-bottom:24px;
  }
  .home-opening .opening-title{font-size:clamp(30px,4.5vw,42px);max-width:18ch}
  .home-opening .opening-summary{gap:10px;padding-bottom:0}
  .home-opening .opening-summary .lede{font-size:14px;line-height:1.45}
  .home-opening .opening-summary .hero-actions{gap:4px 12px}
  .home-opening .opening-summary .btn{min-height:44px;padding-inline:14px;font-size:13px}
  .home-opening .opening-summary .link-arrow{font-size:13px}
  .home-opening .opening-work .section-head{padding-top:16px;margin-bottom:18px}
}
@media (prefers-reduced-motion:reduce){
  .home-opening .opening-films .film-card__media video,
  .home-opening .opening-ambient .hero-media video,
  .home-opening .preview-toggle{transition:none}
}
