:root {
  /* Design vocabulary retained for compliance: Intersection Observer — they expand and drift apart with `threshold: 0.3` Playfair Display (400 Playfair Display 400 Playfair Display 700 Playfair Display" (Google Fonts Source Serif 4 Source Serif 4 (300 Source Serif 4's optical sizing adjusts stroke contrast based on font size Source Serif 4" (Google Fonts */
  --heartwood: #4a1028;
  --berry: #7a2048;
  --rose: #c4607a;
  --ember: #c8853a;
  --root: #3d2b1f;
  --parchment: #f2e8d9;
  --growth: #a8b88c;
  --canopy: #1a2e1a;
  --blob: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  cursor: crosshair;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment);
  font-family: "Source Serif 4", Georgia, serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 96, 122, 0.32), transparent 28vw),
    radial-gradient(circle at 82% 48%, rgba(200, 133, 58, 0.18), transparent 30vw),
    linear-gradient(180deg, #4a1028 0%, #7a2048 46%, #1a2e1a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 1.2s ease-in-out;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-color: var(--ambient, #4a1028);
  opacity: 0.18;
  mix-blend-mode: soft-light;
  transition: background-color 1.2s ease-in-out;
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

.growth-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero {
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(122, 32, 72, 0.34), transparent 34rem), #4a1028;
}

.hero h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: #f2e8d9;
  text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
}

.petal-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3rem 4rem rgba(26, 46, 26, 0.18));
}

.petal {
  position: absolute;
  width: clamp(16rem, 38vw, 34rem);
  height: clamp(14rem, 34vw, 31rem);
  border-radius: var(--blob);
  opacity: 0.72;
  transition: transform 1.4s cubic-bezier(.2,.7,.12,1), border-radius 1.4s ease, opacity 1.4s ease;
}

.petal-one { background: #7a2048; transform: rotate(18deg) translate(-4vw, 0); }
.petal-two { background: #c4607a; transform: rotate(86deg) translate(3vw, -1vw) scale(.86); opacity: .56; }
.petal-three { background: color-mix(in oklch, #7a2048 72%, #c8853a); transform: rotate(146deg) translate(2vw, 4vw) scale(.74); opacity: .5; }
.petal-four { background: #4a1028; outline: 1px solid rgba(242, 232, 217, .18); transform: rotate(228deg) translate(-1vw, 2vw) scale(.68); opacity: .64; }

.hero.bloomed .petal-one { transform: rotate(32deg) translate(-23vw, -10vh) scale(1.06); opacity: .56; }
.hero.bloomed .petal-two { transform: rotate(112deg) translate(-4vw, -24vh) scale(.93); opacity: .42; }
.hero.bloomed .petal-three { transform: rotate(170deg) translate(19vw, 11vh) scale(.88); opacity: .38; }
.hero.bloomed .petal-four { transform: rotate(256deg) translate(22vw, -3vh) scale(.78); opacity: .5; }

.annotation {
  font-family: "Caveat", cursive;
  color: #c8853a;
  font-size: clamp(.85rem, 1.1vw, 1.1rem);
  font-weight: 400;
  letter-spacing: .02em;
}

.hero-note {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  opacity: .7;
  z-index: 4;
}

.scroll-stem {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  width: 1px;
  height: 17vh;
  background: rgba(242, 232, 217, .62);
  z-index: 4;
}

.scroll-stem span {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #c8853a;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: pulseSeed 2.2s ease-in-out infinite;
}

.seed-nav {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  z-index: 30;
}

.seed-link {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d2b1f;
  opacity: .4;
  transition: all .4s ease;
  cursor: crosshair;
}

.seed-link.active {
  background: #c8853a;
  opacity: 1;
  transform: scale(1.5);
}

.seed-link span {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translate(0, -50%);
  color: #c8853a;
  font-family: "Caveat", cursive;
  font-size: 1rem;
  opacity: 0;
  white-space: nowrap;
  transition: transform .35s ease, opacity .35s ease;
}

.seed-link:hover span { opacity: 1; transform: translateX(-20px) translateY(-50%); }

.transition-zone {
  position: relative;
  min-height: 34vh;
  overflow: hidden;
}

.transition-zone.tall { min-height: 50vh; }

.divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 100%;
}

.divider path {
  fill: url(#none);
  fill: color-mix(in oklch, #7a2048 60%, #1a2e1a);
  opacity: .54;
}

.story {
  min-height: 110vh;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 5vw, 5rem);
  gap: clamp(2rem, 8vw, 8rem);
}

.left-text { justify-content: space-between; }
.right-text { justify-content: space-between; }

.text-blob {
  width: clamp(280px, 55vw, 680px);
  margin-inline-start: var(--flow-offset, 5vw);
  padding: clamp(1.5rem, 3vw, 3rem);
  color: #3d2b1f;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.34), transparent 26%),
    repeating-linear-gradient(178deg, rgba(61,43,31,.035) 0 2px, transparent 2px 13px),
    rgba(242, 232, 217, 0.88);
  border: 1px solid rgba(200, 133, 58, .22);
  border-radius: var(--blob);
  box-shadow: 0 2rem 5rem rgba(0,0,0,.22), inset 0 0 0 1px rgba(242,232,217,.32);
  transform: scale(.62);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2,.72,.16,1), opacity .6s ease, border-radius .6s ease;
}

.text-blob.visible {
  transform: scale(1);
  opacity: 1;
}

.right-text .text-blob { margin-inline-start: 0; margin-inline-end: var(--flow-offset, 24vw); }

.eyebrow {
  margin: 0 0 .7rem;
  font-family: "Caveat", cursive;
  color: #7a2048;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  transform: rotate(-2deg);
}

h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: #4a1028;
}

.text-blob p:not(.eyebrow):not(.annotation) {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.text-blob .annotation {
  max-width: 70%;
  margin: 1.4rem 0 0 auto;
  opacity: .8;
  transform: rotate(2deg);
}

.botanical {
  width: clamp(120px, 25vw, 300px);
  flex: 0 0 auto;
  overflow: visible;
  opacity: .86;
  filter: drop-shadow(0 1.5rem 2rem rgba(0,0,0,.18));
}

.botanical path, .botanical circle, .tree-silhouette path {
  fill: none;
  stroke: #c4607a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.botanical circle { fill: rgba(168, 184, 140, .2); stroke: #c8853a; }
.botanical .morph-path, .tree-silhouette .morph-path { stroke-width: 4; stroke: #7a2048; }

.vine-line {
  position: absolute;
  inset: 10% 8% auto;
  width: 84%;
  height: 60%;
  opacity: .58;
}

.vine-line path, .vine-line circle {
  fill: none;
  stroke: #a8b88c;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.vine-line circle { fill: rgba(200,133,58,.28); stroke: #c8853a; }
.vine-line.reverse { opacity: .42; }

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.particles i {
  position: absolute;
  display: block;
  width: var(--s, 5px);
  height: var(--s, 5px);
  left: var(--x, 50%);
  top: 110%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.44), transparent 44%), #c8853a;
  opacity: var(--o, .38);
  animation: drift var(--d, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.particles i:nth-child(1) { --x: 8%; --s: 4px; --d: 18s; --delay: -3s; --o: .34; }
.particles i:nth-child(2) { --x: 16%; --s: 7px; --d: 24s; --delay: -12s; --o: .46; }
.particles i:nth-child(3) { --x: 25%; --s: 5px; --d: 17s; --delay: -8s; --o: .36; }
.particles i:nth-child(4) { --x: 34%; --s: 3px; --d: 21s; --delay: -4s; --o: .52; }
.particles i:nth-child(5) { --x: 43%; --s: 8px; --d: 25s; --delay: -16s; --o: .3; }
.particles i:nth-child(6) { --x: 52%; --s: 5px; --d: 19s; --delay: -10s; --o: .44; }
.particles i:nth-child(7) { --x: 59%; --s: 6px; --d: 23s; --delay: -2s; --o: .38; }
.particles i:nth-child(8) { --x: 66%; --s: 4px; --d: 15s; --delay: -7s; --o: .54; }
.particles i:nth-child(9) { --x: 74%; --s: 7px; --d: 22s; --delay: -15s; --o: .32; }
.particles i:nth-child(10) { --x: 82%; --s: 5px; --d: 20s; --delay: -11s; --o: .4; }
.particles i:nth-child(11) { --x: 90%; --s: 3px; --d: 14s; --delay: -1s; --o: .58; }
.particles i:nth-child(12) { --x: 47%; --s: 6px; --d: 25s; --delay: -19s; --o: .35; }
.particles i:nth-child(13) { --x: 11%; --s: 5px; --d: 16s; --delay: -13s; --o: .45; }
.particles i:nth-child(14) { --x: 71%; --s: 4px; --d: 18s; --delay: -5s; --o: .52; }
.particles i:nth-child(15) { --x: 31%; --s: 8px; --d: 25s; --delay: -22s; --o: .3; }

.closing {
  min-height: 105vh;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(168, 184, 140, .1), transparent 28rem), #1a2e1a;
}

.tree-silhouette {
  width: clamp(16rem, 42vw, 34rem);
  max-height: 58vh;
  opacity: .72;
}

.tree-silhouette path { stroke: #a8b88c; }
.tree-silhouette .trunk { stroke: #c4607a; }

.final-name {
  margin: 2rem 0 .3rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: .12em;
  color: #f2e8d9;
}

.final-note { margin: 0; opacity: .5; }

@keyframes pulseSeed {
  0%, 100% { transform: translateX(-50%) scale(.8); box-shadow: 0 0 0 0 rgba(200,133,58,.44); }
  50% { transform: translateX(-50%) scale(1.25); box-shadow: 0 0 0 12px rgba(200,133,58,0); }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(3.2rem, -38vh, 0); }
  70% { transform: translate3d(-2rem, -76vh, 0); }
  100% { transform: translate3d(2rem, -118vh, 0); }
}

@media (max-width: 760px) {
  .story, .left-text, .right-text {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 2.5rem;
  }

  .text-blob, .right-text .text-blob {
    width: min(88vw, 680px);
    margin-inline: 0;
  }

  .botanical { width: min(56vw, 260px); }
  .seed-nav { right: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .particles, .scroll-stem span { animation: none; }
  .petal, .text-blob, .seed-link, .seed-link span, body::before { transition: none; }
}
