:root {
  /* IBM Plex Sans** Sans\*\* Sansssss for short explanatory notes and interface-like microcopy */
  --ink: #10251D;
  --moss: #2F6F5E;
  --fern: #57A773;
  --glow: #B7F06A;
  --mist: #F1EAD2;
  --cyan: #72D6C9;
  --soil: #6D4C2F;
  --garamond: "EB Garamond", Garamond, Georgia, serif;
  --fraunces: "Fraunces", Georgia, serif;
  --plex: "IBM Plex Sans", Inter, Lato, Arial, sans-serif;
  --sans-design-token: "Sans**";
  --caveat: "Caveat", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--mist);
  background: var(--ink);
  font-family: var(--plex);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(114, 214, 201, .16), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(183, 240, 106, .12), transparent 24rem),
    radial-gradient(circle at 55% 88%, rgba(47, 111, 94, .42), transparent 28rem),
    linear-gradient(125deg, rgba(16, 37, 29, .94), rgba(47, 111, 94, .42));
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(241, 234, 210, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 210, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -2;
}

.canopy { position: relative; }

.growth-state {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) minmax(320px, 760px) minmax(280px, 520px) minmax(2rem, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(4rem, 7vw, 7rem) 0;
  isolation: isolate;
  overflow: hidden;
}

.hero {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100svh;
  text-align: center;
}

.fog-layer,
.growth-state::before,
.growth-state::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.fog-layer {
  inset: -20%;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(241, 234, 210, .12), transparent 34%),
    radial-gradient(ellipse at 22% 76%, rgba(114, 214, 201, .13), transparent 30%);
  filter: blur(20px);
  animation: fogDrift 16s ease-in-out infinite alternate;
}

.growth-state::before {
  width: 62vmax;
  height: 62vmax;
  border: 1px solid rgba(114, 214, 201, .16);
  border-radius: 47% 53% 49% 51%;
  left: -22vmax;
  top: 8%;
  box-shadow: inset 0 0 5rem rgba(114, 214, 201, .06);
  animation: slowSpin 42s linear infinite;
}

.growth-state::after {
  width: 36vmax;
  height: 36vmax;
  right: -12vmax;
  bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 240, 106, .12), transparent 67%);
}

.paper {
  position: absolute;
  width: min(74vw, 980px);
  height: min(52vw, 560px);
  background: linear-gradient(135deg, rgba(241, 234, 210, .13), rgba(241, 234, 210, .035));
  border: 1px solid rgba(241, 234, 210, .2);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, .28);
  transform: rotate(-3deg);
  clip-path: polygon(2% 5%, 96% 0, 100% 92%, 82% 96%, 62% 93%, 39% 100%, 16% 95%, 0 88%);
}

.paper-two {
  transform: rotate(4deg) translate(1rem, 1.4rem);
  opacity: .46;
}

.hero-veins {
  position: absolute;
  inset: 5vh 3vw;
  width: 94vw;
  height: 90vh;
  overflow: visible;
}

.draw-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 3.8s cubic-bezier(.43, .02, .18, 1) forwards;
}

.vein { stroke: var(--fern); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(87, 167, 115, .35)); }
.prediction { stroke: var(--cyan); stroke-width: 2; opacity: .78; filter: drop-shadow(0 0 14px rgba(114, 214, 201, .34)); }
.umber { stroke: var(--soil); stroke-width: 3; }
.arrow { stroke: var(--glow); stroke-width: 2.5; }
.trunk, .branch { stroke: var(--soil); stroke-width: 5; filter: drop-shadow(0 0 12px rgba(109, 76, 47, .35)); }
.branch { stroke: var(--fern); stroke-width: 3.4; }
.delay-a { animation-delay: .55s; }
.delay-b { animation-delay: 1.05s; }
.delay-c { animation-delay: 1.55s; }
.delay-d { animation-delay: 2.05s; }

.specimen-title {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform .3s ease-out;
}

.catalog,
.coordinate-note,
.label-card span {
  font-family: var(--plex);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(114, 214, 201, .9);
}

h1 {
  margin: 0;
  font-family: var(--garamond);
  font-weight: 500;
  font-size: clamp(5.5rem, 17vw, 17rem);
  line-height: .78;
  letter-spacing: -.075em;
  color: var(--mist);
  text-shadow: 0 0 36px rgba(183, 240, 106, .14), 0 1rem 6rem rgba(0, 0, 0, .5);
}

h1::first-letter { color: var(--glow); font-style: italic; }

.scribble {
  margin: 1rem 0 0;
  font-family: var(--caveat);
  color: var(--glow);
  font-size: clamp(1.6rem, 3vw, 3rem);
  transform: rotate(-2deg);
}

.label-card {
  position: relative;
  background:
    linear-gradient(140deg, rgba(241, 234, 210, .95), rgba(241, 234, 210, .78));
  color: var(--ink);
  border: 1px solid rgba(109, 76, 47, .35);
  box-shadow: .9rem 1.2rem 0 rgba(16, 37, 29, .24), 0 1.6rem 5rem rgba(0, 0, 0, .28);
  padding: clamp(1.2rem, 3vw, 2rem);
  clip-path: polygon(1% 4%, 97% 0, 100% 92%, 93% 100%, 4% 97%, 0 18%);
}

.label-card::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border: 1px dashed rgba(109, 76, 47, .34);
  pointer-events: none;
}

.hero-note {
  position: absolute;
  left: clamp(1rem, 8vw, 9rem);
  bottom: clamp(5rem, 11vh, 9rem);
  width: min(22rem, 80vw);
  transform: rotate(-4deg);
}

.hero-note p, .specimen-copy p {
  font-family: var(--plex);
  font-size: clamp(.98rem, 1.2vw, 1.16rem);
  line-height: 1.6;
  margin: .8rem 0 0;
}

.coordinate-note {
  position: absolute;
  right: clamp(1rem, 8vw, 9rem);
  top: 18vh;
  color: rgba(241, 234, 210, .68);
  transform: rotate(5deg);
}

.journal-button {
  position: absolute;
  right: clamp(1rem, 7vw, 7rem);
  bottom: clamp(1.5rem, 6vh, 4rem);
  border: 1px solid rgba(183, 240, 106, .65);
  background: rgba(16, 37, 29, .64);
  color: var(--mist);
  font-family: var(--caveat);
  font-size: 1.55rem;
  padding: .7rem 1.4rem .8rem;
  border-radius: 999px;
  box-shadow: 0 0 32px rgba(183, 240, 106, .12), inset 0 0 20px rgba(114, 214, 201, .08);
  cursor: pointer;
  transform: rotate(2deg);
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}

.journal-button:hover {
  transform: rotate(-1deg) translateY(-4px);
  background: rgba(47, 111, 94, .76);
  box-shadow: 0 0 46px rgba(183, 240, 106, .22), inset 0 0 26px rgba(114, 214, 201, .14);
}

.illustration {
  grid-column: 2;
  position: relative;
  min-height: clamp(24rem, 62vh, 42rem);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform .4s ease-out;
}

.illustration svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.specimen-copy {
  grid-column: 3;
  width: min(100%, 30rem);
  transform: rotate(1.5deg);
}

.weather .specimen-copy,
.convergence .specimen-copy { transform: rotate(-2deg); }

.specimen-copy h2 {
  margin: .3rem 0 0;
  font-family: var(--garamond);
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  line-height: .86;
  letter-spacing: -.045em;
  color: var(--ink);
}

.specimen-copy h2::first-line { color: var(--moss); }

.state-number {
  position: absolute;
  left: clamp(1.2rem, 4vw, 4rem);
  top: clamp(4rem, 10vh, 8rem);
  font-family: var(--fraunces);
  font-size: clamp(5rem, 13vw, 14rem);
  line-height: 1;
  color: rgba(241, 234, 210, .08);
  font-variation-settings: "SOFT" 95;
}

.seed-shell {
  position: absolute;
  inset: 8% 20%;
  border-radius: 54% 46% 50% 50% / 62% 58% 42% 38%;
  background: radial-gradient(circle at 48% 35%, rgba(183, 240, 106, .2), rgba(47, 111, 94, .46) 45%, rgba(109, 76, 47, .35));
  border: 1px solid rgba(241, 234, 210, .28);
  box-shadow: inset 0 0 5rem rgba(16, 37, 29, .45), 0 0 5rem rgba(114, 214, 201, .12);
  animation: growIn 1.8s ease both;
}

.seed-core {
  position: absolute;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  left: calc(50% - 4.5rem);
  top: calc(50% - 4.5rem);
  background: radial-gradient(circle, var(--glow), rgba(87, 167, 115, .2) 55%, transparent 72%);
  animation: breathe 3.8s ease-in-out infinite;
}

.wind-map .halo,
.moon-ring {
  position: absolute;
  border: 1px solid rgba(114, 214, 201, .38);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(114, 214, 201, .16), inset 0 0 50px rgba(114, 214, 201, .08);
  animation: breathe 5s ease-in-out infinite;
}

.halo-one { width: 28rem; height: 28rem; left: 12%; top: 8%; }
.halo-two { width: 18rem; height: 18rem; right: 5%; bottom: 10%; animation-delay: 1s; }

.weather-glyphs {
  position: absolute;
  left: 14%;
  bottom: 10%;
  color: var(--glow);
  font-family: var(--caveat);
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  letter-spacing: .4em;
  opacity: .8;
  transform: rotate(-7deg);
}

.agent-tree .node {
  position: absolute;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 25px var(--glow);
  animation: nodePulse 2.8s ease-in-out infinite;
}
.n1 { left: 37%; top: 13%; }
.n2 { left: 21%; top: 29%; animation-delay: .4s; }
.n3 { right: 18%; top: 20%; animation-delay: .8s; }
.n4 { right: 12%; bottom: 14%; animation-delay: 1.2s; }
.n5 { left: 13%; bottom: 8%; animation-delay: 1.6s; }

.mesh-leaf {
  position: absolute;
  background: linear-gradient(135deg, rgba(87, 167, 115, .56), rgba(114, 214, 201, .13));
  border: 1px solid rgba(183, 240, 106, .24);
  border-radius: 100% 0 100% 0;
  filter: drop-shadow(0 0 24px rgba(114, 214, 201, .2));
  animation: leafUnfurl 2.2s ease both;
}
.leaf-a { width: 19rem; height: 11rem; left: 10%; top: 18%; transform: rotate(-18deg); }
.leaf-b { width: 22rem; height: 13rem; right: 7%; top: 24%; transform: rotate(28deg); animation-delay: .35s; }
.leaf-c { width: 18rem; height: 11rem; left: 34%; bottom: 12%; transform: rotate(5deg); animation-delay: .7s; }

.orchard-silhouette { min-height: 70vh; }
.moon-ring { width: 32rem; height: 32rem; left: 18%; top: 4%; }
.tree {
  position: absolute;
  bottom: 17%;
  width: 7rem;
  height: 16rem;
  background: linear-gradient(var(--fern), var(--moss));
  clip-path: polygon(48% 0, 72% 18%, 66% 31%, 88% 49%, 70% 57%, 96% 78%, 58% 74%, 58% 100%, 42% 100%, 42% 74%, 4% 78%, 30% 57%, 12% 49%, 34% 31%, 28% 18%);
  opacity: .78;
  filter: drop-shadow(0 0 24px rgba(183, 240, 106, .16));
  animation: growIn 1.9s ease both;
}
.t1 { left: 14%; transform: scale(.85); }
.t2 { left: 34%; transform: scale(1.15); animation-delay: .25s; }
.t3 { left: 55%; transform: scale(.95); animation-delay: .5s; }
.t4 { right: 13%; transform: scale(1.25); animation-delay: .75s; }
.soil-line {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--soil), var(--glow), var(--soil), transparent);
  box-shadow: 0 0 32px rgba(183, 240, 106, .2);
}

.final-note { width: min(100%, 34rem); }

.stagger-a, .stagger-b, .label-card, .state-number { opacity: 0; animation: slidePaper 1.2s ease forwards; }
.stagger-a { animation-delay: .8s; }
.stagger-b { animation-delay: 1.15s; }
.specimen-copy { animation-delay: .3s; }

.pollen-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.pollen {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--glow);
  opacity: .55;
  box-shadow: 0 0 12px var(--glow);
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fogDrift { from { transform: translate(-2%, -1%) scale(1); } to { transform: translate(2%, 1.4%) scale(1.04); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.96); opacity: .55; } 50% { transform: scale(1.04); opacity: .95; } }
@keyframes nodePulse { 0%, 100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes growIn { from { clip-path: inset(100% 0 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes leafUnfurl { from { scale: .1 1; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes slidePaper { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 900px) {
  .growth-state {
    grid-template-columns: 1rem 1fr 1rem;
    gap: 1rem;
    padding: 5rem 0;
  }

  .illustration,
  .specimen-copy { grid-column: 2; }

  .specimen-copy { align-self: start; }
  .hero-note { left: 1rem; bottom: 7rem; }
  .coordinate-note { right: 1rem; top: 12vh; }
  .journal-button { left: 1rem; right: auto; }
  .paper { width: 92vw; height: 60vh; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(4.4rem, 24vw, 7rem); }
  .catalog { max-width: 16rem; margin-inline: auto; }
  .hero-note { width: calc(100vw - 2rem); }
  .coordinate-note { display: none; }
  .illustration { min-height: 25rem; }
  .specimen-copy h2 { font-size: 3rem; }
}
