/* ============================================
   梦的密卷 · 卷二 — Nocturnal Consciousness
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500&family=Ma+Shan+Zheng&display=swap');

/* ── CSS Variables ── */
:root {
  --void: #020408;
  --abyss: #040c14;
  --deep: #071422;
  --ink: #0b1f35;
  --dusk: #0f2a47;
  --twilight: #132d4a;
  --mist: #1a3a5c;
  --veil: #1e4068;

  --star-cold: #a8c4e0;
  --star-pale: #c4d8ee;
  --moon-light: #d8e8f4;
  --dawn-white: #eaf3fa;

  --gold-deep: #8a6a2a;
  --gold-mid: #b8922e;
  --gold-bright: #d4a843;
  --gold-glow: #e8c76a;
  --gold-pale: #f2dfa0;

  --violet-deep: #1a0a2e;
  --violet-mid: #2d1460;
  --violet-glow: #5b2d8e;
  --violet-light: #9b6fd4;
  --violet-pale: #c4a3e8;

  --lucid: rgba(168, 196, 224, 0.08);
  --lucid-mid: rgba(168, 196, 224, 0.15);
  --lucid-bright: rgba(168, 196, 224, 0.25);

  --gold-lucid: rgba(212, 168, 67, 0.12);
  --gold-glow-a: rgba(212, 168, 67, 0.25);
  --violet-lucid: rgba(91, 45, 142, 0.15);

  --font-serif: 'Noto Serif SC', 'Georgia', serif;
  --font-sans: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  --font-calligraphy: 'Ma Shan Zheng', cursive;

  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mid: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
  --glow-radius: 0 0 40px rgba(212, 168, 67, 0.3), 0 0 80px rgba(91, 45, 142, 0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--void);
  color: var(--star-pale);
  font-family: var(--font-sans);
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s ease;
  box-shadow: 0 0 12px var(--gold-bright), 0 0 24px rgba(212, 168, 67, 0.5);
}

.cursor-aura {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ── Canvas Layer ── */
#cosmos-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--violet-light));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-mid), backdrop-filter var(--transition-mid);
}

.site-nav.scrolled {
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 196, 224, 0.08);
}

.nav-brand {
  font-family: var(--font-calligraphy);
  font-size: 1.4rem;
  color: var(--gold-glow);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(212, 168, 67, 0.5);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--star-cold);
  text-decoration: none;
  letter-spacing: 0.12em;
  opacity: 0.7;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width var(--transition-mid);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold-glow);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--star-cold);
  transition: var(--transition-mid);
}

/* ── Hero Section ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--gold-mid);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.5s forwards;
  text-transform: uppercase;
}

.hero-volume {
  font-family: var(--font-calligraphy);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold-glow);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.8s forwards;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.2em;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease 1s forwards;
  background: linear-gradient(
    180deg,
    var(--dawn-white) 0%,
    var(--star-pale) 40%,
    var(--gold-pale) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.3));
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--violet-pale);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 1.3s forwards;
  margin-top: 0.8rem;
  letter-spacing: 0.08em;
}

.hero-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--gold-bright), transparent);
  margin: 3rem auto;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.hero-quote {
  max-width: 680px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 2;
  color: var(--star-cold);
  opacity: 0;
  animation: fadeIn 1.5s ease 2s forwards;
  font-style: italic;
}

.hero-quote em {
  font-style: normal;
  color: var(--gold-glow);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 3s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold-mid);
  opacity: 0.6;
}

/* ── Section Commons ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--gold-mid);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-mid);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--dawn-white);
  margin-bottom: 1.5rem;
}

.section-subheading {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--star-cold);
  opacity: 0.7;
  max-width: 600px;
  line-height: 1.9;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Manifesto Strip ── */
#manifesto {
  padding: 6rem 0;
  border-top: 1px solid rgba(168, 196, 224, 0.06);
  border-bottom: 1px solid rgba(168, 196, 224, 0.06);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.manifesto-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(168, 196, 224, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.manifesto-item:last-child {
  border-right: none;
}

.manifesto-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  transition: height var(--transition-slow);
}

.manifesto-item:hover::before {
  height: 60px;
}

.manifesto-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold-mid);
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}

.manifesto-cn {
  font-family: var(--font-calligraphy);
  font-size: 1.6rem;
  color: var(--gold-glow);
  display: block;
  margin-bottom: 0.8rem;
}

.manifesto-desc {
  font-size: 0.85rem;
  color: var(--star-cold);
  opacity: 0.6;
  line-height: 1.8;
}

/* ── Three Gates Section ── */
#three-gates {
  padding: 10rem 0;
}

.gates-intro {
  text-align: center;
  margin-bottom: 6rem;
}

.gates-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gate-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
  min-height: 320px;
  position: relative;
}

.gate-item:nth-child(even) .gate-content {
  order: 3;
  text-align: left;
}

.gate-item:nth-child(even) .gate-visual {
  order: 1;
}

.gate-item:nth-child(even) .gate-line {
  order: 2;
}

.gate-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.gate-orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-mid);
}

.gate-orb:hover {
  transform: scale(1.05);
}

.gate-orb-1 {
  background: radial-gradient(circle at 40% 40%, rgba(168, 196, 224, 0.25), rgba(7, 20, 34, 0.8));
  border: 1px solid rgba(168, 196, 224, 0.2);
  box-shadow: 0 0 40px rgba(168, 196, 224, 0.1), inset 0 0 60px rgba(168, 196, 224, 0.05);
}

.gate-orb-2 {
  background: radial-gradient(circle at 40% 40%, rgba(91, 45, 142, 0.4), rgba(7, 20, 34, 0.8));
  border: 1px solid rgba(91, 45, 142, 0.4);
  box-shadow: 0 0 40px rgba(91, 45, 142, 0.2), inset 0 0 60px rgba(91, 45, 142, 0.1);
}

.gate-orb-3 {
  background: radial-gradient(circle at 40% 40%, rgba(212, 168, 67, 0.3), rgba(7, 20, 34, 0.8));
  border: 1px solid rgba(212, 168, 67, 0.35);
  box-shadow: 0 0 50px rgba(212, 168, 67, 0.2), inset 0 0 60px rgba(212, 168, 67, 0.08);
}

.gate-orb-label {
  font-family: var(--font-calligraphy);
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.4;
}

.gate-orb-1 .gate-orb-label { color: var(--star-cold); }
.gate-orb-2 .gate-orb-label { color: var(--violet-light); }
.gate-orb-3 .gate-orb-label { color: var(--gold-glow); }

.gate-line {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-connector {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold-mid), transparent);
  opacity: 0.3;
}

.gate-content {
  padding: 3rem 2rem;
}

.gate-number {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--gold-mid);
  opacity: 0.5;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.gate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--dawn-white);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.gate-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--star-cold);
  opacity: 0.75;
  line-height: 2;
  max-width: 460px;
}

.gate-text em {
  font-style: normal;
  color: var(--gold-pale);
  opacity: 1;
}

/* ── Roles / Inner Theatre ── */
#inner-theatre {
  padding: 10rem 0;
  background: linear-gradient(180deg, transparent, rgba(26, 10, 46, 0.3), transparent);
}

.theatre-intro {
  text-align: center;
  margin-bottom: 5rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 4rem;
}

.role-card {
  position: relative;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(7, 20, 34, 0.9), rgba(2, 4, 8, 0.95));
  border: 1px solid rgba(168, 196, 224, 0.06);
  overflow: hidden;
  transition: border-color var(--transition-mid), transform var(--transition-mid);
  cursor: pointer;
}

.role-card:hover {
  border-color: rgba(168, 196, 224, 0.2);
  transform: translateY(-4px);
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transition: opacity var(--transition-mid);
  opacity: 0;
}

.role-actor::before { background: linear-gradient(90deg, transparent, var(--star-cold), transparent); }
.role-audience::before { background: linear-gradient(90deg, transparent, var(--violet-light), transparent); }
.role-director::before { background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); }

.role-card:hover::before { opacity: 1; }

.role-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
}

.role-actor .role-icon { 
  background: rgba(168, 196, 224, 0.1);
  border: 1px solid rgba(168, 196, 224, 0.2);
}
.role-audience .role-icon { 
  background: rgba(91, 45, 142, 0.15);
  border: 1px solid rgba(91, 45, 142, 0.3);
}
.role-director .role-icon { 
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.25);
}

.role-cn {
  font-family: var(--font-calligraphy);
  font-size: 2rem;
  color: var(--dawn-white);
  margin-bottom: 0.3rem;
  display: block;
}

.role-en {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold-mid);
  opacity: 0.5;
  display: block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.role-desc {
  font-size: 0.9rem;
  color: var(--star-cold);
  opacity: 0.7;
  line-height: 2;
}

.role-quote {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 196, 224, 0.06);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
}

.role-actor .role-quote { color: var(--star-cold); }
.role-audience .role-quote { color: var(--violet-pale); }
.role-director .role-quote { color: var(--gold-pale); }

/* ── Quote Blocks ── */
.big-quote {
  padding: 8rem 2rem;
  text-align: center;
}

.big-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto;
  color: var(--star-pale);
}

.big-quote-text em {
  font-style: normal;
  color: var(--gold-glow);
  text-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
}

.big-quote-attr {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold-mid);
  opacity: 0.5;
  text-transform: uppercase;
}

/* ── Practice Section ── */
#practice {
  padding: 10rem 0;
}

.practice-intro {
  text-align: center;
  margin-bottom: 6rem;
}

.practice-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 4rem;
  border: 1px solid rgba(168, 196, 224, 0.1);
  border-radius: 4px;
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.practice-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--star-cold);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-mid);
  opacity: 0.5;
  border-right: 1px solid rgba(168, 196, 224, 0.1);
}

.practice-tab:last-child { border-right: none; }

.practice-tab.active {
  background: var(--gold-lucid);
  color: var(--gold-glow);
  opacity: 1;
}

.practice-tab:hover:not(.active) {
  opacity: 0.8;
  background: var(--lucid);
}

.practice-panels {
  position: relative;
}

.practice-panel {
  display: none;
}

.practice-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.practice-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.practice-card-text {
  padding: 2rem 0;
}

.practice-card-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dawn-white);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.practice-card-body {
  font-size: 0.95rem;
  color: var(--star-cold);
  opacity: 0.8;
  line-height: 2.2;
}

.practice-card-body p {
  margin-bottom: 1.5rem;
}

.practice-card-body em {
  font-style: normal;
  color: var(--gold-pale);
}

.practice-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(7, 20, 34, 0.6);
  border: 1px solid rgba(168, 196, 224, 0.08);
  border-radius: 4px;
}

.practice-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-mid);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dawn-white);
  margin-bottom: 0.3rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--star-cold);
  opacity: 0.6;
  line-height: 1.8;
}

/* ── Life Parallel Section ── */
#life-parallel {
  padding: 10rem 0;
  background: linear-gradient(180deg, transparent, rgba(19, 45, 74, 0.2), transparent);
}

.parallel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 4rem;
}

.parallel-column {
  padding: 4rem 3rem;
  background: rgba(4, 12, 20, 0.7);
  border: 1px solid rgba(168, 196, 224, 0.06);
}

.parallel-column.dream-side {
  border-color: rgba(91, 45, 142, 0.15);
  background: linear-gradient(135deg, rgba(26, 10, 46, 0.4), rgba(4, 12, 20, 0.9));
}

.parallel-column.life-side {
  border-color: rgba(212, 168, 67, 0.1);
  background: linear-gradient(135deg, rgba(4, 12, 20, 0.9), rgba(30, 64, 104, 0.2));
}

.parallel-col-label {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dream-side .parallel-col-label { color: var(--violet-light); }
.life-side .parallel-col-label { color: var(--gold-bright); }

.parallel-col-label::after {
  content: '';
  flex: 1;
  height: 1px;
}

.dream-side .parallel-col-label::after { background: rgba(91, 45, 142, 0.3); }
.life-side .parallel-col-label::after { background: rgba(212, 168, 67, 0.2); }

.parallel-col-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.dream-side .parallel-col-title { color: var(--violet-pale); }
.life-side .parallel-col-title { color: var(--gold-pale); }

.parallel-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.parallel-item {
  padding: 1.2rem 1.5rem;
  border-left: 2px solid;
  font-size: 0.9rem;
  color: var(--star-cold);
  opacity: 0.75;
  line-height: 1.8;
}

.dream-side .parallel-item { border-color: rgba(91, 45, 142, 0.4); }
.life-side .parallel-item { border-color: rgba(212, 168, 67, 0.35); }

/* ── Chapters / Contents Section ── */
#chapters {
  padding: 10rem 0;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 4rem;
}

.chapter-item {
  padding: 2.5rem 2rem;
  background: rgba(4, 12, 20, 0.5);
  border: 1px solid rgba(168, 196, 224, 0.05);
  display: flex;
  gap: 1.5rem;
  transition: background var(--transition-mid), border-color var(--transition-mid);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.chapter-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-mid), transparent);
  transition: width var(--transition-slow);
}

.chapter-item:hover {
  background: rgba(7, 20, 34, 0.8);
  border-color: rgba(168, 196, 224, 0.12);
}

.chapter-item:hover::after {
  width: 100%;
}

.chapter-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-mid);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
}

.chapter-info {
  flex: 1;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dawn-white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.chapter-desc {
  font-size: 0.82rem;
  color: var(--star-cold);
  opacity: 0.5;
  line-height: 1.8;
}

/* ── Closing Quote ── */
#closing {
  padding: 12rem 2rem;
  text-align: center;
  position: relative;
}

.closing-line {
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--gold-bright), transparent);
  margin: 0 auto 4rem;
}

.closing-title {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--gold-glow);
  margin-bottom: 3rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.4);
}

.closing-quote-block {
  max-width: 700px;
  margin: 0 auto;
}

.closing-quote-line {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--star-cold);
  line-height: 2.2;
  opacity: 0.85;
}

.closing-quote-line em {
  font-style: normal;
  color: var(--gold-glow);
}

.closing-quote-line.highlight {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--dawn-white);
  font-weight: 500;
  opacity: 1;
}

/* ── Footer ── */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(168, 196, 224, 0.06);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-calligraphy);
  font-size: 1.1rem;
  color: var(--gold-mid);
  opacity: 0.6;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--star-cold);
  opacity: 0.3;
  letter-spacing: 0.15em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.75rem;
  color: var(--star-cold);
  text-decoration: none;
  opacity: 0.35;
  letter-spacing: 0.1em;
  transition: opacity var(--transition-fast);
}

.footer-nav a:hover { opacity: 0.7; }

/* ── Keyframes ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(212, 168, 67, 0.2), inset 0 0 60px rgba(212, 168, 67, 0.08); }
  50% { box-shadow: 0 0 70px rgba(212, 168, 67, 0.35), inset 0 0 80px rgba(212, 168, 67, 0.15); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Gradient Line Dividers ── */
.grad-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 196, 224, 0.15), transparent);
  margin: 0;
}

/* ── Tooltip / Hover Callouts ── */
.callout-box {
  background: rgba(7, 20, 34, 0.9);
  border: 1px solid rgba(212, 168, 67, 0.2);
  padding: 2rem 2.5rem;
  position: relative;
  max-width: 500px;
}

.callout-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-bright);
}

.callout-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-pale);
  line-height: 1.9;
  font-style: italic;
}

/* ── Mobile Navigation Overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.97);
  backdrop-filter: blur(20px);
  z-index: 499;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--star-cold);
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.1em;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.mobile-menu a:hover {
  opacity: 1;
  color: var(--gold-glow);
}

/* ── Gate Orb Variant Pulses ── */
.gate-orb-1 {
  animation: orbPulseBlue 3s ease-in-out infinite !important;
}
.gate-orb-2 {
  animation: orbPulseViolet 3.5s ease-in-out 0.4s infinite !important;
}
.gate-orb-3 {
  animation: orbPulse 2.5s ease-in-out 0.8s infinite !important;
}

@keyframes orbPulseBlue {
  0%, 100% { box-shadow: 0 0 40px rgba(168, 196, 224, 0.1), inset 0 0 60px rgba(168, 196, 224, 0.05); }
  50% { box-shadow: 0 0 70px rgba(168, 196, 224, 0.25), inset 0 0 80px rgba(168, 196, 224, 0.12); }
}
@keyframes orbPulseViolet {
  0%, 100% { box-shadow: 0 0 40px rgba(91, 45, 142, 0.2), inset 0 0 60px rgba(91, 45, 142, 0.1); }
  50% { box-shadow: 0 0 70px rgba(91, 45, 142, 0.4), inset 0 0 80px rgba(91, 45, 142, 0.2); }
}

/* ── Chapter hover gradient fix ── */
.chapter-item {
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ── Closing section lines init state ── */
.closing-quote-line {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gate-item {
    grid-template-columns: 1fr 40px 1fr;
  }
  .roles-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .chapters-grid {
    grid-template-columns: 1fr;
  }
  .practice-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-aura { display: none; }

  .site-nav {
    padding: 1.2rem 1.5rem;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  #hero { padding: 7rem 1.5rem 4rem; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .manifesto-grid {
    grid-template-columns: 1fr;
  }
  .manifesto-item {
    border-right: none;
    border-bottom: 1px solid rgba(168, 196, 224, 0.06);
  }

  .gate-item {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .gate-item:nth-child(even) .gate-content,
  .gate-item:nth-child(even) .gate-visual,
  .gate-item:nth-child(even) .gate-line { order: unset; }
  .gate-line { display: none; }
  .gate-content { text-align: center !important; }
  .gate-text { max-width: 100%; }

  .parallel-grid { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .practice-tabs {
    flex-direction: column;
    max-width: 300px;
  }
  .practice-tab {
    border-right: none;
    border-bottom: 1px solid rgba(168, 196, 224, 0.1);
  }
  .practice-tab:last-child { border-bottom: none; }
}
