:root {
  --bg: #0c0d0f;
  --surface: #121416;
  --surface-2: #1a1b1d;
  --text: #e7e0d6;
  --muted: #a9a198;
  --muted-strong: #c8beb2;
  --line: rgba(231, 224, 214, 0.16);
  --line-strong: rgba(231, 224, 214, 0.3);
  --accent: #c95543;
  --accent-soft: rgba(201, 85, 67, 0.16);
  --accent-faint: rgba(201, 85, 67, 0.06);
  --header-bg: rgba(12, 13, 15, 0.82);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content-width: 1280px;
  --page-gutter: clamp(1.25rem, 4vw, 4.75rem);
  color-scheme: dark;
}

body[data-theme="paper"] {
  --bg: #e7dfd3;
  --surface: #eee8de;
  --surface-2: #d9cfc1;
  --text: #1a1817;
  --muted: #5f5951;
  --muted-strong: #342f2b;
  --line: rgba(26, 24, 23, 0.16);
  --line-strong: rgba(26, 24, 23, 0.3);
  --accent: #a64034;
  --accent-soft: rgba(166, 64, 52, 0.14);
  --accent-faint: rgba(166, 64, 52, 0.06);
  --header-bg: rgba(231, 223, 211, 0.88);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 350ms ease, color 350ms ease;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

button,
a[href] {
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: #fff7ef;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.26) 0.5px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  opacity: 0.1;
}

body[data-theme="paper"] .grain {
  background-image: radial-gradient(rgba(32, 23, 18, 0.32) 0.5px, transparent 0.7px);
  mix-blend-mode: multiply;
  opacity: 0.08;
}

.section-shell {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  margin-inline: auto;
}

.section-block {
  position: relative;
  border-top: 1px solid var(--line);
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-copy span,
.section-index,
.eyebrow,
.panel-kicker,
.progress-label,
.hero-side-note,
.hero-footer-note,
.timeline-note,
.site-footer,
.theme-toggle,
.faction-tab small,
.hero-visual figcaption,
.voices-visual figcaption,
.faction-visual figcaption,
.voice-attribution span {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.3rem);
  white-space: nowrap;
}

.site-nav > a {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  transition: color 220ms ease;
}

.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav > a:hover,
.site-nav > a.is-current {
  color: var(--text);
}

.site-nav > a:hover::after,
.site-nav > a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-entry {
  color: var(--accent);
}

.nav-entry span {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.9rem;
  transition: transform 220ms ease;
}

.nav-entry:hover span {
  transform: translate(3px, -3px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 0.62rem;
  transition: color 220ms ease;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  border-radius: 50%;
  transition: background-color 220ms ease;
}

body[data-theme="paper"] .theme-toggle-dot {
  background: transparent;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle span + span {
  margin-top: -5px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
  min-height: 100dvh;
  padding-top: clamp(7rem, 12vh, 9rem);
  padding-bottom: clamp(3.5rem, 7vh, 6rem);
}

.hero-rail {
  position: absolute;
  top: 50%;
  left: calc(var(--page-gutter) * -1);
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-align: center;
  transform: translateY(-50%);
}

.hero-rail i {
  display: block;
  width: 1px;
  height: 100px;
  margin-inline: auto;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.eyebrow,
.section-index,
.panel-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.62rem;
  line-height: 1.4;
}

.hero-copy h1,
.section-intro h2,
.chronicle-heading h2,
.voices-copy h2,
.epilogue-copy h2 {
  margin: 1.5rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.hero-copy h1 {
  max-width: 8ch;
  font-size: clamp(4.15rem, 8.1vw, 8.4rem);
}

.hero-copy h1 em,
.section-intro h2 em,
.chronicle-heading h2 em,
.voices-copy h2 em,
.epilogue-copy h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero-dek {
  max-width: 23rem;
  margin: 2.15rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  color: #fff6ef;
  background: var(--accent);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--accent) 82%, white);
}

.button-primary span {
  font-size: 1rem;
  transition: transform 220ms ease;
}

.button-primary:hover span {
  transform: translate(3px, -3px);
}

.button-quiet {
  color: var(--muted);
  border-color: var(--line-strong);
}

.button-quiet:hover {
  color: var(--text);
  border-color: var(--text);
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-right: clamp(0rem, 2vw, 2rem);
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.88;
  border: 1px solid var(--line-strong);
  padding: 0.75rem;
  background: var(--surface);
}

.hero-image-frame::before,
.faction-visual::before,
.voices-visual::before {
  position: absolute;
  z-index: 1;
  inset: 0.75rem;
  border: 1px solid rgba(255, 245, 230, 0.22);
  content: "";
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) sepia(0.28) contrast(1.14) brightness(0.75);
  transform: scale(1.02);
  transition: filter 600ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-frame:hover .hero-image {
  filter: grayscale(0.35) sepia(0.2) contrast(1.12) brightness(0.84);
  transform: scale(1.06);
}

.image-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 13, 15, 0.38), transparent 48%, rgba(201, 85, 67, 0.2));
  pointer-events: none;
}

.hero-seal {
  position: absolute;
  z-index: 2;
  top: 2.25rem;
  right: 2.35rem;
  display: grid;
  width: 62px;
  height: 78px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(5deg);
}

.hero-visual figcaption,
.voices-visual figcaption,
.faction-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.65rem;
  bottom: 1.5rem;
  left: 1.65rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 247, 239, 0.8);
  font-size: 0.55rem;
}

.hero-side-note {
  position: absolute;
  top: 50%;
  right: -1.7rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.hero-side-note span:first-child {
  color: var(--accent);
}

.hero-footer-note {
  position: absolute;
  bottom: 1.8rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.55rem;
}

.hero-footer-line {
  width: 2.7rem;
  height: 1px;
  background: var(--accent);
}

.hero-footer-arrow {
  color: var(--accent);
  font-size: 1rem;
}

.factions {
  padding: clamp(6.5rem, 12vw, 11rem) 0 clamp(7rem, 13vw, 12rem);
  background: var(--surface);
}

.faction-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.section-intro h2,
.chronicle-heading h2,
.voices-copy h2,
.epilogue-copy h2 {
  font-size: clamp(3.25rem, 6vw, 6.8rem);
}

.section-intro > p:last-child,
.chronicle-heading > p:last-child,
.epilogue-copy > p {
  max-width: 22rem;
  margin: 2.4rem 0 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.9;
}

.faction-stage {
  min-width: 0;
}

.faction-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.faction-tab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 68px;
  padding: 1rem 1.15rem;
  color: var(--muted);
  background: transparent;
  text-align: left;
  transition: color 220ms ease, background-color 220ms ease;
}

.faction-tab + .faction-tab {
  border-left: 1px solid var(--line);
}

.faction-tab:hover,
.faction-tab.is-active {
  color: var(--text);
  background: var(--accent-faint);
}

.faction-tab.is-active > span {
  color: var(--accent);
}

.faction-tab > span {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.faction-tab small {
  font-size: 0.52rem;
}

.faction-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
  min-height: 410px;
  padding: clamp(2rem, 4vw, 4rem) 0 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.faction-panel.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.faction-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.faction-copy h3 {
  max-width: 9ch;
  margin: 1.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.faction-copy > p:not(.panel-kicker) {
  max-width: 28rem;
  margin: 1.8rem 0 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.85;
}

.faction-meta {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.faction-meta strong {
  color: var(--text);
  font-weight: 400;
}

.faction-ghost {
  position: absolute;
  top: -0.4rem;
  right: 36%;
  color: var(--accent-soft);
  font-family: var(--display);
  font-size: clamp(12rem, 24vw, 24rem);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

.faction-visual {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  padding: 0.75rem;
  background: var(--surface-2);
}

.faction-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: grayscale(0.85) sepia(0.28) contrast(1.08) brightness(0.72);
  transition: opacity 260ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faction-visual::after,
.voices-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 13, 15, 0.78), transparent 65%);
  content: "";
  pointer-events: none;
}

.faction-visual:hover img,
.voices-visual:hover img {
  transform: scale(1.04);
}

.chronicle {
  padding: clamp(6rem, 12vw, 11rem) 0 clamp(7rem, 13vw, 12rem);
  background: var(--bg);
}

.chronicle-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.chronicle-heading h2 {
  margin-top: 0;
}

.chronicle-heading > p:last-child {
  justify-self: end;
  margin: 0.5rem 0 0;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(5rem, 9vw, 8rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 23%;
  height: 1px;
  background: var(--accent);
  content: "";
}

.timeline-item {
  position: relative;
  min-height: 280px;
  padding: 2rem clamp(1rem, 2.4vw, 2.4rem) 1rem 0;
  border-right: 1px solid var(--line);
}

.timeline-item + .timeline-item {
  padding-left: clamp(1rem, 2.4vw, 2.4rem);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  background: var(--bg);
  content: "";
  transform: rotate(45deg);
}

.timeline-item + .timeline-item::before {
  left: clamp(1rem, 2.4vw, 2.4rem);
}

.timeline-item time {
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(2rem, 3.3vw, 3.6rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.timeline-item h3 {
  margin: 1.8rem 0 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.timeline-item p {
  max-width: 16rem;
  margin: 1rem 0 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.8;
}

.timeline-mark {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.timeline-note {
  margin: 2.4rem 0 0;
  color: var(--muted);
  font-size: 0.55rem;
}

.voices {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--surface);
}

.voices-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: center;
}

.voices-visual {
  position: relative;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  padding: 0.75rem;
}

.voices-visual img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  filter: grayscale(0.8) sepia(0.24) contrast(1.1) brightness(0.72);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.voices-copy h2 {
  margin-top: 1.3rem;
}

.voices-copy blockquote {
  max-width: 31rem;
  margin: 3rem 0 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.voice-attribution {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-top: 1.7rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.voice-attribution strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.voice-attribution span {
  color: var(--muted);
  font-size: 0.55rem;
}

.voice-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.4rem;
}

.voice-button {
  position: relative;
  min-height: 44px;
  padding: 0.5rem 1.2rem 0.5rem 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--display);
  font-size: 1rem;
  transition: color 220ms ease;
}

.voice-button + .voice-button {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.voice-button:hover,
.voice-button.is-active {
  color: var(--accent);
}

.epilogue {
  min-height: 78dvh;
  background: var(--bg);
}

.epilogue-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.5fr) minmax(0, 0.5fr);
  gap: 2rem;
  align-items: end;
  min-height: 78dvh;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.epilogue-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(4rem, 9vw, 10rem);
  letter-spacing: -0.12em;
  line-height: 0.8;
}

.epilogue-copy h2 {
  margin-top: 1.2rem;
  font-size: clamp(4rem, 8.2vw, 9rem);
}

.epilogue-copy > p {
  margin-top: 2rem;
}

.epilogue-copy .button {
  margin-top: 2.5rem;
}

.epilogue-rule {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
  padding-bottom: 0.5rem;
}

.epilogue-rule span {
  display: block;
  width: clamp(2rem, 4vw, 5rem);
  height: 1px;
  background: var(--line-strong);
}

.epilogue-rule span:first-child {
  width: clamp(4rem, 8vw, 9rem);
  background: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.55rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.progress-rail {
  position: fixed;
  z-index: 25;
  right: 1.25rem;
  bottom: 2rem;
  display: grid;
  gap: 0.8rem;
  justify-items: end;
  color: var(--muted);
}

.progress-label {
  font-size: 0.5rem;
  writing-mode: vertical-rl;
}

.progress-track {
  position: relative;
  display: block;
  width: 1px;
  height: 80px;
  overflow: hidden;
  background: var(--line);
}

.progress-track i {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 18%;
  background: var(--accent);
  transform-origin: top;
  transition: height 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal][data-delay="1"] {
  transition-delay: 100ms;
}

.js [data-reveal][data-delay="2"] {
  transition-delay: 180ms;
}

.js [data-reveal][data-delay="3"] {
  transition-delay: 260ms;
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 1040px) {
  .hero {
    gap: 3rem;
  }

  .hero-rail {
    display: none;
  }

  .hero-side-note {
    right: -0.8rem;
  }

  .faction-layout,
  .voices-layout {
    gap: 3rem;
  }

  .chronicle-heading {
    grid-template-columns: 0.45fr 1fr 0.75fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 1.15rem;
  }

  .site-header {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .menu-toggle b {
    position: absolute;
    margin-left: 1.7rem;
    font-weight: 400;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0 var(--page-gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav > a,
  .theme-toggle {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a::after {
    display: none;
  }

  .theme-toggle {
    justify-content: flex-start;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .hero-copy h1 {
    max-width: 7ch;
    font-size: clamp(3.8rem, 18vw, 6.6rem);
  }

  .hero-dek {
    max-width: 19rem;
    margin-top: 1.8rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 2rem;
  }

  .hero-visual {
    margin-top: 3.5rem;
    padding-right: 0.75rem;
  }

  .hero-image-frame {
    aspect-ratio: 0.83;
  }

  .hero-side-note {
    right: -1.4rem;
  }

  .hero-footer-note {
    position: static;
    margin-top: 2.4rem;
  }

  .factions,
  .chronicle,
  .voices {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

  .faction-layout,
  .voices-layout,
  .chronicle-heading,
  .epilogue-inner {
    display: block;
  }

  .section-intro > p:last-child,
  .chronicle-heading > p:last-child,
  .epilogue-copy > p {
    margin-top: 1.8rem;
  }

  .faction-stage {
    margin-top: 3.5rem;
  }

  .faction-tabs {
    grid-template-columns: repeat(3, minmax(116px, 1fr));
    overflow-x: auto;
  }

  .faction-tab {
    min-height: 60px;
  }

  .faction-panel {
    display: block;
    min-height: 0;
    padding-top: 2.5rem;
  }

  .faction-ghost {
    top: 0;
    right: 3%;
    font-size: 14rem;
  }

  .faction-copy h3 {
    font-size: clamp(2.6rem, 13vw, 4.8rem);
  }

  .faction-visual {
    min-height: 300px;
    margin-top: 2.8rem;
  }

  .faction-visual img {
    min-height: 300px;
  }

  .chronicle-heading h2,
  .voices-copy h2,
  .epilogue-copy h2 {
    font-size: clamp(3.5rem, 15vw, 6.5rem);
  }

  .timeline {
    display: block;
    margin-top: 4rem;
    padding-left: 1.1rem;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .timeline::before {
    top: 0;
    left: -1px;
    width: 1px;
    height: 25%;
  }

  .timeline-item,
  .timeline-item + .timeline-item {
    min-height: 0;
    padding: 0 0 3.3rem 1.5rem;
    border-right: 0;
  }

  .timeline-item:last-child {
    padding-bottom: 0;
  }

  .timeline-item::before,
  .timeline-item + .timeline-item::before {
    top: 0;
    left: -5px;
    background: var(--bg);
  }

  .timeline-item h3 {
    margin-top: 1rem;
  }

  .timeline-mark {
    right: 0;
    bottom: 3.4rem;
  }

  .timeline-item:last-child .timeline-mark {
    bottom: 0;
  }

  .voices-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .voices-visual {
    min-height: 390px;
  }

  .voices-visual img {
    min-height: 390px;
  }

  .voices-copy {
    margin-top: 1rem;
  }

  .voices-copy blockquote {
    margin-top: 2.4rem;
  }

  .epilogue {
    min-height: auto;
  }

  .epilogue-inner {
    min-height: 0;
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

  .epilogue-index {
    margin-bottom: 3rem;
    font-size: 5rem;
  }

  .epilogue-rule {
    display: none;
  }

  .site-footer {
    display: grid;
    gap: 0.55rem;
    min-height: 0;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .progress-rail {
    display: none;
  }
}
