:root {
  /* Design phrase anchors: IntersectionObserver` detect which user (Google */
  --morning-parchment: #f7f2e8;
  --deep-earth: #2a1f17;
  --root-brown: #3b3028;
  --greenhouse-green: #4a6741;
  --terracotta-bloom: #c47a52;
  --petal-blush: #e8c4a0;
  --muted-sage: #7a8b6f;
  --dark-loam: #5a3e2b;
  --dew-white: #fffcf5;
  --elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", serif;
  font-variation-settings: 'wght' 400, 'opsz' 16;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--root-brown);
  background: var(--deep-earth);
  overflow-x: hidden;
}

.ambient-gradient {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 26% 12%, rgba(255, 252, 245, 0.72), transparent 26%),
    linear-gradient(180deg, #f7f2e8 0%, #e8c4a0 45%, #7a8b6f 68%, #2a1f17 100%);
  transition: background 900ms ease;
}

.ambient-gradient.collection-mode {
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 252, 245, 0.62), transparent 25%),
    linear-gradient(180deg, #f7f2e8 0%, #e8c4a0 40%, #7a8b6f 75%, #5a3e2b 100%);
}

.ambient-gradient.nursery-mode {
  background:
    radial-gradient(circle at 30% 24%, rgba(232, 196, 160, 0.42), transparent 30%),
    linear-gradient(180deg, #e8c4a0 0%, #f7f2e8 24%, #7a8b6f 62%, #3b3028 100%);
}

.ambient-gradient.archive-mode {
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 122, 82, 0.22), transparent 34%),
    linear-gradient(180deg, #5a3e2b 0%, #3b3028 38%, #2a1f17 100%);
}

.greenhouse-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(90, 62, 43, 0.15) 12.2%, transparent 12.5% 28%, rgba(90, 62, 43, 0.13) 28.2%, transparent 28.6% 50%, rgba(90, 62, 43, 0.13) 50.2%, transparent 50.6% 72%, rgba(90, 62, 43, 0.13) 72.2%, transparent 72.6% 88%, rgba(90, 62, 43, 0.15) 88.2%, transparent 88.5%),
    repeating-linear-gradient(180deg, transparent 0 118px, rgba(90, 62, 43, 0.11) 120px 121px, transparent 123px 240px);
}

.greenhouse-lines::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -22vh;
  height: 52vh;
  border: 1px solid rgba(90, 62, 43, 0.15);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.greenhouse-walk { position: relative; }

.chamber {
  position: relative;
  min-height: 100vh;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
}

.entrance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.28), rgba(232, 196, 160, 0.18) 58%, rgba(42, 31, 23, 0.42) 100%);
}

.glass-logotype {
  margin-top: 11vh;
  width: min(820px, calc(100vw - 2rem));
  padding: clamp(1.6rem, 4vw, 3.4rem) clamp(1.4rem, 5vw, 4rem);
  text-align: center;
  background: rgba(255, 252, 245, 0.38);
  border: 1px solid rgba(255, 252, 245, 0.52);
  border-radius: 42px;
  backdrop-filter: blur(8px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.75), 0 26px 80px rgba(42, 31, 23, 0.16);
}

.annotation, .section-kicker, .packet-label, .root-notes span {
  font-family: "Recursive", sans-serif;
  font-variation-settings: 'wght' 400, 'CASL' 1, 'MONO' 1;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted-sage);
  text-transform: lowercase;
}

.glass-logotype .annotation { margin: 0 0 0.7rem; }

h1 {
  margin: 0;
  font-family: "Recursive", sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-variation-settings: 'wght' 700, 'CASL' 1, 'CRSV' 0;
  line-height: 0.92;
  letter-spacing: 0.08em;
  color: var(--greenhouse-green);
  text-shadow: 0 2px 0 rgba(255, 252, 245, 0.7), 0 18px 36px rgba(74, 103, 65, 0.18);
}

h2 {
  margin: 0 0 2.2rem;
  font-family: "Recursive", sans-serif;
  font-variation-settings: 'wght' 500, 'CASL' 0.5;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dark-loam);
}

h3 {
  margin: 0 0 0.75rem;
  font-family: "Recursive", sans-serif;
  font-variation-settings: 'wght' 610, 'CASL' 0.8;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.025em;
  color: var(--greenhouse-green);
}

p { margin: 0; }
p + p { margin-top: 1.1rem; }

.tagline {
  position: absolute;
  top: 60vh;
  max-width: 620px;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--root-brown);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.spiral-cue {
  position: absolute;
  bottom: 5vh;
  width: 74px;
  height: 74px;
  padding: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 252, 245, 0.85), rgba(255, 252, 245, 0.2) 52%, rgba(74, 103, 65, 0.12));
  box-shadow: inset 0 1px 2px rgba(255, 252, 245, 0.9), 0 16px 36px rgba(42, 31, 23, 0.16);
  animation: breathe 3.6s ease-in-out infinite;
}

.spiral-cue svg, .transition-botanical, .specimen-illustration svg, .colophon svg { width: 100%; height: 100%; overflow: visible; }
.spiral-cue path, .transition-botanical path, .specimen-illustration path, .specimen-illustration circle, .colophon path {
  fill: none;
  stroke: var(--greenhouse-green);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaf-field { position: absolute; inset: 0; pointer-events: none; }
.leaf {
  position: absolute;
  display: block;
  background: var(--muted-sage);
  opacity: 0.3;
  transform-origin: bottom center;
  transition: transform 900ms var(--elastic);
}
.leaf-a { width: 22vw; height: 34vw; left: -3vw; bottom: -8vw; clip-path: ellipse(38% 49% at 50% 50%); transform: rotate(-18deg); }
.leaf-b { width: 16vw; height: 27vw; left: 18vw; bottom: -9vw; clip-path: polygon(50% 0, 72% 32%, 63% 100%, 37% 100%, 28% 32%); transform: rotate(8deg); }
.leaf-c { width: 24vw; height: 30vw; right: 10vw; bottom: -10vw; clip-path: ellipse(32% 50% at 50% 50%); transform: rotate(16deg); }
.leaf-d { width: 20vw; height: 25vw; right: -4vw; bottom: -6vw; clip-path: polygon(50% 0, 95% 42%, 70% 100%, 50% 72%, 30% 100%, 5% 42%); transform: rotate(-9deg); }
.leaf-field.active .leaf-a { transform: rotate(-14deg) translateY(-8px); }
.leaf-field.active .leaf-b { transform: rotate(12deg) translateY(-10px); }
.leaf-field.active .leaf-c { transform: rotate(12deg) translateY(-7px); }
.leaf-field.active .leaf-d { transform: rotate(-5deg) translateY(-9px); }

.dew {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fffcf5 0 18%, rgba(255, 252, 245, 0.55) 34%, rgba(255, 252, 245, 0.08) 70%);
  box-shadow: 0 7px 18px rgba(74, 103, 65, 0.18);
}
.dew-a { left: 15vw; bottom: 22vh; }
.dew-b { right: 20vw; bottom: 18vh; width: 10px; height: 10px; }
.dew-c { right: 35vw; top: 22vh; width: 16px; height: 16px; }

.transition {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.transition-one { background: linear-gradient(180deg, rgba(42, 31, 23, 0.18), rgba(247, 242, 232, 0.34)); }
.transition-two { background: linear-gradient(180deg, rgba(247, 242, 232, 0.22), rgba(232, 196, 160, 0.34)); }
.transition-three { background: linear-gradient(180deg, rgba(122, 139, 111, 0.28), rgba(42, 31, 23, 0.72)); }
.transition-botanical {
  width: min(70vw, 620px);
  max-height: 260px;
  opacity: 0.86;
}
.transition-botanical path {
  stroke: var(--greenhouse-green);
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition: stroke-dashoffset 1500ms var(--elastic), opacity 700ms ease;
}
.transition-botanical.in-view path { stroke-dashoffset: 0; }
.transition-botanical.flower path { stroke: var(--terracotta-bloom); }
.transition-botanical.root path { stroke: var(--petal-blush); }

.collection {
  min-height: 150vh;
  padding-top: 8rem;
}
.collection > .section-kicker, .collection > h2, .nursery > .section-kicker, .nursery > h2 {
  display: block;
  width: min(640px, calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.specimen-stack {
  width: min(640px, calc(100vw - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.specimen-card, .seedling-card, .archive-panel {
  position: relative;
  background: rgba(255, 252, 245, 0.6);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(196, 122, 82, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(42, 31, 23, 0.08);
  overflow: hidden;
}
.specimen-card {
  padding: clamp(1.4rem, 4vw, 2.3rem);
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  transition: transform 850ms var(--elastic), opacity 550ms ease, border-color 300ms ease;
}
.specimen-card::before, .seedling-card::before, .archive-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 252, 245, 0.78), transparent 23%),
    radial-gradient(circle at 86% 78%, rgba(232, 196, 160, 0.26), transparent 28%),
    repeating-linear-gradient(45deg, rgba(90, 62, 43, 0.035) 0 1px, transparent 1px 8px);
}
.reveal-card.in-view { transform: scale(1) translateY(0); opacity: 1; }
.specimen-card:hover { border-color: rgba(196, 122, 82, 0.55); }

.packet-label {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(122, 139, 111, 0.28);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.48);
}
.specimen-illustration {
  position: relative;
  height: 210px;
  margin: 0 0 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(255, 252, 245, 0.75) 0%, rgba(232, 196, 160, 0.22) 58%, transparent 100%);
  filter: sepia(0.15);
  mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}
.specimen-illustration svg { width: 74%; }
.specimen-illustration circle { stroke: var(--terracotta-bloom); }
.specimen-illustration path:nth-child(even) { stroke: var(--terracotta-bloom); }

.nursery {
  min-height: 100vh;
  padding-top: 7rem;
}
.nursery-columns {
  width: min(960px, calc(100vw - 2rem));
  margin: 0 auto;
  columns: 2 320px;
  column-gap: 3rem;
}
.seedling-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 3rem;
  padding: 1.5rem;
  background: rgba(247, 242, 232, 0.48);
  filter: sepia(0.12);
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  transition: transform 850ms var(--elastic), opacity 550ms ease;
}
.seedling-card.tall { padding-bottom: 4.3rem; }
.seedling-card h3 { color: var(--dark-loam); margin-top: 0.55rem; }

.archive {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--petal-blush);
  background: linear-gradient(180deg, rgba(42, 31, 23, 0.46), rgba(42, 31, 23, 0.9));
}
.archive-panel {
  width: min(760px, calc(100vw - 2rem));
  padding: clamp(1.6rem, 5vw, 3rem);
  background: rgba(59, 48, 40, 0.58);
  border-color: rgba(232, 196, 160, 0.28);
  color: #f7f2e8;
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  transition: transform 850ms var(--elastic), opacity 550ms ease;
}
.archive-panel h2 { color: var(--petal-blush); }
.archive-panel .section-kicker, .archive-panel .root-notes span { color: var(--petal-blush); }
.root-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}
.root-notes span {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(232, 196, 160, 0.22);
  border-radius: 999px;
}
.colophon {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  font-family: "Recursive", sans-serif;
  font-variation-settings: 'wght' 500, 'CASL' 1;
  color: var(--petal-blush);
}
.colophon svg { width: 48px; height: 48px; }
.colophon path { stroke: var(--petal-blush); }

.vine-progress {
  position: fixed;
  top: 4vh;
  right: 1.1rem;
  width: 64px;
  height: 92vh;
  z-index: 20;
  pointer-events: none;
}
.vine-svg { width: 100%; height: 100%; }
.vine-shadow, .vine-grow {
  fill: none;
  stroke-width: 3px;
  stroke-linecap: round;
}
.vine-shadow { stroke: rgba(90, 62, 43, 0.15); }
.vine-grow {
  stroke: url(#none);
  stroke: var(--greenhouse-green);
  filter: drop-shadow(0 2px 3px rgba(42, 31, 23, 0.12));
}
.vine-leaves path {
  fill: var(--greenhouse-green);
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 500ms ease, transform 700ms var(--elastic), fill 500ms ease;
}
.vine-leaves path.visible { opacity: 0.84; transform: scale(1); }
.mobile-progress { display: none; }

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(7px) scale(1.04); }
}

@media (max-width: 768px) {
  .chamber { min-height: 80vh; padding: 4rem 1rem; }
  .entrance { min-height: 100vh; }
  .glass-logotype { margin-top: 12vh; border-radius: 30px; }
  h1 { font-variation-settings: 'wght' 600, 'CASL' 1, 'CRSV' 0; letter-spacing: 0.06em; }
  .tagline { top: 57vh; }
  .transition { min-height: 220px; }
  .transition-botanical { opacity: 0; transition: opacity 700ms ease; }
  .transition-botanical path { stroke-dashoffset: 0; }
  .transition-botanical.in-view { opacity: 0.86; }
  .specimen-stack, .collection > .section-kicker, .collection > h2, .nursery > .section-kicker, .nursery > h2 { width: calc(100vw - 2rem); }
  .specimen-stack { gap: 3rem; }
  .nursery-columns { columns: 1; width: calc(100vw - 2rem); }
  .vine-progress { top: auto; right: 0; left: 0; bottom: 0; width: 100%; height: 8px; }
  .vine-svg { display: none; }
  .mobile-progress { display: block; height: 8px; width: 100%; background: rgba(90, 62, 43, 0.22); }
  .mobile-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #7a8b6f, #4a6741); border-radius: 0 999px 999px 0; }
}
