/* ==========================================================================
   BerrySmart.com · 2027
   A field guide to local commerce.
   Colors come from the official berry mark and badge.
   ========================================================================== */

:root {
  --berry: #7d0000;          /* official one-color mark */
  --berry-2: #831a1a;        /* badge, lower right */
  --berry-3: #ae2c2c;        /* badge, upper left */
  --berry-4: #d0524a;
  --butter: #fff6a3;         /* badge line art */
  --butter-2: #f2df6e;

  --night: #12060a;
  --night-2: #1b0a10;
  --night-3: #2a0f17;
  --night-line: rgba(255, 246, 163, .14);

  --paper: #f5efe4;
  --paper-2: #ebe2d1;
  --paper-3: #e2d6c1;
  --ink: #1f1416;
  --ink-2: #5b4a4b;
  --ink-3: #8a7776;
  --rule: rgba(31, 20, 22, .16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 5.2vw, 84px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .07  0 0 0 0 .07  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
[tabindex="-1"]:focus { outline: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--berry); }
:focus-visible { outline: 2px solid var(--berry-3); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, [data-theme="dark"] :focus-visible { outline-color: var(--butter); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--butter); color: var(--berry); padding: 10px 14px; border-radius: 8px;
  font: 600 14px var(--sans); text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--berry);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
[data-theme="dark"] .eyebrow { color: var(--butter); }
.eyebrow b { font-weight: 500; opacity: .6; }

.display {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 144;
  letter-spacing: -.035em;
  line-height: .94;
  text-wrap: balance;
  margin: 0;
}
.display em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 300; }
.h2 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); }
.h3 {
  font-family: var(--serif); font-weight: 420; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-variation-settings: "SOFT" 40, "opsz" 72; letter-spacing: -.02em; line-height: 1.05; margin: 0;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
[data-theme="dark"] .lede { color: rgba(255, 246, 220, .72); }
.latin { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36; }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
[data-theme="dark"] { background: var(--night); color: #f8efe2; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
[data-theme="dark"] .rule { background: var(--night-line); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--berry); --fg: var(--butter);
  position: relative; display: inline-flex; align-items: center; gap: .65em;
  padding: .95em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 15px/1 var(--sans); letter-spacing: .005em;
  transition: transform .35s var(--spring), background .25s, box-shadow .3s;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 30px -12px rgba(125,0,0,.55);
}
.btn:hover { transform: translateY(-2px); background: var(--berry-3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .35s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: rgba(255, 246, 163, .08); }
.btn--butter { --bg: var(--butter); --fg: var(--berry); }
.btn--butter:hover { background: #fffbd0; }
.link {
  color: var(--berry); text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
[data-theme="dark"] .link { color: var(--butter); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); padding-right: calc(var(--pad) + 76px);
  pointer-events: none;
  color: var(--ink);
  transition: color .4s, transform .5s var(--ease-out);
}
.topbar > * { pointer-events: auto; }
body.on-dark .topbar { color: #f8efe2; }
.topbar.is-hidden { transform: translateY(-110%); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 500 21px/1 var(--serif); letter-spacing: -.02em;
  font-variation-settings: "SOFT" 50, "opsz" 36;
}
.wordmark svg { width: 15px; height: auto; color: var(--berry); transition: color .4s; }
body.on-dark .wordmark svg { color: var(--butter); }
.wordmark em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36; }
.topnav { display: flex; gap: clamp(14px, 2vw, 30px); }
.topnav a {
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  opacity: .72; transition: opacity .2s; padding: 8px 0;
}
.topnav a:hover, .topnav a[aria-current="true"] { opacity: 1; }
.topnav a[aria-current="true"]::after { content: ""; display: block; height: 1px; background: currentColor; margin-top: 4px; }
@media (max-width: 860px) { .topnav { display: none; } }

/* ==========================================================================
   Pull-stem navigation (the berry hangs by its own stem)
   ========================================================================== */
.stem {
  position: fixed; top: 0; right: clamp(10px, 3.2vw, 44px); z-index: 60;
  width: 120px; height: 260px; pointer-events: none;
}
.stem__thread { position: absolute; inset: 0; overflow: visible; }
.stem__thread line { stroke: var(--berry); stroke-width: 1.25; transition: stroke .4s; }
body.on-dark .stem__thread line { stroke: var(--butter); }
.stem__berry {
  position: absolute; left: 0; top: 0; width: 40px; height: 60px; padding: 0; border: 0;
  background: none; cursor: grab; pointer-events: auto; touch-action: none;
  transform-origin: 19px 0; color: var(--berry); transition: color .4s;
  -webkit-tap-highlight-color: transparent;
}
.stem__berry:active { cursor: grabbing; }
body.on-dark .stem__berry { color: var(--butter); }
.stem__berry svg { width: 40px; height: 60px; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.stem__berry .fruit { transition: transform .4s var(--spring); transform-box: fill-box; transform-origin: 50% 50%; }
.stem__berry:hover .fruit, .stem__berry:focus-visible .fruit { transform: scale(1.06); }
.stem__hint {
  position: absolute; top: 0; left: 0; white-space: nowrap; pointer-events: none;
  font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--berry); opacity: .7; transition: opacity .6s, color .4s;
}
body.on-dark .stem__hint { color: var(--butter); }
.stem.is-used .stem__hint { opacity: 0; }

/* the vine: a section index running down the right edge */
.vine {
  position: fixed; right: clamp(10px, 3.2vw, 44px); top: 50%; z-index: 30;
  transform: translate(calc(19px - 50%), -50%);
  width: 32px; pointer-events: none;
}
.vine ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; justify-items: center; }
.vine ol::before {
  content: ""; position: absolute; left: 50%; top: -40px; bottom: -40px; width: 1px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, currentColor 12%, currentColor 88%, transparent);
  opacity: .25;
}
.vine { color: var(--berry); transition: color .4s, opacity .4s; }
.vine.is-dark { color: var(--butter); }
.vine a {
  position: relative; display: block; width: 11px; height: 11px; border-radius: 50%;
  border: 1.25px solid currentColor; background: var(--paper); pointer-events: auto;
  transition: transform .35s var(--spring), background .3s;
}
.vine.is-dark a { background: var(--night); }
.vine a::after { content: ""; position: absolute; inset: -9px; }
.vine a[aria-current="true"] { background: currentColor !important; transform: scale(1.35); }
.vine a:hover { transform: scale(1.35); }
.vine a span {
  position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .25s, transform .35s var(--ease-out); pointer-events: none;
}
.vine a:hover span, .vine a:focus-visible span { opacity: .9; transform: translate(0, -50%); }
.vine.is-hidden { opacity: 0; }
@media (max-width: 860px) { .vine { display: none; } }

/* ==========================================================================
   Seed map (the menu)
   ========================================================================== */
.seedmap {
  position: fixed; inset: 0; z-index: 80;
  background:
    radial-gradient(1200px 800px at 70% 50%, rgba(174, 44, 44, .22), transparent 60%),
    radial-gradient(900px 700px at 10% 100%, rgba(125, 0, 0, .25), transparent 60%),
    var(--night);
  color: #f8efe2;
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr);
  align-items: center; gap: 2vw;
  padding: clamp(70px, 8vh, 110px) var(--pad) clamp(30px, 5vh, 60px);
  clip-path: circle(0% at var(--ox, 95%) var(--oy, 6%));
  visibility: hidden;
  transition: clip-path .85s var(--ease-out), visibility 0s linear .85s;
}
.seedmap.is-open { clip-path: circle(150% at var(--ox, 95%) var(--oy, 6%)); visibility: visible; transition: clip-path .9s var(--ease-out), visibility 0s; }
.seedmap__list ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.seedmap__list li { overflow: hidden; }
.seedmap__list a {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none; padding: .22em 0;
  font-family: var(--serif); font-weight: 330; font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  transform: translateY(110%); transition: transform .8s var(--ease-out), color .25s;
}
.seedmap.is-open .seedmap__list a { transform: none; }
.seedmap__list li:nth-child(1) a { transition-delay: .12s; }
.seedmap__list li:nth-child(2) a { transition-delay: .17s; }
.seedmap__list li:nth-child(3) a { transition-delay: .22s; }
.seedmap__list li:nth-child(4) a { transition-delay: .27s; }
.seedmap__list li:nth-child(5) a { transition-delay: .32s; }
.seedmap__list li:nth-child(6) a { transition-delay: .37s; }
.seedmap__list li:nth-child(7) a { transition-delay: .42s; }
.seedmap__list a small { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--butter); opacity: .6; min-width: 2.4em; }
.seedmap__list a:hover, .seedmap__list a:focus-visible { color: var(--butter); }
.seedmap__list a:hover em, .seedmap__list a:focus-visible em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.seedmap__list a em { font-style: normal; transition: none; }
.seedmap__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.seedmap__foot .if-touch { display: none; }
@media (hover: none) { .seedmap__foot .if-hover { display: none; } .seedmap__foot .if-touch { display: inline; } }
.seedmap__graph { position: relative; height: min(78vh, 760px); }
.seedmap__graph svg { width: 100%; height: 100%; overflow: visible; }
.seedmap__caption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: min(100%, 560px);
  text-align: center; margin: 0; font: 400 14px/1.5 var(--sans); color: rgba(248, 239, 226, .7); min-height: 3em;
}
.seedmap__caption b { color: var(--butter); font-weight: 600; }
.seedmap__close {
  position: absolute; top: 22px; left: var(--pad); background: none; border: 0; cursor: pointer;
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--butter);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 0;
}
.seedmap__close::before { content: "×"; font: 300 22px/0 var(--sans); }
.sm-edge { fill: none; stroke: rgba(255, 246, 163, .22); stroke-width: 1.1; transition: stroke .3s, opacity .3s; }
.sm-edge.is-hot { stroke: rgba(255, 246, 163, .8); }
.sm-edge.is-dim { opacity: .18; }
.sm-edge-label { font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--butter); opacity: 0; transition: opacity .3s; }
.sm-edge-label.is-hot { opacity: .85; }
.sm-signal { fill: var(--butter); }
.sm-signal.is-dim { opacity: .15; }
.sm-node { cursor: pointer; outline: none; }
.sm-node circle.body { fill: var(--night-2); stroke: rgba(255, 246, 163, .55); stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.sm-node .ring { fill: none; stroke: rgba(255, 246, 163, .0); stroke-width: 1; transition: stroke .3s, r .4s var(--spring); }
.sm-node text { fill: #f8efe2; font-family: var(--serif); font-size: 19px; text-anchor: middle; font-variation-settings: "SOFT" 50, "opsz" 36; transition: fill .3s; }
.sm-node text.sub { font: 400 10px var(--mono); letter-spacing: .1em; fill: rgba(248, 239, 226, .55); text-transform: uppercase; }
.sm-node .glyph { fill: none; stroke: var(--butter); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sm-node.is-hot circle.body, .sm-node:focus-visible circle.body { fill: var(--berry); stroke: var(--butter); }
.sm-node.is-hot .ring, .sm-node:focus-visible .ring { stroke: rgba(255, 246, 163, .35); }
.sm-node.is-dim { opacity: .32; }
.sm-node, .sm-edge, .sm-signal { transition: opacity .3s; }
.sm-hub circle { fill: url(#smHubGrad); }
.sm-hub-mark { color: var(--butter); }

@media (max-width: 900px) {
  .seedmap { grid-template-columns: 1fr; align-content: start; overflow-y: auto; padding-top: 64px; }
  .seedmap__graph { height: min(44svh, 104vw); order: -1; margin: -10px -10px 0; }
  .seedmap__list a { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .seedmap__caption { display: none; }
}

/* the berry that flies from the stem into the map hub */
.flyer { position: fixed; z-index: 90; pointer-events: none; color: var(--butter); width: 40px; height: 60px; transform-origin: 0 0; }
.flyer svg { width: 100%; height: 100%; overflow: visible; }

/* ==========================================================================
   Hero: the living berry
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  background:
    radial-gradient(900px 700px at 74% 46%, rgba(174, 44, 44, .30), transparent 62%),
    radial-gradient(700px 600px at 10% 110%, rgba(125, 0, 0, .35), transparent 60%),
    var(--night);
  overflow: hidden;
  padding: 120px 0 90px;
}
.hero::after { /* faint paper grain on the night */
  content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: screen; pointer-events: none;
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 4vw; }
.hero__copy { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(3.2rem, 8.6vw, 8.4rem); margin: 26px 0 28px; color: #fbf3e6; }
.hero h1 em { color: var(--butter); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero .lede { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out) .55s, transform 1s var(--ease-out) .55s; }
.is-ready .hero__fade { opacity: 1; transform: none; }
.is-ready .hero__fade.d2 { transition-delay: .75s; }
.is-ready .hero__fade.d3 { transition-delay: .95s; }

.pulse {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0;
  margin: 46px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line);
}
.pulse li { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--night-line); }
.pulse li:last-child { border-right: 0; margin-right: 0; }
.pulse strong { display: block; font: 400 clamp(1.6rem, 2.6vw, 2.3rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; color: #fbf3e6; }
.pulse li > span { display: block; margin-top: 8px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(248, 239, 226, .55); }
.pulse .src { margin-left: 4px; }
@media (max-width: 560px) { .pulse { grid-template-columns: 1fr 1fr; } .pulse li:nth-child(2) { border-right: 0; margin-right: 0; } .pulse li:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--night-line); margin-top: 18px; } }

.hero__berry {
  position: relative; width: min(100%, 400px, 54svh); aspect-ratio: 2 / 3; justify-self: center; margin-top: 4svh;
  touch-action: pan-y;
}
.hero__berry canvas, .hero__berry .mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__berry canvas { z-index: 1; }
.hero__berry .mark { z-index: 2; overflow: visible; pointer-events: none; color: var(--butter); }
.hero__berry .mark .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.is-ready .hero__berry .mark .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out); }
.is-ready .hero__berry .mark .d-stem { transition-delay: .25s; }
.is-ready .hero__berry .mark .d-arc { transition-delay: 1.2s; transition-duration: .9s; }
.hero__berry .mark .leaf { transform-box: fill-box; transform-origin: 0% 80%; transform: scale(0) rotate(-30deg); transition: transform 1.1s var(--spring) .9s; }
.is-ready .hero__berry .mark .leaf { transform: none; }
.hero__berry .shadow {
  position: absolute; left: 12%; right: 8%; bottom: -5%; height: 9%; z-index: 0;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(6px);
}
.hero__berry.is-static canvas { display: none; }
.hero__berry.is-static .mark .fill-static { display: block; }
.hero__berry .mark .fill-static { display: none; }
.berry-tip {
  position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none;
  padding: 8px 12px 9px; border-radius: 10px; background: rgba(18, 6, 10, .88); border: 1px solid rgba(255, 246, 163, .3);
  color: #fbf3e6; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.berry-tip.is-on { opacity: 1; }
.berry-tip b { display: block; font: 500 16px/1.1 var(--serif); }
.berry-tip i { display: block; font: italic 12px/1.3 var(--serif); color: var(--butter); opacity: .85; }
.berry-tip small { display: block; margin-top: 4px; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.hero__hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(248,239,226,.45);
  display: flex; align-items: center; gap: 10px;
}
.hero__hint i { width: 1px; height: 34px; background: linear-gradient(var(--butter), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding-top: 138px; } /* clear of the hanging berry and its PULL label */
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__berry { order: -1; width: min(64vw, 290px, 36svh); margin-bottom: -10px; }
  .hero h1 { margin-top: 18px; }
  .hero__hint { display: none; }
}

/* ---------- sourced numbers (Doozer's rule: every fact names its source) ---------- */
.src {
  display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; vertical-align: super;
  border: 1px solid currentColor; font: 600 8.5px/1 var(--mono); cursor: help; opacity: .6; padding: 0;
  background: none; color: inherit; transition: opacity .2s, background .2s, color .2s;
}
.src:hover, .src:focus-visible, .src[aria-expanded="true"] { opacity: 1; background: var(--butter); color: var(--berry); border-color: var(--butter); }
.sidenote {
  position: fixed; z-index: 95; max-width: 290px; padding: 14px 16px 15px; border-radius: 12px; pointer-events: none;
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06);
  font: 400 13.5px/1.45 var(--sans); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease-out);
}
.sidenote.is-on { opacity: 1; transform: none; }
.sidenote b { display: block; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--berry); margin-bottom: 8px; }
.sidenote .when { display: block; margin-top: 8px; font: 500 10.5px/1.3 var(--mono); color: var(--ink-3); }
.sidenote .live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2f8f4e; margin-right: 6px; box-shadow: 0 0 0 0 rgba(47,143,78,.5); animation: live 2s infinite; vertical-align: 1px; }
.sidenote .live.is-stale { background: var(--ink-3); animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47,143,78,.45); } 70% { box-shadow: 0 0 0 7px rgba(47,143,78,0); } 100% { box-shadow: 0 0 0 0 rgba(47,143,78,0); } }

/* odometer digits */
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.odo > span { display: inline-block; position: relative; }
.odo .col { display: flex; flex-direction: column; transition: transform 1.6s var(--ease-out); }
.odo .col i { font-style: normal; height: 1em; line-height: 1; }

/* ==========================================================================
   01 · The botany
   ========================================================================== */
.botany__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.botany .h2 { margin: 26px 0 34px; }
.botany__copy p { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 32em; }
.botany__copy p.first::first-letter {
  float: left; font: 400 4.6em/.8 var(--serif); margin: .08em .1em 0 0; color: var(--berry);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.fig { margin: 0; }
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig figcaption { margin-top: 14px; font: 400 13px/1.5 var(--sans); color: var(--ink-3); max-width: 34em; }
.fig figcaption b { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--berry); margin-right: 8px; }
.ink { fill: none; stroke: var(--berry); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ink-thin { fill: none; stroke: var(--berry); stroke-width: 1; stroke-linecap: round; }
.ink-fill { fill: var(--berry); }
.butter-fill { fill: var(--butter); }
.label { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--berry); }
.label-serif { font: italic 400 17px var(--serif); fill: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24; }
.label-sub { font: 400 13px var(--sans); fill: var(--ink-2); }
.drawable { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.is-drawn .drawable { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.fadeable { opacity: 0; transition: opacity .8s var(--ease-out); transition-delay: var(--d, 0s); }
.is-drawn .fadeable { opacity: 1; }
.growable { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.is-drawn .growable { transform: none; }
.popable { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s var(--spring); transition-delay: var(--d, 0s); }
.is-drawn .popable { transform: none; }

.method { margin-top: clamp(80px, 10vw, 150px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.method li { list-style: none; padding: 26px 26px 6px 0; border-right: 1px solid var(--rule); margin-right: 26px; }
.method li:last-child { border-right: 0; margin-right: 0; }
.method ol { display: contents; }
.method .n { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--berry); }
.method h3 { margin: 18px 0 12px; font: 400 clamp(1.45rem, 2.1vw, 1.9rem)/1.05 var(--serif); letter-spacing: -.02em; font-variation-settings: "SOFT" 50, "opsz" 72; }
.method p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 980px) {
  .botany__grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .method li:nth-child(2) { border-right: 0; margin-right: 0; }
  .method li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) { .method { grid-template-columns: 1fr; } .method li { border-right: 0 !important; margin-right: 0 !important; border-top: 1px solid var(--rule); } .method li:first-child { border-top: 0; } }

/* ==========================================================================
   02 · The field guide
   ========================================================================== */
.guide { background: var(--paper-2) var(--grain); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.guide__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4vw; align-items: end; margin-bottom: clamp(60px, 8vw, 120px); }
.guide__head .h2 { margin-top: 26px; }
.guide__head p { color: var(--ink-2); max-width: 30em; margin: 0; }
.guide__body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 90px); }

.plate {
  position: sticky; top: 9vh; height: 82vh; max-height: 860px;
  background: var(--paper) var(--grain); border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -40px rgba(60, 20, 20, .45);
  padding: 22px 26px; display: grid; grid-template-rows: auto 1fr auto;
}
.plate::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule); pointer-events: none; }
.plate__top, .plate__bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; position: relative; z-index: 1; }
.plate__no { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--berry); }
.plate__latin { font-size: 16px; color: var(--ink-2); }
.plate__name { font: 400 clamp(1.4rem, 2.2vw, 2rem)/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "SOFT" 50, "opsz" 72; }
.plate__fig { position: relative; min-height: 0; }
.plate__fig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate__caption { font: 400 12.5px/1.45 var(--sans); color: var(--ink-3); max-width: 36em; margin: 0; }
.plate__swap { transition: opacity .35s; }
.plate.is-swapping .plate__swap { opacity: 0; }

.specimen-photo {
  position: absolute; right: -3%; bottom: 1%; width: 33%; z-index: 2;
  background: #fff; padding: 7px 7px 26px; transform: rotate(3deg);
  box-shadow: 0 12px 30px -10px rgba(40, 10, 10, .35);
  transition: transform .6s var(--spring), opacity .4s;
}
.specimen-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; background: var(--paper-3); }
.specimen-photo figcaption { position: absolute; left: 9px; bottom: 7px; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
.specimen-photo::before { /* tape */
  content: ""; position: absolute; left: 50%; top: -11px; width: 74px; height: 22px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 246, 163, .72); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.plate:hover .specimen-photo { transform: rotate(0deg) scale(1.04); }

.specimens { list-style: none; margin: 0; padding: 0; }
.specimen { min-height: 78vh; padding: 6vh 0; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--rule); }
.specimen:first-child { border-top: 0; padding-top: 0; min-height: 70vh; justify-content: flex-start; }
.specimen__no { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--berry); display: flex; gap: 14px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); letter-spacing: .1em; font-size: 10px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2f8f4e; }
.status.is-early::before { background: #c9922b; }
.status.is-building::before { background: transparent; border: 1px solid var(--ink-3); }
.status.is-wild::before { background: var(--berry-3); }
.specimen h3 { margin: 18px 0 4px; font: 380 clamp(2.4rem, 4.4vw, 3.9rem)/1 var(--serif); letter-spacing: -.035em; font-variation-settings: "SOFT" 60, "opsz" 144; }
.specimen .latin { font-size: 19px; color: var(--ink-2); }
.specimen .tag { margin: 22px 0 14px; font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.35 var(--serif); font-variation-settings: "opsz" 36; color: var(--berry); }
.specimen p { color: var(--ink-2); font-size: 16.5px; max-width: 34em; }
.specimen dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 18px 0 0; font-size: 14.5px; max-width: 34em; }
.specimen dt { font: 500 10.5px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.specimen dd { margin: 0; color: var(--ink); }
.specimen dd .chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border-radius: 999px; background: rgba(125,0,0,.06); color: var(--berry); font-size: 13px; text-decoration: none; transition: background .2s; }
.specimen dd a.chip:hover { background: var(--butter); }
.specimen .visit { margin-top: 24px; }
.specimen .note { font: italic 400 15px/1.5 var(--serif); color: var(--ink-2); border-left: 2px solid var(--butter-2); padding-left: 14px; margin-top: 18px; }
.specimen__fig { display: none; }

@media (max-width: 980px) {
  .guide__head { grid-template-columns: 1fr; }
  .guide__body { grid-template-columns: 1fr; }
  .plate { display: none; }
  .specimen { min-height: 0; padding: 56px 0; }
  .specimen:first-child { min-height: 0; }
  .specimen__fig { display: block; position: relative; margin: 26px 0 4px; aspect-ratio: 1 / 1; background: var(--paper); border: 1px solid var(--rule); }
  .specimen__fig svg { position: absolute; inset: 4%; width: 92%; height: 92%; overflow: visible; }
  .specimen__fig .specimen-photo { width: 44%; right: 2%; bottom: 2%; }
}

/* ==========================================================================
   03 · The loop
   ========================================================================== */
.loop { position: relative; height: 760vh; }
.loop__intro { position: relative; z-index: 2; padding-top: clamp(96px, 12vw, 170px); }
.loop__intro .h2 { margin: 26px 0 26px; max-width: 11ch; }
.loop__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.loop__inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 3vw; }
.loop__steps { position: relative; height: 15em; }
.loop__step { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); pointer-events: none; }
.loop__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.loop__when { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--butter); opacity: .8; }
.loop__step h3 { margin: 16px 0 14px; font: 360 clamp(2.1rem, 3.8vw, 3.4rem)/1 var(--serif); letter-spacing: -.03em; font-variation-settings: "SOFT" 60, "opsz" 144; }
.loop__step h3 em { font-style: italic; color: var(--butter); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.loop__step p { color: rgba(248, 239, 226, .72); font-size: 17px; max-width: 26em; }
.loop__count { position: absolute; left: 0; bottom: 9vh; font: 500 11px/1 var(--mono); letter-spacing: .14em; color: rgba(248,239,226,.5); display: flex; gap: 12px; align-items: center; }
.loop__count i { display: block; width: 120px; height: 1px; background: rgba(255,246,163,.18); position: relative; }
.loop__count i::after { content: ""; position: absolute; inset: 0; background: var(--butter); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loop__ring { position: relative; width: min(100%, 78svh, 760px); aspect-ratio: 1; justify-self: center; }
.loop__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__track { fill: none; stroke: rgba(255, 246, 163, .14); stroke-width: 1; }
.loop__trail { fill: none; stroke: url(#trailGrad); stroke-width: 2.2; stroke-linecap: round; }
.loop__node circle { fill: var(--night); stroke: rgba(255, 246, 163, .45); stroke-width: 1.2; transition: fill .4s, stroke .4s, r .5s var(--spring); }
.loop__node.is-past circle { fill: var(--berry); stroke: var(--butter); }
.loop__node.is-on circle { fill: var(--butter); stroke: var(--butter); }
.loop__node text { fill: rgba(248, 239, 226, .55); font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: fill .4s; }
.loop__node.is-on text, .loop__node.is-past text { fill: #f8efe2; }
.loop__seed { fill: var(--butter); filter: url(#seedGlow); }
.loop__screen {
  position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%);
  aspect-ratio: 1.05; display: grid; place-items: center;
}
.vig { position: absolute; width: 100%; opacity: 0; transform: scale(.94) translateY(10px); transition: opacity .45s, transform .6s var(--ease-out); pointer-events: none; }
.vig.is-on { opacity: 1; transform: none; }
.loop__foot { position: absolute; right: var(--pad); bottom: 3.6vh; font: 400 12px/1.4 var(--sans); color: rgba(248,239,226,.42); max-width: 30em; text-align: right; }

@media (max-width: 900px) {
  .loop { height: 820vh; }
  .loop__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 70px; gap: 0; }
  .loop__ring { width: min(92vw, 52svh); order: -1; }
  .loop__steps { height: 13em; margin-top: 8px; }
  .loop__step h3 { font-size: 1.9rem; margin: 10px 0 8px; }
  .loop__step p { font-size: 15px; }
  .loop__count { display: none; }
  .loop__foot { left: var(--pad); right: var(--pad); text-align: left; bottom: 2vh; font-size: 11px; }
  .loop__screen { width: 66%; }
}

/* vignettes: small, honest HTML mockups of each product */
.ui {
  background: #fffdf8; color: #1f1416; border-radius: 14px; overflow: hidden; font: 400 12.5px/1.4 var(--sans);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,246,163,.15);
}
.ui__bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #f3ecdf; border-bottom: 1px solid rgba(0,0,0,.06); font: 500 10px/1 var(--mono); color: #7a6a68; letter-spacing: .04em; }
.ui__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d9cbb6; }
.ui__bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui__body { padding: 14px; }
.ui__search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; border: 1px solid #e5dccd; font-size: 12.5px; }
.ui__search::before { content: ""; width: 10px; height: 10px; border: 1.5px solid #8a7776; border-radius: 50%; }
.ui__row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0e8da; }
.ui__row:last-child { border-bottom: 0; }
.ui__thumb { width: 34px; height: 34px; border-radius: 8px; background: repeating-linear-gradient(90deg, #c69a6d 0 5px, #b88a5c 5px 10px); }
.ui__thumb.b { background: repeating-linear-gradient(90deg, #8f6a4a 0 5px, #7e5c3f 5px 10px); }
.ui__row b { display: block; font-size: 12.5px; }
.ui__row small { color: #8a7776; font-size: 11px; }
.ui__pill { font: 600 10px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: #e7f3ea; color: #23703d; white-space: nowrap; }
.ui__pill.red { background: #f9e3e1; color: var(--berry); }
.ui__pill.amber { background: #fbf0d4; color: #8a5a08; }
.ui__h { font: 500 17px/1.15 var(--serif); margin: 2px 0 4px; }
.ui__k { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #eadfcd; font-size: 12px; }
.ui__k span:last-child { color: #8a7776; font: 500 10px/1.6 var(--mono); }
.ui__k .ok { color: #23703d; }
.ui__meter { height: 6px; border-radius: 6px; background: #f0e6d6; overflow: hidden; margin-top: 8px; }
.ui__meter i { display: block; height: 100%; width: var(--w, 50%); background: linear-gradient(90deg, var(--berry-3), var(--berry)); border-radius: inherit; }
.ui__toast { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #efe6d6; box-shadow: 0 8px 20px -12px rgba(0,0,0,.25); margin-bottom: 8px; }
.ui__avatar { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e2a48a, #b26b52); }
.ui__avatar.q { background: radial-gradient(circle at 35% 35%, #cfc3b0, #a08f78); display: grid; place-items: center; color: #fff; font: 700 13px var(--sans); }
.ui__btns { display: flex; gap: 6px; margin-top: 9px; }
.ui__btn { font: 600 11px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: var(--berry); color: var(--butter); }
.ui__btn.o { background: transparent; color: var(--berry); box-shadow: inset 0 0 0 1px rgba(125,0,0,.3); }
.ui__qr { width: 78px; height: 78px; border-radius: 8px; background: #fff; padding: 6px; box-shadow: inset 0 0 0 1px #eadfcd; }
.ui__stars { color: #d4a017; letter-spacing: 2px; font-size: 14px; }
.ui__polaroid { background: #fff; padding: 8px 8px 24px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); position: relative; }
.ui__polaroid .img { aspect-ratio: 4 / 3; background: repeating-linear-gradient(90deg, #a77750 0 9px, #96683f 9px 18px, #b0825a 18px 27px); position: relative; overflow: hidden; }
.ui__polaroid .img.before { filter: grayscale(.6) brightness(.85) contrast(.9); background: repeating-linear-gradient(90deg, #8a7b6a 0 9px, #7d6e5f 9px 18px, #918271 18px 27px); }
.ui__polaroid .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 40%); }
.ui__polaroid small { position: absolute; left: 10px; bottom: 6px; font: 500 9.5px var(--mono); color: #8a7776; }

/* ==========================================================================
   04 · Proving grounds
   ========================================================================== */
.grounds__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4vw; align-items: end; margin-bottom: clamp(50px, 6vw, 90px); }
.grounds__head .h2 { margin-top: 26px; }
.grounds__head p { color: var(--ink-2); margin: 0; max-width: 30em; }
.grounds__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ground {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); background: rgba(255, 253, 247, .55);
  border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s;
}
.ground:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(80, 20, 20, .5); background: #fffdf7; }
.ground__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); border-bottom: 1px solid var(--rule); }
.ground__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.ground:hover .ground__shot img { transform: scale(1.04); }
.ground__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ground__where { font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.ground h3 { margin: 0; font: 400 1.9rem/1 var(--serif); letter-spacing: -.025em; font-variation-settings: "SOFT" 50, "opsz" 72; }
.ground p { font-size: 15px; color: var(--ink-2); margin: 0; }
.ground ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ground li { font: 500 11px/1 var(--sans); padding: 6px 9px; border-radius: 999px; background: rgba(125, 0, 0, .06); color: var(--berry); }
.ground__go { margin-top: auto; padding-top: 12px; font: 600 14px/1 var(--sans); color: var(--berry); display: inline-flex; gap: 8px; }
.ground--you { background: var(--berry); color: #fbf3e6; border-color: var(--berry); justify-content: space-between; }
.ground--you:hover { background: var(--berry-2); }
.ground--you .ground__body { justify-content: flex-end; padding: 28px; }
.ground--you h3 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.ground--you p { color: rgba(251, 243, 230, .78); }
.ground--you .ground__where, .ground--you .ground__go { color: var(--butter); }
.ground--you .seedling { flex: 1; display: grid; place-items: center; padding: 30px; min-height: 220px; }
.ground--you .seedling svg { width: 42%; max-width: 160px; color: var(--butter); overflow: visible; }
.ground--you .seedling .grow { transform-origin: 50% 100%; transform-box: fill-box; transition: transform .9s var(--spring); }
.ground--you:hover .seedling .grow { transform: scale(1.08) rotate(-3deg); }
@media (max-width: 980px) { .grounds__head { grid-template-columns: 1fr; } .grounds__grid { grid-template-columns: 1fr 1fr; } .ground--you { grid-column: 1 / -1; } }
@media (max-width: 620px) { .grounds__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   05 · Home (West Milford nocturne)
   ========================================================================== */
.home { padding: 0; }
.home__scene { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.home__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.home__copy { position: absolute; z-index: 2; left: 0; right: 0; top: clamp(90px, 13vh, 150px); pointer-events: none; }
.home__copy .h2 { margin: 24px 0 22px; color: #fbf3e6; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.home__copy .lede { color: rgba(255, 249, 236, .82); text-shadow: 0 1px 20px rgba(0,0,0,.35); }
.home__copy a, .home__copy button { pointer-events: auto; }
.home__scene.is-day .home__copy .h2 { color: #1f1416; text-shadow: 0 2px 30px rgba(255,255,255,.35); }
.home__scene.is-day .home__copy .lede { color: rgba(31, 20, 22, .78); text-shadow: 0 1px 20px rgba(255,255,255,.4); }
.home__scene.is-day .eyebrow { color: var(--berry); }
.home__dial {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%);
  width: min(92vw, 620px); padding: 16px 20px 14px; border-radius: 18px;
  background: rgba(18, 6, 10, .55); border: 1px solid rgba(255, 246, 163, .18);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #fbf3e6;
}
.home__dial .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.home__dial .now { font: 400 15px/1.2 var(--serif); }
.home__dial .now b { font-weight: 500; color: var(--butter); font-variant-numeric: tabular-nums; }
.home__dial button { background: none; border: 0; padding: 0; cursor: pointer; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--butter); opacity: .85; }
.home__dial button[hidden] { display: none; }
.home__dial input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: ew-resize; margin: 0; }
.home__dial input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #120a1f, #2b2a4a 22%, #e79a74 27%, #8db6d4 40%, #9cc3d9 60%, #e0784a 76%, #2c1838 82%, #120818); }
.home__dial input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #120a1f, #2b2a4a 22%, #e79a74 27%, #8db6d4 40%, #9cc3d9 60%, #e0784a 76%, #2c1838 82%, #120818); }
.home__dial input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--butter); border: 3px solid var(--berry); box-shadow: 0 0 0 4px rgba(255, 246, 163, .2), 0 4px 12px rgba(0,0,0,.4); }
.home__dial input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--butter); border: 3px solid var(--berry); box-shadow: 0 0 0 4px rgba(255, 246, 163, .2); }
.home__dial .ticks { display: flex; justify-content: space-between; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; opacity: .5; margin-top: 4px; }
.home__facts { position: absolute; z-index: 2; right: var(--pad); top: clamp(96px, 14vh, 160px); display: grid; gap: 16px; text-align: right; color: #fbf3e6; }
.home__facts div { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.home__facts strong { display: block; font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--serif); letter-spacing: -.02em; text-transform: none; opacity: 1; margin-bottom: 4px; }
.home__scene.is-day .home__facts { color: #1f1416; }
@media (max-width: 900px) { .home__facts { position: static; display: none; } }

.plan { padding: clamp(80px, 10vw, 150px) 0 clamp(96px, 12vw, 170px); }
.plan__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.plan__head .h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); margin-top: 24px; }
.plan__head p { max-width: 28em; color: rgba(248, 239, 226, .7); margin: 0; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,246,163,.22); }
.phases::after { content: ""; position: absolute; left: 0; top: 7px; height: 1px; width: 100%; background: var(--butter); transform-origin: left; transform: scaleX(var(--grow, 0)); transition: transform 2.4s var(--ease-out); }
.phases.is-drawn { --grow: 1; }
.phases li { position: relative; padding: 38px 28px 0 0; }
.phases li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--butter); background: var(--night); transition: background .5s; transition-delay: calc(var(--i) * .5s + .3s); z-index: 1; }
.phases.is-drawn li::before { background: var(--butter); }
.phases .q { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--butter); opacity: .75; }
.phases h3 { margin: 14px 0 10px; font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--serif); letter-spacing: -.02em; font-variation-settings: "SOFT" 60, "opsz" 72; }
.phases p { color: rgba(248, 239, 226, .68); font-size: 15px; }
@media (max-width: 900px) {
  .phases { grid-template-columns: 1fr; padding-left: 34px; }
  .phases::before, .phases::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .phases::after { transform: scaleY(var(--grow, 0)); transform-origin: top; height: 100%; }
  .phases li { padding: 0 0 34px; }
  .phases li::before { left: -34px; top: 4px; }
}

/* ==========================================================================
   06 · Plant something
   ========================================================================== */
.plant__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.plant .h2 { margin: 26px 0 26px; }
.plant__aside p { color: var(--ink-2); max-width: 26em; }
.pot { margin-top: 40px; width: min(220px, 50%); color: var(--berry); }
.pot svg { width: 100%; height: auto; overflow: visible; }
.pot .soil { fill: var(--paper-3); }
.pot .seed { transform-box: fill-box; transform-origin: center; transition: transform 1.1s var(--spring), opacity .5s 1.3s; animation: bob 3s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.pot #sprout { color: var(--berry); }
.pot .m-ring, .pot .m-stem, .pot .m-arc { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.pot .m-arc { stroke-linecap: round; }
.pot .m-leaf { transform-box: fill-box; transform-origin: 0% 80%; transform: scale(0) rotate(-30deg); }
.pot.is-grown .seed { animation: none; transform: translateY(-76px) scale(2.2); opacity: 0; }
.pot.is-grown .m-ring { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-out) .45s; }
.pot.is-grown .m-stem { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out) 1.25s; }
.pot.is-grown .m-leaf { transform: none; transition: transform 1.1s var(--spring) 1.95s; }
.pot.is-grown .m-arc { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease-out) 2.4s; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.field { position: relative; grid-column: span 1; padding-top: 22px; }
.field.wide { grid-column: 1 / -1; }
.field label { position: absolute; left: 0; top: 34px; font: 400 17px/1 var(--sans); color: var(--ink-3); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .25s; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 12px 0 12px; border-radius: 0;
  font: 400 17px/1.4 var(--sans); color: var(--ink); outline: none; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237d0000' stroke-width='1.5'/></svg>") right 4px center no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--berry); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-26px) scale(.72); color: var(--berry); }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--berry); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.field input:focus ~ .bar, .field textarea:focus ~ .bar, .field select:focus ~ .bar { transform: scaleX(1); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.form__msg { font-size: 14.5px; color: var(--ink-2); margin: 0; min-height: 1.4em; }
.form__msg.is-error { color: var(--berry-3); }
.form.is-sent .field, .form.is-sent .form__foot .btn { opacity: .35; pointer-events: none; transition: opacity .6s; }
@media (max-width: 900px) { .plant__grid { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } .field { grid-column: 1 / -1; } .pot { display: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(70px, 9vw, 120px) 0 40px; }
.footer__stem { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: 0 0 clamp(60px, 8vw, 110px); padding: 0; list-style: none; }
.footer__stem::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,246,163,.25); }
.footer__stem li { position: relative; padding: 30px 12px 0 0; }
.footer__stem li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; border: 1.25px solid var(--butter); background: var(--night); transition: background .3s, transform .4s var(--spring); }
.footer__stem li:hover::before { background: var(--butter); transform: scale(1.3); }
.footer__stem a { text-decoration: none; display: block; }
.footer__stem b { display: block; font: 400 19px/1.1 var(--serif); font-variation-settings: "opsz" 36; }
.footer__stem span { display: block; margin-top: 6px; font: 500 10px/1.3 var(--mono); letter-spacing: .08em; color: rgba(248,239,226,.5); }
.footer__big { font-size: clamp(4rem, 17vw, 17rem); line-height: .8; letter-spacing: -.06em; color: #fbf3e6; margin: 0 0 30px; white-space: nowrap; }
.footer__big em { color: var(--butter); }
.footer__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(248,239,226,.5); border-top: 1px solid var(--night-line); padding-top: 22px; }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--butter); }
@media (max-width: 980px) { .footer__stem { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; } .footer__stem::before { display: none; } }
@media (max-width: 520px) { .footer__stem { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span, .hero__fade { transform: none; opacity: 1; }
  .loop { height: auto; }
  .loop__stage { position: relative; height: auto; }
  .loop__inner { grid-template-columns: 1fr; padding: 40px 0 80px; }
  .loop__steps { height: auto; display: grid; gap: 40px; }
  .loop__step { position: relative; opacity: 1; transform: none; }
  .loop__ring { display: none; }
  .loop__count { display: none; }
  .loop__foot { position: static; text-align: left; }
}

/* no-JS fallbacks */
.no-js .hero h1 .line > span, .no-js .hero__fade, .no-js .reveal { transform: none; opacity: 1; }
.no-js .hero__berry canvas { display: none; }
.no-js .hero__berry .mark .fill-static { display: block; }
.no-js .hero__berry .mark .draw { stroke-dashoffset: 0; }
.no-js .hero__berry .mark .leaf { transform: none; }
.no-js .stem, .no-js .vine { display: none; }
