:root {
  --root-deep: #0F2A1D;
  --forest: #1F4D2B;
  --gold: #C9A84B;
  --gold-soft: #E8C870;
  --sky: #A8D8F0;
  --sky-soft: #D5EAF5;
  --mist: #E8F4F8;
  --paper: #FBFEFF;
  --line: rgba(31, 77, 43, 0.12);
  --shadow: 0 1px 2px rgba(15, 42, 29, 0.04), 0 8px 24px rgba(15, 42, 29, 0.06);

  --serif: 'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans:  'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace;
  --mono:  'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--root-deep);
  background: #020204;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(25, 10, 50, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(5, 15, 35, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 40%, rgba(10, 30, 15, 0.20) 0%, transparent 50%);
  background-attachment: scroll;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero / Header ───────────────────────────── */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(201, 168, 75, 0.1);
  border: 1px solid rgba(201, 168, 75, 0.25);
  border-radius: 100px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 75, 0.2);
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #d4e8c8;
  margin-bottom: 24px;
}

h1 em {
  font-style: italic;
  color: #a0c890;
  font-weight: 400;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: #b0cc9a;
  line-height: 1.4;
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: #d0e4c0;
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #90b880;
  margin-top: 6px;
}

/* ── Wave Divider ────────────────────────────── */
.wave-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 56px auto 32px;
  gap: 14px;
  max-width: 600px;
}

.wave-divider .line {
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* ── Filter Bar ──────────────────────────────── */
.filter-bar {
  max-width: 980px;
  margin: 0 auto 48px;
  padding: 0 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--forest);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--root-deep);
  font-weight: 600;
}

/* Mantra Series — jade forest green */
.filter-btn[data-region="mantra"]:hover {
  border-color: #2D6B42;
  color: #2D6B42;
}
.filter-btn[data-region="mantra"].active {
  background: #1F4D2B;
  border-color: #1F4D2B;
  color: #E8F4EE;
}

/* Sound Drivez — cherry pink */
.filter-btn[data-region="sound"]:hover {
  border-color: #E91E63;
  color: #E91E63;
}
.filter-btn[data-region="sound"].active {
  background: #E91E63;
  border-color: #E91E63;
  color: #fff;
}

/* Web Dev — code green */
.filter-btn[data-region="web-dev"]:hover {
  border-color: #5FBE3E;
  color: #5FBE3E;
}
.filter-btn[data-region="web-dev"].active {
  background: #5FBE3E;
  border-color: #5FBE3E;
  color: #fff;
}

/* Reflectionz — signal red */
.filter-btn[data-region="reflectionz"]:hover {
  border-color: #CC2222;
  color: #e8484b;
}
.filter-btn[data-region="reflectionz"].active {
  background: #CC2222;
  border-color: #CC2222;
  color: #fff;
}

/* Body Archive sections — deep red */
.filter-btn[data-region="neck"]:hover,
.filter-btn[data-region="traps"]:hover,
.filter-btn[data-region="shoulders"]:hover,
.filter-btn[data-region="chest"]:hover,
.filter-btn[data-region="back"]:hover,
.filter-btn[data-region="arms"]:hover,
.filter-btn[data-region="core"]:hover,
.filter-btn[data-region="legs"]:hover {
  border-color: #8B1515;
  color: #8B1515;
}
.filter-btn[data-region="neck"].active,
.filter-btn[data-region="traps"].active,
.filter-btn[data-region="shoulders"].active,
.filter-btn[data-region="chest"].active,
.filter-btn[data-region="back"].active,
.filter-btn[data-region="arms"].active,
.filter-btn[data-region="core"].active,
.filter-btn[data-region="legs"].active {
  background: #8B1515;
  border-color: #8B1515;
  color: #F5E6E6;
}

.filter-count {
  margin-left: 6px;
  opacity: 0.6;
  font-size: 10px;
}

/* ── Archive List Layout ─────────────────────── */
.archive-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 26px;
  align-items: start; /* let each scroll hang to its own natural length */
}

/* ── Unravelled Scrolls ──────────────────────────
   Each series column is now an aged parchment scroll: a wooden dowel rod
   rolled across the top and bottom (::before / ::after), an aged-paper body
   tinted at the head with the series accent, and sepia ink for the titles.
   Pure CSS — no images, no extra requests, structure unchanged. */
.series-column {
  --accent: rgba(120, 90, 50, 0.12);   /* head wash, per series */
  --accent-ink: #5a4426;               /* header + hover ink, per series */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 6px 24px;
  padding: 40px 20px 44px;
  border-radius: 3px;
  color: #2c2216;
  background:
    /* foxing — small age-spot specks scattered across the sheet */
    radial-gradient(circle 7px at 17% 21%, rgba(108, 68, 30, 0.18), transparent 70%),
    radial-gradient(circle 4px at 73% 31%, rgba(120, 75, 34, 0.16), transparent 72%),
    radial-gradient(circle 9px at 41% 57%, rgba(92, 58, 26, 0.15), transparent 73%),
    radial-gradient(circle 4px at 85% 63%, rgba(110, 70, 30, 0.18), transparent 70%),
    radial-gradient(circle 6px at 27% 79%, rgba(98, 60, 26, 0.16), transparent 73%),
    radial-gradient(circle 5px at 61% 88%, rgba(114, 72, 32, 0.15), transparent 73%),
    radial-gradient(circle 3px at 52% 18%, rgba(110, 70, 30, 0.16), transparent 72%),
    /* irregular tea / water stains */
    radial-gradient(ellipse 55% 22% at 30% 8%, rgba(150, 108, 56, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 72%, rgba(120, 84, 44, 0.17), transparent 62%),
    radial-gradient(ellipse 72% 40% at 50% 102%, rgba(86, 56, 28, 0.24), transparent 60%),
    /* per-series head wash */
    radial-gradient(ellipse 80% 26% at 50% 0%, var(--accent), transparent 62%),
    /* weathered edge vignette */
    radial-gradient(ellipse 108% 104% at 50% 48%, transparent 58%, rgba(64, 41, 18, 0.28) 100%),
    /* cross-hatched paper fibre */
    repeating-linear-gradient(90deg, rgba(120, 90, 50, 0.05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(0deg, rgba(120, 90, 50, 0.035) 0 3px, transparent 3px 9px),
    /* uneven tea-stained base tone */
    linear-gradient(168deg, #e8dab4 0%, #e1d1a4 38%, #d9c795 70%, #d3bf8b 100%);
  border-left: 1px solid rgba(96, 64, 30, 0.42);
  border-right: 1px solid rgba(96, 64, 30, 0.42);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    inset 0 16px 20px -12px rgba(66, 42, 18, 0.62),   /* top curl shade */
    inset 0 -16px 20px -12px rgba(66, 42, 18, 0.62),  /* bottom curl shade */
    inset 0 0 64px rgba(78, 50, 22, 0.22);            /* overall aged darkening */
}

/* The rolled dowel rods, top and bottom */
.series-column::before,
.series-column::after {
  content: '';
  position: absolute;
  left: -9px;
  right: -9px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(180deg,
    #5f4527 0%, #856037 16%, #b48d54 38%, #946f3e 60%, #6b4d2a 80%, #46311b 100%);
  box-shadow:
    0 3px 7px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 224, 170, 0.40),
    inset 0 -2px 3px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.series-column::before { top: -8px; }
.series-column::after  { bottom: -8px; }

/* Per-series identity — head wash + ink colour */
.series-column.mantra      { --accent: rgba(45, 107, 66, 0.18);  --accent-ink: #235e34; }
.series-column.body        { --accent: rgba(150, 30, 30, 0.15);  --accent-ink: #9a2424; }
.series-column.sound       { --accent: rgba(214, 18, 90, 0.15);  --accent-ink: #bb1158; }
.series-column.webdev      { --accent: rgba(20, 110, 170, 0.15); --accent-ink: #14629c; }
.series-column.reflectionz { --accent: rgba(204, 34, 34, 0.16);  --accent-ink: #c0231f; }

.series-header {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
  padding: 0 0 14px 0;
  margin: 0 -2px 18px;
  border-bottom: 1.5px solid rgba(120, 90, 50, 0.40);
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-ink);
  text-shadow: 0 1px 0 rgba(255, 250, 236, 0.55);
}

.series-column.mantra .series-header::before { content: '◆ '; margin-right: 4px; }
.series-column.body .series-header::before { content: '⚙ '; margin-right: 4px; }
.series-column.sound .series-header::before { content: '♪ '; margin-right: 4px; }
.series-column.webdev .series-header::before { content: '≡ '; margin-right: 4px; }
.series-column.reflectionz .series-header::before { content: '✎ '; margin-right: 4px; }

/* Season break divider — sits between S1 and S2 cards */
.season-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 0 2px;
}
.season-divider::before,
.season-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(120, 90, 50, 0.45), transparent);
}
.season-divider-label {
  font-family: var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink, #5a4426);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.85;
}

.article-card {
  text-decoration: none;
  color: #4a3a24;
  position: relative;
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(120, 90, 50, 0.22);
  transition: all 0.2s;
  border-radius: 5px;
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

.article-card:last-child {
  border-bottom: none;
}

/* Hover: a faint inked wash + the series accent ink, on every scroll */
.article-card:hover {
  background: rgba(120, 90, 50, 0.12);
  color: var(--accent-ink, #5a4426);
  transform: translateX(2px);
}

/* Bonus tile — Claude Design collab. A wax-sealed note pinned to the
   parchment so it reads as a distinct chapter, not a fifth episode. */
.series-column.mantra .article-card.bonus-card {
  background: linear-gradient(150deg, rgba(170, 55, 45, 0.12), rgba(150, 40, 40, 0.06));
  border: 1px solid rgba(150, 45, 40, 0.42);
  border-radius: 6px;
  margin-top: 8px;
  padding: 16px 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 230, 0.45);
}
.series-column.mantra .article-card.bonus-card:hover {
  background: linear-gradient(150deg, rgba(195, 70, 55, 0.20), rgba(165, 48, 45, 0.12));
  border-color: rgba(180, 70, 60, 0.60);
}
.series-column.mantra .article-card.bonus-card .card-title { color: #8a2a1a; }
.series-column.mantra .article-card.bonus-card:hover .card-title { color: #b0331c; }

.article-card.coming-soon {
  opacity: 0.42;
  animation-name: cardRevealDim;
  cursor: default;
  pointer-events: none;
}

/* ── Card inner elements ── */
.card-num {
  display: none;
}

.card-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0em;
  color: #3a2c19;
  margin: 0;
  text-align: center;
}
.article-card:hover .card-title { color: var(--accent-ink, #5a4426); }

.card-region {
  display: none;
}

.card-desc {
  display: none;
}

.card-meta {
  display: none;
}

.card-rating {
  display: none;
}

.card-arrow {
  display: none;
}


/* Hidden state for filtered cards */
.article-card[data-hidden="true"] { display: none; }

/* ── Footer ── */
footer {
  background: #090308;
  border-top: 1px solid #1a0a10;
  padding: 2.5rem 3rem 2rem;
  text-align: center;
}
.footer-logo-img { width: 44px; height: auto; margin: 0 auto 0.6rem; display: block; opacity: 0.8; filter: drop-shadow(0 0 6px rgba(212,175,55,0.2)); }
.footer-logo { font-family: 'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 1.3rem; font-weight: 700; color: #dde6f4; margin-bottom: 0.4rem; }
.footer-logo span { color: #D4AF37; }
.footer-tagline { font-size: 0.78rem; color: #7a6570; 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: #7a6570; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-links a:hover { color: #D4AF37; }
.footer-coffee-link { color: #f4b400 !important; }
.footer-coffee-link:hover { color: #D4AF37 !important; }
.footer-bottom { font-size: 0.7rem; color: #7a6570; border-top: 1px solid #1a0a10; padding-top: 1.2rem; }
.copyright-disclaimer { font-size: 0.68rem; color: #7a6570; font-style: italic; margin: 1rem auto 1.5rem; max-width: 560px; line-height: 1.6; }

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

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardRevealDim {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.5; transform: translateY(0); }
}

.hero > * { animation: fadeUp 0.6s ease-out backwards; }
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.12s; }
.hero > *:nth-child(3) { animation-delay: 0.19s; }
.hero > *:nth-child(4) { animation-delay: 0.26s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 32px 24px 24px; }
  .hero-stats { gap: 20px; }
  .filter-bar { padding: 0 24px; gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
  .filter-btn { padding: 6px 12px; font-size: 11px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px 60px; gap: 26px 18px; }
  .series-column { padding: 34px 16px 38px; }
  .series-header { font-size: 16px; padding: 0 0 14px; margin-bottom: 16px; }
  .article-card { padding: 12px 10px; font-size: 13px; }
  .card-title { font-size: 13px; line-height: 1.4; }
}

@media (max-width: 640px) {
  .hero { padding: 24px 20px 20px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat { text-align: center; }
  .stat-num { font-size: 32px; }
  .filter-bar { padding: 0 20px; gap: 8px; }
  .filter-btn { padding: 6px 10px; font-size: 10px; }
  .archive-grid { grid-template-columns: 1fr; padding: 0 20px 60px; gap: 30px; }
  .series-column { padding: 34px 18px 38px; margin: 8px 6px 16px; }
  .series-header { font-size: 16px; padding: 0 0 14px; margin-bottom: 14px; }
  .article-card { padding: 11px 10px; font-size: 13px; border-bottom: 1px solid rgba(120, 90, 50, 0.18); }
  .card-title { font-size: 13px; line-height: 1.4; text-align: center; }
}

/* ── SIDE DOCK ── */
.side-dock { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 0.4rem; background: rgba(4,6,14,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(26,127,168,0.22); border-radius: 18px; padding: 0.65rem 0.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 28px rgba(0,200,150,0.05); }
.dock-item { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; text-decoration: none; color: rgba(139,160,180,0.65); transform-origin: right center; transition: color 0.22s ease, background 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease; outline: none; }
.dock-item::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(ellipse at center, rgba(0,200,150,0.26) 0%, transparent 72%); opacity: 0; transition: opacity 0.25s ease; }
.dock-item:hover::before, .dock-item.active::before { opacity: 1; }
.dock-item:hover { color: #00c896; background: rgba(0,200,150,0.1); transform: scale(1.18); box-shadow: 0 0 22px rgba(0,200,150,0.48), 0 0 9px rgba(0,200,150,0.3), 0 4px 14px rgba(0,0,0,0.32); }
.dock-item:focus-visible { outline: 2px solid #00c896; outline-offset: 2px; }
.dock-item.active { color: #00c896; background: rgba(0,200,150,0.08); box-shadow: 0 0 12px rgba(0,200,150,0.22); }
.dock-item.active::after { content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: #00c896; box-shadow: 0 0 7px rgba(0,200,150,0.9); }
.dock-icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.dock-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(8px); background: rgba(4,6,14,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #dde6f4; font-family: 'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.26rem 0.62rem; border-radius: 6px; border: 1px solid rgba(26,127,168,0.28); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.38); }
.dock-item:hover .dock-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 768px) {
  .side-dock { right: 0.55rem; padding: 0.5rem 0.35rem; gap: 0.3rem; border-radius: 14px; }
  .dock-item { width: 36px; height: 36px; border-radius: 10px; }
  .dock-item:hover { transform: scale(1.1); }
  .dock-icon { width: 17px; height: 17px; }
  .dock-label { display: none; }
  .dock-item.active::after { width: 3px; height: 3px; bottom: 2px; }
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
}
@media (hover: none) and (pointer: coarse) {
  .article-card:hover { background: transparent; transform: none; }
  .article-card:hover .card-title { color: #3a2c19; }
}
@media (prefers-reduced-motion: reduce) {
  .article-card { animation: none; }
}

#canopy-glass {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 40px), 1160px);
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(20,60,30,.05) 20%, rgba(30,80,40,.07) 50%, rgba(20,60,30,.05) 80%, rgba(0,0,0,0) 100%);
  border-left: 1px solid rgba(30,80,40,.07);
  border-right: 1px solid rgba(30,80,40,.07);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) { #canopy-glass { display: none; } }
@media (max-width: 768px) {
  footer { padding: 2.5rem 1.25rem 2rem; padding-right: 70px; }
}
nav, article, main, header, footer, .hero, .filter-bar, .archive-grid, .wave-divider { position: relative; z-index: 1; }

/* ════ BACKGROUND ANIMATION SYSTEM ════ */
#dlw-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg,
    #071510 0%,
    #0e2718 15%,
    #1a4228 35%,
    #3d6040 55%,
    #7a8a5a 70%,
    #c4b890 85%,
    #e4d8b4 100%
  );
}
#page-tree { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; pointer-events: none; z-index: 0; contain: layout style; }
#page-tree svg { width: 100%; display: block; }
#archive-dragon-scene { position: absolute; top: 260px; left: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; opacity: 0.45; }
#archive-dragon-scene svg { width: 100%; display: block; overflow: visible; }
@media (max-width: 768px) { #archive-dragon-scene { display: none; } }
#dlw-stars { position: absolute; inset: 0; pointer-events: none; }
.dlw-star {
  position: absolute;
  border-radius: 50%;
  background: #000000;
  animation: dlw-twinkle ease-in-out infinite !important;
}
@keyframes dlw-twinkle {
  0%, 100% { opacity: var(--sop); }
  50%       { opacity: calc(var(--sop) * 0.12); }
}
#dlw-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dlw-leaf { position: absolute; top: -60px; pointer-events: none; will-change: transform, opacity; opacity: 0; animation: dlw-fall linear infinite !important; }
.dlw-leaf svg { display: block; overflow: visible; }
@keyframes dlw-fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg) scale(.88); opacity: 0; }
  8%   { opacity: var(--lop); }
  85%  { opacity: calc(var(--lop) * .82); }
  100% { transform: translateY(110vh) translateX(var(--dx)) rotate(var(--sp)) scale(.94); opacity: 0; }
}
.dlw-leaf:nth-child(1)  { left: 4%;  animation-duration: 12s   !important; animation-delay: 0s;    --dx:  50px; --sp:  218deg; --lop: .78; }
.dlw-leaf:nth-child(2)  { left: 15%; animation-duration: 15s   !important; animation-delay: 2.4s;  --dx: -44px; --sp: -194deg; --lop: .68; }
.dlw-leaf:nth-child(3)  { left: 26%; animation-duration: 11s   !important; animation-delay: 4.8s;  --dx:  66px; --sp:  272deg; --lop: .72; }
.dlw-leaf:nth-child(4)  { left: 39%; animation-duration: 9s    !important; animation-delay: 1.3s;  --dx: -58px; --sp: -258deg; --lop: .76; }
.dlw-leaf:nth-child(5)  { left: 52%; animation-duration: 16s   !important; animation-delay: 3.2s;  --dx:  40px; --sp:  198deg; --lop: .65; }
.dlw-leaf:nth-child(6)  { left: 65%; animation-duration: 13s   !important; animation-delay: 6.1s;  --dx: -52px; --sp: -308deg; --lop: .70; }
.dlw-leaf:nth-child(7)  { left: 78%; animation-duration: 10s   !important; animation-delay: 7.8s;  --dx:  46px; --sp:  234deg; --lop: .78; }
.dlw-leaf:nth-child(8)  { left: 10%; animation-duration: 17s   !important; animation-delay: 9.2s;  --dx: -46px; --sp: -222deg; --lop: .62; }
.dlw-leaf:nth-child(9)  { left: 70%; animation-duration: 12.5s !important; animation-delay: 0.7s;  --dx: -68px; --sp: -266deg; --lop: .72; }
.dlw-leaf:nth-child(10) { left: 34%; animation-duration: 10.5s !important; animation-delay: 6.6s;  --dx:  72px; --sp:  292deg; --lop: .68; }
.dlw-leaf:nth-child(11) { left: 87%; animation-duration: 14s   !important; animation-delay: 10.5s; --dx:  34px; --sp:  185deg; --lop: .70; }
.dlw-leaf:nth-child(12) { left: 47%; animation-duration: 9.5s  !important; animation-delay: 12s;   --dx: -50px; --sp: -338deg; --lop: .62; }

.canopy-glow { fill: rgba(10,35,12,0.12); filter: blur(8px); }
.tree-line path { stroke: rgba(15,38,18,0.30); stroke-width: 0.9; fill: none; }
.leaf-shapes .leaf       { fill: #000000; opacity: 0.45; }
.leaf-shapes .leaf-alt   { fill: #080808; opacity: 0.38; }
.leaf-shapes .leaf-apex  { fill: #050505; opacity: 0.55; }
.leaf-shapes .leaf-dense { fill: #000000; opacity: 0.32; }
@keyframes leafFlicker1 { 0%,100%{opacity:.45;}18%{opacity:.60;}42%{opacity:.32;}70%{opacity:.55;} }
@keyframes leafFlicker2 { 0%,100%{opacity:.38;}25%{opacity:.28;}55%{opacity:.55;}82%{opacity:.40;} }
@keyframes leafFlicker3 { 0%,100%{opacity:.50;}15%{opacity:.62;}48%{opacity:.36;}78%{opacity:.65;} }
@keyframes leafFlicker4 { 0%,100%{opacity:.42;}30%{opacity:.55;}58%{opacity:.30;}85%{opacity:.50;} }
.leaf-shapes use           { animation: leafFlicker1 6.0s ease-in-out infinite; }
.leaf-shapes use:nth-child(7n+1) { animation: leafFlicker2 5.3s ease-in-out 0.7s  infinite; }
.leaf-shapes use:nth-child(7n+2) { animation: leafFlicker3 7.1s ease-in-out 1.9s  infinite; }
.leaf-shapes use:nth-child(7n+3) { animation: leafFlicker1 4.8s ease-in-out 3.2s  infinite; }
.leaf-shapes use:nth-child(7n+4) { animation: leafFlicker4 6.5s ease-in-out 0.4s  infinite; }
.leaf-shapes use:nth-child(7n+5) { animation: leafFlicker2 5.9s ease-in-out 2.5s  infinite; }
.leaf-shapes use:nth-child(7n+6) { animation: leafFlicker3 7.4s ease-in-out 1.1s  infinite; }
.star-ring { transform-box: fill-box; transform-origin: center; }
.star-ring-outer { animation: starRingPulse 5s ease-in-out infinite; }
.star-ring-inner { animation: starRingPulse 5s ease-in-out 2.5s infinite; }
@keyframes starRingPulse { 0%,100%{opacity:.55;transform:scale(1);}50%{opacity:0;transform:scale(2);} }
.light-beam { opacity: 0; stroke-linecap: round; }
.lb-main { animation: beamMain 4.5s ease-in-out infinite; }
.lb-soft { animation: beamSoft 4.5s ease-in-out infinite; }
.lb1{animation-delay:0s;}.lb2{animation-delay:0.45s;}.lb3{animation-delay:0.9s;}
.lb4{animation-delay:1.35s;}.lb5{animation-delay:1.8s;}.lb6{animation-delay:0.23s;}
.lb7{animation-delay:0.68s;}.lb8{animation-delay:1.13s;}.lb9{animation-delay:1.58s;}
.lb10{animation-delay:2.25s;}
@keyframes beamMain { 0%,100%{opacity:0;}50%{opacity:0.08;} }
@keyframes beamSoft { 0%,100%{opacity:0;}50%{opacity:0.04;} }
#apex-star { transform-box: fill-box; transform-origin: center; animation: starRotate 32s linear infinite, starBreath 4s ease-in-out infinite; }
#ap-apex-star { transform-box: fill-box; transform-origin: center; animation: starRotate 32s linear infinite, starBreath 4s ease-in-out infinite; }
@keyframes starRotate { to { transform: rotate(360deg); } }
@keyframes starBreath { 0%,100%{opacity:.85;}50%{opacity:1;} }

/* ── Archive Peony + Orbit Zone ── */
.archive-peony-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0 2rem;
  pointer-events: none;
  user-select: none;
}

.archive-peony-svg {
  width: 130px;
  height: 114px;
  overflow: visible;
}

.archive-orbit-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  overflow: visible;
  pointer-events: none;
}

#archive-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.archive-orbit-scene .orbit-letter {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  font-weight: 400;
  color: #FFB7C5;
  transform-origin: 50% 50%;
  text-shadow:
    0 0 12px rgba(255, 126, 168, 0.9),
    0 0 28px rgba(255, 126, 168, 0.45),
    0 0 2px rgba(192, 24, 80, 0.5);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform, opacity;
}

.archive-orbit-scene .orbit-heart {
  color: #D4AF37;
  text-shadow:
    0 0 10px rgba(212, 175, 55, 0.95),
    0 0 24px rgba(212, 175, 55, 0.50),
    0 0 2px rgba(160, 120, 10, 0.6);
}

@media (max-width: 600px) {
  .archive-peony-svg { width: 100px; height: 88px; }
  .archive-orbit-scene { width: 120px; height: 120px; }
  .archive-orbit-scene .orbit-letter { font-size: 0.9rem; }
}
.logo-branch-jade { opacity: 0.45; }
.logo-branch-ocean { opacity: 0.35; }
#page-tree-svg { transform-origin: top center; }
@media (max-width: 768px) { #page-tree { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .dlw-leaf, .dlw-star, .leaf-shapes use, .star-ring-outer, .star-ring-inner, #apex-star, #ap-apex-star, .light-beam { animation: none; }
}

/* Extracted from inline style= attributes */
.xs-0ab87e66 { transform:rotate(-14deg) }
.xs-f4d8da69 { transform:rotate(22deg) }
.xs-2800be6e { transform:rotate(-9deg) }
.xs-dd3d8c18 { transform:rotate(17deg) }
.xs-65e48985 { transform:rotate(-20deg) }
.xs-da74a369 { transform:rotate(5deg) }
.xs-61f0c363 { transform:rotate(-24deg) }
.xs-ba4da705 { transform:rotate(30deg) }
.xs-7b026680 { transform:rotate(-6deg) }
.xs-fa4a6504 { transform:rotate(13deg) }
.xs-1ed2090d { transform:rotate(-18deg) }
.xs-deddea72 { transform:rotate(26deg) }
