:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --faint: rgba(245, 241, 232, 0.44);
  --night: #071410;
  --accent: #f0b65b;
  --page-progress: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--night);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(240, 182, 91, 0.36);
  transform: scaleX(var(--page-progress));
  transform-origin: left center;
  will-change: transform;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.75rem;
  padding: 0 3.5vw;
  border-bottom: 0;
  background: transparent;
  transition: background 220ms ease, min-height 220ms ease;
}

.site-header.is-compact {
  min-height: 4.65rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(9.5rem, 13vw, 12rem);
  height: auto;
  filter: drop-shadow(0 0.2rem 0.7rem rgba(0, 0, 0, 0.24));
}

.desktop-scene-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(249, 236, 214, 0.94), rgba(216, 197, 181, 0.88));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.86),
    inset 0 -2px 4px rgba(113, 80, 55, 0.18),
    0 0.65rem 1.8rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.desktop-scene-nav button {
  position: relative;
  min-height: 2.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem clamp(0.75rem, 1.4vw, 1.2rem);
  background: transparent;
  color: #685c52;
  font-size: 0.69rem;
  font-weight: 680;
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.desktop-scene-nav button:hover {
  color: #17231f;
}

.desktop-scene-nav button.is-active {
  background: linear-gradient(145deg, #f6c75f, #d99b31);
  color: #18231f;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    inset 0 -2px 3px rgba(117, 72, 15, 0.18),
    0 0.28rem 0.65rem rgba(100, 63, 20, 0.24);
  transform: translateY(-1px);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 0.9rem 0.68rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--night);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(5, 17, 14, 0.34);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-toggle span {
  display: grid;
  min-width: 1.9rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.language-toggle span.is-active {
  background: linear-gradient(145deg, #f6c75f, #d99b31);
  color: #17231f;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.68),
    0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.eyebrow b,
.text-link b {
  font: inherit;
}

.scene-rail {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 3.5vw;
  display: grid;
  gap: 1.75rem;
  width: 7.7rem;
  transform: translateY(-50%);
}

.rail-line {
  position: absolute;
  top: 0.35rem;
  right: -0.9rem;
  bottom: 0.35rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.rail-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(var(--page-progress));
  transform-origin: top;
}

.rail-stop {
  display: grid;
  justify-items: end;
  border: 0;
  padding: 0;
  background: none;
  opacity: 0.42;
  transition: opacity 180ms ease, transform 180ms ease;
}

.rail-stop:hover,
.rail-stop.is-active {
  opacity: 1;
  transform: translateX(-0.2rem);
}

.rail-stop span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-style: italic;
}

.rail-stop strong {
  margin-top: 0.1rem;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-world {
  position: relative;
  min-height: 100vh;
  background: var(--night);
}

.world-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.scene {
  --scene-opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  opacity: var(--scene-opacity);
  pointer-events: none;
  transition: opacity 80ms linear;
  will-change: opacity;
}

.scene.is-active {
  pointer-events: auto;
}

.scene-video,
.scene-shade,
.scene-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-video {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--night);
}

.scene-shade {
  z-index: 1;
  background:
  linear-gradient(90deg, rgb(2 10 9 / 20%) 0%, rgba(2, 10, 9, 0.43) 39%, transparent 70%), linear-gradient(270deg, rgba(2, 10, 9, 0.3), transparent 35%), linear-gradient(0deg, rgba(2, 8, 7, 0.64), transparent 43%), linear-gradient(180deg, rgba(2, 8, 7, 0.48), transparent 31%);
}

.scene-shade--right {
  background: linear-gradient(270deg, rgb(2 10 9 / 28%) 0%, rgba(2, 10, 9, 0.43) 40%, transparent 70%), linear-gradient(90deg, rgba(2, 10, 9, 0.24), transparent 36%), linear-gradient(0deg, rgba(2, 8, 7, 0.64), transparent 43%), linear-gradient(180deg, rgba(2, 8, 7, 0.45), transparent 30%);
}

.scene-glow {
  z-index: 2;
  background: radial-gradient(circle at 78% 21%, rgba(240, 182, 91, 0.28), transparent 26%);
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
}

.scene-glow--blue {
  background: radial-gradient(circle at 18% 24%, rgba(247, 186, 85, 0.3), transparent 28%);
}

.scene-glow--aqua {
  background: radial-gradient(circle at 72% 34%, rgba(87, 230, 215, 0.25), transparent 32%);
}

.scene-content {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: min(43rem, 58vw);
  transform: translateY(calc(-50% + var(--copy-shift, 0vh)));
  will-change: opacity, transform;
}

.scene-content--left {
  left: 8vw;
}

.scene-content--right {
  right: 10vw;
  width: min(38rem, 50vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.eyebrow span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0;
}

h1,
h2 {
  max-width: 12ch;
  margin: 0;
  color: #f8f4eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.8vw, 8.2rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 0.08em 0.6em rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: clamp(3.8rem, 7vw, 7.5rem);
}

h1 em,
h2 em {
  color: var(--accent);
  font-weight: 400;
}

.scene-description {
  max-width: 33rem;
  margin: 1.8rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0 0 0.45rem;
  background: none;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.text-link span {
  color: var(--accent);
}

.destination-meta {
  display: flex;
  gap: 2.8rem;
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.destination-meta div {
  display: grid;
  gap: 0.32rem;
}

.destination-meta span {
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.destination-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.2rem 1.35rem;
  background: none;
  font-size: 0.69rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

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

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a1713;
}

.button--ghost {
  background: rgba(6, 19, 16, 0.22);
  backdrop-filter: blur(12px);
}

.scene-number {
  position: absolute;
  right: 7.7vw;
  bottom: -0.11em;
  z-index: 0;
  color: rgba(255, 255, 255, 0.075);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10rem, 21vw, 24rem);
  line-height: 0.7;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.closing-note {
  position: absolute;
  right: 3.5vw;
  bottom: 2.3rem;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.scroll-cue {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.55rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: var(--cue-opacity, 1);
  transform: translateX(-50%);
  transition: opacity 280ms ease, transform 280ms ease;
  filter: drop-shadow(0 0.12rem 0.35rem rgba(0, 0, 0, 0.38));
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1.55rem;
  height: 2.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  animation: mouse-float 2s ease-in-out infinite;
}

.scroll-cue i::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 50%;
  display: block;
  width: 0.2rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: mouse-wheel 1.8s ease-out infinite;
}

.scroll-cue.is-hidden {
  pointer-events: none;
  transform: translate(-50%, 0.65rem);
}

.loading-pill {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: 6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: rgba(4, 13, 11, 0.68);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.loading-pill.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
}

.loading-dot {
  width: 0.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(240, 182, 91, 0.45);
  animation: loading-pulse 1.4s ease-out infinite;
}

.scene.has-video-error .scene-video {
  opacity: 0;
}

.mobile-bottom-nav {
  display: none;
}

.noscript-note {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  margin: 0;
  padding: 1rem;
  background: #fff;
  color: #111;
  text-align: center;
}

@keyframes mouse-wheel {
  0% { opacity: 0; transform: translate(-50%, -0.08rem); }
  20% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translate(-50%, 0.72rem); }
}

@keyframes mouse-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.18rem); }
}

@keyframes loading-pulse {
  70%, 100% { box-shadow: 0 0 0 0.55rem rgba(240, 182, 91, 0); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 4.6rem;
    padding: 0 1.2rem;
  }

  .desktop-scene-nav,
  .scene-rail,
  .header-cta {
    display: none;
  }

  .site-header,
  .site-header.is-compact {
    grid-template-columns: 1fr auto;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-cta {
    padding: 0.62rem 0.8rem;
    font-size: 0.6rem;
  }

  .header-actions {
    justify-self: end;
  }

  .language-toggle {
    background: rgba(5, 17, 14, 0.24);
  }

  .world-stage {
    min-height: 35rem;
  }

  .scene-video {
    object-position: 58% center;
  }

  .scene[data-scene="1"] .scene-video {
    object-position: 56% center;
  }

  .scene[data-scene="2"] .scene-video {
    object-position: 51% center;
  }

  .scene[data-scene="3"] .scene-video {
    object-position: center;
  }

  .scene-shade {
    background:
      linear-gradient(0deg, rgba(2, 9, 8, 0.92) 0%, rgba(2, 9, 8, 0.35) 63%, rgba(2, 9, 8, 0.25) 100%),
      linear-gradient(90deg, rgba(2, 9, 8, 0.48), transparent 80%);
  }

  .scene-content,
  .scene-content--right {
    top: auto;
    right: auto;
    bottom: clamp(7.2rem, 12vh, 9rem);
    left: 1.35rem;
    width: calc(100% - 2.7rem);
    transform: translateY(var(--copy-shift, 0vh));
  }

  .scene[data-scene="0"] .scene-content {
    bottom: clamp(10.5rem, 20vh, 11.5rem);
  }

  h1,
  h2 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15vw, 5.3rem);
    line-height: 0.88;
  }

  .scene-description {
    max-width: 30rem;
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .scene-number {
    right: 0.5rem;
    bottom: 0.22em;
    font-size: 11rem;
  }

  .closing-note {
    display: none;
  }

  .scroll-cue {
    bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  }

  .loading-pill {
    bottom: calc(9.6rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 75;
    left: 50%;
    bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem;
    width: min(calc(100% - 1.2rem), 31rem);
    padding: 0.38rem;
    border: 1px solid rgba(255, 249, 235, 0.78);
    border-radius: 1.45rem;
    background: linear-gradient(145deg, rgba(245, 225, 198, 0.96), rgba(202, 174, 153, 0.96));
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.8),
      inset 0 -3px 6px rgba(107, 72, 55, 0.22),
      0 0.9rem 2.2rem rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, calc(100% + 2rem));
    transition:
      transform 430ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .mobile-nav-item {
    display: flex;
    min-width: 0;
    min-height: 3.55rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.16rem;
    border: 0;
    border-radius: 1.08rem;
    padding: 0.34rem 0.2rem 0.3rem;
    background: transparent;
    color: #6c5d52;
    font-size: 0.58rem;
    font-weight: 720;
    letter-spacing: 0.015em;
    transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  }

  .mobile-nav-item.is-active {
    background: linear-gradient(145deg, #f4c85f, #d99b32);
    color: #17231f;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.74),
      inset 0 -2px 3px rgba(104, 62, 13, 0.18),
      0 0.3rem 0.72rem rgba(88, 55, 20, 0.22);
    transform: translateY(-1px);
  }

  .mobile-nav-icon {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    opacity: 0;
    transform: translateY(0.55rem) scale(0.72) rotate(-7deg);
  }

  .mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav.is-visible .mobile-nav-icon {
    animation: mobile-icon-pop 520ms cubic-bezier(0.2, 1.5, 0.45, 1) both;
    animation-delay: var(--delay, 0ms);
  }
}

@media (max-width: 540px) {
  .brand img {
    width: 8.2rem;
  }

  .header-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .language-toggle span {
    min-width: 1.72rem;
    height: 1.58rem;
    font-size: 0.54rem;
  }

  h1,
  h2 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.58rem;
  }

  .destination-meta {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
    width: min(100%, 22rem);
    margin-top: 1.5rem;
  }

  .button {
    min-height: 3rem;
  }

  .scene-content--final {
    bottom: 7rem;
  }
}

@keyframes mobile-icon-pop {
  0% { opacity: 0; transform: translateY(0.55rem) scale(0.72) rotate(-7deg); }
  62% { opacity: 1; transform: translateY(-0.08rem) scale(1.12) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

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