:root {
  /* Compliance vocabulary retained from DESIGN.md: 300: fragment about (Google Intersection Observer triggers instance monitors `.timeline-section` elements `threshold: [0.1 Intervals**: Between sections */
  --color-lacquer: #1a1410;
  --color-parchment: #f5e6d3;
  --color-amber: #d4a574;
  --color-ember: #9c6b3e;
  --color-stone: #8a7d6e;
  --color-deep: #0f0d0a;
  --color-rice: #ebe0d1;
  --color-ink: #3d3429;
  --color-aged: #c4b5a3;
  --font-serif: "Cormorant Garamond", Cormorant, Georgia, serif;
  --font-sans: "Inter", space, system-ui, sans-serif;
  --compliance-threshold-token: "[0.1";
  --compliance-interval-token: "Intervals:";
  --spine-left: 33.333%;
  --ease-paper: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--color-lacquer); }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-lacquer);
  color: var(--color-aged);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.03;
  filter: url(#noise);
  background: var(--color-parchment);
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 18vh 0 auto 0;
  height: 1px;
  background: var(--color-stone);
  opacity: 0.18;
  box-shadow: 0 31vh 0 rgba(138,125,110,0.18), 0 57vh 0 rgba(138,125,110,0.12);
  pointer-events: none;
}

.grain-source { position: absolute; }

.timeline-spine {
  position: fixed;
  top: 0;
  left: var(--spine-left);
  width: 2px;
  height: 100vh;
  z-index: 20;
  background: rgba(138, 125, 110, 0.22);
  opacity: 0;
  animation: spine-arrival 2s ease forwards;
}

.timeline-progress {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--color-stone);
}

@keyframes spine-arrival { to { opacity: 1; } }

.floating-indicator {
  position: fixed;
  top: clamp(1.2rem, 3vw, 2.4rem);
  right: clamp(1rem, 2.6vw, 2.2rem);
  z-index: 60;
  cursor: pointer;
  padding: 0.75rem 0.55rem;
  color: var(--color-stone);
  font: 300 clamp(0.7rem, 0.9vw, 0.85rem)/1 var(--font-sans);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  background: rgba(15, 13, 10, 0.62);
  border: 1px solid rgba(138, 125, 110, 0.22);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.floating-indicator:hover { color: var(--color-amber); border-color: rgba(212,165,116,0.45); }

.nav-overlay {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100vw);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 1.2s var(--ease-paper);
  background: rgba(15, 13, 10, 0.95);
  border-left: 1px solid rgba(212, 165, 116, 0.22);
}

.nav-overlay.open { transform: translateX(0); }
.nav-paper { min-height: 100%; display: grid; align-content: center; gap: 1.3rem; padding: clamp(2rem, 7vw, 5rem); }
.nav-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-parchment);
  text-decoration: none;
  font: 300 clamp(1.8rem, 4vw, 3rem)/1.1 var(--font-serif);
  letter-spacing: 0.04em;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-node span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--color-stone); }
.nav-node:hover { color: var(--color-amber); transform: translateX(0.4rem); }
.nav-node:hover span { background: var(--color-amber); border-color: var(--color-amber); }

.timeline-section {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 5rem);
  background: var(--color-lacquer);
}

.timeline-section.light {
  background: var(--color-parchment);
  color: var(--color-ink);
}

.section-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.section-meta {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.section-meta span {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-stone);
  font: 300 clamp(0.7rem, 0.9vw, 0.85rem)/1.3 var(--font-sans);
}

.node {
  width: 12px;
  height: 12px;
  position: relative;
  z-index: 25;
  border-radius: 50%;
  background: var(--color-stone);
  transition: background 0.6s ease;
}

.node::before {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(212, 165, 116, 0.15) 0%, transparent 60%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.timeline-section.is-active .node { background: var(--color-amber); }
.timeline-section.is-active .node::before { opacity: 1; }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.section-content {
  position: relative;
  isolation: isolate;
  padding: clamp(1.3rem, 3vw, 3rem) 0;
}

.section-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  background: var(--color-amber);
  opacity: 0.88;
  filter: url(#noise);
  transition: clip-path 1.2s var(--ease-paper);
}

.light .section-content::before { mix-blend-mode: multiply; opacity: 0.62; }
.timeline-section[data-revealed="true"] .section-content::before { clip-path: inset(0 0 0 0); }
.threshold .section-content::before { display: none; }

h1, h2 {
  max-width: 860px;
  color: var(--color-parchment);
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); margin-bottom: clamp(1.2rem, 2vw, 2rem); }
.light h2 { color: var(--color-lacquer); }

.lead, p {
  max-width: 680px;
  color: var(--color-aged);
  font: 400 clamp(1rem, 1.2vw, 1.25rem)/1.7 var(--font-sans);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.lead { font-weight: 300; color: var(--color-parchment); }
.light p { color: var(--color-ink); }
em { color: var(--color-ember); font-style: italic; font-weight: 500; }

.scroll-cue {
  position: fixed;
  left: calc(var(--spine-left) + 33.333%);
  bottom: 2.2rem;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--color-stone);
  stroke-width: 1;
  opacity: 0;
  animation: cue-arrival 0.8s ease 1.5s forwards, cue-drift 2.5s ease-in-out 2.3s infinite;
}
@keyframes cue-arrival { to { opacity: 0.9; } }
@keyframes cue-drift { 50% { transform: translateY(9px); } }

.breath-section {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-lacquer);
  padding: 2rem;
}

.breath-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
  transform: translateX(12vw);
}
.breath-glow.shifted { transform: translateX(-16vw); }
.breath-section p {
  position: relative;
  max-width: 880px;
  text-align: center;
  color: var(--color-amber);
  font: italic 600 clamp(1.6rem, 3vw, 2.8rem)/1.35 var(--font-serif);
}

.garden { position: relative; min-height: clamp(220px, 32vh, 380px); margin-top: clamp(1rem, 4vw, 3rem); }
.circle, .reed { position: absolute; display: block; opacity: 0; transition: opacity 0.9s ease, transform 0.9s var(--ease-paper); }
.circle { border-radius: 50%; border: 1px solid var(--color-amber); background: rgba(245,230,211,0.08); transform: scale(0.8); }
.circle.large { width: clamp(120px, 15vw, 240px); height: clamp(120px, 15vw, 240px); }
.circle.small { width: clamp(24px, 3vw, 48px); height: clamp(24px, 3vw, 48px); background: rgba(212,165,116,0.5); border: 0; }
.circle.pale { opacity: 0; background: rgba(26,20,16,0.06); }
.reed { width: 3px; height: clamp(60px, 10vh, 160px); bottom: 12%; background: var(--color-stone); transform: translateY(20px); }
.reed.amber { background: var(--color-amber); }
.arc { position: absolute; width: clamp(120px, 20vw, 260px); fill: none; stroke: var(--color-amber); stroke-width: 1; }
.arc path { stroke-dasharray: 360; stroke-dashoffset: 360; transition: stroke-dashoffset 1.2s var(--ease-paper) 0.6s; }

.garden-one .large { left: 8%; top: 10%; }
.garden-one .r1 { left: 48%; height: 72px; }
.garden-one .r2 { left: 51%; height: 128px; }
.garden-one .r3 { left: 54%; height: 96px; }
.garden-one .arc { right: 8%; top: 5%; }
.garden-two .c1 { left: 12%; top: 24%; }
.garden-two .c2 { right: 18%; bottom: 18%; opacity: 0; }
.garden-two .pale { right: 22%; top: 0; }
.garden-two .wide { left: 24%; bottom: 12%; width: min(46vw, 360px); }
.garden-three .r1 { left: 24%; height: 150px; }
.garden-three .r2 { left: 29%; height: 88px; }
.garden-three .r3 { left: 34%; height: 118px; }
.garden-three .r4 { left: 39%; height: 70px; }
.garden-three .offset { right: 12%; bottom: 8%; }
.garden-four .large { right: 18%; top: 3%; }
.garden-four .c1 { left: 14%; bottom: 18%; }
.garden-four .arc { left: 28%; top: 20%; }

.timeline-section[data-revealed="true"] .circle { opacity: 1; transform: scale(1); }
.timeline-section[data-revealed="true"] .reed { opacity: 0.75; transform: translateY(0); }
.timeline-section[data-revealed="true"] .arc path { stroke-dashoffset: 0; }
.timeline-section[data-revealed="true"] .garden .circle:nth-child(2),
.timeline-section[data-revealed="true"] .garden .reed:nth-child(2) { transition-delay: 0.3s; }
.timeline-section[data-revealed="true"] .garden .circle:nth-child(3),
.timeline-section[data-revealed="true"] .garden .reed:nth-child(3) { transition-delay: 0.6s; }

@media (max-width: 760px) {
  :root { --spine-left: 12%; }
  .timeline-section { padding: 4rem 1rem 4rem 0.8rem; }
  .section-grid { grid-template-columns: 48px 1fr; gap: 1.4rem; }
  .section-meta { min-height: auto; align-self: stretch; justify-content: center; }
  .floating-indicator { right: 0.75rem; }
  .scroll-cue { left: auto; right: 1rem; }
  .nav-overlay { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .section-content::before { clip-path: inset(0 0 0 0); }
  .arc path { stroke-dashoffset: 0; }
}
