@font-face {
  font-family: "Lexend";
  src: url("fonts/Lexend.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --green: #195332;
  --green-deep: #123f26;
  --lime: #c6e79a;
  --bg: #f3f1e8;
  --bg-alt: #e8ecdc;
  --surface: #ffffff;
  --ink: #163d27;
  --ink-soft: #4d6b58;
  --accent: #2f8a3e;
  --line: rgba(25, 83, 50, 0.14);

  --glow: #e9f7c9;
  --led: #ffffff;
  --channel: #b9bdb6;
  --channel-inside: #8d928a;
  --water-top: #9fd3d6;
  --water-bottom: #5aa6b0;
  --root: #f5f2e6;
  --cup: #1d1f1c;
  --plug: #8a5a35;
  --seed: #e3cf9c;
  --leaf-dark: #3f8f2f;
  --leaf-light: #a9d84e;
  --leaf-edge: #d9f29a;
  --leaf-rib: rgba(240, 255, 210, 0.55);

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a11;
    --bg-alt: #10251a;
    --surface: #143021;
    --ink: #eef6e4;
    --ink-soft: #a9c3ad;
    --accent: #c6e79a;
    --line: rgba(198, 231, 154, 0.16);

    --glow: #d8ffb0;
    --channel: #59605a;
    --channel-inside: #2e332f;
    --water-top: #2f6f78;
    --water-bottom: #173c45;
    --root: #e9e6d6;
    --cup: #050605;
    --plug: #6e4528;
    --leaf-dark: #3c8f2c;
    --leaf-light: #b6ea55;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--green); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.accent { color: var(--accent); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0, 0, 0, 0.35);
}
.brand { display: block; line-height: 0; }
.logo { height: 38px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.topbar nav a:hover { background: var(--line); }
@media (max-width: 720px) {
  .topbar nav { display: none; }
  .logo { height: 32px; }
}

/* ---------- growth section ---------- */
.grow { position: relative; height: 420vh; height: 420svh; }
.grow-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "copy visual" "bar bar";
  gap: 0 clamp(16px, 4vw, 64px);
  padding: 90px max(var(--gutter), calc((100% - 1320px) / 2)) 28px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 42%, color-mix(in srgb, var(--lime) calc(var(--p, 0) * 55%), transparent), transparent 70%),
    var(--bg);
}
.grow-copy { grid-area: copy; align-self: center; display: grid; gap: 22px; max-width: 520px; }
.grow-copy h1 { font-size: clamp(48px, 7.4vw, 112px); }
.stage-text { min-height: 6.2em; }
.stage-name {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 12px;
}
.stage-name::before {
  content: attr(data-index); font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.stage-desc { color: var(--ink-soft); margin-top: 6px; max-width: 36ch; }
.hint { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; transition: opacity 0.4s; }
.hint-icon {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line); animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(4px); } }
.grow[data-started] .hint { opacity: 0; }

.grow-visual { grid-area: visual; min-height: 0; display: grid; place-items: center; }
#plant { width: 100%; height: 100%; max-height: 78vh; overflow: visible; }

.led { fill: var(--led); filter: drop-shadow(0 0 10px var(--glow)); }
.led-beam { opacity: calc(0.25 + var(--p, 0) * 0.75); }
.channel { fill: var(--channel); }
.ripple { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; animation: flow 3s linear infinite; }
@keyframes flow { to { transform: translateX(-60px); } }
.cup { fill: var(--cup); }
.cup-rim { fill: var(--cup); }
.cup-slots { stroke: var(--channel-inside); stroke-width: 5; stroke-linecap: round; opacity: 0.85; }
.plug { fill: var(--plug); }
.seed { fill: var(--seed); }
.root { fill: none; stroke: var(--root); stroke-linecap: round; }
.leaf { stroke: var(--leaf-edge); stroke-width: 1.1; stroke-linejoin: round; }
.rib { fill: none; stroke: var(--leaf-rib); stroke-width: 1.6; stroke-linecap: round; }
.stem { fill: none; stroke: var(--leaf-light); stroke-linecap: round; }

/* the bar */
.grow-bar {
  grid-area: bar; display: flex; align-items: center; gap: 16px;
  width: min(760px, 100%); margin: 0 auto;
  padding: 12px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(0, 0, 0, 0.45);
}
.bar-end { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.bar {
  --thumb: 44px;
  position: relative; flex: 1; height: var(--thumb);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  border-radius: 999px;
}
.bar.dragging { cursor: grabbing; }
.bar-track {
  position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); top: 50%;
  height: 10px; margin-top: -5px; border-radius: 99px;
  background: var(--line);
}
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--leaf-light));
}
.tick {
  position: absolute; top: 50%; left: calc(var(--at) * 100%);
  width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: var(--ink-soft); opacity: 0.5;
}
.bar-thumb {
  position: absolute; top: 0; left: calc(var(--p, 0) * (100% - var(--thumb)));
  width: var(--thumb); height: var(--thumb); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--lime);
  box-shadow: 0 6px 18px -6px rgba(25, 83, 50, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1);
}
@media (prefers-color-scheme: dark) {
  .bar-thumb { background: var(--lime); color: var(--green); }
}
.bar:hover .bar-thumb, .bar.dragging .bar-thumb { transform: scale(1.08); }
.bar-thumb svg { width: 30px; height: 30px; overflow: visible; }
#thumb-plant { transform-origin: 20px 32px; transform: scale(calc(0.55 + var(--p, 0) * 0.6)); }
#thumb-plant path { fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
  .grow-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "copy" "visual" "bar";
    /* Keeps the bar above the bottom-right badge Netlify injects (64px tall). */
    padding-top: 76px; padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .grow-copy { gap: 10px; }
  .grow-copy .eyebrow { display: none; }
  .grow-copy h1 { font-size: clamp(38px, 11vw, 56px); }
  .stage-text { min-height: 4.6em; }
  .stage-desc { font-size: 15px; }
  .hint { display: none; }
  #plant { max-height: none; }
  .grow-bar { padding: 8px 12px; gap: 10px; }
  .bar-end { font-size: 12px; }
}

/* ---------- content sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.section h2 { font-size: clamp(38px, 6vw, 80px); margin: 14px 0 22px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 58ch; }

.why { background: var(--bg-alt); }
.bento {
  margin-top: 48px;
  display: grid; gap: 16px;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.tile {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tile h3 { font-size: 26px; }
.tile p { color: var(--ink-soft); }
.tile-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: auto;
  display: grid; place-items: center; background: var(--green); color: var(--lime);
}
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon + h3 { margin-top: 36px; }
.bento .tile-photo { grid-row: span 2; padding: 0; overflow: hidden; min-height: 320px; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-wide { grid-column: span 2; background: var(--green); color: #fff; box-shadow: none; }
.tile-wide p { color: rgba(255, 255, 255, 0.8); }
.tile-wide .tile-icon { background: var(--lime); color: var(--green); }
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile-photo { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; min-height: 0; }
  .tile { padding: 22px; }
  .tile h3 { font-size: 21px; }
}
@media (max-width: 460px) {
  .bento { grid-template-columns: 1fr; }
  .bento .tile-photo, .tile-wide { grid-column: auto; }
}

.faq {
  margin-top: 16px; background: var(--surface); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 28px; font-weight: 600; font-size: 19px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; transition: transform 0.25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 28px 24px; color: var(--ink-soft); max-width: 70ch; }

.strip {
  list-style: none; margin: 48px 0 0; padding: 0 var(--gutter) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 340px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.strip li { scroll-snap-align: start; }
.strip li:nth-child(even) { margin-top: 48px; }
.strip figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 30, 18, 0.62); color: #fff; font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.strip b { color: var(--lime); font-weight: 600; margin-right: 6px; }

.products { background: var(--bg-alt); }
.product-grid {
  margin-top: 48px; display: grid; gap: 16px;
  grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr;
}
.product { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 240px; }
.product img { width: 100%; height: 100%; object-fit: cover; }
.product-main { grid-row: span 2; min-height: 520px; }
.product figcaption {
  position: absolute; inset: auto 16px 16px; padding: 20px 22px; border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.product h3 { font-size: 26px; }
.product figcaption p { color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .product-main { grid-column: span 2; grid-row: auto; min-height: 0; aspect-ratio: 3 / 4; }
  .product { min-height: 0; aspect-ratio: 3 / 4; }
}

.place { position: relative; overflow: hidden; color: #fff; padding: clamp(120px, 18vw, 220px) 0; }
.place-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 32, 19, 0.25), rgba(10, 32, 19, 0.82)); }
.place-card { position: relative; z-index: 1; max-width: 760px; }
.place .eyebrow { color: var(--lime); }
.place p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.button {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 16px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap;
  background: var(--lime); color: var(--green);
  transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1);
}
.button:hover { transform: translateY(-2px); }
.button svg, .footer-ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.place-address {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px;
  font-style: normal; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; color: #fff;
}
.place-address svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--lime); stroke-width: 2; }
.place-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.place-actions .button { margin-top: 0; }

.footer {
  background: var(--green); color: rgba(255, 255, 255, 0.75);
  padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.footer img { height: 48px; width: auto; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.footer-ig:hover { color: var(--lime); }
.footer-credit { flex-basis: 100%; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-credit a { color: var(--lime); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripple, .hint-icon { animation: none; }
  .bar-thumb, .button, .faq summary::after { transition: none; }
}
