:root {
  --ink: #fffcf4;
  --bone: #3c3832;
  --bone-2: #181715;
  --muted: rgba(40, 38, 34, 0.62);
  --faint: rgba(40, 38, 34, 0.12);
  --panel: rgba(255, 255, 255, 0.34);
  --accent: oklch(0.58 0.08 65);
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--ink);
  color: var(--bone);
  margin: 0;
}

body {
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.serif {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

.mono {
  font-family: 'Geist Mono', monospace;
}

/* ---------- Fixed three.js stage (background) ---------- */
.three-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Front 3D canvas sits ABOVE the text layer (.landing-page = z-index 1) but
   below the top nav / rail (z-index 40+). Only fragments classified as
   "front-facing" each frame draw here, so the text appears to thread
   through the ring. */
.three-stage-front {
  z-index: 2;
}

/* ---------- Atmospheric overlays ---------- */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.shatter-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  background: radial-gradient(circle at 50% 50%, rgba(255, 232, 200, 0.95), rgba(255, 196, 150, 0.45) 18%, transparent 48%);
  mix-blend-mode: screen;
}

/* ---------- Top nav ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(40, 38, 34, 0.78);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone-2);
}

.brand-logo {
  display: block;
  width: clamp(86px, 7.5vw, 98px);
  height: auto;
  filter: brightness(0) opacity(0.82);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
  pointer-events: auto;
}

.rail-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: rgba(40, 38, 34, 0.48);
  transition: color 0.45s ease;
}

.rail-row:focus-visible {
  outline: 1px solid rgba(40, 38, 34, 0.45);
  outline-offset: 8px;
}

.rail-row .lbl {
  display: block;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
}

.rail-row .tick {
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: rgba(24, 23, 21, 0.72);
  transition: transform .45s ease, background .45s ease;
}

.rail-row:hover,
.rail-row.active {
  color: rgba(24, 23, 21, 0.84);
}

.rail-row.active .tick {
  transform: scaleX(1);
}

@media (max-width: 760px) {
  .topbar {
    padding: 18px 20px;
  }

  .brand-logo {
    width: 78px;
  }

  .top-nav {
    gap: 12px;
  }

  .rail-row .lbl {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

/* ---------- Bottom progress hairline ---------- */
.progress-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(40, 38, 34, 0.10);
  z-index: 40;
  pointer-events: none;
}

.progress-bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(to right, rgba(148, 103, 58, 0), var(--accent));
}

/* ===================== Landing-page snap layout ===================== */
.landing-page {
  position: relative;
  z-index: 1;
  min-height: 500vh;
}

.scene {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
}

.scene-content {
  width: 100%;
  max-width: 1100px;
  opacity: 0;
  will-change: opacity, transform, filter;
}

/* ---------- Generic stage typography ---------- */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stage-wide {
  max-width: 1240px;
}

.stage-headline {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--bone-2);
  max-width: 18ch;
  text-wrap: balance;
  margin: 0;
}

.stage-headline em {
  font-style: italic;
  color: var(--accent);
}

.headline-cn {
  font-family: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', STSong, SimSun, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.headline-cn em {
  font-style: normal;
  font-weight: 600;
}

.stage-sub {
  margin-top: 1.5rem;
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 44ch;
}

.stage-cta {
  margin-top: 2.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(40, 38, 34, 0.52);
}

/* ---------- Section 02: pillars ---------- */
.section-kicker {
  margin-bottom: 1.35rem;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(40, 38, 34, 0.48);
}

.section-intro {
  margin-top: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 760px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(40, 38, 34, 0.66);
}

.section-intro p {
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 2.75rem;
  width: 100%;
  max-width: 1040px;
}

.pillar {
  padding: 28px 24px;
  border: 1px solid rgba(80, 72, 62, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
  text-align: left;
  transition: border-color .4s, background .4s;
}

.pillar:hover {
  border-color: rgba(80, 72, 62, 0.24);
  background: rgba(255, 255, 255, 0.50);
}

.pillar-num {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', STSong, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--bone-2);
  margin-bottom: 0.65rem;
  letter-spacing: 0;
}

.pillar-body {
  font-size: 0.9rem;
  color: rgba(40, 38, 34, 0.64);
  line-height: 1.65;
  letter-spacing: 0;
}

.pillar-outcome {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(80, 72, 62, 0.12);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(40, 38, 34, 0.48);
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Section 03: dynamic mentor profile (orbital carousel) ---------- */
.mentor-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: -7vh;
}

.mentor-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--bone-2);
  margin: 0;
  text-wrap: balance;
}

.mentor-role {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.mentor-bio {
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  letter-spacing: 0.02em;
  color: rgba(40, 38, 34, 0.62);
  width: min(56ch, 82vw);
  line-height: 1.55;
  margin: 0;
}

.mentor-word {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform-origin: 50% 55%;
}

.mentor-particle-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.mentor-text-particle {
  position: absolute;
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity, filter;
  transform-origin: 50% 50%;
  pointer-events: none;
}

/* ---------- Section 04: services ---------- */
.service-intro {
  margin: 1.45rem 0 0;
  max-width: 720px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(40, 38, 34, 0.66);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 2.4rem;
  width: 100%;
}

.service {
  padding: 22px 18px;
  border: 1px solid rgba(80, 72, 62, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  text-align: left;
  transition: border-color .4s, transform .4s;
}

.service:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.s-num {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.s-title {
  font-family: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', STSong, serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--bone-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0;
}

.s-body {
  font-size: 0.85rem;
  color: rgba(40, 38, 34, 0.56);
  line-height: 1.5;
  letter-spacing: 0;
}

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Final: roadmap + CTA + FAQ ---------- */
.final-intro {
  margin: 1.35rem 0 0;
  max-width: 720px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(40, 38, 34, 0.66);
}

.roadmap {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  margin-top: 2.4rem;
  width: 100%;
  max-width: 1080px;
  overflow: visible;
}

.roadmap-liquid {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 246, 230, 0.28) 0%, rgba(244, 230, 200, 0.18) 34%, rgba(232, 211, 168, 0.07) 62%, rgba(232, 211, 168, 0) 78%);
  filter: blur(12px);
  will-change: transform, opacity;
}

.roadmap-liquid::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: inherit;
  background: rgba(255, 246, 230, 0.24);
  filter: blur(6px);
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 180px;
  min-width: 0;
}

.step-num {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(80, 72, 62, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(148, 103, 58, 0.06);
  box-shadow: 0 0 0 rgba(244, 230, 200, 0);
  transition: border-color 0.7s ease, background 0.7s ease, box-shadow 0.7s ease, color 0.7s ease;
}

.step-title {
  font-family: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', STSong, serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(40, 38, 34, 0.70);
  transition: color 0.7s ease;
}

.step-body {
  width: min(18ch, 100%);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.58;
  letter-spacing: 0;
  color: rgba(40, 38, 34, 0.50);
  text-align: center;
  transition: color 0.7s ease;
}

.step.complete .step-num {
  border-color: rgba(216, 196, 162, 0.36);
  background: rgba(255, 246, 230, 0.11);
  color: rgba(98, 82, 56, 0.82);
  box-shadow: 0 0 12px rgba(244, 230, 200, 0.10);
}

.step.complete .step-title {
  color: rgba(40, 38, 34, 0.78);
}

.step.complete .step-body {
  color: rgba(40, 38, 34, 0.58);
}

.step.active .step-num {
  border-color: rgba(216, 196, 162, 0.56);
  background: rgba(255, 246, 230, 0.18);
  color: rgba(86, 72, 49, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 246, 230, 0.58),
    0 0 20px rgba(244, 230, 200, 0.18),
    0 0 42px rgba(255, 246, 230, 0.12),
    inset 0 0 14px rgba(255, 246, 230, 0.34);
}

.step.active .step-title {
  color: rgba(28, 27, 24, 0.90);
}

.step.active .step-body {
  color: rgba(40, 38, 34, 0.68);
}

.step-line {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 1px;
  margin-top: 21px;
  background: linear-gradient(to right, rgba(80, 72, 62, 0.12), rgba(80, 72, 62, 0.28), rgba(80, 72, 62, 0.12));
  max-width: 88px;
  overflow: hidden;
}

.step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(to right, rgba(216, 196, 162, 0.16), rgba(244, 230, 200, 0.60), rgba(255, 246, 230, 0.34));
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.step-line.complete::after {
  transform: scaleX(1);
  opacity: 0.34;
}

.step-line.active::after {
  transform: scaleX(1);
  opacity: 0.58;
}

.final-cta {
  display: inline-block;
  margin-top: 2.1rem;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-2);
  text-decoration: none;
  background: rgba(148, 103, 58, 0.06);
  transition: background .4s, transform .4s;
}

.final-cta:hover {
  background: rgba(148, 103, 58, 0.12);
  transform: translateY(-1px);
}

.faq-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.6rem;
  width: 100%;
  max-width: 900px;
  text-align: left;
}

.faq {
  border-top: 1px solid rgba(80, 72, 62, 0.14);
  padding-top: 16px;
}

.faq .q {
  font-family: 'Instrument Serif', serif;
  font-size: 1.05rem;
  color: var(--bone-2);
  margin-bottom: 6px;
}

.faq .a {
  font-size: 0.85rem;
  color: rgba(40, 38, 34, 0.56);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .faq-row {
    grid-template-columns: 1fr;
  }

  .roadmap {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: min(340px, 100%);
  }

  .step-line {
    width: 1px;
    height: 34px;
    max-width: none;
    margin-top: 0;
  }

  .step-line::after {
    transform: scaleY(0);
    transform-origin: center top;
  }

  .step-line.complete::after,
  .step-line.active::after {
    transform: scaleY(1);
  }
}
