@media (min-width: 1664px) {
  .ev-home .hero { --buitenmarge: calc((100% - 1520px) / 2 - 72px); }
  .ev-home .hero-art { right: var(--buitenmarge); }
  /* De lege rand van de studiofoto vult de ruimte buiten de inhoudskolom. */
  .ev-home .hero:where(:not(.hero-lijnwerk))::before {
    content: ""; position: absolute; z-index: -2; inset: 0 0 0 auto;
    width: calc(var(--buitenmarge) + 1px);
    background: url("/assets/home/kobalt.webp") right center / 2000% 100% no-repeat;
    transform: scaleX(-1); pointer-events: none;
  }
}

.ev-home .hero:where(:not(.hero-lijnwerk))::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.ev-home .hero-lijnwerk {
  background: linear-gradient(102deg, #fcfcfe 12%, #f2f5fb 65%, #e9eff9);
}
.hero-lijnwerk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(89 117 164 / 17%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(89 117 164 / 15%) 1px, transparent 1px);
  background-size: clamp(58px, 8vw, 144px) clamp(58px, 8vw, 144px);
  background-position: center;
  mask-image:
    linear-gradient(90deg, transparent 3%, rgb(0 0 0 / 22%) 25%, #000 67%, #000 80%, transparent),
    linear-gradient(transparent, #000 26%, #000 73%, transparent);
  mask-composite: intersect;
}
.hero-lijnwerk .hero-inner { position: relative; }
.hero-lijnwerk .hero-copy { position: relative; z-index: 1; }
.hero-beeldmerk {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0 calc(-1 * var(--gutter)) 0 54%;
  pointer-events: none;
}
.hero-beeldmerk::before {
  content: "";
  height: 77%;
  aspect-ratio: 158 / 170;
  max-width: 82%;
  background: url("/assets/home/lijnwerk.svg") center / 100% 100%;
  mask: url("/assets/brand/elevation-v-contact.svg") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-beeldmerk[data-entree]::before {
    animation: hero-merk-binnen .95s cubic-bezier(.19,.67,.24,1) backwards;
  }
  .hero-beeldmerk[data-entree="wacht"]::before { animation-play-state: paused; }
  @keyframes hero-merk-binnen {
    from { opacity: .18; transform: translateY(12px) scale(.982); }
    to { opacity: 1; transform: none; }
  }
}
@media (min-width: 1830px) {
  .hero-beeldmerk { right: calc((1520px - 100vw) / 2); }
  .hero-beeldmerk::before { translate: min(0px, (1830px - 100vw) / 5) 0; }
}
@media (min-width: 661px) and (max-width: 850px) {
  .hero-beeldmerk::before { width: 72%; height: auto; }
}
@media (max-width: 660px) {
  .hero-lijnwerk .hero-copy { padding-bottom: 27px; }
  .hero-lijnwerk .hero-actions { min-height: clamp(118px, 30vw, 155px); align-content: center; }
  .hero-beeldmerk {
    inset: auto calc(-1 * var(--gutter)) 9px auto;
    width: 42%;
    height: clamp(117px, 32vw, 163px);
  }
  .hero-beeldmerk::before { height: 82%; background-size: 300% 300%; }
}

.hero-beeldmerk-doorlopend {
  rotate: -5deg;
  filter: drop-shadow(-2px 3px 0 #264ab0);
}
.hero-beeldmerk-doorlopend::before {
  background:
    repeating-linear-gradient(23deg, transparent 0 3px, rgb(227 239 255 / 42%) 3.2px 4px, transparent 4.1px 5.5px),
    linear-gradient(110deg, #91b4f5, #4c71d0 28%, #86a6f0 58%, #a8c4fa 76%, #6487dc);
}
@media (min-width: 661px) {
  .hero-beeldmerk-doorlopend {
    /* De kanteling brengt alleen de punt van het hele monogram onder het glas. */
    inset: calc(0px - var(--ruimte-cookiemelding, 0px)) 0 auto auto;
    width: min(44%, clamp(425px, 32.2vw, 524px));
    aspect-ratio: 158 / 170;
  }
  .hero-beeldmerk-doorlopend::before {
    width: 100%;
    height: 100%;
    max-width: none;
    translate: none;
  }
}

.hero-nee {
  position: relative;
  color: var(--action-blue);
}
.hero-nee::after {
  content: "";
  position: absolute;
  inset-inline: .02em -.015em;
  bottom: .09em;
  height: .115em;
  background: var(--cobalt);
  clip-path: polygon(0 73%, 100% 0, 98% 52%, 0 100%);
  pointer-events: none;
}

.doelkeuze {
  --paneelmarge: max(clamp(16px, 1.8vw, 30px), calc((100% - 1624px) / 2));
  --overlap: 14px;
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--overlap));
  scroll-margin-top: clamp(92px, 22vh, 180px);
  color: var(--diep-inkt);
}
.doelkeuze::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 var(--paneelmarge);
  border-radius: 24px;
  background: var(--diep-verloop);
  pointer-events: none;
}
.keuzelijst {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-block: clamp(30px, 3.5vw, 62px);
}
.keuze-titel {
  align-self: center;
  max-width: 13ch;
  font-size: clamp(28px, 2.65vw, 44px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.keuze-titel span { white-space: nowrap; }
.keuzelijst a {
  display: grid;
  grid-template: "icoon naam pijl" auto / auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, .85vw, 16px);
  min-height: clamp(78px, 5.9vw, 96px);
  padding: 16px clamp(16px, 1.4vw, 24px);
  border: 1px solid var(--diep-tegellijn);
  border-radius: var(--kaart-radius);
  background: var(--diep-tegel);
}
.doelicoon {
  grid-area: icoon; width: 24px; height: 24px;
  display: block;
  fill: none;
  stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
  color: var(--diep-accent);
}
.doelnaam {
  grid-area: naam;
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.25; font-weight: 550; letter-spacing: -.024em;
}
.route-arrow {
  grid-area: pijl;
  color: var(--diep-accent);
  font-size: 20px; font-weight: 400; line-height: 1;
}
.keuzelijst a:is(:hover, :focus-visible) {
  border-color: var(--diep-accent);
  background: var(--diep-tegel-actief);
}
.keuzelijst a:focus-visible { outline-color: var(--diep-accent); outline-offset: 3px; }

@media (min-width: 851px) {
  .keuzelijst {
    grid-template-columns: var(--raster-sporen);
    grid-auto-rows: 1fr;
    column-gap: var(--raster-goot);
  }
  .keuzelijst > * { grid-column: span 3; }
}
@media (min-width: 851px) and (max-width: 1120px) {
  .keuzelijst a {
    grid-template: "icoon pijl" auto "naam naam" auto / 1fr auto;
    align-content: center; row-gap: 9px;
  }
}
@media (max-width: 660px) {
  .ev-home .hero::after { height: 15px; }
  .doelkeuze { --paneelmarge: 10px; --overlap: 9px; }
  .doelkeuze::before { border-radius: 18px; }
  .keuzelijst { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .keuze-titel { max-width: none; margin-bottom: 12px; }
  .keuzelijst a {
    gap: 13px;
    min-height: 49px; padding: 12px 17px;
  }
  .doelicoon { width: 20px; height: 20px; }
}

.ev-home .story-inner { padding-block: clamp(47px, 4.3vw, 78px) clamp(50px, 5.6vw, 96px); }
.ev-home .story-credit img { border-radius: 8px; }

.campagneproef {
  background: #fff;
}
.bondskop {
  display: grid; justify-items: start; row-gap: clamp(9px, .9vw, 15px);
  padding-bottom: clamp(19px, 1.8vw, 30px);
}
.bondskop h2 {
  display: flex; align-items: baseline; gap: 5px;
  font-size: clamp(21px, 1.6vw, 27px); font-weight: 470; letter-spacing: -.045em; line-height: 1; white-space: nowrap;
}
.bondskop h2 img { display: block; width: clamp(108px, 8.9vw, 142px); height: auto; }
.bondskop p { max-width: 76ch; font-size: var(--body); line-height: 1.5; color: var(--muted); }
.campagne-voet { display: flex; flex-wrap: wrap; align-items: start; gap: 0 16px; padding-top: 8px; }
.alle-cases, .case-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 15px; font-weight: 570; text-decoration: none;
}
.alle-cases { color: var(--action-blue); }
.etalage {
  display: grid;
  grid-template-columns: 46% 54%;
  color: var(--diep-inkt);
  border-radius: var(--vlak-radius);
  overflow: hidden;
  background: var(--diep-verloop);
}
.etalage:focus-visible { outline: 3px solid var(--action-blue); outline-offset: 4px; }
.etalage-verhaal {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0;
  min-height: clamp(335px, 30vw, 480px);
  padding: clamp(28px, 3.7vw, 65px);
}
#case-tekst { display: grid; width: 100%; min-width: 0; }
.case-dia { grid-area: 1 / 1; min-width: 0; align-self: start; }
.case-dia, .case-beeld { visibility: hidden; pointer-events: none; }
.case-dia.is-actief, .case-beeld.is-actief { visibility: visible; z-index: 1; pointer-events: auto; }
.case-rubriek { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 14px; line-height: 1.4; font-weight: 540; }
.case-naam {
  margin-top: clamp(14px, 1.45vw, 24px); max-width: 17ch;
  font-size: clamp(34px, 3.55vw, 62px); font-weight: 530; line-height: 1.055; letter-spacing: -.04em;
  text-wrap: pretty;
}
.case-highlight { margin-top: 13px; max-width: 38ch; color: var(--diep-tekst); font-size: var(--lead); line-height: 1.5; }
.case-link { margin-top: 11px; color: var(--diep-accent); }
.wissel { display: flex; align-items: center; gap: 14px; margin-top: clamp(15px, 1.8vw, 30px); }
.wissel[hidden] { display: none; }
.wissel button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--diep-tegelrand); border-radius: 50%; background: var(--diep-tegel); color: var(--diep-accent);
  font-size: 21px; line-height: 1;
}
.wissel button:hover { background: var(--diep-tegel-actief); border-color: var(--diep-accent); }
.wissel #speelstand { position: relative; margin-right: 5px; }
#speelstand svg { display: block; position: absolute; inset: -1px; width: 44px; height: 44px; }
.tijdspoor { stroke: currentColor; stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; }
.pauzeteken { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.speelteken { display: none; fill: currentColor; }
#speelstand[data-stand="stil"] .speelteken { display: block; }
#speelstand[data-stand="stil"] .pauzeteken { display: none; }
.wisselmelding {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.etalage-verhaal a:focus-visible, .wissel button:focus-visible { outline-color: var(--diep-accent); }
.wissel span { font-size: 14px; font-variant-numeric: tabular-nums; }
.etalagefoto {
  position: relative; min-width: 0; background: #e1e6e9; overflow: hidden; touch-action: pan-y;
  border-radius: 6% 0 0 0 / 56% 0 0 0;
}
.case-beeld { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.etalagefoto img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--uitsnede, 62% center);
}
.etalagefoto figcaption {
  position: absolute; right: 15px; bottom: 14px; max-width: calc(100% - 30px);
  padding: 4px 9px; border-radius: 5px; background: #fff; color: #263144;
  font-size: 12px; line-height: 1.35;
}

.routeproef { padding-block: clamp(60px, 6vw, 104px) clamp(47px, 5vw, 85px); }
.routeproef .process-head { align-items: center; }
.routeproef .process-head h2 { letter-spacing: -.038em; }
.ev-home .close { background: linear-gradient(175deg, #f7f9fd, #eaf0f9); color: var(--ink); }
.ev-home .close-inner {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr);
  gap: clamp(28px, 5vw, 84px); align-items: center; padding-block: clamp(41px, 4.3vw, 74px);
}
.ev-home .close h2 { max-width: 16ch; line-height: 1.07; text-wrap: balance; }
.ev-home .slot-vervolg p { max-width: 51ch; margin: 0; color: var(--muted); font-size: var(--lead); line-height: 1.52; }
.slot-acties { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 25px; margin-top: 19px; }
.slot-acties .inline-link { gap: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .keuzelijst a, .wissel button { transition: border-color .16s, background-color .16s; }
  .route-arrow { transition: transform .16s ease-out; }
  .keuzelijst a:is(:hover, :focus-visible) .route-arrow { transform: translateX(3px); }
}

@media (max-width: 760px) {
  .alle-cases { font-size: 14px; gap: 6px; }
  .etalage { grid-template-columns: minmax(0,1fr); }
  .etalagefoto { order: -1; aspect-ratio: 2/1; border-radius: 0; }
  .etalagefoto figcaption { bottom: 10px; right: 11px; }
  .etalage-verhaal {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 17px 12px;
    min-height: 0; padding: clamp(19px, 4.4vw, 30px);
  }
  #case-tekst { grid-column: 1 / -1; }
  .case-naam { max-width: none; margin-top: 9px; font-size: clamp(31px, 7vw, 44px); }
  .case-highlight { margin-top: 9px; }
  .case-link { justify-self: start; margin: 0; font-size: 14px; gap: 6px; }
  .wissel { justify-self: end; gap: 7px; margin: 0; }
  .wissel span { font-size: 12px; }
  .routeproef { padding-block: 48px; }
  .routeproef .process-head { align-items: start; }
  .ev-home .close-inner { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .ev-home .close h2 { max-width: 22ch; }
}
@media (max-width: 540px) {
  .etalage-verhaal { grid-template-columns: 1fr; row-gap: 7px; }
  .wissel { justify-self: start; }
}

/* De quote en financieringsdoelen beginnen op hetzelfde spoor. De beeldrand
   van de campagne en de afsluitende actie delen de middelste leesas. */
@media (min-width: 851px) {
  .ev-home :is(.story-inner, .etalage, .close-inner) {
    grid-template-columns: var(--raster-sporen);
    column-gap: var(--raster-goot);
  }
  .ev-home .story-inner { grid-template-areas: none; }
  .ev-home .story h2 { grid-area: 1 / 1 / 2 / 4; }
  .ev-home .story-credit { grid-area: 2 / 1 / 4 / 4; }
  .ev-home .story blockquote { grid-area: 1 / 4 / 3 / -1; }
  .ev-home .story-notes { grid-area: 3 / 4 / 4 / -1; }

  .etalage-verhaal { grid-column: 1 / 7; }
  .etalagefoto { grid-column: 7 / -1; }
  .ev-home .close h2 { grid-column: 1 / 7; }
  .ev-home .slot-vervolg { grid-column: 7 / -1; }
}
@media (min-width: 1100px) {
  .ev-home .story-notes {
    grid-template-columns: subgrid;
    column-gap: var(--raster-goot);
  }
  .story-notes p:first-child { grid-column: 1 / 4; }
  .story-notes p:last-child { grid-column: 4 / -1; }
}
