.case-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(35rem, 76vh, 52rem);
  background: var(--dark);
  color: white;
}
.case-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(18 18 18 / 92%), transparent 85%);
}
.case-hero .wrap { width: 100%; padding-block: 8rem 3rem; }
.case-hero h1 { color: white; font-size: clamp(2.6rem, 6vw, 5rem); margin: 1rem 0; }
.case-hero p, .case-cta p { max-width: 39rem; font-size: 1.15rem; line-height: 1.55; }
.case-hero a, .case-content a:not(.credits a) { text-decoration: underline; text-underline-offset: .2em; }
.credits { display: flex; align-items: start; gap: clamp(2rem, 7vw, 6rem); padding-block: 2rem; }
.credits a { display: grid; gap: .65rem; }
.credits span, .hager figcaption { color: var(--muted); font-size: .95rem; }
.credits img { max-width: 8rem; height: 2.1rem; width: auto; object-fit: contain; object-position: left; }
.case-content section { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.hager h2 { max-width: 21em; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.case-content p { max-width: 68ch; line-height: 1.72; font-size: 1.1rem; margin-top: 1rem; }
.hager .mm-player { margin: 1.75rem 0 .65rem; width: 100%; max-width: none; }
.hager figure { margin: 0; }
.hager figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hager figcaption { padding-top: .55rem; }
.case-cta { background: var(--dark); color: white; padding: clamp(3rem, 7vw, 6rem) 0; }
.case-cta h2 { color: white; }
.case-cta p { margin: 1rem 0 1.5rem; }
@media (max-width: 680px) {
  .case-hero { min-height: 32rem; }
  .credits { flex-wrap: wrap; }
}

.campaign-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1.4vw, 1.25rem);
  margin: 1.75rem 0 1rem;
}
.campaign-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 680px) {
  .campaign-photos { grid-template-columns: 1fr; }
}

.case-hero .hero-films {
  display: inline-block; margin-top: 1.25rem; padding: .8rem 1.2rem;
  background: var(--gold); color: var(--dark); border-radius: 2rem;
  font-weight: 650; text-decoration: none;
}
#campagnefilms, #campagnefotografie { scroll-margin-top: 5rem; }
.film-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.film-grid h3 { margin-top: 1.25rem; font-size: clamp(1.35rem,2.2vw,2rem); }
.film-grid .film-link { display: inline-block; margin-top: .8rem; }
.hager .film-note { font-size: .93rem; color: var(--muted); margin-top: 2rem; }

@media (max-width: 720px) { .film-grid { grid-template-columns: 1fr; } }

/* BTS-duo: staande BTS-clip naast het filmshot, precies even hoog (9:16 naast 16:9) */
.toolbox-pair { display: grid; grid-template-columns: 81fr 256fr; align-items: end; gap: clamp(.75rem, 2vw, 1.5rem); margin-top: 1.75rem; }
.hager .toolbox-pair img { aspect-ratio: auto; width: 100%; height: auto; border-radius: .45rem; }
.bts-player { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: .45rem; background: var(--dark); }
.bts-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bts-cover { border: 0; padding: 0; font: inherit; background: transparent; width: 100%; }
.bts-cover .mm-playbtn { width: 56px; height: 56px; }
.bts-cover .mm-playbtn::after { border-top-width: 10px; border-bottom-width: 10px; border-left-width: 16px; margin-left: 4px; }
.bts-cover .mm-covertitle { left: 12px; bottom: 12px; font-size: 12.5px; }
.bts-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* Vergelijking en renderreeks: het beeld zelf staat centraal */
.comparison { --radius: 14px; margin-top: 1.75rem; }

/* ---------- Renderreeks: scrollen is de camera die terugtrekt ---------- */
.scrolly { margin-top: 1.75rem; }
.sy-stage { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius, 14px); background: #fff; box-shadow: 0 30px 70px -30px rgb(34 30 31 / 60%); }
.sy-stage video, .sy-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sy-canvas, .sy-hud { display: none; }
.sy-cap { margin: 0; }

.scrolly.is-live { height: 320vh; height: 320svh; } /* svh: verandert niet als de adresbalk in- of uitklapt */
.scrolly.is-live .sy-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-top: 64px;
}
.scrolly.is-live .sy-video { display: none; }
.scrolly.is-live .sy-canvas, .scrolly.is-live .sy-hud { display: block; }
/* groot beeld: zo breed als het scherm toelaat, buiten de tekstkolom */
.scrolly.is-live .sy-stage, .scrolly.is-live .sy-cap { width: min(calc(100vw - 64px), 1920px, calc((100svh - 150px) * 16 / 9)); max-width: none; align-self: center; flex: none; }

/* Zoekerkader: hoeken, label en tijdlijn in het beeld */
.sy-hud { position: absolute; inset: 0; pointer-events: none; --e: 28px; }
.sy-hud::before {
  content: ''; position: absolute; inset: 18px; opacity: .9;
  background:
    linear-gradient(#fff,#fff) top left / 26px 2px no-repeat, linear-gradient(#fff,#fff) top left / 2px 26px no-repeat,
    linear-gradient(#fff,#fff) top right / 26px 2px no-repeat, linear-gradient(#fff,#fff) top right / 2px 26px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 26px 2px no-repeat, linear-gradient(#fff,#fff) bottom left / 2px 26px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 26px 2px no-repeat, linear-gradient(#fff,#fff) bottom right / 2px 26px no-repeat;
}
.sy-hud::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(0deg, rgb(0 0 0 / 50%), transparent); }
.sy-badge {
  position: absolute; z-index: 1; top: calc(var(--e) + 8px); left: calc(var(--e) + 8px);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: 99px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: background .35s, color .35s;
}
.sy-badge i { width: 8px; height: 8px; border-radius: 50%; }
.sy-badge.is-real { background: rgb(20 18 18 / 58%); color: #fff; }
.sy-badge.is-real i { background: #ff3b30; animation: sy-rec 1.4s ease-in-out infinite; }
.sy-badge.is-render { background: rgb(255 255 255 / 88%); color: var(--dark); }
.sy-badge.is-render i { background: var(--gold); border-radius: 2px; transform: rotate(45deg); }
.sy-badge.is-switch { animation: sy-pop .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes sy-rec { 50% { opacity: .25; } }
@keyframes sy-pop { 0% { transform: scale(.9); } 100% { transform: none; } }

.sy-track { position: absolute; z-index: 1; left: calc(var(--e) + 8px); right: calc(var(--e) + 8px); bottom: calc(var(--e) + 2px); display: flex; gap: 4px; }
.sy-seg { position: relative; padding-top: 9px; border-top: 3px solid rgb(255 255 255 / 45%); color: rgb(255 255 255 / 65%); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: color .3s, border-color .3s; }
.sy-seg-real { flex: 0 0 calc(var(--real, 20%) - 2px); }
.sy-seg-render { flex: 1; }
.sy-seg.is-on { color: #fff; }
.sy-seg-real.is-on { border-color: var(--gold); }
.sy-seg-render.is-on { border-color: #fff; }
.sy-head { position: absolute; top: -6px; left: var(--p, 0%); width: 3px; height: 9px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px rgb(0 0 0 / 25%); }

.sy-cap { height: 3em; overflow: hidden; color: var(--dark); font-size: 1.05rem; line-height: 1.5; }
.sy-cap.is-in { animation: sy-in .45s ease both; }
@keyframes sy-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Scroll-aanwijzing in het kader: één woord in kapitalen en een dun lijntje met een zakkend lichtje.
   Staat er zolang de beweging loopt, verdwijnt aan het eind. */
.sy-cue {
  position: absolute; z-index: 1; left: 50%; bottom: calc(var(--e) + 54px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase;
  text-shadow: 0 1px 10px rgb(0 0 0 / 45%);
  transition: opacity .6s ease, transform .6s ease;
}
.sy-cue-line { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgb(255 255 255 / 30%); }
.sy-cue-line::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(transparent, #fff); animation: sy-fall 2.2s cubic-bezier(.6,0,.3,1) infinite;
}
@keyframes sy-fall { 0% { top: -40%; } 70%, 100% { top: 100%; } }
.scrolly.is-done .sy-cue { opacity: 0; transform: translateX(-50%) translateY(8px); }

@media (max-width: 640px) {
  .scrolly.is-live { height: 280vh; height: 280svh; }
  .scrolly.is-live .sy-sticky { padding-top: 56px; gap: 12px; }
  /* op de telefoon staand bijgesneden, zodat het beeld het scherm vult */
  .scrolly.is-live .sy-stage { aspect-ratio: 4 / 5; }
  .scrolly.is-live .sy-stage, .scrolly.is-live .sy-cap { width: min(calc(100vw - 32px), calc((100svh - 230px) * 4 / 5)); }
  .sy-hud { --e: 14px; }
  .sy-hud::before { inset: 12px; background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px; }
  .sy-badge { font-size: .7rem; padding: 6px 11px 6px 9px; }
  .sy-cue { bottom: calc(var(--e) + 44px); font-size: .6rem; gap: 8px; }
  .sy-cue-line { height: 26px; }
  .sy-seg { font-size: .6rem; letter-spacing: .04em; }
  .sy-cap { height: 6em; font-size: .95rem; } /* vaste hoogte: het beeld verschuift niet als de tekst wisselt */
}

/* ---------- Vergelijking: droneopname tegenover render ---------- */
.comparison-stage {
  --split: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: #fff; box-shadow: 0 24px 60px -28px rgb(34 30 31 / 55%);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.comparison-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparison-stage img:nth-of-type(2) { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: white; box-shadow: 0 0 12px rgb(0 0 0 / 30%); pointer-events: none; }
.cmp-handle {
  position: absolute; top: 50%; left: var(--split); display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: white; color: var(--dark); transform: translate(-50%, -50%);
  box-shadow: 0 6px 24px rgb(0 0 0 / 28%); transition: transform .25s cubic-bezier(.3,1.4,.5,1); pointer-events: none;
}
.cmp-handle svg { width: 24px; height: 24px; }
.comparison-stage:hover .cmp-handle, .comparison-stage.is-dragging .cmp-handle { transform: translate(-50%, -50%) scale(1.08); }
.comparison-stage:has(input:focus-visible) .cmp-handle { box-shadow: 0 0 0 3px var(--gold), 0 6px 24px rgb(0 0 0 / 28%); }
.cmp-tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--dark);
  background: rgb(255 255 255 / 80%); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: opacity .3s; pointer-events: none;
}
.cmp-tag-left { left: 16px; } .cmp-tag-right { right: 16px; }
.comparison-stage input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .cmp-handle { width: 44px; height: 44px; }
  .cmp-tag { top: 10px; padding: 4px 10px; font-size: .75rem; }
  .cmp-tag-left { left: 10px; } .cmp-tag-right { right: 10px; }
}

/* Korte filmloop naast een BTS-clip */
.film-loop video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .45rem; background: #fff; }

/* Mobiel: BTS en filmbeeld als één compositie. Het filmbeeld over de volle breedte,
   de staande BTS-video als inzet rechts eroverheen. */
@media (max-width: 600px) {
  .doorkijk-pair { display: block; position: relative; container-type: inline-size; }
  .doorkijk-pair > figure:not(.bts-film) { min-height: calc(86cqw + 28px); } /* ruimte voor de inzet die onder het filmbeeld uitsteekt */
  .doorkijk-pair > figure:not(.bts-film) img,
  .doorkijk-pair > figure:not(.bts-film) video { border-radius: 12px; }
  .doorkijk-pair > figure:not(.bts-film) figcaption { max-width: 58%; }
  .doorkijk-pair .bts-film {
    position: absolute; right: 12px; top: calc(56.25cqw * .45); width: 34%; z-index: 2;
  }
  .doorkijk-pair .bts-player { border-radius: 12px; box-shadow: 0 0 0 3px var(--paper), 0 14px 30px -10px rgb(0 0 0 / 45%); }
  .doorkijk-pair .bts-film figcaption { padding-top: .45rem; font-size: .8rem; text-align: right; }
  .doorkijk-pair .bts-cover .mm-covertitle { display: none; }
  .doorkijk-pair .bts-cover .mm-playbtn { width: 44px; height: 44px; }
  .doorkijk-pair .bts-cover .mm-playbtn::after { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 13px; margin-left: 3px; }
}

/* ---------- Motion: scroll-reveals (getriggerd door assets/motion.js) ---------- */
.hager .reveal {
  transition: opacity .8s cubic-bezier(.22,.7,.2,1), transform .9s cubic-bezier(.22,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Mobiel: eerst het filmbeeld, daarna landt het beeld-in-beeld erop */
@media (max-width: 600px) {
  .doorkijk-pair > figure:not(.bts-film).reveal { --reveal-delay: 0ms !important; }
  .doorkijk-pair > .bts-film.reveal { --reveal-delay: 280ms !important; transform-origin: 100% 100%; }
  .doorkijk-pair > .bts-film.reveal:not(.in) { transform: translateY(22px) scale(.92); }
}
