:root {
  color-scheme: light;
  --section-title-top: 15vh;
  --section-body-top: 34vh;
  --section-safe-bottom: 7.5vh;
  --page-bg: #f7fbff;
  --page-bg-soft: #edf6ff;
  --page-glass: rgba(255, 255, 255, 0.68);
  --page-glass-strong: rgba(255, 255, 255, 0.82);
  --page-border: rgba(44, 110, 183, 0.16);
  --page-border-strong: rgba(44, 110, 183, 0.28);
  --text-primary: #173150;
  --text-secondary: #4f6d90;
  --text-muted: #7389a5;
  --accent-blue: #2c6eb7;
  --accent-soft: #76b6ff;
  --accent-orange: #f29318;
  --accent-warm: #f29318;
  --accent-orange-soft: rgba(242, 147, 24, 0.12);
  --panel-overlay: linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
  --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
  --shadow-soft: 0 26px 72px rgba(36, 74, 122, 0.12);
  --shadow-strong: 0 32px 92px rgba(28, 58, 96, 0.16);
  --grid-line: rgba(44, 110, 183, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #07101b;
  --page-bg-soft: #0c1726;
  --page-glass: rgba(12, 24, 40, 0.68);
  --page-glass-strong: rgba(14, 27, 44, 0.82);
  --page-border: rgba(80, 128, 188, 0.22);
  --page-border-strong: rgba(242, 147, 24, 0.34);
  --text-primary: #f2a33c;
  --text-secondary: #c7d4e4;
  --text-muted: #8ea4bd;
  --accent-blue: #5b92d5;
  --accent-soft: #86b7f0;
  --accent-orange: #f29318;
  --accent-warm: #ffaf4d;
  --accent-orange-soft: rgba(242, 147, 24, 0.16);
  --panel-overlay: linear-gradient(145deg, rgba(15, 28, 45, 0.84), rgba(9, 18, 30, 0.56));
  --hero-overlay: linear-gradient(180deg, rgba(20, 35, 58, 0.18), rgba(9, 18, 30, 0.02));
  --shadow-soft: 0 24px 72px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 32px 110px rgba(0, 0, 0, 0.48);
  --grid-line: rgba(91, 146, 213, 0.12);
}

:root {
  --hero-title-color: #111111;
  --hero-highlight-color: #1f4f86;
}

html[data-theme="dark"] {
  --hero-title-color: #f5f7fb;
  --hero-highlight-color: #f29318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 10% 12%, rgba(118, 182, 255, 0.18), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(242, 147, 24, 0.09), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-soft) 52%, var(--page-bg) 100%);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 12%, rgba(44, 110, 183, 0.22), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(242, 147, 24, 0.14), transparent 20%),
    linear-gradient(180deg, #07101b 0%, #0a1422 46%, #08111d 100%);
}

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

body::before {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 84%);
}

body::after {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0.65;
}

.page-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.98;
  transform: translateZ(0);
}

html.perf-medium .page-canvas {
  opacity: 0.9;
}

html.perf-low .page-canvas {
  opacity: 0.82;
}

html.perf-android .page-canvas {
  display: none;
}

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

img {
  max-width: 100%;
}

::selection {
  background: rgba(44, 110, 183, 0.18);
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(44, 110, 183, 0.26), transparent 28%),
    rgba(4, 10, 18, 0.98);
  z-index: 300;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-stage {
  position: relative;
  display: grid;
  gap: 24px;
  place-items: center;
  min-width: min(88vw, 760px);
  padding: 48px 32px;
}

.loader-orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(44, 110, 183, 0.18);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: 0.42;
}

.orbit-a {
  width: min(66vw, 520px);
  height: min(66vw, 520px);
}

.orbit-b {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
}

.loader-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 580px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(44, 110, 183, 0.92), rgba(242, 147, 24, 0.92), transparent);
  transform: translate(-50%, -50%) scaleX(0.15);
  filter: blur(1px);
  opacity: 0;
}

html.perf-low .loader-beam {
  filter: none;
}

.loader-wordmark {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(44, 110, 183, 0.16);
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  color: #f7fbff;
}

.loader-letter-accent {
  color: var(--accent-orange);
  text-shadow: 0 0 26px rgba(242, 147, 24, 0.24);
}

.loader-subline {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(70vw, 520px);
  opacity: 0;
}

.loader-subline p {
  margin: 0;
  color: rgba(237, 244, 255, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loader-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 110, 183, 0.54), rgba(242, 147, 24, 0.42), transparent);
}

.theme-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.22;
  pointer-events: none;
  animation: orbFloat 28s ease-in-out infinite alternate;
  will-change: transform;
  contain: paint;
  transform: translateZ(0);
  display: none;
}

.orb-blue {
  top: 12vh;
  left: -7vw;
  width: 24rem;
  height: 24rem;
  background: rgba(44, 110, 183, 0.28);
}

.orb-orange {
  right: -6vw;
  top: 28vh;
  width: 18rem;
  height: 18rem;
  background: rgba(242, 147, 24, 0.18);
  animation-delay: -5s;
}

.orb-soft {
  left: 34vw;
  bottom: 12vh;
  width: 20rem;
  height: 20rem;
  background: rgba(118, 182, 255, 0.16);
  animation: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  box-shadow: 0 0 18px rgba(44, 110, 183, 0.36);
  transform: scaleX(0);
  transform-origin: left center;
}

html.perf-low .scroll-progress {
  box-shadow: none;
}

.site-header,
.mobile-menu-panel,
.panel-surface,
.editor-shell,
.about-card,
.journey-card,
.future-card,
.contact-card,
.footer-panel {
  border: 1px solid var(--page-border);
  background: var(--panel-overlay), var(--page-glass);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

html.perf-medium .site-header,
html.perf-medium .mobile-menu-panel,
html.perf-medium .panel-surface,
html.perf-medium .editor-shell,
html.perf-medium .about-card,
html.perf-medium .journey-card,
html.perf-medium .future-card,
html.perf-medium .contact-card,
html.perf-medium .footer-panel {
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 18px 42px rgba(36, 74, 122, 0.1);
}

html.perf-low .site-header,
html.perf-low .mobile-menu-panel,
html.perf-low .panel-surface,
html.perf-low .editor-shell,
html.perf-low .about-card,
html.perf-low .journey-card,
html.perf-low .future-card,
html.perf-low .contact-card,
html.perf-low .footer-panel {
  background: var(--page-glass-strong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header {
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled {
  background: var(--panel-overlay), var(--page-glass-strong);
  border-color: var(--page-border-strong);
  box-shadow: var(--shadow-strong);
}

html.perf-low .site-header,
html.perf-low .panel-surface,
html.perf-low .about-card,
html.perf-low .journey-card,
html.perf-low .future-card,
html.perf-low .contact-card,
html.perf-low .footer-panel {
  transition: opacity 0.22s linear, transform 0.22s linear, border-color 0.2s ease;
}

html.perf-low .site-header.is-scrolled {
  box-shadow: none;
}

html.perf-medium .panel-body,
html.perf-medium .journey-track,
html.perf-medium .journey-card,
html.perf-medium .future-card,
html.perf-medium .contact-card {
  transition-duration: 0.18s;
}

html.perf-low .panel-body,
html.perf-low .journey-track,
html.perf-low .journey-card,
html.perf-low .future-card,
html.perf-low .contact-card {
  transition: none !important;
}

.nav-link,
.mobile-nav-link,
.action-button,
.icon-button,
.section-chip,
.hero-stat-card,
.editor-badge,
.timeline-year {
  border-radius: 999px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.62rem 1rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: rgba(44, 110, 183, 0.08);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
}

.icon-button {
  position: relative;
  display: inline-flex;
  width: 2.85rem;
  height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="dark"] .icon-button {
  background: rgba(12, 22, 36, 0.82);
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--page-border-strong);
}

.theme-icon {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(-16deg);
}

.theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(16deg);
}

.menu-bar {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#mobileMenuButton {
  flex-direction: column;
  gap: 0.2rem;
}

#mobileMenuButton.is-open .menu-bar:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

#mobileMenuButton.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

#mobileMenuButton.is-open .menu-bar:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.mobile-menu-panel {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  border-radius: 2rem;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-panel.is-open {
  max-height: 24rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-header-wrap {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1rem;
  pointer-events: none;
}

.page-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header-shell,
.mobile-menu-shell,
.intro-layout,
.chapter-shell,
.site-footer-shell {
  width: min(100% - 2rem, 84rem);
  margin: 0 auto;
}

.site-header-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  pointer-events: auto;
}

.mobile-menu-shell {
  margin-top: 0.85rem;
  display: none;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  display: none;
}

.brand-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-name,
.brand-tagline {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-theme-toggle {
  display: inline-flex;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu-head,
.mobile-menu-footer {
  display: none;
}

.mobile-menu-nav {
  display: none;
  gap: 0.5rem;
  padding: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--text-primary);
  background: rgba(44, 110, 183, 0.08);
}

.mobile-theme-toggle {
  display: inline-flex;
}

.intro-scene,
.chapters-scene {
  position: relative;
}

.intro-scene {
  min-height: 270vh;
}

.chapters-scene {
  min-height: 1040vh;
  overflow-anchor: none;
}

.scene-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  overflow-anchor: none;
}

.scene-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  contain: paint;
  opacity: 0;
}

.scene-grid,
.scene-aurora,
.scene-beams {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  display: none;
}

.scene-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 92%);
  opacity: 0.88;
}

.scene-aurora {
  filter: blur(8px);
}

html.perf-medium .scene-aurora {
  opacity: 0.6;
}

html.perf-low .scene-aurora,
html.perf-low .scene-beam,
html.perf-low .theme-orb {
  display: none;
}

html.perf-android .scene-aurora,
html.perf-android .scene-beams,
html.perf-android .theme-orb,
html.perf-android .editor-shell::before {
  display: none;
}

.aurora-band {
  position: absolute;
  border-radius: 999px;
  opacity: 0.18;
  animation: auroraDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.aurora-band-a {
  top: 10%;
  left: -10%;
  width: min(48vw, 44rem);
  height: min(24vw, 22rem);
  background: radial-gradient(circle at 30% 50%, rgba(44, 110, 183, 0.34), transparent 72%);
}

.aurora-band-b {
  right: -8%;
  bottom: 14%;
  width: min(40vw, 36rem);
  height: min(20vw, 18rem);
  background: radial-gradient(circle at 56% 50%, rgba(242, 147, 24, 0.22), transparent 74%);
  animation-delay: -5s;
}

.aurora-band-c {
  top: 34%;
  left: 28%;
  width: min(24vw, 22rem);
  height: min(16vw, 14rem);
  background: radial-gradient(circle at center, rgba(118, 182, 255, 0.2), transparent 74%);
  animation: none;
}

.scene-beam {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.12;
}

.scene-beam-a {
  top: 18%;
  left: -10%;
  width: min(46vw, 40rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 146, 213, 0.9), transparent);
  animation: beamMoveA 14s ease-in-out infinite alternate;
}

.scene-beam-b {
  top: 56%;
  right: -6%;
  width: min(32vw, 30rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 147, 24, 0.74), transparent);
  animation: none;
}

.scene-beam-c {
  top: 8%;
  left: 62%;
  width: 2px;
  height: min(34vh, 18rem);
  background: linear-gradient(180deg, transparent, rgba(91, 146, 213, 0.82), transparent);
  animation: none;
}

.scene-shell {
  position: relative;
  z-index: 1;
}

.intro-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 3.5rem;
  align-items: center;
  padding: clamp(6.8rem, 14vh, 8.6rem) 1rem 18vh;
}

.hero-copy {
  display: grid;
  gap: 1.8rem;
  align-self: center;
  max-width: min(100%, 42rem);
  padding-top: 0;
  will-change: transform, opacity;
  contain: paint;
}

html.perf-low .hero-copy,
html.perf-low .editor-stage,
html.perf-low .editor-code,
html.perf-low .scroll-caption {
  transition: none;
  will-change: auto;
}

html.perf-android .hero-copy,
html.perf-android .editor-stage,
html.perf-android .editor-code,
html.perf-android .scroll-caption,
html.perf-android .chapter-panel,
html.perf-android .panel-body,
html.perf-android .journey-track,
html.perf-android .journey-card,
html.perf-android .future-card,
html.perf-android .contact-card {
  transition: none !important;
  will-change: auto;
}

#heroTitle {
  color: var(--hero-title-color);
}

#heroHighlight {
  color: var(--hero-highlight-color);
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.38);
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

html[data-theme="dark"] .section-chip {
  background: rgba(10, 22, 36, 0.86);
  color: var(--accent-soft);
}

.section-chip::before {
  content: "";
  width: 2.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
}

.hero-heading-group {
  display: grid;
  gap: 1.6rem;
}

.hero-heading {
  max-width: 64rem;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.03em;
}

.hero-title-line {
  display: block;
}

.hero-subheading {
  display: block;
  margin-top: 1.35rem;
  letter-spacing: 0.1em;
  font-style: normal;
}

.hero-description {
  max-width: 40rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  will-change: opacity, transform;
}

html.perf-low .hero-actions {
  transition: none;
  will-change: auto;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 7rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.44);
}

html[data-theme="dark"] .hero-stat-card {
  background: rgba(10, 22, 36, 0.82);
}

.hero-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  box-shadow: 0 18px 48px rgba(44, 110, 183, 0.2);
}

.action-button-secondary {
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text-primary);
}

html[data-theme="dark"] .action-button-secondary {
  background: rgba(10, 22, 36, 0.82);
}

.editor-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0;
  will-change: transform;
  contain: paint;
}

html.perf-medium .editor-stage,
html.perf-medium .editor-code,
html.perf-medium .scroll-caption {
  transition-duration: 0s;
}

.editor-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 46rem);
  border-radius: 2rem;
  contain: layout paint;
}

.editor-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(242, 147, 24, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(44, 110, 183, 0.16), transparent 34%);
  pointer-events: none;
}

.editor-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
}

.editor-traffic {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html[data-theme="dark"] .editor-topbar {
  background: rgba(10, 18, 30, 0.82);
}

.traffic-light {
  display: inline-flex;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.traffic-red { background: #ff6c64; }
.traffic-yellow { background: #f5c04f; }
.traffic-green { background: #4ecb71; }

.editor-badge {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-viewport {
  position: relative;
  height: clamp(15rem, 24vh, 19rem);
  overflow: hidden;
  padding: 1rem 0 2rem;
  background: var(--hero-overlay), rgba(6, 11, 17, 0.96);
}

html[data-theme="light"] .editor-viewport {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 255, 0.98));
}

.editor-viewport::before,
.editor-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 4.5rem;
  pointer-events: none;
}

.editor-viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(7, 13, 19, 0.98), rgba(7, 13, 19, 0));
}

.editor-viewport::after {
  bottom: 0;
  background: linear-gradient(180deg, rgba(7, 13, 19, 0), rgba(7, 13, 19, 0.98));
}

html[data-theme="light"] .editor-viewport::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

html[data-theme="light"] .editor-viewport::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 247, 255, 0.98));
}

.editor-code {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
  contain: paint;
}

.editor-line {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-height: 2.2rem;
  padding: 0 1.35rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.line-number {
  color: rgba(137, 155, 175, 0.74);
  text-align: right;
}

.line-content {
  color: #d8e5f7;
  white-space: pre-wrap;
  word-break: break-word;
}

.line-content::after {
  content: "";
  display: inline-block;
  width: 0.56rem;
  height: 1.08em;
  margin-left: 0.16rem;
  vertical-align: text-bottom;
  background: var(--accent-orange);
  opacity: 0;
}

html[data-theme="light"] .line-content {
  color: #20405f;
}

.line-content.is-active::after {
  opacity: 1;
  animation: blink 0.8s steps(1) infinite;
}

html.perf-android .line-content.is-active::after {
  animation: none;
  opacity: 0;
}

.token-comment { color: #7c93ad; }
.token-keyword { color: #8dd2ff; }
.token-class { color: #ffd28d; }
.token-function { color: #8cd7bf; }
.token-string { color: #f7c08c; }
.token-property { color: #cdb9ff; }

html[data-theme="light"] .token-keyword { color: #1f6ec2; }
html[data-theme="light"] .token-class { color: #ce7a12; }
html[data-theme="light"] .token-function { color: #327d69; }
html[data-theme="light"] .token-string { color: #bb6c00; }
html[data-theme="light"] .token-property { color: #6d58b1; }

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.scroll-caption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 46rem);
  margin: 0;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  will-change: opacity;
}

.scroll-caption span {
  display: inline-flex;
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
}

.scroll-caption p {
  margin: 0;
}

.chapter-shell {
  min-height: 100vh;
  padding: 0 1rem;
}

.chapter-anchor {
  display: none;
}

.chapter-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 0 var(--section-safe-bottom);
  opacity: 0;
  transform: translateY(2rem) scale(0.98);
  pointer-events: none;
  will-change: transform, opacity;
  contain: layout paint;
}

html.perf-medium .chapter-panel {
  transition-duration: 0s;
}

html.perf-low .chapter-panel {
  transition: none;
  will-change: auto;
}

.chapter-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.section-heading {
  max-width: 46rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  text-align: left;
  position: absolute;
  top: var(--section-title-top);
  left: 0;
  z-index: 2;
}

.section-heading h2 {
  margin: 1.1rem 0 0.85rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  text-align: left;
}

.panel-body {
  position: absolute;
  top: var(--section-body-top);
  left: 0;
  right: 0;
  z-index: 1;
  max-height: calc(100vh - var(--section-body-top) - var(--section-safe-bottom));
  opacity: 0;
  transform: translateY(1.8rem);
  will-change: opacity, transform;
  contain: paint;
}

html.perf-low .panel-body,
html.perf-low .journey-track,
html.perf-low .journey-card,
html.perf-low .future-card,
html.perf-low .contact-card {
  will-change: auto;
}

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

.chapter-panel.panel-snap-hidden,
.panel-body.panel-snap-hidden {
  transition: none !important;
}

.panel-body-journey,
.journey-stage,
.contact-grid {
  background: transparent;
  box-shadow: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel-body-journey {
  top: var(--section-body-top);
  bottom: var(--section-safe-bottom);
  height: auto;
  max-height: none;
}

.panel-surface,
.about-card,
.journey-card,
.future-card,
.contact-card,
.footer-panel {
  border-radius: 2rem;
}

.panel-surface,
.about-card,
.future-card,
.contact-card,
.journey-card {
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.panel-surface {
  padding: 1.75rem;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.25rem;
  align-items: stretch;
  max-height: inherit;
}

.about-summary {
  min-height: 100%;
}

.about-description {
  margin: 0;
  font-size: 1.12rem;
  line-height: 2;
  color: var(--text-primary);
}

html[data-theme="dark"] .about-description {
  color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-content: start;
}

.about-card,
.future-card,
.contact-card {
  padding: 1.5rem;
}

.about-card::before,
.future-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(242, 147, 24, 0.1), transparent 30%),
    radial-gradient(circle at bottom left, rgba(44, 110, 183, 0.12), transparent 32%);
  pointer-events: none;
}

html.perf-low .about-card::before,
html.perf-low .future-card::before,
html.perf-low .contact-card::before {
  opacity: 0.4;
}

.about-card > *,
.future-card > *,
.contact-card > *,
.journey-card > * {
  position: relative;
  z-index: 1;
}

.journey-copy {
  position: relative;
  z-index: 1;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-theme="dark"] .card-label {
  color: var(--accent-soft);
}

.card-label::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
}

.about-card h3,
.future-card h3,
.journey-card h3,
.contact-card h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.25rem;
}

.about-card p,
.future-card p,
.journey-card p,
.contact-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

.journey-stage {
  position: relative;
  width: min(100%, 68rem);
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  overflow: hidden;
}

.journey-stage::before,
.journey-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 4rem;
  pointer-events: none;
  display: none;
}

.journey-stage::before {
  top: 0;
  background: linear-gradient(180deg, var(--page-bg-soft), rgba(0, 0, 0, 0));
}

.journey-stage::after {
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--page-bg-soft));
}

html[data-theme="dark"] .journey-stage::before {
  background: linear-gradient(180deg, #0c1726, rgba(0, 0, 0, 0));
}

html[data-theme="dark"] .journey-stage::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #0c1726);
}

.journey-axis {
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(44, 110, 183, 0.16);
}

html[data-theme="dark"] .journey-axis {
  background: rgba(91, 146, 213, 0.18);
}

.journey-axis-progress {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-orange));
  box-shadow: 0 0 18px rgba(44, 110, 183, 0.24);
}

html.perf-low .journey-axis-progress {
  box-shadow: none;
}

.journey-track {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 0.5rem 0;
  will-change: transform;
  transition: none !important;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.journey-card {
  width: calc(50% - 2.25rem);
  padding: 1.25rem;
  border: 1px solid var(--page-border);
  background: var(--panel-overlay), var(--page-glass);
  opacity: 0.4;
  transform: translateX(1.25rem) scale(0.96);
  will-change: transform, opacity;
  contain: layout paint;
  transition: none !important;
  backface-visibility: hidden;
}

.journey-card:nth-child(odd) {
  margin-right: auto;
  transform: translateX(-1.25rem) scale(0.96);
}

.journey-card:nth-child(even) {
  margin-left: auto;
  transform: translateX(1.25rem) scale(0.96);
}

.journey-card::after {
  content: "";
  position: absolute;
  top: 2rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--accent-blue);
  background: var(--page-bg);
  box-shadow: 0 0 0 0.4rem rgba(44, 110, 183, 0.08);
}

.journey-card:nth-child(odd)::after {
  right: -2.66rem;
}

.journey-card:nth-child(even)::after {
  left: -2.66rem;
}

.journey-card::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(44, 110, 183, 0.5), rgba(242, 147, 24, 0.18));
}

.journey-card:nth-child(odd)::before {
  right: -2rem;
}

.journey-card:nth-child(even)::before {
  left: -2rem;
  transform: scaleX(-1);
}

.journey-card.is-visible {
  opacity: 0.88;
}

.journey-card.is-visible:nth-child(odd),
.journey-card.is-visible:nth-child(even) {
  transform: translateX(0) scale(1);
}

.journey-card.is-active {
  opacity: 1;
  border-color: var(--page-border-strong);
  box-shadow: var(--shadow-strong);
}

html.perf-low .journey-card.is-active {
  box-shadow: none;
}

html.perf-android .journey-card,
html.perf-android .future-card,
html.perf-android .contact-card,
html.perf-android .action-button-primary,
html.perf-android .hero-stat-card {
  box-shadow: none;
}

.journey-card.is-active::after {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 0.45rem rgba(242, 147, 24, 0.12);
}

.timeline-year {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(242, 147, 24, 0.24);
  background: var(--accent-orange-soft);
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.future-stage {
  position: relative;
  min-height: calc(100vh - var(--section-body-top) - var(--section-safe-bottom));
  max-height: calc(100vh - var(--section-body-top) - var(--section-safe-bottom));
  perspective: 1200px;
  contain: layout paint;
}

html.perf-medium .future-stage {
  perspective: 720px;
}

html.perf-low .future-stage {
  perspective: none;
}

.future-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 34rem);
  min-height: 14rem;
  border: 1px solid var(--page-border);
  background: var(--panel-overlay), var(--page-glass);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  contain: layout paint;
}

html.perf-low .future-card {
  transform-style: flat;
  backface-visibility: visible;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  contain: layout paint;
}

.contact-grid-panel {
  position: absolute;
  top: calc(var(--section-body-top) + 2.4rem);
  left: 0;
  right: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  will-change: transform, opacity;
  contain: layout paint;
}

#contactCards {
  align-content: start;
}

.contact-card:hover,
.about-card:hover,
.future-card:hover {
  border-color: var(--page-border-strong);
  box-shadow: var(--shadow-strong);
}

html.perf-low .contact-card:hover,
html.perf-low .about-card:hover,
html.perf-low .future-card:hover {
  box-shadow: none;
}

.contact-card-icon,
.contact-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  border: 1px solid rgba(44, 110, 183, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(232, 243, 255, 0.34));
  color: var(--accent-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
  position: relative;
  z-index: 1;
}

html.perf-low .contact-card-icon,
html.perf-low .contact-icon {
  box-shadow: none;
}

html[data-theme="dark"] .contact-card-icon,
html[data-theme="dark"] .contact-icon {
  background:
    linear-gradient(145deg, rgba(20, 38, 61, 0.92), rgba(10, 20, 34, 0.78));
  border-color: rgba(242, 147, 24, 0.24);
  color: var(--accent-orange);
  box-shadow: inset 0 1px 0 rgba(255, 179, 77, 0.12);
}

.contact-card-svg,
.contact-icon img,
.contact-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
}

.contact-card-glyph {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.contact-card-glyph-wechat {
  -webkit-mask-image: url('/img/wechat.svg');
  mask-image: url('/img/wechat.svg');
}

.contact-card-glyph-github {
  -webkit-mask-image: url('/img/github.svg');
  mask-image: url('/img/github.svg');
}

.contact-card-glyph-gitee {
  -webkit-mask-image: url('/img/gitee.svg');
  mask-image: url('/img/gitee.svg');
}

.contact-card-body {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.contact-card-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-theme="dark"] .contact-card-label {
  color: var(--accent-soft);
}

.contact-card-value,
.contact-value {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  display: block;
  margin-top: 0.2rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 84rem);
  margin: 0 auto;
  padding: 1.75rem 0 2rem;
  background: transparent;
  border-top: 1px solid var(--page-border);
  overflow-anchor: none;
}

.site-footer-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.footer-panel {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.footer-logo {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.footer-meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-meta p {
  margin: 0;
}

.footer-beian-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-beian-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  object-fit: contain;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2rem, -1.4rem, 0) scale(1.08); }
}

@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 34px 18px, -34px -18px; }
}

@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(0.96); }
  100% { transform: translate3d(2rem, -1rem, 0) scale(1.08); }
}

@keyframes beamMoveA {
  0% { transform: translateX(0); opacity: 0.12; }
  100% { transform: translateX(8rem); opacity: 0.28; }
}

@keyframes beamMoveB {
  0% { transform: translateX(0); opacity: 0.08; }
  100% { transform: translateX(-6rem); opacity: 0.24; }
}

@keyframes beamMoveC {
  0% { transform: translateY(0); opacity: 0.08; }
  100% { transform: translateY(3rem); opacity: 0.22; }
}

@keyframes loaderOrbitA {
  0% {
    transform: translate(-50%, -50%) scale(0.82) rotate(-10deg);
    opacity: 0;
  }
  22% {
    transform: translate(-50%, -50%) scale(1.02) rotate(0deg);
    opacity: 0.4;
  }
  66% {
    transform: translate(-50%, -50%) scale(1) rotate(8deg);
    opacity: 0.22;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.88) rotate(14deg);
    opacity: 0;
  }
}

@keyframes loaderOrbitB {
  0% {
    transform: translate(-50%, -50%) scale(1.16) rotate(12deg);
    opacity: 0;
  }
  24% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0.32;
  }
  70% {
    transform: translate(-50%, -50%) scale(0.98) rotate(-9deg);
    opacity: 0.18;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12) rotate(-14deg);
    opacity: 0;
  }
}

@keyframes loaderBeam {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.12);
  }
  22% {
    opacity: 0.94;
    transform: translate(-50%, -50%) scaleX(1);
  }
  58% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scaleX(0.82);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.08);
  }
}

@keyframes loaderCore {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.4;
  }
  46% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.88;
  }
}

@keyframes loaderLetter {
  0% {
    opacity: 0;
    transform: translateY(2rem) scale(0.74);
  }
  24% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 1;
    transform: translateY(-0.16rem) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.6rem) scale(0.96);
  }
}

@keyframes loaderSubline {
  0%, 16% {
    opacity: 0;
    transform: translateY(1rem);
  }
  30%, 72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}

@media (max-width: 1279px) {
  .intro-scene {
    min-height: 240vh;
  }

  .orb-soft,
  .aurora-band-c,
  .scene-beam-b,
  .scene-beam-c {
    display: none;
  }
}

@media (min-width: 1280px) {
  .site-header-shell,
  .intro-layout,
  .chapter-shell,
  .site-footer-shell {
    width: calc(100% - 3rem);
    max-width: none;
  }

  .site-header-shell {
    padding: 0.9rem 1.2rem;
  }

  .intro-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 5rem;
    padding: clamp(6.6rem, 13vh, 8.2rem) 1.5rem 16vh;
  }

  .hero-copy {
    gap: 2.35rem;
    max-width: 46rem;
    padding-right: 1.5rem;
  }

  .hero-heading {
    max-width: 100%;
    font-size: clamp(4.1rem, 5.8vw, 6.4rem);
    letter-spacing: 0.05em;
  }

  .hero-subheading {
    margin-top: 1.6rem;
    letter-spacing: 0.14em;
  }

  .hero-description {
    max-width: 46rem;
    font-size: 1.1rem;
    line-height: 2.2;
    letter-spacing: 0.05em;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .hero-actions {
    gap: 1.15rem;
  }

  .editor-shell {
    width: min(100%, 52rem);
  }

  .editor-stage {
    justify-content: center;
  }

  .scroll-caption {
    width: min(100%, 52rem);
  }

  .chapter-shell {
    padding: 0 1.5rem;
  }

  .chapter-panel {
    width: min(100%, 84rem);
  }

  .journey-stage {
    width: min(100%, 78rem);
  }
}

@media (max-width: 1023px) {
  :root {
    --section-title-top: 15vh;
    --section-body-top: 35vh;
    --section-safe-bottom: 7.5vh;
  }

  .intro-scene {
    min-height: 210vh;
  }

  .chapters-scene {
    min-height: 620vh;
  }

  .journey-card {
    width: min(100%, 38rem);
  }

  .future-stage {
    min-height: 24rem;
  }

  .chapter-panel {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .intro-scene {
    min-height: 220vh;
  }

  .chapters-scene {
    min-height: 920vh;
  }

  .scene-shell {
    min-height: 100vh;
    align-items: center;
  }

  .hero-copy {
    max-width: 32rem;
    padding-top: 0;
  }

  .editor-shell {
    width: min(100%, 38rem);
  }

  .editor-viewport {
    height: min(20rem, 24vh);
  }

  .chapter-shell {
    min-height: 100vh;
  }

  .chapter-panel {
    width: 100%;
  }

  .section-heading {
    top: var(--section-title-top);
  }

  .panel-body {
    top: var(--section-body-top);
    max-height: calc(100vh - var(--section-body-top) - var(--section-safe-bottom));
  }

  .panel-body-journey {
    top: var(--section-body-top);
    bottom: var(--section-safe-bottom);
    height: auto;
    max-height: none;
  }

  .journey-stage {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .future-stage {
    min-height: calc(100vh - var(--section-body-top) - var(--section-safe-bottom));
    max-height: calc(100vh - var(--section-body-top) - var(--section-safe-bottom));
  }

  .contact-grid-panel {
    top: calc(var(--section-body-top) + 2rem);
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    width: calc(100% - 3rem);
    padding: 1.5rem 0 1.8rem;
  }
}

@media (max-width: 767px) {
  body.is-menu-open {
    overflow: hidden;
  }

  body::before {
    background-size: 28px 28px;
  }

  .page-loader {
    padding: 1rem;
  }

  .loader-stage {
    padding: 32px 20px;
  }

  .loader-subline {
    width: min(82vw, 360px);
  }

  .loader-subline p {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .theme-orb {
    filter: blur(32px);
    opacity: 0.2;
    animation: none;
  }

  .scene-beams {
    display: none;
  }

  .site-header-shell {
    width: calc(100% - 1.25rem);
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
  }

  .brand-link {
    gap: 0.65rem;
  }

  .brand-logo {
    width: 2.15rem;
    height: 2.15rem;
  }

  .brand-name {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }

  .brand-tagline {
    font-size: 0.74rem;
  }

  .desktop-theme-toggle {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .intro-scene {
    min-height: 198vh;
  }

  .chapters-scene {
    min-height: 500vh;
  }

  .scene-pin {
    overflow: clip;
  }

  .section-chip {
    padding: 0.72rem 1rem;
    font-size: 0.72rem;
  }

  #heroTitle {
    font-size: clamp(2.7rem, 10vw, 3.6rem) !important;
  }

  #heroHighlight {
    font-size: clamp(2rem, 7.8vw, 2.8rem) !important;
  }

  .hero-stats {
    gap: 0.7rem;
  }

  .hero-stat-card {
    min-width: calc(50% - 0.35rem);
    padding: 0.8rem 0.9rem;
  }

  .action-button {
    width: 100%;
  }

  .site-nav-desktop {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    background: rgba(255, 255, 255, 0.2);
  }

  html[data-theme="dark"] .mobile-menu-button {
    background: rgba(10, 22, 36, 0.88);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: block;
    border: 0;
    background: rgba(5, 12, 20, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-shell {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    left: auto;
    z-index: 102;
    width: min(18.5rem, calc(100vw - 1.5rem));
    max-width: none;
    max-height: none;
    margin-top: 0;
    padding: 1rem;
    border-radius: 2rem;
    transform: translateX(calc(100% + 1rem));
    opacity: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  :root {
    --section-title-top: 12.5vh;
    --section-body-top: 35vh;
    --section-safe-bottom: 7.5vh;
  }

  .mobile-menu-panel.is-open {
    max-height: none;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-head,
  .mobile-menu-footer {
    display: flex;
  }

  .mobile-menu-head {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.1rem 0;
  }

  .mobile-menu-head-copy {
    display: grid;
    gap: 0.22rem;
  }

  .mobile-menu-head-copy strong {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .mobile-menu-head-copy span {
    color: var(--text-secondary);
    font-size: 0.78rem;
  }

  .mobile-menu-close {
    flex: 0 0 auto;
  }

  .mobile-close-line {
    position: absolute;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-close-line:first-child {
    transform: rotate(45deg);
  }

  .mobile-close-line:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu-nav {
    display: grid;
    gap: 0.65rem;
    padding: 0.2rem 0;
    align-content: start;
  }

  .mobile-nav-link {
    min-height: 3.35rem;
    padding: 1rem 1rem;
    border: 1px solid rgba(44, 110, 183, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
  }

  html[data-theme="dark"] .mobile-nav-link {
    background: rgba(10, 22, 36, 0.48);
  }

  .mobile-menu-footer {
    justify-content: flex-end;
    padding-top: 0.15rem;
  }

  .mobile-theme-toggle {
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 auto;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: start;
    padding: 6.4rem 0.35rem 2.6rem;
  }

  .hero-heading-group {
    gap: 0.85rem;
  }

  .hero-copy {
    gap: 1.2rem;
    padding-top: 0;
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.78;
    letter-spacing: 0.02em;
  }

  .hero-heading {
    max-width: 100%;
    line-height: 1.08;
    letter-spacing: 0.02em;
  }

  .hero-subheading {
    margin-top: 0.9rem;
    letter-spacing: 0.06em;
  }

  .editor-shell,
  .panel-surface,
  .about-card,
  .journey-card,
  .future-card,
  .contact-card,
  .footer-panel {
    border-radius: 1.7rem;
  }

  .editor-stage {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }

  .editor-topbar {
    padding: 0.95rem 1rem;
    font-size: 0.84rem;
  }

  .editor-badge {
    display: none;
  }

  .editor-viewport {
    height: min(17rem, calc(100vh - 12rem));
  }

  .editor-line {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0 1rem;
    font-size: 0.82rem;
  }

  .scroll-caption {
    width: 100%;
    font-size: 0.68rem;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .chapter-panel {
    inset: 0;
    top: 0;
    bottom: 0;
    padding-top: 12.5vh;
    padding-bottom: 7.5vh;
    position: absolute;
    overflow: hidden;
  }

  .section-heading {
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
    position: static;
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    z-index: 2;
  }

  .section-heading h2 {
    margin-top: 0.4rem;
    margin-bottom: 0.7rem;
  }

  .panel-body {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 1.15rem;
    overflow: hidden;
    transition: none;
  }

  .panel-body-journey {
    margin-top: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .contact-grid-panel {
    position: static;
    margin-top: 1.15rem;
  }

  .panel-surface,
  .about-card,
  .future-card,
  .contact-card {
    padding: 1.25rem;
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    min-height: 100%;
    align-content: start;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .about-description {
    font-size: 0.92rem;
    line-height: 1.78;
  }

  .journey-stage {
    height: clamp(20rem, 48vh, 24rem);
    min-height: clamp(20rem, 48vh, 24rem);
    max-height: clamp(20rem, 48vh, 24rem);
    padding: 0.85rem 0 0.5rem;
  }

  .journey-axis {
    top: 0.9rem;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .journey-card {
    width: calc(50% - 0.8rem);
    padding: 0.85rem 0.8rem 0.9rem;
  }

  .journey-track {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .journey-card::after {
    top: 1.45rem;
    width: 0.72rem;
    height: 0.72rem;
  }

  .journey-card::before {
    width: 1.2rem;
    top: 1.8rem;
  }

  .journey-card:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
    transform: translateX(-0.85rem) scale(0.96);
  }

  .journey-card:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    transform: translateX(0.85rem) scale(0.96);
  }

  .journey-card:nth-child(odd)::after {
    right: -1.12rem;
    left: auto;
  }

  .journey-card:nth-child(even)::after {
    left: -1.12rem;
    right: auto;
  }

  .journey-card:nth-child(odd)::before {
    right: -0.95rem;
    left: auto;
  }

  .journey-card:nth-child(even)::before {
    left: -0.95rem;
    right: auto;
    transform: scaleX(-1);
  }

  .journey-card.is-visible:nth-child(odd),
  .journey-card.is-visible:nth-child(even) {
    transform: translateX(0) scale(1);
  }

  .journey-card h3 {
    margin: 0.7rem 0 0.45rem;
    font-size: 0.92rem;
  }

  .journey-card p {
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .timeline-year {
    min-height: 2rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.72rem;
  }

  .future-stage {
    min-height: 19rem;
    max-height: none;
  }

  .future-card {
    width: min(100%, 92vw);
    min-height: 12rem;
  }

  .contact-card {
    align-items: flex-start;
    padding: 1rem;
  }

  .contact-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-footer {
    width: calc(100% - 0.7rem);
    padding: 1.1rem 0 1.5rem;
  }

  .site-footer-shell {
    padding: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
