/* ==========================================================================
   B-VERSIE · gewei-film als hero (hoort bij gewei.js)
   Komt na styles.css (= kopie van site/styles.css). Enkel de film staat hier;
   de rest van de pagina is de huidige site.
   --ds: schaal van de grote titels, gezet door de font tester (breder lettertype = kleiner).
   ========================================================================== */

.film {
  position: relative;
  height: 870vh; /* gewei.js zet de juiste hoogte */
  background: #000;
  color: var(--fog);
}
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.film__canvas {
  position: absolute; inset: 0; z-index: -2;
  display: block;
  width: 100%; height: 100%;
}

/* Verduistering achter de tekst: onder (K0, K3), links (K1-K3), altijd een beetje boven voor de navigatie */
.film__scrim {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%);
}
.film__scrim::before,
.film__scrim::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-drawer);
}
.film__scrim::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 30%, transparent 58%); }
.film__scrim::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.48) 34%, transparent 60%); }
.film__stage[data-halt="0"] .film__scrim::before,
.film__stage[data-halt="3"] .film__scrim::before,
.film__stage[data-halt="1"] .film__scrim::after,
.film__stage[data-halt="2"] .film__scrim::after,
.film__stage[data-halt="3"] .film__scrim::after { opacity: 1; }

/* Bovenrij (status, klok): enkel bij de start */
.film__top {
  position: absolute; inset: 0 0 auto 0;
  padding-top: var(--nav-h);
  opacity: 0;
  transition: opacity 0.5s var(--ease-drawer);
  pointer-events: none;
}
.film__stage[data-halt="0"] .film__top { opacity: 1; }

/* Tekst per halte */
.film__halt {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: var(--nav-h) 0 72px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-drawer), transform 0.7s var(--ease-drawer);
  pointer-events: none;
}
.film__halt > .container { width: 100%; }
.film__halt.is-on { opacity: 1; transform: none; }
.film__halt.is-on a { pointer-events: auto; }
.film__halt--start { align-items: flex-end; }

.film__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(clamp(36px, 4.4vw, 74px) * var(--ds, 1));
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fog);
  text-wrap: balance;
}
/* K0: titel links van het gewei op het scherm (de brand staat rond 47 % van de breedte) */
.film__halt--start .film__title {
  font-size: calc(clamp(40px, 5vw, 84px) * var(--ds, 1));
  max-width: 36vw;
}
.film__row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 20px 48px;
  margin-top: 28px;
}
.film__sub,
.film__text {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ash);
}
.film__copy { max-width: min(600px, 42vw); }
.film__copy--narrow { max-width: min(470px, 32vw); }
.film__label { color: var(--ember); margin-bottom: 16px; }
.film__text { margin-top: 18px; max-width: 24em; }
.film__copy .hero__actions { margin-top: 28px; }

/* Einde (K3): tekst in het midden, de vier feiten onderaan */
.film__halt--end > .container {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}
.film__halt--end .film__copy { align-self: center; }
.film__facts { margin-top: 24px; }
.film__facts b { color: var(--fog); }

/* Onderrand: label, voortgang, overslaan */
.film__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter) 18px;
  color: rgba(241, 241, 241, 0.5);
}
.film__steps { display: flex; gap: 6px; }
.film__steps li {
  width: 22px; height: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.4s ease;
}
.film__steps li.is-past { background: rgba(255, 255, 255, 0.6); }
.film__steps li.is-now { background: var(--ember); }
.film__skip { color: rgba(241, 241, 241, 0.75); text-decoration: none; transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .film__skip:hover { color: var(--white); } }

.film__load {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(241, 241, 241, 0.5);
  pointer-events: none;
}

/* Gsm: alle tekst onderaan, beeld erboven (gsm-ronde volgt nog, zie BOUWEN.md) */
@media (max-width: 760px) {
  .film__halt { align-items: flex-end; padding-bottom: 64px; }
  .film__copy, .film__copy--narrow, .film__halt--start .film__title { max-width: none; }
  .film__title,
  .film__halt--start .film__title { font-size: calc(clamp(30px, 9vw, 46px) * var(--ds, 1)); }
  .film__sub, .film__text { font-size: 17px; }
  .film__text { margin-top: 12px; }
  .film__stage[data-halt] .film__scrim::before { opacity: 1; }
  .film__stage[data-halt] .film__scrim::after { opacity: 0; }
  .film__halt--end > .container { grid-template-rows: auto auto; align-content: end; }
  .film__halt--end .hero__actions { display: none; }
  .film .film__facts b { font-size: calc(20px * var(--ds, 1)); }
  .film__ai { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .film__halt, .film__scrim::before, .film__scrim::after, .film__top { transition: none; }
}
