/* ===================================================================
   RA-MEDIA — styles
   Kleuren en lettertypes pas je bovenaan aan bij :root
   =================================================================== */

:root {
  --bg:        #0a0a0b;   /* achtergrond (bijna zwart) */
  --bg-soft:   #101012;   /* iets lichter vlak */
  --text:      #f4f4f5;   /* hoofdtekst */
  --muted:     #8a8a90;   /* grijze tekst */
  --line:      #26262a;   /* lijntjes / randen */
  /* ====== ACCENTKLEUR — hier verander je in één keer de hele site ======
     Wil je een andere kleur? Pas --accent, --accent-2 en --accent-rgb aan.
     --on-accent = tekstkleur ÓP het accent (donker bij lichte kleuren zoals geel,
     wit bij donkere kleuren zoals paars/blauw). */
  --accent:     #d75e3b;        /* warm terracotta-oranje */
  --accent-2:   #b4471f;        /* dieper gebrand oranje (voor gradient) */
  --accent-rgb: 215, 94, 59;    /* zelfde als --accent, voor doorschijnende tinten/schaduwen */
  --on-accent:  #140f0c;        /* donkere tekst op het accent (kleine labels) */
  --glass:     rgba(30,30,34,.55);  /* glazig vlak voor het pill-menu */
  --radius:    14px;
  --maxw:      1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 60px);
  transition: padding .4s ease;
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; }

/* Logo links */
.nav__logo {
  flex: 1;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Zwevend pill-menu in het midden */
.nav__pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease, background .3s ease;
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; background: rgba(255,255,255,.13); }

/* Rechts: taal-schakelaar + knop */
.nav__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.lang-toggle {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lang-toggle__btn {
  padding: 5px 11px;
  border: none;
  background: none;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background .3s ease;
}
.lang-toggle__btn.is-active { color: #fff; background: rgba(255,255,255,.14); }
.nav__cta {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(var(--accent-rgb),.35);
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(var(--accent-rgb),.45); }

/* Hamburger-knop: op desktop verborgen */
.nav__burger { display: none; }

/* Mobiel menu-overlay: bestaat altijd maar is onzichtbaar tot 'is-open' (desktop dus onaangetast) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;                 /* onder de header (z 50), zodat de hamburger/X klikbaar blijft */
  background: rgba(10, 10, 11, .98);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu__links a {
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  /* zachte, staggered fade-in */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: .10s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .28s; }
.mobile-menu__links a:active { color: var(--accent); }
.mobile-menu__lang { opacity: 0; transition: opacity .45s ease; }
.mobile-menu.is-open .mobile-menu__lang { opacity: 1; transition-delay: .34s; }

/* Mobiel: pill-menu en balk-taalknop verbergen, hamburger tonen */
@media (max-width: 780px) {
  .nav__pill, .nav .lang-toggle { display: none; }
  .nav__logo { font-size: 19px; }

  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 11px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    cursor: pointer;
  }
  .nav__burger span {
    display: block;
    width: 100%; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* balk krijgt achtergrond bij scrollen, zodat content er niet doorheen schemert */
  .nav.scrolled {
    background: rgba(10, 10, 11, .9);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* fallback achtergrond zolang er geen video is */
  background:
    radial-gradient(120% 90% at 70% 20%, #1c1c22 0%, #0a0a0b 60%),
    linear-gradient(180deg, #141418 0%, #0a0a0b 100%);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,11,.45) 0%, rgba(10,10,11,.15) 40%, rgba(10,10,11,.85) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 20px; }
.hero__eyebrow {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 1.5px;
  color: #b6b6bc;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.hero__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 15vw, 200px);
  line-height: .92;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero__sub {
  margin-top: clamp(16px, 2.2vw, 26px);
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 5px;
  color: var(--text);
}
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50%      { transform: scaleY(1);  opacity: 1;  transform-origin: top; }
}

/* ============================ SECTION HEADINGS ============================ */
.section-head { margin-bottom: 46px; }
.section-head__label,
.about__brands + .stats .stat__label {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}
.section-head__title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-top: 8px;
}

/* Paars gradient-woord (donker -> licht), terugkerend accent */
.grad {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 55%, #ffd6b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Verticale hoeklijn naast de titel (het "⌐"-detail) */
.section-head--accent { position: relative; padding-left: 28px; }
.section-head--accent::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(var(--accent-rgb),0));
}
.section-head--accent::after {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 2px;
  background: var(--accent);
}

/* ============================ WORK GRID ============================ */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 140px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 70px);
}
/* Masonry: liggende (16:9) en staande (9:16) video's passen samen zonder gaten */
.work__grid {
  column-count: 3;
  column-gap: 18px;
}
@media (max-width: 900px) { .work__grid { column-count: 2; } }
@media (max-width: 600px) { .work__grid { column-count: 1; } }

.work-card {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 18px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.work-card.landscape { aspect-ratio: 16 / 9; }
.work-card.portrait  { aspect-ratio: 9 / 16; }


.work-card__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  filter: brightness(.72);
}
.work-card:hover .work-card__thumb { transform: scale(1.06); filter: brightness(.5); }

.work-card__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.9) 100%);
}
.work-card__info {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
}
.work-card__client {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}
.work-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.25;
}
/* Categorie-label in accentkleur */
.work-card__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.30);
}
/* Play-knop: altijd zichtbaar, kleurt in het accent bij hover */
.work-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2;
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(4px);
  opacity: .9;
  transition: opacity .3s ease, transform .35s ease, background .35s ease, border-color .35s ease;
}
.work-card:hover .work-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(var(--accent-rgb),.45);
}
.work-card__play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; transition: fill .35s ease; }
.work-card:hover .work-card__play svg { fill: var(--on-accent); }

/* ============================ LOGO-SLIDER (TRUSTED BY) ============================ */
.marquee-section {
  padding: clamp(34px, 5vw, 58px) 0 clamp(48px, 6.5vw, 88px);
  text-align: center;
  overflow: hidden;
}
.marquee-label {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: clamp(22px, 3.5vw, 36px);
}
.marquee {
  position: relative;
  overflow: hidden;
  /* randen links/rechts vervagen */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: grid;
  place-items: center;
  flex: none;
  /* spacing IN het item (i.p.v. gap) → beide loop-helften exact gelijk = naadloos */
  padding: 0 clamp(26px, 3.5vw, 46px);
}
.marquee__item img {
  max-height: 36px;   /* harde px-hoogte, zodat niets meer wordt afgesneden */
  max-width: 150px;
  width: auto;
  object-fit: contain;
  opacity: .7;
  /* maakt elk (gekleurd) logo automatisch wit — mits transparante achtergrond */
  filter: brightness(0) invert(1);
  transition: opacity .3s ease;
}
.marquee__item:hover img { opacity: 1; }
/* Placeholder-logo zolang er nog geen echte logo's zijn */
.marquee__item--placeholder {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 22px;
  height: auto;
}
/* Tekst-logo (merknaam als wordmark) */
.marquee__word {
  height: auto;
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #d3d3d8;
  opacity: .66;
  transition: opacity .3s ease, color .3s ease;
}
.marquee__word:hover { opacity: 1; color: #fff; }

/* ============================ ABOUT ME ============================ */
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 70px);
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(30px, 4.5vw, 56px);
  align-items: center;
}
@media (max-width: 820px) { .about__inner { grid-template-columns: 1fr; } }

/* Foto links met hoek-accenten */
.about__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #23232b 0%, #121216 70%),
    linear-gradient(180deg, #1a1a20, #101014);
  display: grid;
  place-items: center;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--muted);
}
.about__photo::before,
.about__photo::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  z-index: 2;
  pointer-events: none;
}
.about__photo::before {
  top: 16px; left: 16px;
  border-top: 2px solid rgba(255,255,255,.55);
  border-left: 2px solid rgba(255,255,255,.55);
}
.about__photo::after {
  bottom: 16px; right: 16px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.about__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 8px 0 24px;
}
.about__bio p { color: #cfcfd4; margin-bottom: 16px; max-width: 74ch; }

/* Merken als pills */
.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.about__pills span {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  color: #d7d7db;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.about__pills span:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),.14);
}
.about__pills-more {
  color: var(--muted) !important;
  border-color: transparent !important;
  background: none !important;
}

/* ============================ STATS ============================ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 4vw, 48px);
  margin-top: 32px;
}
.stat { display: block; }
.stat__num {
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1;
  letter-spacing: -.5px;
}
.stat__plus {
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  color: var(--accent);
  margin-left: 1px;
  vertical-align: baseline;
}
.stat__label {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

/* ============================ CONTACT ============================ */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vw, 170px) clamp(20px, 5vw, 60px) 0;
  text-align: center;
}
.contact__title {
  font-size: clamp(34px, 6.6vw, 78px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.02;
  margin: 14px 0 8px;
}
/* Rustige regel onder de titel */
.contact__subtitle {
  font-size: clamp(20px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -.5px;
  color: #c7c7cd;
  margin: 8px 0 34px;
}
.contact__email {
  display: inline-block;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 500;
  padding-bottom: 6px;
  /* laag 1 = oranje gradient (groeit bij hover), laag 2 = rustig basislijntje */
  background-image:
    linear-gradient(90deg, var(--accent-2), var(--accent)),
    linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 2px, 100% 2px;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1);
}
.contact__email:hover {
  background-size: 100% 2px, 100% 2px;
}
.contact__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.contact__socials a {
  font-size: 14px;
  color: var(--muted);
  transition: color .25s ease;
}
.contact__socials a:hover { color: #fff; }
.contact__socials .dot { color: var(--line); font-size: 10px; }

/* ============================ FOOTER ============================ */
/* Volle breedte, zelfde zij-marge als de header (schuift mee met het scherm) */
.footer {
  margin: clamp(80px, 12vw, 140px) 0 0;
  padding: 0 clamp(20px, 5vw, 60px);
  text-align: left;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(40px, 6vw, 60px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
.footer__brand { text-align: left; }
.footer__logo {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Gecentreerde kolom (CONTACT in het midden) */
.footer__col--center { text-align: center; }
.footer__col--center a { margin-left: auto; margin-right: auto; }
.footer__col--center .footer__icons { justify-content: center; }

/* Rechts uitgelijnde kolom (LINKS rechts) */
.footer__col--right { text-align: right; }
.footer__col--right a { margin-left: auto; }
.footer__col--right .footer__icons { justify-content: flex-end; }

/* Op mobiel alles weer links uitlijnen */
@media (max-width: 720px) {
  .footer__col--center { text-align: left; }
  .footer__col--center a { margin-left: 0; margin-right: 0; }
  .footer__col--right { text-align: left; }
  .footer__col--right a { margin-left: 0; }
  .footer__col--right .footer__icons { justify-content: flex-start; }
}
.footer__tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
}
.footer__col-title {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 15px;
  color: #cfcfd4;
  margin-bottom: 12px;
  transition: color .25s ease;
  width: fit-content;
}
.footer__col a:hover { color: #fff; }
.footer__email { font-weight: 500; }

.footer__icons { display: flex; gap: 20px; margin-top: 20px; }
.footer__icons a {
  color: var(--muted);
  margin: 0;
  transition: color .25s ease, transform .25s ease;
}
.footer__icons a:hover { color: #fff; transform: translateY(-2px); }
.footer__icons svg { width: 20px; height: 20px; display: block; }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer__bottom > :first-child { justify-self: start; }
.footer__legal { justify-self: center; }
.footer__top-link { justify-self: end; }
.footer__top-link {
  color: var(--muted);
  transition: color .25s ease;
}
.footer__top-link:hover { color: #fff; }

/* Juridische links in de onderbalk */
.footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__legal a {
  color: var(--muted);
  transition: color .25s ease;
}
.footer__legal a:hover { color: #fff; }
.footer__legal .dot { color: var(--line); }

@media (max-width: 620px) {
  .footer__bottom { grid-template-columns: 1fr; }
  .footer__bottom > :first-child,
  .footer__legal,
  .footer__top-link { justify-self: start; }
}

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox__frame { display: flex; justify-content: center; width: 100%; }
/* Liggend (16:9) — past altijd binnen het scherm */
.lightbox__ratio {
  position: relative;
  width: min(1100px, 92vw, calc(86svh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
/* Staand (9:16) voor verticale video's */
.lightbox.portrait .lightbox__ratio {
  width: min(92vw, calc(86svh * 9 / 16));
  aspect-ratio: 9 / 16;
}
.lightbox__ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  background: none; border: none;
  color: #fff; font-size: 42px;
  line-height: 1; cursor: pointer;
  opacity: .8; transition: opacity .2s ease;
}
.lightbox__close:hover { opacity: 1; }

/* ============================ REVEAL ANIMATIE ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================ JURIDISCHE PAGINA'S ============================ */
/* Sticky knop bovenin */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 60px);
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.legal-back:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .14);
  transform: translateX(-2px);
}
.legal-back svg { display: block; }

/* Inhoud */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 40px) clamp(80px, 12vw, 120px);
}
.legal__label {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}
.legal h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 10px 0 20px;
}
.legal__intro {
  color: #cfcfd4;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  margin-bottom: 46px;
  max-width: 64ch;
}
.legal h2 {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 44px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal p {
  color: #c4c4c9;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 68ch;
}
.legal ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-width: 68ch;
}
.legal li {
  color: #c4c4c9;
  line-height: 1.7;
  margin-bottom: 9px;
  padding-left: 20px;
  position: relative;
}
.legal li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-link {
  color: #fff;
  border-bottom: 1px solid var(--accent);
  transition: opacity .2s ease;
}
.legal-link:hover { opacity: .75; }
.legal__updated {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ============================ FILM-GRAIN ============================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;               /* boven de content, onder de video-lightbox (z 100) */
  pointer-events: none;      /* klikt overal doorheen */
  opacity: .07;              /* subtiel — hoger = meer korrel */
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

/* ============================ MOBIELE VERFIJNINGEN ============================ */
/* Header verbergen bij omlaag scrollen, tonen bij omhoog (alleen op mobiel) */
@media (max-width: 780px) {
  .nav { transition: transform .35s ease, padding .4s ease, background .3s ease; }
  .nav--hidden { transform: translateY(-100%); }
}

@media (max-width: 640px) {
  /* --- Logo-slider: meer lucht eronder + grotere logo's --- */
  .marquee-section { padding-bottom: clamp(64px, 15vw, 88px); }
  .marquee-label { margin-bottom: clamp(26px, 5vw, 40px); }
  .marquee__item img { max-height: 44px; max-width: 165px; }
  .marquee__item { padding: 0 clamp(20px, 5.5vw, 38px); }

  /* --- Footer: alles netjes onder elkaar, links uitgelijnd --- */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 44px;
  }
  .footer__col--center,
  .footer__col--right { text-align: left; }
  .footer__col--center a,
  .footer__col--right a { margin-left: 0; margin-right: 0; }
  .footer__col--center .footer__icons,
  .footer__col--right .footer__icons { justify-content: flex-start; }

  /* iets groter onderaan */
  .footer__logo { font-size: 26px; }
  .footer__tagline { font-size: 15px; max-width: none; }
  .footer__col-title { font-size: 13px; }
  .footer__col a { font-size: 17px; }
  .footer__icons svg { width: 22px; height: 22px; }

  /* Onderbalk: copyright links + "terug naar boven" rechts, juridisch eronder */
  /* Onderbalk gestapeld: copyright (1 regel) → juridisch → iets lager: terug naar boven */
  .footer__bottom {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    row-gap: 12px;
    justify-items: start;
    align-items: start;
    font-size: 13px;
  }
  .footer__bottom > span { grid-area: auto; justify-self: start; }
  .footer__legal { grid-area: auto; justify-self: start; }
  .footer__top-link { grid-area: auto; justify-self: start; margin-top: 8px; }
  .footer__legal a,
  .footer__top-link { font-size: 13px; }
}
