/* Sage Reflections - Landing
   Polyglot Jungle on a dawn-to-dusk arc:
   loam hero -> golden-hour body -> loam footer.
   Type variables (--font-display, --font-body) come from the per-variant HTML. */

:root {
  /* Polyglot Jungle accent set */
  --pjg-tangerine: #e8854a;
  --pjg-magenta: #a8336a;
  --pjg-royal: #4a2d6e;
  --pjg-teal: #3a6e85;
  --pjg-lime: #87b53e;
  --pjg-loam: #0a1709;
  --pjg-wine: #7a2840; /* deep hibiscus, harmonizes on warm clay hero */

  /* Golden-hour canvas (Polyglot Sol territory) */
  --sun-cream: #f4e6c8;
  --sun-warm: #f0d4a3;
  --sun-deep: #e8b87a;
  --sun-shadow: rgba(74, 45, 110, 0.08);
  --sun-paper: #faf0d9;

  /* Loam canvas */
  --loam: #0a1709;
  --loam-deep: #050a04;
  --loam-mid: #0f1f0d;

  /* Ink layers - context-aware (set per section) */
  --ink-on-dark: #f4ead5;
  --ink-on-dark-dim: rgba(244, 234, 213, 0.74);
  --ink-on-dark-muted: rgba(244, 234, 213, 0.48);
  --ink-on-dark-faint: rgba(244, 234, 213, 0.18);

  --ink-on-light: #2a1a0e;
  --ink-on-light-dim: rgba(42, 26, 14, 0.74);
  --ink-on-light-muted: rgba(42, 26, 14, 0.5);
  --ink-on-light-faint: rgba(42, 26, 14, 0.18);

  --accent: var(--pjg-tangerine);
  --accent-warm: var(--pjg-magenta);
  --accent-cool: var(--pjg-teal);
  --accent-grow: var(--pjg-lime);
  --accent-deep: var(--pjg-royal);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --s-9: 6rem; --s-10: 8rem;

  --t-eyebrow: 0.75rem;
  --t-caption: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.125rem;
  --t-h3: clamp(1.25rem, 2vw, 1.5rem);
  --t-h2: clamp(1.75rem, 3.2vw, 2.6rem);
  --t-display: clamp(2.5rem, 6vw, 4.6rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --reveal-dur: 1100ms;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-on-dark);
  background: var(--sun-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

/* ============================================================
   Display typography
   ============================================================ */
.display, h1, h2, h3 {
  font-family: var(--font-display), serif;
  font-weight: var(--font-display-weight, 600);
  letter-spacing: var(--font-display-tracking, -0.005em);
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body), sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  border-bottom-color: rgba(0, 0, 0, 0.18);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
a:hover, a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================================
   Variant bar (top-right) - removed once Leah picks a typography
   ============================================================ */
.top-bar {
  position: fixed;
  top: var(--s-4);
  right: var(--s-4);
  display: flex;
  gap: var(--s-3);
  z-index: 9999;             /* sit above placed images so they never bury the nav */
  align-items: center;
  opacity: 0;                /* hidden by default - JS adds .show when cursor hovers top-right */
  pointer-events: none;
  transition: opacity 280ms ease;
}
.top-bar.show {
  opacity: 1;
  pointer-events: auto;
}

.variant-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: rgba(10, 23, 9, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(244, 234, 213, 0.18);
  border-radius: 999px;
  font-size: var(--t-caption);
  color: var(--ink-on-dark-dim);
  font-family: var(--font-body), sans-serif;
}
.variant-bar .label {
  color: var(--ink-on-dark-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.variant-bar a {
  border-bottom: none;
  color: var(--ink-on-dark-dim);
}
.variant-bar a.active { color: var(--pjg-tangerine); }

/* ============================================================
   Music control (lives inside .top-bar at top-right, next to variant nav)
   Collapsed: 40px circular button with note icon.
   Expanded: pill with volume slider, mute, and close.
   ============================================================ */
.music {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 4px;
  background: rgba(10, 23, 9, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(244, 234, 213, 0.18);
  border-radius: 999px;
  color: var(--ink-on-dark);
  font-family: var(--font-body), sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: width 380ms var(--ease), background 280ms var(--ease);
}

.music__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease);
}
.music__btn:hover { background: rgba(244, 234, 213, 0.1); color: var(--pjg-tangerine); }
.music__btn:focus-visible { outline: 2px solid var(--pjg-tangerine); outline-offset: 2px; }
.music__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* The note icon pulses subtly when music is playing */
.music[data-playing="true"] .music__btn--toggle svg { animation: note-pulse 2.2s var(--ease) infinite; }
@keyframes note-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Collapsed: only the toggle button shows */
.music__panel {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 380ms var(--ease), opacity 240ms var(--ease) 80ms, padding 380ms var(--ease);
  padding: 0;
}
.music[data-open="true"] .music__panel {
  max-width: 260px;
  opacity: 1;
  padding: 0 var(--s-3) 0 var(--s-2);
}

.music__slider {
  appearance: none;
  -webkit-appearance: none;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 234, 213, 0.22);
  outline: none;
  cursor: pointer;
}
.music__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pjg-tangerine);
  border: 0;
  box-shadow: 0 0 0 3px rgba(232, 133, 74, 0.18);
  cursor: pointer;
}
.music__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pjg-tangerine);
  border: 0;
  box-shadow: 0 0 0 3px rgba(232, 133, 74, 0.18);
  cursor: pointer;
}

.music[data-muted="true"] .music__btn--mute { color: var(--pjg-magenta); }

.music__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .music__slider { width: 90px; }
  .music__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .music, .music__panel, .music__btn { transition: none; }
  .music[data-playing="true"] .music__btn--toggle svg { animation: none; }
}

/* ============================================================
   HERO (warm clay sunrise) - alive, grounded, latina-vibrant
   Polyglot Jungle jewel tones at full strength sit on warm clay.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-9) var(--s-5) var(--s-10);
  gap: var(--s-6);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.20  0 0 0 0 0.10  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(168deg, #fce6c8 0%, #f5d094 32%, #efb87a 62%, #e89a5d 100%);
  background-size: 400px 400px, 100% 100%;
  background-blend-mode: multiply, normal;
  color: var(--ink-on-light);
  overflow: hidden;
}
.hero::before {
  /* Saturated Polyglot Jungle jewel field - the "alive" promise.
     Each gradient lands a hue at near-full strength so the page
     reads abundant, not whispered. */
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse at 22% 24%, rgba(168, 51, 106, 0.40), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 133, 74, 0.42), transparent 60%),
    radial-gradient(ellipse at 16% 88%, rgba(74, 45, 110, 0.24), transparent 65%),
    radial-gradient(ellipse at 84% 92%, rgba(58, 110, 133, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 55%, rgba(135, 181, 62, 0.10), transparent 65%);
  pointer-events: none;
}
.hero::after {
  /* Bottom edge bleed into the golden-hour zone */
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 18vh;
  background: linear-gradient(to bottom, transparent, var(--sun-cream));
  pointer-events: none;
}

.hero > * { position: relative; z-index: 2; }
.hero::after { z-index: 3; }

.brand-mark {
  position: relative;
  width: clamp(220px, 36vw, 360px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark::before {
  /* Halo intentionally empty while logo is hidden. The hero's warm
     gradient shows through cleanly. Restore the radial-gradient
     background here when a new transparent logo is wired in if you
     want atmospheric lift behind it. */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
.brand-mark img,
.brand-mark video.brand-mark__video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.brand-mark video.brand-mark__video {
  /* Mute pointer events so the video doesn't intercept hero clicks */
  pointer-events: none;
}
.brand-mark .fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  border: 1px solid var(--ink-on-dark-faint);
  border-radius: 50%;
  padding: var(--s-6);
}
.brand-mark img.broken + .fallback,
.brand-mark img:not([src]) + .fallback { display: flex; }
.brand-mark .fallback .mono {
  font-family: var(--font-display), serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--ink-on-dark);
  text-align: center;
}
.brand-mark .fallback .ring {
  font-family: var(--font-body), sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}

.hero .tagline {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-on-light-dim);
  margin: 0;
}
.hero .tagline .dot { color: var(--pjg-wine); margin: 0 0.6em; }

.hero h1 {
  font-size: var(--t-display);
  max-width: 18ch;
  color: var(--ink-on-light);
}
.hero h1 em {
  font-style: italic;
  color: var(--pjg-wine);
}

.hero .lede {
  max-width: 52ch;
  font-size: var(--t-lead);
  color: var(--ink-on-light-dim);
}

.enter-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding: var(--s-4) var(--s-7);
  border: 1px solid var(--ink-on-light-faint);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-on-light);
  font-family: var(--font-body), sans-serif;
  font-size: var(--t-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 320ms var(--ease), color 320ms var(--ease), background 320ms var(--ease);
}
.enter-cta:hover, .enter-cta:focus-visible {
  border-color: var(--pjg-wine);
  color: var(--pjg-wine);
  background: rgba(122, 40, 64, 0.07);
  outline: none;
}
.enter-cta .arrow {
  display: inline-block;
  transition: transform 380ms var(--ease);
}
.enter-cta:hover .arrow { transform: translateY(3px); }

.scroll-hint {
  position: absolute;
  bottom: 22vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-on-light-muted);
  animation: pulse-fade 4s var(--ease) infinite;
  z-index: 6;
}
@keyframes pulse-fade {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.85; transform: translateX(-50%) translateY(4px); }
}


/* ============================================================
   GOLDEN HOUR BODY
   ============================================================ */
.day {
  position: relative;
  background: var(--sun-cream);
  color: var(--ink-on-light);
  overflow: hidden;
}
.day::before {
  /* Painterly paper texture - SVG turbulence baked at low opacity */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.25  0 0 0 0 0.1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 400px 400px;
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.day::after {
  /* Warm radial bloom - golden-hour sun */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 133, 74, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 50%, rgba(168, 51, 106, 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(135, 181, 62, 0.10), transparent 55%);
  pointer-events: none;
}
.day > * { position: relative; z-index: 1; }

/* === Invocation === */
.invocation {
  padding: var(--s-10) var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-5);
  position: relative;
}
.invocation .botanical-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pjg-tangerine), transparent);
}
.invocation .eyebrow { color: var(--pjg-magenta); }
.invocation blockquote {
  font-family: var(--font-display), serif;
  font-style: italic;
  font-size: var(--t-h2);
  line-height: 1.35;
  max-width: 28ch;
  margin: 0;
  color: var(--ink-on-light);
  font-weight: 400;
}
.invocation cite {
  font-family: var(--font-body), sans-serif;
  font-style: normal;
  font-size: var(--t-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-on-light-muted);
}


/* === Pathways === */
.pathways {
  padding: var(--s-9) var(--s-5) var(--s-10);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.pathways header {
  text-align: center;
  margin-bottom: var(--s-9);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
}
.pathways header .eyebrow { color: var(--pjg-tangerine); }
.pathways header h2 {
  font-size: var(--t-h2);
  max-width: 22ch;
  color: var(--ink-on-light);
}
.pathways header p {
  max-width: 50ch;
  color: var(--ink-on-light-dim);
  font-size: var(--t-lead);
  margin: 0;
  line-height: 1.65;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}

.pathway {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-7) var(--s-6) var(--s-6);
  border: 1px solid var(--ink-on-light-faint);
  border-radius: 6px;
  background: var(--sun-paper);
  color: var(--ink-on-light);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-on-light-faint);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 420ms var(--ease), transform 420ms var(--ease), box-shadow 420ms var(--ease);
  box-shadow: 0 1px 0 rgba(42, 26, 14, 0.04), 0 4px 14px rgba(42, 26, 14, 0.04);
  min-height: 380px;
}
.pathway::before {
  /* Painterly card texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0 0.1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.pathway::after {
  /* Color wash from per-card accent in top corner */
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--pw-accent, var(--pjg-tangerine)), transparent 65%);
  opacity: 0.18;
  transition: opacity 420ms var(--ease);
  pointer-events: none;
  z-index: 0;
}
.pathway:hover {
  border-color: var(--pw-accent, var(--pjg-tangerine));
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(42, 26, 14, 0.06), 0 12px 28px rgba(42, 26, 14, 0.10);
}
.pathway:hover::after { opacity: 0.32; }

.pathway > * { position: relative; z-index: 1; }

.pathway .number {
  font-family: var(--font-display), serif;
  font-size: 0.9rem;
  color: var(--pw-accent, var(--pjg-tangerine));
  letter-spacing: 0.32em;
}
.pathway h3 {
  font-size: var(--t-h2);
  color: var(--ink-on-light);
}
.pathway p {
  margin: 0;
  color: var(--ink-on-light-dim);
  font-size: var(--t-body);
  line-height: 1.6;
}
.pathway .more {
  margin-top: auto;
  padding-top: var(--s-5);
  font-family: var(--font-body), sans-serif;
  font-size: var(--t-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pw-accent, var(--pjg-tangerine));
  font-weight: 600;
}
.pathway .more::after {
  content: " →";
  display: inline-block;
  transition: transform 320ms var(--ease);
}
.pathway:hover .more::after { transform: translateX(4px); }

/* Per-pathway tonal palette */
.pathway.therapy { --pw-accent: var(--pjg-teal); }
.pathway.spiritual { --pw-accent: var(--pjg-magenta); }
.pathway.events { --pw-accent: var(--pjg-tangerine); }

/* ============================================================
   FOOTER (tropical jade) - the canopy at dusk
   Vibrant green replaces dark loam. Painterly noise + warm
   tangerine/royal washes carry depth without going black.
   ============================================================ */
footer.close {
  position: relative;
  padding: var(--s-9) var(--s-5) var(--s-7);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: center;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.36  0 0 0 0 0.20  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #2f8a4e 0%, #246a3a 100%);
  background-size: 400px 400px, 100% 100%;
  background-blend-mode: multiply, normal;
  color: var(--ink-on-dark);
  overflow: hidden;
}
footer.close::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 14vh;
  background: linear-gradient(to bottom, var(--sun-cream), transparent);
  pointer-events: none;
}
footer.close::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 133, 74, 0.10), transparent 60%),
    radial-gradient(ellipse at 30% 100%, rgba(74, 45, 110, 0.18), transparent 60%);
  pointer-events: none;
}
footer.close > * { position: relative; z-index: 1; }
footer.close .closing-line {
  font-family: var(--font-display), serif;
  font-style: italic;
  font-size: var(--t-h3);
  color: var(--ink-on-dark);
  max-width: 32ch;
  margin: 0 auto;
}
footer.close .contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: center;
  font-size: var(--t-caption);
  color: var(--ink-on-dark-dim);
}
footer.close .contact a {
  border-bottom-color: var(--ink-on-dark-faint);
  color: var(--ink-on-dark-dim);
}
footer.close .contact a:hover { color: var(--pjg-tangerine); }
footer.close .legal {
  margin-top: var(--s-4);
  font-size: 0.7rem;
  color: var(--ink-on-dark-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   BOTANICAL SWAY ANIMATION (subtle, organic, desynced)
   ============================================================ */
.sway { transform-origin: bottom center; animation: sway-a 9s ease-in-out infinite; }
.sway-b { transform-origin: bottom right; animation: sway-b 11s ease-in-out infinite; }
.sway-c { transform-origin: top center; animation: sway-c 13s ease-in-out infinite; }
.sway-slow { animation-duration: 16s; }

@keyframes sway-a {
  0%, 100% { transform: rotate(-1.4deg) translateY(0); }
  50% { transform: rotate(1.4deg) translateY(-2px); }
}
@keyframes sway-b {
  0%, 100% { transform: rotate(1.2deg) translateX(0); }
  50% { transform: rotate(-1.6deg) translateX(2px); }
}
@keyframes sway-c {
  0%, 100% { transform: rotate(-0.8deg) scale(1); }
  50% { transform: rotate(0.9deg) scale(1.012); }
}

/* Per-leaf wobble inside compositions */
.leaf { transform-origin: bottom center; animation: leaf-wobble 7s ease-in-out infinite; }
.leaf-2 { animation-duration: 8.5s; animation-delay: -2s; }
.leaf-3 { animation-duration: 10s; animation-delay: -4s; }

@keyframes leaf-wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* ============================================================
   Reveal animation (scroll-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: 80ms; }
.reveal-2 { transition-delay: 220ms; }
.reveal-3 { transition-delay: 360ms; }
.reveal-4 { transition-delay: 500ms; }
.reveal-5 { transition-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint, .sway, .sway-b, .sway-c, .leaf, .leaf-2, .leaf-3 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .top-bar { top: auto; bottom: var(--s-3); right: var(--s-3); left: var(--s-3); justify-content: center; flex-wrap: wrap; }
  .hero { padding-top: var(--s-7); padding-bottom: var(--s-10); gap: var(--s-5); }
  .pathway { padding: var(--s-6) var(--s-5); min-height: 320px; }
}
