@property --logo-fill {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --logo-shine {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 22%;
}

:root {
  --bg: #070707;
  --fg: #f4f1ea;
  --muted: #8a8680;
  --accent: #e6c36b;
  --accent-2: #ffffff;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fill: 0;
  --enter: 1;
  --shine: 40%;
  --parx: 0px;
  --pary: 0px;
  --orbit: 0deg;
  --seal-scale: 1;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --stone-shine: 42%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.6s var(--ease);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.fx-canvas,
.vignette,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fx-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.vignette {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.4) 100%);
}

.grain {
  z-index: 3;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav-h);
  background: rgba(7, 7, 7, 0.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  height: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--accent);
  position: relative;
  flex-shrink: 0;
  transition: color 0.6s var(--ease);
}

body[data-theme="outro"] .logo {
  color: #e8f1f6;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-on {
  color: #111;
  background: var(--accent);
  transform: scale(1.06);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.sound-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: #fff;
}

.sound-toggle.is-on {
  color: #fff;
}

.sound-toggle .sound-ico {
  width: 24px;
  height: 24px;
  display: block;
}

.sound-toggle .sound-ico-on {
  display: none;
}

.sound-toggle.is-on .sound-ico-off {
  display: none;
}

.sound-toggle.is-on .sound-ico-on {
  display: block;
}

.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail a {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.rail a.is-on {
  background: var(--accent);
  transform: scale(1.55);
}

.chapter {
  position: relative;
  height: 320vh;
  z-index: 4;
  --fill: 0.42;
  --shine: 48%;
}

.chapter-hero {
  height: 380vh;
  --logo-fill: 0;
  --logo-shine: 22%;
}

.chapter-hero.logo-rising {
  animation: logo-rise 2.4s var(--ease) forwards 0.28s;
}

@keyframes logo-rise {
  from {
    --logo-fill: 0;
    --logo-shine: 22%;
  }
  to {
    --logo-fill: 1;
    --logo-shine: 80%;
  }
}

.chapter-hero .sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(210, 228, 245, 0.18) 0%, transparent 46%),
    radial-gradient(ellipse at 16% 12%, rgba(176, 208, 232, 0.1) 0%, transparent 34%),
    radial-gradient(ellipse at 86% 8%, rgba(200, 220, 238, 0.07) 0%, transparent 30%);
}

.snow-range {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 46vh;
  pointer-events: none;
  z-index: 0;
}

.snow-range .peak {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.peak-far {
  height: 100%;
  background: linear-gradient(180deg, rgba(176, 198, 218, 0.2) 0%, rgba(18, 28, 40, 0.55) 100%);
  clip-path: polygon(
    0 100%,
    0 78%,
    12% 64%,
    22% 74%,
    38% 48%,
    50% 60%,
    62% 32%,
    74% 54%,
    86% 44%,
    100% 70%,
    100% 100%
  );
}

.peak-mid {
  height: 86%;
  background: linear-gradient(180deg, rgba(228, 240, 250, 0.3) 0%, rgba(10, 16, 24, 0.72) 100%);
  clip-path: polygon(
    0 100%,
    5% 84%,
    16% 66%,
    26% 78%,
    40% 42%,
    50% 58%,
    61% 28%,
    70% 46%,
    78% 34%,
    88% 64%,
    100% 56%,
    100% 100%
  );
}

.peak-near {
  height: 52%;
  background: linear-gradient(180deg, rgba(236, 246, 255, 0.1) 0%, rgba(6, 10, 16, 0.88) 100%);
  clip-path: polygon(
    0 100%,
    0 80%,
    16% 64%,
    30% 82%,
    48% 58%,
    64% 80%,
    80% 66%,
    100% 78%,
    100% 100%
  );
}

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  opacity: var(--enter);
  transition: opacity 0.2s linear;
}

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

.line {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  pointer-events: none;
}

.line.is-on {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 720px);
  height: min(88vw, 720px);
  transform: translate(-50%, -52%) scale(var(--seal-scale, 1));
  pointer-events: none;
  z-index: 5;
}

.orbit {
  position: absolute;
  inset: 0;
  transform: rotate(var(--orbit, 0deg));
}

.hero-seal .glyph-ring {
  inset: 6%;
}

.node-slot {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 72deg));
  pointer-events: none;
}

.node {
  position: absolute;
  left: 50%;
  top: 3.5%;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * -72deg - var(--orbit, 0deg)));
  pointer-events: auto;
  z-index: 3;
}

.node.is-hot {
  z-index: 6;
}

.node[data-el="metal"] {
  --el: #e6c36b;
}

.node[data-el="wood"] {
  --el: #8cc446;
}

.node[data-el="water"] {
  --el: #4fc3f7;
}

.node[data-el="fire"] {
  --el: #ff6a1a;
}

.node[data-el="earth"] {
  --el: #c4a574;
}

.node-ghost,
.node-solid {
  grid-area: 1 / 1;
  transform-origin: center;
}

.node-ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
  transform: scale(1);
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
}

.node-solid {
  color: var(--el);
  clip-path: inset(100% 0 0 0);
  transform: scale(1);
  transition:
    clip-path 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.node:hover .node-ghost,
.node:focus-visible .node-ghost,
.node.is-hot .node-ghost {
  opacity: 0.2;
  transform: scale(1.28);
}

.node:hover .node-solid,
.node:focus-visible .node-solid,
.node.is-hot .node-solid {
  clip-path: inset(0 0 0 0);
  transform: scale(1.28);
}

.brand-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3%;
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  z-index: 6;
}

.brand-mark-wrap {
  position: relative;
  display: block;
  width: min(58%, 320px);
  z-index: 8;
  animation: loong-live 8s ease-in-out infinite;
  filter: drop-shadow(0 16px 36px rgba(186, 214, 236, 0.28));
}

.brand-mark {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes loong-live {
  0%,
  100% {
    transform: translate3d(0, 8px, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.brand-word {
  position: relative;
  display: grid;
  place-items: center;
}

.brand-ghost,
.brand-solid {
  grid-area: 1 / 1;
}

.brand-ghost {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, #c8d8e8 55%, #fff 20%);
  opacity: 0.4;
}

.brand-solid {
  background: linear-gradient(
    115deg,
    #8fa8bb 0%,
    #d7e8f4 18%,
    #f7fbff 36%,
    #b7c9d8 52%,
    #eef6ff 70%,
    #c5d6e4 86%,
    #9eb4c6 100%
  );
  background-size: 220% 100%;
  background-position: var(--logo-shine, 28%) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(calc((1 - var(--logo-fill, 0)) * 100%) 0 0 0);
  filter: drop-shadow(0 18px 40px rgba(196, 220, 236, 0.36));
}

.chapter-hero .brand-ghost {
  -webkit-text-stroke: 1px color-mix(in srgb, #c8d8e8 60%, #fff 18%);
}

.kicker {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-bottom: 14px;
}

.brand-cn {
  position: absolute;
  left: 0;
  right: 0;
  top: 76%;
  bottom: auto;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(210, 228, 242, 0.72);
  text-align: center;
}

.hero-manifesto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18vh;
  text-align: center;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  z-index: 2;
}

.hero-manifesto .en {
  margin-top: 16px;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Oswald", sans-serif;
  z-index: 2;
}

.scroll-hint span {
  display: inline-block;
  width: 1px;
  height: 28px;
  margin-left: 10px;
  background: var(--accent);
  vertical-align: middle;
  animation: pulse-line 1.6s var(--ease) infinite;
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.idx {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  right: 8vw;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  z-index: 3;
}

.en-tag {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  left: 8vw;
  font-family: "Oswald", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.18em;
  z-index: 3;
}

[data-chapter="hero"] .en-tag {
  color: #c8d8e8;
}

[data-chapter="metal"] .en-tag {
  color: #e6c36b;
}

[data-chapter="wood"] .en-tag {
  color: #8cc446;
}

[data-chapter="water"] .en-tag {
  color: #4fc3f7;
}

[data-chapter="fire"] .en-tag {
  color: #ff6a1a;
}

[data-chapter="earth"] .en-tag {
  color: #c4a574;
}

.glyph-wrap {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(72vw, 720px);
  height: min(72vw, 720px);
  transform: translate(calc(-50% + var(--parx)), calc(-54% + var(--pary)));
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
  background: none;
}

.glyph-wrap::before {
  content: "";
  position: absolute;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    transparent 72%
  );
  pointer-events: none;
}

.glyph-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transform: scale(calc(0.86 + var(--fill) * 0.16));
  opacity: calc(0.25 + var(--fill) * 0.55);
}

.glyph-ring::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 25%, transparent);
  animation: spin 28s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.glyph {
  position: absolute;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(180px, 38vw, 420px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  user-select: none;
}

.glyph-ghost {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, #fff 10%);
  opacity: 0.45;
}

.glyph-solid {
  /* Soft edge — a hard inset clip reads as a square wiping up the glyph. */
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 calc(var(--fill) * 118% - 18%),
    transparent calc(var(--fill) * 118%)
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 calc(var(--fill) * 118% - 18%),
    transparent calc(var(--fill) * 118%)
  );
}

[data-glyph="metal"] .glyph-solid {
  background: linear-gradient(
    115deg,
    #6a5428 0%,
    #f8e7b0 18%,
    #fff 34%,
    #d4af37 52%,
    #8a6d32 68%,
    #fff1c4 82%,
    #5c4a24 100%
  );
  background-size: 220% 100%;
  background-position: var(--shine) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-glyph="wood"] .glyph-solid {
  background: linear-gradient(180deg, #d7e8b0 0%, #7cb342 38%, #2e7d32 70%, #c4a574 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-glyph="water"] .glyph-solid {
  background: linear-gradient(180deg, #e0f7fa 0%, #4fc3f7 42%, #0277bd 78%, #01579b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-glyph="fire"] .glyph-solid {
  color: #ff6a1a;
  text-shadow:
    0 0 10px rgba(255, 140, 50, 0.45),
    0 0 22px rgba(255, 80, 0, 0.28);
}

[data-glyph="earth"] .glyph-solid {
  background: linear-gradient(180deg, #ead7b7 0%, #c4a574 40%, #8d6e63 72%, #5d4037 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.copy {
  position: absolute;
  left: 8vw;
  bottom: 10vh;
  width: min(560px, 86vw);
  height: 280px;
  z-index: 3;
}

.copy .beat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.copy h2 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.eyebrow {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.punch {
  margin-top: 18px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.drop {
  margin-top: 22px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--accent);
}

.outro {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: #050505;
}

.outro h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 24px;
}

.outro-mark {
  width: min(46vw, 240px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(186, 214, 236, 0.28));
}

.outro em {
  font-style: normal;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  display: inline-block;
  background-image:
    linear-gradient(
      105deg,
      transparent 36%,
      rgba(255, 255, 255, 0.45) 47%,
      #fff 50%,
      rgba(255, 255, 255, 0.45) 53%,
      transparent 64%
    ),
    linear-gradient(
      115deg,
      #8fa8bb 0%,
      #d7e8f4 28%,
      #f7fbff 52%,
      #9eb4c6 100%
    );
  background-size: 260% 100%, 100% 100%;
  background-position: 120% 50%, 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: yuloong-shine 3.8s ease-in-out infinite;
}

@keyframes yuloong-shine {
  0%,
  18% {
    background-position: 120% 50%, 50% 50%;
  }
  55% {
    background-position: -20% 50%, 50% 50%;
  }
  100% {
    background-position: -20% 50%, 50% 50%;
  }
}

.lede {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.outro-row {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.outro-row a {
  --el: #fff;
  position: relative;
  isolation: isolate;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  transition:
    border-color 0.35s var(--ease),
    transform 0.25s var(--ease);
}

.outro-row a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--el);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.outro-row a::after {
  content: "";
  position: absolute;
  inset: -18px;
}

.outro-row a[data-el="metal"] {
  --el: #e6c36b;
}

.outro-row a[data-el="wood"] {
  --el: #8cc446;
}

.outro-row a[data-el="water"] {
  --el: #4fc3f7;
}

.outro-row a[data-el="fire"] {
  --el: #ff6a1a;
}

.outro-row a[data-el="earth"] {
  --el: #c4a574;
}

.outro-row a:hover,
.outro-row a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--el);
}

.outro-row a:hover::before,
.outro-row a:focus-visible::before {
  transform: scale(1);
}

.outro-tag {
  margin-top: 36px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: rgba(215, 230, 244, 0.55);
}

.footer {
  position: relative;
  z-index: 5;
  background: #050505;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 800px) {
  .nav {
    --nav-h: 56px;
  }

  .chapter {
    height: 200vh;
  }

  .chapter-hero {
    height: 260vh;
  }

  .nav-inner {
    padding: 0 10px;
    gap: 6px;
  }

  .logo {
    font-size: 13px;
    letter-spacing: 0.1em;
    gap: 6px;
    min-height: 44px;
  }

  .logo img {
    height: 22px;
  }

  .sound-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .rail {
    display: none;
  }

  .en-tag {
    left: 22px;
    font-size: 14px;
    max-width: 58vw;
  }

  .idx {
    right: 22px;
  }

  .glyph-wrap {
    top: 42%;
    width: 88vw;
    height: 88vw;
  }

  .glyph {
    font-size: 42vw;
  }

  .copy {
    left: 22px;
    right: 22px;
    width: auto;
    bottom: 8vh;
    height: 200px;
  }

  .copy h2 {
    font-size: 32px;
  }

  .eyebrow {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .hero-seal {
    width: min(96vw, 420px);
    height: min(96vw, 420px);
    transform: translate(-50%, -54%) scale(var(--seal-scale, 1));
  }

  .node {
    width: 78px;
    height: 78px;
    top: 2.5%;
    font-size: 42px;
  }

  .brand-wrap {
    font-size: clamp(16px, 4.2vw, 22px);
  }

  .brand-mark-wrap {
    width: min(64%, 220px);
  }

  .hero-manifesto {
    bottom: 10vh;
    padding: 0 20px;
    font-size: 16px;
  }

  .outro-row a {
    width: 48px;
    height: 48px;
  }

  .outro-mark {
    width: min(56vw, 180px);
  }

  .outro h2 {
    font-size: clamp(32px, 9vw, 48px);
    gap: 14px;
  }
}

@media (pointer: coarse) {
  .nav-links a {
    width: 44px;
    height: 44px;
  }

  .sound-toggle {
    width: 44px;
    height: 44px;
  }
}

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

  .chapter,
  .chapter-hero {
    height: auto;
  }

  .sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 100px 24px 80px;
    opacity: 1;
  }

  .line,
  .line.is-on {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .brand-mark-wrap {
    animation: none;
    filter: drop-shadow(0 16px 36px rgba(186, 214, 236, 0.28));
  }

  .chapter-hero.logo-rising {
    animation: none;
    --logo-fill: 1;
    --logo-shine: 80%;
  }

  .glyph-solid,
  .brand-solid,
  .brand-mark,
  .node-solid {
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .outro em {
    animation: none;
    background-image: linear-gradient(
      115deg,
      #8fa8bb 0%,
      #d7e8f4 28%,
      #f7fbff 52%,
      #9eb4c6 100%
    );
    background-size: 100% 100%;
    background-position: 50% 50%;
    color: transparent;
  }

  .marquee-track,
  .glyph-ring::after,
  .scroll-hint span {
    animation: none;
  }

  .copy {
    position: relative;
    height: auto;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 0 auto;
  }

  .copy .beat {
    position: relative;
    margin-bottom: 28px;
  }

  .glyph-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 20px auto 40px;
  }

  .copy,
  .en-tag,
  .idx,
  .hero-seal,
  .hero-manifesto,
  .scroll-hint {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 16px auto;
  }

  .hero-seal {
    width: min(86vw, 420px);
    height: min(86vw, 420px);
  }
}
