:root {
  --plum: #3d1450;
  --violet: #7b2d8e;
  --orchid: #b15ac4;
  --leaf: #6aa83a;
  --cream: #f6f0e6;
  --paper: #fffaf3;
  --ink: #2a1630;
  --muted: #6d5a73;
  --line: rgba(61, 20, 80, 0.14);
  --radius: 22px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --script: 'Pacifico', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(60vw 60vw at 85% 15%, rgba(177, 90, 196, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at 10% 90%, rgba(106, 168, 58, 0.1), transparent 60%),
    var(--cream);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: rgba(246, 240, 230, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.wordmark {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--plum);
  text-decoration: none;
  line-height: 1;
}
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.site-header nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink);
  opacity: 0.8;
}
.site-header nav a:not(.btn):hover { opacity: 1; color: var(--violet); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--plum); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  box-shadow: 0 10px 24px -10px rgba(61, 20, 80, 0.6);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--violet); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- 3D layer */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1;
  pointer-events: none;
}
.watermark {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
}
.watermark span {
  grid-area: 1 / 1;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(5rem, 19vw, 20rem); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(123, 45, 142, 0.12);
  text-transform: uppercase;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.8s, transform 0.8s;
}
.watermark span.on { opacity: 1; transform: none; }

/* progress rail */
.rail {
  --fill: 0%;
  position: fixed; right: clamp(14px, 2.5vw, 36px); top: 50%; z-index: 6;
  transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 26px;
  transition: opacity 0.4s;
}
.rail::before, .rail::after {
  content: ''; position: absolute; right: 5px; top: 6px; width: 2px; border-radius: 2px;
}
.rail::before { bottom: 6px; background: var(--line); }
.rail::after { height: calc(var(--fill) - 12px); max-height: calc(100% - 12px); background: var(--violet); }
.rail li {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  cursor: pointer; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.rail li::after {
  content: ''; width: 12px; height: 12px; border-radius: 50%; z-index: 1;
  background: var(--cream); box-shadow: inset 0 0 0 2px rgba(61, 20, 80, 0.3);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.rail li span { opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; }
.rail li:hover span, .rail li.on span { opacity: 1; transform: none; }
.rail li.on { color: var(--plum); }
.rail li.on::after { background: var(--violet); box-shadow: 0 0 0 4px rgba(123, 45, 142, 0.18); transform: scale(1.15); }

/* stage cards */
.stage-cards { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.stage-card {
  position: absolute; top: clamp(84px, 12vh, 140px); width: min(520px, 40vw);
  margin-top: 0;
  opacity: 0; will-change: opacity, transform;
}
.stage-card.left { left: clamp(20px, 7vw, 120px); }
.stage-card.right { right: clamp(70px, 9vw, 150px); }
.eyebrow {
  margin: 0 0 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow b { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--plum); color: #fff; font-size: 0.72rem; letter-spacing: 0; }
.stage-card h1, .stage-card h2 {
  font-family: var(--serif); font-weight: 600; color: var(--plum);
  letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 18px;
}
.stage-card h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.stage-card h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.stage-card h1 em { font-style: italic; color: var(--violet); }
.stage-card p { font-size: 1.08rem; line-height: 1.6; color: var(--muted); margin: 0; }
.stage-card p.lead { font-size: 1.18rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.chips li {
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); color: var(--plum);
}
.chips li::before { content: '●'; color: var(--leaf); margin-right: 7px; font-size: 0.6em; vertical-align: 2px; }
.stage-card .btn { margin-top: 26px; }

.scroll-hint {
  position: fixed; left: 50%; bottom: 26px; z-index: 6; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
.scroll-hint span { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--muted); position: relative; }
.scroll-hint span::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--violet); animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* the story spacer: 3 transitions of 150vh plus a hold on the chapati */
#story { height: calc(160vh * 3 + 140vh); }

body.past-story .rail,
body.past-story .stage-cards { opacity: 0; pointer-events: none; }
.stage-cards { transition: opacity 0.3s; }

/* ---------------------------------------------------------------- content below */
.content {
  position: relative; z-index: 10;
  background: var(--paper);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -30px 60px -30px rgba(61, 20, 80, 0.25);
}
.section { padding: clamp(72px, 10vw, 140px) clamp(16px, 6vw, 96px); max-width: 1320px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2, .farm-text h2, .cta h2 {
  font-family: var(--serif); font-weight: 600; color: var(--plum);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 26px; transition: transform 0.35s, box-shadow 0.35s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(61, 20, 80, 0.45); }
.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--cream); }
.product h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--plum); margin: 20px 6px 6px; }
.product p { margin: 0 6px; color: var(--muted); line-height: 1.55; }
.product .tag {
  position: absolute; top: 30px; right: 30px; padding: 6px 12px; border-radius: 999px;
  background: var(--plum); color: #fff; font-size: 0.78rem; font-weight: 600;
}

.benefits { background: var(--plum); color: #fff; }
.benefits ul {
  list-style: none; margin: 0 auto; max-width: 1320px;
  padding: clamp(36px, 5vw, 56px) clamp(16px, 6vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.benefits li { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 2px solid rgba(255, 255, 255, 0.2); }
.benefits b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.benefits span { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }

.gallery {
  display: grid; gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, 26vw));
}
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--plum); font-weight: 600; font-size: 0.88rem;
}

.farm { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.farm-media video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; border-radius: var(--radius); background: var(--plum); }
.farm-text p { color: var(--muted); line-height: 1.65; font-size: 1.05rem; margin: 20px 0 0; }
.farm-text blockquote {
  margin: 30px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--cream);
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--plum);
}
.farm-text cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 0.82rem; color: var(--muted); }
.farm-text .award { margin-top: 22px; border-radius: 16px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cta {
  margin: 0 clamp(16px, 4vw, 48px); border-radius: 36px; text-align: center; color: #fff;
  padding: clamp(64px, 9vw, 120px) 24px;
  background:
    radial-gradient(40% 80% at 15% 20%, rgba(177, 90, 196, 0.55), transparent 70%),
    radial-gradient(40% 80% at 90% 90%, rgba(106, 168, 58, 0.35), transparent 70%),
    var(--plum);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin: 16px 0 0; }
.cta .actions { justify-content: center; }

.site-footer {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  padding: 40px clamp(16px, 6vw, 96px); color: var(--muted); font-size: 0.9rem;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- phones & tablets */
@media (max-width: 820px) {
  .site-header nav a:not(.btn) { display: none; }
  .stage-card, .stage-card.left, .stage-card.right {
    left: 16px; right: 16px; width: auto; top: auto; bottom: 22px; margin: 0;
    padding: 22px; border-radius: 22px;
    background: rgba(255, 250, 243, 0.86); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -24px rgba(61, 20, 80, 0.4);
  }
  .stage-card p { font-size: 0.98rem; }
  .stage-card .actions { margin-top: 18px; }
  .chips { margin-top: 16px; }
  .rail { top: 96px; transform: none; right: 14px; gap: 14px; }
  .rail li span { display: none; }
  .scroll-hint { display: none; }
  .products { grid-template-columns: 1fr; }
  .benefits ul { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .gallery figure.tall { grid-row: span 2; }
  .farm { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .watermark span, .rail li::after { transition: none; }
}

/* ---------------------------------------------------------------- film layer (scroll-scrubbed Gemini clips) */
#scene { background: var(--film-bg, var(--cream)); }
.stage-card p { color: #5d4a63; }

/* ---------------------------------------------------------------- brand logo (from the SweetPot packaging) */
.brand { display: inline-flex; align-items: center; line-height: 0; border-radius: 12px; }
.brand:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.site-header .brand img { height: 46px; width: auto; transition: height 0.3s; }
.site-header.scrolled .brand img { height: 38px; }
.brand-footer img { height: 72px; width: auto; }
@media (max-width: 820px) {
  .site-header .brand img { height: 38px; }
  .site-header.scrolled .brand img { height: 34px; }
}

/* brand name inside the hero heading (also helps search engines) */
.h1-brand {
  display: block; margin-bottom: 6px;
  margin-top: 14px; font-size: 0.5em; font-weight: 700; letter-spacing: -0.01em; color: var(--violet);
}
