:root {
  color-scheme: dark;
  --bg-base: #020304;
  --bg-panel: #05070a;
  --bg-panel-strong: #090d12;
  --bg-panel-core: #0a1016;
  --line-soft: rgba(255, 255, 255, 0.045);
  --line-mid: rgba(255, 255, 255, 0.08);
  --text-main: #f4f7fb;
  --text-soft: rgba(221, 228, 236, 0.8);
  --text-faint: rgba(210, 219, 228, 0.62);
  --text-soft-strong: rgba(230, 236, 242, 0.88);
  --accent: #82d6ff;
  --accent-strong: #b7ecff;
  --accent-alt: #8eb7ff;
  --accent-soft: rgba(130, 214, 255, 0.18);
  --shell-max-width: 1600px;
  --page-gutter: clamp(12px, 2vw, 20px);
  --shell-padding-x: clamp(16px, 3vw, 34px);
  --shell-padding-y: clamp(18px, 2.4vw, 30px);
  --content-measure: min(100%, 980px);
  --reading-measure: 66ch;
  --section-gap: clamp(48px, 7vw, 92px);
  --hero-title-shadow:
    0 0 20px rgba(255, 255, 255, 0.08),
    0 0 38px rgba(130, 214, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(171, 224, 255, 0.36) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(130, 214, 255, 0.08), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(142, 183, 255, 0.05), transparent 26%),
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.035), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(106, 180, 255, 0.04), transparent 24%),
    linear-gradient(180deg, #010202, #05070a 40%, #020304 100%);
  color: var(--text-main);
  font-family:
    "Segoe UI",
    "Helvetica Neue",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -16rem;
  left: -10rem;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 214, 255, 0.1), transparent 68%);
  filter: blur(18px);
  opacity: 0.4;
  animation: ambient-float 22s ease-in-out infinite alternate;
}

body::after {
  right: -14rem;
  bottom: -16rem;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 183, 255, 0.08), transparent 72%);
  filter: blur(24px);
  opacity: 0.42;
  animation: ambient-float 28s ease-in-out infinite alternate-reverse;
}

a {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

::selection {
  background: rgba(130, 214, 255, 0.2);
  color: #ffffff;
}

.terminal-meta,
.boot-line,
.story-label,
.scroll-hint,
.hero-note,
.record-block,
.footer-cta {
  font-family:
    "SF Mono",
    "Menlo",
    "Monaco",
    "Consolas",
    "Liberation Mono",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    monospace;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    env(safe-area-inset-top, 0)
    var(--page-gutter)
    max(env(safe-area-inset-bottom, 0), 0px)
    var(--page-gutter);
}

.terminal-shell {
  position: relative;
  width: min(100%, var(--shell-max-width));
  margin: 0 auto;
  padding: var(--shell-padding-y) var(--shell-padding-x);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(12, 15, 20, 0.985), rgba(6, 8, 12, 0.992)),
    var(--bg-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 180px rgba(255, 255, 255, 0.016),
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 40px 90px rgba(0, 0, 0, 0.48);
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.terminal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.015));
  pointer-events: none;
}

.terminal-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.36) 100%);
  pointer-events: none;
}

.terminal-shell > * {
  position: relative;
  z-index: 1;
}

.terminal-noise,
.terminal-scanlines,
.terminal-vignette,
.terminal-grid,
.terminal-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.terminal-noise {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  mix-blend-mode: soft-light;
  will-change: transform;
  animation: noise-drift 16s steps(10) infinite;
}

.terminal-scanlines {
  opacity: 0.14;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 5px
  );
  will-change: background-position;
  animation: scan-drift 10s linear infinite;
}

.terminal-vignette {
  background:
    radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.03), transparent 22%);
}

.terminal-grid {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(130, 214, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 214, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 32px, 32px 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 18%, #000 82%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 18%, #000 82%, rgba(0, 0, 0, 0));
  will-change: transform;
  animation: grid-shift 22s linear infinite;
}

.terminal-aurora {
  background:
    radial-gradient(circle at 18% 18%, rgba(130, 214, 255, 0.09), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(142, 183, 255, 0.07), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 22%);
  filter: blur(12px);
  opacity: 0.8;
  will-change: transform;
  animation: aurora-float 18s ease-in-out infinite alternate;
}

.terminal-head {
  padding-top: 4px;
}

.terminal-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: rgba(220, 228, 236, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.62);
  animation: lamp-pulse 1.15s ease-in-out infinite alternate;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: start;
  gap: 0;
  padding: clamp(44px, 9vh, 94px) 0 clamp(54px, 8vh, 88px);
}

.boot {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(28px, 6vh, 52px);
}

.boot-line {
  margin: 0;
  color: #dfe7ef;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.76;
}

.sym {
  margin-right: 12px;
  color: var(--accent);
}

.text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 0;
  max-width: 100%;
  vertical-align: bottom;
  white-space: nowrap;
}

.text::after {
  content: "";
  position: absolute;
  top: 0.1em;
  right: 0;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
}

.text-1 {
  animation: type-hello 1s steps(7, end) 0.28s forwards;
}

.text-1::after {
  animation: caret-sequence-1 1.5s linear 0.28s forwards;
}

.text-2 {
  animation: type-welcome 2.15s steps(14, end) 1.36s forwards;
}

.text-2::after {
  animation: caret-sequence-2 2.25s linear 1.36s forwards;
}

.hero-title-wrap {
  display: grid;
  gap: 20px;
  width: min(100%, 1040px);
}

.hero-title {
  margin: 0;
  display: grid;
  gap: 0;
  line-height: 0.9;
}

.hero-title-latin {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.2rem, 18vw, 13rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #f8fbff;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  text-shadow:
    var(--hero-title-shadow),
    1px 1px 0 rgba(130, 214, 255, 0.08);
  animation: title-breathe 6s ease-in-out infinite;
}

.hero-title-cn {
  display: block;
  margin-top: 0.01em;
  color: #8ed8ff;
  font-size: clamp(5.7rem, 20vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(205, 239, 255, 0.24);
  text-shadow:
    0 0 26px rgba(142, 216, 255, 0.15),
    0 0 54px rgba(142, 216, 255, 0.07),
    1px 1px 0 rgba(255, 255, 255, 0.06);
  animation: title-breathe 7.2s ease-in-out infinite reverse;
}

.hero-note {
  position: relative;
  width: min(100%, 1100px);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(130, 214, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.92), rgba(8, 11, 16, 0.86)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 24px rgba(130, 214, 255, 0.04);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.hero-note::before {
  content: ">>";
  flex: 0 0 auto;
  color: rgba(130, 214, 255, 0.78);
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(130, 214, 255, 0.18);
}

.hero-note::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(130, 214, 255, 0.06);
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(130, 214, 255, 0.03);
}

.hero-note-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.58rem;
  border: 1px solid rgba(130, 214, 255, 0.22);
  background: rgba(130, 214, 255, 0.06);
  color: #dff4ff;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(130, 214, 255, 0.12);
}

.hero-note-copy {
  flex: 0 0 auto;
  color: rgba(212, 222, 232, 0.84);
  letter-spacing: 0.01em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.03);
}

.hero-note::-webkit-scrollbar {
  display: none;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: clamp(32px, 7vh, 56px);
  color: var(--text-faint);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(130, 214, 255, 0.55);
  animation: hint-pulse 1.5s ease-in-out infinite;
}

.hero-side-cloud {
  position: absolute;
  top: clamp(8rem, 16vh, 12rem);
  right: clamp(1.2rem, 3vw, 3.2rem);
  width: min(28vw, 24rem);
  height: clamp(22rem, 48vh, 31rem);
  opacity: 0.9;
  pointer-events: none;
}

.hero-cloud-line,
.hero-bubble {
  position: absolute;
}

.hero-cloud-line {
  transform-origin: left center;
  height: 1px;
  background: linear-gradient(90deg, rgba(183, 236, 255, 0.28), rgba(183, 236, 255, 0.02));
  box-shadow: 0 0 10px rgba(130, 214, 255, 0.08);
}

.hero-cloud-line-1 {
  top: 7.1rem;
  left: 6.8rem;
  width: 9rem;
  transform: rotate(-18deg);
}

.hero-cloud-line-2 {
  top: 12.8rem;
  left: 6.8rem;
  width: 8.2rem;
  transform: rotate(9deg);
}

.hero-cloud-line-3 {
  top: 18.6rem;
  left: 7rem;
  width: 10rem;
  transform: rotate(24deg);
}

.hero-bubble {
  display: grid;
  gap: 0.22rem;
  padding: 0.7rem 0.82rem 0.76rem;
  border: 1px solid rgba(184, 233, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.94), rgba(7, 11, 16, 0.88)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 20px rgba(130, 214, 255, 0.06);
  backdrop-filter: blur(10px);
  animation: bubble-drift 8s ease-in-out infinite;
}

.hero-bubble::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-bubble-label {
  color: rgba(183, 236, 255, 0.7);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-bubble-value {
  color: rgba(246, 250, 255, 0.94);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-bubble-core {
  top: 9.4rem;
  left: 0;
  padding: 1rem 1.16rem 1.06rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.96), rgba(8, 13, 19, 0.9)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 28px rgba(130, 214, 255, 0.1);
  animation-duration: 10s;
}

.hero-bubble-core .hero-bubble-value {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.hero-bubble-context {
  top: 3rem;
  left: 12.2rem;
  animation-delay: -1.6s;
}

.hero-bubble-memory {
  top: 10.2rem;
  left: 14.5rem;
  animation-delay: -2.8s;
}

.hero-bubble-agent {
  top: 17.2rem;
  left: 12rem;
  animation-delay: -4.1s;
}

.hero-bubble-matrix {
  top: 23rem;
  left: 17rem;
  animation-delay: -5.3s;
}

.chapter-orbit {
  position: absolute;
  top: clamp(2.4rem, 10vh, 6rem);
  right: clamp(0.5rem, 1.6vw, 1.8rem);
  width: min(24vw, 20rem);
  height: clamp(24rem, 54vh, 34rem);
  opacity: 0.92;
  pointer-events: none;
}

.orbit-link,
.orbit-node {
  position: absolute;
}

.orbit-link {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(183, 236, 255, 0.24), rgba(183, 236, 255, 0.02));
  box-shadow: 0 0 12px rgba(130, 214, 255, 0.06);
}

.orbit-link-1 {
  top: 6.7rem;
  left: 4rem;
  width: 8rem;
  transform: rotate(-12deg);
}

.orbit-link-2 {
  top: 12.8rem;
  left: 5rem;
  width: 8.6rem;
  transform: rotate(10deg);
}

.orbit-link-3 {
  top: 18.7rem;
  left: 4.8rem;
  width: 9.6rem;
  transform: rotate(-18deg);
}

.orbit-link-4 {
  top: 24.3rem;
  left: 8rem;
  width: 7.5rem;
  transform: rotate(18deg);
}

.orbit-node {
  display: grid;
  gap: 0.18rem;
  min-width: 7rem;
  padding: 0.66rem 0.8rem 0.72rem;
  border: 1px solid rgba(184, 233, 255, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.92), rgba(7, 11, 16, 0.86)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 18px rgba(130, 214, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: bubble-drift 8s ease-in-out infinite;
}

.orbit-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.orbit-node-label {
  color: rgba(183, 236, 255, 0.7);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.orbit-node-value {
  color: rgba(245, 249, 253, 0.94);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.orbit-node-core {
  top: 8.9rem;
  left: 0;
  min-width: 8.4rem;
  padding: 0.96rem 1rem 1rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.95), rgba(8, 13, 19, 0.9)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 24px rgba(130, 214, 255, 0.1);
  animation-duration: 10s;
}

.orbit-node-core .orbit-node-value {
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

.orbit-node-1 {
  top: 3rem;
  left: 11.2rem;
  animation-delay: -1.2s;
}

.orbit-node-2 {
  top: 10.4rem;
  left: 13.6rem;
  animation-delay: -2.5s;
}

.orbit-node-3 {
  top: 16.5rem;
  left: 11rem;
  animation-delay: -3.8s;
}

.orbit-node-4 {
  top: 22.4rem;
  left: 15rem;
  animation-delay: -5.1s;
}

.story-section {
  position: relative;
  display: grid;
  gap: var(--section-gap);
  padding: clamp(16px, 3vh, 28px) 0 clamp(96px, 12vh, 152px);
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.story-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.4rem;
  width: 24px;
  pointer-events: none;
}

.rail-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(130, 214, 255, 0.18),
    rgba(255, 255, 255, 0.08) 28%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.rail-node {
  position: absolute;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(130, 214, 255, 0.38);
  background: #09121b;
  box-shadow: 0 0 16px rgba(130, 214, 255, 0.12);
}

.rail-node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(130, 214, 255, 0.78);
}

.rail-node-1 { top: 5.5rem; }
.rail-node-2 { top: 23.5rem; }
.rail-node-3 { top: 41rem; }
.rail-node-4 { top: 58.5rem; }

.story-block {
  width: var(--content-measure);
  margin-left: clamp(34px, 6vw, 86px);
}

.story-label {
  margin: 0 0 14px;
  color: rgba(130, 214, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-title {
  margin: 0;
  width: min(100%, 16ch);
  color: #f7fbff;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.025em;
}

.story-paragraph {
  margin: 0;
  width: min(100%, var(--reading-measure));
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.96;
  text-wrap: pretty;
}

.terminal-quote {
  margin: 0;
  width: min(100%, 62ch);
  padding-left: clamp(16px, 2vw, 22px);
  border-left: 1px solid rgba(130, 214, 255, 0.24);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 84%);
}

.terminal-quote p {
  margin: 0;
  color: rgba(242, 246, 251, 0.94);
  font-size: clamp(1.1rem, 1.95vw, 1.34rem);
  line-height: 1.88;
}

.terminal-quote footer {
  margin-top: 0.75rem;
  color: rgba(130, 214, 255, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-block-final .story-paragraph {
  margin-bottom: 18px;
}

.manifesto-line {
  margin: 0;
  width: min(100%, 22ch);
  color: #f7fbff;
  font-size: clamp(2.1rem, 5.2vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(130, 214, 255, 0.06);
}

.chapter-jump {
  width: min(100%, 980px);
  margin-left: clamp(34px, 6vw, 86px);
  padding-top: 6px;
}

.chapter-jump-dual {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chapter-section {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(28px, 5vw, 54px) 0 clamp(84px, 10vh, 128px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.chapter-head {
  display: grid;
  gap: 14px;
  width: min(100%, 1040px);
}

.chapter-label {
  margin: 0;
  color: rgba(130, 214, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter-title {
  margin: 0;
  width: min(100%, 17ch);
  color: #f6f9fd;
  font-size: clamp(2.5rem, 5.8vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.chapter-flow {
  display: grid;
  gap: 22px;
  width: min(100%, 980px);
}

.chapter-paragraph {
  margin: 0;
  width: min(100%, var(--reading-measure));
  color: rgba(220, 228, 236, 0.82);
  font-size: clamp(1.02rem, 1.65vw, 1.14rem);
  line-height: 1.96;
  text-wrap: pretty;
}

.chapter-paragraph-emphasis {
  color: rgba(236, 242, 248, 0.92);
}

.chapter-break {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 6px;
  color: rgba(206, 215, 225, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-break-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(130, 214, 255, 0.42);
}

.chapter-subtitle {
  margin: 4px 0 0;
  width: min(100%, 30ch);
  color: #f6f9fd;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.chapter-quote {
  margin: 0;
  width: min(100%, 62ch);
  padding-left: clamp(16px, 2vw, 22px);
  border-left: 1px solid rgba(130, 214, 255, 0.24);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 82%);
}

.chapter-quote p {
  margin: 0;
  color: rgba(238, 244, 251, 0.92);
  font-size: clamp(1.02rem, 1.75vw, 1.2rem);
  line-height: 1.9;
}

.chapter-quote-translation {
  margin-top: 0.8rem !important;
  color: rgba(209, 219, 230, 0.76) !important;
  font-size: clamp(0.95rem, 1.45vw, 1.06rem) !important;
  line-height: 1.86 !important;
}

.chapter-quote footer {
  margin-top: 0.72rem;
  color: rgba(130, 214, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chapter-manifesto {
  margin: 8px 0 0;
  width: min(100%, 24ch);
  color: #f7fbff;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.06),
    0 0 30px rgba(130, 214, 255, 0.04);
}

.contact-card {
  width: min(100%, 34rem);
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid rgba(184, 233, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 18, 26, 0.86), rgba(8, 12, 18, 0.9)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 22px rgba(130, 214, 255, 0.05);
}

.contact-label,
.contact-value,
.contact-note {
  margin: 0;
}

.contact-label {
  color: rgba(130, 214, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-value {
  margin-top: 0.72rem;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-note {
  margin-top: 0.46rem;
  color: rgba(222, 231, 239, 0.82);
  font-size: 0.98rem;
  line-height: 1.78;
}

.terminal-foot {
  display: grid;
  gap: 18px;
  padding: 0 0 max(28px, env(safe-area-inset-bottom, 0));
  content-visibility: auto;
  contain-intrinsic-size: 160px;
}

.footer-cta-row {
  display: flex;
  justify-content: flex-end;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.76rem 1.18rem;
  border: 1px solid rgba(184, 233, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(16, 26, 36, 0.96), rgba(10, 16, 24, 0.94)),
    rgba(255, 255, 255, 0.02);
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(130, 214, 255, 0.14);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  border-color: rgba(184, 233, 255, 0.82);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 32px rgba(130, 214, 255, 0.22);
}

.record-block {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 4px;
}

.record-link,
.record-system {
  color: #f4f8fc;
  text-decoration: none;
}

.record-link {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.record-system {
  font-size: 0.82rem;
  color: rgba(242, 247, 252, 0.94);
  text-align: center;
  line-height: 1.7;
}

.record-link:hover,
.record-link:focus-visible,
.record-system:hover,
.record-system:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  color: #ffffff;
}

@keyframes ambient-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(3rem, 2rem, 0) scale(1.08);
  }
}

@keyframes bubble-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes lamp-pulse {
  from {
    opacity: 0.45;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.34);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.66);
  }
}

@keyframes hint-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.88);
    opacity: 0.58;
  }
}

@keyframes noise-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(-0.5%, 0.4%, 0);
  }

  50% {
    transform: translate3d(0.45%, -0.55%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scan-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 18px;
  }
}

@keyframes grid-shift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes aurora-float {
  from {
    transform: translate3d(-1.6%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(1.8%, 1.5%, 0) scale(1.05);
  }
}

@keyframes title-breathe {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }
}

@keyframes type-hello {
  to {
    width: 7ch;
  }
}

@keyframes type-welcome {
  to {
    width: 15em;
  }
}

@keyframes caret-sequence-1 {
  0%,
  20%,
  40%,
  60% {
    opacity: 1;
  }

  10%,
  30%,
  50%,
  70% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes caret-sequence-2 {
  0%,
  18%,
  36%,
  54%,
  72% {
    opacity: 1;
  }

  9%,
  27%,
  45%,
  63%,
  81% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.reveal-fast {
  --reveal-delay: 70ms;
}

.reveal-slow {
  --reveal-delay: 180ms;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (min-width: 1200px) {
  .hero-section {
    padding-right: min(24rem, 28vw);
  }

  .chapter-section {
    padding-right: min(22rem, 24vw);
  }
}

@media (max-width: 1180px) {
  :root {
    --shell-max-width: 100%;
    --content-measure: min(100%, 900px);
  }

  .terminal-shell {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.02),
      inset 0 0 140px rgba(255, 255, 255, 0.014),
      0 24px 56px rgba(0, 0, 0, 0.36);
  }

  .hero-section {
    padding-top: clamp(36px, 7vh, 72px);
  }

  .hero-title-latin {
    font-size: clamp(4.4rem, 13vw, 7.6rem);
  }

  .hero-title-cn {
    font-size: clamp(4.8rem, 14.2vw, 8.4rem);
  }

  .hero-side-cloud {
    width: min(30vw, 20rem);
    right: 0.8rem;
    transform: scale(0.9);
    transform-origin: top right;
  }

  .chapter-orbit {
    width: min(25vw, 18rem);
    right: 0.2rem;
    transform: scale(0.9);
    transform-origin: top right;
  }

  .story-title {
    font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  }

  .story-paragraph {
    font-size: clamp(1rem, 1.45vw, 1.08rem);
  }

  .chapter-title {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
  }
}

@media (max-width: 900px) {
  :root {
    --page-gutter: 12px;
    --shell-padding-x: 18px;
    --shell-padding-y: 18px;
  }

  .text {
    width: auto;
    white-space: normal;
    animation: none;
  }

  .text::after {
    display: none;
  }

  .terminal-meta {
    max-width: min(100%, 32rem);
  }

  .story-block {
    margin-left: 42px;
  }

  .hero-side-cloud {
    display: none;
  }

  .chapter-orbit {
    display: none;
  }

  .story-title,
  .story-paragraph,
  .terminal-quote,
  .manifesto-line,
  .chapter-title,
  .chapter-flow,
  .chapter-paragraph,
  .chapter-subtitle,
  .chapter-quote,
  .chapter-manifesto,
  .contact-card {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-title-latin {
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.2);
  }

  .hero-title-cn {
    -webkit-text-stroke: 0.8px rgba(205, 239, 255, 0.22);
  }

  .hero-note {
    width: min(100%, 760px);
    scrollbar-width: thin;
  }

  .chapter-jump {
    margin-left: 42px;
    width: calc(100% - 42px);
  }

  .rail-node-1 { top: 6rem; }
  .rail-node-2 { top: 26rem; }
  .rail-node-3 { top: 47rem; }
  .rail-node-4 { top: 68rem; }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 0;
  }

  .terminal-shell {
    padding: 18px 15px 22px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.02),
      inset 0 0 100px rgba(255, 255, 255, 0.012);
  }

  .terminal-meta {
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
    line-height: 1.6;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-section {
    min-height: auto;
    padding: 28px 0 24px;
  }

  .hero-title-wrap {
    gap: 12px;
  }

  .hero-title {
    line-height: 0.98;
  }

  .hero-title-latin {
    font-size: clamp(2.8rem, 13.6vw, 4.25rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
  }

  .hero-title-cn {
    font-size: clamp(3.3rem, 15.4vw, 4.85rem);
    letter-spacing: -0.1em;
    line-height: 0.92;
  }

  .hero-note {
    width: 100%;
    display: block;
    padding: 0.76rem 0.82rem;
    font-size: 0.8rem;
    line-height: 1.72;
    white-space: normal;
    overflow: visible;
  }

  .hero-note::before {
    display: inline-block;
    margin-right: 0.42rem;
  }

  .hero-note-label {
    display: inline-flex;
    margin-right: 0.42rem;
    margin-bottom: 0.42rem;
    vertical-align: middle;
  }

  .hero-note-copy {
    display: inline;
  }

  .scroll-hint {
    width: 100%;
    margin-top: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
  }

  .story-section {
    gap: 24px;
    padding: 6px 0 56px;
  }

  .chapter-section {
    gap: 22px;
    padding: 28px 0 64px;
  }

  .chapter-head {
    gap: 12px;
  }

  .story-rail {
    display: none;
  }

  .story-block {
    width: 100%;
    margin-left: 0;
  }

  .chapter-jump {
    width: 100%;
    margin-left: 0;
  }

  .chapter-jump-dual {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-label {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .story-title {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
    line-height: 1.14;
    text-wrap: pretty;
  }

  .chapter-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .chapter-title {
    font-size: clamp(1.85rem, 8.2vw, 2.7rem);
    line-height: 1.12;
  }

  .story-paragraph,
  .terminal-quote p,
  .chapter-paragraph,
  .chapter-quote p {
    font-size: 0.93rem;
    line-height: 1.84;
    text-wrap: pretty;
  }

  .terminal-quote {
    padding-left: 12px;
  }

  .chapter-quote {
    padding-left: 12px;
  }

  .chapter-quote-translation {
    font-size: 0.9rem !important;
  }

  .terminal-quote footer {
    margin-top: 0.6rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .chapter-subtitle {
    font-size: clamp(1.28rem, 5.8vw, 1.7rem);
    line-height: 1.34;
  }

  .chapter-manifesto {
    font-size: clamp(1.28rem, 6vw, 1.82rem);
    line-height: 1.3;
  }

  .contact-value {
    font-size: clamp(1.46rem, 8vw, 2.1rem);
  }

  .contact-note {
    font-size: 0.9rem;
  }

  .manifesto-line {
    font-size: clamp(1.45rem, 7.4vw, 2.1rem);
    line-height: 1.26;
  }

  .footer-cta-row {
    justify-content: flex-start;
  }

  .footer-cta {
    width: 100%;
    min-height: 42px;
    padding: 0.68rem 0.92rem;
    text-align: center;
    font-size: 0.9rem;
  }

  .record-link {
    font-size: 0.78rem;
  }

  .record-system {
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.65;
  }
}

@media (max-width: 420px) {
  .terminal-shell {
    padding: 16px 13px 20px;
  }

  .boot {
    gap: 8px;
    margin-bottom: 18px;
  }

  .boot-line {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .sym {
    margin-right: 8px;
  }

  .hero-title-latin {
    font-size: clamp(2.45rem, 13.6vw, 3.5rem);
  }

  .hero-title-cn {
    font-size: clamp(2.8rem, 14.8vw, 4.1rem);
  }

  .hero-note {
    padding: 0.68rem 0.74rem;
    font-size: 0.76rem;
  }

  .hero-note-label {
    padding: 0.22rem 0.48rem;
  }

  .story-block {
    margin-left: 0;
  }

  .story-label {
    font-size: 0.68rem;
  }

  .story-title {
    font-size: clamp(1.55rem, 7.8vw, 2.05rem);
  }

  .story-paragraph,
  .terminal-quote p,
  .chapter-paragraph,
  .chapter-quote p {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .chapter-title {
    font-size: clamp(1.56rem, 7.8vw, 2.1rem);
  }

  .chapter-quote-translation {
    font-size: 0.84rem !important;
    line-height: 1.72 !important;
  }

  .chapter-subtitle {
    font-size: clamp(1.14rem, 5.4vw, 1.42rem);
  }

  .manifesto-line {
    font-size: clamp(1.34rem, 7.6vw, 1.82rem);
  }

  .chapter-manifesto {
    font-size: clamp(1.18rem, 5.6vw, 1.5rem);
  }

  .contact-card {
    padding: 0.9rem 0.9rem 1rem;
  }

  .contact-value {
    font-size: clamp(1.28rem, 7vw, 1.72rem);
  }

  .contact-note {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .footer-cta {
    font-size: 0.84rem;
  }

  .record-system {
    font-size: 0.68rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --shell-max-width: 1560px;
  }

  .story-block {
    width: min(100%, 980px);
  }
}

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

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

.terminal-foot .footer-cta,
.terminal-foot .footer-cta:link,
.terminal-foot .footer-cta:visited {
  color: #ffffff !important;
  border-color: rgba(210, 241, 255, 0.78) !important;
  background:
    linear-gradient(180deg, rgba(20, 34, 48, 0.98), rgba(10, 17, 26, 0.96)),
    rgba(255, 255, 255, 0.03) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(130, 214, 255, 0.18) !important;
  opacity: 1 !important;
}

.terminal-foot .footer-cta:hover,
.terminal-foot .footer-cta:focus-visible,
.terminal-foot .footer-cta:active {
  color: #ffffff !important;
  border-color: rgba(223, 246, 255, 0.96) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 36px rgba(130, 214, 255, 0.26) !important;
}

.terminal-foot .record-link,
.terminal-foot .record-link:link,
.terminal-foot .record-link:visited {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.terminal-foot .record-system,
.terminal-foot .record-system:link,
.terminal-foot .record-system:visited {
  color: #f5f9fd !important;
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}
