:root {
  /* DESIGN TRACE: IntersectionObserver` `.specimen` trigger path-draw SVG animations (botanical line drawings materialize as they enter viewport; Playfair Display" (Google Fonts; Source Serif 4" (Google Fonts. */
  --deep-ink: #1a3a3a;
  --botanical-teal: #3a6b6b;
  --frost-white: #f0f7f5;
  --chlorophyll: #c8e6d0;
  --pressed-petal: #e8c4d0;
  --morning-light: #f5edd6;
  --deep-root: #0d2626;
  --specimen-label: #7a9a9a;
  --spine: #b8ccd4;
  --body-ink: #3a5a5a;
  --frost-white-70: rgba(240, 247, 245, 0.7);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body-ink);
  background: var(--frost-white);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(232, 196, 208, 0.42), transparent 34%),
    radial-gradient(ellipse at 78% 28%, rgba(200, 230, 208, 0.56), transparent 36%),
    linear-gradient(180deg, #f0f7f5 0%, #c8e6d0 40%, #f0f7f5 100%);
  background-size: 140% 140%, 130% 130%, 100% 100%;
  animation: canopyLight 18s ease-out infinite alternate;
}

.ambient-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, transparent 0 44%, rgba(255, 255, 255, 0.26) 45%, transparent 52%),
    linear-gradient(74deg, transparent 0 62%, rgba(255, 255, 255, 0.18) 63%, transparent 69%);
  opacity: 0.7;
}

.codex-spine {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 20;
  background: #b8ccd4;
  pointer-events: none;
}

.scroll-stem {
  position: fixed;
  left: 16px;
  top: 50%;
  width: 80px;
  height: min(74vh, 620px);
  transform: translateY(-50%);
  z-index: 30;
  overflow: visible;
  pointer-events: none;
}

.stem-track,
.stem-progress,
.life-stage path,
.life-stage circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stem-track {
  stroke: rgba(122, 154, 154, 0.22);
  stroke-width: 2;
}

.stem-progress {
  stroke: #3a6b6b;
  stroke-width: 2.5;
}

.life-stage {
  opacity: 0;
  transform-origin: center;
  transition: opacity 600ms ease-out, transform 800ms var(--spring);
  transform: scale(0.82);
}

.life-stage.visible {
  opacity: 1;
  transform: scale(1);
}

.leaves-stage path {
  fill: rgba(200, 230, 208, 0.72);
  stroke: #3a6b6b;
  stroke-width: 1.5;
}

.flower-stage .bud,
.flower-stage .petal {
  fill: rgba(232, 196, 208, 0.78);
  stroke: #3a6b6b;
  stroke-width: 1.3;
}

.fruit-stage .fruit {
  fill: rgba(245, 237, 214, 0.86);
  stroke: #3a6b6b;
  stroke-width: 1.5;
}

.fruit-stage .fruit-line {
  stroke: #7a9a9a;
  stroke-width: 1.2;
}

.canopy {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8vw;
}

.frost-title {
  width: min(1180px, 90vw);
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 6rem);
  background: rgba(240, 247, 245, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(58, 107, 107, 0.12);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.42), 0 30px 120px rgba(58, 107, 107, 0.12);
}

.eyebrow,
.label,
.annotation {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9a9a;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #1a3a3a;
  line-height: 0.95;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 15vw, 12rem);
  letter-spacing: -0.08em;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

h2 {
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  color: #3a6b6b;
}

.canopy-note {
  max-width: 620px;
  margin: 1.5rem auto 0;
  color: #3a5a5a;
  font-style: italic;
}

.specimen {
  min-height: 80vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  padding: 8vh 7vw;
}

.diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  color: #3a6b6b;
  font-size: 1.1rem;
  background: rgba(240, 247, 245, 0.84);
  padding: 0.16rem 0.34rem;
}

.plate-number {
  position: absolute;
  top: 4vh;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20vw;
  color: #1a3a3a;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.left .plate-number {
  left: 8vw;
}

.right .plate-number {
  right: 8vw;
}

.specimen-card {
  position: relative;
  width: min(720px, 88vw);
  padding: clamp(1.4rem, 3vw, 3.4rem);
  background: var(--frost-white-70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(58, 107, 107, 0.12);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.04), 0 26px 80px rgba(58, 107, 107, 0.1);
  transition: transform 400ms var(--spring), backdrop-filter 400ms ease-out, -webkit-backdrop-filter 400ms ease-out;
}

.specimen-card:hover {
  transform: scale(1.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.left .specimen-card {
  grid-column: 1;
  justify-self: end;
  margin-right: clamp(1.4rem, 5vw, 5rem);
}

.right .specimen-card {
  grid-column: 3;
  justify-self: start;
  margin-left: clamp(1.4rem, 5vw, 5rem);
}

.botanical-plate {
  position: relative;
  min-height: 360px;
  margin: clamp(1.2rem, 4vw, 2.4rem) 0 1rem;
  overflow: visible;
}

.watercolor {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease-out, transform 800ms var(--spring);
  transform: scale(0.94);
}

.specimen.in-view .watercolor {
  opacity: 1;
  transform: scale(1);
}

.wash-one { background: radial-gradient(ellipse at 40% 60%, rgba(200, 230, 208, 0.5), transparent 70%), radial-gradient(ellipse at 62% 30%, rgba(232, 196, 208, 0.34), transparent 54%); }
.wash-two { background: radial-gradient(ellipse at 48% 72%, rgba(245, 237, 214, 0.7), transparent 68%), radial-gradient(ellipse at 30% 42%, rgba(200, 230, 208, 0.45), transparent 58%); }
.wash-three { background: radial-gradient(ellipse at 40% 60%, rgba(200, 230, 208, 0.5), transparent 70%), radial-gradient(ellipse at 70% 40%, rgba(184, 204, 212, 0.34), transparent 60%); }
.wash-four { background: radial-gradient(ellipse at 50% 48%, rgba(232, 196, 208, 0.56), transparent 64%), radial-gradient(ellipse at 35% 70%, rgba(200, 230, 208, 0.38), transparent 60%); }
.wash-five { background: radial-gradient(ellipse at 55% 55%, rgba(245, 237, 214, 0.72), transparent 64%), radial-gradient(ellipse at 35% 35%, rgba(200, 230, 208, 0.42), transparent 58%); }

.drawing {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 360px;
  display: block;
}

.drawing path,
.drawing ellipse,
.drawing circle {
  fill: none;
  stroke: #3a6b6b;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.annotation {
  position: absolute;
  z-index: 3;
  max-width: 190px;
  padding: 0.75rem 0.9rem;
  background: #f5edd6;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.04), 0 12px 34px rgba(58, 107, 107, 0.08);
  border: 1px dashed rgba(122, 154, 154, 0.55);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.annotation::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  border-top: 1px dashed #7a9a9a;
}

.note-a { left: 2%; top: 12%; }
.note-b { right: 2%; bottom: 12%; }
.note-a::before { left: 100%; }
.note-b::before { right: 100%; }

.specimen.in-view .annotation {
  opacity: 1;
  transform: translateY(0);
}

.specimen.in-view .annotation:nth-of-type(2) { transition-delay: 150ms; }
.specimen.in-view .annotation:nth-of-type(3) { transition-delay: 300ms; }

.copy {
  margin: 1rem 0 0;
}

.marginal {
  position: absolute;
  top: 2rem;
  width: 180px;
  margin: 0;
  color: #7a9a9a;
  font-style: italic;
  font-size: 0.9rem;
}

.marginal::before {
  content: "";
  position: absolute;
  top: 0.86rem;
  width: 44px;
  border-top: 1px solid rgba(122, 154, 154, 0.5);
}

.left .marginal {
  right: calc(100% + 2rem);
  text-align: right;
}

.left .marginal::before { left: calc(100% + 0.6rem); }

.right .marginal {
  left: calc(100% + 2rem);
}

.right .marginal::before { right: calc(100% + 0.6rem); }

.root-system {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 10vh 8vw 18vh;
  background: linear-gradient(180deg, rgba(240, 247, 245, 0) 0%, rgba(26, 58, 58, 0.28) 45%, #0d2626 100%);
}

.root-panel {
  max-width: 860px;
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: rgba(240, 247, 245, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 247, 245, 0.24);
  color: rgba(240, 247, 245, 0.78);
  -webkit-mask-image: linear-gradient(180deg, #000 0 78%, rgba(0,0,0,0.25) 100%);
  mask-image: linear-gradient(180deg, #000 0 78%, rgba(0,0,0,0.25) 100%);
}

.root-panel h2 {
  color: #f0f7f5;
  letter-spacing: 0.04em;
}

@keyframes canopyLight {
  0% { background-position: 0% 20%, 100% 0%, center; }
  100% { background-position: 20% 0%, 78% 30%, center; }
}

@media (max-width: 900px) {
  .codex-spine {
    left: 24px;
  }

  .scroll-stem {
    left: -9px;
    opacity: 0.82;
  }

  .specimen {
    display: block;
    min-height: 86vh;
    padding: 8vh 7vw 8vh 56px;
  }

  .diamond {
    left: 24px;
  }

  .left .specimen-card,
  .right .specimen-card {
    margin: 0;
    width: 100%;
  }

  .plate-number {
    right: 5vw;
    left: auto;
    font-size: 32vw;
  }

  .marginal {
    position: relative;
    inset: auto;
    width: auto;
    text-align: left;
    margin-top: 1rem;
  }

  .marginal::before {
    display: none;
  }

  .annotation {
    max-width: 150px;
  }
}

@media (max-width: 560px) {
  .frost-title {
    width: 94vw;
    padding: 1.4rem;
  }

  h1 {
    letter-spacing: -0.06em;
  }

  .botanical-plate {
    min-height: 300px;
  }

  .drawing {
    height: 300px;
  }

  .annotation::before {
    width: 28px;
  }
}
