/* ============================================================================
   LUMINA — The Night Chart
   A Dutch hydrographic night chart under one sodium-amber light.
   Colour is not decoration here: cold ink = unlit water, warm ink = the beam
   has reached it. Nothing is "an accent on dark"; everything is one frequency.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* Ground — chart black, faintly cold like deep water at night */
  --void:        #07090C;
  --water:       #0A0E13;
  --water-lift:  #0E141B;
  --panel:       #111922;
  --hairline:    #1C2731;
  --hairline-lit:#3A2A1E;

  /* The light — one sodium-amber source, and how far it has reached */
  --light:       #FF5A1F;
  --light-warm:  #FFB061;
  --light-pale:  #FFD9B0;
  --light-deep:  #C93E10;

  /* Ink in darkness (cold, tinted from the water) */
  --ink:         #A8B4C0;
  --ink-strong:  #DCE4EB;
  --ink-dim:     #8A97A3;
  --ink-faint:   #78858F;

  /* Ink in the beam (warm, tinted from the light) */
  --warm:        #F6DCC2;
  --warm-dim:    #C99A6E;

  --paper:       #F2EDE4;

  /* Type */
  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Rhythm — one scale throughout */
  --s1: .5rem;  --s2: .875rem; --s3: 1.25rem; --s4: 2rem;
  --s5: 3.25rem; --s6: 5rem;   --s7: 7.5rem;  --s8: 11rem;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 64ch;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: 'wdth' 100;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

/* Browser surfaces — these ship with defaults that belong to no design system */
::selection { background: var(--light); color: var(--void); }
:where(input, textarea) { caret-color: var(--light); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--light-warm);
  outline-offset: 3px;
  border-radius: 2px;
}

* { scrollbar-color: var(--hairline-lit) var(--void); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: var(--hairline-lit);
  border: 3px solid var(--void);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--light-deep); }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -.02em;
}

.skip {
  position: fixed; top: -100px; left: var(--gutter); z-index: 999;
  background: var(--light); color: var(--void);
  padding: .75rem 1.25rem; font-weight: 700; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 1rem; }

/* ── Type scale ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--ink-strong);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.1rem + 4.3vw, 5.1rem);
  font-variation-settings: 'wdth' 105;
  line-height: .98;
}
h1 em {
  font-style: normal;
  color: var(--light-warm);
  display: block;
}

.display {
  font-size: clamp(1.85rem, 1.1rem + 3.1vw, 3.9rem);
  font-variation-settings: 'wdth' 104;
  line-height: 1.02;
}

h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.5rem); letter-spacing: -.025em; }
h4 { font-size: 1.0625rem; letter-spacing: -.02em; }

p { text-wrap: pretty; }
.lede {
  font-size: clamp(1.0625rem, 1rem + .38vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 54ch;
}

/* Real chart lettering: upright = built/land, italic = water/hydrography */
i, em.water { font-style: italic; font-variation-settings: 'wdth' 96; color: var(--warm-dim); }

a { color: var(--light-warm); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--light-pale); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font: inherit; font-weight: 650; font-size: .96rem;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .32s var(--ease),
              transform .22s var(--ease);
}
.btn--lit {
  background: var(--light);
  color: var(--void);
  box-shadow: 0 4px 26px -8px rgba(255, 90, 31, .55);
}
.btn--lit:hover {
  background: var(--light-warm);
  color: var(--void);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px -10px rgba(255, 160, 90, .7);
}
.btn--ghost {
  border-color: var(--hairline-lit);
  color: var(--warm);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--light); color: var(--light-warm); background: rgba(255,90,31,.06); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Masthead ─────────────────────────────────────────────────────────────── */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: var(--s4);
  padding: 1.1rem var(--gutter);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease),
              border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  background: rgba(7, 9, 12, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--hairline);
  padding-block: .8rem;
}

.mark {
  display: flex; align-items: center; gap: .7rem;
  color: var(--light);
  text-decoration: none;
  margin-right: auto;
}
.mark__glyph { width: 30px; height: 30px; flex: none; }
.mark__streak { opacity: .85; }
.mark__word {
  font-size: 1.28rem; font-weight: 750;
  font-variation-settings: 'wdth' 112;
  letter-spacing: .01em;
  color: var(--ink-strong);
}
.mark:hover .mark__word { color: var(--light-warm); }

.masthead__nav ul { display: flex; gap: 1.85rem; list-style: none; padding: 0; }
.masthead__nav a {
  color: var(--ink); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  position: relative; padding-block: .3rem;
}
.masthead__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--light);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.masthead__nav a:hover, .masthead__nav a[aria-current] { color: var(--light-warm); }
.masthead__nav a:hover::after, .masthead__nav a[aria-current]::after { transform: scaleX(1); }

.masthead__cta { padding: .7rem 1.2rem; font-size: .88rem; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--hairline);
  cursor: pointer;
  padding: 0; place-content: center; gap: 6px;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px; margin-inline: auto;
  background: var(--warm);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7, 9, 12, .97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
}
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.drawer a {
  display: block; padding: .55rem 0;
  color: var(--ink-strong); text-decoration: none;
  font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 700;
  font-variation-settings: 'wdth' 104;
  letter-spacing: -.035em;
}
.drawer a:hover { color: var(--light-warm); }
.drawer__foot { margin-top: var(--s5); display: grid; gap: 1rem; justify-items: start; }
.drawer__tel { font-family: var(--mono); font-size: 1rem; }

/* ══ 01 · THE CHART ═══════════════════════════════════════════════════════ */
.chart {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  padding: 8.5rem var(--gutter) 7.5rem;
  overflow: hidden;
  isolation: isolate;
}
.chart__canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
}
.chart__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 85% at 18% 42%, transparent 30%, rgba(7,9,12,.62) 100%),
    linear-gradient(to bottom, rgba(7,9,12,.75) 0%, transparent 22% 62%, var(--void) 100%);
}

/* Instrument rail down the chart's left margin */
.rail {
  align-self: center;
  padding-right: clamp(1.5rem, 3vw, 3rem);
  margin-right: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--hairline);
}
.rail dl { display: grid; gap: 1.6rem; }
.rail dt {
  font-size: .68rem; font-weight: 650;
  font-variation-settings: 'wdth' 78;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-faint);
  margin-bottom: .3rem;
}
.rail dd { font-size: .88rem; color: var(--warm); font-weight: 500; }
.rail dd.num { font-size: .78rem; color: var(--light-warm); }

.chart__body { max-width: 40ch; }
.chart h1 { margin-bottom: var(--s3); }
.chart .lede { margin-bottom: var(--s4); color: var(--ink); }
.chart__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.chart__hint {
  position: absolute; right: var(--gutter); bottom: 8.5rem;
  display: flex; align-items: center; gap: .55rem;
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  font-variation-settings: 'wdth' 84;
  color: var(--ink-faint);
}
.chart__hint-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 0 0 rgba(255,90,31,.6);
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,.55); }
  35%           { box-shadow: 0 0 0 9px rgba(255,90,31,0); }
}

/* Station strip — hard addresses along the foot of the chart */
.stations {
  position: absolute; inset: auto 0 0; z-index: 2;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to top, rgba(7,9,12,.92), transparent);
  overflow-x: auto;
  scrollbar-width: none;
}
.stations::-webkit-scrollbar { display: none; }
.stations ol {
  display: flex; list-style: none; margin: 0;
  padding: 0 var(--gutter);
  min-width: max-content;
}
.stations a {
  display: flex; align-items: baseline; gap: .6rem;
  padding: 1.1rem 1.6rem 1.1rem 0;
  margin-right: 1.6rem;
  text-decoration: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: border-color .3s var(--ease);
}
.stations b { font-size: .68rem; color: var(--light); letter-spacing: 0; }
.stations span { font-size: .88rem; color: var(--ink-dim); white-space: nowrap; }
.stations a:hover { border-top-color: var(--light); }
.stations a:hover span { color: var(--warm); }
.stations a.is-active { border-top-color: var(--light); }
.stations a.is-active span { color: var(--light-warm); }

/* ══ Shared section frame ════════════════════════════════════════════════ */
.deep, .sectors, .course, .scan, .crew, .harbour {
  padding: var(--s7) var(--gutter);
  position: relative;
}
.deep__inner, .sectors, .course, .scan, .crew, .harbour__inner {
  max-width: 1280px; margin-inline: auto;
}

/* Reveal — content is visible by default; JS only enhances */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}

/* ══ 02 · HET GAT ════════════════════════════════════════════════════════ */
.deep { background: linear-gradient(to bottom, var(--void), var(--water) 45%, var(--void)); }
.deep .display { max-width: 18ch; margin-bottom: var(--s3); }
.deep__lede {
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + .38vw, 1.3rem);
  color: var(--ink);
  margin-bottom: var(--s6);
}

/* Depth soundings — staggered, not a card grid; each one lit a little further */
.soundings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.sounding {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  position: relative;
}
.sounding::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 2.5rem; height: 1px; background: var(--ink-faint);
}
.sounding h3 { margin-bottom: .6rem; color: var(--ink); font-variation-settings: 'wdth' 100; }
.sounding p { color: var(--ink-dim); font-size: .96rem; }
.sounding:nth-child(2) { margin-top: clamp(0rem, 4vw, 3.5rem); }
.sounding:nth-child(3) { margin-top: clamp(0rem, 8vw, 7rem); }

.sounding--lit { border-top-color: var(--light); }
.sounding--lit::before { background: var(--light); height: 2px; top: -1.5px; width: 4.5rem; }
.sounding--lit h3 { color: var(--light-warm); }
.sounding--lit p { color: var(--warm); }

/* ══ 03 · TWEE SECTOREN ══════════════════════════════════════════════════ */
.sectors__head { max-width: var(--measure); margin-bottom: var(--s6); }
.sectors__head .display { margin-bottom: var(--s3); }
.sectors__head p { color: var(--ink-dim); }

/* One tower, two light sectors fanning out — mirrored, not repeated */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  position: relative;
}
.sectors__grid::before {
  content: ''; position: absolute; top: -1px; left: 50%; z-index: 3;
  width: 9px; height: 9px; margin-left: -4.5px; margin-top: -4.5px;
  background: var(--light); border-radius: 50%;
  box-shadow: 0 0 20px 4px rgba(255,90,31,.6);
}

.sector {
  position: relative;
  background: var(--water);
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
.sector__beam {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  transition: opacity .6s var(--ease);
}
.sector--ai .sector__beam {
  background: conic-gradient(from 168deg at 100% 0%,
    transparent 0deg, rgba(255,90,31,.16) 12deg, rgba(255,90,31,.03) 30deg, transparent 44deg);
}
.sector--web .sector__beam {
  background: conic-gradient(from 148deg at 0% 0%,
    transparent 0deg, rgba(255,90,31,.03) 14deg, rgba(255,90,31,.16) 32deg, transparent 44deg);
}
.sector:hover .sector__beam { opacity: 1; }

.sector__head { margin-bottom: var(--s4); }
.sector__icon { width: 30px; height: 30px; color: var(--light); margin-bottom: 1.1rem; }
.sector__head h3 {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem);
  color: var(--ink-strong); margin-bottom: .55rem;
}
.sector__head p { color: var(--warm-dim); font-size: .96rem; max-width: 36ch; }

.offer { list-style: none; padding: 0; display: grid; }
.offer > li {
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline);
}
.offer > li:last-child { padding-bottom: 0; }
.offer h4 { color: var(--light-warm); margin-bottom: .45rem; }
.offer > li > p { color: var(--ink-dim); font-size: .96rem; margin-bottom: .85rem; }
.offer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.offer ul li {
  font-size: .78rem; letter-spacing: .05em;
  font-variation-settings: 'wdth' 88;
  color: var(--ink); padding: .3rem .65rem;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.014);
}

/* ══ 04 · DE KOERS ═══════════════════════════════════════════════════════ */
.course { }
.course__head { max-width: var(--measure); margin-bottom: var(--s6); }
.course__head .display { margin-bottom: var(--s3); }
.course__head p { color: var(--ink-dim); }

/* Default is the static three-up: no script, no motion preference, no canvas —
   all three waypoints legible at once. Script opts into `.is-kinetic` below. */
.course__track { display: grid; }
.course__stage { display: none; }

.legs { list-style: none; padding: 0; display: grid; gap: var(--s5); }
.leg {
  display: grid;
  grid-template-columns: clamp(120px, 15vw, 200px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.leg__fig { display: block; margin: 0; text-align: center; }
.leg__moon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.leg__phase {
  display: block; margin-top: .88rem;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint);
}
.leg__text h3 { margin-bottom: .7rem; color: var(--ink-strong); }
.leg__text p { color: var(--ink-dim); max-width: 52ch; }
.leg[data-phase="1"] .leg__text h3 { color: var(--warm); }
.leg[data-phase="2"] .leg__text h3 { color: var(--light-warm); }
.leg[data-phase="2"] .leg__text p { color: var(--warm); }

/* ── The kinetic course ───────────────────────────────────────────────────
   The moon is held still while the three steps pass it, and its phase is
   driven by which step the light is currently on — new, half, full. Colour
   follows the light, not the sequence: the step under the beam is lit, the
   others are chart the beam has not reached yet.                            */
.course__track.is-kinetic {
  grid-template-columns: clamp(190px, 24vw, 330px) 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.course__track.is-kinetic .course__stage {
  display: grid;
  position: sticky; top: 0;
  height: 100svh;
  align-content: center; justify-items: center;
  gap: var(--s4);
}
.course__track.is-kinetic .legs { gap: 0; }
.course__track.is-kinetic .leg {
  min-height: 82svh;
  grid-template-columns: 1fr;
  gap: 0;
  align-content: center;
}
.course__track.is-kinetic .leg__fig { display: none; }
.course__track.is-kinetic .leg__text h3 {
  color: var(--ink); transition: color .5s var(--ease);
}
.course__track.is-kinetic .leg__text p {
  color: var(--ink-faint); transition: color .5s var(--ease);
}
.course__track.is-kinetic .leg.is-active .leg__text h3 { color: var(--light-warm); }
.course__track.is-kinetic .leg.is-active .leg__text p { color: var(--warm); }

.course__fig { margin: 0; text-align: center; }
.course__moon {
  width: 100%; max-width: 330px; height: auto; aspect-ratio: 1;
  border-radius: 50%;
}
.course__phase {
  display: block; margin-top: 1.1rem;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--light-warm);
}

/* The plotted course: three waypoints, filling as the light reaches them */
.meter { position: relative; width: 100%; max-width: 330px; height: 9px; }
.meter__rail, .meter__fill {
  position: absolute; top: 4px; left: 0; height: 1px;
}
.meter__rail { right: 0; background: var(--hairline); }
.meter__fill {
  right: 0; background: var(--light);
  box-shadow: 0 0 10px 0 rgba(255, 90, 31, .6);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .2s linear;
}
.meter__dot {
  position: absolute; top: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--hairline-lit);
  transform: translateX(-50%);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.meter__dot:nth-of-type(1) { left: 0; }
.meter__dot:nth-of-type(2) { left: 50%; }
.meter__dot:nth-of-type(3) { left: 100%; }
.meter__dot.is-lit { background: var(--light); border-color: var(--light); }

.course__note {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem);
  font-weight: 600;
  font-variation-settings: 'wdth' 102;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--warm);
  max-width: 26ch;
}

/* ══ 05 · DE SCAN ════════════════════════════════════════════════════════ */
.scan { background: linear-gradient(to bottom, var(--void), var(--water) 40% 60%, var(--void)); }
.scan__head { max-width: var(--measure); margin-bottom: var(--s5); }
.scan__head .display { margin-bottom: var(--s3); }
.scan__head p { color: var(--ink-dim); }

.scan__panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.scan__form, .scan__out { background: var(--water-lift); padding: clamp(1.6rem, 3vw, 2.6rem); }
.scan__form { display: grid; gap: var(--s3); align-content: start; }

.field { display: grid; gap: .5rem; }
.field label {
  font-size: .68rem; font-weight: 650;
  font-variation-settings: 'wdth' 80;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-dim);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.field__out { color: var(--light-warm); font-size: .96rem; letter-spacing: -.02em; }
.field__opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); font-weight: 400; }

select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--hairline);
  color: var(--ink-strong);
  font: inherit; font-size: .96rem;
  padding: .8rem .9rem;
  border-radius: 0;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--light) 50%),
                    linear-gradient(135deg, var(--light) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}
select option { background: var(--void); color: var(--ink-strong); }
select:hover, input:hover, textarea:hover { border-color: var(--hairline-lit); }
select:focus, input:focus, textarea:focus { border-color: var(--light); background: var(--water); }
textarea { resize: vertical; min-height: 6.5rem; line-height: 1.55; }
::placeholder { color: var(--ink-faint); }

/* Range — themed end to end, no browser default survives */
input[type="range"] {
  appearance: none; -webkit-appearance: none;
  width: 100%; background: transparent; cursor: pointer;
  height: 22px; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--hairline-lit);
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--hairline-lit); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px; margin-top: -6.5px;
  border-radius: 50%; background: var(--light);
  border: 3px solid var(--void);
  box-shadow: 0 0 14px 1px rgba(255,90,31,.55);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--light); border: 3px solid var(--void);
  box-shadow: 0 0 14px 1px rgba(255,90,31,.55);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.06); }

.scan__out { display: grid; gap: var(--s3); align-content: start; }
.scan__plot { width: 100%; height: 190px; }

.readout { display: grid; }
.readout__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--hairline);
}
.readout__k { font-size: .88rem; color: var(--ink-dim); }
.readout__v { font-size: .96rem; color: var(--ink-strong); white-space: nowrap; }
.readout__row--major .readout__v { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.readout__row--lit { border-top-color: var(--light); }
.readout__row--lit .readout__k { color: var(--warm); }
.readout__row--lit .readout__v { color: var(--light-warm); }

.steps__title {
  font-size: .68rem; font-weight: 650;
  font-variation-settings: 'wdth' 80;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-faint); margin-bottom: .75rem;
}
.steps ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.steps li {
  display: flex; align-items: baseline; gap: .7rem;
  font-size: .88rem; color: var(--ink-dim);
}
.steps li::before {
  content: ''; flex: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-faint);
  transform: translateY(-2px);
}
.steps li.is-auto { color: var(--warm); }
.steps li.is-auto::before { background: var(--light); box-shadow: 0 0 8px 1px rgba(255,90,31,.6); }
.steps li b { color: var(--light-warm); font-family: var(--mono); font-size: .78rem; margin-left: auto; }

.scan__disclaimer {
  margin-top: var(--s4);
  max-width: var(--measure);
  font-size: .88rem; color: var(--ink-faint);
  border-left: 1px solid var(--hairline-lit);
  padding-left: 1.1rem;
}

/* ══ 06 · WIE WE ZIJN ════════════════════════════════════════════════════ */
.crew__head { max-width: var(--measure); margin-bottom: var(--s6); }
.crew__head .display { margin-bottom: var(--s3); }
.crew__head p { color: var(--ink-dim); }

.crew__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-bottom: var(--s7);
}
.person__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--water-lift);
  border: 1px solid var(--hairline);
  margin-bottom: 1.2rem;
  position: relative;
}
/* Monofrequency: the portrait is flattened into the light's own frequency */
.person__portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.14) brightness(.82) sepia(.72)
          hue-rotate(-18deg) saturate(3.1);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.person:hover .person__portrait img { filter: grayscale(1) contrast(1.08) brightness(.95) sepia(.6) hue-rotate(-18deg) saturate(2.4); transform: scale(1.02); }

.person__portrait--pending {
  display: grid; place-content: center; justify-items: center; gap: .8rem;
  color: var(--ink-faint);
  background-image: repeating-linear-gradient(45deg,
    transparent 0 9px, rgba(58,42,30,.4) 9px 10px);
}
.person__portrait--pending svg { width: 54px; height: 54px; }
.person__portrait--pending p {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  font-variation-settings: 'wdth' 80; font-weight: 650;
}
.person h3 { margin-bottom: .2rem; }
.person__role {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  font-variation-settings: 'wdth' 80; font-weight: 650;
  color: var(--light); margin-bottom: .8rem;
}
.person > p:last-child { color: var(--ink-dim); font-size: .96rem; }

.creed__title {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem);
  margin-bottom: var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--hairline);
}
.creed ol {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--s4) clamp(1.75rem, 4vw, 3.5rem);
  counter-reset: creed;
}
.creed li { counter-increment: creed; position: relative; padding-left: 2.6rem; }
.creed li::before {
  content: counter(creed, decimal-leading-zero);
  position: absolute; left: 0; top: .12em;
  font-family: var(--mono); font-size: .78rem;
  color: var(--light);
}
.creed h4 { margin-bottom: .5rem; color: var(--warm); }
.creed p { color: var(--ink-dim); font-size: .96rem; }

.crew__honest {
  margin-top: var(--s6);
  max-width: var(--measure);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.014);
  color: var(--ink-dim); font-size: .88rem;
}

/* ══ 07 · HAVENLICHT ═════════════════════════════════════════════════════ */
.harbour {
  position: relative;
  overflow: hidden;
  padding-block: var(--s8) var(--s7);
  background: linear-gradient(to bottom, var(--void), var(--water));
}
.harbour__light {
  position: absolute; inset: auto 0 0; height: 78%;
  pointer-events: none;
  background:
    radial-gradient(58% 100% at 50% 118%, rgba(255,90,31,.30) 0%, rgba(255,90,31,.10) 38%, transparent 72%);
}
.harbour__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.harbour__pitch .display { margin-bottom: var(--s3); }
.harbour__pitch > p { color: var(--ink); max-width: 42ch; margin-bottom: var(--s4); }

.harbour__direct { list-style: none; padding: 0; display: grid; }
.harbour__direct a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.harbour__direct a:hover { border-top-color: var(--light); transform: translateX(.6rem); }
.harbour__direct span {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  font-variation-settings: 'wdth' 80; font-weight: 650;
  color: var(--ink-faint);
}
.harbour__direct b { color: var(--warm); font-weight: 550; font-size: 1rem; }
.harbour__direct a:hover b { color: var(--light-warm); }

.harbour__form {
  display: grid; gap: var(--s3);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--hairline);
  background: rgba(10,14,19,.72);
  backdrop-filter: blur(8px);
}
.field__err {
  font-size: .78rem; color: var(--light);
  display: flex; align-items: center; gap: .4rem;
}
.field__err[hidden] { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--light); }
.form__status { font-size: .88rem; color: var(--warm); min-height: 1.2em; }
.form__status.is-ok { color: var(--light-warm); }
.form__status.is-err { color: var(--light); }

/* ══ Footer ══════════════════════════════════════════════════════════════ */
.foot {
  padding: var(--s6) var(--gutter) var(--s4);
  border-top: 1px solid var(--hairline);
  background: var(--void);
}
.foot__inner {
  max-width: 1280px; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--s4) clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--s5);
}
.foot__brand .mark__word { display: block; margin-bottom: .8rem; color: var(--light); }
.foot__brand p { color: var(--ink-dim); font-size: .88rem; max-width: 42ch; }
.foot__nav ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.foot__nav a, .foot__contact a {
  color: var(--ink-dim); text-decoration: none; font-size: .88rem;
  display: block;
}
.foot__nav a:hover, .foot__contact a:hover { color: var(--light-warm); }
.foot__contact { display: grid; gap: .5rem; align-content: start; }
.foot__legal {
  max-width: 1280px; margin-inline: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
}
.foot__legal p { font-size: .78rem; color: var(--ink-faint); }

/* ══ Responsive ══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .masthead__nav, .masthead__cta { display: none; }
  .hamburger { display: grid; }
  .rail { display: none; }
  .chart { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .scan__panel { grid-template-columns: 1fr; }
  .chart__hint { display: none; }

  /* The moon moves to a held band above the steps so both stay readable */
  .course__track.is-kinetic { grid-template-columns: 1fr; gap: var(--s3); }
  .course__track.is-kinetic .course__stage {
    top: 3.6rem; height: auto;
    justify-items: start; gap: var(--s3);
    padding: 1.1rem 0 1.4rem;
    background: linear-gradient(to bottom, var(--void) 0 72%, transparent);
    z-index: 5;
  }
  .course__track.is-kinetic .course__fig {
    display: flex; align-items: center; gap: 1rem; text-align: left;
  }
  .course__track.is-kinetic .course__moon { width: 74px; max-width: 74px; }
  .course__track.is-kinetic .course__phase { margin-top: 0; }
  .course__track.is-kinetic .meter { max-width: none; }
  .course__track.is-kinetic .leg { min-height: 66svh; }
}

@media (max-width: 720px) {
  :root { --s7: 4.75rem; --s8: 6rem; --s6: 3.25rem; --s5: 2.5rem; }
  .chart { padding-top: 7rem; padding-bottom: 6.5rem; min-height: 92svh; }
  .foot__inner { grid-template-columns: 1fr; }
  .sounding:nth-child(2), .sounding:nth-child(3) { margin-top: 0; }
}

/* ══ Reduced motion ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart__hint-dot { animation: none; }
  /* The course needs nothing here: script never adds `is-kinetic` under a
     reduced-motion preference, so the static three-up default stands. */
}

/* The static course, stacked on a phone */
@media (max-width: 720px) {
  .leg { grid-template-columns: 1fr; gap: 1.25rem; }
  .leg__fig { max-width: 128px; }
}
