/* ============================================================
   PLANT MEAT — reset, typography, layout primitives, chrome
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* this site has one deliberate light theme — tell the browser not to
     auto-dark-mode form controls, scrollbars, or apply its own forced-dark
     contrast heuristics to individual elements */
  color-scheme: light;
}
html.lenis { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--verde-tint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- paper grain: the single biggest "not-generated" tell ---- */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  will-change: transform;
}

/* ============================================================
   TYPE
   ============================================================ */

.display {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 92, "opsz" 40;
  line-height: .92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display--mega { font-size: var(--t-mega); letter-spacing: -0.045em; }
.display--xxl  { font-size: var(--t-xxl); }
.display--xl   { font-size: var(--t-xl); line-height: .98; letter-spacing: -.03em; }
.display--lg   { font-size: var(--t-lg); line-height: 1.06; letter-spacing: -.022em; }

/* the italic serif accent — used for one or two words, never a whole line */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
}

.label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label--verde { color: var(--verde); }

/* mono label with a leading tick mark */
.label-tick { display: inline-flex; align-items: center; gap: .6em; }
.label-tick::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--verde);
  border-radius: 50%;
  flex: none;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure);
  letter-spacing: -.011em;
  text-wrap: pretty;
}

.body-text {
  color: var(--ink-2);
  max-width: var(--measure);
  text-wrap: pretty;
}
.body-text + .body-text { margin-top: 1.1em; }

.muted { color: var(--ink-3); }

/* number that reads as data, not decoration */
.figure-num {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 85;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: .86;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 1120px; }

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * .58); }
.band--sink { background: var(--paper-sink); }
.band--warm { background: var(--paper-warm); }

/* Visual weight is not uniform across the homepage. Hero chapters
   (Hero, Product Range, "Wait…plant-based?", Verde Theory, Our Story,
   Final CTA) get more breathing room; media there can run edge to edge
   (see .gallery-wrap in home.css).
   Connective-tissue sections stay on .band--tight + .shell--narrow and
   never use these. */
.chapter { padding-block: calc(var(--band) * 1.08); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* editorial 12-col */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
}

/* section heading block: mono index + display title, offset */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head__idx { grid-column: 1 / 3; padding-bottom: .55rem; }
.sec-head__title { grid-column: 3 / 10; }
.sec-head__aside { grid-column: 10 / 13; padding-bottom: .5rem; }
/* optional third line under the title — a section's editorial aside */
.sec-head__note { grid-column: 3 / 10; margin-top: 1rem; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 1rem; }
  .sec-head__idx, .sec-head__title, .sec-head__aside, .sec-head__note { grid-column: 1 / -1; padding-bottom: 0; }
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75em;
  padding: 1.05em 1.85em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
/* wipe fill from the bottom */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--verde);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover { color: #fff; border-color: var(--verde); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(1px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--verde); }

/* the site's one warm-accent button — reserved for the highest-intent
   action per page (order, join, send). Everything else stays ink/verde
   so this keeps its pull instead of becoming background noise. */
.btn--verde { --btn-bg: var(--verde); --btn-fg: var(--paper); box-shadow: var(--shadow-verde); }
.btn--verde::after { background: var(--ink); }
.btn--verde:hover { border-color: var(--ink); }

.btn__arrow { transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* underline-on-hover text link */
.tlink {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 var(--rule-soft);
}
.nav.is-hidden { transform: translateY(-100%); }

/* wordmark */
.mark {
  display: inline-flex;
  align-items: baseline;
  gap: .5ch;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 86;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark__leaf {
  width: 15px; height: 15px;
  align-self: center;
  color: var(--verde);
  flex: none;
  transition: transform .6s var(--ease-out);
}
.mark:hover .mark__leaf { transform: rotate(-24deg) scale(1.12); }
.mark__thin { font-weight: 300; font-variation-settings: "wdth" 100; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .06em;
}
.nav__link { position: relative; padding: .35em 0; color: var(--ink-2); transition: color .3s; }
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__cta { padding: .78em 1.4em; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background .2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease-out);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after  { top: 5px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__burger span::after  { transform: translateY(-5px) rotate(-45deg); }

/* full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--paper);
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-out);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: .25rem; }
.menu__link {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  letter-spacing: -.035em;
  line-height: 1.1;
  padding: .12em 0;
  border-bottom: 1px solid var(--rule-soft);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
body.menu-open .menu__link { opacity: 1; transform: none; }
body.menu-open .menu__link:nth-child(1) { transition-delay: .16s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: .22s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: .28s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: .34s; }
body.menu-open .menu__link:nth-child(5) { transition-delay: .40s; }
body.menu-open .menu__link:nth-child(6) { transition-delay: .46s; }
.menu__link:hover { color: var(--verde); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */

.foot { background: var(--ink); color: var(--paper); padding-block: clamp(4rem, 8vw, 7rem) 2.5rem; }
.foot a { color: var(--paper); }
.foot .label { color: rgba(var(--paper-rgb),.42); }

.foot__top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(var(--paper-rgb),.13);
}
.foot__brand { grid-column: 1 / 5; }
.foot__col { grid-column: span 2; display: flex; flex-direction: column; gap: .8rem; }
.foot__col a { font-size: var(--t-sm); color: rgba(var(--paper-rgb),.72); transition: color .3s; width: fit-content; }
.foot__col a:hover { color: var(--verde-tint); }
@media (max-width: 900px) {
  .foot__top { grid-template-columns: repeat(2, 1fr); }
  .foot__brand { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .foot__col { grid-column: span 1; }
}

.foot__giant {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 78;
  font-size: clamp(3.5rem, 15.5vw, 15rem);
  line-height: .82;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  color: rgba(var(--paper-rgb),.1);
  user-select: none;
}
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: rgba(var(--paper-rgb),.5);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ============================================================
   SCROLL REVEAL — GSAP drives these; CSS is the no-JS fallback
   ============================================================ */

[data-reveal] { will-change: transform, opacity; }

html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* per-line masked text reveal — .line wrappers injected by JS */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   UTILITY
   ============================================================ */

.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;
}
.skip {
  position: absolute; left: 1rem; top: -100px;
  z-index: 999; padding: .8em 1.2em;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: var(--t-xs);
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 1rem; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-s { gap: .75rem; } .gap-m { gap: 1.25rem; } .gap-l { gap: 2rem; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3.5rem; }
