:root {
  --bg-primary: #04060e;
  --bg-secondary: #080d1a;
  --bg-card: #0c1526;
  --bg-card-hover: #101d34;
  --ocean: #1a7fa8;
  --ocean-light: #4db8d4;
  --ocean-dark: #0e5570;
  --ocean-glow: rgba(26, 127, 168, 0.25);
  --jade: #00c896;
  --jade-dark: #009e78;
  --jade-glow: rgba(0, 200, 150, 0.25);
  --text: #dde6f4;
  --text-muted: #4a6278;
  --text-dim: #8aa0b4;
  --border: #112030;
  --border-glow: #1a3a50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-primary); }

body {
  background: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ── FULL-PAGE TREE ── */
#page-tree {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#page-tree svg {
  width: 100%;
  display: block;
}

/* Sections sit above the tree */
.hero, section, .newsletter-section, footer {
  position: relative;
  z-index: 1;
}

/* Root-5 center spine */
.root-path-5 { stroke: #00c896; opacity: 0.22; }

/* Section anchor node pulses */
.section-node {
  animation: nodePulse 3.5s ease-in-out infinite;
}
.section-node-outer {
  animation: nodePulse 3.5s ease-in-out infinite 0.6s;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.62; }
}

#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  will-change: contents;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--ocean-dark); border-radius: 2px; }

/* ── NAV HOVER TRIGGER ZONE ── */
.nav-trigger {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 1001;
}

/* ── TOP HORIZONTAL NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(4, 6, 14, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

nav.nav-visible {
  transform: translateY(0);
  border-bottom-color: var(--ocean-dark);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(26, 127, 168, 0.08);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-logo span { color: var(--jade); }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--jade);
  transition: width 0.3s ease;
}

.nav-links a:visited { color: var(--text-muted); }

.nav-links a:hover,
.nav-links a.active { color: var(--jade); }

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

/* Vertical pipe separators between nav items */
.nav-links li { position: relative; }
.nav-links li + li::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: var(--border-glow);
  pointer-events: none;
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  transition: all 0.3s ease;
}

/* ── MOON TRACKER ── */
.moon-tracker {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(4, 6, 14, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  cursor: default;
  transition: border-color 0.3s ease;
}

/* Anchored beside the apex star — right side */
.moon-tracker.at-trunk {
  position: absolute;
  top: calc(100vw * 55 / 1200);
  left: calc(50% + 100vw * 52 / 1200);
  right: auto;
  transform: translateY(-50%);
  z-index: 2;
}

.moon-tracker:hover { border-color: var(--ocean-dark); }

.moon-emoji { font-size: 1rem; line-height: 1; }

.moon-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.moon-phase-name {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean-light);
  white-space: nowrap;
}

.moon-illumination {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ── BRISBANE WEATHER TRACKER ── */
.weather-tracker {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(4, 6, 14, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  cursor: default;
  transition: border-color 0.3s ease;
}

/* Anchored beside the apex star — left side */
.weather-tracker.at-trunk {
  position: absolute;
  top: calc(100vw * 55 / 1200);
  left: auto;
  right: calc(50% + 100vw * 52 / 1200);
  transform: translateY(-50%);
  z-index: 2;
}

.weather-tracker:hover { border-color: var(--jade-dark); }

.weather-icon { font-size: 0.85rem; line-height: 1; }

.weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.weather-condition {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade);
  white-space: nowrap;
}

.weather-details {
  font-size: 0.54rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tree-line       { stroke: #112a3a; fill: none; stroke-linecap: round; stroke-width: 1; }
.tree-line-bright{ stroke: #1a4a60; fill: none; stroke-linecap: round; stroke-width: 1.2; }

/* root shadow base — dark blurred duplicate for 3D depth */
.root-shadow { fill: none; stroke: #000; stroke-linecap: round; opacity: 0.32; }
/* root highlight — thin bright edge for cylindrical sheen */
.root-hl     { fill: none; stroke-linecap: round; opacity: 0.28; }

.root-path-1 { stroke: #8b4515; opacity: 0.68; }
.root-path-2 { stroke: #6b3010; opacity: 0.62; }
.root-path-3 { stroke: #7a3d1a; opacity: 0.62; }
.root-path-4 { stroke: #5a2a0d; opacity: 0.72; }
.root-path-5 { stroke: #9b5520; opacity: 0.38; }

.leaf { fill: #1a4a60; opacity: 0.7; }
.canopy-glow { fill: rgba(26,127,168,0.12); filter: blur(8px); }

.tree-canopy {
  transform-origin: 600px 320px;
  animation: treeSway 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes treeSway {
  0%, 100% { transform: rotate(-0.25deg); }
  50%       { transform: rotate(0.25deg); }
}

.pulse-drop {
  fill: #4db8d4;
  animation: pulseDrop 3.5s ease-in-out infinite;
}

@keyframes pulseDrop {
  0%, 100% { opacity: 0; r: 1; }
  50%       { opacity: 0.8; r: 2.5; }
}

.drop-1 { fill: #00c896; }
.drop-2 { fill: #4db8d4; }
.drop-3 { fill: #c8a040; }
.drop-4 { fill: #4db8d4; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: contents;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 72px;
  height: auto;
  margin: 0 auto 1.2rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0,200,150,0.4));
  opacity: 0;
  animation: fadeUpLogo 1s ease forwards 0.2s;
}

@keyframes fadeUpLogo {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.45; transform: translateY(0); }
}

.footer-logo-img {
  width: 44px;
  height: auto;
  margin: 0 auto 0.6rem;
  display: block;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(0,200,150,0.2));
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ocean-light);
  font-weight: 700;
  border: 1px solid rgba(77, 184, 212, 0.25);
  background: rgba(77, 184, 212, 0.06);
  padding: 0.3em 0.9em;
  display: inline-block;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.8s;
}

.hero-title .name-dede { color: var(--text); display: block; }
.hero-title .name-lifewater {
  color: var(--ocean-light);
  text-shadow: 0 0 40px var(--ocean-glow), 0 0 80px rgba(26, 127, 168, 0.15);
  display: block;
}

.hero-quote {
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

.hero-quote span { color: var(--jade); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: fadeUp 1s ease both 1.4s;
}

.btn-primary {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid var(--jade);
  color: var(--jade);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jade);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-primary:visited { color: var(--jade); text-decoration: none; }
.btn-primary:hover { color: var(--bg-primary); box-shadow: 0 0 20px var(--jade-glow); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-youtube {
  padding: 0.7rem 1.8rem;
  background: #141414;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-youtube:visited { color: #FFFFFF; text-decoration: none; }
.btn-youtube:hover {
  background: #FFFFFF;
  color: #141414;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:visited { color: var(--text-dim); text-decoration: none; }
.btn-secondary:hover { border-color: var(--ocean); color: var(--ocean-light); box-shadow: 0 0 20px var(--ocean-glow); }

.btn-mantra {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--jade);
  color: var(--jade);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.btn-mantra:visited { color: var(--jade); text-decoration: none; }
.btn-mantra:hover {
  background: var(--jade);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--jade-glow);
}

.btn-archive {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid #8B5CF6;
  color: #8B5CF6;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.btn-archive:visited { color: #8B5CF6; text-decoration: none; }
.btn-archive:hover {
  background: #8B5CF6;
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-sound {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid #E91E63;
  color: #E91E63;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.btn-sound:visited { color: #E91E63; text-decoration: none; }
.btn-sound:hover {
  background: #E91E63;
  color: #fff;
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}

.btn-icon {
  display: block;
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ocean), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── SECTIONS ── */
section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

section .about-grid,
section .cards-grid,
section .contact-grid {
  text-align: left;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title span { color: var(--ocean-light); }

.section-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--jade), transparent);
  margin: 0 auto 2rem;
}

/* ── SECTION SEPARATORS ── */
.section-sep {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 0;
}
.section-sep::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 18%,
    var(--border-glow) 50%,
    var(--border) 82%,
    transparent 100%
  );
}
.section-sep::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-glow);
}
.section-sep--jade::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 150, 0.05) 18%,
    rgba(0, 200, 150, 0.15) 50%,
    rgba(0, 200, 150, 0.05) 82%,
    transparent 100%
  );
}
.section-sep--jade::after { background: rgba(0, 200, 150, 0.28); }

/* ── HERO INTERNAL RULE ── */
.hero-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 1.4rem auto;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p { color: var(--text-dim); margin-bottom: 1.2rem; font-size: 1rem; }
.about-text p strong { color: var(--jade); font-weight: 600; }

.about-pillars { display: flex; flex-direction: column; gap: 1rem; }

.pillar {
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ocean);
  transition: all 0.3s ease;
}

.pillar:hover {
  border-left-color: var(--jade);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.pillar h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--ocean-light);
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.pillar p { font-size: 0.82rem; color: var(--text-muted); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.6rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--ocean), var(--jade));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.4), 0 0 18px var(--ocean-glow);
}

.card:hover::before { transform: scaleX(1); }

.card-tag { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jade); margin-bottom: 0.7rem; }
.card h3 { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.7rem; line-height: 1.4; }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-read-more { color: var(--ocean-light); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--ocean-dark);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(26,127,168,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-section p { color: var(--text-dim); max-width: 500px; margin: 0 auto 2rem; font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-right: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--ocean); }

.newsletter-form button {
  padding: 0.8rem 1.4rem;
  background: var(--jade);
  border: none;
  color: var(--bg-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--jade-dark); box-shadow: 0 0 18px var(--jade-glow); }
.newsletter-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.9rem; }

/* ── FOOTER ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem 2rem;
  text-align: center;
}

.footer-logo { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.footer-logo span { color: var(--jade); }
.footer-tagline { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }

.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--jade); }

.footer-bottom { font-size: 0.7rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1.2rem; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 8rem 3rem 4rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(26,127,168,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.blog-main .card { margin-bottom: 1.25rem; }

.blog-sidebar h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: var(--ocean-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  padding: 0.28rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover { border-color: var(--jade); color: var(--jade); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.5rem; }

.contact-info h3 { font-family: 'Cinzel', serif; font-size: 0.95rem; color: var(--ocean-light); margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.contact-detail a { color: var(--jade); text-decoration: none; transition: color 0.3s ease; }
.contact-detail a:hover { color: var(--jade-dark); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 2px var(--ocean-glow);
}

.form-group select option { background: var(--bg-card); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.visible { opacity: 1; transform: translateY(0); will-change: auto; }

/* ── BUY ME A COFFEE ── */
.btn-coffee {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid #f4b400;
  color: #f4b400;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-coffee:visited { color: #f4b400; text-decoration: none; }
.btn-coffee:hover {
  background: #f4b400;
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(244,180,0,0.3);
}

@keyframes verse-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(77,184,212,0.35), 0 0 22px rgba(77,184,212,0.18); }
  50%       { text-shadow: 0 0 16px rgba(77,184,212,0.65), 0 0 38px rgba(77,184,212,0.3); }
}

.hero-verse {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(110, 210, 235, 0.88);
  line-height: 1.7;
  margin-top: 32px;
  text-align: center;
  animation: verse-glow 4s ease-in-out infinite;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

.verse-ref {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(77, 184, 212, 0.58);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* ── HERO LATEST POST ── */
.hero-latest {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(12, 21, 38, 0.25);
  border: 1px solid rgba(26, 56, 80, 0.4);
  border-radius: 8px;
  text-align: center;
}

.hero-latest-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 10px;
}

.hero-latest-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.hero-latest-series {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean-light);
  font-weight: 500;
}

.hero-latest-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 4px 0;
  transition: color 0.2s;
}

.hero-latest-link:hover .hero-latest-title { color: var(--jade); }

.hero-latest-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.btn-wip {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid #c87c2a;
  color: #c87c2a;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-wip:visited { color: #c87c2a; text-decoration: none; }
.btn-wip:hover {
  background: rgba(200, 124, 42, 0.12);
  border-color: #ef9f27;
  color: #ef9f27;
  box-shadow: 0 0 20px rgba(200, 124, 42, 0.25);
}

/* ── VIDEO CARDS ── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--bg-primary);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-embed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.video-embed-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--ocean), var(--jade));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}
.video-embed-card:hover { border-color: var(--border-glow); box-shadow: 0 10px 35px rgba(0,0,0,0.4), 0 0 18px var(--ocean-glow); }
.video-embed-card:hover::before { transform: scaleX(1); }
.video-card-body { padding: 1.2rem 1.4rem; }
.video-card-body .card-tag { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jade); margin-bottom: 0.5rem; }
.video-card-body h3 { font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; line-height: 1.4; }
.video-card-body .card-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

.video-thumb-card { padding: 0; }
.video-thumb-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-primary);
}
.video-thumb-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
  filter: brightness(0.75);
}
.video-thumb-card:hover .video-thumb-wrapper img { transform: scale(1.04); filter: brightness(1); }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: rgba(0,200,150,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--bg-primary);
  transition: all 0.3s ease;
  padding-left: 3px;
}
.video-thumb-card:hover .play-btn { background: var(--jade); box-shadow: 0 0 20px var(--jade-glow); transform: translate(-50%, -50%) scale(1.12); }
.video-thumb-card .card-tag,
.video-thumb-card h3,
.video-thumb-card p,
.video-thumb-card .card-meta { padding: 0 1.4rem; }
.video-thumb-card .card-tag { padding-top: 1.2rem; margin-bottom: 0.5rem; }
.video-thumb-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.video-thumb-card .card-meta { padding-bottom: 1.2rem; }

/* ── LEAF CANVAS (floating leaves from logo) ── */
#leaf-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  will-change: contents;
}

/* ── VANTA HERO BACKGROUND ──
   Fixed at root level so it sits between star-canvas (z:-1) and content (z:1)
   — no stacking context parent to isolate the screen blend. */
#vanta-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent !important;
}

/* Screen blend: jade/ocean birds glow additively into the starfield below */
#vanta-hero canvas {
  mix-blend-mode: screen !important;
  background: transparent !important;
}

/* ── SVG LEAF SHAPES ── */
.leaf-shapes .leaf {
  fill: #1a4a60;
  opacity: 0.72;
}

.leaf-shapes .leaf-alt {
  fill: #00c896;
  opacity: 0.60;
}

.leaf-shapes .leaf-apex {
  fill: #00c896;
  opacity: 0.85;
  filter: drop-shadow(0 0 3px rgba(0,200,150,0.5));
}

/* ── GROWING LOGO BRANCHES ── */
.logo-branch-jade {
  opacity: 0.75;
}

.logo-branch-ocean {
  opacity: 0.60;
}

/* ── 3D PERSPECTIVE CONTAINER for SVG tree ── */
#page-tree {
  perspective: 1200px;
}

#page-tree-svg {
  transform-origin: top center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Always show the nav bar on mobile so the hamburger is accessible */
  nav {
    padding: 0 1.25rem;
    transform: translateY(0);
  }
  /* Logo: allow flex shrinking so it never overflows into the hamburger on narrow screens */
  .nav-logo {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
  }
  /* Hamburger: never give up space — logo shrinks before the toggle does */
  .nav-toggle { flex-shrink: 0; }

  /* Hide moon + weather trackers on mobile — nav always visible, trunk-top overlaps */
  .moon-tracker, .weather-tracker { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(4, 6, 14, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  /* Hamburger toggle controls the dropdown exclusively */
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  /* Hide nav pipes in vertical dropdown — they'd read as horizontal bars */
  .nav-links li + li::before { display: none; }

  /* Layout */
  .about-grid, .blog-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 5rem 1.25rem 3rem; }
  .newsletter-section { padding: 2.5rem 1.25rem; }

  /* Hero: let it grow to fit all content instead of clipping at 100vh */
  .hero { height: auto; min-height: 100vh; min-height: 100svh; padding-top: 80px; padding-bottom: 3rem; align-items: flex-start; }
  .hero-content { padding: 1.25rem; }
  .hero-logo { width: 52px; margin-bottom: 0.8rem; }
  /* CTA: 2-column grid on mobile so buttons don't stack into a tower */
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; max-width: 360px; margin: 0 auto 0.75rem; }
  .hero-cta a { width: 100%; max-width: none; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .hero-verse { font-size: 1rem; margin-top: 1rem; line-height: 1.5; }

  /* Stop expensive SVG animations on mobile */
  .tree-canopy { animation: none; }
  .root-shadow { display: none; }
  .light-beam { display: none; }
  #apex-star { animation: none !important; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }

  /* Forms */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid var(--border-glow); }
  .contact-form { gap: 1rem; }

  /* Tree: reduce root opacity on mobile for performance */
  #page-tree { opacity: 0.6; }
  .section-node, .section-node-outer { display: none; }
  /* Stop SVG SMIL drop animations on mobile */
  .drop-1, .drop-2, .drop-3, .drop-4, .pulse-drop { display: none; }

  /* Footer */
  footer { padding: 3rem 1.25rem 2rem; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 12vw, 3rem); }
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .btn-primary, .btn-secondary, .btn-youtube, .btn-mantra, .btn-archive, .btn-sound, .btn-coffee, .btn-wip { padding: 0.55rem 1rem; font-size: 0.75rem; }
  section { padding: 2.5rem 1rem; }
  .newsletter-section { padding: 2rem 1rem; }
  .pillar { padding: 1rem; }
  /* Verse and latest post take too much space on very small screens */
  .hero-verse { display: none; }
  .hero-latest { display: none; }
}

/* Disable sticky hover states on touch — prevents repaint loops and GPU layer thrash */
@media (hover: none) and (pointer: coarse) {
  .card:hover { transform: none; box-shadow: none; }
  .card:hover::before { transform: scaleX(0); }
  .pillar:hover { transform: none; background: var(--bg-card); border-left-color: var(--ocean); }
  .btn-primary:hover { color: var(--jade); box-shadow: none; }
  .btn-primary:hover::before { transform: translateX(-100%); }
  .video-thumb-card:hover .video-thumb-wrapper img { transform: none; filter: brightness(0.75); }
  .video-thumb-card:hover .play-btn { transform: translate(-50%, -50%); box-shadow: none; background: rgba(0,200,150,0.85); }
}
