/* ------------------------------------------------------------------ *
 *  ESTROS BV — interface
 * ------------------------------------------------------------------ */

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1a3034;
  --ink-soft: #4c5f60;
  --ink-faint: rgba(26, 48, 52, 0.55);
  --paper: #faf6ec;
  --cream: #f4efe2;
  --sand: #e8e1d2;
  --orange: #df6445;
  --teal: #1e6b66;
  --line: rgba(26, 48, 52, 0.16);
  --line-soft: rgba(26, 48, 52, 0.09);
  --display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

/* Component rules further down use display:flex/grid, which would otherwise
   beat the hidden attribute and leave e.g. the thank-you panel in the flow. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'ss01' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper);
  background: var(--orange);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 3px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------- scene ------------------------------ */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 11%, rgba(255, 239, 201, 0.92) 0, rgba(255, 239, 201, 0) 31%),
    linear-gradient(180deg, #cfe3df 0%, #e3ebe3 38%, #f2ecdc 72%, #ede5d5 100%);
  pointer-events: none;
}

.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(255, 255, 255, 0.34), transparent 45%),
    radial-gradient(ellipse at 54% 0%, rgba(255, 255, 255, 0.18), transparent 38%);
}

.sky-glow {
  position: absolute;
  top: -16vh;
  right: 5vw;
  width: 44vw;
  height: 44vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 217, 0.7), rgba(255, 246, 217, 0) 68%);
  filter: blur(10px);
}

.sky-haze {
  position: absolute;
  left: -18vw;
  bottom: -20vh;
  width: 80vw;
  height: 48vh;
  border-radius: 50%;
  background: rgba(255, 250, 235, 0.35);
  filter: blur(80px);
}

#world {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  transition: opacity 1.2s ease;
}

body:not(.is-ready) #world {
  opacity: 0;
}

.scene-shade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(240, 240, 226, 0.24) 0%, transparent 24%, transparent 63%, rgba(238, 231, 217, 0.58) 100%),
    radial-gradient(ellipse at 46% 44%, transparent 38%, rgba(55, 68, 66, 0.1) 100%);
}

.scene-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.scroll-track {
  position: relative;
  z-index: 4;
  height: 760vh;
  pointer-events: none;
}

.track-stop {
  height: calc(760vh / 6);
  pointer-events: none;
}

/* ------------------------------ preloader --------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--cream);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.preloader-mark {
  position: relative;
  width: 46px;
  height: 46px;
}

.preloader-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: preload 1.2s var(--ease) infinite;
}

.preloader-track {
  width: 120px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.preloader-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform-origin: left;
  animation: loadTrack 1.1s var(--ease) infinite;
}

@keyframes preload {
  0%,
  100% {
    opacity: 0.18;
  }
  45% {
    opacity: 1;
  }
}

@keyframes loadTrack {
  0% {
    transform: scaleX(0);
  }
  65%,
  100% {
    transform: scaleX(1);
  }
}

/* ------------------------------- topbar ----------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 4vw;
  transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(244, 239, 226, 0.62), transparent);
  pointer-events: none;
}

.topbar.is-scrolled {
  background: rgba(244, 239, 226, 0.82);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(16px) saturate(1.08);
}

.topbar.is-scrolled::before {
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--ink);
}

.brand-mark svg,
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.brand-type strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-type small {
  margin-top: 4px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.44em;
  color: var(--ink-faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 42px);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.live-status i,
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(30, 107, 102, 0.35);
  animation: statusPulse 2.5s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 107, 102, 0.34);
  }
  55%,
  100% {
    box-shadow: 0 0 0 6px rgba(30, 107, 102, 0);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-ink {
  color: var(--paper);
  background: var(--ink);
}

.button-ink:hover {
  background: var(--teal);
}

.button-small {
  padding: 12px 18px;
  font-size: 10px;
  gap: 12px;
}

.button-big {
  padding: 19px 28px;
  font-size: 11px;
  gap: 22px;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -5px -8px -5px 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
}

.arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.button:hover .arrow {
  transform: translate(2px, -2px);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(26, 48, 52, 0.4);
  background: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-button:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px 4px;
  border: 0;
  background: none;
  cursor: pointer;
}

/* ---------------------------- language switch ------------------------ */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.6);
}

.lang-switch button {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: none;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* -------------------------------- hero ------------------------------ */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 104px 5vw 74px;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-inner {
  width: min(720px, 56vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow-dot {
  width: 4px;
  height: 4px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-eyebrow {
  color: var(--ink-soft);
  animation: riseIn 1s 0.55s var(--ease) both;
}

.hero h1 {
  max-width: 760px;
  margin: 26px 0 30px;
  font-size: clamp(60px, 7.65vw, 104px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.062em;
  animation: riseIn 1.1s 0.62s var(--ease) both;
}

.hero h1 em {
  display: inline-block;
  margin-left: -0.02em;
  font-family: var(--serif);
  font-size: 1.045em;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--teal);
}

.hero-copy {
  max-width: 455px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
  animation: riseIn 1.1s 0.72s var(--ease) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
  pointer-events: auto;
  animation: riseIn 1.1s 0.82s var(--ease) both;
}

.hero-actions .button,
.hero-actions .text-button {
  pointer-events: auto;
}

.hero-foot {
  display: flex;
  gap: clamp(28px, 4vw, 58px);
  width: min(480px, 100%);
  margin-top: clamp(38px, 7vh, 72px);
  padding-top: 15px;
  border-top: 1px solid var(--line);
  animation: riseIn 1.1s 0.92s var(--ease) both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stat strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero-stat span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero.is-hidden {
  pointer-events: none;
}

/* ---------------------------- chapter cards ------------------------- */

.chapter-panel {
  position: fixed;
  left: 5.5vw;
  bottom: 88px;
  z-index: 22;
  display: grid;
  width: auto;
  pointer-events: none;
}

.panel-progress {
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(26, 48, 52, 0.12);
}

.panel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

/* Cards rest as small captions so the animation keeps the frame. At every
   location they grow into the full card for a few seconds (see main.js) and
   then fold back to the caption. */
.chapter-card {
  grid-area: 1 / 1;
  justify-self: start;
  position: relative;
  width: min(320px, 30vw);
  padding: 16px 20px 15px;
  border: 1px solid rgba(26, 48, 52, 0.16);
  border-radius: 3px;
  background: rgba(250, 246, 236, 0.9);
  box-shadow: 0 28px 90px rgba(32, 47, 48, 0.14), 0 2px 6px rgba(32, 47, 48, 0.05);
  backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.65s var(--ease),
    visibility 0.5s,
    width 0.6s var(--ease),
    padding 0.6s var(--ease);
  pointer-events: none;
}

.chapter-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.chapter-card.is-expanded {
  width: min(680px, 56vw);
  padding: 38px 42px 34px;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: padding-bottom 0.5s var(--ease), gap 0.5s var(--ease);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: -2px;
  border: 1px solid rgba(26, 48, 52, 0.25);
  border-radius: 50%;
  color: var(--orange);
  font-size: 8px;
  letter-spacing: 0.04em;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), font-size 0.5s var(--ease);
}

.card-label {
  color: var(--ink);
}

.card-coord {
  margin-left: auto;
  color: var(--ink-faint);
  letter-spacing: 0.11em;
}

.chapter-card h2 {
  margin: 11px 0 0;
  font-size: clamp(20px, 1.72vw, 25px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  transition: font-size 0.5s var(--ease), margin 0.5s var(--ease);
}

.chapter-card.is-expanded h2 {
  margin-top: 22px;
  font-size: clamp(38px, 3.4vw, 54px);
  line-height: 1.01;
  letter-spacing: -0.048em;
}

.card-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.card-detail-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.chapter-card.is-expanded .card-detail {
  grid-template-rows: 1fr;
}

.chapter-card.is-expanded .card-detail-inner {
  opacity: 1;
  transform: translateY(0);
}

/* The open card carries more copy, so its detail rows scale up with it. */
.chapter-card.is-expanded .card-topline {
  gap: 14px;
  padding-bottom: 18px;
  font-size: 9px;
}

.chapter-card.is-expanded .card-index {
  width: 28px;
  height: 28px;
  font-size: 9.5px;
}

.chapter-card.is-expanded .card-metrics {
  margin-top: 32px;
  padding-top: 22px;
}

.chapter-card.is-expanded .card-metrics strong {
  font-size: 29px;
}

.chapter-card.is-expanded .card-metrics span {
  font-size: 9px;
}

.chapter-card.is-expanded .card-status {
  margin-top: 24px;
  padding-top: 18px;
  font-size: 10.5px;
}

/* Reading timer: fills while the scene is paused at a location. */
.card-hold-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.card-metrics div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-metrics strong {
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.card-metrics span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-status > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-status > span:last-child {
  color: var(--ink-faint);
  font-weight: 600;
}

.card-status .status-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  animation: none;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.inline-cta:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.chapter-card-final {
  border-color: rgba(30, 107, 102, 0.24);
}

/* -------------------------------- rail ------------------------------ */

.chapter-rail {
  position: fixed;
  right: 3.2vw;
  top: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 13px;
  transform: translateY(-50%);
}

.chapter-rail::before,
#rail-fill {
  content: '';
  position: absolute;
  left: 0;
  width: 1px;
}

.chapter-rail::before {
  top: 28px;
  bottom: 6px;
  background: rgba(26, 48, 52, 0.15);
}

#rail-fill {
  top: 28px;
  z-index: 2;
  height: 0;
  max-height: calc(100% - 34px);
  background: var(--orange);
}

.rail-caption {
  position: absolute;
  top: -20px;
  left: 13px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rail-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.rail-stop span {
  width: 16px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}

.rail-stop i {
  position: absolute;
  left: -16px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(26, 48, 52, 0.38);
  border-radius: 50%;
  background: var(--cream);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.rail-stop b {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), color 0.35s ease;
  white-space: nowrap;
}

.chapter-rail:hover .rail-stop b,
.rail-stop:focus-visible b {
  opacity: 0.72;
  transform: translateX(0);
}

.rail-stop:hover span,
.rail-stop:hover b,
.rail-stop.is-active span,
.rail-stop.is-active b {
  color: var(--ink);
}

.rail-stop.is-active b {
  opacity: 1;
  transform: translateX(0);
}

.rail-stop.is-active i {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.35);
}

/* ----------------------------- scroll hint -------------------------- */

.scroll-hint {
  position: fixed;
  right: 4vw;
  bottom: 74px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.scroll-hint i {
  position: relative;
  display: block;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(26, 48, 52, 0.18);
}

.scroll-hint i::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--orange);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-110%);
  }
  60%,
  100% {
    transform: translateY(240%);
  }
}

/* ----------------------------- bottom bar --------------------------- */

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 46px;
  padding: 0 4vw;
  border-top: 1px solid var(--line-soft);
  background: rgba(244, 239, 226, 0.76);
  backdrop-filter: blur(14px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bottom-route {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
}

.bottom-kicker {
  margin-right: 6px;
  color: var(--ink);
}

.bottom-route i {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--line);
}

.route-step {
  transition: color 0.35s ease;
}

.route-step.is-active {
  color: var(--ink);
}

.route-step.is-passed {
  color: var(--ink-faint);
}

.bottom-progress {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
}

.bottom-line {
  width: clamp(70px, 10vw, 150px);
  height: 2px;
  overflow: hidden;
  background: rgba(26, 48, 52, 0.14);
}

.bottom-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.bottom-progress b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bottom-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------- mobile menu --------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 6vw 42px;
  background: var(--cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav button {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-align: left;
  cursor: pointer;
}

.mobile-menu nav button span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.mobile-menu-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mobile-menu-foot p {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------ dialog ------------------------------ */

.booking-dialog {
  width: min(980px, calc(100vw - 40px));
  max-height: min(92vh, 800px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #f7f2e6;
  color: var(--ink);
  box-shadow: 0 50px 150px rgba(14, 31, 33, 0.32);
  overflow: auto;
}

.booking-dialog::backdrop {
  background: rgba(18, 37, 39, 0.48);
  backdrop-filter: blur(8px);
}

.booking-dialog[open] {
  animation: dialogIn 0.55s var(--ease);
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 230, 0.94);
  backdrop-filter: blur(12px);
}

.dialog-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 0;
  background: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.dialog-close span {
  font-size: 20px;
  line-height: 0.8;
  font-weight: 300;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(400px, 1.18fr);
  gap: clamp(34px, 5vw, 72px);
  padding: clamp(32px, 4vw, 54px);
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dialog-copy .eyebrow {
  color: var(--ink-faint);
}

.dialog-copy h2 {
  margin: 28px 0 22px;
  font-size: clamp(42px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.dialog-copy h2 em {
  font-family: var(--serif);
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.dialog-copy > p:not(.eyebrow) {
  max-width: 310px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 44px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.dialog-meta a {
  color: var(--teal);
  text-decoration: none;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field small {
  font-size: 8px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(26, 48, 52, 0.27);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(26, 48, 52, 0.34);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(223, 100, 69, 0.65);
}

.field select {
  appearance: none;
  padding-right: 20px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-message textarea {
  min-height: 76px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 6px;
}

.form-foot p {
  max-width: 220px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 8.5px;
  line-height: 1.5;
}

.form-error {
  min-height: 15px;
  margin: -4px 0 0;
  color: var(--orange);
  font-size: 10px;
  font-weight: 600;
}

.booking-success {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  text-align: center;
}

.booking-success[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--teal);
  font-size: 22px;
}

.booking-success h3 {
  margin: 20px 0 14px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.booking-success > p:not(.eyebrow) {
  max-width: 410px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.booking-success a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 30px;
  background: var(--cream);
  text-align: center;
}

/* ------------------------------ responsive -------------------------- */

@media (max-width: 1180px) {
  .main-nav {
    gap: 22px;
  }

  .hero-inner {
    width: min(660px, 62vw);
  }

  .chapter-panel {
    left: 4.5vw;
  }

  .chapter-card {
    width: min(300px, 34vw);
  }

  .chapter-card.is-expanded {
    width: min(640px, 62vw);
  }
}

@media (max-width: 980px) {
  .main-nav,
  .live-status {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    width: min(620px, 68vw);
  }

  .chapter-rail {
    display: none;
  }

  .chapter-panel {
    left: 5vw;
  }

  .chapter-card {
    width: min(300px, 44vw);
  }

  .chapter-card.is-expanded {
    width: min(620px, 80vw);
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 68px;
    padding: 0 5vw;
  }

  .lang-switch {
    padding: 2px;
    gap: 1px;
  }

  .lang-switch button {
    padding: 4px 6px;
    font-size: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-type strong {
    font-size: 15px;
  }

  .topbar-actions .button-small {
    display: none;
  }

  .hero {
    align-items: flex-start;
    padding: 108px 5vw 78px;
  }

  .hero-inner {
    width: 100%;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(42px, 12.5vw, 82px);
    line-height: 0.91;
  }

  .hero-copy {
    max-width: 390px;
    font-size: 13px;
  }

  .hero-actions {
    gap: 22px;
    margin-top: 28px;
  }

  .hero-foot {
    width: 100%;
    max-width: 390px;
    gap: 20px;
    margin-top: 34px;
  }

  .hero-stat strong {
    font-size: 19px;
  }

  .hero-stat span {
    font-size: 7px;
  }

  .chapter-panel {
    left: 12px;
    right: 12px;
    bottom: 60px;
    width: auto;
  }

  .chapter-card,
  .chapter-card.is-expanded {
    width: 100%;
  }

  .chapter-card {
    padding: 15px 17px 14px;
    background: rgba(250, 246, 236, 0.92);
  }

  .chapter-card.is-expanded {
    padding: 28px 24px 24px;
  }

  .chapter-card h2 {
    margin: 10px 0 0;
    font-size: 20px;
  }

  .chapter-card.is-expanded h2 {
    margin-top: 18px;
    font-size: 34px;
  }

  .chapter-card.is-expanded .card-metrics {
    margin-top: 26px;
    padding-top: 18px;
  }

  .chapter-card.is-expanded .card-metrics strong {
    font-size: 25px;
  }

  .chapter-card.is-expanded .card-status {
    margin-top: 19px;
    padding-top: 15px;
    font-size: 9px;
  }

  .card-topline {
    padding-bottom: 12px;
  }

  .card-coord {
    display: none;
  }

  .card-metrics {
    margin-top: 14px;
    padding-top: 11px;
  }

  .card-metrics strong {
    font-size: 18px;
  }

  .card-metrics span {
    font-size: 6.8px;
  }

  .card-status {
    margin-top: 13px;
    padding-top: 11px;
    font-size: 7.5px;
  }

  .card-status > span:last-child {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  .bottom-bar {
    height: 40px;
    padding: 0 5vw;
    font-size: 7px;
  }

  .bottom-route {
    gap: 7px;
  }

  .bottom-route i {
    width: 8px;
  }

  .bottom-kicker,
  .bottom-meta {
    display: none;
  }

  .bottom-progress {
    gap: 9px;
  }

  .bottom-line {
    width: 54px;
  }

  .dialog-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 24px 34px;
  }

  .dialog-copy h2 {
    margin: 20px 0 16px;
    font-size: 42px;
  }

  .dialog-copy > p:not(.eyebrow) {
    max-width: 100%;
  }

  .dialog-meta {
    padding-top: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-top {
    padding: 15px 20px;
  }

  .mobile-menu {
    padding-top: 94px;
  }
}

@media (max-width: 470px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-foot {
    display: none;
  }

  .hero h1 {
    font-size: clamp(41px, 12.5vw, 60px);
  }

  .chapter-card {
    padding: 14px 15px 13px;
  }

  .chapter-card.is-expanded {
    padding: 24px 20px 21px;
  }

  .chapter-card h2 {
    font-size: 18px;
  }

  .chapter-card.is-expanded h2 {
    font-size: 30px;
  }

  .chapter-card.is-expanded .card-metrics {
    margin-top: 22px;
    padding-top: 15px;
  }

  .chapter-card.is-expanded .card-metrics strong {
    font-size: 22px;
  }

  .card-metrics {
    gap: 5px;
  }

  .card-metrics strong {
    font-size: 17px;
  }

  .card-status {
    display: none;
  }

  .bottom-route .route-step:nth-of-type(n + 3),
  .bottom-route i:nth-of-type(n + 2) {
    display: none;
  }
}

/* Short windows (landscape laptops and phones): the popup keeps its width but
   tightens its spacing so it never runs into the top bar. */
@media (max-height: 660px) {
  .chapter-card.is-expanded {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .chapter-card.is-expanded h2 {
    margin-top: 12px;
    font-size: clamp(26px, 2.6vw, 32px);
  }

  .chapter-card.is-expanded .card-metrics {
    margin-top: 16px;
    padding-top: 12px;
  }

  .chapter-card.is-expanded .card-metrics strong {
    font-size: 21px;
  }

  .chapter-card.is-expanded .card-status {
    margin-top: 14px;
    padding-top: 11px;
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* No reading holds without motion: keep every card at its full size so the
     copy stays available. */
  .chapter-card {
    width: min(460px, 42vw);
  }

  .card-detail {
    grid-template-rows: 1fr;
  }

  .card-detail-inner {
    opacity: 1;
    transform: none;
  }
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

/* ------------------------------ site ending -------------------------- */
/* After the pinned 760vh journey the page hands over to ordinary document
   flow: this section scrolls up over the fixed scene like a real page. */

.site-ending {
  position: relative;
  z-index: 25;
  min-height: 100vh;
  padding: 150px 5vw 46px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.site-ending::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -180px;
  height: 180px;
  background: linear-gradient(
    180deg,
    rgba(244, 239, 226, 0) 0%,
    rgba(244, 239, 226, 0.55) 55%,
    var(--cream) 100%
  );
  pointer-events: none;
}

.ending-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-ending h2 {
  max-width: 920px;
  margin: 26px 0 26px;
  font-size: clamp(44px, 7vw, 98px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.site-ending h2 em {
  color: var(--teal);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ending-copy {
  max-width: 570px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.ending-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.ending-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 74px 0 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ending-stats div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ending-stats strong {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ending-stats span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 46px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.footer-brand small {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav button,
.footer-meta a {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}

.footer-nav button:hover,
.footer-meta a:hover {
  color: var(--orange);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: right;
}

/* --------------------- company page (Dutch ending) -------------------- */

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 74px;
  border-top: 1px solid var(--line);
  counter-reset: block;
}

.company-block {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
}

.company-block:nth-child(odd) {
  padding-right: 48px;
  border-right: 1px solid var(--line);
}

.company-block:nth-child(even) {
  padding-left: 48px;
}

.company-block::before {
  counter-increment: block;
  content: '0' counter(block);
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.company-block h3 {
  margin: 0 0 13px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.company-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.company-question {
  max-width: 780px;
  margin: 46px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.company-question a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 107, 102, 0.45);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.company-question a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.company-section {
  margin-top: 110px;
}

.company-section[id] {
  scroll-margin-top: clamp(88px, 12vh, 118px);
}

.section-head h3 {
  max-width: 880px;
  margin: 22px 0 0;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.values-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin: 44px 0 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.collab-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-top: 110px;
  padding: 52px 54px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.collab-panel h3 {
  max-width: 640px;
  margin: 0 0 22px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.collab-panel h3 em {
  color: var(--sand);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.collab-panel p {
  max-width: 520px;
  margin: 0;
  color: rgba(250, 246, 236, 0.74);
  font-size: 14px;
  line-height: 1.8;
}

.collab-panel .button-ink {
  color: var(--ink);
  background: var(--paper);
}

.collab-panel .button-ink:hover {
  color: var(--paper);
  background: var(--orange);
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 38px 0 0;
  counter-reset: service;
}

.service-list li {
  counter-increment: service;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-list li::before {
  content: '0' counter(service);
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-feature {
  margin-top: 38px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-feature h4 {
  margin: 0 0 13px;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-feature p {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.vacature-panel {
  margin-top: 38px;
  padding: 38px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
}

.vacature-panel h4 {
  margin: 0 0 13px;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.vacature-panel p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: start;
}

.contact-meta {
  margin: 34px 0 0;
}

.contact-meta > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-meta dt {
  flex: 0 0 86px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.contact-meta a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 107, 102, 0.45);
}

.contact-meta a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.contact-tip {
  max-width: 460px;
  margin: 26px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.85;
}

.contact-form-wrap {
  position: relative;
}

.company-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-form[hidden],
.form-grid[hidden] {
  display: none;
}

.topic-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.topic-picker legend {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topic-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.25s ease;
}

.topic-chip input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.topic-chip:has(input:checked) {
  color: var(--teal);
}

.company-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
  padding: 44px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.company-success[hidden] {
  display: none;
}

.company-success h4 {
  margin: 20px 0 14px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.company-success > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.company-success a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Leave the pinned chrome behind as the ordinary page takes over. */
.chapter-panel,
.chapter-rail,
.bottom-bar,
.scroll-hint {
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.is-ending .chapter-panel,
body.is-ending .chapter-rail,
body.is-ending .bottom-bar,
body.is-ending .scroll-hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  .site-ending {
    padding: 118px 6vw 34px;
  }

  .site-ending h2 {
    margin-top: 20px;
    font-size: clamp(40px, 11.5vw, 64px);
  }

  .ending-copy {
    font-size: 13px;
  }

  .ending-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    margin-top: 46px;
    padding: 24px 0;
  }

  .site-footer {
    gap: 26px;
    padding-top: 36px;
  }

  .footer-meta {
    text-align: left;
  }

  .company-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 46px;
  }

  .company-block,
  .company-block:nth-child(odd),
  .company-block:nth-child(even) {
    padding: 24px 0 26px;
    border-right: 0;
  }

  .company-question {
    margin-top: 34px;
  }

  .company-section {
    margin-top: 74px;
  }

  .values-list,
  .service-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding: 22px 0;
  }

  .collab-panel {
    margin-top: 74px;
    padding: 34px 26px;
  }

  .service-feature,
  .vacature-panel {
    padding: 26px 22px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .company-success {
    min-height: 0;
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-ending::before {
    display: none;
  }
}

/* -------------------------------- RTL -------------------------------- */
/* Arabic mirrors the interface column and text direction. The 3D journey
   itself keeps its fixed left-to-right composition. */

html[dir='rtl'] body {
  text-align: right;
}

html[dir='rtl'] .skip-link {
  left: auto;
  right: 12px;
}

html[dir='rtl'] .hero-inner,
html[dir='rtl'] .chapter-panel,
html[dir='rtl'] .chapter-card,
html[dir='rtl'] .ending-inner,
html[dir='rtl'] .bottom-route,
html[dir='rtl'] .bottom-meta,
html[dir='rtl'] .footer-meta,
html[dir='rtl'] .contact-meta > div,
html[dir='rtl'] .topic-chip,
html[dir='rtl'] .mobile-menu nav,
html[dir='rtl'] .mobile-menu-foot {
  text-align: right;
}

html[dir='rtl'] .nav-link::after,
html[dir='rtl'] .nav-link:hover::after,
html[dir='rtl'] .nav-link:focus-visible::after {
  left: auto;
  right: 0;
  transform-origin: right;
}

html[dir='rtl'] .rail-caption,
html[dir='rtl'] .bottom-kicker,
html[dir='rtl'] .card-coord {
  direction: ltr;
}

html[dir='rtl'] .card-status,
html[dir='rtl'] .bottom-route,
html[dir='rtl'] .footer-meta,
html[dir='rtl'] .contact-meta > div,
html[dir='rtl'] .contact-tip,
html[dir='rtl'] .company-question,
html[dir='rtl'] .section-copy,
html[dir='rtl'] .company-block p,
html[dir='rtl'] .collab-panel p,
html[dir='rtl'] .vacature-panel p,
html[dir='rtl'] .service-feature p {
  direction: rtl;
}

/* The journey itself travels left-to-right on screen; keep the route steps
   and their arrows in that order even in Arabic, so they match the 3D world. */
html[dir='rtl'] .bottom-route,
html[dir='rtl'] .card-status {
  direction: ltr;
}

html[dir='rtl'] .values-list li,
html[dir='rtl'] .service-list li {
  padding-left: 0;
  padding-right: 28px;
}

html[dir='rtl'] .values-list li::before {
  left: auto;
  right: 0;
}

html[dir='rtl'] .company-block:nth-child(odd) {
  padding-right: 0;
  padding-left: 48px;
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir='rtl'] .company-block:nth-child(even) {
  padding-left: 0;
  padding-right: 48px;
}

html[dir='rtl'] .eyebrow {
  flex-direction: row-reverse;
}

html[dir='rtl'] .form-grid {
  direction: rtl;
}

html[dir='rtl'] .field > span,
html[dir='rtl'] .topic-picker legend,
html[dir='rtl'] .topic-chip,
html[dir='rtl'] .field small {
  direction: rtl;
}

@media (max-width: 760px) {
  html[dir='rtl'] .company-block,
  html[dir='rtl'] .company-block:nth-child(odd),
  html[dir='rtl'] .company-block:nth-child(even) {
    padding: 24px 0 26px;
    border-left: 0;
    border-right: 0;
  }

  html[dir='rtl'] .values-list li,
  html[dir='rtl'] .service-list li {
    padding-right: 0;
  }
}

