/* The home-page video extends behind the navigation. Copy stays live HTML. */
.site-header-overlay { position: absolute; inset: 0 0 auto; height: 112px; background: transparent; color: white; border: 0; padding-inline: clamp(24px,5vw,96px); }
.site-header-overlay .custom-logo { height: 82px; max-width: 150px; }
.admin-bar .site-header-overlay { top: 32px; }
.site-header-overlay .nav a { color: white; }
.site-header-overlay .nav a:hover { color: var(--acid); }
.site-header-overlay .nav-donate, .site-header-overlay .nav li:last-child a { border-color: rgba(255,255,255,.6); color: white; }
.site-header-overlay .nav-donate:hover, .site-header-overlay .nav li:last-child a:hover { background: white; color: var(--green) !important; }
.site-header-overlay .menu-button span:not(.sr-only) { background: white; }
.site-header-overlay :focus-visible, .hero-cinema :focus-visible { outline-color: white; }
.hero.hero-cinema { isolation: isolate; min-height: max(760px,100svh); grid-template-columns: minmax(0,1fr); align-items: center; padding: 158px clamp(24px,5vw,96px) 132px; overflow: hidden; background: var(--green); color: white; }
.cinema-backdrop, .cinema-poster, .cinema-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema-backdrop { z-index: -2; background: #041E15; }
.cinema-poster { display: block; }
.cinema-poster img, .cinema-video { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cinema-video { opacity: 0; }
.hero-cinema.has-video-frame .cinema-video { opacity: 1; }
.hero-cinema::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,rgba(4,30,21,.72) 0%,rgba(4,30,21,.50) 26%,rgba(4,30,21,.26) 48%,rgba(4,30,21,.02) 69%),linear-gradient(180deg,rgba(4,30,21,.52),transparent 24%,transparent 75%,rgba(4,30,21,.70)); }
.hero-cinema .hero-copy { max-width: 650px; width: 49%; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-cinema .eyebrow { margin-bottom: 28px; color: white; font-size: 12px; letter-spacing: .15em; }
.hero-cinema h1 { font-size: clamp(64px,7.6vw,136px); line-height: .84; letter-spacing: -.06em; }
.hero-cinema h1 span { color: white; }
.hero-cinema .hero-tagline { color: white; font-size: clamp(25px,2.6vw,43px); margin-top: 30px; }
.hero-cinema .hero-lede { font-size: clamp(16px,1.2vw,19px); line-height: 1.6; max-width: 355px; margin: 20px 0 30px; color: white; }
.hero-cinema .hero-actions { gap: 26px; }
.hero-cinema .button.primary { background: var(--acid); color: var(--ink); padding: 17px 24px; }
.hero-cinema .button.primary:hover { background: white; color: var(--green); }
.film-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-decoration: none; min-height: 44px; }
.film-link > span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 17px; }
.film-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.cinema-bottom { position: absolute; inset: auto clamp(24px,5vw,96px) 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(255,255,255,.24); padding-top: 20px; }
.cinema-scroll { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 700; letter-spacing: .02em; min-height: 44px; }
.cinema-scroll span { font-size: 20px; }
.intro-control { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 140px; min-height: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 30px; padding: 8px 16px; background: rgba(4,30,21,.7); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.intro-control:hover { background: var(--green); }
.intro-control-icon { font-size: 16px; width: 16px; }
.team-film-dialog { position: fixed; inset: 0; margin: auto; width: min(1080px,calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 0; border: 1px solid var(--divider); border-radius: 8px; background: var(--ink); color: white; overflow: auto; }
.team-film-dialog:not([open]) { display: none; }
.team-film-dialog::backdrop { background: rgba(4,18,12,.9); }
.team-film-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 20px; }
.team-film-top h2 { font-size: 18px; letter-spacing: 0; margin: 0; }
.film-close { background: transparent; border: 1px solid rgba(255,255,255,.5); color: white; padding: 6px 14px; min-height: 44px; border-radius: 4px; cursor: pointer; }
.team-film-player { aspect-ratio: 16 / 9; }
.team-film-player > video, .team-film-player > iframe { display: block; width: 100%; height: 100%; border: 0; }
.team-film-dialog.portrait-film { width: min(560px,calc((100svh - 110px) * var(--film-width-ratio, .75)),calc(100vw - 24px)); }
.portrait-film .team-film-player { aspect-ratio: var(--film-aspect, 3 / 4); }
.portrait-film .team-film-player > video { object-fit: contain; background: #090f0c; }
.portrait-film.bundled-film .team-film-player > video { object-fit: cover; }
.team-film-dialog :focus-visible { outline-color: white; }
@media (min-width:768px) and (max-width:1100px) {
  .hero-cinema .hero-copy { width: 53%; }
  .hero-cinema .hero-actions { gap: 14px; }
  .hero-cinema .hero-lede { max-width: 300px; }
}
@media (max-width:880px) {
  .site-header-overlay { height: 94px; }
  .site-header-overlay .custom-logo { height: 66px; }
  .site-header-overlay .nav { top: 93px; background: var(--green); border-color: rgba(255,255,255,.2); }
}
@media (max-width:880px), (max-aspect-ratio:1/1) {
  .hero.hero-cinema { min-height: max(790px,100svh); padding: 350px 24px 122px; align-items: end; }
  .cinema-poster img, .cinema-video { object-fit: contain; object-position: center top; }
  .hero-cinema::after { background: linear-gradient(180deg,rgba(4,30,21,.72),rgba(4,30,21,.04) 19%,rgba(4,30,21,.05) 39%,rgba(4,30,21,.88) 57%,rgba(4,30,21,.97) 100%); }
  .hero-cinema .hero-copy { width: 100%; max-width: 500px; }
  .hero-cinema .eyebrow { font-size: 10px; margin-bottom: 18px; letter-spacing: .12em; }
  .hero-cinema h1 { font-size: clamp(52px,15.6vw,92px); line-height: .87; }
  .hero-cinema .hero-tagline { margin-top: 18px; font-size: 26px; }
  .hero-cinema .hero-lede { margin: 14px 0 22px; font-size: 15px; max-width: 340px; line-height: 1.5; }
  .hero-cinema .hero-actions { flex-direction: row; align-items: center; gap: 12px 20px; }
  .hero-cinema .button.primary { padding: 13px 17px; font-size: 13px; }
  .film-link { font-size: 12px; gap: 7px; }
  .film-link > span { width: 26px; height: 26px; }
  .cinema-bottom { bottom: 22px; inset-inline: 24px; gap: 12px; padding-top: 15px; }
  .cinema-scroll { max-width: 165px; font-size: 10px; gap: 14px; line-height: 1.5; }
  .intro-control { min-width: 128px; font-size: 11px; padding-inline: 12px; }
}
@media (min-width:768px) and (max-width:880px), (min-width:768px) and (max-aspect-ratio:1/1) {
  .hero.hero-cinema { padding-top: 420px; }
}
@media (max-width:782px) { .admin-bar .site-header-overlay { top: 46px; } }
@media (prefers-reduced-motion:reduce) {
  .hero-cinema *, .site-header-overlay * { scroll-behavior: auto; transition: none; }
}
