/* Home opening: the supplied film has its own clear space for the title.
   The lead story follows the scene in normal flow, away from the artwork. */
body.home-refinement > .loader { display: none; }

/* The rest of the home uses the site's shared, leaf-free scientific paper. */
body.home-refinement {
  --home-paper: #f1f0ec;
  background: var(--home-paper);
}
.home-refinement > main { background: var(--home-paper); }

.home-refinement .site-header:not(.scrolled) {
  color: var(--ink);
  background: rgba(241, 240, 236, .94);
  border-bottom-color: rgba(31, 75, 56, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-refinement .site-header .icon-btn:hover {
  color: var(--paper);
  background: var(--forest);
}

.hero--cinema {
  --hero-paper: #f1f0ec;
  min-height: 0;
  display: block;
  padding: 0;
  background: var(--hero-paper);
  color: var(--ink);
  isolation: isolate;
}
.cinema-scene {
  --scene-height: clamp(700px, calc(100svh - 150px), 960px);
  position: relative;
  min-height: var(--scene-height);
  overflow: hidden;
  background: var(--hero-paper);
  isolation: isolate;
}
.hero--cinema .cinema-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url('/assets/hero-atmosphere-v1/atmosphere-desktop.webp') right center / cover no-repeat;
  opacity: .36;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 27%, #000 51%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 27%, #000 51%);
}
.hero--cinema .cinema-illustration {
  position: absolute;
  z-index: 1;
  inset: 86px 0 0;
  width: 100%;
  height: calc(100% - 86px);
  margin: 0;
  aspect-ratio: auto;
  background: var(--hero-paper);
  overflow: hidden;
  pointer-events: none;
}
.hero--cinema .cinema-media {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: contrast(1.14) brightness(1.04);
}
.hero--cinema .cinema-media::after,
.hero--cinema .cinema-matte { display: none; }
.hero--cinema .cinema-poster,
.hero--cinema .cinema-video,
.hero--cinema .cinema-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  transform: none;
  filter: none;
  animation: none;
}
.hero--cinema .cinema-poster { display: block; z-index: 0; opacity: 1; }
.hero--cinema .cinema-video { z-index: 1; opacity: 0; transition: none; }
.hero--cinema[data-ready="true"] .cinema-video { opacity: 1; }
.hero--cinema[data-ready="true"] .cinema-poster { opacity: 0; }

.hero--cinema .cinema-labels {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.hero--cinema .cinema-labels--mobile { display: none; }
.hero--cinema [data-phase-label] { opacity: 0; transition: opacity .28s ease; }
.hero--cinema [data-phase-label][data-visible="true"] { opacity: 1; }
.hero--cinema .cinema-labels text {
  fill: #30543e;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .25px;
  paint-order: stroke fill;
  stroke: var(--hero-paper);
  stroke-width: 7px;
  stroke-linejoin: round;
}
.hero--cinema [data-phase-label="center"] text {
  fill: #1f6b4a;
  font-weight: 700;
  letter-spacing: .65px;
}

.hero--cinema .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: var(--max);
  min-height: var(--scene-height);
  margin: 0 auto;
  padding: 140px var(--pad) 80px;
}
.hero--cinema .cinema-copy {
  position: relative;
  width: 42%;
  max-width: 580px;
  padding: 0;
}
.hero--cinema .eyebrow {
  color: #365e49;
  font-size: clamp(8px, .72vw, 11px);
  letter-spacing: .13em;
}
.hero--cinema .pulse { width: 6px; height: 6px; background: #b67a2b; animation: none; }
.hero--cinema h1.hero-title--cinema {
  max-width: none;
  margin: 26px 0;
  font-size: clamp(42px, 4.05vw, 64px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #172c21;
}
.hero--cinema h1 .line { overflow: visible; }
.hero--cinema h1 .line span { transform: none; animation: none; }
.hero--cinema h1.hero-title--cinema .line span { color: inherit; }
.hero--cinema h1.hero-title--cinema .line--accent span { color: #1f6b4a; }
.hero--cinema .hero-deck {
  max-width: 32em;
  margin: 0 0 24px;
  color: #49574e;
  font-size: 16px;
  line-height: 1.6;
}
.hero--cinema .hero-cta .text-link {
  color: #234e39;
  font-size: 10px;
  letter-spacing: .12em;
}

.hero--cinema .cinema-director {
  position: absolute;
  z-index: 3;
  left: auto;
  right: var(--pad);
  bottom: 22px;
  display: flex;
  justify-content: flex-end;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
}
.hero--cinema .cinema-pause {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
  min-height: 42px;
  padding: 0 13px;
  color: #315340;
  background: rgba(241, 240, 236, .9);
  border: 1px solid rgba(49, 83, 64, .3);
  border-radius: 999px;
  cursor: pointer;
  font: 600 9px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero--cinema .cinema-pause:hover { background: #e5e9e1; border-color: #315340; }
.hero--cinema .cinema-pause [data-pause-icon] { min-width: 13px; font-size: 16px; }
.hero--cinema .cinema-pause:disabled { opacity: .35; cursor: default; }

.cinema-news { position: relative; z-index: 2; background: var(--forest); color: var(--paper); }
.hero--cinema .cinema-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px clamp(36px, 7vw, 110px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--pad) 34px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero--cinema .cinema-lead .hero-aside-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
  color: #bfcbbe;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .12em;
}
.hero--cinema .cinema-lead .hero-aside-top > span:first-child { color: var(--acid); }
.hero--cinema .cinema-lead h2 {
  grid-column: 1;
  grid-row: 2 / 4;
  max-width: 27ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(28px, 2.6vw, 39px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.hero--cinema .cinema-lead > p {
  grid-column: 2;
  grid-row: 2;
  max-width: 54em;
  margin: 0;
  color: #d0d9ce;
  font-size: 13px;
  line-height: 1.65;
}
.hero--cinema .cinema-lead .evidence-row { display: none; }
.hero--cinema .cinema-lead .text-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  align-self: end;
  margin: 0;
  padding: 10px 0;
  color: var(--paper);
  font-size: 9px;
  letter-spacing: .12em;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero--cinema .cinema-copy { width: 42%; }
  .hero--cinema h1.hero-title--cinema { font-size: clamp(34px, 4vw, 44px); }
  .hero--cinema .hero-deck { font-size: 14px; }
  .hero--cinema .hero-inner { padding-top: 125px; }
}

@media (max-width: 760px) {
  .cinema-scene { display: flex; flex-direction: column; min-height: 0; }
  .hero--cinema .cinema-labels--desktop { display: none; }
  .hero--cinema .cinema-labels--mobile { display: block; }
  .hero--cinema .cinema-labels text { font-size: 32px; stroke-width: 9px; }
  .hero--cinema .cinema-atmosphere {
    inset: 0;
    background-size: cover;
    background-position: 58% center;
    opacity: .34;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
  .hero--cinema .hero-inner {
    order: 1;
    display: block;
    min-height: 0;
    padding: 112px var(--pad) 18px;
  }
  .hero--cinema .cinema-copy { width: 100%; max-width: 600px; padding: 0; }
  .hero--cinema .eyebrow { font-size: 8px; letter-spacing: .08em; gap: 9px; }
  .hero--cinema h1.hero-title--cinema {
    margin: 22px 0;
    font-size: clamp(35px, 9.2vw, 58px);
    line-height: 1.04;
  }
  .hero--cinema .hero-deck { max-width: 40ch; margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
  .hero--cinema .hero-cta .text-link { font-size: 9px; }
  .hero--cinema .cinema-illustration {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1080 / 1260;
  }
  .hero--cinema .cinema-poster,
  .hero--cinema .cinema-video,
  .hero--cinema .cinema-poster img { object-fit: cover; object-position: center bottom; }
  .hero--cinema .cinema-director {
    order: 3;
    position: relative;
    inset: auto;
    padding: 0 var(--pad) 18px;
    margin: 0;
  }
  .hero--cinema .cinema-lead { display: block; padding: 26px var(--pad) 30px; }
  .hero--cinema .cinema-lead .hero-aside-top { flex-wrap: wrap; gap: 6px 18px; font-size: 8px; }
  .hero--cinema .cinema-lead h2 { max-width: none; margin: 17px 0 16px; font-size: 30px; }
  .hero--cinema .cinema-lead > p { margin: 0 0 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--cinema [data-phase-label] { opacity: 1; transition: none; }
  .hero--cinema .cinema-director { display: none; }
  .hero--cinema .cinema-video { display: none; }
  .hero--cinema[data-ready="true"] .cinema-poster { opacity: 1; }
  .hero--cinema .cinema-video { transition: none; }
}
