/* Goalden — redesign concept
   Merk: zwart, lime #F6FC40, off-white #F2EFEC.
   Live-font is Nohemi; hier Archivo (Google) als stand-in. */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --ink-2: #1c1c1c;
  --line: rgba(242, 239, 236, 0.14);
  --lime: #f6fc40;
  --paper: #f2efec;
  --muted: rgba(242, 239, 236, 0.6);
  --radius: 18px;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--black); color: var(--paper);
  font-family: var(--display); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.display {
  font-family: var(--display); font-weight: 900;
  font-variation-settings: "wdth" 125; font-stretch: 125%;
  text-transform: uppercase; line-height: 0.88; letter-spacing: -0.02em; margin: 0;
}
.lime { color: var(--lime); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.wrap { padding-inline: var(--pad); }
.block { padding-block: clamp(80px, 10vw, 160px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
  view-transition-name: nav;
}
.nav.scrolled { background: rgba(10, 10, 10, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.hidden { transform: translateY(-100%); }
.logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { opacity: 0.75; transition: opacity 0.2s; position: relative; }
.nav-links a[aria-current] { opacity: 1; }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--lime); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; place-content: center; gap: 6px; }
.menu-btn i { display: block; width: 18px; height: 2px; background: var(--paper); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-right .btn { display: none; }
}
#menu {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0;
  background: var(--lime); color: var(--black); padding: 96px var(--pad) var(--pad);
  flex-direction: column; justify-content: flex-end; gap: 4px;
}
#menu:popover-open { display: flex; }
#menu a { font-size: clamp(36px, 10.5vw, 96px); }
#menu a.lime { color: var(--black); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.menu-close { position: absolute; top: 16px; right: var(--pad); width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--black); background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  #menu { transition: opacity 0.3s ease, translate 0.4s var(--ease-out), display 0.4s allow-discrete, overlay 0.4s allow-discrete; opacity: 0; translate: 0 -12px; }
  #menu:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { #menu:popover-open { opacity: 0; translate: 0 -12px; } }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: var(--black); font-weight: 700; font-size: 15px;
  transition: transform 0.16s var(--ease-out), background-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
@media (hover: hover) {
  .nav-links a:hover { opacity: 1; }
  .btn .arrow { transition: transform 0.25s var(--ease-out); }
  .btn:hover .arrow { transform: translateX(4px); }
  .btn-ghost:hover { background: rgba(242, 239, 236, 0.06); }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; overflow: clip; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.45); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 30%, var(--black) 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 120px var(--pad) var(--pad); min-width: 0; }
.hero h1 { font-size: clamp(40px, 12.2vw, 230px); margin-top: 14px; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-foot p { max-width: 440px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-foot p strong { color: var(--paper); font-weight: 600; }

/* Kop-animatie bij laden */
.line-in { display: block; overflow: clip; padding-bottom: 0.04em; }
.line-in > span { display: block; animation: rise 0.9s var(--ease-out) both; }
.line-in:nth-child(2) > span { animation-delay: 0.08s; }
.line-in:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes rise { from { transform: translateY(105%); } }

/* ---------- Page hero (subpagina's) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(60px, 10vw, 140px)) var(--pad) clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(44px, 10vw, 180px); margin-top: 16px; }
.page-intro { color: var(--muted); font-size: clamp(18px, 1.6vw, 22px); max-width: 44ch; margin: 28px 0 0; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: clip; padding: 22px 0; --gap: 56px; }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 22px; color: var(--muted);
  display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--lime); font-size: 14px; }
.marquee.values .marquee-track span { color: var(--paper); font-size: clamp(24px, 3vw, 40px); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(90px, 14vw, 200px) var(--pad); }
.manifesto p { font-size: clamp(28px, 4.2vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; max-width: 30ch; margin: 0; }
.manifesto em { font-style: normal; color: var(--lime); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--pad) 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(48px, 9vw, 150px); }
.section-head .page-intro { margin: 0; }

/* ---------- Cases grid ---------- */
.cases { display: grid; gap: 40px 16px; grid-template-columns: repeat(12, 1fr); padding: 0 var(--pad); }
.case-card { grid-column: span 6; display: block; }
.case-card.wide { grid-column: span 12; }
.case-card.third { grid-column: span 4; }
.case-card[hidden] { display: none; }
@media (max-width: 860px) { .case-card, .case-card.wide, .case-card.third { grid-column: span 12; } }

.case-media { position: relative; overflow: clip; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--ink); }
.case-card.wide .case-media { aspect-ratio: 21 / 9; }
.case-card.third .case-media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .case-card.wide .case-media { aspect-ratio: 4 / 3; } }
.case-media img, .case-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: scale 0.8s var(--ease-out), opacity 0.4s ease;
}
.case-media video { opacity: 0; }
.case-stat { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--lime); color: var(--black); padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.case-info { display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px 0; }
.case-info h3 { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; max-width: 24ch; }
.case-info .client { color: var(--lime); font-size: 14px; font-weight: 600; white-space: nowrap; padding-top: 6px; }
@media (hover: hover) {
  .case-card:hover .case-media img { scale: 1.05; }
  .case-card:hover .case-media video { opacity: 1; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 15px; font-weight: 600; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip[aria-pressed="true"] { background: var(--lime); color: var(--black); border-color: var(--lime); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { border-color: var(--paper); } }

/* ---------- Services rows ---------- */
.service-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding: 26px 0; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.service-row h3 { font-size: clamp(30px, 5vw, 76px); transition: color 0.25s ease, translate 0.4s var(--ease-out); }
.service-row .desc { color: var(--muted); max-width: 32ch; font-size: 15px; text-align: right; }
@media (max-width: 860px) { .service-row { grid-template-columns: 44px 1fr; } .service-row .desc { grid-column: 2; text-align: left; } }
@media (hover: hover) { .service-row:hover h3 { color: var(--lime); translate: 12px 0; } }

/* ---------- Scoreboard ---------- */
.score-wrap { padding-top: clamp(40px, 6vw, 80px); }
.scoreboard { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); border-block: 1px solid var(--line); }
.scoreboard > div { padding: 36px var(--pad) 40px; border-right: 1px solid var(--line); }
.scoreboard > div:last-child { border-right: 0; }
.score { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(40px, 5vw, 88px); line-height: 0.9; color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; text-transform: uppercase; }
.score-label { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 1100px) {
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .scoreboard > div { border-bottom: 1px solid var(--line); }
  .scoreboard > div:nth-child(2n) { border-right: 0; }
  .scoreboard > div:last-child:nth-child(odd) { grid-column: span 2; }
}

/* ---------- CTA ---------- */
.cta { background: var(--lime); color: var(--black); border-radius: 28px 28px 0 0; margin-top: clamp(60px, 8vw, 120px); overflow: clip; }
.cta-ticker { padding-top: 28px; white-space: nowrap; font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 18px; opacity: 0.5; }
.cta-ticker { overflow: clip; }
.cta-ticker-track { display: flex; width: max-content; animation: marquee-half 40s linear infinite; }
.cta-ticker-track span { white-space: pre; }
@keyframes marquee-half { to { transform: translateX(-50%); } }
.cta-inner { padding: clamp(60px, 9vw, 140px) var(--pad); }
.cta h2 { font-size: clamp(52px, 12vw, 210px); }
.cta-foot { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.cta-foot p { margin: 0; font-size: 20px; max-width: 36ch; font-weight: 500; }
.cta .btn { background: var(--black); color: var(--lime); font-size: 17px; padding: 18px 28px; }

/* ---------- Footer ---------- */
footer { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 56px var(--pad) 32px; font-size: 15px; color: var(--muted); }
footer h4 { margin: 0 0 12px; color: var(--paper); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
footer a { display: block; padding: 3px 0; }
.foot-claim { margin: 16px 0 0; }
.part-of { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.part-of img { height: 18px; width: auto; }
.foot-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
.foot-bottom a { display: inline; }
@media (max-width: 860px) { footer { grid-template-columns: 1fr 1fr; } footer > div:first-child { grid-column: 1 / -1; } }

/* ---------- Case detail ---------- */
.case-hero { padding: calc(var(--nav-h) + 60px) var(--pad) 40px; }
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); font-weight: 600; font-size: 15px; }
.case-hero h1 { font-size: clamp(42px, 9vw, 150px); max-width: 16ch; margin-top: 16px; }
.case-hook { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.2; font-weight: 600; max-width: 32ch; margin: 36px 0 0; letter-spacing: -0.01em; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); margin: 56px var(--pad) 0; padding-top: 20px; }
.meta span { display: block; }
.meta .v { margin-top: 6px; font-weight: 600; }
@media (max-width: 860px) { .meta { grid-template-columns: 1fr 1fr; } }
.case-video { padding: 40px var(--pad); }
.case-video .frame { border-radius: var(--radius); overflow: clip; aspect-ratio: 16 / 9; background: var(--ink); }
.case-video video, .case-video img { width: 100%; height: 100%; object-fit: cover; }

.story { display: grid; grid-template-columns: repeat(3, 1fr); margin: 60px var(--pad); border-top: 1px solid var(--line); }
.story > div { padding: 28px 28px 28px 0; }
.story > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.story h3 { margin: 10px 0 12px; font-size: 26px; font-weight: 800; line-height: 1.15; }
.story p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding: 80px var(--pad) 40px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: clip; background: var(--ink); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tall { grid-row: span 2; aspect-ratio: 4 / 5; }
.gallery .quote { background: var(--ink); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.gallery .quote p { margin: 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; font-weight: 600; }
.gallery .quote cite { font-style: normal; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } .gallery .tall { grid-row: auto; } }

.next-case { position: relative; overflow: clip; margin: 60px var(--pad) 0; border-radius: var(--radius); padding: clamp(32px, 6vw, 80px); min-height: 46vh; display: grid; align-content: end; }
.next-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); transition: scale 0.8s var(--ease-out); }
.next-case > :not(img) { position: relative; }
.next-case h2 { font-size: clamp(32px, 6vw, 96px); margin-top: 10px; }
@media (hover: hover) { .next-case:hover img { scale: 1.04; } }

/* ---------- Diensten: sticky stack ---------- */
.stack { padding: 0 var(--pad); display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: calc(var(--nav-h) + 16px + var(--i) * 14px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px);
  background: var(--ink); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 4vw, 56px); min-height: min(78vh, 640px);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}
.stack-card:nth-child(even) { background: var(--ink-2); }
.stack-text .num { color: var(--lime); font-weight: 700; font-variant-numeric: tabular-nums; }
.stack-text h2 { font-size: clamp(36px, 5.5vw, 88px); margin: 16px 0 20px; }
.stack-text p { color: var(--muted); font-size: 18px; max-width: 42ch; }
.stack-text ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-text li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.stack-case { position: relative; border-radius: var(--radius); overflow: clip; min-height: 260px; display: grid; align-content: end; padding: 20px; }
.stack-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: scale 0.8s var(--ease-out); }
.stack-case span { position: relative; font-weight: 700; font-size: 18px; }
.stack-case small { display: block; margin-bottom: 4px; }
@media (hover: hover) { .stack-case:hover img { scale: 1.05; } }
@media (max-width: 860px) { .stack-card { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; } }

/* ---------- Over ons ---------- */
.wide-media { margin: 0 var(--pad); border-radius: var(--radius); overflow: clip; aspect-ratio: 21 / 9; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .wide-media { aspect-ratio: 4 / 3; } }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-bottom: 80px; }
.two-col p:not(.eyebrow) { font-size: clamp(18px, 1.6vw, 22px); margin: 0 0 1em; max-width: 52ch; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.team-group { margin-top: 48px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.person { display: grid; gap: 2px; }
.person .avatar { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; margin-bottom: 12px; overflow: clip; transition: background-color 0.3s; }
.person .avatar span { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 44px; color: var(--muted); transition: color 0.3s; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s ease, scale 0.6s var(--ease-out); }
.person strong { font-size: 17px; }
.person > span { color: var(--muted); font-size: 14px; }
@media (hover: hover) { .person:hover .avatar { background: var(--lime); } .person:hover .avatar span { color: var(--black); } .person:hover .avatar img { filter: none; scale: 1.04; } }

/* ---------- Vacatures ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 80px; }
.job { position: relative; background: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; min-height: 280px; border: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s; }
.job h3 { font-size: clamp(26px, 3vw, 44px); }
.job p { margin: 0; color: var(--muted); max-width: 44ch; }
.job-type { justify-self: start; background: var(--lime); color: var(--black); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.job-go { margin-top: auto; font-weight: 700; color: var(--lime); }
@media (hover: hover) { .job:hover { border-color: var(--lime); } }
@media (max-width: 860px) { .jobs { grid-template-columns: 1fr; } }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { border-top: 2px solid var(--lime); padding-top: 18px; display: grid; }
.perk strong { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(26px, 3vw, 44px); line-height: 1; }
.perk span { color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-bottom: 120px; }
.big-link { display: block; font-size: clamp(24px, 3vw, 44px); font-weight: 700; letter-spacing: -0.01em; border-bottom: 1px solid var(--line); padding: 12px 0; transition: color 0.2s; }
.contact-info p { color: var(--muted); margin-top: 24px; }
@media (hover: hover) { .big-link:hover { color: var(--lime); } }
.contact-form { display: grid; gap: 18px; align-content: start; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 18px; color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--lime); }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.sent-msg { display: none; color: var(--lime); margin: 0; }
.contact-form.sent .sent-msg { display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* =========================================================
   Scroll-effecten (subtiel). Native scroll-driven animations
   waar ondersteund; anders IntersectionObserver-fallback (.no-sda).
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.35s var(--ease-out) both vt-out; }
  ::view-transition-new(root) { animation: 0.5s var(--ease-out) both vt-in; }
  ::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease-out); }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Fade + omhoog bij binnenkomen */
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes reveal-in { from { opacity: 0; translate: 0 40px; } }

    /* Parallax in beeld: foto schuift trager dan de pagina */
    .case-media img, .par img, .next-case img, .stack-case img {
      scale: 1.14;
      animation: drift linear both;
      animation-timeline: view();
    }
    @keyframes drift { from { translate: 0 -6%; } to { translate: 0 6%; } }
    @media (hover: hover) {
      .case-card:hover .case-media img, .next-case:hover img, .stack-case:hover img { scale: 1.2; }
    }

    /* Hero-video zoomt en dimt weg tijdens scrollen */
    .hero-bg {
      animation: hero-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
    @keyframes hero-out { to { scale: 1.15; opacity: 0.35; } }
    .hero-content {
      animation: hero-text linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80svh;
    }
    @keyframes hero-text { to { translate: 0 -12vh; opacity: 0.2; } }

    /* Manifest: woorden lichten op terwijl je leest */
    .words .w {
      color: rgba(242, 239, 236, 0.22);
      animation: word-on linear both;
      animation-timeline: view();
      animation-range: cover 15% cover 40%;
    }
    .words em .w { animation-name: word-on-lime; }
    @keyframes word-on { to { color: var(--paper); } }
    @keyframes word-on-lime { to { color: var(--lime); } }


  }

  /* Fallback zonder scroll-driven animations */
  .no-sda .reveal { opacity: 0; translate: 0 32px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); }
  .no-sda .reveal.in { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .cta-ticker-track, .line-in > span { animation: none; }
  .case-media img, .next-case img, .stack-case img { transition: none; }
}

/* ---------- Mobiel: grote type binnen het scherm houden ---------- */
.scoreboard > div, .stack-card > *, .perk, .section-head > * { min-width: 0; }
@media (max-width: 600px) {
  .section-head h2 { font-size: clamp(34px, 10vw, 60px); }
  .scoreboard > div { padding: 24px 16px 28px; }
  .score { font-size: clamp(28px, 8.4vw, 44px); }
  .score-label { font-size: 13px; }
  .stack-text h2 { font-size: clamp(26px, 8vw, 40px); }
  .perk strong { font-size: clamp(18px, 5.4vw, 26px); overflow-wrap: anywhere; }
  .job h3 { font-size: clamp(22px, 7vw, 30px); }
}
