:root {
  color-scheme: dark;
  --ink: #f2f4ef;
  --ink-soft: rgba(226, 235, 229, 0.72);
  --ink-faint: rgba(226, 235, 229, 0.66);
  --night: #07161d;
  --night-deep: #030b10;
  --loch: #11333a;
  --moss: #52705a;
  --heather: #8d72a0;
  --gold: #f2c879;
  --gold-soft: rgba(242, 200, 121, 0.25);
  --glass: rgba(7, 22, 29, 0.66);
  --line: rgba(226, 235, 229, 0.18);
  --header-h: 84px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--night-deep);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night-deep);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-dialog {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--night-deep);
  background: var(--gold);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.scene-shell,
.scene-shell canvas,
.fallback-map,
.aurora,
.mist,
.scene-vignette,
.scene-grain {
  position: fixed;
  inset: 0;
}

.scene-shell {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 38%, rgba(59, 100, 91, 0.26), transparent 32%),
    linear-gradient(155deg, #0c2630 0%, #07161d 52%, #030b10 100%);
}

#world {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.is-ready #world {
  opacity: 1;
}

.fallback-map {
  display: none;
  place-items: center;
  padding: 8vw;
  opacity: 0.88;
}

.no-webgl .fallback-map {
  display: grid;
}

.no-webgl .story-card {
  opacity: 1;
  transform: none;
}

.fallback-map svg {
  width: min(62vw, 680px);
  height: min(78vh, 820px);
  overflow: visible;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.4));
}

.fallback-map .land {
  fill: rgba(50, 82, 69, 0.82);
  stroke: rgba(226, 235, 229, 0.36);
  stroke-width: 0.55;
}

.fallback-map .route-shadow {
  fill: none;
  stroke: rgba(242, 200, 121, 0.17);
  stroke-width: 6;
  stroke-linecap: round;
}

.fallback-map .route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
}

.fallback-map circle {
  fill: var(--gold);
  stroke: var(--night);
  stroke-width: 1.8;
}

.aurora {
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: screen;
  filter: blur(70px);
  will-change: transform;
}

.aurora-one {
  inset: -24% 24% 30% -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(90, 155, 116, 0.72), rgba(78, 112, 144, 0.14) 54%, transparent 72%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora-two {
  inset: 28% -25% -18% 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(141, 114, 160, 0.48), rgba(41, 103, 103, 0.1) 56%, transparent 72%);
  animation: aurora-drift 24s ease-in-out -7s infinite alternate-reverse;
}

.mist {
  width: 160%;
  height: 44%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(221, 230, 226, 0.09) 0%, rgba(179, 198, 190, 0.035) 42%, transparent 72%);
  filter: blur(24px);
  will-change: transform;
}

.mist-one {
  top: 12%;
  left: -32%;
  animation: mist-drift 30s linear infinite alternate;
}

.mist-two {
  top: 58%;
  left: -15%;
  opacity: 0.62;
  animation: mist-drift 38s linear -12s infinite alternate-reverse;
}

.scene-vignette {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 11, 16, 0.52), transparent 28%, transparent 72%, rgba(3, 11, 16, 0.44)),
    radial-gradient(circle at center, transparent 40%, rgba(3, 11, 16, 0.46) 100%);
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--ink-soft);
  background: var(--night-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.is-ready .loader,
.no-webgl .loader {
  visibility: hidden;
  opacity: 0;
}

.loader-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 200, 121, 0.24);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: max(18px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px) 14px;
  background: linear-gradient(180deg, rgba(3, 11, 16, 0.64), transparent);
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

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

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(242, 200, 121, 0.44);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.wordmark strong,
.wordmark small {
  display: block;
  line-height: 1;
}

.wordmark strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wordmark small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.journey-status i {
  width: 28px;
  height: 1px;
  background: rgba(242, 200, 121, 0.52);
}

.planner-link {
  justify-self: end;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.planner-link span {
  display: inline-block;
  margin-left: 5px;
  color: var(--gold);
  transition: transform 180ms ease;
}

.planner-link:hover {
  color: var(--ink);
}

.planner-link:hover span {
  transform: translate(2px, -2px);
}

.chapter-rail {
  position: fixed;
  top: 50%;
  right: clamp(18px, 3vw, 48px);
  z-index: 35;
  transform: translateY(-50%);
}

.chapter-rail ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-rail a {
  display: grid;
  grid-template-columns: 48px 0fr;
  align-items: center;
  justify-content: end;
  min-height: 30px;
  color: rgba(226, 235, 229, 0.66);
  text-decoration: none;
  transition: color 220ms ease, grid-template-columns 320ms ease;
}

.chapter-rail a::after {
  content: "";
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: width 300ms ease, background 220ms ease;
}

.chapter-rail span {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chapter-rail strong {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  width: 0;
  padding-left: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  white-space: nowrap;
  transition: width 300ms ease, opacity 220ms ease, padding 300ms ease;
}

.chapter-rail a:hover,
.chapter-rail a:focus-visible,
.chapter-rail a[aria-current="step"] {
  color: var(--gold);
}

.chapter-rail a:hover,
.chapter-rail a:focus-visible {
  grid-template-columns: 48px 84px;
}

.chapter-rail a:hover strong,
.chapter-rail a:focus-visible strong {
  width: 84px;
  padding-left: 10px;
  opacity: 1;
}

.chapter-rail a[aria-current="step"]::after {
  width: 28px;
}

.journey-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.journey-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #a97d42, var(--gold), #dfe0b0);
  box-shadow: 0 0 14px rgba(242, 200, 121, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

main {
  position: relative;
  z-index: 10;
}

.scene-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 128svh;
  padding: calc(var(--header-h) + 40px) clamp(24px, 8vw, 130px) 70px;
}

.hero {
  min-height: 110svh;
  padding-bottom: 13svh;
}

.hero-copy {
  width: min(800px, 88vw);
  margin-left: clamp(0px, 5vw, 80px);
}

.eyebrow {
  color: var(--gold);
  font-size: clamp(0.62rem, 0.8vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(5rem, 11.2vw, 10.8rem);
  line-height: 0.72;
  letter-spacing: -0.065em;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.hero h1 em {
  display: inline-block;
  margin-left: clamp(24px, 9vw, 150px);
  color: transparent;
  font-weight: 500;
  -webkit-text-stroke: 1px rgba(226, 235, 229, 0.68);
}

.hero-intro {
  width: min(480px, 88vw);
  margin: clamp(38px, 6vh, 68px) 0 0 clamp(24px, 9vw, 150px);
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.3vw, 1.15rem);
  line-height: 1.85;
}

.start-journey {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0 clamp(24px, 9vw, 150px);
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.start-journey svg {
  width: 35px;
  height: 35px;
  padding: 8px;
  border: 1px solid rgba(242, 200, 121, 0.44);
  border-radius: 50%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  transition: transform 220ms ease, background 220ms ease;
}

.start-journey:hover svg {
  background: rgba(242, 200, 121, 0.1);
  transform: translateY(4px);
}

.hero-compass {
  position: absolute;
  right: clamp(82px, 12vw, 190px);
  bottom: 12vh;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--ink-faint);
}

.hero-compass span {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
}

.hero-compass i {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--gold), transparent);
}

.hero-compass small {
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-align: center;
}

.scroll-cue {
  position: absolute;
  bottom: 6vh;
  left: clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue span {
  width: 1px;
  height: 46px;
  background: rgba(226, 235, 229, 0.32);
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  display: block;
  width: 100%;
  height: 45%;
  background: var(--gold);
  animation: scroll-cue 2.2s ease-in-out infinite;
}

.chapter-left {
  justify-items: start;
}

.chapter-right {
  justify-items: end;
}

.story-card {
  width: min(470px, 40vw);
  opacity: 0.28;
  transform: translate3d(0, 46px, 0);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.76, 0.2, 1);
}

.chapter-right .story-card {
  margin-right: clamp(54px, 6vw, 100px);
}

.chapter-left .story-card {
  margin-left: clamp(0px, 3vw, 52px);
}

.scene-section.is-active .story-card,
.story-card:focus-within {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.story-heading {
  position: relative;
  margin-bottom: 23px;
  padding: 26px 28px 0;
  border-left: 1px solid rgba(242, 200, 121, 0.48);
}

.story-heading > p:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.story-heading time {
  color: var(--ink-faint);
}

.story-heading h2 {
  max-width: 440px;
  font-size: clamp(2.7rem, 4.4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.story-heading > p:last-child {
  max-width: 415px;
  margin-top: 19px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.film-portal {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: white;
  background: #0b1c23;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(226, 235, 229, 0.1);
  cursor: pointer;
  isolation: isolate;
  transform: perspective(900px) rotateX(0.01deg);
}

.film-portal::before,
.film-portal::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 31px;
  height: 31px;
  pointer-events: none;
}

.film-portal::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(242, 200, 121, 0.72);
  border-left: 1px solid rgba(242, 200, 121, 0.72);
}

.film-portal::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid rgba(242, 200, 121, 0.72);
  border-bottom: 1px solid rgba(242, 200, 121, 0.72);
}

.film-portal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.82);
  transform: scale(1.025);
  transition: filter 600ms ease, transform 1.1s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.portal-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 28%, rgba(3, 11, 16, 0.76) 100%),
    linear-gradient(110deg, rgba(45, 89, 71, 0.18), rgba(81, 51, 90, 0.24));
  mix-blend-mode: normal;
  transition: opacity 500ms ease;
}

.play-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(4, 14, 19, 0.18);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  transition: background 320ms ease, border 320ms ease, transform 400ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.play-orb::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(242, 200, 121, 0.2);
  border-radius: inherit;
  animation: play-pulse 2.8s ease-out infinite;
}

.play-orb i {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid white;
}

.portal-label {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.portal-label b {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.57rem;
  font-weight: 600;
}

.film-portal:hover img,
.film-portal:focus-visible img {
  filter: saturate(0.95) contrast(1.03) brightness(0.95);
  transform: scale(1.075);
}

.film-portal:hover .portal-wash,
.film-portal:focus-visible .portal-wash {
  opacity: 0.68;
}

.film-portal:hover .play-orb,
.film-portal:focus-visible .play-orb {
  border-color: var(--gold);
  background: rgba(242, 200, 121, 0.16);
  transform: translate(-50%, -50%) scale(1.1);
}

.film-portal:focus-visible,
.chapter-rail a:focus-visible,
.planner-link:focus-visible,
.start-journey:focus-visible,
.outro a:focus-visible,
.dialog-surface button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.story-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 2px 0;
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card > footer a {
  color: var(--gold);
  text-decoration: none;
}

.outro {
  min-height: 112svh;
  place-items: center;
  text-align: center;
}

.outro-copy {
  width: min(780px, 88vw);
  padding: 60px 30px;
}

.outro h2 {
  margin-top: 14px;
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
}

.outro-copy > p:not(.eyebrow) {
  width: min(530px, 100%);
  margin: 32px auto 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.outro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 36px;
}

.outro-actions a {
  padding: 9px 0;
  border-bottom: 1px solid rgba(242, 200, 121, 0.55);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.outro small {
  display: block;
  margin-top: 70px;
  color: rgba(226, 235, 229, 0.64);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.outro small a {
  text-underline-offset: 3px;
}

.video-dialog {
  width: min(1120px, calc(100vw - 42px), calc((100vh - 220px) * 1.7778));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.video-dialog::backdrop {
  background: rgba(2, 8, 12, 0.84);
  backdrop-filter: blur(18px) saturate(0.72);
  animation: backdrop-in 260ms ease both;
}

.dialog-surface {
  overflow: hidden;
  border: 1px solid rgba(226, 235, 229, 0.16);
  border-radius: 3px;
  background: #07151b;
  box-shadow: 0 45px 130px rgba(0, 0, 0, 0.7);
  animation: dialog-in 430ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.dialog-surface > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 17px 22px 17px 28px;
  border-bottom: 1px solid rgba(226, 235, 229, 0.1);
}

.dialog-surface > header p {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.dialog-surface > header h2 {
  margin-top: 3px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(226, 235, 229, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #020609;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.dialog-surface > footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 26px;
  color: var(--ink-faint);
}

.dialog-surface > footer button {
  width: fit-content;
  padding: 8px 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  cursor: pointer;
  text-transform: uppercase;
}

.dialog-surface > footer button:last-child {
  justify-self: end;
}

.dialog-surface > footer span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

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

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  max-height: calc(100vh - 40px);
  padding: 24px;
  overflow: auto;
  color: #15201d;
  background: #f0e9dc;
}

.noscript-message a {
  color: #315f4d;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -3%, 0) rotate(-5deg) scale(1); }
  to { transform: translate3d(10%, 9%, 0) rotate(8deg) scale(1.14); }
}

@keyframes mist-drift {
  from { transform: translate3d(-5%, -4%, 0) scale(1); }
  to { transform: translate3d(22%, 7%, 0) scale(1.12); }
}

@keyframes scroll-cue {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(230%); }
}

@keyframes play-pulse {
  0% { opacity: 0.7; transform: scale(0.92); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(0.975); }
}

@media (max-width: 980px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-right: 22px;
    padding-left: 22px;
  }

  .journey-status {
    display: none;
  }

  .chapter-rail {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    overflow-x: auto;
    padding: 9px 16px calc(9px + var(--safe-bottom));
    border-top: 1px solid rgba(226, 235, 229, 0.11);
    background: rgba(3, 11, 16, 0.78);
    backdrop-filter: blur(18px);
    transform: none;
    scrollbar-width: none;
  }

  .chapter-rail::-webkit-scrollbar {
    display: none;
  }

  .chapter-rail ol {
    display: flex;
    width: max-content;
    gap: 4px;
  }

  .chapter-rail a,
  .chapter-rail a:hover,
  .chapter-rail a:focus-visible {
    display: grid;
    grid-template-columns: none;
    place-items: center;
    min-width: 48px;
    min-height: 39px;
    padding: 0 8px;
    border-bottom: 1px solid transparent;
  }

  .chapter-rail a::after,
  .chapter-rail strong {
    display: none;
  }

  .chapter-rail span {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }

  .chapter-rail a[aria-current="step"] {
    border-bottom-color: var(--gold);
    background: rgba(242, 200, 121, 0.06);
  }

  .scene-section {
    min-height: 120svh;
    padding-right: 26px;
    padding-bottom: calc(110px + var(--safe-bottom));
    padding-left: 26px;
  }

  .hero {
    min-height: 110svh;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero h1 em {
    margin-left: 0;
  }

  .hero-intro,
  .start-journey {
    margin-left: 4px;
  }

  .hero-compass {
    right: 28px;
    bottom: 15vh;
  }

  .scroll-cue {
    display: none;
  }

  .chapter-left,
  .chapter-right {
    align-items: end;
    justify-items: center;
  }

  .story-card,
  .chapter-left .story-card,
  .chapter-right .story-card {
    width: min(520px, 92vw);
    margin: 0;
  }

  .story-card {
    padding: 18px;
    background: linear-gradient(150deg, rgba(7, 22, 29, 0.79), rgba(7, 22, 29, 0.54));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(15px) saturate(0.8);
  }

  .story-heading {
    padding: 9px 7px 0 18px;
  }

  .scene-vignette {
    background: linear-gradient(180deg, rgba(3, 11, 16, 0.18), transparent 40%, rgba(3, 11, 16, 0.72));
  }
}

@media (max-width: 620px) {
  .wordmark-mark {
    width: 34px;
    height: 34px;
  }

  .wordmark strong {
    font-size: 0.98rem;
  }

  .wordmark small {
    font-size: 0.5rem;
  }

  .planner-link {
    font-size: 0.58rem;
  }

  .scene-section {
    min-height: 112svh;
    padding-top: 92px;
  }

  .hero {
    align-items: start;
    min-height: 105svh;
    padding-top: 21svh;
  }

  .hero h1 {
    font-size: clamp(4.25rem, 22vw, 6.6rem);
    line-height: 0.78;
  }

  .hero-intro {
    width: min(370px, 86vw);
    margin-top: 38px;
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .hero-compass {
    display: none;
  }

  .story-card {
    width: 100%;
    padding: 14px;
  }

  .story-heading {
    margin-bottom: 17px;
  }

  .story-heading h2 {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  .story-heading > p:last-child {
    margin-top: 14px;
    font-size: 0.8rem;
  }

  .play-orb {
    width: 60px;
    height: 60px;
  }

  .portal-label {
    right: 17px;
    bottom: 13px;
    left: 17px;
    font-size: 0.57rem;
  }

  .story-card > footer {
    font-size: 0.51rem;
  }

  .outro-copy {
    padding-right: 0;
    padding-left: 0;
  }

  .video-dialog {
    width: min(calc(100vw - 20px), calc((100vh - 142px) * 1.7778));
  }

  .dialog-surface > header {
    min-height: 70px;
    padding: 12px 13px 12px 17px;
  }

  .dialog-close {
    width: 40px;
    height: 40px;
  }

  .dialog-surface > footer {
    min-height: 56px;
    padding: 8px 14px;
  }

  .dialog-surface > footer button {
    font-size: 0;
  }

  .dialog-surface > footer button span {
    color: var(--ink-soft);
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .scene-section {
    min-height: 108svh;
  }
}
