/* Clay Studio, from lib/herbie.tsx. Colour always means something: rain is water, late is overdue. */
:root {
  --canvas: #f5eee6;
  --paper: #fffbf6;
  --wash: #eee2d5;
  --ink: #2a1a12;
  --muted: #69544a;
  --faint: #a8988c;
  --line: #e5d7c8;
  --primary: #b04a27;
  --primary-pressed: #8e3a1d;
  --primary-soft: #fae7dd;
  --on-primary: #fffbf6;
  --rain: #2a68b0;
  --rain-soft: #dce6f2;
  --late: #9e5a00;
  --late-soft: #faebd6;
  --clay: #c8643a;
  --pollen: #c9a227;
  --camera: #16201a;

  --sage-soft: #d7e5e1;
  --sage-tone: #86ada7;
  --sage-deep: #24534d;
  --lime-soft: #e5eac3;
  --lime-tone: #b3be5e;
  --lime-deep: #555e1c;
  --lilac-soft: #e6dfee;
  --lilac-tone: #a592c4;
  --lilac-deep: #4e3d76;
  --clay-soft: #f1dfd3;
  --clay-tone: #c7825f;
  --clay-deep: #7a3e23;
  --pollen-soft: #f2e6c4;
  --pollen-tone: #d6b056;
  --pollen-deep: #6e520f;
  --rose-soft: #f1dbd7;
  --rose-tone: #d4968a;
  --rose-deep: #833f34;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --latin: "Fraunces", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;

  /* The `settle` spring as a curve: arrives and rests, never overshoots. */
  --settle: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 72px);
}

[data-theme="dark"] {
  --canvas: #141312;
  --paper: #1f1d1b;
  --wash: #2a2826;
  --ink: #f3efea;
  --muted: #aba49d;
  --faint: #726c66;
  --line: #35322f;
  --primary: #f08a5d;
  --primary-pressed: #f4a27c;
  --primary-soft: #3a2117;
  --on-primary: #1f1d1b;
  --rain: #7eb0ec;
  --rain-soft: #18222f;
  --late: #f0b44c;
  --late-soft: #33250f;
  --clay: #e08a62;
  --pollen: #e0c04e;
  --camera: #0a0f0c;

  --sage-soft: #1e3331;
  --sage-deep: #cbe2de;
  --lime-soft: #2a2e14;
  --lime-deep: #e1e7b4;
  --lilac-soft: #2a2438;
  --lilac-deep: #e0d7ee;
  --clay-soft: #36241a;
  --clay-tone: #d08e6c;
  --clay-deep: #f2d6c6;
  --pollen-soft: #332a12;
  --pollen-deep: #f1e1b4;
  --rose-soft: #35211e;
  --rose-deep: #f3d6d0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
html {
  background: var(--canvas);
  transition: background-color 0.6s var(--settle);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition:
    background-color 0.6s var(--settle),
    color 0.6s var(--settle);
}
body.is-loading {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
::selection {
  background: var(--primary);
  color: var(--on-primary);
}

/* Paper grain over everything, like a potter's sunny workshop. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after {
  filter: invert(1);
  opacity: 0.025;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 18px;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 7.2vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
}
.accent {
  color: var(--primary);
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--muted);
  max-width: 34ch;
  margin: 28px 0 0;
}
.latin {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

/* ---------- Curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--canvas);
  display: grid;
  place-items: center;
  transition: transform 1s var(--settle) 0.15s;
}
.curtain.is-done {
  transform: translateY(-100%);
}
.curtain.is-gone {
  display: none;
}
.curtain-leaves {
  width: 120px;
  overflow: visible;
}
.cl path {
  transform-origin: 0 0;
}
.cl-l {
  transform: scale(-1, 1);
}
.cl-l path {
  fill: #3c6b34;
  animation: leaf-open 0.9s var(--settle) both;
}
.cl-r path {
  fill: #93b85a;
  animation: leaf-open 0.9s var(--settle) 0.12s both;
}
@keyframes leaf-open {
  from {
    transform: rotate(10deg) scale(0);
  }
  to {
    transform: rotate(-30deg) scale(1);
  }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 95;
  display: grid;
  place-items: center;
  transition:
    width 0.45s var(--settle),
    height 0.45s var(--settle),
    margin 0.45s var(--settle),
    opacity 0.3s;
  opacity: 0;
}
.cursor.is-on {
  opacity: 1;
}
.cursor.is-big {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
}
.cursor-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  color: var(--on-primary);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-big .cursor-label {
  opacity: 1;
}
@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent),
    0 10px 30px -18px rgb(42 26 18 / 0.35);
  transition:
    transform 0.6s var(--settle),
    background-color 0.6s;
}
.nav.is-hidden {
  transform: translateY(calc(-100% - 24px));
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.wm-i {
  position: relative;
}
.wm-i svg {
  position: absolute;
  left: 50%;
  top: -0.08em;
  width: 0.62em;
  transform: translateX(-50%);
  overflow: visible;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--settle);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav .btn {
  height: 40px;
  padding: 0 18px;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.theme-toggle:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
}
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.6s var(--settle),
    opacity 0.3s;
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition:
    background-color 0.3s,
    transform 0.5s var(--settle),
    color 0.3s;
  will-change: transform;
}
.btn-lg {
  height: 60px;
  padding: 0 32px;
  font-size: 17px;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-pressed);
}
.btn-ghost {
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 112px max(var(--pad), calc((100vw - 1320px) / 2)) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  column-gap: 4vw;
  overflow-x: clip;
  isolation: isolate;
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, min(7.6vw, 15vh), 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero-title .line {
  display: block;
  overflow: clip;
  padding: 0 0.12em 0.22em;
  margin: 0 -0.12em -0.16em;
}
.hero-title .split .ch {
  transform: translateY(135%);
}
.hero-title em {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--primary);
  white-space: nowrap;
}
.hero-sub {
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  margin: 28px 0 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-herbie {
  position: relative;
  justify-self: center;
  text-align: center;
}
.herbie {
  display: block;
}
.herbie svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.herbie-hero {
  width: clamp(220px, 28vw, 420px);
  aspect-ratio: 1;
}
.hero-hint {
  margin: 4px 0 0;
  font-family: var(--latin);
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  transform: rotate(-4deg);
}
.hero-hint::before {
  content: "↑ ";
  font-family: var(--ui);
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    row-gap: 24px;
    padding-bottom: 32px;
  }
  .hero-title {
    font-size: clamp(44px, 12.5vw, 96px);
  }
  .herbie-hero {
    width: clamp(150px, 40vw, 220px);
  }
  .hero-hint {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    height: 54px;
  }
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  transition: transform 1.6s var(--settle);
  will-change: transform;
}
.g1 {
  width: 42vw;
  aspect-ratio: 1;
  left: -12vw;
  top: 8%;
  background: var(--sage-soft);
}
.g2 {
  width: 36vw;
  aspect-ratio: 1;
  right: -10vw;
  top: 2%;
  background: var(--primary-soft);
}
.g3 {
  width: 30vw;
  aspect-ratio: 1;
  right: 18%;
  bottom: -12vw;
  background: var(--lime-soft);
}
[data-theme="dark"] .glow {
  opacity: 0.35;
}

/* Splitting: each character rises out of its line. */
.split .ch {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--settle);
}
.is-ready .hero .split .ch,
.split.in .ch {
  transform: none;
}

/* ---------- Herbie ---------- */
.hb-bob {
  animation: hb-bob 1.7s ease-in-out infinite alternate;
}
.hb-leaves {
  transform-box: view-box;
  transform-origin: 60px 40px;
  animation: hb-sway 1.7s ease-in-out infinite alternate;
}
.hb-blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: hb-blink 3.4s infinite;
}
[data-mood="thirsty"] .hb-bob {
  animation-duration: 2.4s;
}
[data-mood="thirsty"] .hb-leaves {
  animation-duration: 2.4s;
}
[data-mood="cheer"] .hb-bob {
  animation: hb-hop 0.7s infinite;
}
[data-mood="cheer"] .hb-leaves {
  animation: hb-sway-big 0.7s ease-in-out infinite alternate;
}
[data-mood="cheer"] .hb-blink {
  animation: none;
}
@keyframes hb-bob {
  to {
    transform: translateY(2px);
  }
}
@keyframes hb-sway {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(4deg);
  }
}
@keyframes hb-sway-big {
  from {
    transform: rotate(-8deg);
  }
  to {
    transform: rotate(8deg);
  }
}
@keyframes hb-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  34% {
    transform: translateY(-11px);
    animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0);
  }
  77% {
    transform: translateY(0);
  }
}
@keyframes hb-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
.hb-look {
  transition: transform 0.4s var(--settle);
}
.herbie[data-pokeable] {
  transition: transform 0.35s var(--settle);
}
.herbie[data-pokeable]:active {
  transform: scale(0.92);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--primary);
  color: var(--on-primary);
  padding: 22px 0;
  rotate: -2deg;
  margin: 40px -20px;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee i {
  width: 34px;
  height: 34px;
  flex: none;
  background: currentColor;
  border-radius: 28px 4px 28px 4px;
  opacity: 0.85;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Manifesto ---------- */
.manifesto {
  height: 170vh;
  padding: 0 var(--pad);
}
.manifesto-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}
.manifesto-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
}
.manifesto-text .w {
  color: var(--faint);
  opacity: 0.35;
  transition:
    opacity 0.4s,
    color 0.4s;
}
.manifesto-text .w.on {
  color: var(--ink);
  opacity: 1;
}
.manifesto-text .w.key.on {
  color: var(--primary);
}

/* ---------- Story ---------- */
.story {
  height: 340vh;
  padding: 0 var(--pad);
}
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6vw;
}
.story-steps {
  position: relative;
}
.story-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s var(--settle),
    transform 0.8s var(--settle);
  pointer-events: none;
}
.step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.step.is-past {
  transform: translateY(-40px);
}
.step-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}
.step h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 8px 0 22px;
}
.step p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
}
.story-progress {
  margin-top: 48px;
  width: 220px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.story-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(0);
}

.phone-wrap {
  perspective: 1400px;
}
.phone {
  --w: 330px;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  border-radius: 54px;
  background: var(--canvas);
  box-shadow:
    0 0 0 10px #1b1411,
    0 0 0 11px #3a2c26,
    0 50px 100px -30px rgb(42 26 18 / 0.5),
    0 30px 60px -40px rgb(42 26 18 / 0.6);
  position: relative;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 1.2s var(--settle);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}
.phone:hover {
  transform: none;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  translate: -50%;
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  z-index: 20;
}
.screen {
  position: absolute;
  inset: 0;
  transition:
    opacity 0.7s var(--settle),
    transform 0.9s var(--settle),
    filter 0.7s;
}
.phone[data-screen="0"] .screen-today {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(6px);
  pointer-events: none;
}
.phone:not([data-screen="0"]) .screen-scan {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  pointer-events: none;
}

/* Scan */
.screen-scan {
  background: var(--camera);
}
.scan-view {
  position: absolute;
  inset: 0 0 38%;
  display: grid;
  place-items: center;
}
.scan-plant {
  width: 62%;
  filter: saturate(1.1);
  animation: breathe 5s ease-in-out infinite alternate;
}
@keyframes breathe {
  to {
    transform: scale(1.05) rotate(1deg);
  }
}
.scan-frame {
  position: absolute;
  inset: 18% 14% 10%;
  container-type: size;
}
.scan-frame i {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid #fffbf6;
}
.scan-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
}
.scan-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 12px 0 0;
}
.scan-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 12px;
}
.scan-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 12px 0;
}
.scan-line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  background: #93b85a;
  box-shadow: 0 0 18px 4px rgb(147 184 90 / 0.6);
  top: 4%;
  animation: scan 2.4s ease-in-out infinite alternate;
}
@keyframes scan {
  to {
    transform: translateY(92cqh);
  }
}
.scan-sheet {
  position: absolute;
  inset: auto 8px 8px;
  border-radius: 36px;
  background: var(--paper);
  padding: 10px 20px 20px;
  transform: translateY(0);
  transition: transform 0.9s var(--settle) 0.2s;
}
.phone:not([data-screen="0"]) .scan-sheet {
  transform: translateY(100%);
}
.grabber {
  width: 36px;
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  margin: 0 auto 14px;
}
.scan-kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.scan-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.scan-sheet .latin {
  font-size: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--wash);
  font-weight: 600;
  font-size: 11.5px;
}
.chip-rain {
  background: var(--rain-soft);
  color: var(--rain);
}
.chip-late {
  background: var(--late-soft);
  color: var(--late);
}
.sheet-btn {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 15px;
}

/* Today */
.screen-today {
  padding: 54px 16px 0;
  overflow: hidden;
}
.t-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.t-date {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.t-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--display);
  font-weight: 800;
}
.t-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 2px 4px 10px;
}
.t-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-radius: 24px;
  padding: 10px 14px 10px 6px;
  transition: background-color 0.6s;
}
.herbie-phone {
  width: 74px;
  height: 74px;
  flex: none;
}
.t-hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.01em;
}
.t-hero-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.t-vine {
  background: var(--paper);
  border-radius: 24px;
  padding: 12px 14px;
  margin-top: 12px;
}
.t-vine-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.t-vine-top b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.t-vine-top > span {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}
.t-vine-days {
  display: flex;
  justify-content: space-between;
}
.t-vine-days > span {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.t-vine-days .today {
  color: var(--ink);
}

/* Vine leaves: the app's leaf shape, a rounded square with two sharp corners. */
.lf {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 19px 3px 19px 3px;
  background: var(--wash);
}
.lf.w {
  background: var(--primary);
}
.lf.c {
  background: var(--lime-tone);
  opacity: 0.45;
}
.lf.m {
  background: none;
  border: 1.5px dashed var(--faint);
}
.lf.p {
  background: none;
  border: 2px solid var(--primary);
}
.lf.grow {
  animation: grow 0.6s var(--settle) both;
}
@keyframes grow {
  from {
    transform: scale(0) rotate(-40deg);
  }
}

.t-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  margin: 16px 4px 8px;
}
.t-list {
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
}
.t-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  transition:
    opacity 0.5s,
    background-color 0.4s;
}
.t-row + .t-row {
  border-top: 1px solid var(--line);
}
.t-thumb {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: none;
}
.t-thumb img {
  width: 34px;
}
.t-info {
  display: grid;
  flex: 1;
}
.t-info b {
  font-weight: 600;
  font-size: 15px;
}
.t-due {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--rain);
}
.t-due.late {
  color: var(--late);
}
.t-row.is-watered .t-due {
  color: var(--muted);
}
.water {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rain-soft);
  display: grid;
  place-items: center;
  transition:
    transform 0.35s var(--settle),
    background-color 0.3s;
}
.water svg {
  width: 20px;
  fill: var(--rain);
  transition: fill 0.3s;
}
.water:hover {
  transform: scale(1.08);
}
.water:active {
  transform: scale(0.9);
}
.t-row.is-watered .water {
  background: var(--rain);
  pointer-events: none;
}
.t-row.is-watered .water svg {
  fill: var(--paper);
}
.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 30px -12px rgb(42 26 18 / 0.35),
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
  display: grid;
  transform: translateY(-140%);
  opacity: 0;
  transition:
    transform 0.7s var(--settle),
    opacity 0.4s;
}
.toast b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.toast span {
  color: var(--muted);
  font-size: 12px;
}
.toast.is-on {
  transform: none;
  opacity: 1;
}
.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 62px;
  border-radius: 999px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent),
    0 10px 30px -10px rgb(42 26 18 / 0.3);
}
.tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
}
.tab.on {
  color: var(--primary);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .story-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
    padding-top: 90px;
    align-items: start;
    justify-items: center;
    text-align: center;
  }
  .story-steps {
    order: 2;
  }
  .story-steps .eyebrow {
    display: none;
  }
  .step h2 {
    font-size: 38px;
    margin: 4px 0 10px;
  }
  .step p {
    font-size: 15px;
    margin: 0 auto;
  }
  .story-progress {
    margin: 20px auto 0;
  }
  .phone {
    transform: none;
  }
}
@media (max-width: 900px) and (max-height: 760px) {
  .step p {
    display: none;
  }
}

/* ---------- Vine section ---------- */
.vine-section {
  height: 200vh;
  padding: 0 var(--pad);
}
.vine-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vine-copy {
  max-width: 900px;
}
.vine-copy .lede {
  max-width: 46ch;
}
.vine-copy em {
  font-family: var(--latin);
  color: var(--ink);
}
.vine-stage {
  position: relative;
  margin-top: 12px;
  aspect-ratio: 1000 / 300;
  max-height: 34vh;
  width: 100%;
}
.vine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.vine-stem {
  fill: none;
  stroke: #3c6b34;
  stroke-width: 5;
  stroke-linecap: round;
}
[data-theme="dark"] .vine-stem {
  stroke: #86ada0;
}
.vine-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.vine-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Meaning ---------- */
.meaning,
.why {
  padding: 18vh var(--pad);
  max-width: 1400px;
  margin: 0 auto;
}
.meaning-head,
.why-head {
  margin-bottom: 64px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.swatch {
  background: var(--s);
  border-radius: 32px;
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.6s var(--settle),
    background-color 0.6s;
}
.swatch:hover {
  transform: translateY(-8px) rotate(-1deg);
}
.swatch-dot {
  width: 64px;
  height: 64px;
  border-radius: 52px 8px 52px 8px;
  background: var(--c);
  margin-bottom: auto;
  transition: transform 0.8s var(--settle);
}
.swatch:hover .swatch-dot {
  transform: rotate(90deg) scale(1.1);
}
.swatch h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 40px 0 8px;
  color: var(--c);
  line-height: 1;
}
.swatch p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 1000px) {
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .swatches {
    grid-template-columns: 1fr;
  }
  .swatch {
    min-height: 240px;
  }
}

/* ---------- Plants (horizontal) ---------- */
.plants {
  height: 320vh;
}
.plants-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.plants-track {
  display: flex;
  gap: 22px;
  padding-left: 4vw;
  padding-right: var(--pad);
  will-change: transform;
}
.plants-head {
  position: absolute;
  left: var(--pad);
  top: 50%;
  translate: 0 -50%;
  width: min(520px, 80vw);
  transition: opacity 0.4s;
}
.plants-head .lede {
  max-width: 30ch;
}
.plants-track {
  margin-left: min(600px, 86vw);
}
.pcard {
  flex: none;
  width: clamp(260px, 24vw, 340px);
  border-radius: 36px;
  background: var(--soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.7s var(--settle),
    background-color 0.6s;
}
.pcard:nth-child(odd) {
  margin-top: 60px;
}
.pcard:hover {
  transform: translateY(-10px);
}
.pcard-photo {
  display: block;
  aspect-ratio: 4 / 5;
  margin: -10px -10px 20px;
  border-radius: 28px;
  overflow: hidden;
  background: color-mix(in srgb, var(--deep) 12%, transparent);
}
.pcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--settle);
}
.pcard:hover .pcard-photo img {
  transform: scale(1.05);
}
.pcard h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--deep);
  line-height: 1.05;
}
.pcard .latin {
  color: var(--deep);
  opacity: 0.75;
  font-size: 17px;
}
.pcard-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.pcard-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
  background: color-mix(in srgb, var(--deep) 10%, transparent);
}
.pcard-due {
  margin: auto 0 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pcard-due::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rain);
}
@media (max-width: 760px) {
  .plants-sticky {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 28px;
    padding-top: 40px;
  }
  .plants-head {
    position: static;
    translate: none;
    width: auto;
    padding: 0 var(--pad);
  }
  .plants-head .display {
    font-size: 44px;
  }
  .plants-head .lede {
    margin-bottom: 0;
  }
  .plants-track {
    margin: 0;
    padding-left: var(--pad);
    width: max-content;
  }
  .pcard:nth-child(odd) {
    margin-top: 0;
  }
  .pcard {
    width: 220px;
    padding: 18px;
    border-radius: 30px;
  }
  .pcard-photo {
    aspect-ratio: 1;
    margin-bottom: 14px;
    border-radius: 22px;
  }
  .pcard h3 {
    font-size: 24px;
  }
  .pcard .latin {
    font-size: 15px;
  }
  .pcard-tags {
    margin: 10px 0 12px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .plants-head .lede {
    display: none;
  }
}

/* ---------- Why ---------- */
.compare {
  display: grid;
  border-top: 2px solid var(--ink);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.compare-labels {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
}
.compare-labels span:last-child {
  color: var(--primary);
}
.them {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  position: relative;
  padding-left: 36px;
}
.them::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--faint);
}
.us {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  position: relative;
  padding-left: 48px;
}
.us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 30px;
  height: 30px;
  border-radius: 24px 4px 24px 4px;
  background: var(--primary);
  transform: scale(0) rotate(-45deg);
  transition: transform 0.8s var(--settle) 0.25s;
}
.compare-row.in .us::before {
  transform: none;
}
@media (max-width: 700px) {
  .compare-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compare-labels {
    display: none;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 80px;
}
.stat {
  background: var(--paper);
  border-radius: 32px;
  padding: 28px;
  transition: background-color 0.6s;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 8vw, 120px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--primary);
}
.stat span {
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- CTA ---------- */
.cta {
  padding: 10vh var(--pad) 18vh;
}
.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: clamp(36px, 5vw, 72px);
  padding: clamp(48px, 8vw, 120px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  width: 60vw;
  aspect-ratio: 1;
  left: -20vw;
  bottom: -40vw;
  border-radius: 80% 10% 80% 10%;
  background: color-mix(in srgb, var(--on-primary) 8%, transparent);
  rotate: 20deg;
}
.herbie-cta {
  width: clamp(150px, 16vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  position: relative;
}
.cta-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 44px;
  position: relative;
}
.cta-title .split {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.muted-word {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.75;
}
.stores {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 26px 0 20px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--canvas);
  transition: transform 0.5s var(--settle);
}
.store svg {
  width: 28px;
  fill: currentColor;
}
.store span {
  display: grid;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.05;
}
.store small {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  opacity: 0.75;
}

.beta {
  position: relative;
  max-width: 560px;
  margin: 0 auto 44px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.beta-lede {
  margin: 0 0 4px;
  font-size: 18px;
  opacity: 0.9;
}
.beta-row {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 6px;
  border-radius: 999px;
  background: var(--on-primary);
}
.beta-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.beta-row input::placeholder {
  color: var(--faint);
}
.beta-row:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--on-primary) 45%, transparent);
}
.beta-submit {
  flex: none;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  font-size: 15px;
  transition:
    transform 0.4s var(--settle),
    opacity 0.3s;
}
.beta-submit:hover {
  transform: scale(1.03);
}
.beta-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.beta-status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 600;
  font-size: 15px;
}
.beta.is-done .beta-row {
  display: none;
}
.beta.is-done .beta-status {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.stores-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  position: relative;
}
@media (max-width: 520px) {
  .beta-row {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: none;
  }
  .beta-row:focus-within {
    box-shadow: none;
  }
  .beta-row input {
    flex: none;
    height: 58px;
    padding: 0 20px;
    border-radius: 18px;
    background: var(--on-primary);
    font-size: 17px;
  }
  .beta-row input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--on-primary) 45%, transparent);
  }
  .beta-submit {
    height: 58px;
    border-radius: 18px;
    font-size: 17px;
  }
}
.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;
}

/* ---------- Footer ---------- */
.footer {
  padding: 0 var(--pad) 32px;
  overflow: hidden;
}
.footer-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30vw;
  letter-spacing: -0.07em;
  line-height: 0.75;
  margin: 0 0 24px;
  color: var(--wash);
  text-align: center;
  user-select: none;
}
.footer-credits {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
}
.footer-credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal + bursts ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--settle),
    transform 1.1s var(--settle);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.hero .reveal {
  transition-delay: 0.9s;
}
.hero .hero-cta.reveal {
  transition-delay: 1.05s;
}
.burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 96;
}
.burst-leaf {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 15px 3px 15px 3px;
  top: 0;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01s !important;
  }
  .split .ch {
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
[data-theme="dark"] .phone {
  box-shadow:
    0 0 0 10px #050404,
    0 0 0 11px #3a3633,
    0 50px 100px -30px rgb(0 0 0 / 0.7);
}

/* Sections out of view pause their loops, so only what's on screen costs frames. */
.is-off,
.is-off * {
  animation-play-state: paused !important;
}
.meaning,
.why,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
