@font-face {
  font-family: "TmoneyRoundWind";
  src: url("./fonts/TmoneyRoundWindRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TmoneyRoundWind";
  src: url("./fonts/TmoneyRoundWindExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown-abyss: #1C0C02;
  --brown-earth: #5F3611;
  --brown-bark: #392219;
  --brown-rust: #743A1C;
  --brown-burn: #451E10;
  --brown-black: #210E01;
  --brown-ink: #150E0E;
  --black: #0D1418;
  --night: #111B20;
  --panel: #172329;
  --elevated: #1C2B31;
  --muted: #B8C7C5;
  --subtle: #86868D;
  --line: #31533E;
  --forest: #0A2F1D;
  --teal: #033A3C;
  --ridge: #31533E;
  --sand: #998366;
  --paper: #DBCCAF;
  --danger: #7B0E1F;
  --danger-deep: #4F0518;
  --danger-hot: #AB151A;
  --danger-flare: #DE1700;
  --danger-cta: #F22E15;
  --growth-dark: #4A6900;
  --growth: #0C5215;
  --growth-bright: #69B509;
  --rust-signal: #893012;
  --orange: #F9661E;
  --white: #FFFFFF;
  --body: #EDF3F0;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 5px 6px 0 rgba(0, 0, 0, 0.48);
  --font: "TmoneyRoundWind", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(10, 47, 29, 0.2), transparent 24rem),
    radial-gradient(circle at 8% 18%, rgba(3, 58, 60, 0.16), transparent 24rem),
    var(--black);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(49, 83, 62, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 83, 62, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 72%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px clamp(16px, 3vw, 42px);
  background: rgba(13, 20, 24, 0.76);
  transition: background 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--ridge);
  background: rgba(17, 27, 32, 0.94);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 6px 0;
  text-decoration: none;
}

.brand-link img {
  width: clamp(142px, 15vw, 216px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(249, 102, 30, 0.18));
}

.logo-fallback {
  display: none;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-missing img {
  display: none;
}

.logo-missing .logo-fallback {
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  border-color: var(--ridge);
  color: var(--white);
}

.nav-menu a[aria-current="page"] {
  border-color: var(--growth-bright);
  background: rgba(12, 82, 21, 0.34);
  color: var(--white);
}

.nav-menu a[aria-current="page"]::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--growth-bright);
  content: "";
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ridge);
  border-radius: 10px;
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-2px) rotate(-90deg);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 56px) 76px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  min-height: min(770px, calc(100vh - 82px));
}

.hero::before {
  position: absolute;
  inset: 7% auto auto -4%;
  width: 48%;
  height: 62%;
  border-left: 1px solid var(--ridge);
  background: linear-gradient(110deg, rgba(10, 47, 29, 0.18), transparent 72%);
  content: "";
  transform: skewX(-10deg);
  pointer-events: none;
}

.hero-copy,
.stack {
  position: relative;
  display: grid;
  gap: 20px;
}

.home-hero {
  width: 100vw;
  min-height: min(880px, calc(100svh - 82px));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(86px, 10vw, 142px) clamp(20px, 7vw, 112px);
  grid-template-columns: minmax(0, 680px);
  align-content: center;
  background-image: url("./images/home-oasis-hero.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.home-hero::before {
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 18, 0.84) 0%, rgba(8, 18, 22, 0.62) 43%, rgba(8, 18, 22, 0.32) 100%),
    radial-gradient(circle at 72% 46%, rgba(3, 58, 60, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(13, 20, 24, 0.16), rgba(13, 20, 24, 0.52));
  transform: none;
}

.home-hero::after {
  position: absolute;
  left: clamp(18px, 7vw, 112px);
  right: clamp(18px, 7vw, 112px);
  bottom: clamp(22px, 5vw, 62px);
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--growth-bright), rgba(49, 83, 62, 0.36), transparent);
  content: "";
}

.home-hero .hero-copy {
  z-index: 2;
  max-width: 680px;
  padding: clamp(18px, 3vw, 28px);
  border-left: 1px solid rgba(237, 243, 240, 0.28);
  background: linear-gradient(90deg, rgba(13, 20, 24, 0.28), transparent);
}

.hero-logo {
  width: min(360px, 78vw);
}

.eyebrow,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.alert-label {
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid var(--danger-hot);
  border-radius: 999px;
  background: rgba(79, 5, 24, 0.64);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: corruptBlink 2.8s steps(2, end) infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(42px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.lead {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--body);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--ridge);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: skewX(-2deg);
}

.image-frame::before {
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: inherit;
  content: "";
}

.image-frame::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(13, 20, 24, 0.36), transparent 44%, rgba(12, 82, 21, 0.2)),
    radial-gradient(circle at 78% 20%, rgba(3, 58, 60, 0.18), transparent 28rem),
    linear-gradient(180deg, transparent 58%, rgba(13, 20, 24, 0.54));
  content: "";
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08) brightness(0.82);
  transform: skewX(2deg) scale(1.04);
}

.wide-frame {
  aspect-ratio: 16 / 7;
  margin: 28px 0 42px;
}

.section {
  position: relative;
  padding: 90px 0 16px;
}

.section::before {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, var(--ridge), var(--growth-bright), transparent);
  content: "";
}

.section:nth-of-type(even) {
  background: linear-gradient(90deg, rgba(17, 27, 32, 0.58), transparent);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.btn-row,
.chip-row,
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1.5px solid var(--subtle);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.46);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--growth-bright);
  transform: translate(-1px, -2px);
}

.btn.primary {
  border-color: var(--danger-cta);
  background: var(--danger-cta);
  color: var(--white);
}

.chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--night);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.status-chip.danger {
  border-color: var(--danger-hot);
  background: var(--danger-deep);
  color: var(--white);
}

.status-chip.restore {
  border-color: var(--growth-bright);
  background: var(--growth);
  color: var(--white);
}

.status-chip.info {
  border-color: var(--ridge);
  background: var(--teal);
  color: var(--white);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.index-card,
.note-card,
.drawer-item,
.route-card,
.region-node {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--elevated);
  color: var(--body);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.index-card:hover,
.route-card:hover,
.drawer-item:hover,
.region-node:hover {
  border-color: var(--orange);
  transform: translate(-1px, -2px);
}

.index-card {
  min-height: 228px;
  padding: 20px;
}

.index-card .index-number,
.chapter-index {
  display: block;
  margin-bottom: 28px;
  color: var(--orange);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.signal-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
  border: 1.5px solid var(--ridge);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(115deg, rgba(3, 58, 60, 0.24), transparent 42%),
    linear-gradient(295deg, rgba(12, 82, 21, 0.28), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow);
}

.signal-number {
  margin: 0;
  color: var(--white);
  font-size: clamp(58px, 9vw, 110px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.danger-number {
  color: var(--danger-cta);
}

.progress-track {
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--ridge);
  border-radius: 999px;
  background: var(--danger-deep);
}

.progress-track span {
  display: block;
  width: var(--progress, 64%);
  height: 100%;
  background: linear-gradient(90deg, var(--growth), var(--growth-bright));
  animation: restoreFill 1.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.chapter:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
}

.chapter:nth-child(even) .chapter-copy {
  order: 2;
}

.chapter-copy {
  display: grid;
  gap: 16px;
}

.coords {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--sand);
  border-radius: 6px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.observation {
  margin: 0;
  padding-left: 18px;
  border-left: 1.5px solid var(--growth-bright);
  color: var(--body);
}

.chapter-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mission-note {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night);
  color: var(--paper);
}

.mission-note strong {
  display: block;
  color: var(--white);
}

.compare-panel {
  display: grid;
  gap: 16px;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.compare-actions-top {
  justify-content: flex-start;
}

.compare-action {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--night);
  color: var(--white);
  cursor: pointer;
}

.compare-action[aria-pressed="true"] {
  border-color: var(--growth-bright);
  background: var(--growth);
}

.compare-frame {
  --before: 50%;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1.5px solid var(--ridge);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  touch-action: none;
  cursor: ew-resize;
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08) brightness(0.9);
  user-select: none;
  pointer-events: none;
}

.compare-before {
  clip-path: inset(0 calc(100% - var(--before)) 0 0);
  transition: clip-path 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--before);
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
  z-index: 3;
  transition: left 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.compare-handle {
  position: absolute;
  left: var(--before);
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--growth-bright);
  color: var(--black);
  font-size: 24px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(49, 83, 62, 0.78);
  pointer-events: none;
  transition: left 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.compare-frame:focus-visible .compare-handle {
  box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--ridge);
}

.compare-frame.is-dragging .compare-before,
.compare-frame.is-dragging .compare-line,
.compare-frame.is-dragging .compare-handle {
  transition: none;
}

.compare-frame.is-dragging .compare-before {
  will-change: clip-path;
}

.compare-frame.is-dragging .compare-line,
.compare-frame.is-dragging .compare-handle {
  will-change: left;
}

.compare-set-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.compare-set {
  min-width: 48px;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--night);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.compare-set[aria-current="true"] {
  border-color: var(--growth-bright);
  background: var(--forest);
  box-shadow: inset 0 -3px 0 var(--growth-bright);
}

.compare-set:hover,
.compare-action:hover {
  border-color: var(--orange);
}

.compare-label {
  position: absolute;
  top: 14px;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.82);
  color: var(--white);
  font-size: 13px;
}

.compare-label.before {
  left: 14px;
  border-color: var(--danger-hot);
}

.compare-label.after {
  right: 14px;
  border-color: var(--growth-bright);
}

.compare-range {
  width: 100%;
  min-height: 44px;
  accent-color: var(--growth-bright);
}

.compare-range-label {
  color: var(--muted);
  font-size: 13px;
}

.gameplay-detail-page {
  padding-bottom: 0;
}

.gameplay-detail-hero .lead {
  max-width: 56ch;
}

.gameplay-feature-list {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--growth-bright);
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.02em;
}

.gameplay-anchor-nav {
  position: sticky;
  top: 82px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 clamp(56px, 7vw, 92px);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.gameplay-anchor-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gameplay-anchor-nav a:hover,
.gameplay-anchor-nav a:focus-visible {
  border-color: var(--growth-bright);
  outline: 0;
}

.gameplay-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(70px, 9vw, 128px) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 132px;
}

.gameplay-feature--reverse .gameplay-feature__copy {
  order: 2;
}

.gameplay-feature--reverse .gameplay-feature__media {
  order: 1;
}

.gameplay-feature__copy {
  min-width: 0;
}

.gameplay-feature__number {
  margin: 0 0 18px;
  color: var(--growth-bright);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.gameplay-feature__copy h2 {
  margin: 0 0 20px;
  color: var(--fg);
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.gameplay-feature__copy strong {
  display: block;
  max-width: 42ch;
  margin-bottom: 22px;
  color: var(--fg);
  font-size: clamp(20px, 2.1vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.gameplay-feature__copy > p:not(.gameplay-feature__number):not(.gameplay-feature__meta) {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.76;
}

.gameplay-feature__meta {
  width: fit-content;
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--growth-bright);
  color: var(--growth-bright);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.gameplay-feature__media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--surface) 82%, var(--forest)), var(--surface));
  box-shadow: var(--shadow-soft);
}

.gameplay-feature__media::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  content: attr(data-media-label) " 영상 준비 중";
}

.gameplay-feature__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 15, 18, 0.28));
  content: "";
  pointer-events: none;
}

.gameplay-feature__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--surface);
}

.gameplay-feature__media img.is-missing-media {
  visibility: hidden;
}

@media (max-width: 860px) {
  .gameplay-anchor-nav {
    position: static;
  }

  .gameplay-feature {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: clamp(58px, 12vw, 86px) 0;
  }

  .gameplay-feature--reverse .gameplay-feature__copy,
  .gameplay-feature--reverse .gameplay-feature__media {
    order: initial;
  }

  .gameplay-feature__media {
    width: 100%;
  }
}

.caption-block {
  padding: 18px;
}

.caption-block.before {
  border-color: var(--danger-hot);
  background: var(--night);
}

.caption-block.after {
  border-color: var(--growth-bright);
  background: var(--growth);
}

.codex-layout,
.island-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.codex-layout {
  grid-template-columns: minmax(0, 1.82fr) minmax(280px, 1fr);
  align-items: stretch;
}

.island-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.filter-bar,
.island-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn,
.switch-btn,
.drawer-item,
.region-node,
.animal-toggle {
  cursor: pointer;
}

.filter-btn,
.switch-btn,
.animal-toggle {
  min-height: 42px;
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--night);
  color: var(--paper);
  letter-spacing: 0.02em;
}

.filter-btn[aria-pressed="true"],
.switch-btn[aria-selected="true"],
.animal-toggle[aria-expanded="true"] {
  border-color: var(--growth-bright);
  background: var(--growth);
  color: var(--white);
}

.drawer-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.drawer-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 15px;
  text-align: left;
}

.drawer-item img {
  width: 76px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.86);
}

.drawer-item[hidden] {
  display: none;
}

.drawer-item[aria-selected="true"],
.region-node[aria-selected="true"] {
  border-color: var(--growth-bright);
  outline: 3px solid var(--growth-bright);
  outline-offset: 3px;
}

.region-node.locked {
  border-color: var(--danger-hot);
  background: var(--danger-deep);
}

.detail-panel {
  min-height: 420px;
  padding: clamp(22px, 4vw, 38px);
  border: 1.5px solid var(--ridge);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(3, 58, 60, 0.3), transparent 50%),
    var(--panel);
  box-shadow: var(--shadow);
}

.codex-detail-panel {
  min-height: 620px;
}

.codex-preview {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  border: 1.5px solid var(--ridge);
  border-radius: var(--radius-lg);
  background: var(--night);
}

.codex-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(13, 20, 24, 0.6));
  content: "";
  pointer-events: none;
}

.codex-preview img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08) brightness(0.88);
}

.codex-list-panel {
  display: flex;
  flex-direction: column;
  height: var(--codex-detail-height, 620px);
  max-height: var(--codex-detail-height, 620px);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--night);
  box-shadow: var(--shadow);
}

.codex-list-panel .drawer-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fact {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night);
  color: var(--body);
}

.fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.temporary-label {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 6px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.island-map {
  display: grid;
  gap: 16px;
}

.island-scene {
  display: none;
}

.island-scene.is-active {
  display: block;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.region-node {
  width: 100%;
  min-height: 146px;
  padding: 18px;
  text-align: left;
}

.region-node h3::before,
.drawer-item h3::before {
  color: var(--orange);
  content: ">";
  margin-right: 7px;
}

.animal-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.animal-detail {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--ridge);
  border-radius: 10px;
  background: var(--night);
}

.animal-detail.is-open {
  display: block;
}

.route-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 78px;
  position: relative;
}

.route-link::before {
  position: absolute;
  left: 8%;
  right: 8%;
  top: -20px;
  height: 2px;
  background: linear-gradient(90deg, var(--ridge), var(--orange), var(--growth-bright));
  content: "";
}

.route-card {
  min-height: 150px;
  padding: 22px;
}

.route-card.next {
  border-color: var(--orange);
  background: var(--brown-abyss);
}

.compat-page {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
}

.compat-box {
  max-width: 680px;
  padding: clamp(24px, 5vw, 44px);
  border: 1.5px solid var(--ridge);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 58px 18px 70px;
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 188px;
}

.site-footer--team {
  grid-template-columns: minmax(120px, 180px) minmax(0, 560px);
  justify-content: center;
  justify-items: stretch;
  gap: clamp(28px, 5vw, 72px);
  padding-inline: clamp(24px, 7vw, 100px);
  border-top: 1px solid var(--ridge);
  text-align: left;
}

.site-footer--team .site-footer__team-image {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.site-footer__team-copy {
  align-self: center;
  display: grid;
  gap: 18px;
}

.site-footer__team-copy .brand-link img {
  width: 188px;
}

.site-footer__team-copy p {
  margin: 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer__nav a {
  color: var(--muted);
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__links a,
.site-footer__links button {
  padding: 9px 16px;
  border: 1px solid var(--ridge);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  cursor: pointer;
}

.video-dialog {
  width: min(960px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--ridge);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-dialog::backdrop {
  background: rgba(4, 11, 9, 0.8);
  backdrop-filter: blur(6px);
}

.video-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
}

.video-dialog__head h2,
.video-dialog__head p {
  margin: 0;
}

.video-dialog__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ridge);
  border-radius: 50%;
  color: var(--text);
  background: var(--panel-soft);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}

.video-dialog__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.video-dialog__link {
  display: inline-block;
  margin: 16px 22px 22px;
  color: var(--growth-bright);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--ridge);
}

@keyframes corruptBlink {
  0%, 82%, 100% {
    border-color: var(--danger-hot);
  }
  86%, 94% {
    border-color: var(--danger-cta);
  }
}

@keyframes restoreFill {
  from {
    width: 0;
  }
}

@media (max-width: 840px) {
  .site-footer--team {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__team-copy {
    justify-items: center;
  }

  .site-footer--team .site-footer__team-image {
    max-width: 140px;
  }

  .site-footer__nav {
    justify-content: center;
  }

  .site-footer__links {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: 82px 14px auto 14px;
    display: none;
    grid-template-columns: 1fr;
    padding: 14px;
    border: 1.5px solid var(--ridge);
    border-radius: var(--radius);
    background: var(--night);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    width: 100%;
    color: var(--white);
  }

  .hero,
  .chapter,
  .chapter:nth-child(even),
  .section-head,
  .signal-panel,
  .codex-layout,
  .island-layout {
    grid-template-columns: 1fr;
  }

  .codex-layout {
    align-items: start;
  }

  .codex-list-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .codex-list-panel .drawer-list {
    overflow: visible;
  }

  .chapter:nth-child(even) .chapter-copy {
    order: 0;
  }

  .index-grid,
  .detail-grid,
  .node-grid,
  .route-link,
  .chapter-status {
    grid-template-columns: 1fr;
  }

  .image-frame {
    transform: none;
  }

  .image-frame img {
    min-height: 280px;
    transform: scale(1.02);
  }

  .wide-frame {
    aspect-ratio: 16 / 10;
  }

  .home-hero {
    min-height: auto;
    padding: 88px 18px 96px;
    background-position: 58% center;
  }

  .home-hero .hero-copy {
    padding: 18px;
    border-left-color: rgba(237, 243, 240, 0.22);
    background: rgba(13, 20, 24, 0.22);
  }

  h1 {
    max-width: 13ch;
  }
}

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

/* 2026 home expansion: dual-theme editorial landscape */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1418;
  --surface: #172329;
  --surface-raised: #1C2B31;
  --fg: #EDF3F0;
  --muted-text: #B8C7C5;
  --border: #31533E;
  --accent: #69B509;
  --black: var(--bg);
  --night: #111B20;
  --panel: var(--surface);
  --elevated: var(--surface-raised);
  --body: var(--fg);
  --muted: var(--muted-text);
  --line: var(--border);
  --ridge: var(--border);
  --white: #F2F7F4;
  --paper: #DBCCAF;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(95% 0.035 94);
  --surface: oklch(99% 0.018 100);
  --surface-raised: oklch(97% 0.026 105);
  --fg: oklch(26% 0.038 175);
  --muted-text: oklch(46% 0.038 165);
  --border: oklch(73% 0.055 145);
  --accent: oklch(58% 0.126 168);
  --black: var(--bg);
  --night: oklch(92% 0.042 112);
  --panel: var(--surface);
  --elevated: var(--surface-raised);
  --body: var(--fg);
  --muted: var(--muted-text);
  --line: var(--border);
  --ridge: var(--border);
  --white: oklch(23% 0.04 175);
  --paper: oklch(37% 0.05 94);
  --growth: oklch(48% 0.12 150);
  --growth-dark: oklch(39% 0.1 150);
  --growth-bright: oklch(56% 0.13 142);
  --teal: oklch(42% 0.075 190);
  --sand: oklch(72% 0.06 82);
  --shadow: 5px 6px 0 color-mix(in oklch, var(--fg) 16%, transparent);
  --shadow-soft: 0 24px 70px color-mix(in oklch, var(--fg) 13%, transparent);
}

body {
  background: var(--bg);
  transition: background-color 220ms ease, color 220ms ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 78% 8%, rgba(10, 47, 29, 0.2), transparent 24rem),
    radial-gradient(circle at 8% 18%, rgba(3, 58, 60, 0.16), transparent 24rem),
    var(--bg);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 84% 10%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 28rem),
    linear-gradient(180deg, var(--bg), oklch(92% 0.045 112) 58%, oklch(90% 0.046 83));
}

html[data-theme="light"] body::before {
  opacity: 0.28;
}

.site-header {
  background: color-mix(in oklch, var(--bg) 78%, transparent);
}

.site-header.is-scrolled {
  background: color-mix(in oklch, var(--bg) 94%, transparent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 2px 3px 0 color-mix(in oklch, var(--fg) 14%, transparent);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.status-strip {
  display: none;
}

.btn.primary {
  border-color: var(--growth);
  background: linear-gradient(180deg, color-mix(in oklch, var(--growth) 82%, white), var(--growth));
  color: #FFFFFF;
  box-shadow: 0 8px 0 color-mix(in oklch, var(--growth-dark) 76%, black), 0 16px 28px color-mix(in oklch, var(--growth) 26%, transparent);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  border-color: var(--growth-bright);
  transform: translateY(-2px);
}

html[data-theme="light"] .nav-menu a[aria-current="page"] {
  color: var(--fg);
  background: color-mix(in oklch, var(--accent) 14%, transparent);
}

html[data-theme="light"] .story-hero-copy,
html[data-theme="light"] .story-hero-copy h1,
html[data-theme="light"] .story-hero-copy > p:last-child {
  color: #FFFFFF;
}

html[data-theme="light"] .story-hero-copy .story-kicker {
  color: #E8EEE9;
}

html[data-theme="light"] [data-codex-page] > .section:nth-of-type(even) {
  background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 7%, transparent), transparent 72%);
}

.home-page {
  max-width: none;
  padding-top: 0;
}

.home-hero-expanded {
  min-height: min(900px, calc(100svh - 82px));
}

.home-hero-expanded .hero-copy {
  max-width: 760px;
}

.home-hero-expanded h1,
.home-hero-expanded .lead,
.home-hero-expanded .hero-kicker,
.final-scene h2,
.final-scene p {
  color: #F2F7F4;
}

.hero-kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #DBCCAF;
}

.hero-scroll {
  position: absolute;
  right: clamp(20px, 6vw, 92px);
  bottom: clamp(24px, 5vw, 58px);
  z-index: 2;
  margin: 0;
  color: rgba(242, 247, 244, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.scene-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(90px, 10vw, 148px) 0;
}

.scene-section + .scene-section {
  border-top: 1px solid var(--border);
}

.scene-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(38px, 6vw, 74px);
}

.scene-heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.scene-heading > p {
  max-width: 60ch;
  color: var(--muted);
}

.scene-number {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.scene-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loop-layout,
.kit-layout,
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
}

.loop-image {
  min-height: 660px;
}

.loop-steps,
.journey-stops {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.loop-steps li,
.journey-stops li {
  position: relative;
  padding: 22px 0 22px 54px;
  border-top: 1px solid var(--border);
  counter-increment: steps;
}

.loop-steps li::before {
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--muted);
  content: counter(steps, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.loop-steps b {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 18px;
}

.loop-steps span,
.journey-stops p,
.kit-list p,
.companion-list p {
  color: var(--muted);
}

.kit-layout {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
}

.kit-list article {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.kit-list article:last-child {
  border-bottom: 1px solid var(--border);
}

.kit-list article > span,
.companion-list article > span,
.journey-stops li > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.kit-list h3 {
  font-size: clamp(23px, 3vw, 34px);
}

.kit-image {
  min-height: 620px;
}

.companion-panorama {
  aspect-ratio: 16 / 7;
  margin-bottom: 42px;
}

.companion-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.companion-list article {
  min-height: 300px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.companion-list article:first-child {
  padding-left: 0;
}

.companion-list article:last-child {
  padding-right: 0;
  border-right: 0;
}

.companion-list h3 {
  font-size: clamp(21px, 2.2vw, 28px);
}

.journey-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.journey-map {
  min-height: 650px;
}

.journey-stops {
  counter-reset: none;
}

.journey-stops li {
  padding: 30px 0;
}

.journey-stops h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.final-scene {
  position: relative;
  width: 100vw;
  min-height: 700px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: -76px;
  padding: clamp(96px, 12vw, 180px) clamp(22px, 9vw, 150px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 17, 20, 0.88), rgba(8, 17, 20, 0.3)),
    url("./images/world-horizon.png") center / cover no-repeat;
}

.final-scene > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.final-scene h2 {
  font-size: clamp(42px, 6vw, 78px);
}

.final-scene p:not(.section-label) {
  max-width: 54ch;
  font-size: clamp(17px, 2vw, 21px);
}

html[data-theme="light"] .index-card,
html[data-theme="light"] .note-card,
html[data-theme="light"] .drawer-item,
html[data-theme="light"] .route-card,
html[data-theme="light"] .region-node,
html[data-theme="light"] .compat-box {
  color: var(--fg);
}

html[data-theme="light"] .route-card.next {
  border-color: color-mix(in oklch, var(--orange) 72%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--orange) 15%, var(--surface)), var(--surface) 68%);
  color: var(--fg);
  box-shadow: 5px 6px 0 color-mix(in oklch, var(--orange) 22%, transparent);
}

html[data-theme="light"] .route-card.next .meta {
  color: color-mix(in oklch, var(--orange) 76%, var(--fg));
}

html[data-theme="light"] .route-card.next:hover,
html[data-theme="light"] .route-card.next:focus-visible {
  border-color: var(--orange);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--orange) 22%, var(--surface)), var(--surface) 72%);
}

@media (max-width: 1080px) {
  .scene-heading {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .scene-heading > p {
    grid-column: 2;
  }

  .companion-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .companion-list article:nth-child(2) {
    border-right: 0;
  }

  .companion-list article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 840px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-toggle {
    order: 2;
  }

  .theme-toggle {
    order: 1;
    min-width: 48px;
  }

  .theme-toggle [data-theme-label] {
    display: none;
  }

  .nav-menu {
    order: 3;
  }

  .scene-section {
    padding: 84px 0;
  }

  .scene-heading,
  .loop-layout,
  .kit-layout,
  .journey-layout {
    grid-template-columns: 1fr;
  }

  .scene-heading > p {
    grid-column: auto;
  }

  .scene-number {
    width: 54px;
  }

  .loop-image,
  .kit-image,
  .journey-map {
    min-height: 420px;
  }

  .kit-list {
    order: 2;
  }

  .companion-panorama {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .home-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-link img {
    width: 132px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .home-hero-expanded h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-scroll {
    display: none;
  }

  .loop-image,
  .kit-image,
  .journey-map {
    min-height: 320px;
  }

  .companion-list {
    grid-template-columns: 1fr;
  }

  .companion-list article,
  .companion-list article:first-child,
  .companion-list article:last-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .companion-list article:last-child {
    border-bottom: 0;
  }

  .final-scene {
    min-height: 620px;
    padding: 90px 22px;
  }
}

/* Interactive island explorer */
.island-explorer {
  overflow: hidden;
}

.island-picker,
.village-picker-section,
.selected-region,
.island-animals,
.island-route {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.island-picker {
  padding: clamp(68px, 8vw, 112px) 0 34px;
}

.island-picker-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: 40px;
}

.island-picker-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.island-picker-heading h1 {
  max-width: 11ch;
  color: var(--fg);
  font-size: clamp(46px, 6.5vw, 82px);
}

.island-picker-heading > p:last-child {
  max-width: 48ch;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 17px;
}

.island-tabs,
.village-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.island-tab,
.village-tab {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.island-tab::after,
.village-tab::after {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.island-tab:hover,
.village-tab:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
}

.island-tab[aria-selected="true"],
.village-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--surface) 86%, var(--accent));
}

.island-tab[aria-selected="true"]::after,
.village-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.island-tab img,
.village-tab img {
  width: 100%;
  height: 68px;
  border-radius: 3px;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.74);
  transition: filter 180ms ease, transform 180ms ease;
}

.island-tab[aria-selected="true"] img,
.village-tab[aria-selected="true"] img {
  filter: saturate(1.08) brightness(0.96);
  transform: scale(1.025);
}

html[data-theme="light"] .island-tab img,
html[data-theme="light"] .village-tab img {
  filter: saturate(0.78) brightness(1.03);
}

html[data-theme="light"] .island-tab[aria-selected="true"] img,
html[data-theme="light"] .village-tab[aria-selected="true"] img {
  filter: saturate(1.08) brightness(1.08);
}

.island-tab span,
.village-tab span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.island-tab small,
.village-tab small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.island-hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 70vw, 780px);
  overflow: hidden;
  background: var(--night);
}

.island-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 360ms ease, transform 760ms cubic-bezier(0.23, 1, 0.32, 1);
}

.island-hero-stage.is-changing .island-hero-image {
  opacity: 0;
  transform: scale(1.035);
}

.island-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 15, 18, 0.84) 0%, rgba(7, 15, 18, 0.34) 58%, rgba(7, 15, 18, 0.16)),
    linear-gradient(180deg, rgba(7, 15, 18, 0.06) 50%, rgba(7, 15, 18, 0.64));
}

html[data-theme="light"] .island-hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 36, 29, 0.78) 0%, rgba(16, 36, 29, 0.28) 60%, rgba(16, 36, 29, 0.08)),
    linear-gradient(180deg, rgba(16, 36, 29, 0.04) 52%, rgba(16, 36, 29, 0.48));
}

.island-hero-copy {
  position: absolute;
  left: max(clamp(24px, 8vw, 140px), calc((100vw - 1240px) / 2));
  bottom: clamp(50px, 8vw, 104px);
  z-index: 2;
  max-width: 680px;
}

.island-hero-copy > p:first-child {
  margin-bottom: 12px;
  color: #DBCCAF;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.island-hero-copy h2 {
  margin-bottom: 18px;
  color: #F2F7F4;
  font-size: clamp(46px, 7vw, 88px);
}

.island-hero-copy > p:last-child {
  max-width: 56ch;
  margin-bottom: 0;
  color: rgba(242, 247, 244, 0.86);
  font-size: clamp(16px, 1.8vw, 21px);
}

.village-picker-section,
.island-animals {
  padding: clamp(86px, 10vw, 136px) 0;
}

.explorer-section-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(280px, 0.66fr);
  gap: 26px 42px;
  align-items: start;
  margin-bottom: 42px;
}

.explorer-section-head > span {
  padding-top: 9px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.explorer-section-head h2 {
  margin-bottom: 0;
}

.explorer-section-head > p:last-child {
  color: var(--muted);
}

.village-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.village-tab {
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 112px;
}

.village-tab img {
  height: 88px;
}

.selected-region {
  display: grid;
  grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  padding: clamp(38px, 6vw, 72px) 0 clamp(94px, 11vw, 154px);
  border-top: 1px solid var(--border);
}

.selected-region-copy {
  position: sticky;
  top: 112px;
}

.selected-region-copy h2 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
}

.region-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--fg);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.region-keywords i {
  width: 26px;
  height: 1px;
  background: var(--border);
}

.region-summary {
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
}

.region-gallery {
  min-width: 0;
  outline: none;
  touch-action: pan-y;
}

.gallery-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.gallery-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: translateX(0) scale(1.01);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-viewport img.is-changing {
  opacity: 0;
}

.gallery-viewport img.is-changing.is-next {
  transform: translateX(-24px) scale(1.02);
}

.gallery-viewport img.is-changing.is-prev {
  transform: translateX(24px) scale(1.02);
}

.gallery-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.gallery-controls button {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.gallery-controls button:first-child {
  justify-self: start;
}

.gallery-controls button:last-child {
  justify-self: end;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--surface) 88%, var(--accent));
}

.gallery-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.gallery-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.island-animals {
  padding: clamp(72px, 8vw, 118px) 0 clamp(84px, 10vw, 132px);
  border-top: 1px solid var(--border);
  scroll-margin-top: 112px;
}

.island-animals__title {
  margin: 0 0 clamp(28px, 4vw, 40px);
  color: var(--fg);
  font-size: clamp(34px, 4.8vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.island-animal-detail {
  display: grid;
  gap: 34px;
}

.island-animal-detail__item {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  min-height: clamp(420px, 48vw, 620px);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--surface) 86%, var(--forest)), color-mix(in oklch, var(--bg) 84%, var(--surface)));
}

.island-animal-detail__visual {
  align-self: center;
  width: calc(100% - clamp(18px, 2.5vw, 40px));
  aspect-ratio: 1 / 1;
  margin: 0 0 0 clamp(18px, 2.5vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in oklch, var(--growth) 20%, transparent), transparent 42%),
    color-mix(in oklch, var(--surface) 82%, var(--forest));
}

.island-animal-detail__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--animal-position, center);
}

.island-animal-detail__visual--empty {
  display: grid;
  place-items: center;
}

.island-animal-detail__visual--empty::before {
  width: min(38%, 156px);
  aspect-ratio: 1 / 1;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  border-radius: 50%;
  background: color-mix(in oklch, var(--surface) 84%, var(--forest));
  content: "";
}

.island-animal-detail__copy {
  display: grid;
  align-content: center;
  padding: clamp(36px, 5vw, 72px);
}

.island-animal-detail__species {
  margin: 0 0 18px;
  color: var(--growth-bright);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.island-animal-detail__copy h3 {
  margin: 0 0 24px;
  color: var(--fg);
  font-size: clamp(40px, 6vw, 78px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.island-animal-detail__copy p:last-child {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.72;
}

.island-route {
  margin-top: 0;
  margin-bottom: 94px;
}

@media (max-width: 980px) {
  .island-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .village-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-section-head {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .explorer-section-head > p:last-child {
    grid-column: 2;
  }
}

/* Immersive single-flow island layout */
.island-immersive-hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  background: var(--night);
}

.island-immersive-hero.is-changing .island-hero-image {
  opacity: 0;
  transform: scale(1.035);
}

.island-immersive-hero .island-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 15, 18, 0.8) 0%, rgba(7, 15, 18, 0.3) 60%, rgba(7, 15, 18, 0.08)),
    linear-gradient(180deg, rgba(7, 15, 18, 0.18) 0%, rgba(7, 15, 18, 0.08) 38%, rgba(7, 15, 18, 0.72) 100%);
}

html[data-theme="light"] .island-immersive-hero .island-hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 36, 29, 0.74) 0%, rgba(18, 36, 29, 0.25) 60%, rgba(18, 36, 29, 0.06)),
    linear-gradient(180deg, rgba(18, 36, 29, 0.12) 0%, rgba(18, 36, 29, 0.04) 42%, rgba(18, 36, 29, 0.58) 100%);
}

.island-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  min-height: calc(100svh - 82px);
  margin-inline: auto;
  padding: clamp(118px, 14vw, 180px) 0 clamp(50px, 7vw, 84px);
}

.island-page-title {
  position: absolute;
  top: clamp(46px, 7vw, 84px);
  left: 0;
  margin: 0;
  color: rgba(242, 247, 244, 0.9);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.island-immersive-hero .island-hero-copy {
  position: static;
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.island-immersive-hero .island-hero-copy > p:first-child {
  margin-bottom: 10px;
  color: #DBCCAF;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.island-immersive-hero .island-hero-copy h1 {
  max-width: none;
  margin-bottom: 18px;
  color: #F2F7F4;
  font-size: clamp(54px, 8vw, 96px);
}

.island-immersive-hero .island-hero-copy > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: rgba(242, 247, 244, 0.84);
  font-size: clamp(16px, 1.8vw, 20px);
}

.island-immersive-hero .island-tabs,
.village-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.island-immersive-hero .island-tabs {
  width: fit-content;
  border-bottom: 1px solid rgba(242, 247, 244, 0.28);
}

.island-immersive-hero .island-tab,
.village-tab {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 0;
  overflow: visible;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}

.island-immersive-hero .island-tab {
  color: rgba(242, 247, 244, 0.62);
}

.village-tab {
  color: var(--muted);
}

.island-immersive-hero .island-tab::after,
.village-tab::after {
  display: none;
}

.island-immersive-hero .island-tab:hover,
.village-tab:hover {
  border-color: currentColor;
  background: transparent;
  transform: none;
}

.island-immersive-hero .island-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: transparent;
  color: #F2F7F4;
  font-weight: 800;
}

.village-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: transparent;
  color: var(--fg);
  font-weight: 800;
}

.village-picker-section {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
  padding: clamp(30px, 4vw, 48px) 0 20px;
  border: 0;
  background: transparent;
}

.village-picker-section .section-label {
  margin-bottom: 8px;
}

.village-tabs {
  gap: clamp(20px, 3.5vw, 44px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.selected-region {
  padding: clamp(42px, 6vw, 72px) 0 clamp(72px, 9vw, 118px);
  border-top: 0;
}

.selected-region-copy {
  top: 102px;
}

@media (max-width: 760px) {
  .island-immersive-hero {
    min-height: 720px;
  }

  .island-hero-content {
    width: calc(100% - 36px);
    min-height: 720px;
    padding: 118px 0 46px;
  }

  .island-page-title {
    top: 42px;
  }

  .island-immersive-hero .island-hero-copy h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .island-immersive-hero .island-tabs {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
  }

  .island-immersive-hero .island-tab,
  .village-tab {
    flex: 0 0 auto;
    min-height: 48px;
  }

  .village-tabs {
    width: calc(100vw - 18px);
    margin-right: calc(50% - 50vw);
    padding-right: 18px;
  }

}

@media (max-width: 760px) {
  .island-picker-heading,
  .selected-region {
    grid-template-columns: 1fr;
  }

  .island-picker-heading .section-label {
    grid-column: auto;
  }

  .island-tabs,
  .village-tabs {
    width: calc(100vw - 18px);
    margin-right: calc(50% - 50vw);
    padding-right: 18px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .island-tab,
  .village-tab {
    flex: 0 0 min(78vw, 330px);
    min-height: 104px;
    scroll-snap-align: start;
  }

  .village-tab {
    flex-basis: min(82vw, 370px);
  }

  .island-hero-stage {
    min-height: 640px;
  }

  .island-hero-copy {
    left: 22px;
    right: 22px;
    bottom: 48px;
  }

  .selected-region-copy {
    position: static;
  }

  .gallery-viewport {
    width: calc(100vw - 36px);
    margin-left: calc(50% - 50vw + 18px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .island-picker,
  .village-picker-section,
  .selected-region,
  .island-animals,
  .island-route {
    width: calc(100% - 36px);
  }

  .island-picker {
    padding-top: 58px;
  }

  .island-picker-heading h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .island-tab,
  .village-tab {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .island-hero-stage {
    min-height: 560px;
  }

  .island-hero-image {
    object-position: 58% center;
  }

  .island-hero-copy h2 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .explorer-section-head {
    grid-template-columns: 1fr;
  }

  .explorer-section-head > span {
    width: 50px;
  }

  .explorer-section-head > p:last-child {
    grid-column: auto;
  }

  .gallery-controls button {
    min-width: 82px;
  }

  .island-animal-detail__item {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .island-animal-detail__visual {
    width: calc(100% - 16px);
    margin-left: 16px;
  }

  .island-animal-detail__copy {
    padding: 28px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .island-hero-image,
  .gallery-viewport img,
  .island-tab,
  .village-tab {
    transition: none !important;
  }
}

/* Island explorer hierarchy correction */
.island-intro {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
  padding: clamp(74px, 9vw, 132px) 0 clamp(64px, 8vw, 108px);
}

.island-intro h1 {
  max-width: none;
  margin-bottom: 24px;
  color: var(--fg);
  font-size: clamp(58px, 9vw, 112px);
}

.island-intro > p:last-child {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.island-picker {
  padding-top: clamp(54px, 7vw, 88px);
  border-top: 1px solid var(--border);
}

.island-select-heading {
  margin-bottom: 34px;
}

.island-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .island-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .island-intro {
    width: calc(100% - 36px);
    padding-top: 64px;
  }

  .island-intro h1 {
    font-size: clamp(54px, 18vw, 78px);
  }
}

/* Island data hierarchy and honest empty states */
.island-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--border);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--surface) 88%, var(--sand)), var(--surface));
  color: var(--muted);
  text-align: center;
}

.gallery-placeholder[hidden] {
  display: none;
}

.gallery-placeholder span {
  color: var(--fg);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gallery-placeholder p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .island-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .island-tabs {
    grid-template-columns: 1fr;
  }
}

/* Homepage landing hub */
.home-hub {
  max-width: none;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--bg) 88%, var(--teal)), var(--bg) 30%, color-mix(in oklch, var(--bg) 92%, var(--forest)));
}

.home-hub h1,
.home-hub h2,
.home-hub h3,
.home-hub p,
.home-hub a,
.home-hub button,
.home-hub span,
.home-hub strong {
  word-break: keep-all;
}

.home-hub-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(680px, calc(100svh - 82px));
  isolation: isolate;
}

.home-hub-hero-image,
.home-hub-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hub-hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.08) brightness(0.88);
}

.home-hub-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 15, 18, 0.88) 0%, rgba(7, 15, 18, 0.58) 44%, rgba(7, 15, 18, 0.08) 76%),
    linear-gradient(180deg, rgba(7, 15, 18, 0.08) 42%, rgba(7, 15, 18, 0.86) 100%);
}

.home-hub-hero-copy {
  width: min(1240px, calc(100% - clamp(36px, 10vw, 152px)));
  margin: 0 auto;
  padding: clamp(120px, 15vh, 190px) 0 clamp(72px, 10vh, 128px);
}

.home-hub-kicker,
.home-section-heading .section-label,
.home-final-copy .section-label {
  margin-bottom: 16px;
  color: var(--growth-bright);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hub-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: clamp(46px, 7.6vw, 104px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.home-hub-lead {
  max-width: 60ch;
  margin: 28px 0 0;
  color: oklch(92% 0.018 130);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
}

.home-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 30px;
  color: oklch(86% 0.04 125);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.home-hub-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.home-hub-meta span + span::before {
  width: 4px;
  height: 4px;
  margin-right: 18px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.home-compare,
.home-bond,
.home-nav-hub,
.home-final-cta {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 20px clamp(36px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.home-section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.home-section-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--fg);
  font-size: clamp(36px, 5.4vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.home-section-heading > p:last-child {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.72;
}

.home-compare {
  padding: clamp(64px, 8vw, 112px) 0 clamp(92px, 12vw, 168px);
}

.compare-heading h2 {
  max-width: 12ch;
}

.home-compare-frame {
  min-height: clamp(420px, 58vw, 780px);
  border-color: transparent;
  border-radius: 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  contain: paint;
}

.home-compare-frame img {
  filter: none;
}

.home-compare-frame .compare-handle {
  width: 62px;
  height: 62px;
  border-color: oklch(96% 0.012 130);
  background: var(--growth-bright);
  color: var(--black);
}

.home-compare-actions {
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.home-bond {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 7vw, 112px);
  align-items: center;
  padding: clamp(72px, 9vw, 132px) 0;
  border-top: 1px solid var(--border);
}

.bond-image {
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bond-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.bond-copy h2 {
  max-width: 11ch;
  margin-bottom: 24px;
  color: var(--fg);
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.bond-copy > p:not(.section-label) {
  max-width: 58ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.78;
}

.home-nav-hub {
  padding: clamp(84px, 11vw, 150px) 0;
  border-top: 1px solid var(--border);
}

.home-animals + .home-nav-hub {
  padding-top: clamp(60px, 8vw, 112px);
}

.hub-heading {
  grid-template-columns: 1fr;
}

.hub-heading h2 {
  max-width: 14ch;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: minmax(260px, auto);
  gap: clamp(14px, 2vw, 22px);
}

.hub-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 300px;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  color: oklch(96% 0.012 130);
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.hub-tile::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 15, 18, 0.04) 22%, rgba(7, 15, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 15, 18, 0.58), transparent 70%);
  content: "";
}

.hub-tile:hover img,
.hub-tile:focus-visible img {
  transform: scale(1.035);
}

.hub-tile:focus-visible {
  outline: 3px solid var(--growth-bright);
  outline-offset: 4px;
}

.hub-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
}

[data-od-id="hub-world"] img {
  object-position: 58% center;
}

[data-od-id="hub-gameplay"] img {
  object-position: center 48%;
}

[data-od-id="hub-islands"] img {
  object-position: center 42%;
}

[data-od-id="hub-codex"] img {
  object-position: center 54%;
}

.hub-tile span {
  margin-bottom: 10px;
  color: var(--growth-bright);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hub-tile strong {
  max-width: 18ch;
  color: inherit;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.hub-tile-large {
  grid-row: span 2;
  min-height: 620px;
}

.hub-tile-wide {
  grid-column: span 2;
}

.home-final-cta {
  position: relative;
  width: 100%;
  min-height: min(860px, 86vw);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.home-final-cta img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04) brightness(0.86);
}

.home-final-cta::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 15, 18, 0.04) 38%, rgba(7, 15, 18, 0.9) 100%),
    linear-gradient(90deg, rgba(7, 15, 18, 0.74), rgba(7, 15, 18, 0.14) 68%);
  content: "";
}

.home-final-copy {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin: 0 auto;
  padding: clamp(86px, 12vw, 160px) 0;
}

.home-final-copy h2 {
  max-width: 820px;
  margin: 0 0 22px;
  color: oklch(96% 0.012 130);
  font-size: clamp(38px, 6vw, 82px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.home-final-copy > p:not(.section-label) {
  max-width: 54ch;
  margin-bottom: 30px;
  color: oklch(88% 0.02 130);
  font-size: clamp(16px, 1.7vw, 20px);
}

html[data-theme="light"] .home-hub {
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--bg) 82%, var(--teal)), var(--bg) 34%, color-mix(in oklch, var(--bg) 90%, var(--forest)));
}

html[data-theme="light"] .home-hub-hero-shade,
html[data-theme="light"] .home-final-cta::after {
  background:
    linear-gradient(90deg, rgba(15, 37, 33, 0.72) 0%, rgba(15, 37, 33, 0.36) 48%, rgba(15, 37, 33, 0.08) 78%),
    linear-gradient(180deg, rgba(15, 37, 33, 0.04) 38%, rgba(15, 37, 33, 0.78) 100%);
}

.home-hub-hero,
.home-hub-hero h1,
.home-hub-hero .home-hub-lead,
.home-hub-hero .home-hub-kicker,
.home-hub-hero .home-hub-meta,
.home-hub-hero .btn {
  color: #FFFFFF;
}

html[data-theme="light"] .home-hub-hero,
html[data-theme="light"] .home-hub-hero h1,
html[data-theme="light"] .home-hub-hero .home-hub-lead,
html[data-theme="light"] .home-hub-hero .home-hub-kicker,
html[data-theme="light"] .home-hub-hero .home-hub-meta,
html[data-theme="light"] .home-hub-hero .btn,
html[data-theme="light"] .home-hub-hero .btn.primary {
  color: #FFFFFF;
}

@media (max-width: 980px) {
  .home-section-heading,
  .home-bond {
    grid-template-columns: 1fr;
  }

  .bond-image,
  .bond-image img {
    min-height: 430px;
  }

  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-tile-large {
    grid-row: span 1;
    min-height: 420px;
  }

  .hub-tile-wide {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .home-hub-hero {
    min-height: 720px;
  }

  .home-hub-hero-image {
    object-position: 58% center;
  }

  .home-hub-hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 15, 18, 0.1) 0%, rgba(7, 15, 18, 0.72) 44%, rgba(7, 15, 18, 0.94) 100%);
  }

  .home-hub-hero-copy,
  .home-compare,
  .home-bond,
  .home-nav-hub,
  .home-final-copy {
    width: calc(100% - 36px);
  }

  .home-hub-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 48px);
  }

  .home-section-heading h2,
  .bond-copy h2,
  .home-final-copy h2 {
    max-width: 100%;
    font-size: clamp(30px, 9.2vw, 48px);
  }

  .home-hub-meta {
    display: grid;
    gap: 8px;
  }

  .home-hub-meta span + span::before {
    display: none;
  }

  .home-compare-frame {
    min-height: 360px;
  }

  .home-compare-actions {
    justify-content: flex-start;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-tile,
  .hub-tile-large,
  .hub-tile-wide {
    grid-column: auto;
    min-height: 320px;
  }

  .home-final-cta {
    min-height: 720px;
  }

  .home-final-copy h2 {
    font-size: clamp(34px, 11vw, 56px);
  }
}

/* Story — cinematic scroll narrative */
.story-page {
  max-width: none;
  padding: 0 0 clamp(74px, 10vw, 140px);
}

.story-hero {
  position: relative;
  min-height: max(680px, calc(100svh - 82px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.story-hero-image,
.story-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  animation: story-hero-arrive 1.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.story-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 15, 16, 0.86) 0%, rgba(8, 15, 16, 0.48) 44%, rgba(8, 15, 16, 0.05) 74%),
    linear-gradient(180deg, rgba(8, 15, 16, 0.08) 45%, rgba(8, 15, 16, 0.8) 100%);
}

.story-hero-copy {
  width: min(1240px, calc(100% - clamp(36px, 10vw, 152px)));
  margin: 0 auto;
  padding: clamp(110px, 16vh, 180px) 0 clamp(96px, 13vh, 148px);
  color: oklch(96% 0.018 120);
}

.story-kicker {
  margin: 0 0 18px;
  color: oklch(82% 0.09 145);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.story-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 6.5vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.story-hero-copy > p:last-child {
  max-width: 62ch;
  margin: 30px 0 0;
  color: oklch(91% 0.018 120);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.7;
}

.story-scroll-cue {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: oklch(91% 0.018 120);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.story-scroll-cue span {
  display: block;
  width: 42px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  animation: story-line 2.4s ease-in-out infinite;
}

.story-sequence {
  display: grid;
  gap: clamp(120px, 17vw, 260px);
  padding-top: clamp(110px, 14vw, 210px);
}

.story-scene {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.story-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  max-width: 660px;
}

.story-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.story-marker i {
  width: clamp(38px, 6vw, 86px);
  height: 1px;
  background: var(--border);
}

.story-copy h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.story-copy > p {
  max-width: 62ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.76;
}

.story-copy .story-aside {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-size: 15px;
}

.story-scene-panorama .story-visual,
.story-scene-restored .story-visual {
  aspect-ratio: 16 / 8.6;
}

.story-scene-panorama .story-copy {
  margin: clamp(38px, 6vw, 76px) 0 0 clamp(0px, 7vw, 110px);
}

.story-scene-split {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.story-scene-split .story-visual {
  aspect-ratio: 4 / 5;
}

.story-scene-reverse .story-visual {
  grid-column: 2;
}

.story-scene-reverse .story-copy {
  grid-column: 1;
  grid-row: 1;
}

.story-scene-unbalanced {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}

.story-scene-unbalanced::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: color-mix(in oklch, var(--surface) 82%, var(--teal));
  content: "";
}

.story-scene-vita {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(860px, 78vw);
}

.story-scene-vita .story-visual {
  position: absolute;
  inset: 0;
  height: 100%;
}

.story-scene-vita .story-copy {
  z-index: 1;
  max-width: 620px;
  margin: 0 0 clamp(42px, 7vw, 88px) clamp(24px, 6vw, 88px);
  padding: clamp(28px, 4vw, 48px);
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  color: var(--fg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.story-scene-intimate {
  width: min(1040px, calc(100% - clamp(36px, 10vw, 144px)));
}

.story-scene-intimate .story-visual {
  aspect-ratio: 16 / 9;
}

.story-scene-intimate .story-copy {
  margin: clamp(42px, 6vw, 72px) auto 0;
}

.story-scene-restored {
  width: min(1440px, calc(100% - clamp(28px, 5vw, 72px)));
}

.story-scene-restored .story-copy {
  margin: clamp(42px, 6vw, 78px) clamp(18px, 8vw, 126px) 0 auto;
}

.story-scene-finale {
  position: relative;
  width: 100%;
  min-height: min(930px, 82vw);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.story-scene-finale .story-visual {
  position: absolute;
  inset: 0;
  height: 100%;
  box-shadow: none;
}

.story-scene-finale .story-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 16, 0.02) 38%, rgba(8, 15, 16, 0.86) 100%);
  content: "";
}

.story-scene-finale .story-copy {
  z-index: 1;
  width: min(840px, calc(100% - 40px));
  max-width: 840px;
  margin: 0 auto clamp(54px, 9vw, 112px);
  color: oklch(96% 0.018 120);
  text-align: center;
}

.story-scene-finale .story-marker {
  justify-content: center;
  color: oklch(84% 0.03 115);
}

.story-scene-finale .story-copy h2,
.story-scene-finale .story-copy > p {
  color: inherit;
}

.story-scene-finale .story-copy > p {
  margin-inline: auto;
}

.story-route {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin: clamp(78px, 11vw, 150px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.story-route a {
  display: grid;
  gap: 4px;
  min-height: 44px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.story-route a:last-child {
  text-align: right;
}

.story-route span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.story-reveal {
  opacity: 1;
  transform: none;
}

.story-reveal.is-entering {
  animation: story-reveal-in 800ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes story-hero-arrive {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes story-line {
  0%, 100% { transform: scaleX(1); opacity: 0.55; }
  50% { transform: scaleX(0.45); opacity: 1; }
}

@keyframes story-reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .story-hero {
    min-height: 740px;
  }

  .story-hero-shade {
    background: linear-gradient(180deg, rgba(8, 15, 16, 0.08) 22%, rgba(8, 15, 16, 0.82) 74%, rgba(8, 15, 16, 0.94) 100%);
  }

  .story-hero-image {
    object-position: 62% center;
  }

  .story-hero-copy {
    width: calc(100% - 36px);
    padding-bottom: 78px;
  }

  .story-scroll-cue {
    display: none;
  }

  .story-sequence {
    gap: 112px;
    padding-top: 96px;
  }

  .story-scene,
  .story-scene-intimate,
  .story-scene-restored {
    width: calc(100% - 36px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-block: 0;
  }

  .story-scene-unbalanced::before {
    inset: -54px calc(50% - 50vw);
  }

  .story-scene .story-visual,
  .story-scene-vita .story-visual,
  .story-scene-finale .story-visual {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .story-scene .story-copy,
  .story-scene-vita .story-copy,
  .story-scene-finale .story-copy {
    order: 2;
    width: 100%;
    max-width: none;
    margin: 32px 0 0;
    padding: 0;
    background: none;
    box-shadow: none;
    text-align: left;
    backdrop-filter: none;
  }

  .story-scene-finale {
    overflow: visible;
  }

  .story-scene-finale .story-visual::after {
    display: none;
  }

  .story-scene-finale .story-marker {
    justify-content: flex-start;
    color: var(--muted);
  }

  .story-scene-finale .story-copy h2,
  .story-scene-finale .story-copy > p {
    color: var(--fg);
  }
}

@media (max-width: 520px) {
  .story-hero {
    min-height: 700px;
  }

  .story-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .story-hero-copy > p:last-child {
    font-size: 15px;
  }

  .story-scene .story-visual,
  .story-scene-vita .story-visual,
  .story-scene-finale .story-visual {
    aspect-ratio: 1 / 1;
  }

  .story-copy h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .story-copy > p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero-image,
  .story-scroll-cue span {
    animation: none !important;
  }

  .story-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Homepage revisions: GIF sequence and animal links */
.home-play-scenes,
.home-animals {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.story-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(460px, 62svh, 680px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.story-split::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 1px;
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--growth-bright) 62%, transparent), transparent);
  content: "";
  opacity: 0.44;
  transform: translateX(-50%) skewX(-8deg);
  transform-origin: center;
}

.story-split__panel {
  position: relative;
  min-width: 0;
  display: grid;
  align-items: end;
  min-height: inherit;
  padding: clamp(48px, 6vw, 86px) clamp(34px, 7vw, 112px);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: oklch(96% 0.012 130);
}

.story-split__panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
}

.story-split__pollution {
  z-index: 2;
  margin-right: -4vw;
  padding-right: clamp(70px, 10vw, 156px);
  background-image: url("./images/story-isle-overflow.webp");
  clip-path: polygon(0 0, 100% 0, calc(100% - 6vw) 100%, 0 100%);
}

.story-split__pollution::before {
  background:
    linear-gradient(90deg, rgba(7, 15, 18, 0.9) 0%, rgba(30, 39, 29, 0.66) 48%, rgba(37, 23, 50, 0.32) 100%),
    linear-gradient(180deg, rgba(7, 15, 18, 0.1) 24%, rgba(7, 15, 18, 0.86) 100%);
}

.story-split__journey {
  z-index: 1;
  margin-left: -4vw;
  justify-items: end;
  padding-left: clamp(70px, 10vw, 156px);
  background-image: url("./images/world-map-hero.png");
  background-position: center;
  clip-path: polygon(6vw 0, 100% 0, 100% 100%, 0 100%);
  text-align: right;
}

.story-split__journey::before {
  background:
    linear-gradient(270deg, rgba(7, 15, 18, 0.82) 0%, rgba(5, 44, 42, 0.52) 44%, rgba(105, 181, 9, 0.14) 100%),
    linear-gradient(180deg, rgba(7, 15, 18, 0.02) 30%, rgba(7, 15, 18, 0.72) 100%);
}

.story-split__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 44ch);
}

.story-split__copy h2 {
  margin: 0 0 20px;
  color: inherit;
  font-size: clamp(36px, 5.2vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.story-split__copy p {
  margin: 0;
  color: oklch(88% 0.02 130);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.68;
}

.home-play-scenes {
  padding: clamp(76px, 10vw, 144px) 0 clamp(90px, 12vw, 164px);
  border-top: 1px solid var(--border);
}

.play-scenes-heading h2 {
  max-width: 12ch;
}

.play-scene-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.play-scene-list::before {
  position: absolute;
  left: 8%;
  right: 8%;
  top: clamp(132px, 14vw, 184px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
  content: "";
}

.play-scene {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
}

.play-scene figure {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--surface) 82%, rgb(83 68 92)), var(--surface));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.play-scene figure::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  content: attr(data-media-label) " 자산 대기";
}

.play-scene figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 15, 18, 0.36));
  content: "";
  pointer-events: none;
}

.play-scene img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.play-scene img.is-missing-media {
  visibility: hidden;
}

.play-scene span {
  color: var(--growth-bright);
  font-size: 12px;
  letter-spacing: 0.09em;
}

.play-scene h3 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(24px, 3vw, 38px);
}

.play-scene p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.play-scenes-cta {
  width: fit-content;
  margin-top: 34px;
}

.home-animals {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
  padding: clamp(72px, 9vw, 132px) 0;
  border-top: 1px solid var(--border);
}

.animal-overview-image {
  position: sticky;
  top: 112px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.animal-overview-image img {
  width: 100%;
  min-height: clamp(420px, 50vw, 640px);
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}

.animal-list-panel {
  min-width: 0;
}

.animal-heading {
  grid-template-columns: 1fr;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.animal-heading h2 {
  max-width: 12ch;
}

.animal-link-list {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1px;
  background: var(--border);
}

.animal-link {
  min-width: 0;
  display: grid;
  align-content: start;
  min-height: 236px;
  padding: clamp(22px, 3vw, 34px);
  background: color-mix(in oklch, var(--bg) 84%, var(--surface));
  color: var(--fg);
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.animal-link-featured {
  grid-row: span 2;
  min-height: 473px;
  align-content: end;
  background:
    linear-gradient(180deg, transparent, color-mix(in oklch, var(--bg) 86%, var(--forest))),
    color-mix(in oklch, var(--surface) 74%, var(--teal));
}

.animal-link:hover,
.animal-link:focus-visible {
  background: color-mix(in oklch, var(--surface) 78%, var(--forest));
  transform: translateY(-2px);
}

.animal-link:focus-visible {
  outline: 3px solid var(--growth-bright);
  outline-offset: 4px;
  z-index: 1;
}

.animal-link span {
  margin-bottom: 16px;
  color: var(--growth-bright);
  font-size: 12px;
  letter-spacing: 0.09em;
}

.animal-link strong {
  margin-bottom: 14px;
  color: var(--fg);
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.animal-link p {
  max-width: 36ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.animal-link em {
  align-self: end;
  color: var(--fg);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .home-animals {
    grid-template-columns: 1fr;
  }

  .animal-overview-image {
    position: static;
  }

  .animal-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 700px) {
  .home-play-scenes,
  .home-animals {
    width: calc(100% - 36px);
  }

  .play-scene-list,
  .animal-link-list {
    grid-template-columns: 1fr;
  }

  .play-scene,
  .play-scene:last-child {
    grid-column: auto;
  }

  .play-scene figure {
    margin-bottom: 14px;
  }

  .animal-overview-image img {
    min-height: 320px;
  }

  .animal-link,
  .animal-link-featured {
    grid-row: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-scene img,
  .hub-tile img,
  .animal-link,
  .play-scene {
    transition: none !important;
  }
}

/* Homepage animal carousel */
.home-play-scenes {
  width: min(1180px, calc(100% - clamp(36px, 8vw, 112px)));
}

.play-scene-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.play-scene,
.play-scene:last-child {
  grid-column: auto;
}

.play-scene figure {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.home-animals {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.animal-slider-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px clamp(24px, 5vw, 64px);
  align-items: end;
}

.animal-slider-head .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--growth-bright);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.animal-slider-head h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--fg);
  font-size: clamp(36px, 5.4vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.animal-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.animal-slide-btn {
  min-width: 64px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.animal-slide-btn:hover,
.animal-slide-btn:focus-visible {
  border-color: var(--growth-bright);
  outline: 0;
}

.animal-slide-btn[disabled] {
  opacity: 0.42;
  cursor: default;
}

.animal-slide-count {
  min-width: 54px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
}

.animal-slider-viewport {
  overflow: hidden;
  min-width: 0;
  padding: 2px;
  outline: none;
  touch-action: pan-y;
  cursor: grab;
}

.animal-slider-viewport:focus-visible {
  outline: 3px solid var(--growth-bright);
  outline-offset: 6px;
}

.animal-slider-viewport.is-dragging {
  cursor: grabbing;
}

.animal-slider-viewport.is-dragging,
.animal-slider-viewport.is-dragging * {
  user-select: none;
}

.animal-slider-track {
  --animal-gap: 16px;
  --animal-card-size: clamp(250px, 19vw, 280px);
  display: flex;
  gap: var(--animal-gap);
  transform: translateX(var(--animal-offset, 0px));
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.animal-slide {
  position: relative;
  flex: 0 0 var(--animal-card-size);
  min-width: 0;
  display: grid;
  align-items: end;
  min-height: clamp(320px, 29vw, 380px);
  padding: 18px 22px 18px 16px;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--border) 74%, transparent);
  background-color: var(--surface);
  background-image: var(--animal-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  color: oklch(96% 0.012 130);
  text-decoration: none;
}

.animal-card[data-animal="dudu"] {
  --animal-image: url("./images/animal-dudu.png");
}

.animal-card[data-animal="raku"] {
  --animal-image: url("./images/animal-raku.png");
}

.animal-card[data-animal="kuro"] {
  --animal-image: url("./images/animal-kuro.png");
}

.animal-card[data-animal="siru"] {
  --animal-image: url("./images/animal-siru.png");
}

.animal-slide::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 24%, rgba(105, 181, 9, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(7, 15, 18, 0.06) 16%, rgba(7, 15, 18, 0.2) 45%, rgba(7, 15, 18, 0.88) 100%);
  content: "";
  pointer-events: none;
  transform: scale(1);
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.animal-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(7, 15, 18, 0.14) 48%, rgba(7, 15, 18, 0.68) 100%),
    linear-gradient(180deg, transparent 34%, rgba(7, 15, 18, 0.84) 100%);
  pointer-events: none;
}

.animal-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  justify-items: end;
  text-align: right;
}

.animal-card__species {
  color: var(--growth-bright);
  font-size: 12px;
  letter-spacing: 0.09em;
}

.animal-slide:hover,
.animal-slide:focus-visible {
  border-color: var(--growth-bright);
}

.animal-slide:hover::before,
.animal-slide:focus-visible::before {
  transform: scale(1.025);
}

.animal-slide:hover .animal-card__arrow,
.animal-slide:focus-visible .animal-card__arrow {
  transform: translateX(5px);
  width: 68%;
}

.animal-slide:focus-visible {
  outline: 3px solid var(--growth-bright);
  outline-offset: -6px;
}

.animal-slide strong {
  color: inherit;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.animal-card__arrow {
  position: relative;
  display: block;
  width: 64%;
  height: 12px;
  margin-top: 14px;
  margin-left: auto;
  color: inherit;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    width 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.animal-card__arrow::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  content: "";
}

.animal-card__arrow::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 899px) {
  .play-scene-list {
    grid-template-columns: 1fr;
  }

  .play-scene-list::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .animal-slider-track {
    --animal-gap: 12px;
    --animal-card-size: 78vw;
  }

  .story-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-split::after {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform: translateY(-50%) skewY(-4deg);
  }

  .story-split__panel {
    min-height: clamp(300px, 58svh, 380px);
    padding: 54px 18px 42px;
    clip-path: none;
  }

  .story-split__pollution {
    margin-right: 0;
    margin-bottom: -28px;
    padding-bottom: 70px;
    background-position: 58% center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  }

  .story-split__journey {
    margin-left: 0;
    padding-top: 76px;
    background-position: 52% center;
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    text-align: left;
    justify-items: start;
  }

  .animal-slider-head {
    grid-template-columns: 1fr;
  }

  .animal-slider-controls {
    justify-content: flex-start;
  }

  .animal-slider-head h2 {
    max-width: 100%;
    font-size: clamp(30px, 9.2vw, 48px);
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .animal-slider-track {
    --animal-gap: 14px;
    --animal-card-size: clamp(220px, 34vw, 240px);
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .animal-slider-track {
    --animal-card-size: clamp(230px, 22vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animal-slider-track {
    transition: none !important;
  }
}

/* Responsive typography: keep Korean phrases together and avoid orphaned words. */
:where(h1, h2, h3) {
  overflow-wrap: break-word;
  word-break: keep-all;
  text-wrap: balance;
}

:where(p, li, dd, blockquote, .lead, .observation) {
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: pretty;
}

:where(.btn, .chip, .status-chip, .coords, .alert-label, .nav-menu a) {
  white-space: nowrap;
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(28px, 8.5vw, 42px);
    line-height: 1.16;
  }

  h3 {
    font-size: clamp(20px, 6.5vw, 26px);
    line-height: 1.3;
  }

  .lead {
    font-size: clamp(16px, 4.8vw, 19px);
    line-height: 1.68;
  }

  .gameplay-feature__copy h2 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.08;
  }

  .gameplay-feature__copy strong {
    font-size: clamp(19px, 6vw, 25px);
  }
}
