:root {
  --bg: #06101a;
  --bg-deep: #02060d;
  --panel: rgba(13, 18, 23, 0.82);
  --panel-strong: rgba(9, 13, 18, 0.94);
  --line: rgba(111, 144, 121, 0.2);
  --text: #eef4f1;
  --muted: rgba(215, 227, 221, 0.7);
  --accent: #29cf73;
  --accent-soft: #82efac;
  --warm: #f2f7f3;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --container: 100vw;
  --page-gutter: 32px;
  --cursor-x: 50vw;
  --cursor-y: 20vh;
  --grid-cell-size: 34px;
  --grid-line-opacity: 0.07;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(41, 207, 115, 0.1), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(130, 239, 172, 0.08), transparent 24%),
    linear-gradient(180deg, #07111a 0%, #050b13 52%, #04070d 100%);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(41, 207, 115, 0.07), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

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

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(20, 54, 86, 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(41, 207, 115, 0.12);
  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(41, 207, 115, 0.92), transparent);
  transform: translate(-50%, -50%) scaleX(0.15);
  filter: blur(1px);
  opacity: 0;
}

.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(41, 207, 115, 0.14);
}

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

.loader-letter-accent {
  color: var(--accent-soft);
  text-shadow: 0 0 26px rgba(41, 207, 115, 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(41, 207, 115, 0.54), transparent);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  margin-top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 207, 115, 0.14), transparent 62%);
  pointer-events: none;
  opacity: 0.7;
  filter: blur(16px);
  z-index: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #29cf73, #82efac);
  z-index: 160;
}

.site-header {
  position: fixed;
  top: 20px;
  left: var(--page-gutter);
  right: var(--page-gutter);
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: auto;
  padding: 16px 22px;
  border: 1px solid rgba(111, 144, 121, 0.18);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition:
    top 0.24s ease,
    left 0.24s ease,
    right 0.24s ease,
    width 0.24s ease,
    padding 0.24s ease,
    border-radius 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.site-header.is-docked {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 14px max(18px, var(--page-gutter));
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: rgba(4, 10, 18, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition:
    opacity 0.22s ease,
    max-width 0.22s ease,
    transform 0.22s ease,
    margin 0.22s ease;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand span {
  font-size: 0.78rem;
  color: var(--muted);
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 1;
  visibility: visible;
  max-width: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    opacity 0.22s ease,
    max-width 0.22s ease,
    transform 0.22s ease,
    margin 0.22s ease;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.28s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

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

.scroll-scene {
  position: relative;
  min-height: 180vh;
}

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

.scene-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.chapter-scene .scene-pin::before,
.chapter-scene .scene-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chapter-scene .scene-pin::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(41, 207, 115, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(130, 239, 172, 0.08), transparent 24%),
    linear-gradient(rgba(41, 207, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 207, 115, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  background-position: center center, center center, 0 0, 0 0;
  opacity: 0.78;
  animation: chapterBackdropShift 18s linear infinite;
}

.chapter-scene .scene-pin::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(122, 228, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(2, 6, 13, 0.08), rgba(2, 6, 13, 0.34));
}

.scene-shell {
  position: relative;
  width: calc(100% - var(--page-gutter) * 2);
  margin: 0 auto;
}

.scene-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 207, 115, var(--grid-line-opacity)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 207, 115, var(--grid-line-opacity)) 1px, transparent 1px);
  background-size: var(--grid-cell-size) var(--grid-cell-size);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 92%);
  opacity: 0.92;
  transform-origin: center center;
  will-change: transform, opacity, background-position;
}

.scene-aurora,
.scene-sparks,
.scene-techfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-techfield {
  overflow: hidden;
}

.tech-rings,
.tech-beams,
.tech-data-lines {
  position: absolute;
  inset: 0;
}

.tech-ring,
.tech-beam,
.tech-scanline,
.tech-pulse,
.data-line {
  position: absolute;
  will-change: transform, opacity;
}

.tech-ring {
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(130, 239, 172, 0.12);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.tech-ring::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(130, 239, 172, 0.08);
}

.tech-ring-a {
  width: min(54vw, 840px);
  height: min(54vw, 840px);
  opacity: 0.16;
}

.tech-ring-b {
  width: min(38vw, 560px);
  height: min(38vw, 560px);
  opacity: 0.22;
}

.tech-ring-c {
  width: min(22vw, 320px);
  height: min(22vw, 320px);
  opacity: 0.12;
}

.tech-beam {
  border-radius: 999px;
  mix-blend-mode: screen;
  filter: blur(4px);
  opacity: 0.14;
}

.tech-beam-a {
  top: 18%;
  left: -12%;
  width: min(44vw, 720px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(130, 239, 172, 0.82), transparent);
}

.tech-beam-b {
  top: 54%;
  right: -10%;
  width: min(32vw, 540px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(122, 228, 255, 0.56), transparent);
}

.tech-beam-c {
  top: 12%;
  left: 62%;
  width: 2px;
  height: min(34vh, 300px);
  background: linear-gradient(180deg, transparent, rgba(130, 239, 172, 0.7), transparent);
}

.tech-scanline {
  left: 0;
  right: 0;
  top: 22%;
  height: 96px;
  background:
    linear-gradient(180deg, transparent, rgba(130, 239, 172, 0.1), transparent),
    linear-gradient(90deg, transparent, rgba(130, 239, 172, 0.22), transparent);
  opacity: 0.14;
  filter: blur(10px);
}

.tech-pulse {
  top: 50%;
  left: 50%;
  width: min(18vw, 240px);
  height: min(18vw, 240px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 239, 172, 0.22), rgba(41, 207, 115, 0.08) 42%, transparent 72%);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  mix-blend-mode: screen;
}

.data-line {
  top: var(--line-top, 50%);
  left: var(--line-left, 50%);
  width: var(--line-width, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 239, 172, 0.78), transparent);
  opacity: 0;
}

.scene-aurora {
  filter: blur(18px);
  opacity: 0.82;
}

.aurora-band {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: screen;
  opacity: 0.18;
  will-change: transform, opacity;
}

.aurora-band-a {
  top: 10%;
  left: -8%;
  width: min(52vw, 920px);
  height: min(28vw, 440px);
  background: radial-gradient(circle at 30% 50%, rgba(41, 207, 115, 0.26), transparent 70%);
}

.aurora-band-b {
  right: -10%;
  bottom: 14%;
  width: min(44vw, 760px);
  height: min(24vw, 360px);
  background: radial-gradient(circle at 56% 50%, rgba(130, 239, 172, 0.18), transparent 72%);
}

.aurora-band-c {
  top: 36%;
  left: 28%;
  width: min(28vw, 520px);
  height: min(18vw, 280px);
  background: radial-gradient(circle at center, rgba(122, 228, 255, 0.12), transparent 74%);
}

.scene-sparks {
  overflow: hidden;
}

.spark {
  position: absolute;
  width: var(--spark-size, 8px);
  height: var(--spark-size, 8px);
  left: var(--spark-left, 50%);
  top: var(--spark-top, 50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 239, 172, 0.9), rgba(130, 239, 172, 0.16) 58%, transparent 74%);
  opacity: 0;
  filter: blur(1px);
  will-change: transform, opacity;
}

.scene-glow {
  position: absolute;
  border-radius: 50%;
  display: none;
}

.glow-left {
  top: 14%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: transparent;
}

.glow-right {
  top: 18%;
  right: 8%;
  width: 360px;
  height: 360px;
  background: transparent;
}

.scene-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 13, 0.1), rgba(2, 6, 13, 0.92));
  opacity: 0;
}

.intro-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: stretch;
  min-height: 100vh;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(130, 239, 172, 0.86);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(41, 207, 115, 1), transparent);
}

.intro-copy {
  position: absolute;
  left: clamp(18px, 3vw, 64px);
  bottom: 48px;
  z-index: 2;
  width: min(54vw, 1080px);
  max-width: 1080px;
  transform-origin: left center;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}

.intro-title {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.intro-title span {
  display: block;
  font-size: clamp(4.8rem, 8.2vw, 9rem);
  color: var(--warm);
  white-space: nowrap;
}

.intro-title em {
  display: block;
  margin-top: 8px;
  font-size: clamp(3.8rem, 6.8vw, 7.2rem);
  color: var(--accent-soft);
  font-style: normal;
  white-space: nowrap;
}

.chapter-heading p,
.about-summary p,
.about-card p,
.journey-card p,
.future-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.9;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25bb67, #7ce6a5);
  color: #051009;
  font-weight: 800;
  box-shadow: none;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(79, 121, 91, 0.54);
  background: rgba(10, 18, 14, 0.72);
  color: rgba(232, 242, 236, 0.9);
  font-weight: 700;
  box-shadow: none;
}

.status-button {
  background: rgba(12, 17, 22, 0.76);
  color: rgba(208, 219, 224, 0.9);
}

.about-summary,
.about-card,
.journey-card,
.future-card,
.editor-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--panel);
  box-shadow: var(--shadow);
}

.editor-stage {
  grid-column: 2 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 100vh;
  padding-right: clamp(18px, 3vw, 56px);
  justify-self: stretch;
}

.editor-shell {
  position: relative;
  width: min(100%, 880px);
  min-height: 430px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(23, 43, 28, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    #0b0f0d;
  overflow: hidden;
  transform-origin: center center;
  margin-left: auto;
}

.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(77, 112, 84, 0.28);
  color: rgba(225, 234, 228, 0.82);
  background: rgba(18, 28, 20, 0.68);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) {
  background: #ff6b6b;
}

.traffic-lights span:nth-child(2) {
  background: #ffd166;
}

.traffic-lights span:nth-child(3) {
  background: #7ee787;
}

.editor-status {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(41, 207, 115, 0.26);
  color: rgba(130, 239, 172, 0.92);
  font-size: 0.76rem;
}

.editor-body {
  padding: 24px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(41, 207, 115, 0.03), transparent 18%),
    rgba(11, 15, 13, 0.96);
}

.editor-lines {
  will-change: transform, opacity;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

.editor-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 0 24px;
  min-height: 34px;
  align-items: start;
  font-family: Consolas, "SFMono-Regular", "Microsoft YaHei", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
}

.line-number {
  color: rgba(180, 197, 185, 0.24);
  text-align: right;
  user-select: none;
}

.line-content {
  color: #e6efe9;
  white-space: pre-wrap;
}

.line-content::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: middle;
  background: rgba(41, 207, 115, 0.95);
  opacity: 0;
}

.token-comment {
  color: #7f9685;
}

.token-keyword {
  color: #5fe08e;
}

.token-string {
  color: #d7b36d;
}

.token-function {
  color: #9fe7ff;
}

.token-class {
  color: #7be8b8;
}

.token-property {
  color: #cce7d4;
}

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

.scroll-caption {
  position: absolute;
  right: calc(var(--page-gutter) + 24px);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(237, 244, 255, 0.48);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-caption span {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(41, 207, 115, 0.56), transparent);
}

.chapter-scene {
  min-height: 190vh;
}

.chapter-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  z-index: 1;
}

.chapter-heading {
  max-width: 460px;
}

.chapter-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

.about-panel {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-summary {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card,
.future-card,
.journey-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--panel);
}

.about-card::before,
.future-card::before,
.journey-card::before,
.about-summary::before,
.editor-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(133, 235, 255, 0.1), transparent 36%, transparent 68%, rgba(255, 215, 157, 0.08));
  pointer-events: none;
}

.about-card {
  padding: 24px;
}

.about-card span,
.future-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(130, 239, 172, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-card h3,
.future-card h3,
.journey-card h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
}

.journey-stage,
.future-stage {
  position: relative;
  min-height: 520px;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.journey-card,
.future-card {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding: 28px;
  transform-origin: center center;
  transition: transform 0.32s ease-out, opacity 0.32s ease-out, filter 0.32s ease-out;
}

.journey-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.about-card {
  transition: transform 0.32s ease-out, opacity 0.32s ease-out, filter 0.32s ease-out;
}

.journey-year {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(41, 207, 115, 0.18);
  background: rgba(4, 10, 18, 0.72);
  color: rgba(130, 239, 172, 0.92);
  font-weight: 800;
}

.future-card {
  min-height: 220px;
  max-width: 720px;
  margin: 0 auto;
}

.site-footer {
  width: calc(100% - var(--page-gutter) * 2);
  margin: 0 auto;
  padding: 80px 0 36px;
}

html[data-device="desktop"] {
  --page-gutter: 32px;
  --grid-cell-size: 30px;
  --grid-line-opacity: 0.08;
}

html[data-device="tablet"] {
  --page-gutter: 20px;
  --grid-cell-size: 32px;
  --grid-line-opacity: 0.07;
}

html[data-device="mobile"] {
  --page-gutter: 10px;
  --grid-cell-size: 30px;
  --grid-line-opacity: 0.06;
}

html[data-device="tablet"] .scene-shell,
html[data-device="tablet"] .site-footer {
  width: calc(100% - 40px);
}

html[data-device="tablet"] .site-header {
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

html[data-device="tablet"] .site-header.is-docked {
  padding: 12px 20px;
}

html[data-device="tablet"] .site-nav {
  width: auto;
  order: 0;
  overflow: visible;
  justify-content: flex-end;
  gap: 18px;
}

html[data-device="tablet"] .intro-scene {
  min-height: 240vh;
}

html[data-device="tablet"] .chapter-scene {
  min-height: 210vh;
}

html[data-device="tablet"] .intro-shell {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

html[data-device="tablet"] .intro-copy {
  position: absolute;
  left: clamp(18px, 2.6vw, 36px);
  bottom: 42px;
  width: min(50vw, 680px);
  max-width: 820px;
  padding-top: 0;
}

html[data-device="tablet"] .intro-title span {
  font-size: clamp(4rem, 7vw, 6.8rem);
}

html[data-device="tablet"] .intro-title em {
  font-size: clamp(3.1rem, 5.8vw, 5.4rem);
}

html[data-device="tablet"] .editor-stage {
  grid-column: 2 / 3;
  min-height: 100vh;
  justify-content: flex-end;
  padding-right: 18px;
}

html[data-device="tablet"] .editor-shell {
  width: min(100%, 740px);
  min-height: 400px;
}

html[data-device="tablet"] .chapter-shell {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 30px;
}

html[data-device="tablet"] .about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-device="tablet"] .journey-stage,
html[data-device="tablet"] .future-stage {
  min-height: 480px;
}

html[data-device="mobile"] .scene-shell,
html[data-device="mobile"] .site-footer {
  width: calc(100% - 20px);
}

html[data-device="mobile"] body {
  scroll-snap-type: none;
}

html[data-device="mobile"] .intro-shell,
html[data-device="mobile"] .chapter-shell {
  gap: 24px;
}

html[data-device="mobile"] .cursor-glow,
html[data-device="mobile"] .scroll-caption,
html[data-device="mobile"] .scene-techfield,
html[data-device="mobile"] .scene-aurora,
html[data-device="mobile"] .scene-sparks {
  display: none;
}

html[data-device="mobile"] .scene-grid {
  opacity: 0.42;
  mask-image: none;
}

html[data-device="mobile"] .scroll-scene,
html[data-device="mobile"] .intro-scene,
html[data-device="mobile"] .chapter-scene {
  min-height: auto;
}

html[data-device="mobile"] .scene-pin {
  position: relative;
  top: auto;
  display: block;
  min-height: auto;
  overflow: visible;
  padding: 88px 0 28px;
}

html[data-device="mobile"] .intro-scene .scene-pin {
  padding-top: 104px;
}

html[data-device="mobile"] .scene-background {
  inset: 0 0 auto 0;
  min-height: 100svh;
}

html[data-device="mobile"] .intro-shell,
html[data-device="mobile"] .chapter-shell,
html[data-device="mobile"] .about-grid,
html[data-device="mobile"] .footer-panel {
  grid-template-columns: 1fr;
}

html[data-device="mobile"] .intro-copy {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
}

html[data-device="mobile"] .intro-title {
  line-height: 1.02;
}

html[data-device="mobile"] .intro-title span {
  font-size: clamp(2.8rem, 12vw, 4.2rem);
  white-space: normal;
}

html[data-device="mobile"] .intro-title em {
  font-size: clamp(2.1rem, 9.4vw, 3.2rem);
  white-space: normal;
}

html[data-device="mobile"] .intro-actions {
  align-items: flex-start;
  flex-direction: column;
}

html[data-device="mobile"] .status-button {
  display: none;
}

html[data-device="mobile"] .editor-stage {
  grid-column: auto;
  min-height: auto;
  padding-right: 0;
  margin-top: 10px;
}

html[data-device="mobile"] .editor-body {
  padding: 18px 0;
}

html[data-device="mobile"] .editor-shell {
  min-height: 280px;
  border-radius: 22px;
  width: min(100%, 92vw);
}

html[data-device="mobile"] .editor-topbar {
  padding: 14px 16px;
}

html[data-device="mobile"] .editor-line {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 0 14px;
  font-size: 0.82rem;
}

html[data-device="mobile"] .primary-button,
html[data-device="mobile"] .secondary-button {
  width: 100%;
  min-width: 0;
  padding: 12px 18px;
}

html[data-device="mobile"] .about-summary,
html[data-device="mobile"] .about-card,
html[data-device="mobile"] .journey-card,
html[data-device="mobile"] .future-card {
  padding: 20px;
}

html[data-device="mobile"] .journey-stage,
html[data-device="mobile"] .future-stage {
  display: grid;
  gap: 14px;
  min-height: auto;
  perspective: none;
  transform-style: flat;
}

html[data-device="mobile"] .journey-card,
html[data-device="mobile"] .future-card {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

html[data-device="mobile"] .journey-card {
  grid-template-columns: 1fr;
}

html[data-device="mobile"] .future-card {
  min-height: auto;
}

html[data-device="mobile"] .footer-logo-slot {
  width: min(100%, 220px);
  min-height: 52px;
}

.footer-panel {
  display: block;
  padding: 16px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-quote {
  max-width: 960px;
  min-height: 0;
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(240, 247, 243, 0.9);
  text-align: center;
  white-space: nowrap;
}

.footer-quote-source {
  margin: 0;
  color: rgba(237, 244, 255, 0.58);
  font-size: 0.88rem;
  text-align: center;
}

.footer-quote-wrap {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-logo-slot {
  width: min(100%, 360px);
  height: 72px;
  margin-bottom: 6px;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 1;
  visibility: visible;
}

.footer-bottom {
  display: grid;
  gap: 4px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(111, 144, 121, 0.14);
  color: rgba(237, 244, 255, 0.62);
  font-size: 0.9rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.45;
}

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

@keyframes chapterBackdropShift {
  0% {
    background-position: center center, center center, 0 0, 0 0;
  }
  100% {
    background-position: center center, center center, 32px 18px, -32px -18px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  .site-header.is-docked {
    padding: 12px 20px 10px;
  }

  .site-nav {
    width: 100%;
    order: 2;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .intro-shell,
  .chapter-shell,
  .about-grid,
  .footer-panel {
    grid-template-columns: 1fr;
  }

  .intro-copy,
  .chapter-heading {
    max-width: none;
  }

  .intro-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 900px;
    padding-top: 104px;
  }

  .editor-stage {
    grid-column: auto;
    min-height: 520px;
    justify-content: center;
    padding-right: 0;
  }

  .future-card {
    max-width: 100%;
  }

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

  .tech-ring-a {
    width: min(72vw, 760px);
    height: min(72vw, 760px);
  }

  .tech-ring-b {
    width: min(54vw, 520px);
    height: min(54vw, 520px);
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 12px 14px;
  }

  body {
    scroll-snap-type: none;
  }

  .site-header.is-docked {
    padding: 10px 12px 8px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.86rem;
  }

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

  .chapter-scene {
    min-height: 170vh;
  }

  .intro-title {
    line-height: 1.02;
  }

  .intro-title span {
    font-size: clamp(3.2rem, 11vw, 5.2rem);
  }

  .intro-title em {
    font-size: clamp(2.5rem, 9vw, 4.2rem);
  }

  .intro-copy {
    padding-top: 92px;
  }

  .editor-shell {
    min-height: 400px;
    width: 100%;
  }

  .scene-aurora {
    opacity: 0.62;
    filter: blur(24px);
  }

  .tech-scanline {
    height: 72px;
    opacity: 0.1;
  }

  .tech-ring-a {
    width: 88vw;
    height: 88vw;
  }

  .tech-ring-b {
    width: 64vw;
    height: 64vw;
  }

  .tech-ring-c {
    width: 34vw;
    height: 34vw;
  }

  .aurora-band-a {
    width: 76vw;
    height: 42vw;
  }

  .aurora-band-b {
    width: 62vw;
    height: 36vw;
  }

  .aurora-band-c {
    width: 40vw;
    height: 24vw;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .journey-card {
    grid-template-columns: 1fr;
  }

  .about-summary,
  .about-card {
    padding-left: 0;
    padding-right: 0;
  }

  .future-stage {
    min-height: 460px;
    perspective: none;
  }

  .future-card {
    min-height: 200px;
    padding: 22px;
  }

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

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

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

  .scroll-caption {
    right: 24px;
    bottom: 28px;
  }

  .footer-panel {
    padding: 10px 0 0;
  }

  .footer-quote {
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .footer-logo-slot {
    width: min(100%, 280px);
    min-height: 60px;
  }
}
