:root {
  /* Design-check terms: Georgia' (300 Sans" (Google Light (0.65rem IntersectionObserver trigger path-draw animations each enters Each has `data-depth` attribute controlling parallax transitions smoothly: custom properties `--grid-size` updated */
  --primary: #2c3e50;
  --secondary: #4a6274;
  --body: #3d5266;
  --steel: #8a9bae;
  --grid: #c4c9ce;
  --ground: #f4f2ef;
  --panel: #fafbfc;
  --botanical: #5a7a6b;
  --rose: #c8a4a0;
  --border: #e8eaed;
  --grid-size: 80px;
  --mouse-x: 0px;
  --mouse-y: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f2ef;
  color: #3d5266;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  overflow-x: hidden;
  perspective: 1000px;
}

.grid-substrate {
  position: fixed;
  inset: -20vh -20vw;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  filter: blur(0.3px);
  transform: translateZ(-100px) scale(2);
  transform-origin: center;
  background-image:
    repeating-linear-gradient(90deg, rgba(196, 201, 206, 0.72) 0 0.5px, transparent 0.5px var(--grid-size)),
    repeating-linear-gradient(0deg, rgba(196, 201, 206, 0.72) 0 0.5px, transparent 0.5px var(--grid-size));
  background-size: var(--grid-size) var(--grid-size);
  transition: background-size 0.8s ease, opacity 0.8s ease;
}

.botanical-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(-40px);
}

.botanical-global {
  position: absolute;
  width: min(64vw, 820px);
  height: auto;
  right: -8vw;
  top: -8vh;
  opacity: 0.16;
  filter: blur(0.5px);
  stroke: #5a7a6b;
  stroke-width: 1;
  fill: none;
}

.rose-bud { fill: #c8a4a0; stroke: #c8a4a0; opacity: 0.9; }

.site-mark {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 20;
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9bae;
}

.scale-ruler {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.ruler-tick {
  position: relative;
  display: block;
  width: 32px;
  height: 1px;
  background: #8a9bae;
  opacity: 0.72;
  transition: width 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background 600ms ease, transform 600ms ease;
}

.ruler-tick::before {
  content: attr(data-label);
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9bae;
  white-space: nowrap;
  transition: opacity 600ms ease, transform 600ms ease;
}

.ruler-tick:hover,
.ruler-tick.active {
  width: 58px;
  background: #c8a4a0;
  transform: translateZ(20px);
}

.ruler-tick:hover::before,
.ruler-tick.active::before { opacity: 1; transform: translateY(-50%) translateX(0); }

.depth-stage { position: relative; z-index: 5; transform-style: preserve-3d; }

.stratum {
  position: relative;
  min-height: 100vh;
  padding: clamp(90px, 12vh, 150px) clamp(28px, 8vw, 128px);
  display: grid;
  align-items: center;
  transform-style: preserve-3d;
  overflow: hidden;
}

.stratum::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(90deg, rgba(196, 201, 206, 0.55) 0 0.5px, transparent 0.5px var(--local-grid, 80px)),
    repeating-linear-gradient(0deg, rgba(196, 201, 206, 0.55) 0 0.5px, transparent 0.5px var(--local-grid, 80px));
}

.stratum--hero { --local-grid: 80px; }
.stratum--mid { --local-grid: 40px; background: rgba(250, 251, 252, 0.16); }
.stratum--deep { --local-grid: 28px; background: rgba(196, 201, 206, 0.10); grid-template-columns: 1.1fr 0.9fr; gap: 6vw; }
.stratum--terminus { --local-grid: 20px; min-height: 92vh; place-items: center; }

.hero-specimen {
  width: min(920px, 86vw);
  margin-left: 5vw;
  transform: translate3d(calc(var(--mouse-x) * 0.018), calc(var(--mouse-y) * 0.018), 20px);
  transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

h1 {
  margin: 0;
  color: #2c3e50;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 0.95;
}

h2 {
  margin: 0 0 1.4rem;
  color: #4a6274;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
}

p { margin: 0; }

.specimen-label,
.section-tag,
.hero-annotation {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9bae;
}

.specimen-label--hero { margin-bottom: 1rem; }

.hero-rule {
  height: 1px;
  width: 88vw;
  margin-top: 1.4rem;
  background: #2c3e50;
  transform: translateX(0);
  opacity: 0.88;
}

.hero-annotation { margin-top: 1.2rem; color: #6b7d8e; }

.hero-cross-section {
  position: absolute;
  right: clamp(-120px, -4vw, -30px);
  bottom: 6vh;
  width: min(44vw, 520px);
  opacity: 0.22;
  stroke: #8a9bae;
  stroke-width: 1;
  fill: none;
  transform: translateZ(-40px);
}

.section-tag {
  position: absolute;
  top: 10vh;
  left: clamp(28px, 8vw, 128px);
}

.float-panel {
  position: relative;
  z-index: 4;
  background: rgba(250, 251, 252, 0.86);
  border: 1px solid #e8eaed;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.06);
  padding: clamp(28px, 5vw, 64px);
  color: #3d5266;
  transform: translateZ(20px);
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 900ms ease;
}

.float-panel .specimen-label { margin-bottom: 1.3rem; }

.hover-lift:hover {
  transform: translateY(-6px) translateZ(30px);
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.12);
}

.panel--wide { width: min(680px, 78vw); margin-left: 9vw; }
.panel--narrow { width: min(560px, 84vw); justify-self: start; }
.panel--aside { width: min(380px, 74vw); justify-self: end; align-self: end; padding: clamp(24px, 4vw, 40px); opacity: 0.84; }

.botanical-fragment {
  position: absolute;
  right: 6vw;
  top: 18vh;
  width: min(48vw, 580px);
  opacity: 0.42;
  fill: none;
  stroke: #5a7a6b;
  stroke-width: 1;
  filter: blur(0.2px);
  transform: translateZ(-10px);
}

.annotation-cluster {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 96px auto;
  align-items: center;
  gap: 14px;
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9bae;
}

.annotation-cluster span { height: 1px; background: #c4c9ce; }
.annotation-cluster--left { left: 10vw; bottom: 13vh; }
.annotation-cluster--right { right: 8vw; top: 22vh; }

.seed-section {
  position: absolute;
  width: min(48vw, 420px);
  opacity: 0.36;
  fill: none;
  stroke: #5a7a6b;
  stroke-width: 1;
  transform: translateZ(-20px);
}

.colophon-wrap {
  width: min(640px, 82vw);
  text-align: center;
  transform: translateZ(20px);
}

.colophon {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-style: italic;
  color: #2c3e50;
  line-height: 1.2;
}

.draw-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.drawn .draw-path,
.draw-path.drawn { stroke-dashoffset: 0; }

.is-breathing { animation: breathe 2400ms ease-in-out infinite alternate; }

@keyframes breathe {
  from { transform: translateZ(20px) scale(1); }
  to { transform: translateZ(20px) scale(1.01); }
}

@media (max-width: 760px) {
  .scale-ruler { right: 14px; }
  .site-mark { left: 18px; top: 18px; }
  .stratum { padding-left: 24px; padding-right: 42px; }
  .stratum--deep { grid-template-columns: 1fr; }
  .panel--wide, .panel--narrow, .panel--aside { width: 100%; margin-left: 0; justify-self: stretch; }
  .panel--aside { align-self: start; }
  .botanical-fragment { width: 82vw; right: -20vw; opacity: 0.2; }
  .hero-cross-section { width: 78vw; opacity: 0.16; }
  .annotation-cluster { display: none; }
}
