/* assets/site.css — Flight Deck (V2) */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 70% -10%, oklch(0.2 0.05 300 / 0.5), transparent 60%),
    radial-gradient(90% 70% at 10% 110%, oklch(0.2 0.06 180 / 0.5), transparent 55%),
    var(--rp-void);
  color: var(--rp-ink);
  font-family: var(--rp-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

#veld {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--rp-z-canvas);
  pointer-events: none;
}

#cursorgloed {
  position: fixed;
  top: -15rem;
  left: -15rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.85 0.19 120 / 0.11), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: var(--rp-z-cursor);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.vlucht-shell {
  position: relative;
  z-index: var(--rp-z-content);
}

.scene {
  max-width: var(--rp-max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 5vw, 3rem);
}

/* Vlieg-animatie: content is standaard zichtbaar, de klasse voegt alleen de
   entree toe. Zonder JS of observer blijft alles gewoon staan. */
@keyframes flyin {
  from { opacity: 0; transform: translateY(2rem); filter: blur(6px); }
}
.is-vlucht { animation: flyin 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Hero */
.hero-mark {
  height: clamp(2.75rem, 5.5vw, 3.75rem);
  width: auto;
  align-self: flex-start;
  display: block;
  margin: 0 0 2.25rem;
  animation: flyin 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.scene-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-kicker {
  font-family: var(--rp-display);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "locl" 0;
  color: var(--rp-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin: 0 0 2.5rem;
}
.hero-plaats::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rp-flare);
  margin-right: 1.1rem;
  vertical-align: 0.12em;
}
.hero-kop {
  font-family: var(--rp-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 2rem;
  animation: flyin 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: var(--rp-muted);
  max-width: 44ch;
  margin: 0;
  animation: flyin 1.1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-cue {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--rp-display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rp-muted);
  margin: 0;
}
.cue-lijn {
  display: inline-block;
  width: 4.5rem;
  height: 1px;
  background: var(--rp-line);
  position: relative;
  overflow: hidden;
}
.cue-lijn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rp-flare);
  transform: translateX(-100%);
  animation: cue-schuif 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue-schuif {
  40% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--rp-line);
  border-bottom: 1px solid var(--rp-line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: oklch(0.14 0.025 268 / 0.6);
  backdrop-filter: blur(6px);
}
.marquee-band {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee-loop 32s linear infinite;
}
.marquee-band span {
  font-family: var(--rp-display);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rp-muted);
  white-space: nowrap;
}
.marquee-band span::after {
  content: "";
  display: inline-block;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--rp-flare);
  margin-left: 3.2rem;
  vertical-align: 0.18em;
}
@keyframes marquee-loop {
  to { transform: translateX(-50%); }
}

/* Manifest */
.scene-manifest { padding-top: clamp(6rem, 16vh, 11rem); padding-bottom: clamp(6rem, 16vh, 11rem); }
.manifest-regel {
  font-family: var(--rp-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3.6vw, 2.375rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 24ch;
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
}
.manifest-regel:nth-child(2) { margin-left: auto; text-align: right; }
.manifest-regel:first-child { color: var(--rp-flare-hot); }
.manifest-regel:last-child { margin-bottom: 0; }

/* Scene-koppen */
.scene-kop {
  font-family: var(--rp-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
  margin: 0 0 3rem;
}

/* Domeinen */
.paneel-veld {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.25rem;
}
.paneel {
  border: 1px solid var(--rp-line);
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(150deg, var(--rp-surface), var(--rp-deep) 70%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
  will-change: transform;
}
.paneel:hover {
  border-color: var(--rp-flare-dim);
  box-shadow: 0 1.5rem 3rem oklch(0.05 0.02 268 / 0.5), 0 0 0 1px var(--rp-flare-dim);
}
.paneel-a { grid-row: span 2; }
.paneel-d { grid-column: 2; }
.paneel-icoon { width: 2.75rem; height: 2.75rem; display: block; margin-bottom: 1.4rem; }
.paneel-a .paneel-icoon { color: var(--rp-flare); }
.paneel-b .paneel-icoon { color: var(--rp-violet); }
.paneel-c .paneel-icoon { color: var(--rp-cyan); }
.paneel-d .paneel-icoon { color: var(--rp-flare-hot); }
.paneel h3 {
  font-family: var(--rp-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: 0;
  margin: 0 0 0.6rem;
}
.paneel p { color: var(--rp-muted); margin: 0; max-width: 38ch; }

/* Vlucht / stations */
.scene-vlucht { position: relative; }
.ruggengraat {
  position: absolute;
  top: 9rem;
  bottom: 4rem;
  left: 50%;
  width: 2px;
  background: var(--rp-line);
  border-radius: 1px;
}
.ruggengraat-vulling {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--rp-flare-hot), var(--rp-flare));
  transform-origin: top;
  transform: scaleY(var(--vlucht-p, 0));
}
.komeet {
  position: absolute;
  left: 50%;
  top: calc(var(--vlucht-p, 0) * 100%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--rp-flare-hot);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 1.2rem 0.3rem oklch(0.85 0.19 120 / 0.55);
}
.stations {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vh, 6rem);
}
.station {
  width: calc(50% - 3.5rem);
  position: relative;
}
.station:nth-child(even) { margin-left: auto; text-align: left; }
.station:nth-child(odd) { text-align: right; }
.station::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--rp-line);
  background: var(--rp-void);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.station:nth-child(odd)::before { right: -4.05rem; }
.station:nth-child(even)::before { left: -4.05rem; }
.station.is-gepasseerd::before {
  border-color: var(--rp-flare-hot);
  background: var(--rp-flare);
  box-shadow: 0 0 0.9rem oklch(0.8 0.17 145 / 0.6);
}
.station-naam {
  display: block;
  font-family: var(--rp-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: var(--rp-muted);
  transition: color 0.4s ease;
}
.station.is-gepasseerd .station-naam { color: var(--rp-ink); }
.station-context { display: block; color: var(--rp-muted); font-size: 0.9375rem; margin-top: 0.4rem; }

/* Deur */
.scene-deur {
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.deur-kop {
  font-family: var(--rp-display);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rp-flare-hot);
  margin: 0 0 1.75rem;
}
.deur-body {
  font-family: var(--rp-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 26ch;
  margin: 0 0 3rem;
}
.deur-knop {
  display: inline-block;
  font-family: var(--rp-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--rp-void);
  text-decoration: none;
  background: linear-gradient(140deg, var(--rp-flare-hot), var(--rp-flare));
  padding: 1.15rem 2.75rem;
  border-radius: 999px;
  min-height: 44px;
  box-shadow: 0 0 2.5rem oklch(0.85 0.19 120 / 0.3);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.deur-knop:hover { box-shadow: 0 0 4rem oklch(0.85 0.19 120 / 0.5); }
.deur-knop:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 4px; }

/* Voet */
.voet-tagline {
  font-family: var(--rp-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rp-flare);
  margin: 0 0 1.1rem;
}
.scene-voet {
  text-align: center;
  color: var(--rp-muted);
  font-size: 0.875rem;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}
.scene-voet p { margin: 0.25rem 0; }
.scene-voet a { color: var(--rp-muted); }

/* Taalwissel */
#lang-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: var(--rp-z-toggle);
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--rp-line);
  border-radius: 999px;
  background: oklch(0.18 0.03 268 / 0.75);
  backdrop-filter: blur(8px);
  color: var(--rp-muted);
  font: 600 0.8125rem var(--rp-display);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
#lang-toggle:hover { color: var(--rp-ink); border-color: var(--rp-flare-dim); }

/* Reduced motion: alles staat stil, content volledig zichtbaar */
@media (prefers-reduced-motion: reduce) {
  .is-vlucht, .hero-kop, .hero-sub { animation: none; }
  .marquee-band { animation: none; }
  .cue-lijn::after { animation: none; transform: none; }
  #veld, #cursorgloed { display: none; }
  .paneel, .deur-knop { transition: none; }
}

/* Mobiel */
@media (max-width: 48rem) {
  .paneel-veld { grid-template-columns: 1fr; }
  .paneel-a { grid-row: auto; }
  .paneel-d { grid-column: auto; }
  .ruggengraat { left: 0.4rem; top: 8rem; }
  .station, .station:nth-child(odd), .station:nth-child(even) {
    width: auto;
    margin-left: 2.2rem;
    text-align: left;
  }
  .station:nth-child(odd)::before, .station:nth-child(even)::before { left: -2.25rem; right: auto; }
  .manifest-regel:nth-child(2) { margin-left: 0; text-align: left; }
  .hero-cue { display: none; }
  #cursorgloed { display: none; }
}
