/* ==========================================================================
   Homepage — zwart en nachtblauw, met beweging die vanzelf speelt.
   Niets is aan het scrollen gekoppeld: alles start zodra het in beeld komt.
   ========================================================================== */

.home { --mist: #aab4d4; --line-b: rgba(180, 191, 224, .16); }
.mist { color: var(--mist); }
.night { background: var(--night); }

/* ---------------------------------------------------------------- hero */
.h-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: var(--black); overflow: hidden; }
.h-hero:before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(35, 57, 122, .55), rgba(12, 22, 54, 0));
  pointer-events: none;
}
.h-hero__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding-block: calc(var(--header) + 36px) clamp(40px, 6vh, 72px);
}
.h-hero__text { display: grid; gap: 28px; justify-items: start; min-width: 0; }
.h-hero__text > * { max-width: 100%; }
.h-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.h-eyebrow:before { content: ""; width: 28px; height: 1px; background: var(--blue-lt); }

.h-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.1rem, 1rem + 5.6vw, 8rem); line-height: .96; letter-spacing: -.03em; }
.h-title em { font-style: italic; color: var(--blue-lt); }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > * { display: inline-block; animation: ln-up 1.3s var(--ease) both; }
.ln:nth-child(2) > * { animation-delay: .14s; }
@keyframes ln-up { from { transform: translateY(105%); } }

.h-lede { max-width: 44ch; font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); line-height: 1.6; color: var(--mist) !important; }
.h-fade { animation: h-fade 1.2s var(--ease) both; animation-delay: .45s; }
.h-fade--2 { animation-delay: .6s; }
.h-fade--3 { animation-delay: .75s; }
@keyframes h-fade { from { opacity: 0; transform: translateY(16px); } }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.h-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.h-chips span { margin-right: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.h-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-b);
  border-radius: 999px;
  font-size: .88rem;
  text-decoration: none;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.h-chips a:after { content: "→"; font-size: .85em; transition: transform .5s var(--ease); }
.h-chips a:hover { background: rgba(180, 191, 224, .1); border-color: rgba(180, 191, 224, .4); }
.h-chips a:hover:after { transform: translateX(3px); }

/* Beeldvenster met wisselende foto's */
.h-window { position: relative; height: min(74svh, 780px); min-height: 440px; animation: h-fade 1.4s var(--ease) both .2s; }
.h-window__frame { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; transition: transform 1.2s var(--ease); }
.h-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.h-slide.is-on { opacity: 1; }
.h-slide.is-on img { animation: kb 9s linear both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.h-slide:after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 8, 10, .7), rgba(7, 8, 10, 0) 40%); }
.h-window__meta {
  position: absolute;
  left: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 26px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.h-cap { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.h-cap:before { content: ""; width: 24px; height: 1px; background: var(--blue-lt); }
.h-cap.is-out { opacity: 0; transform: translateY(6px); }
.h-prog { display: flex; gap: 6px; }
.h-prog i { position: relative; width: 28px; height: 1px; overflow: hidden; background: rgba(244, 243, 240, .25); }
.h-prog i.is-on:after { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: left; animation: prog 6s linear both; }
@keyframes prog { from { transform: scaleX(0); } }

.h-seal { left: 0; right: auto; bottom: 56px; transform: translateX(-50%); }
.h-seal:before { background: var(--night); }

/* Lopende band met plaatsen en feiten */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line-b); background: var(--night); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: 28px; padding: 18px 14px; white-space: nowrap; }
.marquee__set span { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); letter-spacing: -.01em; }
.marquee__set span:nth-child(4n+3) { font-style: italic; color: var(--blue-lt); }
.marquee__set i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-lt); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- overtuiging */
.h-belief { display: grid; gap: clamp(56px, 7vw, 96px); }
.h-belief__quote { max-width: 20ch; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 1rem + 5vw, 6.6rem); line-height: 1; letter-spacing: -.028em; }
.h-belief__quote em { display: block; font-style: italic; color: var(--blue-lt); }
.js .h-belief__quote .w { opacity: .14; transition: opacity .9s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js .h-belief__quote.is-in .w { opacity: 1; }
.h-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.h-pillar { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-b); }
.h-pillar h3 { font-family: var(--serif); font-size: clamp(1.45rem, 1rem + .8vw, 1.9rem); line-height: 1.05; }
.h-pillar p { color: var(--mist); max-width: 32ch; }

/* ---------------------------------------------------------------- sectiekop met link */
.h-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 64px; margin-bottom: clamp(48px, 6vw, 80px); }
.h-head__text { display: grid; gap: 22px; }
.h-head__text p:not(.kicker) { color: var(--mist); max-width: 52ch; }

/* ---------------------------------------------------------------- werkwijze: de route */
.h-route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-top: 76px; }
.h-route__line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 30px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(180, 191, 224, .55) 0 14px, transparent 14px 26px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s var(--ease);
}
.h-route.is-in .h-route__line { transform: scaleX(1); }
.h-route__dot {
  position: absolute;
  top: 25px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(180, 191, 224, .16), 0 0 24px rgba(180, 191, 224, .6);
  opacity: 0;
}
.h-route.is-in .h-route__dot { animation: drive 8s cubic-bezier(.45, 0, .55, 1) 1.4s infinite; }
@keyframes drive {
  0% { left: 0; opacity: 0; }
  6%, 94% { opacity: 1; }
  100% { left: calc(100% - 11px); opacity: 0; }
}
.h-stop { position: relative; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.h-route.is-in .h-stop { opacity: 1; transform: none; }
.h-route.is-in .h-stop:nth-of-type(2) { transition-delay: .25s; }
.h-route.is-in .h-stop:nth-of-type(3) { transition-delay: .5s; }
.h-route.is-in .h-stop:nth-of-type(4) { transition-delay: .75s; }
.h-stop:before {
  content: "";
  position: absolute;
  top: -53px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--blue-lt);
}
.h-stop__n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: .9; color: var(--blue-lt); }
.h-stop h3 { font-family: var(--serif); font-size: clamp(1.35rem, 1rem + .7vw, 1.75rem); line-height: 1.08; }
.h-stop p { color: var(--mist); font-size: .95rem; max-width: 30ch; }
.h-also { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line-b); }
.h-also a { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 1.2rem; text-decoration: none; }
.h-also a span { font-family: var(--sans); font-size: .9rem; color: var(--mist); }
.h-also a:hover { color: var(--blue-lt); }

/* ---------------------------------------------------------------- een frisse start */
.h-fresh { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(40px, 6vw, 112px); }
.h-fresh__img { aspect-ratio: 4 / 5; border-radius: 4px; }
.js .h-fresh__img { clip-path: inset(12% 12% 12% 12% round 4px); transition: clip-path 1.6s var(--ease); }
.js .h-fresh__img.is-in { clip-path: inset(0 0 0 0 round 4px); }
.h-fresh__img img { transform: scale(1.12); transition: transform 2.4s var(--ease); }
.h-fresh__img.is-in img { transform: scale(1); }
.h-fresh__text { display: grid; gap: 26px; justify-items: start; }
.h-fresh__text p:not(.kicker) { color: var(--mist); max-width: 46ch; }
.h-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1rem + .6vw, 1.6rem); line-height: 1.35; color: var(--white) !important; padding-left: 22px; border-left: 1px solid var(--blue-lt); }

/* ---------------------------------------------------------------- voor ouders: de brief */
.h-parents { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 4vw, 72px); }
.h-parents__img { aspect-ratio: 3 / 4; border-radius: 4px; }
.letter {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(32px, 4.4vw, 72px);
  border-radius: 4px;
  background: linear-gradient(150deg, #22377a, #1b2b5e 45%, #142152);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.letter__stamp {
  position: absolute;
  top: clamp(20px, 2.6vw, 36px);
  right: clamp(20px, 2.6vw, 36px);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(180, 191, 224, .5);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--blue-lt);
  transform: rotate(-12deg);
}
.letter__stamp:before { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(180, 191, 224, .35); border-radius: 50%; }
.letter__hi { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1rem + 1.6vw, 2.6rem); line-height: 1; }
.letter__intro { max-width: 46ch; font-size: 1.08rem; color: rgba(255, 255, 255, .86) !important; }
.letter dl { margin: 0; display: grid; gap: 0; }
.letter dt { font-family: var(--serif); font-size: 1.4rem; padding-top: 18px; border-top: 1px solid rgba(180, 191, 224, .22); }
.letter dd { margin: 6px 0 18px; color: rgba(255, 255, 255, .78); max-width: 52ch; }
.letter__sign { display: grid; gap: 4px; }
.letter__sign span { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.letter__sign b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.8rem, 1rem + 1.4vw, 2.4rem); line-height: 1.1; color: var(--pure); }
.js .letter__sign b { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.65, 0, .35, 1) .5s; }
.js .letter.is-in .letter__sign b { clip-path: inset(0 0 0 0); }
.letter .link { justify-self: start; }

/* ---------------------------------------------------------------- tarieven: de menukaart */
.h-prices { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.h-prices__text { display: grid; gap: 26px; justify-items: start; }
.h-prices__text p:not(.kicker) { color: var(--mist); max-width: 44ch; }
.carte { display: grid; gap: 0; }
.carte__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-b); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.carte__row { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: baseline; gap: 14px; padding-top: 26px; }
.carte__name { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1.05; }
.carte__name em { color: var(--blue-lt); }
.carte__dots { height: 1px; border-bottom: 1px dotted rgba(180, 191, 224, .5); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.carte.is-in .carte__dots { transform: scaleX(1); }
.carte.is-in .carte__row:nth-child(3) .carte__dots { transition-delay: .15s; }
.carte.is-in .carte__row:nth-child(4) .carte__dots { transition-delay: .3s; }
.carte.is-in .carte__row:nth-child(5) .carte__dots { transition-delay: .45s; }
.carte__price { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-variant-numeric: tabular-nums; }
.carte__sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line-b); font-size: .92rem; color: var(--mist); }
.carte__tag { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--black); background: var(--blue-lt); padding: 4px 10px; border-radius: 999px; }
.carte__note { margin-top: 20px !important; font-size: .9rem; color: var(--mist); }

/* ---------------------------------------------------------------- kennismaken */
.h-cta { position: relative; }
.h-meet { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 40px 80px; }
.h-meet__side { display: grid; gap: 22px; justify-items: start; }
.h-meet__side p { color: var(--mist); max-width: 38ch; }
.h-meet__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.h-meet__contact a { text-decoration: none; border-bottom: 1px solid var(--line-b); }
.h-meet__seal { position: relative; inset: auto; transform: none; width: 124px; height: 124px; margin-bottom: 6px; }
.h-meet__seal:before { background: var(--night); }
.h-meet__seal b { font-size: 1.05rem; text-align: center; line-height: 1.05; }

@media (prefers-reduced-motion: reduce) {
  .ln > *, .h-fade, .h-window { animation: none; }
  .h-slide.is-on img, .marquee__track, .h-route.is-in .h-route__dot { animation: none; }
  .js .h-belief__quote .w { opacity: 1; transition: none; }
  .h-route__line, .h-stop, .carte__dots, .js .letter__sign b, .js .h-fresh__img, .h-fresh__img img { transition: none; transform: none; opacity: 1; clip-path: none; }
}

@media (max-width: 1100px) {
  .h-route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .h-route__line, .h-route__dot { display: none; }
  .h-stop:before { top: -22px; }
  .h-stop { padding-top: 10px; }
}

@media (max-width: 900px) {
  .h-hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header) + 8px); gap: 32px; }
  .h-window { order: -1; height: 52svh; min-height: 320px; }
  .h-seal { left: auto; right: 14px; top: 14px; bottom: auto; width: 96px; height: 96px; transform: none; }
  .h-head, .h-fresh, .h-parents, .h-prices, .h-meet { grid-template-columns: minmax(0, 1fr); }
  .h-pillars { grid-template-columns: minmax(0, 1fr); }
  .h-parents__img { aspect-ratio: 16 / 10; }
  .h-fresh__img { aspect-ratio: 4 / 3; }
  .h-meet__seal { width: 108px; height: 108px; }
}

@media (max-width: 600px) {
  .h-route { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-left: 34px; padding-top: 8px; }
  .h-route:before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: repeating-linear-gradient(180deg, rgba(180, 191, 224, .55) 0 12px, transparent 12px 22px); }
  .h-stop:before { top: 8px; left: -34px; }
  .h-stop__n { font-size: 2rem; }
  .h-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; max-width: calc(100% + var(--gutter) * 2); }
  .h-chips::-webkit-scrollbar { display: none; }
  .h-chips a { white-space: nowrap; }
  .carte__row { grid-template-columns: minmax(0, 1fr) auto; }
  .carte__dots { display: none; }
  .letter__stamp { width: 52px; height: 52px; font-size: 1rem; }
}
