:root {
  --bg: #0e1016;
  --bg-soft: #151927;
  --panel: rgba(18, 22, 34, 0.72);
  --panel-strong: rgba(20, 24, 40, 0.9);
  --text: #f4efe8;
  --text-soft: rgba(244, 239, 232, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff7a2f;
  --accent-soft: rgba(255, 122, 47, 0.2);
  --accent-cool: #71d8ff;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top, rgba(113, 216, 255, 0.08), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255, 122, 47, 0.12), transparent 22%),
    linear-gradient(180deg, #0a0c12 0%, #111624 42%, #0b0d13 100%);
  --scroll-progress: 0%;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 85%);
  content: "";
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}

.ambient-one {
  top: 2%;
  left: -8%;
  width: 300px;
  height: 300px;
  background: rgba(255, 122, 47, 0.18);
  animation: drift 18s ease-in-out infinite;
}

.ambient-two {
  top: 35%;
  right: -6%;
  width: 280px;
  height: 280px;
  background: rgba(113, 216, 255, 0.14);
  animation: drift 22s ease-in-out infinite reverse;
}

.ambient-three {
  bottom: 8%;
  left: 30%;
  width: 220px;
  height: 220px;
  background: rgba(167, 111, 255, 0.12);
  animation: drift 16s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 56px;
}

.chapter-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
}

.chapter-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.chapter-progress::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scroll-progress);
  background: linear-gradient(180deg, var(--accent-cool), var(--accent));
  content: "";
}

.chapter-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  background: rgba(8, 10, 18, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.chapter-dot.is-active {
  color: var(--text);
  border-color: rgba(113, 216, 255, 0.6);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(113, 216, 255, 0.22);
}

.hero,
.section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  min-height: 90vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.95), rgba(113, 216, 255, 0.7));
  color: #0f1320;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-links a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.topbar-links a::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.topbar-links a:hover::after {
  transform: scaleX(1);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: calc(90vh - 100px);
  padding: 42px 6px 18px;
}

.eyebrow,
.section-kicker,
.inquiry-label {
  margin: 0 0 14px;
  color: var(--accent-cool);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3.8rem, 8vw, 7.6rem);
}

.hero-lead,
.hero-kicker,
.stream-card p,
.path-card p,
.topic-ribbon p,
.timeline-item p,
.inquiry-note,
.inquiry-preview,
.letter-copy p,
.manifesto-lead p {
  color: var(--text-soft);
  line-height: 1.85;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: 1.06rem;
}

.hero-intro-panel {
  margin-bottom: 22px;
}

.intro-label,
.hero-kicker {
  margin: 0 0 12px;
  color: rgba(244, 239, 232, 0.52);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.intro-choice {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.intro-choice:hover,
.intro-choice.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-kicker {
  margin-top: 16px;
  color: var(--accent-cool);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffb067);
  color: #17120e;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.hero-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-metrics div {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics span {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.hero-visual {
  position: relative;
  min-height: 680px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(255, 122, 47, 0.12), transparent 28%),
    radial-gradient(circle at 60% 35%, rgba(113, 216, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

body[data-mode="builder"] {
  --accent: #ff9b4a;
  --accent-soft: rgba(255, 155, 74, 0.24);
  --accent-cool: #8ce6a0;
}

body[data-mode="reflector"] {
  --accent: #e296ff;
  --accent-soft: rgba(226, 150, 255, 0.22);
  --accent-cool: #8ac5ff;
}

.signal-grid {
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 35%, transparent 90%);
}

.orbital,
.core-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.orbital-a {
  inset: 68px;
  animation: rotate 24s linear infinite;
}

.orbital-b {
  inset: 118px;
  border-style: dashed;
  animation: rotate 18s linear infinite reverse;
}

.orbital-c {
  inset: 176px;
  animation: rotate 16s linear infinite;
}

.core-sphere {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.core-ring {
  inset: 34%;
  animation: pulse 5s ease-in-out infinite;
}

.ring-two {
  inset: 29%;
  animation-delay: 1.3s;
}

.core-center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(255, 122, 47, 0.18), rgba(113, 216, 255, 0.18)),
    rgba(13, 17, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 122, 47, 0.16);
}

.core-center span {
  color: var(--accent-cool);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.core-center strong {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  line-height: 1.08;
  transition: opacity 180ms ease, transform 180ms ease;
}

.visual-note {
  position: absolute;
  width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(10, 13, 22, 0.74);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.visual-note span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.visual-note p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.note-one {
  top: 12%;
  left: 2%;
  animation: float 10s ease-in-out infinite;
}

.note-two {
  top: 18%;
  right: 4%;
  animation: float 12s ease-in-out infinite reverse;
}

.note-three {
  right: 10%;
  bottom: 10%;
  animation: float 11s ease-in-out infinite;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 8px 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-scroll span {
  display: inline-block;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}

.section {
  margin-top: 24px;
  padding: 38px 32px;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 700ms ease, transform 700ms ease, border-color 240ms ease;
}

.hero-copy h1,
.hero-lead,
.hero-kicker,
.hero-visual,
.visual-note,
.core-center {
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.section-heading {
  margin-bottom: 26px;
}

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

.scene.is-current {
  border-color: rgba(113, 216, 255, 0.2);
}

.scene-index {
  margin: 0 0 14px;
  color: rgba(244, 239, 232, 0.4);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.section h2 em {
  font-style: italic;
  color: var(--accent-cool);
}

.manifesto-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.manifesto-lead {
  display: flex;
  align-items: stretch;
}

.manifesto-lead p {
  margin: 0;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  font-size: 1.06rem;
}

.manifesto-stream {
  display: grid;
  gap: 16px;
}

.stream-card,
.path-card,
.topic-ribbon,
.timeline-item,
.inquiry-panel,
.letter-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.stream-card {
  padding: 22px;
}

.stream-card span,
.path-index,
.topic-ribbon span,
.timeline-item span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stream-card h3,
.path-card h3,
.topic-ribbon h3,
.timeline-item h3 {
  margin: 14px 0 10px;
  font-size: 1.22rem;
}

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

.path-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.path-card::after {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.22), transparent 65%);
  content: "";
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(113, 216, 255, 0.28);
}

.topic-ribbons {
  display: grid;
  gap: 16px;
}

.topic-explorer {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.topic-list {
  display: grid;
  gap: 14px;
}

.topic-ribbon {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  width: 100%;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.topic-ribbon.is-active,
.topic-ribbon:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 47, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.topic-panel {
  position: sticky;
  top: 28px;
  padding: 24px;
  min-height: 420px;
}

.topic-panel h3 {
  margin: 0;
  font-size: 2rem;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.topic-panel-summary {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.topic-panel-block {
  margin-top: 20px;
}

.topic-panel-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-panel-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.topic-panel-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.topic-panel-list li {
  margin: 0 0 10px;
  line-height: 1.75;
}

.topic-panel-link {
  margin-top: 24px;
  width: 100%;
}

.question-stack {
  display: grid;
  gap: 14px;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.question-item {
  position: relative;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.question-item::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 122, 47, 0.12), rgba(113, 216, 255, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
  content: "";
}

.question-item span {
  position: relative;
  z-index: 1;
}

.question-item:hover,
.question-item.is-active {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 47, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.question-item:hover::before,
.question-item.is-active::before {
  opacity: 1;
}

.inquiry-panel {
  padding: 24px;
  min-height: 100%;
}

.inquiry-preview {
  margin: 0;
  font-size: 1.12rem;
}

.pulse-line {
  width: 100%;
  height: 1px;
  margin: 28px 0 18px;
  background:
    linear-gradient(90deg, transparent, var(--accent), var(--accent-cool), transparent);
  background-size: 200% 100%;
  animation: wave 4s linear infinite;
}

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

.timeline-item {
  padding: 22px;
}

.letter-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.letter-copy p {
  max-width: 650px;
}

.letter-form {
  display: grid;
  gap: 14px;
}

.letter-form input,
.letter-form button {
  min-height: 58px;
  border-radius: 18px;
  font: inherit;
}

.letter-form input {
  border: 1px solid var(--line);
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.letter-form button {
  border: 0;
  background: linear-gradient(135deg, rgba(255, 122, 47, 0.95), rgba(113, 216, 255, 0.8));
  color: #10131d;
  font-weight: 700;
}

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

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax {
  will-change: transform;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -18px, 0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes wave {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

@media (max-width: 1160px) {
  .chapter-rail {
    display: none;
  }

  .hero-stage,
  .manifesto-layout,
  .inquiry-layout,
  .letter-card,
  .timeline,
  .path-grid,
  .topic-explorer {
    grid-template-columns: 1fr;
  }

  .topic-ribbon {
    grid-template-columns: 1fr;
  }

  .topic-panel {
    position: static;
    min-height: auto;
  }

  .hero-visual {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .hero,
  .section {
    padding: 18px;
    border-radius: 24px;
  }

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

  .hero-stage {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 16vw, 5.1rem);
    line-height: 0.95;
  }

  .hero-actions,
  .hero-metrics,
  .intro-choices {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-note {
    width: 180px;
    padding: 12px 14px;
  }

  .core-center {
    width: 184px;
    height: 184px;
  }

  .section h2 {
    line-height: 0.98;
  }
}
