/* ═══════════════════════════════════════════════════════════
   VIDEOGRAFIE — pagina-specifieke stijlen
   Bouwt verder op style.css (tokens, nav, knoppen, footer, linten).
   ═══════════════════════════════════════════════════════════ */

.page-video { background: var(--ink); }

/* Terug-knop in de navigatie */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s;
}
.nav-back-arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.nav-back:hover { background: var(--accent); color: var(--ink); }
.nav-back:hover .nav-back-arrow { transform: translateX(-3px); }

.rec-dot, .avail-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.7em;
  vertical-align: 0.05em;
}
.rec-dot { background: #E0584F; box-shadow: 0 0 10px rgba(224, 88, 79, 0.8); animation: blink 2.4s ease-in-out infinite; }
.avail-dot { background: #6BD49A; animation: pulse 2.4s ease-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ═══════════ HERO ═══════════ */
.vhero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: radial-gradient(ellipse at 30% 40%, #1C1820 0%, #0E0C0B 70%);
  color: var(--paper);
}
.vhero-still, .vhero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.vhero-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.72) contrast(1.05);
  transform: scale(1.08);
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.2) translate(-2%, -2%); }
}
.vhero-video { z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.vhero-video.is-playing { opacity: 1; }
.vhero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  border: 0;
  /* opschalen snijdt YouTube's titelbalk en logo weg */
  transform: translate(-50%, -50%) scale(1.22);
  pointer-events: none;
}
.vhero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.6) 0%, rgba(14, 12, 11, 0.1) 30%, rgba(14, 12, 11, 0.25) 60%, var(--ink) 100%),
    radial-gradient(90% 70% at 0% 70%, rgba(14, 12, 11, 0.7), transparent 70%);
}
.vhero-inner {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 1.4rem);
  padding-bottom: 2.4rem;
}
.vhero .hero-meta i { margin-right: 0.6em; }
.vhero-title {
  margin: auto 0 2.4rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.8rem, min(12.5vw, 24vh), 14rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.vhero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.vhero-foot {
  display: grid;
  grid-template-columns: minmax(0, 34rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 2rem 4rem;
}
.vhero-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: rgba(243, 237, 228, 0.86);
}
.vhero-lead em {
  font-family: var(--font-display);
  font-size: 1.08em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: #F6BA83;
}
.vhero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
}
.vhero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 237, 228, 0.6);
  margin-bottom: 0.35rem;
}
.vhero-stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 350;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ═══════════ FILMSECTIES ═══════════ */
.films { padding: var(--section-pad) 0 0; }
.films + .films { padding-top: clamp(6rem, 16vh, 12rem); }
.films-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.films-head .display { font-size: clamp(2.8rem, 6vw, 6.2rem); }
.films-side { max-width: 30rem; }
.films-side p { color: var(--muted); font-size: 1.04rem; margin-bottom: 1rem; }
.films-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.2rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.film-grid > noscript { grid-column: 1 / -1; }
.film-grid noscript a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.25em; }
.film--wide { grid-column: span 12; }
.film--feature { grid-column: span 8; }
.film--feature-r { grid-column: span 4; }
.film--half { grid-column: span 6; }
.film--third { grid-column: span 4; }

.film-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  isolation: isolate;
}
.film--feature-r .film-frame { aspect-ratio: 4 / 5; }
.film--wide .film-frame { aspect-ratio: 2.39 / 1; }
.film--wide .film-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.film-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.8);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), filter 0.7s;
}
/* Fallback-thumbnails (hqdefault) hebben zwarte balken: iets inzoomen */
.film-thumb[data-fb] { scale: 1.34; }
.film-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 11, 0.75), rgba(14, 12, 11, 0) 50%);
  pointer-events: none;
}
.film-frame:hover .film-thumb,
.film-frame:focus-visible .film-thumb { transform: scale(1.07); filter: saturate(1.05) brightness(0.95); }
.film-corner {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  background: rgba(14, 12, 11, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.film-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 237, 228, 0.3);
  transition: transform 0.6s var(--ease-out), background-color 0.4s;
}
.film-play svg { width: 20px; height: 20px; margin-left: 3px; fill: var(--paper); }
.film-frame:hover .film-play { transform: scale(1.12); background: var(--accent); border-color: transparent; }
.film-frame:hover .film-play svg { fill: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  /* Op desktop neemt het cursor-label de rol van de playknop over */
  .film-frame:hover .film-play { transform: scale(0.6); opacity: 0; }
}

.film-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 1.1rem;
}
.film-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.film--feature .film-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.film-desc { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.film .tags { margin-top: 0.9rem; }
.film-meta {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.film-meta b { display: block; color: var(--accent); font-weight: 500; font-size: 0.8rem; }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 5vw, 4rem);
  /* Bovenaan ruimte voor de sluitknop, zodat die nooit over de video valt */
  padding-top: max(clamp(1rem, 5vw, 4rem), calc(clamp(1rem, 3vw, 2rem) + 3.5rem));
  border: 0;
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), overlay 0.45s allow-discrete, display 0.45s allow-discrete;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { opacity: 1; pointer-events: auto; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop {
  background: rgba(8, 7, 6, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lightbox-inner {
  width: 100%;
  /* Begrensd door de schermhoogte, zodat de volledige speler (incl. YouTube-bediening) en het onderschrift in beeld blijven */
  width: min(100%, calc((100vh - clamp(1rem, 5vw, 4rem) - max(clamp(1rem, 5vw, 4rem), calc(clamp(1rem, 3vw, 2rem) + 3.5rem)) - 4.5rem) * 16 / 9));
  width: min(100%, calc((100dvh - clamp(1rem, 5vw, 4rem) - max(clamp(1rem, 5vw, 4rem), calc(clamp(1rem, 3vw, 2rem) + 3.5rem)) - 4.5rem) * 16 / 9));
  max-width: 1180px;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease-out);
}
/* Fallback voor browsers zonder <dialog> (Safari ≤ 15.3) */
.lightbox.is-fallback {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 7, 6, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lightbox[open] .lightbox-inner { transform: none; }
.lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}
.lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.2rem;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 380;
  letter-spacing: -0.02em;
}
.lightbox-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A59D94;
}
.lightbox-close {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.1);
  border: 1px solid rgba(243, 237, 228, 0.22);
  transition: background-color 0.3s, transform 0.5s var(--ease-out);
}
.lightbox-close:hover { background: var(--paper); color: var(--ink); transform: rotate(90deg); }
.lightbox-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ═══════════ OUTRO ═══════════ */
.voutro { margin-top: var(--section-pad); }
.voutro-inner { display: flex; flex-direction: column; align-items: flex-start; }
.voutro-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 1.6rem;
}
.voutro-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.voutro-avatar::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  padding: 1.5px;
  background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.avail-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 237, 228, 0.22);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 237, 228, 0.85);
}
.voutro .contact-title { font-size: clamp(3.2rem, 9.5vw, 10rem); }
.voutro .contact-text em { font-family: var(--font-display); color: #F6BA83; font-size: 1.06em; }
.voutro-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.voutro .btn--solid { background: var(--paper); color: var(--ink); }
.voutro .btn--line {
  border-color: rgba(243, 237, 228, 0.3);
  color: var(--paper);
  background: rgba(14, 12, 11, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.voutro .btn--line::before { background: var(--paper); }
.voutro .btn--line:hover { color: var(--ink); }
.voutro-loc { margin-top: 2.4rem; color: rgba(243, 237, 228, 0.72); font-size: 0.98rem; }
.voutro-loc strong { color: var(--paper); font-weight: 500; }
.loc-pin { color: var(--accent); margin-right: 0.3em; }

.footer-specs { display: flex; gap: 0.45rem; }
.spec-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding: 0.3em 0.65em;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--fg);
}
.footer a:hover { color: var(--fg); }

/* Intro-vangnet zoals op de homepage */
.js .vhero [data-intro] { opacity: 0; }
.is-ready:not(.has-gsap) .vhero [data-intro] { opacity: 1; transition: opacity 1s ease; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .vhero-foot { grid-template-columns: 1fr; }
  .film--wide, .film--feature, .film--feature-r, .film--half, .film--third { grid-column: span 12; }
  .film--wide .film-frame { aspect-ratio: 16 / 9; }
  .film--feature-r .film-frame { aspect-ratio: 16 / 9; }

  /* Geen menu op deze pagina: houd de 'Offerte'-link zichtbaar in de navigatie */
  .page-video .nav-links { display: flex; margin-left: auto; }
  .page-video .nav-links a:not([href="#contact"]) { display: none; }
}
@media (max-width: 600px) {
  .nav-back { padding: 0.65rem 0.85rem; }
  .nav-back-label { display: none; }
  .vhero-title { font-size: clamp(3.4rem, 17vw, 6rem); }
  .vhero .hero-meta-mid { display: none; }
  .voutro-actions { align-self: stretch; }
  .vhero-still img { object-position: 24% 50%; }
  .vhero-stats { gap: 1rem 1.6rem; }
  .film-info { flex-direction: column; gap: 0.5rem; }
  .film-meta { text-align: left; display: flex; gap: 0.8rem; }
  .film-meta b { display: inline; }
  .voutro-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 660px) {
  .vhero .hero-meta > span:first-child { display: none; }
}
@media (max-width: 380px) {
  .page-video .nav-name { display: none; }
}
/* Lage schermen (gsm in landscape): speler zo groot mogelijk, onderschrift weg, vrij van de sluitknop */
@media (max-height: 500px) and (orientation: landscape) {
  .lightbox { padding: 0.75rem calc(clamp(1rem, 3vw, 2rem) + 3.5rem); }
  .lightbox-inner {
    width: min(100%, calc((100vh - 1.5rem) * 16 / 9));
    width: min(100%, calc((100dvh - 1.5rem) * 16 / 9));
  }
  .lightbox-cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vhero-still img { animation: none; }
  .js .vhero [data-intro] { opacity: 1; }
  .voutro-avatar::before { animation: none; }
}
