/* ==========================================================================
   The Descent — shared styles (NL + EN)
   Concept: the page is a shaft; you scroll down into the dark with one light.
   Editorial layout, oversized serif + small mono "instrument" labels, hairlines
   instead of cards. Mobile-first. Everything is readable without JS and with
   prefers-reduced-motion (the darkness/light layer is JS-only).
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL, latin subset incl. Dutch diacritics) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
}

/* ---------- Tokens */
:root {
  --void: #050505;
  --stone: #1a1714;       /* the wall, as seen in the light */
  --bone: #e9e2d2;        /* text */
  --ash: #9a9284;         /* secondary text */
  --dim: #5a544a;
  --line: rgba(233, 226, 210, .16);
  --blood: #8f2417;
  --blood-lit: #c9432c;
  --ember: #ffb070;       /* the colour of your light */
  --gold: #d6b25e;        /* found scarabs only */

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --glyph: "Noto Sans Egyptian Hieroglyphs", "Segoe UI Historic", "Aegyptus", sans-serif;

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8  0 0 0 0 .75  0 0 0 0 .66  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --mottle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'><filter id='m' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.004' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  1.1 0 0 0 -.42'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");

  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; background: var(--void); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: var(--mottle), var(--noise), var(--stone);
  color: var(--bone);
  font: 500 1.25rem/1.5 var(--serif);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -100px; z-index: 80; pointer-events: none;
  background: var(--noise); opacity: .28; mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) { body::after { animation: grain 1s steps(6) infinite; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-40px, 30px); } 40% { transform: translate(30px, -50px); } 60% { transform: translate(-60px, -20px); } 80% { transform: translate(50px, 40px); } 100% { transform: translate(0, 0); } }

main, .foot { position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--dim); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .3s, text-decoration-color .3s; }
a:hover { color: #fff; text-decoration-color: var(--blood-lit); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 300; }
button, input { font: inherit; color: inherit; border-radius: 0; }
::selection { background: var(--blood); color: #fff; }

/* mono "instrument" text */
.top, .gauge, .dock, .hero__meta, .hero__scroll, .level__idx, .record__date, .fact__label, .whisper, .btn,
.booker legend, .cal__week, .cal__legend, .promo label, .summary dt, .contact dt, .foot__row, .ph-note, .countdown__label, .signup label, .booker__hint, .booker__demo, .booking__alt, .level__sub, .level__foot {
  font-family: var(--mono); font-weight: 400; font-size: .7rem; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase;
}

/* Custom cursor (a small ember) — desktop only, off for reduced motion */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='2.4' fill='%23ffd9a8' stroke='%23050505' stroke-width='1'/></svg>") 8 8, auto; }
}

:focus-visible { outline: 1px solid var(--bone); outline-offset: 5px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--bone); color: var(--void); padding: .7rem 1rem; font: 500 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.ph-note { display: inline-block; color: var(--ash); border: 1px dashed var(--dim); padding: .1rem .5rem; font-size: .62rem; }

/* ---------- Buttons: hairline rectangles; a blood-red tide rises on hover.
   Labels scramble through hieroglyphs on hover (js/fx/type.js). */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem;
  min-height: 3.4rem; padding: 0 1.6rem; border: 1px solid var(--bone); border-radius: 0;
  background: none; color: var(--bone); font-weight: 500; font-size: .72rem; letter-spacing: .22em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--blood);
  transform: translateY(102%); transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--blood); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: translateY(1px); }
.btn__label { display: inline-block; }
.btn__arrow { transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(.45rem); }
.btn--solid { background: var(--bone); color: var(--void); }
.btn--sm { min-height: 2.5rem; padding: 0 1.05rem; font-size: .66rem; gap: .7rem; }
.btn--block { width: 100%; }
.btn--text { border: 0; padding: 0; min-height: 0; overflow: visible; color: var(--ash); gap: .6rem; }
.btn--text::before { inset: auto 0 -.5rem 0; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.btn--text:hover, .btn--text:focus-visible { color: var(--bone); }
.btn--text:hover::before, .btn--text:focus-visible::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before, .btn__arrow { transition: none; } }

/* ---------- Top bar */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad); color: var(--ash);
}
.top::before { content: ""; position: absolute; inset: 0 0 -2rem; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(5, 5, 5, .9), transparent); opacity: 0; transition: opacity .6s; }
.top.is-scrolled::before { opacity: 1; }
.top__mark { color: var(--bone); text-decoration: none; letter-spacing: .34em; font-weight: 500; white-space: nowrap; }
.top__tools { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.top__cta { display: none; }
@media (min-width: 900px) { .top__cta { display: inline-flex; } }
.tool { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 0; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.tool:hover { color: var(--bone); }
.tool__dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; transition: background-color .3s, box-shadow .3s; }
.tool[aria-pressed="true"] { color: var(--bone); }
.tool[aria-pressed="true"] .tool__dot { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 10px var(--ember); }
@media (max-width: 560px) { .tool__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .tool { padding: .6rem .4rem; } }
html:not(.js) .audio-toggle, html:not(.js) .egg-progress, html:not(.js) .scarab-egg, html:not(.js) .bright { display: none; }
/* brightness slider: how dark the page is below the hero */
.bright { cursor: default; gap: .7rem; }
.bright input { -webkit-appearance: none; appearance: none; width: clamp(3.6rem, 9vw, 6rem); height: 1.6rem; margin: 0; padding: 0; background: none; cursor: pointer; }
.bright input::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to right, var(--dim), var(--bone)); }
.bright input::-moz-range-track { height: 1px; background: linear-gradient(to right, var(--dim), var(--bone)); }
.bright input::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; border: 0; background: var(--ember); box-shadow: 0 0 10px rgba(255, 176, 112, .7); transition: transform .2s; }
.bright input::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--ember); box-shadow: 0 0 10px rgba(255, 176, 112, .7); }
.bright input:hover::-webkit-slider-thumb, .bright input:focus-visible::-webkit-slider-thumb { transform: scale(1.5); }
.bright input:focus-visible { outline: 1px solid var(--bone); outline-offset: 2px; }
@media (max-width: 420px) {
  .top { gap: .5rem; }
  .top__mark { letter-spacing: .16em; }
  .top__tools { gap: .5rem; }
  .bright input { width: 2.9rem; }
  .lang a { padding: .4rem .2rem; }
  .tool { padding: .6rem .15rem; }
}
.lang { display: flex; gap: .2rem; }
.lang a { padding: .4rem .35rem; text-decoration: none; color: var(--dim); }
.lang a:hover { color: var(--bone); }
.lang a[aria-current="page"] { color: var(--bone); border-bottom: 1px solid var(--blood-lit); }

/* scarab counter */
.egg-progress { display: inline-flex; align-items: center; gap: .45rem; color: var(--gold); }
.egg-progress svg { width: .95rem; height: .95rem; transition: transform .5s var(--ease-out); }
.egg-progress svg:not(:first-child) { display: none; }
.egg-progress svg.is-landing { transform: scale(1.8); }
.egg-progress__count { letter-spacing: .1em; }

/* ---------- Depth gauge (desktop rail) + mobile dock */
.gauge { display: none; }
@media (min-width: 900px) {
  .gauge {
    display: block; position: fixed; z-index: 40; right: clamp(1rem, 2.2vw, 2.2rem); top: 50%; width: 2.6rem; height: min(56vh, 30rem);
    transform: translateY(-50%); color: var(--dim);
  }
  .gauge::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--dim) 8%, var(--dim) 92%, transparent); }
  .gauge__read { position: absolute; right: 0; bottom: calc(100% + 1rem); margin: 0; white-space: nowrap; color: var(--ash); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
  .gauge__levels { list-style: none; margin: 0; padding: 0; }
  .gauge__levels li { position: absolute; right: 0; top: var(--at, 0%); transform: translateY(-50%); }
  .gauge__levels a { display: flex; flex-direction: row-reverse; align-items: center; gap: .6rem; padding: .3rem 0; text-decoration: none; color: inherit; white-space: nowrap; }
  .gauge__levels a::before { content: ""; width: 9px; height: 1px; background: currentColor; transition: width .4s var(--ease-out); }
  .gauge__levels em { font-style: normal; opacity: 0; transform: translateX(.5rem); transition: opacity .35s, transform .35s var(--ease-out); }
  .gauge__levels a:hover, .gauge__levels a[aria-current] { color: var(--bone); }
  .gauge__levels a:hover::before, .gauge__levels a[aria-current]::before { width: 18px; }
  .gauge__levels a:hover em, .gauge__levels a:focus-visible em { opacity: 1; transform: none; }
  .gauge__needle { position: absolute; right: -3px; top: calc(var(--scroll-p, 0) * 100%); width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--blood-lit); box-shadow: 0 0 12px 2px rgba(201, 67, 44, .7); }
}
.dock {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem var(--pad) calc(.8rem + env(safe-area-inset-bottom)); color: var(--ash);
  background: linear-gradient(to top, rgba(5, 5, 5, .96) 60%, transparent);
  transition: transform .5s var(--ease), opacity .5s;
}
.dock__read { margin: 0; font-variant-numeric: tabular-nums; }
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- 00. Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.5rem;
  padding: 6rem var(--pad) 6rem;
}
@media (min-width: 900px) { .hero { padding-right: calc(var(--pad) + 4rem); padding-bottom: 2.5rem; } }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; color: var(--ash); }

/* The wordmark: the last word steps down, letter by letter, and sinks further as you scroll */
.title {
  align-self: center; margin: 0; padding-bottom: .12em;
  font: 300 clamp(3.2rem, 15vw, 15rem)/.82 var(--serif); letter-spacing: -.015em; text-transform: uppercase;
}
.title__pre { display: block; margin: 0 0 .1em .12em; font: italic 300 clamp(1.3rem, 3.4vw, 3.2rem)/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ash); }
.title__word { display: flex; font-size: clamp(3.1rem, 18.4vw, 21rem); margin-left: -.045em; padding-bottom: .62em; }
.title__word i { display: block; font-style: normal; transform: translateY(calc(var(--i) * (.085em + var(--hero-p, 0) * .09em))); will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .js .title__word i { animation: letter-in 1.8s var(--ease-out) both; animation-delay: calc(.6s + var(--i) * .1s); }
}
@keyframes letter-in { from { opacity: 0; transform: translateY(-.25em); filter: blur(12px); } }

.hero__foot { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .hero__foot { grid-template-columns: minmax(0, 30rem) 1fr; } .hero__actions { justify-content: flex-end; } }
.hero__hook p { margin: 0; color: var(--ash); max-width: 30rem; }
.hero__hook .hero__tagline { margin-bottom: .5rem; font: italic 400 clamp(1.5rem, 3.2vw, 2.3rem)/1.15 var(--serif); color: var(--bone); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
.hero__scroll { margin: 0; color: var(--dim); display: flex; align-items: center; gap: .9rem; }
.hero__scroll::before { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(to bottom, var(--bone), transparent); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) { .hero__scroll::before { animation: plumb 2.6s var(--ease) infinite; } }
@keyframes plumb { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 899px) { .hero__scroll { display: none; } }

/* ---------- Levels (sections) */
.level { position: relative; display: grid; gap: clamp(2rem, 6vw, 3.5rem); padding: clamp(5rem, 15vw, 12rem) var(--pad); }
@media (min-width: 900px) {
  .level { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 6vw; padding-right: calc(var(--pad) + 5rem); }
  .level__head { position: sticky; top: 6.5rem; align-self: start; }
}
.level__idx { margin: 0 0 1.2rem; color: var(--blood-lit); }
.level__idx span { color: var(--dim); }
.level h2 { font: italic 300 clamp(3rem, 7.4vw, 7.2rem)/.9 var(--serif); letter-spacing: -.02em; }
.level__sub { margin: 1.6rem 0 0; color: var(--ash); max-width: 24rem; }
.level__foot { margin: 2rem 0 0; color: var(--ash); }
.lead { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }

/* headings cast a shadow away from your light (js/fx/light.js sets --sx/--sy/--sb) */
[data-cast] { text-shadow: var(--sx, 0px) var(--sy, 10px) var(--sb, 14px) rgba(0, 0, 0, .9); }

/* hieroglyph decode (visual layer only — real text lives in .sr-only) */
.decode__word { display: inline-block; white-space: nowrap; }
.decode__ch { position: relative; display: inline-block; transition: color .7s ease; }
.decode__ch.is-glyph { color: transparent; text-shadow: none; }
/* the glyph sits on top of its letter and fades out as the letter fades in */
.decode__ch::after { content: attr(data-g); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: normal 400 .62em var(--glyph); letter-spacing: 0; color: var(--ember); text-shadow: 0 0 14px rgba(255, 176, 112, .5); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.decode__ch.is-glyph::after { opacity: 1; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity 1.1s ease, transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(34px); }
}

/* ---------- A warning scratched into the wall between levels */
.frieze { position: relative; padding: .5rem 0; }
.whisper {
  --w: 0;
  margin: 1.2rem 0 0; padding: 0 var(--pad); color: var(--blood-lit); letter-spacing: .5em; font-size: .64rem;
  opacity: calc(.04 + var(--w) * .9); transition: opacity .6s ease; -webkit-user-select: none; user-select: none;
}
html:not(.js) .whisper { --w: .6; }

/* ---------- 01. The record */
.record { position: relative; max-width: 46rem; }
.record__date { margin: 0 0 1rem; color: var(--blood-lit); }
.record__text { margin: 0 0 clamp(2.5rem, 7vw, 5rem); font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.record__text:last-of-type { margin-bottom: 0; }
.record__text--ask { font-style: italic; font-weight: 300; }
/* each sentence brightens as it passes the middle of the screen (js/fx/type.js) */
.js .record__text span { opacity: calc(.3 + var(--b, 0) * .7); transition: opacity .5s ease; }

/* ---------- 02. Facts */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 2rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .fact { grid-template-columns: minmax(8rem, 5fr) minmax(0, 7fr); } .fact__n { grid-row: span 2; } }
.fact__n { font: 300 clamp(3rem, 7vw, 5.6rem)/.95 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.fact__n--word { font-style: italic; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.fact__label { color: var(--ash); align-self: end; }
.fact__note { color: var(--ash); font: italic 400 1.15rem/1.4 var(--serif); }

/* ---------- 03. The toll: one fixed price */
.fare { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.8rem, 4vw, 3rem); }
.fare__price { margin: 0 0 .1em -.03em; font: 300 clamp(5.5rem, 17vw, 13rem)/.9 var(--serif); letter-spacing: -.035em; font-variant-numeric: lining-nums; white-space: nowrap; }
.fare__terms { margin: 1.2rem 0 .8rem; color: var(--ash); font: 400 .7rem/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.fare__note { margin: 0; max-width: 26rem; color: var(--ash); font: italic 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.35 var(--serif); }

/* ---------- 04. Booking (demo widget) */
.booker__demo { margin: 0 0 1.5rem; color: var(--ash); }
.booker__form { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.booker__side { display: grid; gap: 2rem; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.booker__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.booker legend { display: flex; align-items: center; gap: .8rem; padding: 0; margin-bottom: 1rem; color: var(--ash); }
.booker__num { color: var(--blood-lit); }
.booker__num::after { content: " /"; color: var(--dim); }
.booker__hint { margin: 0; color: var(--dim); }
.booker__error { min-height: 1.4em; margin: .5rem 0; color: var(--blood-lit); font: italic 500 1.05rem var(--serif); }

.cal { border: 1px solid var(--line); padding: 1rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__month { font: italic 400 1.5rem/1 var(--serif); text-transform: capitalize; }
.cal__nav { width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); background: none; color: var(--bone); cursor: pointer; transition: border-color .3s; }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__nav:not(:disabled):hover { border-color: var(--bone); }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal__week { color: var(--dim); text-align: center; font-size: .6rem; padding-bottom: .5rem; letter-spacing: .08em; }
.cal__day { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid transparent; background: rgba(233, 226, 210, .04); color: var(--bone); font: 500 1.15rem var(--serif); font-variant-numeric: lining-nums; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.cal__day::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--ash); }
.cal__day[data-status="few"]::after { background: var(--blood-lit); }
.cal__day:disabled { background: none; color: #3a362f; cursor: default; }
.cal__day:disabled::after { display: none; }
.cal__day:not(:disabled):hover { border-color: var(--bone); }
.cal__day.is-today { border-color: var(--dim); }
.cal__day[aria-pressed="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); }
.cal__day[aria-pressed="true"]::after { background: var(--void); }
.cal__legend { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; color: var(--dim); font-size: .6rem; }
.cal__legend .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ash); margin-left: .8rem; }
.cal__legend .dot:first-child { margin-left: 0; }
.cal__legend .dot--few { background: var(--blood-lit); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: 2px; }
.slots > p { grid-column: 1 / -1; }
.slot { display: grid; justify-items: center; gap: .1rem; padding: .7rem .2rem; border: 1px solid var(--line); background: none; color: var(--bone); font: 500 1.15rem var(--serif); font-variant-numeric: lining-nums; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.slot small { font: 400 .55rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.slot:disabled { color: #3a362f; cursor: default; text-decoration: line-through; border-color: rgba(233, 226, 210, .06); }
.slot:not(:disabled):hover { border-color: var(--bone); }
.slot[aria-pressed="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); }
@media (prefers-reduced-motion: no-preference) { .slots.is-fresh .slot { animation: slot-in .5s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms); } }
@keyframes slot-in { from { opacity: 0; transform: translateY(8px); } }

.booker__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.stepper { display: flex; align-items: center; gap: .8rem; }
.stepper button { width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); background: none; color: var(--bone); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: border-color .3s; }
.stepper button:not(:disabled):hover { border-color: var(--bone); }
.stepper button:disabled { opacity: .25; cursor: default; }
.stepper output { min-width: 1.4ch; text-align: center; font: 300 2.2rem/1 var(--serif); font-variant-numeric: lining-nums; }
.stepper__unit { font: 400 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; width: 3rem; height: 2.4rem; font: 500 .68rem var(--mono); letter-spacing: .16em; color: var(--ash); transition: background-color .3s, color .3s; }
.seg input:checked + span { background: var(--bone); color: var(--void); }
.seg input:focus-visible + span { outline: 1px solid var(--bone); outline-offset: 3px; }

.fields { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field span { color: var(--ash); font: 400 .7rem/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.field input { min-height: 2.9rem; padding: 0 .9rem; border: 1px solid var(--line); background: none; color: var(--bone); font: 500 1.15rem var(--serif); }
.field input:focus { outline: 0; border-color: var(--bone); }
.field input.is-invalid { border-color: var(--blood-lit); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booker__privacy { margin: 1rem 0 0; color: var(--ash); font: italic 400 1rem/1.4 var(--serif); }
.booker__down { margin: 0 0 1.5rem; font: italic 400 1.3rem/1.35 var(--serif); }
.booker__ref { margin: 0 0 .8rem; font: 500 .9rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.booker.is-loading .cal__grid { opacity: .35; }
.summary { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.summary dl { margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.summary dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.summary dt { color: var(--ash); }
.summary dd { margin: 0; text-align: right; }
.summary__discount dt, .summary__discount dd { color: var(--gold); }
.summary__total { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.summary__total dd { font: 300 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
/* a discount lands quietly: its row slides in and the new total settles into place */
@media (prefers-reduced-motion: no-preference) {
  .summary__discount:not([hidden]) { animation: row-in .7s var(--ease-out) both; }
  .summary__total dd.is-updated { animation: total-in .7s var(--ease-out) both; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(-.4rem); } }
@keyframes total-in { from { opacity: 0; transform: translateY(.35rem); } }
.promo label { display: block; margin-bottom: .5rem; color: var(--ash); }
.promo__row { display: flex; gap: .5rem; }
.promo input { flex: 1; width: 0; min-width: 0; min-height: 2.5rem; padding: 0 .8rem; border: 1px solid var(--line); background: none; color: var(--bone); font: 500 .8rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.promo input:focus { outline: 0; border-color: var(--bone); }
.promo__msg { min-height: 1.4em; margin: .5rem 0 0; color: var(--gold); font: italic 500 1.05rem var(--serif); }
.promo__msg.is-error { color: var(--blood-lit); }
.booker__done { padding: 1rem 0; }
.booker__done:focus { outline: none; }
.booker__done-icon { width: 3rem; height: 3rem; color: var(--gold); filter: drop-shadow(0 0 16px rgba(214, 178, 94, .6)); }
.booker__done h3 { margin: 1.2rem 0 .8rem; font: italic 300 clamp(2rem, 4.4vw, 3.4rem)/1 var(--serif); }
.booking__fallback { margin-bottom: 1.5rem; }
.booking__alt { margin: 2.5rem 0 0; color: var(--ash); }
@media (min-width: 1280px) { .level--book { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .booker__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; } }

/* ---------- 05. Questions */
.slabs { border-top: 1px solid var(--line); }
.slab { border-bottom: 1px solid var(--line); }
.slab summary { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.5rem 0; font: 400 clamp(1.35rem, 2.6vw, 1.9rem)/1.2 var(--serif); cursor: pointer; list-style: none; transition: color .3s; }
.slab summary::-webkit-details-marker { display: none; }
.slab summary::after { content: "+"; flex: none; margin-left: auto; font: 300 1.4rem/1 var(--mono); color: var(--ash); transition: transform .5s var(--ease), color .3s; }
.slab summary:hover { color: #fff; }
.slab[open] summary::after { transform: rotate(135deg); color: var(--blood-lit); }
.slab__body { overflow: hidden; }
.slab__body > div { padding: 0 3rem 1.8rem 0; color: var(--ash); max-width: 38rem; }
.slab__body p:last-child { margin-bottom: 0; }
.slab-wrap { position: relative; }
.slab-wrap .slab summary::after { margin-left: 3.2rem; }
.slab-wrap .slab summary { justify-content: space-between; }

/* ---------- 06. Location */
.location { display: grid; gap: 2.5rem; }
.contact { margin: 0; border-top: 1px solid var(--line); }
.contact > div { display: grid; gap: .2rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .contact > div { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; } }
.contact dt { color: var(--ash); }
.contact dd { margin: 0; }
.map { position: relative; display: grid; place-items: center; align-content: center; gap: .8rem; aspect-ratio: 16 / 9; border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .4s; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); }
.map__cross { position: absolute; inset: 0; background: linear-gradient(var(--line), var(--line)) 50% 50% / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 50% 50% / 1px 100% no-repeat; }
.map__cross::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--blood-lit); box-shadow: 0 0 0 6px rgba(201, 67, 44, .18), 0 0 18px var(--blood-lit); }
.map__label, .map .ph-note { position: relative; background: var(--stone); padding: .2rem .7rem; }
.map__label { margin-top: 4.5rem; font: 500 .7rem var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.map:hover { border-color: var(--bone); }

/* ---------- Footer */
.foot { position: relative; padding: clamp(4rem, 10vw, 8rem) var(--pad) calc(7rem + env(safe-area-inset-bottom)); overflow: hidden; }
@media (min-width: 900px) { .foot { padding-bottom: 2.5rem; } }
.foot .whisper { padding: 0; margin: 0 0 2rem; }
.foot__mark { margin: 0 0 2.5rem -.04em; font: 300 clamp(2.4rem, 12.6vw, 15rem)/.8 var(--serif); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--dim); }
.foot__row { display: grid; gap: .6rem; color: var(--ash); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.foot__row p { margin: 0; }
.foot__row .foot__elapsed { color: var(--blood-lit); }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 0; padding: 0; color: var(--ash); }
.foot__links a { text-decoration: none; }

/* ---------- Document pages (privacy statement): plain, calm, fully lit */
.doc { max-width: 46rem; padding: clamp(7rem, 16vw, 11rem) var(--pad) 4rem; }
.doc h1 { font: italic 300 clamp(3rem, 9vw, 6rem)/.92 var(--serif); letter-spacing: -.02em; }
.doc__meta { margin: 1.6rem 0 0; color: var(--ash); font: 400 .7rem/1.8 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.doc__meta .ph-note { margin-left: .6rem; }
.doc__sec { margin-top: clamp(3rem, 8vw, 4.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc__sec h2 { margin-bottom: 1.2rem; font: italic 400 clamp(1.7rem, 4vw, 2.3rem)/1.1 var(--serif); }
.doc__sec h2 span { display: block; margin-bottom: .7rem; color: var(--blood-lit); font: 400 .7rem/1 var(--mono); font-style: normal; letter-spacing: .16em; }
.doc__sec p, .doc__sec li, .doc__sec dd { color: #cfc8b9; }
.doc__sec ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc__sec li { margin-bottom: .35em; }
.doc__sec li::marker { color: var(--blood-lit); }
.doc__sec dl { margin: 0; }
.doc__sec dl > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.doc__sec dl > div:first-child { border-top: 0; padding-top: 0; }
.doc__sec dt { margin-bottom: .4rem; color: var(--bone); font: 400 .7rem/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.doc__sec dd { margin: 0; }
.doc__sec strong { color: var(--bone); font-weight: 600; }
.doc__back { margin: 4rem 0 0; }
.foot--doc { padding-top: 0; }

/* ---------- Hidden scarabs: dark shapes on the wall, only seen when your light finds them */
.scarab-egg { position: absolute; z-index: 3; width: 2.2rem; height: 2.2rem; padding: .35rem; background: none; border: 0; color: #3a342c; cursor: pointer; transition: color .35s, filter .35s; }
.scarab-egg svg { display: block; width: 100%; height: 100%; }
.scarab-egg:hover, .scarab-egg:focus-visible { color: var(--bone); }
.scarab-egg.is-found { color: var(--gold); filter: drop-shadow(0 0 8px rgba(214, 178, 94, .7)); cursor: default; }
.scarab-egg--hero { right: 14%; top: 27%; transform: rotate(-24deg); }
.scarab-egg--record { right: -1rem; top: 46%; transform: rotate(110deg); }
.scarab-egg--toll { right: 6%; top: 34%; transform: rotate(80deg); }
.scarab-egg--slab { right: 2.2rem; top: 1.3rem; width: 1.9rem; height: 1.9rem; transform: rotate(24deg); }
.scarab-egg--foot { left: var(--pad); bottom: 13rem; transform: rotate(160deg); }
@media (min-width: 900px) { .scarab-egg--foot { left: auto; right: 22%; bottom: 9rem; } }
@media (max-width: 700px) { .scarab-egg--hero { right: 9%; top: 19%; } .scarab-egg--record { right: 0; } }
@media (prefers-reduced-motion: no-preference) { .scarab-egg--slab:not(.is-found) { animation: scarab-twitch 7s ease-in-out 2s infinite; } }
@keyframes scarab-twitch { 0%, 86%, 100% { transform: rotate(24deg); } 88% { transform: rotate(12deg) translate(-2px, -1px); } 90% { transform: rotate(34deg) translate(1px, 0); } 92% { transform: rotate(18deg) translate(-1px, 1px); } }
.spark { position: fixed; z-index: 70; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff6cf, var(--gold) 45%, transparent 70%); }
.scarab-flight { position: fixed; z-index: 70; pointer-events: none; color: var(--gold); filter: drop-shadow(0 0 10px rgba(214, 178, 94, .9)); }
.scarab-flight svg { width: 100%; height: 100%; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: translate(-50%, 180%);
  width: min(30rem, calc(100% - 2rem)); padding: 1.2rem 1.4rem; background: rgba(5, 5, 5, .96); border: 1px solid var(--line); border-left: 2px solid var(--blood-lit);
  font: italic 500 1.15rem/1.35 var(--serif); transition: transform .6s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast code { font: 500 .85rem var(--mono); letter-spacing: .14em; font-style: normal; color: var(--gold); }
.toast__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.toast .btn--gold { background: var(--bone); color: var(--void); }
.toast .btn--gold:hover { color: #fff; }
body:has(.toast.is-visible) .dock { transform: translateY(110%); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- Coming soon (countdown) mode */
.countdown { display: flex; gap: clamp(1rem, 4vw, 2.5rem); margin: 2rem 0; }
.countdown__num { display: block; font: 300 clamp(2.6rem, 8vw, 5rem)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.countdown__label { color: var(--ash); }
.signup { display: flex; flex-wrap: wrap; gap: .8rem; max-width: 32rem; }
.signup label, .signup small { flex-basis: 100%; color: var(--ash); }
.signup small { font: italic 400 1rem var(--serif); letter-spacing: 0; text-transform: none; }
.signup input { flex: 1 1 14rem; min-height: 3.4rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 0; background: none; color: var(--bone); font: 500 1.15rem var(--serif); }
.signup input:focus { outline: 0; border-color: var(--bone); }
.is-coming-soon .level--book { display: none; }

/* ==========================================================================
   Darkness and light (JS-only layers; see js/fx/light.js and js/fx/eyes.js)
   ========================================================================== */
/* carved hieroglyph columns on the wall behind everything */
.wall { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wall__col { position: absolute; top: -10vh; margin: 0; writing-mode: vertical-rl; text-orientation: upright; font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1 var(--glyph); letter-spacing: .5em; color: #26221d; text-shadow: 0 1px 0 rgba(255, 235, 200, .07), 0 -1px 1px rgba(0, 0, 0, .95); transform: translateY(var(--wall-y, 0px)); will-change: transform; }

/* the darkness itself: a WebGL canvas (light pool + fog) or, as fallback, a CSS gradient */
.dark { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; pointer-events: none; }
.dark--css {
  --mx: 50%; --my: 42%; --lr: 320px; --gd: .9;
  background: radial-gradient(circle at var(--mx) var(--my), transparent 0, rgba(0, 0, 0, calc(var(--gd) * .55)) calc(var(--lr) * .6), rgba(0, 0, 0, var(--gd)) calc(var(--lr) * 1.25));
}
.dark--static { background: radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(0, 0, 0, .55) 100%); }

/* something watching from the dark */
.eyes { position: fixed; z-index: 31; width: 40px; height: 9px; pointer-events: none; opacity: 0; transition: opacity 1.8s ease; }
.eyes::before, .eyes::after { content: ""; position: absolute; top: 0; width: 10px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #ffe2b0 0 16%, #c9641e 46%, transparent 74%); box-shadow: 0 0 12px 2px rgba(201, 100, 30, .45); animation: blink 3.4s infinite; }
.eyes::before { left: 0; }
.eyes::after { right: 0; }
.eyes.is-open { opacity: .85; }
.eyes.is-shut { opacity: 0; transition-duration: .16s; }
@keyframes blink { 0%, 43%, 51%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.06); } }

/* Cross-page transition between the NL and EN pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .4s ease both; }
::view-transition-new(root) { animation: vt-in .6s ease .05s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
