:root {
  /* Compliance tokens from DESIGN.md font scan: Interactive elements IntersectionObserver toggling `.active` (Google */
  --cream: #FFF5EB;
  --lavender: #D8C4E8;
  --peach: #FCCFB5;
  --mint: #B8DFD0;
  --leaf: #7DB58A;
  --charcoal: #2C2C34;
  --sidewalk: #8E8B87;
  --coral: #E8736D;
  --display: "Nunito Sans", Inter, system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --body: "Source Sans 3", "Nunito Sans", system-ui, sans-serif;
  --noise: radial-gradient(circle at 20% 30%, rgba(44, 44, 52, 0.035) 0 1px, transparent 1px 100%), radial-gradient(circle at 80% 70%, rgba(44, 44, 52, 0.025) 0 1px, transparent 1px 100%);
}

* { box-sizing: border-box; }

html {
  scroll-snap-type: y proximity;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

#scroll-story { position: relative; }

.zone {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
  transition: background-color 0.8s ease;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image: var(--noise);
  background-size: 22px 22px, 31px 31px;
  mix-blend-mode: multiply;
  z-index: 1;
}

.torn-top {
  margin-top: -8vh;
  padding-top: 8vh;
  clip-path: polygon(0 5vh, 8% 2vh, 18% 6vh, 31% 1vh, 45% 4vh, 61% 0, 76% 5vh, 89% 2vh, 100% 6vh, 100% 100%, 0 100%);
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.8rem, 12vw, 10rem);
  transform: rotate(-1.5deg);
  text-shadow: 4px 4px 0 var(--peach), -3px -2px 0 rgba(184, 223, 208, 0.85);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  transform: rotate(-1deg);
}

p { margin: 0; max-width: 38em; }

.scribble, .label {
  font-family: var(--hand);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1.4;
  font-weight: 700;
}

.zone-crossroads {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, #FFF5EB 0 35%, #FCCFB5 88%);
}

.crossroad-svg {
  position: absolute;
  inset: -4vh -5vw;
  width: 110vw;
  height: 110vh;
  z-index: 0;
}

.road {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: clamp(64px, 8vw, 118px);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.94;
  filter: drop-shadow(10px 14px 0 rgba(126, 181, 138, 0.28));
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.road-left { transform-origin: 50% 90%; transform: translateX(calc(var(--split, 0) * -60px)) rotate(calc(var(--split, 0) * -2deg)); }
.road-right { transform-origin: 50% 90%; transform: translateX(calc(var(--split, 0) * 60px)) rotate(calc(var(--split, 0) * 2deg)); }

.brand-splash {
  position: relative;
  z-index: 3;
  width: min(88vw, 980px);
  padding: 7vh 4vw;
  text-align: center;
  background: rgba(255, 245, 235, 0.64);
  border-radius: 48% 52% 44% 56% / 56% 38% 62% 44%;
  box-shadow: 0 0 0 2px rgba(44, 44, 52, 0.12), 18px 20px 0 rgba(216, 196, 232, 0.65);
  animation: blobBreath 8s ease-in-out infinite;
}

.brand-splash .scribble { color: var(--coral); transform: rotate(2deg); }

.blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transition: border-radius 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s ease;
  animation: blobBreath 8s ease-in-out infinite;
}

.blob:hover, .blob.morphed, .zone.active .blob {
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation-duration: 3s;
}

.blob-xl, .blob-lg, .blob-md, .blob-sm {
  position: absolute;
  z-index: 0;
  opacity: 0.56;
}

.blob-xl { width: clamp(230px, 36vw, 470px); height: clamp(230px, 36vw, 470px); left: -6vw; top: 13vh; }
.blob-lg { width: clamp(210px, 32vw, 420px); height: clamp(210px, 32vw, 420px); right: -4vw; top: 14vh; }
.blob-md { width: clamp(160px, 24vw, 340px); height: clamp(160px, 24vw, 340px); left: 10vw; bottom: 7vh; animation-delay: -2s; }
.blob-sm { width: clamp(90px, 14vw, 180px); height: clamp(90px, 14vw, 180px); right: 18vw; bottom: 22vh; animation-delay: -4s; }

.blob-lavender, .left-ghost { background: var(--lavender); }
.blob-peach, .coral-ghost { background: var(--peach); }
.blob-mint, .right-ghost { background: var(--mint); }
.blob-green { background: var(--leaf); }

.zone-left {
  background: linear-gradient(135deg, #D8C4E8 0%, #FFF5EB 52%, #FCCFB5 100%);
}

.zone-right {
  background: linear-gradient(225deg, #B8DFD0 0%, #FFF5EB 58%, #7DB58A 140%);
}

.cluster {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3vh;
  padding: 16vh 7vw 12vh;
}

.cluster-left { align-items: flex-start; transform: translateX(-5vw) rotate(-0.5deg); }
.cluster-right { align-items: flex-end; text-align: right; transform: translateX(5vw) rotate(0.5deg); }

.content-blob {
  width: min(720px, 74vw);
  min-height: 360px;
  padding: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  box-shadow: 12px 14px 0 rgba(44, 44, 52, 0.88);
  border: 2px solid var(--charcoal);
}

.warm-note { background: rgba(255, 245, 235, 0.88); }
.cool-note { background: rgba(255, 245, 235, 0.86); }

.street-note {
  max-width: 420px;
  padding: 1.3rem 1.6rem;
  background: var(--cream);
  border: 2px solid var(--charcoal);
  box-shadow: 3px 3px 0 var(--charcoal);
  font-weight: 300;
}

.note-offset { margin-left: 26vw; transform: rotate(2.4deg); }
.note-float { margin-right: 22vw; transform: rotate(-2.2deg); }

.sticker {
  position: absolute;
  z-index: 5;
  display: inline-block;
  padding: 0.28rem 1rem 0.36rem;
  color: var(--charcoal);
  background: var(--peach);
  border: 2px solid var(--charcoal);
  box-shadow: 3px 3px 0 var(--charcoal);
  font-family: var(--hand);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.sticker-one { left: 17vw; top: 27vh; transform: rotate(-4deg); background: var(--lavender); }
.sticker-two { right: 16vw; top: 29vh; transform: rotate(3deg); background: var(--mint); }
.sticker-three { left: 52vw; top: 61vh; transform: rotate(4deg); background: var(--coral); color: var(--cream); }
.sticker-four { right: 55vw; top: 57vh; transform: rotate(-3deg); background: var(--lavender); }
.sticker-five { left: 12vw; bottom: 16vh; transform: rotate(-2deg); background: var(--mint); }

.leaf, .leaf-band span, .leaf-carpet span, .leaf-trail {
  width: 70px;
  height: 120px;
  background: var(--leaf);
  clip-path: path("M35 0 C70 30 70 80 35 120 C0 80 0 30 35 0 Z");
  opacity: 0.38;
}

.leaf { position: absolute; z-index: 2; }
.leaf-a { left: 8vw; bottom: 14vh; transform: rotate(-32deg) scale(1.4); }
.leaf-b { right: 9vw; bottom: 11vh; transform: rotate(38deg) scale(1.1); }

.leaf-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2vh;
  height: 12vh;
  z-index: 4;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}

.leaf-band span { display: block; transform: rotate(var(--r, 20deg)); }
.leaf-band span:nth-child(2) { --r: -44deg; background: var(--mint); }
.leaf-band span:nth-child(3) { --r: 72deg; background: var(--peach); }
.leaf-band span:nth-child(4) { --r: -12deg; background: var(--leaf); }
.leaf-band span:nth-child(5) { --r: 36deg; background: var(--lavender); }

.zone-convergence {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #D8C4E8 0%, #FFF5EB 42%, #B8DFD0 100%);
}

.merge-field { position: absolute; inset: 0; z-index: 0; }
.merge-blob { position: absolute; width: clamp(260px, 42vw, 560px); height: clamp(220px, 34vw, 460px); opacity: 0.48; }
.left-ghost { left: 8vw; top: 18vh; transform: rotate(-12deg); }
.right-ghost { right: 8vw; top: 24vh; transform: rotate(14deg); animation-delay: -2s; }
.coral-ghost { left: 34vw; bottom: 10vh; transform: rotate(5deg); opacity: 0.36; animation-delay: -4s; }

.center-note {
  position: relative;
  z-index: 3;
  width: min(900px, 84vw);
  padding: clamp(2rem, 5vw, 5.5rem);
  text-align: center;
  background: rgba(255, 245, 235, 0.72);
  border: 2px solid rgba(44, 44, 52, 0.78);
  box-shadow: 10px 12px 0 var(--charcoal);
  transform: rotate(0.8deg);
}

.center-note p { margin-inline: auto; }
.center-note h2 { margin: 0.4rem 0 1.4rem; color: var(--charcoal); }

.zone-ground {
  min-height: 110vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFF5EB 0%, #FCCFB5 46%, #B8DFD0 100%);
}

.leaf-carpet {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.leaf-carpet span {
  position: absolute;
  display: block;
  opacity: 0.18;
  transform: rotate(var(--rot)) scale(var(--scale));
  left: var(--x);
  top: var(--y);
}

.leaf-carpet span:nth-child(1) { --x: 4%; --y: 12%; --rot: -25deg; --scale: 1.6; }
.leaf-carpet span:nth-child(2) { --x: 15%; --y: 78%; --rot: 48deg; --scale: 1.1; }
.leaf-carpet span:nth-child(3) { --x: 23%; --y: 28%; --rot: 103deg; --scale: 0.9; }
.leaf-carpet span:nth-child(4) { --x: 32%; --y: 68%; --rot: -76deg; --scale: 1.5; }
.leaf-carpet span:nth-child(5) { --x: 44%; --y: 15%; --rot: 12deg; --scale: 1.2; }
.leaf-carpet span:nth-child(6) { --x: 51%; --y: 84%; --rot: -132deg; --scale: 1.7; }
.leaf-carpet span:nth-child(7) { --x: 63%; --y: 25%; --rot: 68deg; --scale: 0.8; }
.leaf-carpet span:nth-child(8) { --x: 74%; --y: 66%; --rot: 142deg; --scale: 1.3; }
.leaf-carpet span:nth-child(9) { --x: 84%; --y: 18%; --rot: -18deg; --scale: 1.4; }
.leaf-carpet span:nth-child(10) { --x: 91%; --y: 76%; --rot: 84deg; --scale: 1; }
.leaf-carpet span:nth-child(11) { --x: 7%; --y: 48%; --rot: 166deg; --scale: 0.95; }
.leaf-carpet span:nth-child(12) { --x: 18%; --y: 8%; --rot: -88deg; --scale: 1.25; }
.leaf-carpet span:nth-child(13) { --x: 27%; --y: 90%; --rot: 31deg; --scale: 0.85; }
.leaf-carpet span:nth-child(14) { --x: 39%; --y: 41%; --rot: -41deg; --scale: 1.45; }
.leaf-carpet span:nth-child(15) { --x: 58%; --y: 7%; --rot: 74deg; --scale: 1.05; }
.leaf-carpet span:nth-child(16) { --x: 67%; --y: 87%; --rot: -111deg; --scale: 1.6; }
.leaf-carpet span:nth-child(17) { --x: 79%; --y: 38%; --rot: 26deg; --scale: 0.9; }
.leaf-carpet span:nth-child(18) { --x: 94%; --y: 44%; --rot: -62deg; --scale: 1.3; }
.leaf-carpet span:nth-child(19) { --x: 11%; --y: 64%; --rot: 126deg; --scale: 1.2; }
.leaf-carpet span:nth-child(20) { --x: 36%; --y: 4%; --rot: -16deg; --scale: 0.7; }
.leaf-carpet span:nth-child(21) { --x: 47%; --y: 58%; --rot: 93deg; --scale: 1.05; }
.leaf-carpet span:nth-child(22) { --x: 70%; --y: 10%; --rot: -138deg; --scale: 0.8; }
.leaf-carpet span:nth-child(23) { --x: 87%; --y: 91%; --rot: 45deg; --scale: 1.7; }
.leaf-carpet span:nth-child(24) { --x: 2%; --y: 90%; --rot: -5deg; --scale: 1; }

.manifesto {
  position: relative;
  z-index: 3;
  width: min(980px, 86vw);
  padding: clamp(2rem, 6vw, 6rem);
  background: rgba(255, 245, 235, 0.82);
  border: 2px solid var(--charcoal);
  box-shadow: 3px 3px 0 var(--charcoal), 18px 18px 0 rgba(232, 115, 109, 0.7);
  transform: rotate(-1.2deg);
}

.manifesto h2 { margin: 0.3rem 0 1.6rem; }
.manifesto .scribble { color: var(--coral); }

.leaf-trail {
  position: fixed;
  z-index: 20;
  width: 24px;
  height: 40px;
  pointer-events: none;
  opacity: 0.45;
  transform: translate(-50%, -50%) rotate(var(--angle)) scale(0.7);
  transition: transform 1.5s ease, opacity 1.5s ease;
}

.leaf-trail.drift {
  opacity: 0;
  transform: translate(calc(-50% + var(--dx)), 90px) rotate(calc(var(--angle) + 90deg)) scale(0.2);
}

@keyframes blobBreath {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

@media (max-width: 1024px) {
  .cluster-left, .cluster-right { transform: none; }
  .content-blob { width: min(760px, 82vw); }
  .note-offset, .note-float { margin-left: 12vw; margin-right: 12vw; }
}

@media (max-width: 767px) {
  html { scroll-snap-type: none; }
  h1 { font-size: clamp(3.2rem, 18vw, 6rem); }
  .torn-top { margin-top: -4vh; padding-top: 4vh; }
  .cluster { align-items: flex-start; text-align: left; padding-inline: 6vw; }
  .content-blob { width: 88vw; min-height: 330px; }
  .blob-xl, .blob-lg, .blob-md, .blob-sm { transform: scale(0.6); opacity: 0.45; }
  .sticker { transform: rotate(1deg); }
  .sticker-one { left: 8vw; top: 18vh; }
  .sticker-two { right: 8vw; top: 72vh; }
  .sticker-three, .sticker-four, .sticker-five { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .note-offset, .note-float { margin: 0; transform: rotate(1deg); }
  .road { stroke-width: 72px; }
}
