@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ============================================
   FOREST — Dark Immersive Theme
   Deep greens, golden light, no cream anywhere
   ============================================ */

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --forest-deep:    #0a1a0d;
  --forest-dark:    #0f2815;
  --forest-mid:     #1a3a22;
  --forest-soft:    #2a4e30;
  --forest-panel:   #0d200f;
  --moss:           #3d6b45;
  --sage:           #7a9a6e;
  --leaf-light:     #a8c49a;
  --sunlight:       #f0d870;
  --sunlight-soft:  #e8d090;
  --gold:           #c4a045;
  --gold-dim:       #9a7e3a;
  --warm-cream:     #faf6ee;
  --parchment:      #f2ece0;
  --parchment-dark: #e0d8c8;
  --bark:           #3a2a18;
  --earth:          #5a4530;
  --bark-light:     #8a7560;

  /* Dark theme text */
  --text-primary:   #e4eede;
  --text-secondary: #b4c8aa;
  --text-muted:     #7a9a70;
  --text-dim:       #4a6040;

  /* Legacy (keep for menu etc) */
  --text-dark:      #1a2a18;
  --text-body:      #a4b89a;
  --text-light:     #f2ece0;

  --font-display:   'Cormorant Garamond', 'Georgia', serif;
  --font-body:      'Inter', 'Helvetica Neue', sans-serif;
  --font-accent:    'Crimson Text', 'Georgia', serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

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

body {
  font-family: var(--font-body);
  background: var(--forest-deep);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color 0.3s, opacity 0.3s; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--moss); color: var(--warm-cream); }

/* Custom cursor element hidden — trail still active via JS */
.custom-cursor {
  display: none;
}

/* Typewriter cursor blink */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--sunlight-soft);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s ease infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   FOREST CANOPY — Real Photo Layers
   ============================================ */
.forest-canopy {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 998;
  pointer-events: none;
  overflow: hidden;
}

.leaf-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  will-change: transform, opacity;
}

/* ============================================
   CINEMATIC VIGNETTE — Dark edges for depth
   ============================================ */
.scene-vignette {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    ellipse 70% 65% at 50% 50%,
    transparent 0%,
    transparent 40%,
    rgba(6, 12, 4, 0.2) 55%,
    rgba(4, 8, 3, 0.4) 70%,
    rgba(2, 5, 2, 0.6) 85%,
    rgba(1, 3, 1, 0.78) 100%
  );
}

/* Film grain overlay */
.scene-grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200vw; height: 200vh;
  pointer-events: none;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.4s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -5%); }
  20% { transform: translate(5%, -2%); }
  30% { transform: translate(-7%, 3%); }
  40% { transform: translate(3%, 7%); }
  50% { transform: translate(-5%, 2%); }
  60% { transform: translate(7%, -4%); }
  70% { transform: translate(-2%, 6%); }
  80% { transform: translate(4%, -3%); }
  90% { transform: translate(-6%, 5%); }
}

/* ============================================
   AMBIENT PARTICLES — CSS-only floating dots
   ============================================ */
#ambient-particles,
.ambient-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ambient-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 210, 150, 0.7);
  animation: ambientFloat linear infinite;
}

@keyframes ambientFloat {
  0%   { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(-22vh) translateX(8px); }
  50%  { transform: translateY(-45vh) translateX(-6px); }
  75%  { transform: translateY(-68vh) translateX(10px); }
  100% { transform: translateY(-90vh) translateX(0); opacity: 0; }
}

/* ============================================
   SPLASH
   ============================================ */
.splash-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.splash-text, .splash-enter, .splash-divider { pointer-events: auto; }

.splash-text {
  text-align: center;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 600px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 1.5s cubic-bezier(0.25,0.46,0.45,0.94);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.splash-text.visible { opacity: 1; transform: translateY(0); }

.splash-divider {
  width: 40px; height: 1px;
  background: var(--sunlight-soft);
  margin: 2rem auto;
  opacity: 0;
  transition: opacity 1.2s ease 0.6s, width 1.2s ease 0.6s;
}
.splash-divider.visible { opacity: 0.5; width: 60px; }

.splash-enter {
  margin-top: 1rem;
  padding: 14px 52px;
  background: transparent;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(242,236,224,0.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease 0.8s, transform 1.2s ease 0.8s,
              background 0.4s ease, border-color 0.4s ease;
}
.splash-enter.visible { opacity: 1; transform: translateY(0); }
.splash-enter:hover {
  background: rgba(242,236,224,0.08);
  border-color: rgba(242,236,224,0.4);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 3rem;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.site-header.visible { opacity: 1; }

/* ============================================
   AMBIENT AUDIO TOGGLE
   ============================================ */
.audio-toggle {
  position: fixed;
  bottom: 1.8rem;
  left: 1.8rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 16px;
  background: rgba(26, 58, 34, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 2px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, background 0.3s, opacity 0.8s ease;
  opacity: 0;
  pointer-events: none;
}
.audio-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}
.audio-toggle:hover {
  background: rgba(26, 58, 34, 0.85);
  color: var(--leaf-light);
}
.audio-toggle.playing {
  color: var(--leaf-light);
}

/* Sound bars animation */
.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.sound-bars span {
  display: block;
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}
.audio-toggle:not(.playing) .sound-bars span {
  height: 3px !important;
}
.audio-toggle.playing .sound-bars span {
  animation: soundBar 0.8s ease-in-out infinite alternate;
}
.audio-toggle.playing .sound-bars span:nth-child(1) { animation-delay: 0s; }
.audio-toggle.playing .sound-bars span:nth-child(2) { animation-delay: 0.15s; }
.audio-toggle.playing .sound-bars span:nth-child(3) { animation-delay: 0.3s; }
.audio-toggle.playing .sound-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes soundBar {
  0%   { height: 3px; }
  100% { height: 14px; }
}

/* Move audio toggle above bottom nav on path pages */
.bottom-nav ~ .audio-toggle,
.path-page-bg ~ .audio-toggle {
  bottom: 5rem;
}

.site-logo {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.site-logo a { display: flex; align-items: center; gap: 0.75rem; }

.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 10px 22px;
  background: rgba(26,58,34,0.6);
  backdrop-filter: blur(8px);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid rgba(122,154,110,0.12);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.menu-btn:hover {
  background: rgba(42,78,48,0.8);
  transform: translateY(-1px);
  border-color: rgba(122,154,110,0.25);
}

.menu-btn .bar-wrap { display: flex; flex-direction: column; gap: 3px; }
.menu-btn .bar-wrap span {
  width: 14px; height: 1.5px;
  background: var(--parchment);
  border-radius: 1px;
}

/* ============================================
   MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--forest-deep);
  z-index: 200;
  display: flex;
  clip-path: circle(0% at calc(100% - 4rem) 2.5rem);
  transition: clip-path 0.7s cubic-bezier(0.65,0,0.35,1);
  overflow: hidden;
}
.menu-overlay.open {
  clip-path: circle(150% at calc(100% - 4rem) 2.5rem);
}

.menu-overlay-left {
  width: 45%; padding: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(122,154,110,0.06);
}
.menu-overlay-right {
  width: 55%; padding: 2.5rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}

.menu-close {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--parchment); cursor: pointer;
  align-self: flex-start;
  padding: 10px 22px;
  border: 1px solid rgba(122,154,110,0.15);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.menu-close:hover {
  background: rgba(122,154,110,0.08);
  border-color: rgba(122,154,110,0.3);
}

.menu-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 3rem;
}
.menu-links li a {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--sage);
  transition: color 0.3s;
}
.menu-links li a:hover { color: var(--parchment); }

.menu-avatar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.menu-avatar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 26, 13, 0.7) 0%,
    rgba(10, 26, 13, 0.15) 30%,
    rgba(10, 26, 13, 0.05) 60%,
    rgba(10, 26, 13, 0.6) 90%,
    rgba(10, 26, 13, 0.8) 100%
  );
}

.menu-overlay-left .menu-close,
.menu-overlay-left .menu-links,
.menu-overlay-left .menu-credits {
  position: relative;
  z-index: 1;
}
.menu-overlay-left .menu-close {
  margin: 2rem 0 0 3rem;
}
.menu-overlay-left .menu-links {
  margin: 1.5rem 0 0 3rem;
}
.menu-overlay-left .menu-credits {
  position: absolute;
  bottom: 1.5rem;
  left: 3rem;
  z-index: 1;
}

.menu-credits {
  color: var(--text-muted);
  font-size: 0.65rem; line-height: 1.8;
  letter-spacing: 0.5px; opacity: 0.4;
}

.menu-nav-items { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.menu-nav-items li {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.menu-overlay.open .menu-nav-items li { opacity: 1; transform: translateX(0); }
.menu-overlay.open .menu-nav-items li:nth-child(1) { transition-delay: 0.15s; }
.menu-overlay.open .menu-nav-items li:nth-child(2) { transition-delay: 0.22s; }
.menu-overlay.open .menu-nav-items li:nth-child(3) { transition-delay: 0.29s; }
.menu-overlay.open .menu-nav-items li:nth-child(4) { transition-delay: 0.36s; }
.menu-overlay.open .menu-nav-items li:nth-child(5) { transition-delay: 0.43s; }
.menu-overlay.open .menu-nav-items li:nth-child(6) { transition-delay: 0.50s; }
.menu-overlay.open .menu-nav-items li:nth-child(7) { transition-delay: 0.57s; }
.menu-overlay.open .menu-nav-items li:nth-child(8) { transition-delay: 0.64s; }

/* Active menu nav item — current page */
.menu-nav-items li.menu-active a { border-bottom-color: rgba(196,160,69,0.3); }
.menu-nav-items li.menu-active a .nav-title { color: var(--sunlight-soft); }
.menu-nav-items li.menu-active a .nav-num { opacity: 0.9; }
.menu-nav-items li.menu-active a .nav-sub { opacity: 0.6; }

.menu-nav-items li a {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(122,154,110,0.06);
  transition: border-color 0.3s;
}
.menu-nav-items li a:hover { border-bottom-color: var(--gold); }

.menu-nav-items li a .nav-num {
  font-family: var(--font-accent); font-style: italic;
  font-size: 0.85rem; color: var(--gold); opacity: 0.5; min-width: 2rem;
}
.menu-nav-items li a .nav-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem,3vw,2.5rem);
  font-weight: 400; color: var(--parchment);
  letter-spacing: 0.02em;
  transition: color 0.3s, transform 0.3s;
}
.menu-nav-items li a:hover .nav-title {
  color: var(--sunlight-soft); transform: translateX(8px);
}
.menu-nav-items li a .nav-sub {
  font-family: var(--font-accent); font-style: italic;
  font-size: 0.85rem; color: var(--sage);
  margin-left: auto; opacity: 0; transition: opacity 0.3s;
}
.menu-nav-items li a:hover .nav-sub { opacity: 0.7; }

/* ============================================
   MAIN CONTENT — DARK EVERYWHERE
   ============================================ */
.main-content {
  position: relative;
  min-height: 100vh;
  background: var(--forest-deep);
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25,0.46,0.45,0.94);
}
/* Path pages: transparent main-content so forest bg shows through */
.path-page-bg ~ .main-content {
  background: transparent;
}
.main-content.visible { opacity: 1; }

/* Subtle grain overlay */
.main-content::after {
  content: '';
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.3;
}

/* ============================================
   HOME HERO — Centered name & tagline
   ============================================ */
.home-hero {
  width: 100%; min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 3rem;
  position: relative; z-index: 2;
  text-align: center;
}
.home-hero-content {
  max-width: 700px;
  opacity: 0; transform: translateY(25px);
  animation: revealUp 1.2s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s forwards;
}
.home-hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.home-hero-roles {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-style: italic;
  color: var(--sage);
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.home-hero-divider {
  width: 50px; height: 1px;
  background: var(--gold-dim);
  margin: 1.8rem auto;
  opacity: 0.5;
}
.home-hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--sunlight-soft);
  margin-bottom: 1rem;
}
.home-hero-sub {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   TREE PATHS — 9 branches radiating from trunk
   ============================================ */
.tree-paths-section {
  position: relative;
  width: 100%;
  padding: 2rem 2rem 6rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tree-label {
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); opacity: 0.6;
  margin-bottom: 3rem;
  text-align: center;
}

/* The vertical trunk line */
.tree-trunk-line {
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(122,154,110,0.0) 0%,
    rgba(122,154,110,0.15) 10%,
    rgba(122,154,110,0.15) 90%,
    rgba(122,154,110,0.0) 100%
  );
  z-index: 0;
}

.tree-branches {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

/* Individual branch — alternating left/right */
.tree-branch {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.2rem 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.4s ease;
}

/* Odd branches go LEFT, even go RIGHT */
.tree-branch:nth-child(odd) {
  flex-direction: row-reverse;
  padding-right: calc(50% + 30px);
  padding-left: 2rem;
}
.tree-branch:nth-child(even) {
  flex-direction: row;
  padding-left: calc(50% + 30px);
  padding-right: 2rem;
}

/* The horizontal branch line connecting node to trunk */
.branch-line {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 30px;
  background: rgba(122,154,110,0.25);
  transition: background 0.4s ease, width 0.4s ease;
}
/* Odd branches: node is LEFT, line extends RIGHT to trunk at 50% */
.tree-branch:nth-child(odd) .branch-line {
  left: calc(50% - 30px);
}
/* Even branches: node is RIGHT, line extends LEFT from trunk at 50% */
.tree-branch:nth-child(even) .branch-line {
  left: 50%;
}

/* The node content */
.branch-node {
  position: relative;
  padding: 1.5rem 2rem;
  background: rgba(15,40,21,0.35);
  border: 1px solid rgba(122,154,110,0.08);
  border-radius: 4px;
  transition: background 0.4s ease, border-color 0.4s ease,
              transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.branch-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--moss));
  opacity: 0;
  transition: opacity 0.4s;
}

.tree-branch:hover .branch-node {
  background: rgba(18,48,25,0.7);
  border-color: rgba(122,154,110,0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 40px rgba(61,107,69,0.05);
}
.tree-branch:hover .branch-node::before { opacity: 1; }
.tree-branch:hover .branch-line {
  background: rgba(196,160,69,0.4);
}

.branch-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.4;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}

.branch-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}
.tree-branch:hover .branch-name { color: var(--leaf-light); }

.branch-sub {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.5;
  max-width: 280px;
}

/* Empty / coming-soon branches */
.branch-empty .branch-node {
  background: rgba(15,40,21,0.2);
  border-color: rgba(122,154,110,0.04);
}
.branch-empty .branch-name {
  color: var(--text-secondary);
  opacity: 0.5;
}
.branch-empty .branch-sub {
  opacity: 0.3;
  font-size: 0.7rem;
}
.branch-empty:hover .branch-node {
  background: rgba(15,40,21,0.35);
  border-color: rgba(122,154,110,0.1);
  transform: none;
  box-shadow: none;
}
.branch-empty:hover .branch-node::before { opacity: 0; }
.branch-empty:hover .branch-name { color: var(--text-secondary); opacity: 0.6; }

/* Stagger animation for branches appearing */
.tree-branches .tree-branch {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tree-branches.visible .tree-branch { opacity: 1; transform: translateY(0); }
.tree-branches.visible .tree-branch:nth-child(1) { transition-delay: 0.08s; }
.tree-branches.visible .tree-branch:nth-child(2) { transition-delay: 0.16s; }
.tree-branches.visible .tree-branch:nth-child(3) { transition-delay: 0.24s; }
.tree-branches.visible .tree-branch:nth-child(4) { transition-delay: 0.32s; }
.tree-branches.visible .tree-branch:nth-child(5) { transition-delay: 0.40s; }
.tree-branches.visible .tree-branch:nth-child(6) { transition-delay: 0.48s; }
.tree-branches.visible .tree-branch:nth-child(7) { transition-delay: 0.56s; }
.tree-branches.visible .tree-branch:nth-child(8) { transition-delay: 0.64s; }
.tree-branches.visible .tree-branch:nth-child(9) { transition-delay: 0.72s; }

/* ============================================
   HOME BODY — Essay content below the tree
   ============================================ */
.home-body {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 8rem;
  background: var(--forest-panel);
  border-top: 1px solid rgba(122,154,110,0.06);
}
.home-body-inner {
  max-width: 680px;
  margin: 0 auto;
}
.home-body .body-text {
  margin-bottom: 2.5rem;
}
.home-body .body-text p {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.home-body .body-text p:last-child { margin-bottom: 0; }

/* ============================================
   PATH PAGE BACKGROUND — Forest hero image
   ============================================ */
.path-page-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  background: url('../assets/images/forest-hero.jpg') center center / cover no-repeat;
  pointer-events: none;
}
.path-page-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(8, 20, 10, 0.25);
}

/* ============================================
   PATH SECTIONS (inner path pages)
   ============================================ */
.path-section {
  position: relative;
  padding: 6rem 4rem;
  z-index: 2;
  background: rgba(10, 26, 13, 0.45);
}
.path-section-inner {
  max-width: 720px;
  margin: 0 auto;
}
.path-section .section-text p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}
.path-section .section-text p:last-child { margin-bottom: 0; }

.path-list {
  list-style: none;
  padding: 1rem 0 1rem 1.5rem;
}
.path-list li {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--leaf-light);
  padding: 0.3rem 0;
  position: relative;
}
.path-list li::before {
  content: '\2022';
  position: absolute;
  left: -1rem;
  color: var(--gold-dim);
  opacity: 0.5;
}

.path-section-final {
  background: rgba(10, 26, 13, 0.45);
  border-top: none;
}

.path-return {
  margin-top: 3rem;
  text-align: center;
}

/* Inner page intro text */
.page-intro {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 1.5rem auto 0;
  text-align: center;
  opacity: 0;
  animation: revealUp 0.8s ease 0.9s forwards;
}

/* ============================================
   LEGACY PATHS PAGE (kept for reference)
   ============================================ */
.paths-page {
  width: 100%; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 4rem;
  position: relative;
  z-index: 2;
}

/* ============================================
   INNER HERO
   ============================================ */
.inner-hero {
  position: relative; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 26, 13, 0.45); overflow: hidden;
}
.inner-hero-content { text-align: center; z-index: 5; }

.inner-hero .page-label {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  opacity: 0; animation: revealUp 0.8s ease 0.5s forwards;
}
.inner-hero .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem,7vw,6rem);
  font-weight: 300; color: var(--text-primary);
  line-height: 1.05; letter-spacing: -0.01em;
  opacity: 0; animation: revealUp 0.8s ease 0.7s forwards;
}
.inner-hero .page-title span { display: block; }
.inner-hero .page-title em { font-weight: 400; font-style: italic; color: var(--sage); }

/* ============================================
   SPLIT SECTIONS (Thinker page) — DARK
   ============================================ */
.split-section {
  display: flex; min-height: 80vh; align-items: center;
  padding: var(--space-lg); background: transparent;
  border-bottom: none;
}
.split-section:nth-child(even) {
  flex-direction: row-reverse;
  background: transparent;
}
.split-text { flex: 1; padding: var(--space-md) var(--space-lg); }
.split-visual { flex: 1; display: flex; align-items: center; justify-content: center; }

.visual-orb {
  width: min(380px,30vw); height: min(380px,30vw);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    var(--sage) 0%, var(--moss) 40%,
    var(--forest-soft) 70%, var(--forest-mid) 100%);
  opacity: 0.12; filter: blur(1px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.split-section:hover .visual-orb { opacity: 0.18; transform: scale(1.02); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 1rem;
}
.section-label.gold { color: var(--gold); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem,4.5vw,4rem);
  font-weight: 300; line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 1.5rem;
  color: #f0ece4;
}
.section-heading em { font-weight: 400; font-style: italic; color: var(--leaf-light); }

.section-text {
  font-family: var(--font-accent);
  font-size: 1.15rem; line-height: 1.8;
  max-width: 650px; color: var(--text-secondary);
}

/* ============================================
   SCROLL SECTIONS — DARK
   ============================================ */
.scroll-section {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: rgba(10, 26, 13, 0.45);
  color: var(--text-primary);
}
.scroll-section.dark {
  background: rgba(10, 26, 13, 0.45);
  color: var(--text-primary);
}

/* ============================================
   VENTURE CARDS (Professional page) — DARK
   ============================================ */
.h-scroll-section {
  position: relative; height: 100vh; overflow: hidden;
  background: var(--forest-deep);
}
.h-scroll-container {
  display: flex; height: 100%; will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.venture-cards {
  display: flex; gap: 1.5rem; padding: 2rem;
  align-items: center; height: 100%;
}

.venture-card {
  min-width: 300px; max-width: 330px; height: 65vh;
  background: rgba(15,40,21,0.5);
  border: 1px solid rgba(122,154,110,0.08);
  border-radius: 6px; padding: 2.5rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.5s ease, border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.venture-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--moss));
  opacity: 0; transition: opacity 0.4s;
}
.venture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  border-color: rgba(122,154,110,0.2);
  background: rgba(18,48,25,0.7);
}
.venture-card:hover::before { opacity: 1; }

.card-number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 300;
  color: var(--gold); opacity: 0.15;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  color: var(--text-primary); margin-bottom: 0.6rem;
}
.card-subtitle {
  font-family: var(--font-accent);
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.6;
}
.card-cta {
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dim);
}

/* ============================================
   BOTTOM NAV — DARK
   ============================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; width: 100%;
  z-index: 50;
  background: rgba(10,26,13,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(122,154,110,0.08);
  display: flex; align-items: stretch;
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.bottom-nav.visible { opacity: 1; transform: translateY(0); }

.bottom-nav-items { display: flex; flex: 1; list-style: none; overflow: hidden; }

.bottom-nav-item {
  flex: 1; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer;
  border-right: 1px solid rgba(122,154,110,0.06);
  transition: background 0.3s; position: relative;
}
.bottom-nav-item:hover { background: rgba(122,154,110,0.05); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-dim);
}

.bnav-num {
  font-family: var(--font-accent); font-style: italic;
  font-size: 0.9rem; color: var(--gold); opacity: 0.4;
}
.bnav-label {
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================
   TIMELINE (Journey) — DARK
   ============================================ */
.timeline-section {
  position: relative; height: 100vh; overflow: hidden;
  background: var(--forest-deep);
}
.timeline-hint {
  position: absolute; top: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 10; text-align: center;
}
.timeline-hint .hint-label {
  font-family: var(--font-accent); font-style: italic;
  color: var(--gold); font-size: 0.8rem;
}
.timeline-hint .hint-text {
  font-family: var(--font-body);
  font-size: 0.55rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-secondary); opacity: 0.3;
}

.timeline-track {
  display: flex; height: calc(100vh - 65px);
  cursor: grab; user-select: none;
}
.timeline-track:active { cursor: grabbing; }

.timeline-col {
  min-width: 380px; padding: 4rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(122,154,110,0.06); position: relative;
}
.timeline-col.intro-col { min-width: 460px; padding: var(--space-lg); }

.timeline-col.intro-col .tl-name {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1rem; color: var(--gold); opacity: 0.7; margin-bottom: 0.5rem;
}
.timeline-col.intro-col h2 {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 300;
  color: var(--text-primary); line-height: 1.1; margin-bottom: 1.5rem;
}
.timeline-col.intro-col p {
  font-family: var(--font-accent);
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-muted); max-width: 360px;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 300;
  color: var(--sage); opacity: 0.08;
  position: absolute; top: 2rem; left: 2.5rem;
}
.timeline-milestone-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 400;
  color: var(--text-primary); margin-bottom: 0.75rem;
}
.timeline-milestone-text {
  font-family: var(--font-accent);
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text-muted); max-width: 300px;
}
.timeline-image {
  width: 100%; max-width: 280px; height: 180px;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest-soft));
  border-radius: 4px; margin-top: 1.5rem; opacity: 0.15;
}

.timeline-years-bar {
  position: absolute; bottom: 0; left: 0; width: 100%;
  height: 55px; background: rgba(10,26,13,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(122,154,110,0.08);
  display: flex; align-items: center;
  padding: 0 2rem; gap: 2.5rem;
  overflow-x: auto; z-index: 10;
}
.timeline-years-bar::-webkit-scrollbar { display: none; }

.year-marker {
  font-family: var(--font-accent); font-style: italic;
  font-size: 0.8rem; color: var(--text-secondary);
  opacity: 0.25; cursor: pointer; white-space: nowrap;
  transition: opacity 0.3s, color 0.3s;
}
.year-marker:hover, .year-marker.active { opacity: 0.8; color: var(--gold); }

/* ============================================
   FAQ — DARK
   ============================================ */
.faq-layout { display: flex; min-height: 100vh; background: var(--forest-deep); }

.faq-sidebar {
  width: 38%; padding: var(--space-xl) var(--space-lg);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.faq-sidebar .faq-label {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1rem; color: var(--gold); opacity: 0.7; margin-bottom: 0.5rem;
}
.faq-sidebar .faq-title {
  font-family: var(--font-display);
  font-size: clamp(3rem,5vw,4.5rem);
  font-weight: 300; color: var(--text-primary);
}
.faq-footer { margin-top: auto; }
.faq-footer p {
  font-family: var(--font-accent);
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem;
}

.forest-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--forest-mid); color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid rgba(122,154,110,0.15);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.forest-btn:hover {
  background: var(--forest-soft);
  transform: translateY(-1px);
  border-color: rgba(122,154,110,0.3);
}

/* ── Course Registration Form ── */
.course-form {
  margin-top: 2rem;
}
.course-form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.course-form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-form-field label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.course-form-field input,
.course-form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(242,236,224,0.12);
  border-radius: 3px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--parchment);
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.course-form-field input::placeholder,
.course-form-field textarea::placeholder {
  color: rgba(242,236,224,0.3);
  font-style: italic;
}
.course-form-field input:focus,
.course-form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}
.course-form-field textarea {
  resize: vertical;
  min-height: 100px;
}
.course-submit-btn {
  padding: 14px 48px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  cursor: pointer;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .course-form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.faq-content {
  width: 62%; padding: var(--space-xl) var(--space-lg);
  border-left: 1px solid rgba(122,154,110,0.06);
}

.faq-item { border-bottom: 1px solid rgba(122,154,110,0.08); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; cursor: pointer; width: 100%;
  text-align: left; background: none; border: none;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 400;
  color: var(--text-primary); transition: color 0.3s;
}
.faq-question:hover { color: var(--leaf-light); }

.faq-arrow {
  font-size: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  flex-shrink: 0; margin-left: 1rem;
  color: var(--gold-dim); opacity: 0.5;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94), padding 0.5s ease;
}
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 1.5rem; }

.faq-answer p {
  font-family: var(--font-accent);
  font-size: 0.95rem; line-height: 1.75; color: var(--text-muted);
}
.faq-answer a {
  color: var(--sage);
  border-bottom: 1px solid rgba(122,154,110,0.2);
  transition: color 0.3s, border-color 0.3s;
}
.faq-answer a:hover { color: var(--leaf-light); border-color: var(--sage); }

/* ============================================
   CONNECT — DARK
   ============================================ */
.connect-layout {
  display: flex; min-height: 100vh;
  background: var(--forest-deep); align-items: center;
}
.connect-content { width: 55%; padding: var(--space-xl); }

.connect-label {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1rem; color: var(--gold); opacity: 0.7; margin-bottom: 0.5rem;
}
.connect-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem,5vw,4.5rem);
  font-weight: 300; color: var(--text-primary);
  margin-bottom: 2rem; line-height: 1.1;
}
.connect-text {
  font-family: var(--font-accent);
  font-size: 1rem; line-height: 1.75;
  color: var(--text-muted); max-width: 460px; margin-bottom: 3rem;
}
.connect-links { display: flex; flex-direction: column; gap: 1.2rem; }
.connect-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.5px;
  color: var(--sage); padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.connect-link:hover { color: var(--gold); border-bottom-color: var(--gold-dim); }
.connect-link svg { width: 18px; height: 18px; opacity: 0.6; }

.connect-side {
  width: 45%; height: 100vh;
  position: relative; overflow: hidden;
  background: var(--forest-panel);
}

/* ============================================
   BOOK (Writer) — FLIPBOOK READER
   ============================================ */
.books-showcase {
  position: relative; z-index: 2;
  padding: var(--space-lg); background: rgba(10, 26, 13, 0.92);
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
}
.book-display {
  display: flex; align-items: center; gap: 5rem;
  max-width: 1200px; margin: 0 auto;
}
.book-cover-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
}

/* --- Book Reader Container --- */
.book-reader {
  width: 380px; height: 540px;
  position: relative;
}

/* Pages clipping wrapper */
.book-pages-clip {
  position: absolute; inset: 0;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow:
    8px 8px 30px rgba(0,0,0,0.5),
    0 0 60px rgba(0,0,0,0.2),
    inset 0 0 0 1px rgba(122,154,110,0.05);
}

/* --- Pages --- */
.book-page {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
  transform: translateX(100%);
}
.book-page.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.book-page.flip-left {
  transform: translateX(-100%);
  opacity: 0;
}
.book-page.flip-right {
  transform: translateX(100%);
  opacity: 0;
}
.book-page.enter-right {
  transform: translateX(100%);
  opacity: 0;
  transition: none;
}
.book-page.enter-left {
  transform: translateX(-100%);
  opacity: 0;
  transition: none;
}

.book-page-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem;
}

/* Front Cover */
.book-front-cover {
  background: linear-gradient(160deg, #0f2815 0%, #0a1a0d 60%, #071208 100%);
  overflow: hidden;
}
.book-front-cover::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 40% 35%, rgba(100,180,80,0.1), transparent 50%);
}
.book-front-cover::after {
  content: ''; position: absolute;
  left: 0; top: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, rgba(196,160,69,0.5), rgba(196,160,69,0.1));
}
.book-svg-bg {
  position: absolute; width: 70%; opacity: 0.1; z-index: 0;
}
.book-title-display {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 500;
  color: #f2ece0; text-align: center;
  z-index: 1; line-height: 1.3; letter-spacing: 0.02em;
}
.book-author-display {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 5px; text-transform: uppercase;
  color: #c4a045; margin-top: 2rem;
  z-index: 1; opacity: 0.8;
}
.book-tap-hint {
  position: absolute; bottom: 2rem;
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #7a9a6e; opacity: 0.5;
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Chapter Pages */
.book-chapter-page {
  background: linear-gradient(135deg, #f8f4ec, #f0eade);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3.5rem 3rem;
  overflow-y: auto;
}
.book-chapter-page::after {
  content: ''; position: absolute;
  left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, rgba(196,160,69,0.2), rgba(196,160,69,0.05));
}
.chapter-label {
  font-family: var(--font-body);
  font-size: 0.5rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: #c4a045; margin-bottom: 0.8rem;
}
.chapter-number {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: #8a7560; margin-bottom: 0.5rem;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 400;
  color: #1a2a18; line-height: 1.3;
  margin-bottom: 1rem;
}
.chapter-divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, #c4a045, transparent);
  margin-bottom: 1.5rem;
}
.chapter-text {
  font-family: var(--font-accent, Georgia, serif);
  font-size: 0.85rem; line-height: 1.85;
  color: #3a3020;
}
.chapter-text p {
  margin-bottom: 1rem;
  text-indent: 1.5em;
}
.chapter-text p:first-child {
  text-indent: 0;
}
.chapter-page-num {
  position: absolute; bottom: 1.5rem; right: 2rem;
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 400;
  color: #8a7560; opacity: 0.5;
}

/* Navigation Arrows */
.book-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 1px solid rgba(122,154,110,0.2);
  border-radius: 50%;
  background: rgba(10,26,13,0.7);
  color: #e4eede;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.book-nav:hover {
  background: rgba(196,160,69,0.2);
  border-color: rgba(196,160,69,0.4);
}
.book-nav-prev { left: -55px; }
.book-nav-next { right: -55px; }

/* Page Dots */
.book-page-dots {
  position: absolute; bottom: -35px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.book-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(122,154,110,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.book-dot.active {
  background: #c4a045;
  box-shadow: 0 0 8px rgba(196,160,69,0.4);
}

/* --- Book Info --- */
.book-info { flex: 1; }
.book-info .book-category {
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; opacity: 0.7;
}
.book-info h3 {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 300;
  color: var(--text-primary); margin-bottom: 1.5rem; line-height: 1.2;
}
.book-info p {
  font-family: var(--font-accent);
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-muted); margin-bottom: 1.5rem; max-width: 420px;
}

/* Book Meta Tags */
.book-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem;
}
.book-meta-item {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 1px;
  color: var(--sage); opacity: 0.7;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(122,154,110,0.15);
  border-radius: 20px;
}

/* Amazon Button */
.amazon-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, #c4a045, #e8c84a);
  color: #0a1a0d;
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(196,160,69,0.3);
}
.amazon-btn:hover {
  background: linear-gradient(135deg, #d4b050, #f0d860);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(196,160,69,0.5);
}
.amazon-icon { flex-shrink: 0; }

/* ============================================
   BOOK LANDING PAGE — LARGE VARIANT
   ============================================ */
.book-landing-showcase {
  padding: 2rem var(--space-lg);
  min-height: auto;
}
.book-display-large {
  gap: 5rem;
  max-width: 1200px;
}
.book-reader-large {
  width: 340px;
  height: 510px;
}
.book-reader-large .book-title-display {
  font-size: 2.4rem;
}
.book-reader-large .book-author-display {
  font-size: 0.65rem;
  letter-spacing: 5px;
  margin-top: 2rem;
}
.book-reader-large .chapter-title {
  font-size: 1.7rem;
}
.book-reader-large .chapter-text {
  font-size: 0.88rem;
  line-height: 1.85;
}
.book-reader-large .chapter-label {
  font-size: 0.52rem;
}
.book-reader-large .chapter-number {
  font-size: 0.62rem;
}
.book-reader-large .book-page-face {
  padding: 3.2rem 3rem;
}
.book-reader-large .book-nav {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}
.book-reader-large .book-nav-prev { left: -58px; }
.book-reader-large .book-nav-next { right: -58px; }

/* Book cover as image */
.book-front-cover-img {
  padding: 0 !important;
  background: #0f1c2e;
}
.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.book-front-cover-img .book-tap-hint {
  position: absolute;
  bottom: 0.8rem;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Brief card with image cover */
.book-brief-cover-img {
  background: none;
  padding: 0;
  overflow: hidden;
}
.book-brief-cover-img::after { display: none; }
.book-brief-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Book author block (book landing page) */
.book-author-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.book-author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 160, 69, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.book-info-large h3 {
  font-size: 3rem;
}
.book-info-large p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 550px;
}
.book-info-large .book-meta {
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.book-info-large .book-meta-item {
  font-size: 0.7rem;
  padding: 0.5rem 1rem;
}
.book-info-large .amazon-btn {
  padding: 1.2rem 2.8rem;
  font-size: 0.75rem;
}

/* ============================================
   BOOK BRIEF CARD (Writer page)
   ============================================ */
.book-brief-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(15, 40, 21, 0.4);
  border: 1px solid rgba(122, 154, 110, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
}
.book-brief-card:hover {
  background: rgba(15, 40, 21, 0.6);
  border-color: rgba(196, 160, 69, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(196, 160, 69, 0.08);
}
.book-brief-cover {
  width: 140px;
  height: 200px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0f2815 0%, #0a1a0d 60%, #071208 100%);
  border-radius: 3px 8px 8px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.4);
}
.book-brief-cover::after {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, rgba(196, 160, 69, 0.5), rgba(196, 160, 69, 0.1));
}
.book-brief-cover .book-brief-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #f2ece0;
  text-align: center;
  line-height: 1.3;
  z-index: 1;
}
.book-brief-cover .book-brief-author {
  font-family: var(--font-body);
  font-size: 0.4rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c4a045;
  margin-top: 1rem;
  z-index: 1;
  opacity: 0.8;
}
.book-brief-text {
  flex: 1;
}
.book-brief-text .book-category {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.book-brief-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.book-brief-text p {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 400px;
}
.book-brief-cta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.book-brief-card:hover .book-brief-cta {
  gap: 0.8rem;
}

/* ============================================
   BOOKS CAROUSEL (Writer page — auto-scroll)
   ============================================ */
.books-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.books-carousel-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: booksScroll 20s linear infinite;
  padding: 0 1rem;
}
.books-carousel:hover .books-carousel-track {
  animation-play-state: paused;
}
@keyframes booksScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.book-carousel-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 480px;
  max-width: 520px;
  padding: 2rem 2.5rem;
  background: rgba(15, 40, 21, 0.4);
  border: 1px solid rgba(122, 154, 110, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.book-carousel-card:hover {
  background: rgba(15, 40, 21, 0.6);
  border-color: rgba(196, 160, 69, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(196, 160, 69, 0.08);
}
.book-carousel-cover {
  width: 120px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.4);
}
.book-carousel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-carousel-info {
  flex: 1;
  min-width: 0;
}
.book-carousel-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.book-carousel-info p {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.book-carousel-info .book-brief-cta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.book-carousel-card:hover .book-brief-cta {
  gap: 0.8rem;
}

/* ============================================
   FLOATING BOOK BUBBLE (Writer page)
   ============================================ */
.book-float-bubble {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
}
.book-float-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4a045, #e8c84a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(196, 160, 69, 0.4), 0 0 40px rgba(196, 160, 69, 0.15);
  transition: all 0.3s ease;
  position: relative;
}
.book-float-icon svg {
  width: 24px;
  height: 24px;
  fill: #0a1a0d;
}
.book-float-bubble:hover .book-float-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(196, 160, 69, 0.6), 0 0 60px rgba(196, 160, 69, 0.2);
}
.book-float-label {
  background: rgba(10, 26, 13, 0.9);
  border: 1px solid rgba(196, 160, 69, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-right: 0.8rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.book-float-bubble:hover .book-float-label {
  opacity: 1;
  transform: translateX(0);
}
.book-float-label span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
/* Subtle pulse ring */
.book-float-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(196, 160, 69, 0.3);
  animation: bubblePulse 2.5s ease-in-out infinite;
}
@keyframes bubblePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* ============================================
   STATS — DARK
   ============================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2rem; max-width: 900px; margin: 0 auto;
}
.stat-item { text-align: center; padding: 1.5rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 300; color: var(--sunlight-soft);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--sage); opacity: 0.5; margin-top: 0.5rem;
}

/* ============================================
   QUOTE — DARK
   ============================================ */
.quote-block {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  max-width: 680px; margin: 0 auto;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem; color: var(--gold);
  opacity: 0.15; line-height: 1;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem,2.5vw,1.8rem);
  font-weight: 300; font-style: italic;
  color: var(--text-primary); line-height: 1.55;
  margin: 0.5rem 0 1.5rem;
}
.quote-attr {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dim);
}

/* ============================================
   WRITING THEMES — DARK
   ============================================ */
.theme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.theme-card {
  padding: 2.5rem 2rem;
  background: rgba(15,40,21,0.4);
  border: 1px solid rgba(122,154,110,0.06);
  border-radius: 4px;
  transition: border-color 0.4s, background 0.4s;
}
.theme-card:hover {
  border-color: rgba(122,154,110,0.15);
  background: rgba(18,48,25,0.6);
}
.theme-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 300;
  color: var(--gold); opacity: 0.15; margin-bottom: 1rem;
}
.theme-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  color: var(--text-primary); margin-bottom: 0.6rem;
}
.theme-desc {
  font-family: var(--font-accent);
  font-size: 0.85rem; color: var(--text-muted);
  opacity: 0.7; line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-35px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(35px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ============================================
   3D CANVAS — Three.js Immersive Landing
   ============================================ */
#canvas-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
}

#canvas-container canvas {
  display: block;
  width: 100%; height: 100%;
}

/* ============================================
   FOREST PATHS — Aerial interactive landing
   ============================================ */
#forest-paths-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #050a06;
}

.fp-image-wrap {
  position: absolute;
  top: -4%; left: -4%;
  width: 108%; height: 108%;
  transform: scale(1.08);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.fp-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

/* Central glow */
.fp-center-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -65%);
  background: radial-gradient(circle, rgba(255,232,128,0.4) 0%, rgba(255,200,80,0.15) 30%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Particle canvas */
.fp-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Labels container */
.fp-labels {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* Individual path hotspot */
.fp-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.3s ease;
}

.fp-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Label card — glassmorphism */
.fp-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 22px;
  background: rgba(10, 26, 13, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 196, 154, 0.15);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.4s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.fp-hotspot.active .fp-label,
.fp-hotspot:hover .fp-label {
  background: rgba(10, 26, 13, 0.7);
  border-color: rgba(240, 216, 112, 0.35);
  box-shadow: 0 4px 30px rgba(240, 216, 112, 0.15), 0 0 60px rgba(240, 216, 112, 0.08);
}

.fp-label-num {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.fp-label-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: 0.5px;
}

.fp-label-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fp-hotspot.active .fp-label-sub,
.fp-hotspot:hover .fp-label-sub {
  opacity: 1;
  max-height: 20px;
  margin-top: 2px;
}

/* Glow ring behind label on hover */
.fp-hotspot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,216,112,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fp-hotspot.active::before,
.fp-hotspot:hover::before {
  opacity: 1;
}

/* ============================================
   FIRST-PERSON HUD
   ============================================ */
.fp-hud {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 50;
}

.fp-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 24px;
  font-family: monospace;
  line-height: 1;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.fp-path-info {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--parchment);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.fp-path-info small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.fp-info-num {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin-right: 8px;
}

.fp-controls-hint {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(168, 196, 154, 0.6);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1100;
  background: #050a06;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-inner {
  text-align: center;
}

.loading-ring {
  width: 48px; height: 48px;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(122,154,110,0.1);
  border-top-color: var(--gold-dim);
  border-radius: 50%;
  animation: loadSpin 1s linear infinite;
}

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

.loading-text {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* ============================================
   SPLASH OVERLAY — Over the 3D scene
   ============================================ */
.splash-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.splash-overlay .splash-text,
.splash-overlay .splash-enter,
.splash-overlay .splash-divider {
  pointer-events: auto;
}

.splash-overlay .splash-text {
  text-align: center;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 600px;
  padding: 0 2rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.7), 0 0 80px rgba(0,0,0,0.3);
  opacity: 0;
}

.splash-overlay .splash-divider {
  width: 0;
  height: 1px;
  background: var(--sunlight-soft);
  margin: 2rem auto;
  opacity: 0;
}

.splash-overlay .splash-enter {
  margin-top: 1rem;
  padding: 14px 52px;
  background: transparent;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(242,236,224,0.25);
  cursor: pointer;
  opacity: 0;
  transition: background 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease, transform 0.3s ease;
}

.splash-overlay .splash-enter:hover {
  background: rgba(242,236,224,0.08);
  border-color: rgba(242,236,224,0.5);
  box-shadow: 0 0 30px rgba(240,216,112,0.08), 0 0 60px rgba(240,216,112,0.04);
  transform: translateY(-2px);
}

/* ============================================
   BRANCH LABELS — Positioned via JS (3D → 2D)
   ============================================ */
.branch-labels {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.branch-label {
  position: absolute;
  top: 0; left: 0;
  pointer-events: auto;
  cursor: pointer;
  text-align: center;
  padding: 12px 22px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: background 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease, transform 0.3s ease;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 0 0 0.5px rgba(255,255,255,0.05);
}

.branch-label:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(196,160,69,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px rgba(196,160,69,0.1),
              inset 0 0 0 0.5px rgba(255,255,255,0.1);
  transform: translate(-50%, -50%) scale(1.04);
}

.branch-label .bl-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

.branch-label .bl-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: color 0.3s;
}

.branch-label .bl-sub {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 2px;
}

/* Active / hovered branch label */
.branch-label-active {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(196,160,69,0.5) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 30px rgba(196,160,69,0.15),
              inset 0 0 0 0.5px rgba(255,255,255,0.12) !important;
}

.branch-label-active .bl-name {
  color: var(--leaf-light);
}

.branch-label-active .bl-num {
  opacity: 0.8;
}

/* Empty / coming-soon branch labels */
.branch-label-empty {
  cursor: default;
  opacity: 0.5;
}

.branch-label-empty:hover {
  background: rgba(10,26,13,0.55);
  border-color: rgba(122,154,110,0.1);
  box-shadow: none;
}

.branch-label-empty .bl-name {
  color: var(--text-secondary);
  opacity: 0.7;
}

.branch-label-empty .bl-sub {
  opacity: 0.4;
  font-size: 0.6rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .faq-layout, .connect-layout { flex-direction: column; }
  .faq-sidebar, .faq-content, .connect-content, .connect-side { width: 100%; }
  .faq-sidebar { position: relative; height: auto; padding: var(--space-lg) var(--space-md); }
  .faq-content { padding: var(--space-md); border-left: none; border-top: 1px solid rgba(122,154,110,0.06); }
  .connect-content { padding: var(--space-lg) var(--space-md); }
  .connect-side { height: 35vh; }
  .book-display { flex-direction: column; gap: 3rem; text-align: center; }
  .book-cover-wrap { width: 100%; max-width: 420px; }
  .book-reader { width: 300px; height: 430px; }
  .book-nav-prev { left: -45px; }
  .book-nav-next { right: -45px; }
  .book-title-display { font-size: 1.6rem; }
  .chapter-title { font-size: 1.2rem; }
  .chapter-text { font-size: 0.78rem; }
  .book-page-face { padding: 2rem 1.8rem; }
  .book-info p, .book-info h3 { max-width: 100%; }
  .book-meta { justify-content: center; }
  .amazon-btn { width: 100%; justify-content: center; }
  /* Book landing large — tablet */
  .book-reader-large { width: 260px; height: 390px; }
  .book-reader-large .book-title-display { font-size: 1.6rem; }
  .book-reader-large .chapter-title { font-size: 1.2rem; }
  .book-reader-large .chapter-text { font-size: 0.78rem; }
  .book-reader-large .book-page-face { padding: 2rem 1.8rem; }
  .book-reader-large .book-nav-prev { left: -45px; }
  .book-reader-large .book-nav-next { right: -45px; }
  .book-info-large h3 { font-size: 2.2rem; }
  .book-info-large p { max-width: 100%; }
  /* Brief card — tablet */
  .book-brief-card { flex-direction: column; text-align: center; gap: 2rem; padding: 2.5rem; }
  .book-brief-text p { max-width: 100%; }
  .book-brief-text { display: flex; flex-direction: column; align-items: center; }
  /* Carousel — tablet */
  .book-carousel-card { min-width: 380px; max-width: 420px; padding: 1.5rem 2rem; gap: 1.5rem; }
  .book-carousel-cover { width: 100px; height: 140px; }
  .book-carousel-info h3 { font-size: 1.2rem; }
  .split-section, .split-section:nth-child(even) { flex-direction: column; }
  .split-text { padding: var(--space-md) 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .theme-grid { grid-template-columns: 1fr; }

  /* Tree branches — stack vertically, all same side */
  .tree-branch:nth-child(odd),
  .tree-branch:nth-child(even) {
    flex-direction: row;
    padding-left: calc(40px + 2rem);
    padding-right: 2rem;
  }
  .tree-trunk-line { left: 40px; }
  .tree-branch:nth-child(odd) .branch-line,
  .tree-branch:nth-child(even) .branch-line {
    left: 40px; right: auto; width: 20px;
  }
  .branch-node { min-width: 180px; }
  .path-section { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  .site-header { padding: 1.2rem 1.5rem; }
  .home-hero { padding: 6rem 1.5rem 2rem; min-height: 50vh; }
  .tree-paths-section { padding: 1.5rem 1rem 4rem; }
  .home-body { padding: 3rem 1.5rem 6rem; }
  .bottom-nav-items { overflow-x: auto; }
  .bottom-nav-item { min-width: 130px; padding: 0.9rem 1rem; }
  .scroll-section { padding: var(--space-lg) var(--space-md); }
  .path-section { padding: 3rem 1.5rem; }
  .timeline-col { min-width: 280px; padding: 3rem 1.5rem; }
  .menu-overlay { flex-direction: column; }
  .menu-overlay-left { width: 100%; padding: 0; border: none; height: auto; min-height: 40vh; }
  .menu-overlay-left .menu-close { margin: 1.5rem 0 0 1.5rem; }
  .menu-overlay-left .menu-links { margin: 1rem 0 0 1.5rem; }
  .menu-overlay-left .menu-credits { left: 1.5rem; }
  .menu-overlay-right { width: 100%; padding: 2rem; border: none; }
  .menu-nav-items li a .nav-title { font-size: 2rem; }
  .venture-card { min-width: 260px; max-width: 280px; height: 55vh; padding: 2rem 1.5rem; }
  /* Carousel — mobile */
  .book-carousel-card { min-width: 320px; max-width: 360px; flex-direction: column; text-align: center; padding: 1.5rem; gap: 1.2rem; }
  .book-carousel-cover { width: 100px; height: 140px; }
  .book-carousel-info h3 { font-size: 1.1rem; }
  .book-carousel-info p { font-size: 0.78rem; }
  .books-carousel-track { gap: 1.5rem; }

  /* Compact branch labels on mobile */
  .branch-label {
    padding: 5px 10px;
  }
  .branch-label .bl-num {
    font-size: 0.5rem;
    margin-bottom: 1px;
    letter-spacing: 1px;
  }
  .branch-label .bl-name {
    font-size: 0.8rem;
  }
  .branch-label .bl-sub {
    font-size: 0.5rem;
    margin-top: 1px;
  }

  .tree-branch:nth-child(odd),
  .tree-branch:nth-child(even) {
    padding-left: calc(30px + 1rem);
    padding-right: 1rem;
  }
  .tree-trunk-line { left: 30px; }
  .tree-branch:nth-child(odd) .branch-line,
  .tree-branch:nth-child(even) .branch-line {
    left: 29px;
    width: 20px;
  }
  .branch-node { padding: 1.2rem 1.5rem; min-width: unset; }
  .branch-name { font-size: 1.2rem; }
}

/* ============================================
   LEAF TRANSITION OVERLAY
   ============================================ */
#leaf-transition {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

/* Solid green backdrop behind leaves for guaranteed coverage */
.leaf-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #1a3a14;
  opacity: 0;
}

.transition-leaf {
  position: absolute;
  will-change: transform, left, top, opacity;
}

/* Leaf vein — central stem */
.leaf-vein {
  position: absolute;
  top: 10%; left: 46%;
  width: 8%; height: 82%;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.18) 50%,
    rgba(0,0,0,0.06) 100%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Secondary vein detail via pseudo-element */
.transition-leaf::before {
  content: '';
  position: absolute;
  top: 25%; left: 20%;
  width: 60%; height: 50%;
  background:
    linear-gradient(35deg, transparent 44%, rgba(0,0,0,0.06) 45%, rgba(0,0,0,0.06) 46%, transparent 47%),
    linear-gradient(-35deg, transparent 44%, rgba(0,0,0,0.06) 45%, rgba(0,0,0,0.06) 46%, transparent 47%),
    linear-gradient(25deg, transparent 44%, rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.04) 46%, transparent 47%),
    linear-gradient(-25deg, transparent 44%, rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.04) 46%, transparent 47%);
  pointer-events: none;
}

/* Subtle surface texture */
.transition-leaf::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(160deg,
    rgba(255,255,255,0.04) 0%,
    transparent 40%,
    rgba(0,0,0,0.06) 100%
  );
  pointer-events: none;
}
