/* ===================================================================
   BEEJ MICROGREENS — Design tokens
   Palette:  forest #1F3324 · earth #6B4226 · leaf #7C9A5C
             ivory #FBF7EE · beige #EFE6D5 · terracotta #C1602E · gold #C79A45
   Type:     Fraunces (display) · Manrope (body) · IBM Plex Mono (data/labels)
   Signature: the seed-packet motif — torn edges, stamp badges, mono labels —
              carried from the nav mark through the hero seed to the product cards.
   =================================================================== */

:root{
  --forest:#1F3324;
  --forest-dark:#12200F;
  --earth:#6B4226;
  --leaf:#7C9A5C;
  --leaf-soft:#9BB579;
  --ivory:#FBF7EE;
  --beige:#EFE6D5;
  --terracotta:#C1602E;
  --gold:#C79A45;
  --sun-1:#FFE1AE;
  --sun-2:#FF9B54;
  --ink:#241A10;

  --display:"Fraunces", "Iowan Old Style", serif;
  --body:"Manrope", -apple-system, sans-serif;
  --mono:"IBM Plex Mono", monospace;

  --ease:cubic-bezier(.16,.8,.24,1);
  --container:1240px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
section[id], .footer{ scroll-margin-top:84px; }
@media(prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--body);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  cursor:none;
}
@media(hover:none){ body{ cursor:auto; } }

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
h1,h2,h3{font-family:var(--display); margin:0; font-weight:500; color:var(--forest);}
p{margin:0; line-height:1.6;}
.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}

::selection{ background:var(--terracotta); color:var(--ivory); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--terracotta);
  outline-offset:3px;
}

/* ===================== eyebrow / buttons ===================== */
.eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--terracotta);
  margin:0 0 1.1rem;
}
.eyebrow--light{ color:var(--sun-1); }

.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--mono);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:1rem 1.6rem;
  border-radius:100px;
  transition:transform .5s var(--ease), background .4s ease, color .4s ease, border-color .4s ease;
}
.btn--ghost-light{
  color:var(--ivory);
  border:1px solid rgba(251,247,238,.55);
}
.btn--ghost-light:hover{ background:var(--ivory); color:var(--forest); transform:translateY(-3px); }
.btn--pill{
  background:var(--forest); color:var(--ivory); margin-top:1.4rem;
}
.btn--pill:hover{ background:var(--terracotta); transform:translateY(-3px); }

/* ===================== grain + cursor ===================== */
.grain-layer{
  position:fixed; inset:0; z-index:9998; pointer-events:none;
  filter:url(#grain); opacity:.5; mix-blend-mode:overlay;
}
.cursor{
  position:fixed; top:0; left:0; width:22px; height:22px;
  border:1px solid var(--forest);
  border-radius:50%;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  transition:width .3s var(--ease), height .3s var(--ease), background .3s ease, border-color .3s ease, opacity .3s ease;
  mix-blend-mode:difference;
}
.cursor.is-light{ border-color:var(--ivory); }
.cursor.is-hover{ width:52px; height:52px; background:rgba(251,247,238,.15); }

/* ===================== preloader ===================== */
.preloader{
  position:fixed; inset:0; z-index:10000;
  background:var(--forest);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem;
  transition:opacity .9s var(--ease), visibility .9s var(--ease);
}
.preloader.is-done{ opacity:0; visibility:hidden; }
.preloader__word{
  font-family:var(--display); font-style:italic; color:var(--beige);
  font-size:1.1rem; letter-spacing:.04em;
}
.preloader__sprout{ stroke-dasharray:40; stroke-dashoffset:40; animation:sprout 1.6s var(--ease) infinite alternate; }
@keyframes sprout{ to{ stroke-dashoffset:0; } }

/* ===================== nav ===================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.4rem clamp(1.2rem,4vw,3rem);
  color:var(--ivory);
  transition:background .5s ease, padding .5s ease, box-shadow .5s ease, color .5s ease;
}
.nav.is-solid{
  background:rgba(251,247,238,.9);
  backdrop-filter:blur(10px);
  color:var(--forest);
  padding-top:.9rem; padding-bottom:.9rem;
  box-shadow:0 1px 0 rgba(31,51,36,.08);
}
.nav__mark{ display:flex; align-items:center; gap:.5rem; font-family:var(--display); font-style:italic; font-size:1.2rem; }
.nav__links{ display:flex; gap:2.2rem; font-family:var(--mono); font-size:.76rem; letter-spacing:.04em; }
.nav__links a{ display:inline-flex; align-items:baseline; gap:.35rem; opacity:.85; transition:opacity .3s ease; }
.nav__links a:hover{ opacity:1; }
.nav__links a span{ font-size:.66rem; opacity:.55; }
.nav__cta{
  font-family:var(--mono); font-size:.74rem; text-transform:uppercase; letter-spacing:.06em;
  border:1px solid currentColor; padding:.65rem 1.2rem; border-radius:100px;
  transition:background .35s ease, color .35s ease;
}
.nav.is-solid .nav__cta:hover, .nav__cta:hover{ background:var(--terracotta); border-color:var(--terracotta); color:var(--ivory); }
.nav__burger{ display:none; background:none; border:0; width:32px; height:22px; position:relative; cursor:pointer; }
.nav__burger span{ position:absolute; left:0; right:0; height:1.4px; background:currentColor; transition:transform .3s ease, opacity .3s ease; }
.nav__burger span:nth-child(1){ top:0; }
.nav__burger span:nth-child(2){ top:50%; transform:translateY(-50%); }
.nav__burger span:nth-child(3){ bottom:0; }

.mobile-menu{
  position:fixed; inset:0; z-index:490; background:var(--forest); color:var(--beige);
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1.6rem;
  padding:2.5rem clamp(1.5rem,8vw,4rem);
  transform:translateY(-100%); transition:transform .6s var(--ease);
}
.mobile-menu.is-open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--display); font-size:2rem; }
.mobile-menu__cta{ font-family:var(--mono); font-size:.85rem; text-transform:uppercase; border:1px solid var(--beige); padding:.8rem 1.4rem; border-radius:100px; margin-top:.5rem; }

@media(max-width:920px){
  .nav__links, .nav__cta{ display:none; }
  .nav__burger{ display:block; }
}

/* ===================== hero ===================== */
.hero{
  position:relative; min-height:100svh; overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end;
  isolation:isolate;
}
.hero__sky{
  position:absolute; inset:0; z-index:-3;
  background:
    radial-gradient(120% 70% at 50% 100%, var(--sun-1) 0%, transparent 60%),
    linear-gradient(180deg, #2b3d2a 0%, #6b5636 38%, var(--sun-2) 68%, var(--sun-1) 100%);
}
.hero__fog{
  position:absolute; inset:auto 0 0 0; height:40%; z-index:-2;
  background:linear-gradient(180deg, transparent, rgba(251,247,238,.55) 70%, rgba(251,247,238,.75));
  filter:blur(6px);
}
.hero__birds{ position:absolute; inset:0; z-index:2; width:100%; height:100%; pointer-events:none; }
.bird{ opacity:.55; }
.bird--1{ animation:fly1 26s linear infinite; }
.bird--2{ animation:fly2 34s linear infinite; animation-delay:-6s; }
.bird--3{ animation:fly1 30s linear infinite; animation-delay:-14s; }
@keyframes fly1{ from{ transform:translate(-40px,120px) scale(1); } to{ transform:translate(1240px,40px) scale(.7); } }
@keyframes fly2{ from{ transform:translate(-40px,200px) scale(.8); } to{ transform:translate(1240px,90px) scale(1); } }

.hero__particles{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.hero__particles span{
  position:absolute; bottom:-10px; width:3px; height:3px; border-radius:50%;
  background:var(--sun-1); opacity:.7;
  animation:drift linear infinite;
}
@keyframes drift{
  to{ transform:translateY(-110vh) translateX(var(--dx,20px)); opacity:0; }
}

.hero__stage{
  position:absolute; inset:0; z-index:4;
  display:flex; align-items:center; justify-content:center;
  perspective:1000px;
  opacity:0;
}
.seed-scene{ position:relative; width:min(46vw,340px); height:min(52vw,420px); transform-style:preserve-3d; }
.seed-scene__soil{
  position:absolute; left:50%; bottom:6%; width:120%; height:70px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse at center, rgba(20,15,8,.55), rgba(20,15,8,0) 70%);
  filter:blur(2px);
}
.seed-scene__seed{
  position:absolute; inset:0;
  filter:drop-shadow(0 30px 40px rgba(20,15,8,.35));
  will-change:transform;
  animation:seedFloat 6s ease-in-out infinite;
}
@keyframes seedFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }

.hero__copy{
  position:relative; z-index:5;
  padding:0 clamp(1.5rem,6vw,5rem) clamp(3.5rem,8vh,6rem);
  color:var(--ivory);
  max-width:820px;
}
.hero__headline{
  font-size:clamp(2.4rem,6.4vw,5rem);
  line-height:1.02;
  letter-spacing:-.01em;
  text-shadow:0 6px 30px rgba(20,15,8,.25);
  color:var(--ivory);
}
.hero__headline span{ display:block; overflow:hidden; }
.hero__headline em{ font-style:italic; color:var(--sun-1); }
.hero__sub{
  font-family:var(--mono); font-size:.9rem; letter-spacing:.03em;
  margin:1.4rem 0 2.2rem; color:rgba(251,247,238,.85);
}

[data-reveal]{ opacity:0; transform:translateY(24px); }

.hero__scroll-cue{
  position:absolute; right:clamp(1.2rem,4vw,3rem); bottom:2.4rem; z-index:5;
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  color:var(--ivory); opacity:.75;
}
.hero__scroll-cue span{
  width:1px; height:44px; background:linear-gradient(var(--ivory), transparent);
  position:relative; overflow:hidden;
}
.hero__scroll-cue span::after{
  content:""; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background:var(--ivory); animation:cue 2.2s ease-in-out infinite;
}
@keyframes cue{ 0%{ top:-100%; } 60%,100%{ top:100%; } }
.hero__scroll-cue p{ font-family:var(--mono); font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; writing-mode:vertical-rl; }

/* ===================== manifesto ===================== */
.manifesto{
  background:var(--forest); color:var(--beige);
  padding:clamp(5rem,14vh,9rem) clamp(1.5rem,8vw,6rem);
  text-align:center;
}
.manifesto__line{
  font-family:var(--display); font-style:italic;
  font-size:clamp(1.7rem,5.4vw,3.4rem);
  line-height:1.25;
}

/* ===================== journey ===================== */
.journey{
  padding:clamp(5rem,12vh,8rem) clamp(1.2rem,6vw,4rem);
  max-width:var(--container); margin:0 auto;
}
.journey__head h2{ font-size:clamp(2rem,4.6vw,3.2rem); line-height:1.08; margin-top:.3rem; }

.journey__rail{
  position:relative; margin-top:4.5rem;
  display:grid; grid-template-columns:repeat(6,1fr); gap:1.6rem;
}
.journey__line{
  position:absolute; top:-2.2rem; left:0; right:0; height:1px; background:rgba(31,51,36,.15);
}
.journey__line-fill{ height:100%; width:0%; background:var(--terracotta); transition:width .1s linear; }

.journey__stage{ position:relative; padding-top:1rem; }
.journey__num{ font-family:var(--mono); font-size:.72rem; color:var(--terracotta); letter-spacing:.08em; }
.journey__icon{
  width:52px; height:52px; margin:1rem 0 1.1rem;
  color:var(--forest);
}
.journey__icon svg{ width:100%; height:100%; }
.journey__stage h3{ font-size:1.15rem; margin-bottom:.5rem; }
.journey__stage p{ font-size:.88rem; color:#4B5A44; }

@media(max-width:920px){
  .journey__rail{ grid-template-columns:1fr; gap:2.4rem; }
  .journey__line{ display:none; }
}

/* ===================== products ===================== */
.products{
  background:var(--beige);
  padding:clamp(5rem,12vh,8rem) clamp(1.2rem,6vw,4rem);
}
.products__head{ max-width:var(--container); margin:0 auto; text-align:left; }
.products__head h2{ font-size:clamp(2rem,4.6vw,3.2rem); line-height:1.08; margin:.3rem 0 1.2rem; }
.products__sub{ max-width:460px; color:#4B5A44; font-size:1rem; }

.products__grid{
  max-width:var(--container); margin:3.5rem auto 0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem;
}

.seed-packet{
  position:relative;
  background:var(--ivory);
  border-radius:22px;
  padding:2.1rem 1.8rem 1.9rem;
  overflow:hidden;
  transform:translateY(0) rotate(0deg);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow:0 10px 26px rgba(31,51,36,.06);
}
.seed-packet:hover{ transform:translateY(-8px) rotate(-.6deg); box-shadow:0 26px 50px rgba(31,51,36,.14); }
.seed-packet__torn{
  position:absolute; top:0; left:0; right:0; height:14px;
  background:
    conic-gradient(from 135deg at 8px 0, transparent 90deg, var(--beige) 0) 0 0/16px 14px repeat-x;
}
.seed-packet__stamp{
  position:absolute; top:1.3rem; right:1.4rem;
  font-family:var(--mono); font-size:.62rem; letter-spacing:.08em; text-transform:uppercase;
  border:1px solid rgba(31,51,36,.3); border-radius:100px; padding:.3rem .7rem; color:var(--forest);
}
.seed-packet__art{ width:70px; height:84px; margin:.6rem 0 1.3rem; }
.seed-packet__art svg{ width:100%; height:100%; }
.seed-packet__art--big{ width:64px; height:64px; }
.seed-packet h3{ font-size:1.3rem; margin-bottom:.6rem; }
.seed-packet__desc{ font-size:.92rem; color:#4B5A44; min-height:3rem; }
.seed-packet__facts{
  display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.4rem;
  font-family:var(--mono); font-size:.66rem; letter-spacing:.03em; text-transform:uppercase;
}
.seed-packet__facts span{
  background:var(--beige); color:var(--earth); padding:.35rem .6rem; border-radius:100px;
}
.seed-packet--cta{
  background:var(--forest); color:var(--ivory);
  display:flex; flex-direction:column; justify-content:center;
}
.seed-packet--cta h3{ color:var(--ivory); }
.seed-packet--cta p{ color:rgba(251,247,238,.75); }

@media(max-width:920px){ .products__grid{ grid-template-columns:1fr; } }
@media(min-width:921px) and (max-width:1220px){ .products__grid{ grid-template-columns:repeat(2,1fr); } }

/* ===================== sustainability ===================== */
.sustain{
  position:relative; overflow:hidden;
  background:var(--forest); color:var(--ivory);
  padding:clamp(5rem,12vh,8rem) clamp(1.2rem,6vw,4rem);
}
.sustain__bg{
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(199,154,69,.18), transparent),
    radial-gradient(50% 40% at 10% 90%, rgba(124,154,92,.2), transparent);
}
.sustain__head, .sustain__grid{ position:relative; z-index:1; }
.sustain__head{ max-width:var(--container); margin:0 auto; }
.sustain__head h2{ color:var(--ivory); font-size:clamp(2rem,4.6vw,3.2rem); line-height:1.08; margin-top:.3rem; }

.sustain__grid{
  max-width:var(--container); margin:3.5rem auto 0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:2.4rem 2rem;
}
.sustain__stat{ border-top:1px solid rgba(251,247,238,.2); padding-top:1.4rem; }
.sustain__num{ display:block; font-family:var(--display); font-size:clamp(2.2rem,4.2vw,3.4rem); color:var(--sun-1); }
.sustain__stat p{ font-size:.92rem; color:rgba(251,247,238,.75); margin-top:.5rem; }

@media(max-width:820px){ .sustain__grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .sustain__grid{ grid-template-columns:1fr; } }

/* ===================== roots ===================== */
.roots{
  position:relative; overflow:hidden;
  background:var(--beige);
  padding:clamp(5rem,14vh,9rem) clamp(1.2rem,6vw,4rem);
}
.roots__pattern{
  position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image:radial-gradient(circle, rgba(193,96,46,.16) 1.4px, transparent 1.4px);
  background-size:26px 26px;
  mask-image:radial-gradient(60% 60% at 70% 40%, black, transparent);
}
.roots__content{ position:relative; z-index:1; max-width:640px; margin:0 auto; text-align:center; }
.roots__content h2{ font-size:clamp(2rem,4.8vw,3.3rem); line-height:1.1; margin:.3rem 0 1.5rem; }
.roots__copy{ font-size:1.05rem; color:#4B5A44; }

.roots__marks{
  display:flex; justify-content:center; gap:clamp(1.4rem,4vw,3rem); flex-wrap:wrap;
  margin-top:3rem;
}
.roots__mark{ display:flex; flex-direction:column; align-items:center; gap:.7rem; width:140px; }
.roots__mark svg{ width:40px; height:40px; color:var(--terracotta); }
.roots__mark span{ font-family:var(--mono); font-size:.72rem; letter-spacing:.02em; color:var(--forest); }

/* ===================== footer ===================== */
.footer{
  position:relative; overflow:hidden;
  background:var(--forest-dark); color:var(--ivory);
  padding:clamp(5rem,16vh,10rem) clamp(1.2rem,6vw,4rem) 2rem;
}
.footer__field{
  position:absolute; inset:0; z-index:0;
  background:
    linear-gradient(180deg, rgba(18,32,15,0) 0%, rgba(18,32,15,.85) 78%, var(--forest-dark) 100%),
    linear-gradient(180deg, #3a4d2a 0%, #7a6636 45%, var(--sun-2) 75%, var(--sun-1) 100%);
  opacity:.55;
}
.footer__top{ position:relative; z-index:1; max-width:760px; margin:0 auto; text-align:center; }
.footer__top h2{ color:var(--ivory); font-size:clamp(2.1rem,5.4vw,3.6rem); line-height:1.08; }

.footer__form{
  display:flex; gap:.7rem; max-width:440px; margin:2.4rem auto 0;
  border-bottom:1px solid rgba(251,247,238,.35); padding-bottom:.8rem;
}
.footer__form input{
  flex:1; background:none; border:0; color:var(--ivory);
  font-family:var(--body); font-size:1rem; padding:.4rem 0;
}
.footer__form input::placeholder{ color:rgba(251,247,238,.5); }
.footer__form button{
  background:none; border:0; color:var(--sun-1); cursor:pointer;
  font-family:var(--mono); font-size:.76rem; text-transform:uppercase; letter-spacing:.06em;
  display:flex; align-items:center; gap:.4rem; padding:.4rem .2rem;
}
.footer__note{ font-family:var(--mono); font-size:.72rem; color:rgba(251,247,238,.55); margin-top:1rem; }

.footer__bottom{
  position:relative; z-index:1;
  max-width:var(--container); margin:5.5rem auto 0;
  display:flex; flex-wrap:wrap; gap:2rem; align-items:center; justify-content:space-between;
  border-top:1px solid rgba(251,247,238,.15); padding-top:2rem;
}
.footer__mark{ display:flex; align-items:center; gap:.5rem; font-family:var(--display); font-style:italic; font-size:1.1rem; }
.footer__links, .footer__social{ display:flex; gap:1.6rem; font-family:var(--mono); font-size:.76rem; }
.footer__links a, .footer__social a{ opacity:.75; transition:opacity .3s ease; }
.footer__links a:hover, .footer__social a:hover{ opacity:1; }
.footer__legal{
  position:relative; z-index:1; text-align:center; margin-top:2.4rem;
  font-family:var(--mono); font-size:.68rem; color:rgba(251,247,238,.45);
}

@media(max-width:600px){
  .footer__form{ flex-direction:column; gap:1rem; border-bottom:0; }
  .footer__form input{ border-bottom:1px solid rgba(251,247,238,.35); padding-bottom:.6rem; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; }
}

/* ===================== reveal utility ===================== */
.reveal-up{ opacity:0; transform:translateY(36px); }
