:root {
  /* Brand colours sampled from the official logo */
  --brand-sun: #fcb93f;
  --brand-ochre: #e4a23c;
  --brand-teal: #0b3a44;
  --brand-teal-deep: #062a33;
  --ink: #061319;
  --ink-soft: #0e2630;
  --night: #05172a;
  --sand: var(--brand-ochre);
  --gold: var(--brand-sun);
  --clay: #a5512f;
  --papyrus: #f1e9d8;
  --stone: #c9c0ad;
  --stone-light: #f6f2ea;
  --river: #13606a;
  --radius: 4px;
  --white: #fffdf8;
  --line-light: rgba(255, 253, 248, 0.24);
  --line-dark: rgba(7, 17, 27, 0.2);
  --display: "Kufam", "Noto Kufi Arabic", Tahoma, sans-serif;
  --brand-display: "Kufam", "Noto Kufi Arabic", Tahoma, sans-serif;
  --subheading: "Changa", "Noto Kufi Arabic", Tahoma, sans-serif;
  --body: "Noto Kufi Arabic", Tahoma, sans-serif;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Even line breaks: never leave one word alone on a line */
h1,
h2,
h3,
blockquote,
.hero__statement,
.section-kicker {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Entrance: the Lion Temple of Naqa (Apedemak) */
.entrance {
  /* One temple unit. The temple is 1000 × 600 units. */
  --u: min(calc(62svh / 600), calc(96vw / 1000), 1.2px);
  --ground: 10svh;
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  background: #030d14;
  perspective: 1600px;
  transition: opacity 0.7s ease 1.5s, visibility 0s 2.2s;
}

.entrance.is-open {
  opacity: 0;
  visibility: hidden;
}

.temple__defs {
  position: absolute;
  width: 0;
  height: 0;
}

.entrance__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 78%, rgba(252, 185, 63, 0.32), transparent 70%),
    linear-gradient(180deg, #020a10 0%, #05202b 52%, #0b3a44 80%, #17505a 100%);
}

.entrance__dust {
  position: absolute;
  z-index: 1;
  inset: 0 0 30% 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 14% 32%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 68%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 39% 74%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 19%, rgba(252, 185, 63, 0.9) 0 1px, transparent 1.5px);
  background-size: 160px 190px, 230px 250px, 190px 170px, 270px 230px;
  animation: dust-drift 18s linear infinite;
  pointer-events: none;
}

.entrance__content {
  position: absolute;
  z-index: 5;
  top: max(7svh, 48px);
  right: 0;
  left: 0;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  animation: gate-rise 1.2s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 0.4s, transform 0.6s;
}

.entrance.is-open .entrance__content {
  animation: none;
  opacity: 0;
  transform: translateY(-24px);
}

.entrance__era {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
}

.entrance__era::before,
.entrance__era::after {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.6;
}

.entrance h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.entrance__content > p:last-of-type {
  margin: 10px auto 26px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 1rem;
}

.portal-button {
  position: relative;
  width: 220px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(252, 185, 63, 0.85);
  border-radius: var(--radius);
  background: rgba(3, 13, 20, 0.35);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.portal-button::before {
  position: absolute;
  inset: 0;
  background: var(--gold);
  content: "";
  transform: translateY(102%);
  transition: transform 0.35s ease;
}

.portal-button:hover::before,
.portal-button:focus-visible::before {
  transform: translateY(0);
}

.portal-button span {
  position: relative;
  z-index: 1;
}

.portal-button:hover,
.portal-button:focus-visible {
  color: var(--ink);
}

.portal-button i {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 26px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
}

/* The temple */
.temple {
  position: absolute;
  z-index: 3;
  bottom: calc(var(--ground) - 2px);
  left: 50%;
  width: calc(1000 * var(--u));
  height: calc(600 * var(--u));
  transform: translateX(-50%);
  transform-origin: 50% 82%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
  /* Flat stacking: the gate always paints in front of the sun */
  transform-style: flat;
  cursor: pointer;
  transition: transform 1.9s cubic-bezier(0.55, 0, 0.15, 1) 0.1s;
}

.entrance.is-open .temple {
  transform: translateX(-50%) scale(7);
}

.entrance__sky {
  transform-origin: 50% 80%;
}

.entrance.is-open .entrance__sky {
  transform: scale(1.25);
}

.entrance__ground {
  transform-origin: 50% 0;
  transition: transform 1.9s cubic-bezier(0.55, 0, 0.15, 1) 0.1s, background 0.9s;
}

.entrance.is-open .entrance__ground {
  transform: scale(3, 4);
}

.temple__half {
  position: absolute;
  bottom: 0;
  width: calc(500 * var(--u));
  height: calc(600 * var(--u));
  transition: transform 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.2s, filter 1s;
  filter: none;
}

.temple__half svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The halves overlap by a hair so no seam shows down the middle */
.temple__half--right {
  left: calc(50% - 1.5px);
  transform-origin: right bottom;
}

.temple__half--left {
  right: calc(50% - 1.5px);
  transform-origin: left bottom;
}

.temple__half--left svg {
  transform: scaleX(-1);
}

.entrance.is-open .temple__half--right {
  transform: none;
  filter: brightness(0.7);
}

.entrance.is-open .temple__half--left {
  transform: none;
  filter: brightness(0.7);
}

/* The sun rising behind the pylons, as in the logo */
.temple__sun {
  position: absolute;
  bottom: calc(262 * var(--u));
  left: 50%;
  width: calc(350 * var(--u));
  height: calc(350 * var(--u));
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffd27a, var(--brand-sun) 60%, #f0a531);
  box-shadow: 0 0 calc(120 * var(--u)) rgba(252, 185, 63, 0.45);
  transform: translateX(-50%);
  /* Waits above the sky until the page is ready (see .is-ready) */
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1), box-shadow 1s;
}

.temple__sun i {
  position: absolute;
  height: calc(9 * var(--u));
  border-radius: 99px;
  background: rgba(255, 244, 214, 0.8);
}

.temple__sun i:first-child {
  top: 36%;
  left: 4%;
  width: 46%;
}

.temple__sun i:last-child {
  top: 56%;
  right: 0;
  width: 58%;
}

.entrance.is-open .temple__sun {
  animation: none;
  box-shadow: 0 0 calc(400 * var(--u)) rgba(252, 185, 63, 0.9);
  transform: translateX(-50%);
}

/* Light behind the doorway */
.temple__light {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(144 * var(--u));
  height: calc(214 * var(--u));
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, #fff8e6 0%, rgba(255, 220, 140, 0.95) 35%, rgba(252, 185, 63, 0.8) 70%, rgba(228, 162, 60, 0.55) 88%, rgba(228, 162, 60, 0) 100%);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: door-breathe 3.2s ease-in-out infinite;
  transition: transform 1.3s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
}

.entrance.is-open .temple__light {
  animation: none;
  transform: translateX(-50%) scale(1.6, 1.25);
}

.entrance__ground {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--ground);
  background:
    radial-gradient(ellipse 40% 100% at 50% 0%, rgba(252, 185, 63, 0.35), transparent 70%),
    linear-gradient(180deg, #b9772d 0%, #8c531f 40%, #3d230d 100%);
  box-shadow: 0 -1px 0 rgba(255, 220, 150, 0.35);
}

.entrance__flash {
  position: absolute;
  z-index: 6;
  inset: 0;
  background: radial-gradient(circle at 50% 75%, #fff8e6, #fcb93f 60%, #e4a23c);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.entrance.is-open .entrance__flash {
  animation: gate-flash 2s ease forwards;
}

/* Start button sits on the sand, where the skip link used to be */
.entrance > .portal-button {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: max(14px, calc(var(--ground) / 2 - 28px));
  left: 0;
  margin: 0 auto;
  background: rgba(6, 19, 25, 0.82);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  animation: gate-rise 1.2s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 0.35s;
}

.entrance.is-open > .portal-button {
  animation: none;
  opacity: 0;
}

/* Day / night toggle */
.scene-toggle {
  position: absolute;
  z-index: 8;
  top: 16px;
  left: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(6, 19, 25, 0.35);
  color: var(--gold);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}

.scene-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}




.entrance.is-open .scene-toggle {
  opacity: 0;
}

/* Moon craters, shown only at night */
.temple__sun b {
  position: absolute;
  border-radius: 50%;
  background: rgba(120, 132, 146, 0.32);
  opacity: 0;
  transition: opacity 0.8s;
}

.temple__sun b:nth-of-type(1) { top: 24%; left: 30%; width: 18%; height: 18%; }
.temple__sun b:nth-of-type(2) { top: 52%; left: 58%; width: 12%; height: 12%; }
.temple__sun b:nth-of-type(3) { top: 44%; left: 18%; width: 8%; height: 8%; }

.entrance__sky,
.entrance__ground,
.entrance__dust,
.temple__sun,
.entrance__content {
  transition-property: background, color, opacity, box-shadow, transform;
  transition-duration: 0.9s;
}

/* Camera parts share one timing, so the sky and ground move with the temple */
.temple__sun,
.entrance__ground {
  transition:
    transform 1.9s cubic-bezier(0.55, 0, 0.15, 1) 0.1s,
    background 0.9s,
    box-shadow 1.2s,
    opacity 0.9s;
}

/* Night: moon and stars */
html:not([data-theme="light"]) .entrance .entrance__sky {
  background:
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(252, 185, 63, 0.2), transparent 70%),
    linear-gradient(180deg, #01070c 0%, #041824 50%, #0a3240 82%, #134652 100%);
}

html:not([data-theme="light"]) .entrance .temple__sun {
  background: radial-gradient(circle at 38% 35%, #ffffff, #e9ecef 50%, #b8c1ca 100%);
  box-shadow: 0 0 calc(90 * var(--u)) rgba(205, 225, 240, 0.45), 0 0 calc(220 * var(--u)) rgba(140, 180, 210, 0.2);
}

html:not([data-theme="light"]) .entrance .temple__sun i { opacity: 0; }
html:not([data-theme="light"]) .entrance .temple__sun b { opacity: 1; }

html:not([data-theme="light"]) .entrance .temple__half {
  filter: brightness(0.72) saturate(0.85);
}

html:not([data-theme="light"]) .entrance .entrance__ground {
  background:
    radial-gradient(ellipse 30% 100% at 50% 0%, rgba(252, 185, 63, 0.32), transparent 70%),
    linear-gradient(180deg, #7d5022 0%, #4f3013 45%, #1d1207 100%);
}

/* Day: the sun */
html[data-theme="light"] .entrance {
  background: #b9d6e2;
}

html[data-theme="light"] .entrance .entrance__sky {
  background:
    radial-gradient(ellipse 55% 45% at 50% 62%, rgba(255, 225, 150, 0.7), transparent 70%),
    linear-gradient(180deg, #6fa9c9 0%, #a8cfdf 40%, #e9dcc0 78%, #f0cf96 100%);
}

html[data-theme="light"] .entrance .entrance__dust {
  opacity: 0;
}

html[data-theme="light"] .entrance .entrance__content {
  color: var(--ink);
}

html[data-theme="light"] .entrance .entrance__content h2 {
  text-shadow: 0 6px 30px rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .entrance .entrance__era {
  color: var(--clay);
}

html[data-theme="light"] .entrance .entrance__content > p:last-of-type {
  color: rgba(6, 19, 25, 0.72);
}

html[data-theme="light"] .entrance .temple__half {
  filter: none;
}

html[data-theme="light"] .entrance .temple__light {
  opacity: 0.85;
  background: linear-gradient(180deg, #2a1708 0%, #4a2a0f 55%, #7a4a1c 100%);
  animation: none;
}

html[data-theme="light"] .entrance.is-open .temple__light {
  background: radial-gradient(ellipse 60% 80% at 50% 100%, #fff8e6 0%, rgba(255, 220, 140, 0.95) 35%, rgba(252, 185, 63, 0.8) 70%, rgba(228, 162, 60, 0) 100%);
  opacity: 1;
}

html[data-theme="light"] .entrance .entrance__ground {
  background:
    radial-gradient(ellipse 40% 100% at 50% 0%, rgba(255, 236, 190, 0.5), transparent 70%),
    linear-gradient(180deg, #e2b56e 0%, #cf9a52 45%, #a8722f 100%);
}

html[data-theme="light"] .entrance .scene-toggle {
  border-color: rgba(6, 19, 25, 0.25);
  background: rgba(255, 255, 255, 0.45);
  color: var(--brand-teal);
}

@keyframes dust-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(40px, -28px, 0); }
}

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.entrance.is-ready .temple__sun {
  opacity: 1;
  transform: translateX(-50%);
  animation: sun-rise 2.6s cubic-bezier(0.25, 0.8, 0.3, 1) both;
}

/* The sun or moon descends from the sky and settles behind the gate */
@keyframes sun-rise {
  from { opacity: 0; transform: translate(-50%, -140%); }
  30% { opacity: 1; }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes door-breathe {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes gate-flash {
  0%, 35% { opacity: 0; }
  75% { opacity: 1; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  .entrance__content {
    top: 19svh;
  }

  .entrance h2 {
    font-size: 2.6rem;
  }

  .entrance__content > p:last-of-type {
    margin-top: 14px;
    font-size: 1.12rem;
  }

  .entrance {
    --u: min(calc(98vw / 1000), calc(56svh / 600));
    --ground: 12svh;
  }

}


.scroll-progress {
  position: fixed;
  z-index: 610;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.site-header {
  position: fixed;
  z-index: 600;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  transition: min-height 0.3s, background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  min-height: 68px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 14, 23, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.brand img {
  width: 86px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  color: var(--white);
  font-family: var(--brand-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.brand small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 0.3s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(239, 189, 105, 0.6);
  color: var(--white);
  font-size: 0.88rem;
  transition: background-color 0.2s, color 0.2s;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.25s;
}

.chapter-rail {
  position: fixed;
  z-index: 500;
  top: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.chapter-rail a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
  transition: color 0.2s;
}

.chapter-rail span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.chapter-rail b {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.3s, opacity 0.3s;
}

.chapter-rail a:hover,
.chapter-rail a.is-active {
  color: var(--gold);
}

.chapter-rail a:hover b,
.chapter-rail a.is-active b {
  max-width: 80px;
  opacity: 1;
}

.chapter-rail a.is-active span {
  border-color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 84px);
  overflow: hidden;
  place-items: center;
  background: var(--night);
  isolation: isolate;
}

.hero__scene,
.hero__image,
.hero__sky-glow,
.hero__grain {
  position: absolute;
  inset: 0;
}

.hero__scene {
  z-index: -2;
  overflow: hidden;
}

.hero__image {
  inset: -4%;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 15, 0.15) 0%, rgba(3, 12, 23, 0.05) 45%, rgba(3, 9, 15, 0.68) 100%),
    url("assets/images/hero-meroe-moon.png");
  background-position: center center;
  background-size: cover;
  transform: scale(1.08) translate3d(var(--hero-x, 0), var(--hero-y, 0), 0);
  transition: transform 0.4s ease-out;
  animation: hero-arrive 2s ease-out both;
}

.hero__sky-glow {
  background: linear-gradient(90deg, rgba(10, 86, 112, 0.18), transparent 42%, rgba(160, 70, 24, 0.06));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__grain,
.timeline__texture {
  opacity: 0.08;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes hero-arrive {
  from { opacity: 0.4; transform: scale(1.18); }
  to { opacity: 1; transform: scale(1.08); }
}

.hero__content {
  width: min(1120px, calc(100% - 150px));
  padding-top: 42px;
}

.hero__eyebrow {
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.hero__eyebrow i {
  width: 66px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--brand-display);
  font-size: 7.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 18px;
  text-shadow: 0 12px 70px rgba(0, 0, 0, 0.45);
}

.hero__statement {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35em;
  align-items: baseline;
  margin-top: -2px;
  padding-right: 210px;
}

.hero__statement p,
.hero__statement strong {
  margin: 0;
  font-family: var(--subheading);
  font-size: 1.87rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero__statement strong {
  color: var(--gold);
  font-size: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
  padding-right: 210px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.button--gold {
  background: var(--gold);
  color: var(--ink);
  transition: background-color 0.2s, transform 0.2s;
}

.button--gold:hover,
.button--gold:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.text-action {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  cursor: pointer;
}

.text-action span {
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  transition: transform 0.2s;
}

.text-action:hover span {
  transform: translateY(4px);
}

.hero__glyphs {
  position: absolute;
  top: 50%;
  left: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(239, 189, 105, 0.42);
  transform: translateY(-50%);
}

.hero__coordinates {
  position: absolute;
  bottom: 28px;
  left: 42px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.42);
  direction: ltr;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero__coordinates i {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  right: 50%;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  transform: translateX(50%);
}

.scroll-cue i {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
}

.scroll-cue i::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 3px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 10px); }
}

.discovery-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 12px 7vw;
  background: var(--gold);
  color: var(--ink);
}

.discovery-strip p {
  margin: 0;
  font-size: 0.82rem;
}

.discovery-strip span {
  margin-left: 7px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
}

.discovery-strip i {
  width: 1px;
  height: 24px;
  margin: 0 40px;
  background: rgba(7, 17, 27, 0.3);
}

.passage {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  background: #0a0e12;
}

.passage__image,
.passage__shade {
  position: absolute;
  inset: 0;
}

.passage__image {
  background: url("assets/images/kush-temple-portal.png") center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.passage.is-visible .passage__image {
  transform: scale(1);
}

.passage__shade {
  background: linear-gradient(90deg, rgba(4, 9, 13, 0.12) 0%, rgba(4, 9, 13, 0.16) 48%, rgba(4, 9, 13, 0.86) 100%);
}

.passage__copy {
  position: relative;
  z-index: 2;
  width: min(540px, 80vw);
  margin-right: 9vw;
}

.section-kicker {
  margin: 0 0 16px;
  font-family: var(--subheading);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-kicker--dark {
  color: var(--clay);
}

.passage h2,
.section-heading h2,
.manifesto h2,
.keepsakes h2,
.booking h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 4.29rem;
  font-weight: 700;
  line-height: 1.3;
}

.passage__copy > p:not(.section-kicker) {
  max-width: 440px;
  margin: 26px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  line-height: 2;
}

.line-link,
.line-button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(239, 189, 105, 0.6);
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
}

.line-link span,
.line-button span {
  color: var(--gold);
  transition: transform 0.2s;
}

.line-link:hover span,
.line-button:hover span {
  transform: translateX(-5px);
}

.passage__inscription {
  position: absolute;
  z-index: 2;
  bottom: 8vh;
  left: 5vw;
  display: flex;
  flex-direction: column;
  color: rgba(239, 189, 105, 0.42);
  font-family: var(--display);
  font-size: 1.72rem;
  line-height: 1;
}

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: 0.35fr 1.2fr 0.8fr;
  gap: 7vw;
  align-items: start;
  padding: 130px 8vw;
  overflow: hidden;
  background: var(--stone-light);
  color: var(--ink);
}

.manifesto__number {
  color: rgba(157, 78, 50, 0.2);
  font-family: var(--display);
  font-size: 7.02rem;
  line-height: 1.3;
}

.manifesto h2 {
  font-size: 3.59rem;
}

.manifesto h2 em,
.section-heading h2 em,
.keepsakes h2 em {
  color: var(--clay);
  font-style: normal;
  font-weight: 400;
}

.manifesto__copy > p:last-child {
  max-width: 670px;
  margin-top: 30px;
  color: rgba(7, 17, 27, 0.68);
  font-size: 1.05rem;
}

.manifesto__facts {
  border-top: 1px solid var(--line-dark);
}

.manifesto__facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line-dark);
}

.manifesto__facts b {
  color: var(--clay);
  font-family: var(--display);
  font-size: 1.79rem;
}

.manifesto__facts span {
  font-size: 0.84rem;
  line-height: 1.7;
}

.paths {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
}

.section-heading {
  max-width: 760px;
  padding: 110px 8vw 60px;
}

.section-heading--overlay {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  padding-top: 85px;
  pointer-events: none;
}

.section-heading h2 {
  font-size: 3.74rem;
}

.paths__split {
  display: flex;
  min-height: 100svh;
}

.path-scene {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  transition: flex-basis 0.75s cubic-bezier(0.76, 0, 0.24, 1), filter 0.4s;
}

.path-scene.is-active {
  flex-basis: 64%;
}

.path-scene:not(.is-active) {
  filter: saturate(0.62) brightness(0.68);
}

.path-scene__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  transition: transform 0.8s;
}

.path-scene:hover .path-scene__media,
.path-scene.is-active .path-scene__media {
  transform: scale(1);
}

.path-scene--story .path-scene__media {
  background-image: linear-gradient(180deg, rgba(4, 12, 20, 0.15), rgba(3, 9, 16, 0.86)), url("assets/images/storytelling-camp.png");
}

.path-scene--challenge .path-scene__media {
  background-image: linear-gradient(180deg, rgba(20, 10, 5, 0.08), rgba(4, 8, 12, 0.86)), url("assets/images/challenge-ridge.png");
}

.path-scene__hit {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.path-scene__content {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 9vh;
  left: 8%;
  pointer-events: none;
}

.path-scene__index {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

.path-scene__content > p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.path-scene h3 {
  margin: 0;
  font-family: var(--subheading);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  line-height: 1.3;
}

.path-scene__details {
  display: flex;
  gap: 10px;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.45s, margin 0.45s, opacity 0.45s;
}

.path-scene.is-active .path-scene__details {
  height: 35px;
  margin-top: 24px;
  opacity: 1;
}

.path-scene__details span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.74rem;
  white-space: nowrap;
}

.path-select {
  margin-top: 22px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--white);
  font-size: 0.86rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.path-scene.is-active .path-select {
  opacity: 1;
  transform: translateY(0);
}

.path-select span {
  margin-right: 12px;
  color: var(--gold);
}

.timeline {
  position: relative;
  min-height: 100svh;
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--brand-teal-deep);
}

.timeline__texture {
  position: absolute;
  inset: 0;
}

.timeline .section-heading {
  position: relative;
  z-index: 1;
}

.timeline__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
  width: min(1180px, 84vw);
  margin: 0 auto;
}

.timeline__visual {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  border: 1px solid rgba(239, 189, 105, 0.26);
  background-color: rgba(0, 0, 0, 0.12);
  background-image:
    linear-gradient(rgba(239, 189, 105, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 189, 105, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.timeline__visual::before,
.timeline__visual::after {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--gold);
  content: "";
}

.timeline__visual::before {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.timeline__visual::after {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.timeline__date {
  font-family: var(--display);
  font-size: 4.45rem;
  line-height: 1;
}

.timeline__symbol {
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(239, 189, 105, 0.35);
  font-size: 2rem;
}

.timeline__story > p:first-child {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.84rem;
}

.timeline__story h3 {
  margin: 0;
  font-family: var(--subheading);
  font-weight: 700;
  font-size: 2.65rem;
  line-height: 1.15;
}

.timeline__story > p:last-child {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1.02rem;
}

.timeline__controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, 84vw);
  margin: 72px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline__controls button {
  position: relative;
  padding: 22px 12px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.44);
  text-align: right;
  cursor: pointer;
  transition: color 0.2s;
}

.timeline__controls button::before {
  position: absolute;
  top: -5px;
  right: 10px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--brand-teal-deep);
  content: "";
}

.timeline__controls button.is-active,
.timeline__controls button:hover {
  color: var(--white);
}

.timeline__controls button.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(239, 189, 105, 0.12);
}

.timeline__controls span,
.timeline__controls b {
  display: block;
}

.timeline__controls span {
  font-family: var(--display);
  font-size: 1.35rem;
}

.timeline__controls b {
  font-size: 0.78rem;
  font-weight: 400;
}

.atlas {
  min-height: 100svh;
  padding-bottom: 120px;
  background: var(--papyrus);
  color: var(--ink);
}

.section-heading--dark {
  color: var(--ink);
}

.atlas__experience {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 6vw;
  width: min(1240px, 86vw);
  margin: 0 auto;
}

.river-map {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  border-top: 1px solid rgba(7, 17, 27, 0.2);
  border-bottom: 1px solid rgba(7, 17, 27, 0.2);
}

.river-map__flow {
  position: absolute;
  top: 30px;
  bottom: 30px;
  right: 46%;
  width: 9px;
  border-right: 1px solid rgba(29, 108, 107, 0.3);
  border-left: 1px solid rgba(29, 108, 107, 0.3);
  background: var(--river);
  clip-path: polygon(30% 0, 100% 16%, 42% 35%, 85% 55%, 15% 72%, 75% 100%, 35% 100%, 0 75%, 52% 55%, 5% 36%, 60% 17%, 0 0);
}

.river-point {
  position: absolute;
  z-index: 2;
  right: calc(46% - 9px);
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(7, 17, 27, 0.55);
  cursor: pointer;
  transform: translateX(100%);
}

.river-point span {
  min-width: 100px;
  font-size: 0.82rem;
  text-align: left;
}

.river-point i {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid var(--river);
  border-radius: 50%;
  background: var(--papyrus);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.river-point:hover,
.river-point.is-active {
  color: var(--ink);
}

.river-point.is-active i {
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(29, 108, 107, 0.14);
  transform: scale(1.1);
}

.river-point--1 { top: 12%; }
.river-point--2 { top: 34%; right: calc(43% - 9px); }
.river-point--3 { top: 59%; right: calc(48% - 9px); }
.river-point--4 { top: 81%; right: calc(44% - 9px); }

.river-map__label {
  position: absolute;
  left: 0;
  color: rgba(7, 17, 27, 0.42);
  font-size: 0.72rem;
}

.river-map__label--north { top: 14px; }
.river-map__label--south { bottom: 12px; }

.place-view {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.place-view__image,
.place-view__shade {
  position: absolute;
  inset: 0;
}

.place-view__image {
  background-image: url("assets/images/hero-meroe-moon.png");
  background-position: center;
  background-size: cover;
  transition: opacity 0.3s, transform 0.7s;
}

.place-view.is-changing .place-view__image {
  opacity: 0;
  transform: scale(1.04);
}

.place-view__shade {
  background: linear-gradient(180deg, rgba(3, 11, 18, 0.1), rgba(3, 10, 17, 0.82));
}

.place-view__topline {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 30px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
}

.place-view__copy {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 7%;
  left: 7%;
}

.place-view__copy > p:first-child {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.place-view h3 {
  margin: 4px 0 10px;
  font-family: var(--subheading);
  font-weight: 700;
  font-size: 3.43rem;
  line-height: 1.3;
}

.place-view__copy > p:nth-of-type(2) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

.night-story {
  position: relative;
  display: grid;
  min-height: 88svh;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.night-story__media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(4, 12, 20, 0.28), rgba(4, 9, 16, 0.66)), url("assets/images/storytelling-camp.png");
  background-position: center;
  background-size: cover;
}

.night-story__content {
  position: relative;
  z-index: 1;
  width: min(880px, 82vw);
  text-align: center;
}

.night-story blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 3.28rem;
  line-height: 1.35;
}

.night-story__content > p:last-child {
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.keepsakes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding: 130px 8vw;
  background: #d9d2c2;
  color: var(--ink);
}

.keepsakes h2 {
  font-size: 3.43rem;
}

.keepsakes__list {
  border-top: 1px solid var(--line-dark);
}

.keepsakes__list article {
  display: grid;
  grid-template-columns: 44px 130px 1fr;
  gap: 22px;
  align-items: baseline;
  min-height: 120px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}

.keepsakes__list article > span {
  color: var(--clay);
  font-size: 0.78rem;
}

.keepsakes__list h3 {
  margin: 0;
  font-family: var(--subheading);
  font-weight: 700;
  font-size: 1.72rem;
}

.keepsakes__list p {
  margin: 0;
  color: rgba(7, 17, 27, 0.66);
  font-size: 0.88rem;
}

.booking {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  min-height: 100svh;
  padding: 130px 9vw;
  overflow: hidden;
  align-items: start;
  background: #07111b;
}

.booking__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, #07111b 0 35%, transparent),
    url("assets/images/kush-temple-portal.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.55);
}

.booking__intro,
.journey-form {
  position: relative;
  z-index: 1;
}

.booking h2 {
  font-size: 3.7rem;
}

.booking__intro > p:last-child {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

.journey-form {
  padding: 0 36px 36px;
  border: 1px solid rgba(239, 189, 105, 0.25);
  background: rgba(5, 14, 23, 0.86);
  backdrop-filter: blur(16px);
}

.form-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.form-step__number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(239, 189, 105, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.78rem;
}

.form-step fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step legend,
.form-step label > span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.segmented-control label {
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-step .segmented-control span {
  display: grid;
  min-height: 48px;
  margin: 0 !important;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62) !important;
  transition: background-color 0.2s, color 0.2s;
}

.segmented-control label:last-child span {
  border-left: 0;
}

.segmented-control input:checked + span {
  background: var(--gold);
  color: var(--ink) !important;
}

.segmented-control input:focus-visible + span {
  outline: 2px solid var(--white);
  outline-offset: -3px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-row select,
.wide-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
}

.field-row select {
  height: 46px;
  color-scheme: dark;
}

.wide-field textarea {
  resize: vertical;
}

.field-row select:focus,
.wide-field textarea:focus {
  border-bottom-color: var(--gold);
}

.wide-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.submit-journey {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  margin-top: 28px;
  padding: 0 24px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-journey:hover,
.submit-journey:focus-visible {
  background: var(--white);
}

.submit-journey i {
  font-style: normal;
  font-size: 1.2rem;
}

.form-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px 6vw;
  padding: 80px 8vw 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #03090e;
}

.site-footer__brand img {
  width: 132px;
  height: 132px;
  border-radius: var(--radius);
  object-fit: cover;
}

.site-footer__brand p {
  max-width: 340px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__col h2 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-footer__col a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-footer__col a:hover {
  color: var(--gold);
}

.site-footer__bottom {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a:hover {
  color: var(--gold);
}

/* Next trip ticket */
.next-trip {
  padding: 130px 8vw;
  background: var(--papyrus);
  color: var(--ink);
}

.next-trip__heading {
  max-width: 1080px;
  margin: 0 auto 56px;
}

.next-trip h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 3.59rem;
  font-weight: 700;
  line-height: 1.3;
}

.next-trip h2 em {
  color: var(--clay);
  font-style: normal;
  font-weight: 400;
}

/* Ticket with a call to action beside it */
.next-trip__body {
  max-width: 1080px;
  margin: 0 auto;
  /* Shadow on the wrapper follows the ticket's cut-outs */
  filter: drop-shadow(0 24px 30px rgba(6, 19, 25, 0.28));
}


.ticket {
  --notch: 22px;
  --stub: 250px;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

.ticket__main {
  position: relative;
  padding: 40px 44px;
  background:
    linear-gradient(90deg, rgba(6, 19, 25, 0.96) 45%, rgba(6, 19, 25, 0.7)),
    url("assets/images/hero-meroe-moon.png") center / cover;
}

.ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand panel on the side of the ticket: large emblem, name below */
.ticket__main {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 34px;
  align-items: center;
}

.ticket__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 34px;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
  text-align: center;
}

.ticket__brand img {
  width: 136px;
  height: auto;
  object-fit: contain;
}

.ticket__brand strong {
  margin-top: 14px;
  font-family: var(--brand-display);
  font-size: 1.9rem;
  line-height: 1.2;
}

.ticket__brand small {
  color: var(--gold);
  font-size: 0.8rem;
}

.ticket__top .ticket__line {
  margin: 0;
}

.ticket__status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(252, 185, 63, 0.5);
  border-radius: 99px;
  color: var(--gold);
  font-size: 0.8rem;
}

.ticket__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: pulse 1.8s ease-in-out infinite;
}

.ticket[data-status="open"] .ticket__status { color: #7ee0a8; border-color: rgba(126, 224, 168, 0.5); }
.ticket[data-status="full"] .ticket__status { color: #ff9a8a; border-color: rgba(255, 154, 138, 0.5); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.ticket__line {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.86rem;
}

.ticket__main h3 {
  margin: 14px 0 0;
  font-family: var(--subheading);
  font-weight: 700;
  font-size: 2.65rem;
  line-height: 1.15;
}

.ticket__stay {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 0;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(252, 185, 63, 0.14);
  color: var(--gold);
  font-family: var(--subheading);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Small tent mark */
.ticket__stay::before {
  width: 13px;
  height: 11px;
  background: currentColor;
  content: "";
  clip-path: polygon(50% 0, 100% 100%, 62% 100%, 50% 62%, 38% 100%, 0 100%);
}

.ticket__meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 18px 32px;
  margin: 34px 0 0;
}

.ticket__meta dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

.ticket__meta dd {
  margin: 2px 0 0;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
}

.ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  border-right: 2px dashed rgba(255, 255, 255, 0.22);
  background: var(--gold);
  color: var(--ink);
  text-align: center;
}

.ticket__stub p {
  margin: 0;
  font-weight: 600;
  font-size: 0.84rem;
}

/* Price: the ",000" is set smaller than the main figure */
.ticket__price {
  display: grid;
  justify-items: center;
  line-height: 1.1;
}

.ticket__price del {
  color: rgba(6, 19, 25, 0.55);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration-thickness: 2px;
}

.ticket__price strong {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1.15;
}

.ticket__price small,
.bank-card__amount small.thousands {
  font-size: 0.5em;
  font-weight: 700;
}

.ticket__price del small {
  font-size: 0.75em;
}

.ticket__price span {
  font-size: 0.9rem;
  font-weight: 700;
}

.ticket__seats {
  margin-top: 14px !important;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(6, 19, 25, 0.1);
}

.ticket__seats b {
  font-size: 1rem;
}

.ticket__cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.ticket__cta:hover {
  background: var(--brand-teal);
  transform: translateY(-2px);
}

/* Mobile booking button */
.mobile-cta {
  display: none;
}

.toast {
  position: fixed;
  z-index: 800;
  right: 50%;
  bottom: 26px;
  min-width: 260px;
  padding: 14px 20px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1100px) {
  .site-header {
    padding: 0 26px;
  }

  .chapter-rail {
    display: none;
  }

  .hero__content {
    width: min(860px, calc(100% - 90px));
  }

  .hero h1 {
    font-size: 6.24rem;
  }

  .hero__statement,
  .hero__actions {
    padding-right: 130px;
  }

  .manifesto {
    grid-template-columns: 1fr 0.8fr;
  }

  .manifesto__number {
    display: none;
  }

  .path-scene h3 {
    font-size: 2.2rem;
  }

  .booking {
    gap: 5vw;
    padding-right: 6vw;
    padding-left: 6vw;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .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);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(340px, 86vw);
    height: 100svh;
    padding: 84px 42px;
    background: rgba(4, 12, 20, 0.98);
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--display);
    font-size: 1.7rem;
  }

  .hero__content {
    width: calc(100% - 56px);
  }

  .hero h1 {
    font-size: 4.68rem;
  }

  .hero__statement,
  .hero__actions {
    padding-right: 70px;
  }

  .hero__statement p,
  .hero__statement strong {
    font-size: 1.72rem;
  }

  .hero__glyphs {
    display: none;
  }

  .manifesto,
  .keepsakes,
  .booking {
    grid-template-columns: 1fr;
  }

  .paths__split {
    flex-direction: column;
  }

  .path-scene,
  .path-scene.is-active {
    flex-basis: 50svh;
    min-height: 50svh;
  }

  .section-heading--overlay {
    position: relative;
    background: var(--ink);
  }

  .timeline__stage {
    grid-template-columns: 1fr;
  }

  .timeline__visual {
    min-height: 240px;
  }

  .atlas__experience {
    grid-template-columns: 0.42fr 1fr;
    gap: 3vw;
    width: 92vw;
  }

  .river-point span {
    min-width: 74px;
  }

  .night-story__media {
    background-attachment: scroll;
  }

}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand img {
    width: 66px;
    height: 44px;
  }

  .brand strong {
    font-size: 1.3rem;
  }

  .hero {
    min-height: calc(100svh - 100px);
  }

  .hero__image {
    inset: -3%;
    background-position: 38% center;
  }

  .hero__content {
    width: calc(100% - 36px);
    padding-top: 34px;
  }

  .hero__eyebrow {
    font-size: 0.8rem;
  }

  .hero h1 {
    margin-top: 8px;
    font-size: 3.59rem;
  }

  .hero__statement,
  .hero__actions {
    padding-right: 0;
  }

  .hero__statement {
    margin-top: 10px;
  }

  .hero__statement p,
  .hero__statement strong {
    font-size: 1.56rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }

  .button {
    min-height: 48px;
  }

  .hero__coordinates,
  .scroll-cue span {
    display: none;
  }

  .scroll-cue {
    right: 26px;
    transform: none;
  }

  .discovery-strip {
    justify-content: flex-start;
    min-height: 68px;
    padding: 10px 18px;
    overflow-x: auto;
  }

  .discovery-strip p {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .discovery-strip i {
    flex: 0 0 1px;
    margin: 0 20px;
  }

  .passage {
    min-height: 92svh;
    align-items: end;
  }

  .passage__image {
    background-position: center;
  }

  .passage__shade {
    background: linear-gradient(0deg, rgba(4, 9, 13, 0.92) 0%, rgba(4, 9, 13, 0.12) 75%);
  }

  .passage__copy {
    width: auto;
    margin: 0 22px 72px;
  }

  .passage h2,
  .section-heading h2,
  .manifesto h2,
  .keepsakes h2,
  .booking h2 {
    font-size: 2.3rem;
  }

  .passage__copy > p:not(.section-kicker) {
    font-size: 0.95rem;
  }

  .manifesto {
    gap: 54px;
    padding: 84px 22px;
  }

  .manifesto__facts div {
    grid-template-columns: 62px 1fr;
  }

  .section-heading {
    padding: 84px 22px 44px;
  }

  .path-scene,
  .path-scene.is-active {
    flex-basis: auto;
    min-height: 68svh;
  }

  .path-scene h3 {
    font-size: 1.75rem;
  }

  .path-scene__details {
    flex-wrap: wrap;
  }

  .path-scene.is-active .path-scene__details {
    height: auto;
    min-height: 35px;
  }

  .timeline {
    padding-bottom: 72px;
  }

  .timeline__stage,
  .timeline__controls {
    width: calc(100% - 44px);
  }

  .timeline__date {
    font-size: 3.12rem;
  }

  .timeline__story h3 {
    font-size: 2.18rem;
  }

  .timeline__controls {
    margin-top: 48px;
    overflow-x: auto;
  }

  .timeline__controls button {
    min-width: 120px;
  }

  .atlas {
    padding-bottom: 84px;
  }

  .atlas__experience {
    display: block;
    width: calc(100% - 32px);
  }

  .river-map {
    min-height: auto;
    height: 150px;
    margin-bottom: 16px;
    overflow-x: auto;
    border-bottom: 0;
  }

  .river-map__flow {
    top: 70px;
    right: 30px;
    bottom: auto;
    left: 30px;
    width: auto;
    height: 5px;
    border: 0;
    clip-path: none;
  }

  .river-point,
  .river-point--2,
  .river-point--3,
  .river-point--4 {
    top: 46px;
    right: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
    padding: 0;
    transform: none;
  }

  .river-point--1 { right: 18px; }
  .river-point--2 { right: 30%; }
  .river-point--3 { right: 56%; }
  .river-point--4 { right: auto; left: 18px; }

  .river-point span {
    min-width: 70px;
    font-size: 0.72rem;
    text-align: center;
  }

  .river-map__label {
    display: none;
  }

  .place-view {
    min-height: 590px;
  }

  .place-view h3 {
    font-size: 2.73rem;
  }

  .night-story {
    min-height: 75svh;
  }

  .night-story__media {
    background-position: 54% center;
  }

  .night-story blockquote {
    font-size: 2.11rem;
  }

  .keepsakes {
    gap: 52px;
    padding: 84px 22px;
  }

  .keepsakes__list article {
    grid-template-columns: 36px 85px 1fr;
    gap: 10px;
  }

  .keepsakes__list h3 {
    font-size: 1.4rem;
  }

  .keepsakes__list p {
    font-size: 0.78rem;
  }

  .booking {
    gap: 50px;
    padding: 84px 18px;
  }

  .journey-form {
    padding: 0 18px 24px;
  }

  .form-step {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .segmented-control span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

}

/* Responsive: new sections and mobile polish */
@media (max-width: 1100px) {
  .ticket__meta {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .ticket {
    grid-template-columns: 1fr;
    -webkit-mask: none;
    mask: none;
  }

  .ticket__stub {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 18px;
    align-items: center;
    padding: 24px;
    border-top: 2px dashed rgba(6, 19, 25, 0.3);
    border-right: 0;
    text-align: right;
  }

  .ticket__stub .ticket__price-label { grid-column: 1; grid-row: 1; }

  .ticket__price {
    grid-column: 1;
    grid-row: 2 / 4;
    justify-items: start;
  }

  .ticket__price strong {
    font-size: 2.6rem;
  }

  .ticket__stub .ticket__seats {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin: 0 !important;
  }

  /* Ticket notches where the stub meets the main part (see-through, so no dark backing) */
  .ticket {
    background: transparent;
  }
  /* Ticket notches where the stub meets the main part */
  .ticket__main {
    -webkit-mask: radial-gradient(circle 16px at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 16px at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 16px at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 16px at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat;
  }

  .ticket__stub {
    -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 16px at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 16px at 0 0, transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 16px at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
  }

  .ticket__cta {
    grid-column: 1 / -1;
  }

  .mobile-cta {
    position: fixed;
    z-index: 590;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 22px;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    transition: opacity 0.3s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-cta i {
    font-style: normal;
    font-size: 1.2rem;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 600px) {
  .next-trip {
    padding: 84px 20px;
  }

  .next-trip h2 {
    font-size: 2.3rem;
  }

  .next-trip__heading {
    margin-bottom: 36px;
  }

  .ticket__main {
    padding: 28px 22px;
  }

  .ticket__main h3 {
    font-size: 1.95rem;
  }

  .ticket__meta {
    gap: 16px 28px;
  }

  .timeline__controls {
    padding-top: 6px;
    border-top: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) 0 6px / 100% 1px no-repeat;
  }

  .timeline__controls button::before {
    top: 1px;
  }

  .keepsakes__list article {
    grid-template-columns: 30px 1fr;
    gap: 4px 12px;
  }

  .keepsakes__list article p {
    grid-column: 2;
  }

  .keepsakes__list p {
    font-size: 0.88rem;
  }

  .site-footer {
    gap: 36px 24px;
    padding: 64px 20px 72px;
  }

  .site-footer__brand img {
    width: 104px;
    height: 104px;
  }
}

/* ===== Header actions and theme toggles ===== */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-toggle__moon path {
  fill: currentColor;
  stroke: none;
}

/* Show the icon of the mode you would switch to */
html:not([data-theme="light"]) .theme-toggle__moon,
html[data-theme="light"] .theme-toggle__sun {
  display: none;
}

.header-theme {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.header-theme:hover {
  border-color: var(--gold);
}

/* Smooth switch between themes */
body,
.site-header,
.manifesto,
.timeline,
.atlas,
.next-trip,
.keepsakes,
.booking,
.journey-form,
.site-footer {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.timeline__visual {
  background-color: var(--era-color, rgba(0, 0, 0, 0.12));
  transition: background-color 0.5s ease;
}

/* ===== Dark mode: night. Light sections turn dark. ===== */
html[data-theme="dark"] .manifesto,
html[data-theme="dark"] .next-trip {
  background: #0a1b22;
  color: var(--white);
}

html[data-theme="dark"] .atlas {
  background: #071820;
  color: var(--white);
}

html[data-theme="dark"] .keepsakes {
  background: #0d2129;
  color: var(--white);
}

html[data-theme="dark"] .section-heading--dark {
  color: var(--white);
}

html[data-theme="dark"] .section-kicker--dark {
  color: var(--gold);
}

html[data-theme="dark"] .manifesto h2 em,
html[data-theme="dark"] .section-heading--dark h2 em,
html[data-theme="dark"] .keepsakes h2 em,
html[data-theme="dark"] .next-trip h2 em {
  color: #e8875c;
}

html[data-theme="dark"] .manifesto__number {
  color: rgba(252, 185, 63, 0.14);
}

html[data-theme="dark"] .manifesto__copy > p:last-child,
html[data-theme="dark"] .keepsakes__list p {
  color: rgba(255, 253, 248, 0.68);
}

html[data-theme="dark"] .manifesto__facts,
html[data-theme="dark"] .manifesto__facts div,
html[data-theme="dark"] .keepsakes__list,
html[data-theme="dark"] .keepsakes__list article {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .manifesto__facts b,
html[data-theme="dark"] .keepsakes__list article > span {
  color: var(--gold);
}

html[data-theme="dark"] .river-map {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .river-point {
  color: rgba(255, 253, 248, 0.55);
}

html[data-theme="dark"] .river-point:hover,
html[data-theme="dark"] .river-point.is-active {
  color: var(--white);
}

html[data-theme="dark"] .river-point i {
  border-color: #3fa3a3;
  background: #071820;
}

html[data-theme="dark"] .river-point.is-active i {
  background: var(--gold);
}

html[data-theme="dark"] .river-map__flow {
  background: #1f8a8a;
}

html[data-theme="dark"] .river-map__label {
  color: rgba(255, 253, 248, 0.42);
}

html[data-theme="dark"] .next-trip__body {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}

/* ===== Light mode: day. Dark sections turn papyrus and sand. ===== */
html[data-theme="light"] body {
  background: var(--stone-light);
}

html[data-theme="light"] .site-header.is-scrolled {
  border-bottom-color: rgba(6, 19, 25, 0.1);
  background: rgba(246, 242, 234, 0.92);
}

html[data-theme="light"] .site-header.is-scrolled .brand strong,
html[data-theme="light"] .site-header.is-scrolled .main-nav a,
html[data-theme="light"] .site-header.is-scrolled .header-cta {
  color: var(--ink);
}

html[data-theme="light"] .site-header.is-scrolled .brand small {
  color: var(--clay);
}

html[data-theme="light"] .site-header.is-scrolled .header-cta {
  border-color: rgba(6, 19, 25, 0.35);
}

html[data-theme="light"] .site-header.is-scrolled .header-cta:hover {
  background: var(--ink);
  color: var(--white);
}

html[data-theme="light"] .site-header.is-scrolled .header-theme,
html[data-theme="light"] .site-header.is-scrolled .menu-toggle {
  border-color: rgba(6, 19, 25, 0.3);
  color: var(--clay);
}

html[data-theme="light"] .site-header.is-scrolled .menu-toggle span {
  background: var(--ink);
}

html[data-theme="light"] .chapter-rail span {
  background: rgba(246, 242, 234, 0.85);
  backdrop-filter: blur(6px);
}

html[data-theme="light"] .chapter-rail b {
  padding: 0 8px;
  border-radius: 99px;
  background: rgba(246, 242, 234, 0.85);
  line-height: 1.8;
}

html[data-theme="light"] .chapter-rail a {
  color: rgba(6, 19, 25, 0.5);
}

html[data-theme="light"] .chapter-rail span {
  border-color: rgba(6, 19, 25, 0.25);
}

html[data-theme="light"] .chapter-rail a:hover,
html[data-theme="light"] .chapter-rail a.is-active {
  color: var(--clay);
}

html[data-theme="light"] .chapter-rail a.is-active span {
  border-color: var(--clay);
}

/* Timeline */
html[data-theme="light"] .timeline {
  background: #efe4cc;
  color: var(--ink);
}

html[data-theme="light"] .timeline__texture {
  opacity: 0.05;
}

html[data-theme="light"] .timeline .section-kicker,
html[data-theme="light"] .timeline__story > p:first-child {
  color: var(--clay);
}

html[data-theme="light"] .timeline .section-heading h2 em {
  color: var(--clay);
}

html[data-theme="light"] .timeline__visual {
  border-color: rgba(165, 81, 47, 0.3);
  background-color: color-mix(in srgb, var(--era-color, #0b3a44) 14%, #f8f0de);
  background-image:
    linear-gradient(rgba(165, 81, 47, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 81, 47, 0.08) 1px, transparent 1px);
}

html[data-theme="light"] .timeline__visual::before,
html[data-theme="light"] .timeline__visual::after {
  border-color: var(--clay);
}

html[data-theme="light"] .timeline__symbol {
  color: rgba(165, 81, 47, 0.45);
}

html[data-theme="light"] .timeline__story > p:last-child {
  color: rgba(6, 19, 25, 0.68);
}

html[data-theme="light"] .timeline__controls {
  border-top-color: rgba(6, 19, 25, 0.2);
}

html[data-theme="light"] .timeline__controls button {
  color: rgba(6, 19, 25, 0.45);
}

html[data-theme="light"] .timeline__controls button.is-active,
html[data-theme="light"] .timeline__controls button:hover {
  color: var(--ink);
}

html[data-theme="light"] .timeline__controls button::before {
  border-color: var(--clay);
  background: #efe4cc;
}

html[data-theme="light"] .timeline__controls button.is-active::before {
  background: var(--clay);
  box-shadow: 0 0 0 7px rgba(165, 81, 47, 0.14);
}

/* Booking */
html[data-theme="light"] .booking {
  background: var(--papyrus);
  color: var(--ink);
}

html[data-theme="light"] .booking__backdrop {
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, var(--papyrus) 0 35%, transparent),
    url("assets/images/kush-temple-portal.png");
}

html[data-theme="light"] .booking .section-kicker {
  color: var(--clay);
}

html[data-theme="light"] .booking__intro > p:last-child {
  color: rgba(6, 19, 25, 0.68);
}

html[data-theme="light"] .journey-form {
  border-color: rgba(165, 81, 47, 0.22);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 30px 60px -40px rgba(60, 30, 5, 0.45);
}

html[data-theme="light"] .form-step {
  border-bottom-color: rgba(6, 19, 25, 0.1);
}

html[data-theme="light"] .form-step__number {
  border-color: rgba(165, 81, 47, 0.5);
  color: var(--clay);
}

html[data-theme="light"] .form-step legend,
html[data-theme="light"] .form-step label > span {
  color: rgba(6, 19, 25, 0.68);
}

html[data-theme="light"] .segmented-control {
  border-color: rgba(6, 19, 25, 0.18);
}

html[data-theme="light"] .form-step .segmented-control span {
  border-color: rgba(6, 19, 25, 0.12);
  color: rgba(6, 19, 25, 0.62) !important;
}

html[data-theme="light"] .segmented-control input:checked + span {
  color: var(--ink) !important;
}

html[data-theme="light"] .field-row select,
html[data-theme="light"] .wide-field textarea {
  border-bottom-color: rgba(6, 19, 25, 0.25);
  color: var(--ink);
  color-scheme: light;
}

html[data-theme="light"] .wide-field textarea::placeholder {
  color: rgba(6, 19, 25, 0.35);
}

html[data-theme="light"] .submit-journey:hover,
html[data-theme="light"] .submit-journey:focus-visible {
  background: var(--ink);
  color: var(--white);
}

html[data-theme="light"] .form-note {
  color: rgba(6, 19, 25, 0.5);
}

/* Footer */
html[data-theme="light"] .site-footer {
  border-top-color: rgba(6, 19, 25, 0.08);
  background: #e9dfc9;
  color: var(--ink);
}

html[data-theme="light"] .site-footer__brand p {
  color: rgba(6, 19, 25, 0.65);
}

html[data-theme="light"] .site-footer__col h2 {
  color: var(--clay);
}

html[data-theme="light"] .site-footer__col a {
  color: rgba(6, 19, 25, 0.75);
}

html[data-theme="light"] .site-footer__col a:hover,
html[data-theme="light"] .site-footer__bottom a:hover {
  color: var(--clay);
}

html[data-theme="light"] .site-footer__bottom {
  border-top-color: rgba(6, 19, 25, 0.1);
  color: rgba(6, 19, 25, 0.5);
}

html[data-theme="light"] .toast {
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 820px) {
  .header-cta {
    display: none;
  }

  .header-theme {
    width: 42px;
    height: 42px;
  }

  html[data-theme="light"] .main-nav {
    background: rgba(246, 242, 234, 0.98);
  }

  html[data-theme="light"] .main-nav a {
    border-bottom-color: rgba(6, 19, 25, 0.12);
    color: var(--ink);
  }

  html[data-theme="light"] .section-heading--overlay {
    background: var(--papyrus);
    color: var(--ink);
  }

  html[data-theme="light"] .section-heading--overlay .section-kicker {
    color: var(--clay);
  }
}

/* Each line of a heading balances on its own */
h2 em,
blockquote em {
  display: block;
  text-wrap: balance;
}

/* ===== Light mode hero: the sunlit pyramids of Meroe ===== */
html[data-theme="light"] .hero {
  background: #8cc3e6;
}

html[data-theme="light"] .hero__image {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 55%, rgba(60, 35, 10, 0.35) 100%),
    linear-gradient(270deg, rgba(255, 250, 240, 0.28) 0%, rgba(255, 250, 240, 0) 50%),
    url("assets/images/hero-meroe-sun.png");
}

html[data-theme="light"] .hero__sky-glow,
html[data-theme="light"] .hero__grain {
  opacity: 0;
}

html[data-theme="light"] .hero h1 {
  color: var(--ink);
  text-shadow: 0 6px 40px rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .hero__statement p {
  color: var(--ink);
}

html[data-theme="light"] .hero__statement strong {
  color: var(--clay);
}

html[data-theme="light"] .hero__eyebrow,
html[data-theme="light"] .hero .text-action {
  color: rgba(6, 19, 25, 0.78);
}

html[data-theme="light"] .hero__eyebrow i {
  background: var(--clay);
}

html[data-theme="light"] .hero .text-action span {
  color: var(--clay);
}

html[data-theme="light"] .hero .button--gold:hover {
  background: var(--ink);
  color: var(--white);
}

html[data-theme="light"] .hero__glyphs {
  color: rgba(165, 81, 47, 0.5);
}

/* Header over the bright sky: dark text before scrolling too */
html[data-theme="light"] .site-header .brand strong,
html[data-theme="light"] .site-header .main-nav a,
html[data-theme="light"] .site-header .header-cta {
  color: var(--ink);
}

html[data-theme="light"] .site-header .brand small {
  color: var(--clay);
}

html[data-theme="light"] .site-header .header-cta {
  border-color: rgba(6, 19, 25, 0.35);
}

html[data-theme="light"] .site-header .header-cta:hover {
  background: var(--ink);
  color: var(--white);
}

html[data-theme="light"] .site-header .header-theme,
html[data-theme="light"] .site-header .menu-toggle {
  border-color: rgba(6, 19, 25, 0.3);
  color: var(--clay);
}

html[data-theme="light"] .site-header .menu-toggle span {
  background: var(--ink);
}

/* The upcoming-trip ticket also shows the day scene */
/* Light mode ticket: the night photo, with the pyramids left clear */
html[data-theme="light"] .ticket__main {
  background:
    linear-gradient(270deg, rgba(6, 19, 25, 0.9) 0%, rgba(6, 19, 25, 0.62) 55%, rgba(6, 19, 25, 0.1) 100%),
    url("assets/images/hero-meroe-moon.png") 20% 70% / cover;
}

@media (max-width: 820px) {
  html[data-theme="light"] .ticket__main {
    background:
      linear-gradient(180deg, rgba(6, 19, 25, 0.82) 0%, rgba(6, 19, 25, 0.55) 60%, rgba(6, 19, 25, 0.45) 100%),
      url("assets/images/hero-meroe-moon.png") 25% 80% / cover;
  }
}

/* The ticket shows the opposite scene to the page: night photo by day, day photo by night */
html[data-theme="dark"] .ticket__main {
  /* Day style, like the light hero: clear sky photo, a soft sand wash behind the text */
  background:
    linear-gradient(270deg, rgba(246, 242, 234, 0.9) 0%, rgba(246, 242, 234, 0.78) 62%, rgba(246, 242, 234, 0.25) 100%),
    url("assets/images/hero-meroe-sun.png") 30% 35% / cover;
  color: var(--ink);
}

html[data-theme="dark"] .ticket__main h3,
html[data-theme="dark"] .ticket__meta dd,
html[data-theme="dark"] .ticket__brand strong {
  color: var(--ink);
}

html[data-theme="dark"] .ticket__meta dt {
  color: rgba(6, 19, 25, 0.72);
  font-weight: 600;
}

html[data-theme="dark"] .ticket__meta dd {
  font-weight: 700;
}

/* Phones: text runs over the whole photo, so the wash covers it evenly */
@media (max-width: 820px) {
  html[data-theme="dark"] .ticket__main {
    background:
      linear-gradient(180deg, rgba(246, 242, 234, 0.82) 0%, rgba(246, 242, 234, 0.86) 100%),
      url("assets/images/hero-meroe-sun.png") 30% 60% / cover;
  }
}

html[data-theme="dark"] .ticket__line,
html[data-theme="dark"] .ticket__brand small {
  color: var(--clay);
}

html[data-theme="dark"] .ticket__brand {
  border-color: rgba(6, 19, 25, 0.2);
}

html[data-theme="dark"] .ticket__stay {
  background: rgba(165, 81, 47, 0.14);
  color: var(--clay);
}

html[data-theme="dark"] .ticket[data-status="open"] .ticket__status {
  border-color: rgba(23, 132, 74, 0.55);
  background: rgba(255, 255, 255, 0.55);
  color: #17844a;
}

/* Mobile: the gold strip shows all three facts as columns, without side scrolling */
@media (max-width: 600px) {
  .discovery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-content: center;
    align-items: start;
    height: 100px;
    min-height: 0;
    padding: 14px 14px;
    overflow: visible;
    text-align: center;
  }

  .discovery-strip p {
    font-size: 0.74rem;
    line-height: 1.4;
    white-space: normal;
  }

  .discovery-strip span {
    display: block;
    margin: 0 0 2px;
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .discovery-strip p {
    font-size: 0.7rem;
  }

  /* Hero text sits higher on phones, clear of the pyramids */
  .hero {
    place-items: start center;
  }

  .hero__content {
    padding-top: calc(var(--header-height) + 13svh);
  }

  /* Hero line stays on one line on phones */
  .hero__statement {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .hero__statement p,
  .hero__statement strong {
    font-size: clamp(1rem, 5.4vw, 1.35rem);
  }

  .discovery-strip i {
    display: none;
  }
}

/* Ticket brand panel on phones: emblem and name in a row on top */
@media (max-width: 820px) {
  .ticket__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ticket__brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 14px;
    align-items: center;
    padding: 0 0 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    border-left: 0;
    text-align: right;
  }

  .ticket__brand img {
    grid-row: 1 / 3;
    width: 96px;
  }

  .ticket__brand strong {
    align-self: end;
    margin: 0;
    font-size: 1.6rem;
  }

  .ticket__brand small {
    align-self: start;
  }
}

/* ===== Registration dialog ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.register {
  --r-bg: #fffdf8;
  --r-text: var(--ink);
  --r-muted: rgba(6, 19, 25, 0.62);
  --r-line: rgba(6, 19, 25, 0.12);
  --r-field: #f6f2ea;
  --r-accent: var(--clay);
  width: min(620px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--r-bg);
  color: var(--r-text);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .register {
  --r-bg: #0b1d25;
  --r-text: var(--white);
  --r-muted: rgba(255, 253, 248, 0.62);
  --r-line: rgba(255, 255, 255, 0.12);
  --r-field: rgba(255, 255, 255, 0.05);
  --r-accent: var(--gold);
  box-shadow: 0 0 0 1px rgba(252, 185, 63, 0.18), 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}

.register::backdrop {
  background: rgba(3, 10, 14, 0.62);
  backdrop-filter: blur(6px);
}

.register[open] {
  animation: register-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes register-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.register__panel {
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.register__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px 18px;
  background:
    linear-gradient(270deg, rgba(6, 19, 25, 0.92), rgba(6, 19, 25, 0.55)),
    url("assets/images/hero-meroe-sun.png") 20% 60% / cover;
  color: var(--white);
}

.register__kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--subheading);
  font-size: 0.82rem;
  font-weight: 700;
}

.register__head h2 {
  margin: 2px 0 4px;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.35;
}

.register__head h2 span {
  color: var(--gold);
}

.register__meta {
  margin: 0;
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.86rem;
}

.register__close {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(6, 19, 25, 0.35);
  color: var(--white);
  cursor: pointer;
}

.register__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.register__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Step indicator */
.register__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 28px;
  list-style: none;
  border-bottom: 1px solid var(--r-line);
}

.register__steps li {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--r-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.register__steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
}

.register__steps li.is-active {
  border-bottom-color: var(--r-accent);
  color: var(--r-text);
}

.register__steps li.is-active span {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.register__steps li.is-done {
  color: var(--r-accent);
}

/* Form body */
.register__form,
.register__done {
  padding: 24px 28px 28px;
}

.register__step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.register__step.is-active {
  display: block;
  animation: step-in 0.3s ease;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field > span em {
  color: var(--r-muted);
  font-style: normal;
  font-weight: 400;
}

.field input:not([type="file"]),
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--r-line);
  border-radius: 8px;
  outline: 0;
  background: var(--r-field);
  color: var(--r-text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input[dir="ltr"] {
  text-align: right;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--r-muted);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252, 185, 63, 0.22);
}

.field__error,
.check__error {
  display: none;
  margin-top: 6px;
  color: #c4412b;
  font-size: 0.8rem;
}

html[data-theme="dark"] .field__error,
html[data-theme="dark"] .check__error {
  color: #ff8a73;
}

.field.is-invalid .field__error,
.check__error.is-shown {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .dropzone {
  border-color: #c4412b;
}

.field-pair {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  overflow: hidden;
  border: 1px solid var(--r-line);
  border-radius: 8px;
  background: var(--r-field);
}

.stepper button {
  border: 0;
  background: transparent;
  color: var(--r-accent);
  font-size: 1.3rem;
  cursor: pointer;
}

.stepper button:hover {
  background: rgba(252, 185, 63, 0.16);
}

.field .stepper input {
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.field .stepper input:focus {
  box-shadow: none;
}

/* Bank card */
.register__lead {
  margin: 0 0 16px;
  font-size: 1rem;
}

.bank-card {
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 15% 0%, rgba(252, 185, 63, 0.28), transparent 50%),
    linear-gradient(135deg, #0b3a44, #061319);
  color: var(--white);
}

.bank-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.bank-card__top span {
  font-family: var(--subheading);
  font-size: 1.2rem;
  font-weight: 700;
}

.bank-card__top small {
  color: var(--gold);
  font-size: 0.82rem;
}

.bank-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
}

.bank-card__row + .bank-card__row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bank-card small {
  display: block;
  color: rgba(255, 253, 248, 0.6);
  font-size: 0.78rem;
}

.bank-card__row strong {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.bank-card__copy {
  min-width: 78px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(252, 185, 63, 0.6);
  border-radius: 99px;
  background: transparent;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.bank-card__copy:hover {
  background: var(--gold);
  color: var(--ink);
}

.bank-card__amount[hidden] {
  display: none;
}

.bank-card__amount {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 22px;
  background: var(--gold);
  color: var(--ink);
}

.bank-card__amount small {
  color: rgba(6, 19, 25, 0.7);
}

.bank-card__amount strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.2;
  text-align: left;
}

.bank-card__amount strong small {
  color: inherit;
  display: inline;
  font-size: 0.55em;
}

.bank-card__amount strong em {
  font-family: var(--body);
  font-size: 0.5em;
  font-style: normal;
}

.bank-card__amount del {
  grid-column: 2;
  color: rgba(6, 19, 25, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.bank-card__amount del small {
  display: inline;
  font-size: 0.8em;
}

.bank-card__amount > span {
  font-size: 0.82rem;
}

.register__hint {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-right: 3px solid var(--gold);
  border-radius: 4px;
  background: rgba(252, 185, 63, 0.12);
  font-size: 0.86rem;
}

/* Receipt dropzone */
.dropzone {
  position: relative;
  display: block;
  border: 2px dashed var(--r-line);
  border-radius: 12px;
  background: var(--r-field);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--gold);
  background: rgba(252, 185, 63, 0.1);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dropzone input:focus-visible + .dropzone__empty {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.dropzone__empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 28px 16px;
  text-align: center;
}

.dropzone__empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--r-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone__empty small,
.dropzone__file small {
  color: var(--r-muted);
  font-size: 0.8rem;
}

.dropzone__file {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.dropzone__file[hidden],
.dropzone__empty[hidden] {
  display: none;
}

.dropzone__file img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--r-line);
  object-fit: cover;
}

.dropzone__file img.is-pdf {
  background: #c4412b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ctext x='32' y='40' fill='white' font-family='Arial' font-weight='700' font-size='18' text-anchor='middle'%3EPDF%3C/text%3E%3C/svg%3E") center / cover;
}

.dropzone__file b {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone__file div {
  min-width: 0;
}

.dropzone__file small[dir="ltr"] {
  text-align: right;
}

.dropzone__remove {
  padding: 8px 14px;
  border: 1px solid var(--r-line);
  border-radius: 99px;
  background: transparent;
  color: var(--r-text);
  font-size: 0.82rem;
  cursor: pointer;
}

/* Consent */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--gold);
}

/* Actions */
.register__actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

.register__next,
.register__submit {
  display: inline-flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.register__next:hover,
.register__submit:hover {
  transform: translateY(-1px);
  background: #ffc65a;
}

.register__submit i {
  font-style: normal;
}

.register__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.register__back {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--r-line);
  border-radius: 8px;
  background: transparent;
  color: var(--r-text);
  font-weight: 600;
  cursor: pointer;
}

.register__back:hover {
  border-color: var(--r-accent);
}

.register__status {
  margin: 12px 0 0;
  color: #c4412b;
  font-size: 0.88rem;
}

html[data-theme="dark"] .register__status {
  color: #ff8a73;
}

/* Success */
.register__done {
  text-align: center;
}

.register__done-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 10px auto 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 157, 85, 0.14);
}

.register__done-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #1f9d55;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.register__done h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.9rem;
}

.register__done > p {
  margin: 8px auto 0;
  max-width: 380px;
  color: var(--r-muted);
}

.register__done .register__ref {
  margin: 18px auto 22px;
  padding: 12px;
  border: 1px dashed var(--r-line);
  border-radius: 8px;
  color: var(--r-text);
}

.register__done .register__next {
  width: 100%;
}

@media (max-width: 600px) {
  .register {
    width: 100%;
    max-width: 100%;
    max-height: 100svh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .register[open] {
    animation: register-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes register-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }

  .register__panel {
    max-height: 92svh;
  }

  .register__head,
  .register__form,
  .register__done {
    padding-right: 18px;
    padding-left: 18px;
  }

  .register__steps {
    padding: 0 10px;
  }

  .register__steps li {
    font-size: 0.8rem;
  }

  .register__head h2 {
    font-size: 1.35rem;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .night-story__media {
    background-attachment: scroll;
  }
}
