:root {
  --bg: #100609;
  --bg-2: #18090d;
  --ink: #fff2e8;
  --muted: #d5b9ad;
  --dim: #9f7c73;
  --line: rgba(228, 170, 112, 0.24);
  --line-strong: rgba(236, 184, 122, 0.42);
  --panel: rgba(32, 13, 17, 0.88);
  --panel-2: rgba(47, 18, 23, 0.78);
  --red: #bd2438;
  --red-hot: #f14658;
  --gold: #dda75f;
  --jade: #75bfa7;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --rail: 268px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(117, 191, 167, 0.08), transparent 26rem),
    radial-gradient(circle at 88% 10%, rgba(189, 36, 56, 0.2), transparent 32rem),
    linear-gradient(180deg, #14070b 0%, #090406 52%, #16080d 100%);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 58px 58px, 100% 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 4, 6, 0.9), transparent 18%, transparent 88%, rgba(9, 4, 6, 0.92)),
    radial-gradient(circle at 48% 100%, rgba(221, 167, 95, 0.1), transparent 34rem);
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  color: var(--red-hot);
  background: linear-gradient(135deg, var(--red-hot) 0%, #ffd28a 54%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(189, 36, 56, 0.42);
}

h2 {
  color: var(--gold);
  font-size: clamp(1.28rem, 2.15vw, 1.9rem);
}

h3 {
  color: #fff7ef;
  font-size: 1.18rem;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 10px 14px;
  color: #16070b;
  background: var(--gold);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

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

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

.mobile-bar {
  display: none;
}

.page-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

.site-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 30px 24px;
  background:
    linear-gradient(180deg, rgba(31, 12, 16, 0.96), rgba(10, 4, 6, 0.98)),
    linear-gradient(90deg, rgba(221, 167, 95, 0.12), transparent);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.24);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: #fff7ef;
  font-weight: 900;
}

.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.16rem;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid rgba(221, 167, 95, 0.52);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(189, 36, 56, 0.12);
}

.site-nav {
  display: grid;
  gap: 8px;
}

.site-nav a,
.rail-download {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  overflow: hidden;
  color: #ecd4c8;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav a::after,
.rail-download::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  opacity: 0;
  transform: translateX(-64%);
  transition: opacity 0.28s ease, transform 0.46s ease;
}

.site-nav a::before {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  content: "";
  background: var(--dim);
  border-radius: 50%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(221, 167, 95, 0.24);
  transform: translateX(3px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.rail-download:hover::after,
.rail-download:focus-visible::after {
  opacity: 1;
  transform: translateX(64%);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(221, 167, 95, 0.48);
}

.rail-download {
  justify-content: center;
  margin-top: auto;
  color: #fffaf3;
  font-weight: 900;
  background: linear-gradient(135deg, #b51f33, #ec3d50);
  box-shadow: 0 16px 34px rgba(189, 36, 56, 0.26);
}

.rail-download:hover,
.rail-download:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 44px rgba(189, 36, 56, 0.36), 0 0 22px rgba(221, 167, 95, 0.16);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #f5e0d2;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.content-stack {
  width: min(var(--max), calc(100% - 54px));
  margin-inline: auto;
  padding: 34px 0 0;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  grid-template-areas:
    "copy screen"
    "ledger screen";
  gap: 22px;
  min-height: calc(100vh - 68px);
  align-items: end;
  padding: clamp(28px, 5vw, 54px) 0 38px;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 22px;
  color: #e7cabe;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  overflow: hidden;
  font-weight: 900;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 50%;
  content: "";
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.48s ease;
}

.btn:hover::before,
.btn:focus-visible::before {
  left: 125%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fffaf3;
  background: linear-gradient(135deg, #b51f33, #ed4052);
  box-shadow: 0 15px 34px rgba(189, 36, 56, 0.34);
}

.btn-secondary {
  color: #f7e1d4;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(221, 167, 95, 0.38);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(221, 167, 95, 0.12);
  border-color: rgba(221, 167, 95, 0.7);
  box-shadow: 0 14px 30px rgba(221, 167, 95, 0.14);
}

.hero-screen {
  position: relative;
  grid-area: screen;
  align-self: center;
  aspect-ratio: 800 / 324;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #16080c;
  box-shadow: var(--shadow);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.hero-screen::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 42%, rgba(8, 3, 5, 0.88)),
    linear-gradient(90deg, rgba(8, 3, 5, 0.42), transparent 38%);
}

.hero-screen img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.08);
  transition: transform 0.56s ease, filter 0.56s ease;
}

.hero-screen figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  color: #fff4e8;
  font-weight: 800;
  background: rgba(15, 6, 9, 0.76);
  border: 1px solid rgba(221, 167, 95, 0.34);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.hero-screen:hover,
.hero-screen:focus-within {
  border-color: rgba(221, 167, 95, 0.62);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.48), 0 0 34px rgba(189, 36, 56, 0.18);
  transform: translateY(-4px);
}

.hero-screen:hover img,
.hero-screen:focus-within img {
  filter: saturate(1.15) contrast(1.1);
  transform: scale(1.025);
}

.hero-screen:hover figcaption,
.hero-screen:focus-within figcaption {
  background: rgba(15, 6, 9, 0.9);
  border-color: rgba(221, 167, 95, 0.58);
  transform: translateY(-3px);
}

.quick-ledger {
  grid-area: ledger;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.quick-ledger div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(31, 12, 16, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.quick-ledger div:hover,
.quick-ledger div:focus-within {
  background: rgba(43, 17, 22, 0.9);
  border-color: rgba(221, 167, 95, 0.44);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transform: translateX(4px);
}

.quick-ledger dt {
  color: var(--dim);
  font-size: 0.92rem;
}

.quick-ledger dd {
  margin: 0;
  color: #fff6ed;
  font-size: 1.04rem;
  font-weight: 900;
}

.chapter {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  padding: 92px 0;
  border-top: 1px solid rgba(221, 167, 95, 0.16);
}

.chapter-label {
  position: sticky;
  top: 30px;
  align-self: start;
  display: grid;
  gap: 10px;
  justify-items: start;
  color: var(--gold);
}

.chapter-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  font-size: 1.25rem;
  font-weight: 900;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(31, 12, 16, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.chapter-label p {
  margin: 0;
  writing-mode: vertical-rl;
  color: #e9cab0;
  font-weight: 800;
  letter-spacing: 0;
}

.story-panel,
.section-title,
.wide-media,
.system-board,
.split-manual,
.route-map,
.atlas-strip,
.log-layout,
.faq-list,
.download-dock,
.site-footer {
  grid-column: 2;
}

.story-panel {
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(189, 36, 56, 0.13), rgba(32, 13, 17, 0.86)),
    rgba(32, 13, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.story-panel:hover,
.story-panel:focus-within {
  border-color: rgba(221, 167, 95, 0.48);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.42), 0 0 28px rgba(189, 36, 56, 0.14);
  transform: translateY(-4px);
}

.story-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.story-columns p,
.section-title p,
.manual-copy p,
.log-copy p,
.download-dock p,
.site-footer p {
  color: var(--muted);
}

.wide-media {
  margin: 6px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #13070b;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.wide-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  transition: transform 0.52s ease, filter 0.52s ease;
}

.wide-media figcaption {
  padding: 13px 16px;
  color: #cbaea2;
  background: rgba(12, 5, 8, 0.76);
  transition: color 0.24s ease, background 0.24s ease;
}

.wide-media:hover,
.wide-media:focus-within {
  border-color: rgba(221, 167, 95, 0.54);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.4), 0 0 26px rgba(117, 191, 167, 0.1);
  transform: translateY(-4px);
}

.wide-media:hover img,
.wide-media:focus-within img {
  filter: saturate(1.1) contrast(1.06);
  transform: scale(1.025);
}

.wide-media:hover figcaption,
.wide-media:focus-within figcaption {
  color: #fff3e8;
  background: rgba(12, 5, 8, 0.88);
}

.section-title {
  max-width: 790px;
}

.section-title p {
  margin: 16px 0 0;
}

.system-board {
  display: grid;
  gap: 12px;
}

.system-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 138px;
  padding: 22px;
  background: linear-gradient(90deg, rgba(45, 17, 22, 0.9), rgba(22, 8, 12, 0.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.system-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff5ea;
  font-size: 1.18rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), #6e1720);
  border: 1px solid rgba(221, 167, 95, 0.48);
  border-radius: 50%;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.system-row h3 {
  margin-bottom: 8px;
}

.system-row p,
.route-card li,
.phase-list li,
.log-list li,
.faq-list p {
  color: #d9bdb2;
}

.system-row:hover,
.system-row:focus-within,
.route-card:hover,
.route-card:focus-within {
  background: linear-gradient(90deg, rgba(55, 20, 26, 0.94), rgba(25, 9, 13, 0.9));
  border-color: rgba(221, 167, 95, 0.48);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34), 0 0 28px rgba(189, 36, 56, 0.12);
  transform: translateY(-4px);
}

.system-row:hover span,
.system-row:focus-within span {
  border-color: rgba(255, 228, 188, 0.72);
  box-shadow: 0 0 24px rgba(241, 70, 88, 0.34);
  transform: scale(1.06) rotate(-5deg);
}

.split-manual {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: stretch;
}

.manual-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #13070b;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.manual-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.52s ease, filter 0.52s ease;
}

.manual-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.manual-image:hover,
.manual-image:focus-within,
.manual-copy:hover,
.manual-copy:focus-within {
  border-color: rgba(221, 167, 95, 0.5);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.42), 0 0 26px rgba(189, 36, 56, 0.12);
  transform: translateY(-4px);
}

.manual-image:hover img,
.manual-image:focus-within img {
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.025);
}

.manual-copy p {
  margin-top: 18px;
}

.phase-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.phase-list li {
  padding: 12px 14px;
  border-left: 2px solid rgba(221, 167, 95, 0.58);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.phase-list li:hover {
  background: rgba(255, 255, 255, 0.075);
  border-left-color: rgba(117, 191, 167, 0.78);
  transform: translateX(4px);
}

.phase-list strong {
  color: #ffe4bc;
}

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

.route-card {
  position: relative;
  min-height: 318px;
  padding: 30px 26px 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(43, 17, 22, 0.9), rgba(21, 8, 12, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.route-card::before {
  position: absolute;
  right: -24px;
  top: -34px;
  color: rgba(221, 167, 95, 0.08);
  content: attr(data-mark);
  font-size: 8rem;
  font-weight: 900;
  transition: color 0.26s ease, transform 0.26s ease;
}

.route-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.route-card:hover::before,
.route-card:focus-within::before {
  color: rgba(221, 167, 95, 0.14);
  transform: translate(-10px, 8px) scale(1.04);
}

.route-card:hover::after,
.route-card:focus-within::after {
  opacity: 1;
}

.route-number {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
}

.route-card h3 {
  margin-bottom: 14px;
}

.route-card ol {
  display: grid;
  gap: 9px;
  padding-left: 22px;
}

.route-card li::marker {
  color: var(--gold);
  font-weight: 900;
}

.atlas-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 238px;
  gap: 14px;
}

.atlas-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #13070b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.atlas-item.tall {
  grid-row: span 2;
}

.atlas-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.atlas-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 15px 13px;
  color: #fff7ee;
  font-weight: 900;
  background: linear-gradient(180deg, transparent, rgba(6, 2, 4, 0.88));
}

.atlas-item:hover,
.atlas-item:focus-within {
  border-color: rgba(221, 167, 95, 0.55);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.38);
  transform: translateY(-4px);
}

.atlas-item:hover img,
.atlas-item:focus-within img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.035);
}

.log-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.log-copy {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.log-copy p {
  margin-top: 18px;
}

.log-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.log-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 17px 18px;
  background: rgba(36, 14, 18, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.log-list li:hover {
  background: rgba(46, 18, 23, 0.92);
  border-color: rgba(221, 167, 95, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transform: translateX(4px);
}

.log-list span {
  color: var(--gold);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(43, 17, 22, 0.88), rgba(20, 8, 12, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  color: #fff2e4;
  font-weight: 900;
}

.faq-list summary::marker {
  color: var(--gold);
}

.faq-list p {
  padding: 0 0 18px;
}

.faq-list details:hover,
.faq-list details:focus-within,
.faq-list details[open] {
  background: linear-gradient(180deg, rgba(54, 20, 26, 0.94), rgba(23, 9, 13, 0.94));
  border-color: rgba(221, 167, 95, 0.46);
  transform: translateY(-2px);
}

.download-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 18px 0 80px;
  padding: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(135deg, rgba(189, 36, 56, 0.24), rgba(28, 12, 17, 0.96)),
    linear-gradient(90deg, rgba(117, 191, 167, 0.1), transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.download-dock:hover,
.download-dock:focus-within {
  border-color: rgba(221, 167, 95, 0.62);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.46), 0 0 34px rgba(189, 36, 56, 0.18);
  transform: translateY(-4px);
}

.download-dock p {
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 42px;
  color: #bfa197;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: #fff2e4;
}

.site-footer p {
  max-width: 690px;
  margin: 0;
  font-size: 0.94rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  white-space: nowrap;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-screen.reveal,
.story-panel.reveal,
.wide-media.reveal,
.system-row.reveal,
.manual-image.reveal,
.manual-copy.reveal,
.route-card.reveal,
.atlas-item.reveal,
.download-dock.reveal {
  transition: opacity 0.7s ease, transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.hero-screen.reveal.is-visible:hover,
.hero-screen.reveal.is-visible:focus-within,
.story-panel.reveal.is-visible:hover,
.story-panel.reveal.is-visible:focus-within,
.wide-media.reveal.is-visible:hover,
.wide-media.reveal.is-visible:focus-within,
.system-row.reveal.is-visible:hover,
.system-row.reveal.is-visible:focus-within,
.manual-image.reveal.is-visible:hover,
.manual-image.reveal.is-visible:focus-within,
.manual-copy.reveal.is-visible:hover,
.manual-copy.reveal.is-visible:focus-within,
.route-card.reveal.is-visible:hover,
.route-card.reveal.is-visible:focus-within,
.atlas-item.reveal.is-visible:hover,
.atlas-item.reveal.is-visible:focus-within,
.download-dock.reveal.is-visible:hover,
.download-dock.reveal.is-visible:focus-within {
  transform: translateY(-4px);
}

@media (max-width: 1120px) {
  :root {
    --rail: 238px;
  }

  .content-stack {
    width: min(var(--max), calc(100% - 38px));
  }

  .hero-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "screen"
      "copy"
      "ledger";
    min-height: auto;
    align-items: start;
  }

  .hero-screen,
  .hero-screen img {
    min-height: 0;
  }

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

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

@media (max-width: 900px) {
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 10px 16px;
    background: rgba(14, 5, 8, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid rgba(221, 167, 95, 0.48);
    border-radius: 50%;
  }

  .mobile-brand span {
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-shell {
    display: block;
  }

  .site-rail {
    position: sticky;
    top: 66px;
    z-index: 35;
    display: none;
    height: auto;
    padding: 12px 16px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-rail:has(.site-nav.is-open),
  .site-rail.is-open {
    display: flex;
  }

  .site-rail .brand,
  .rail-download {
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }

  .content-stack {
    width: min(100% - 28px, var(--max));
    padding-top: 0;
  }

  .chapter {
    grid-template-columns: 1fr;
    padding: 74px 0;
  }

  .chapter-label {
    position: static;
    display: flex;
    align-items: center;
  }

  .chapter-label p {
    writing-mode: horizontal-tb;
  }

  .story-panel,
  .section-title,
  .wide-media,
  .system-board,
  .split-manual,
  .route-map,
  .atlas-strip,
  .log-layout,
  .faq-list,
  .download-dock,
  .site-footer {
    grid-column: auto;
  }

  .split-manual,
  .log-layout {
    grid-template-columns: 1fr;
  }

  .route-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-dashboard {
    padding: 22px 0 34px;
  }

  .hero-screen,
  .hero-screen img {
    min-height: 0;
  }

  .hero-actions,
  .download-dock,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .download-dock .btn {
    width: 100%;
  }

  .quick-ledger div,
  .system-row,
  .log-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .system-row span {
    width: 50px;
    height: 50px;
  }

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

  .wide-media img {
    aspect-ratio: 4 / 3;
  }

  .manual-image img {
    min-height: 280px;
  }

  .atlas-strip {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .atlas-item.tall {
    grid-row: span 1;
  }
}

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

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