/* ============================================================
   PLANT MEAT — components
   ============================================================ */

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

/* soft light bloom behind the 3D form */
.hero::before {
  content: "";
  position: absolute;
  top: 42%; left: 62%;
  width: min(90vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%,
              rgba(var(--verde-rgb),.22) 0%,
              rgba(var(--stone-rgb),.30) 34%,
              transparent 68%);
  filter: blur(28px);
  z-index: -2;
  pointer-events: none;
}
@media (max-width: 900px) { .hero::before { top: 36%; left: 55%; } }

.hero__top {
  position: absolute;
  top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
  left: var(--gutter); right: var(--gutter);
  max-width: calc(var(--maxw) - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.hero__eyebrow { max-width: 22ch; }
.hero__coord { text-align: right; }
@media (max-width: 720px) { .hero__coord { display: none; } }

.hero__title {
  font-size: var(--t-mega);
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__title .l2 { padding-left: clamp(0px, 9vw, 8rem); }
.hero__title .serif { text-transform: none; font-size: 1.06em; }

.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  align-items: end;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}
.hero__lede { grid-column: 1 / 5; }
.hero__actions { grid-column: 6 / 9; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero__facts { grid-column: 10 / 13; display: flex; flex-direction: column; gap: .55rem; }
.hero__fact { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: var(--t-xs); }
.hero__fact dt { color: var(--ink-3); }
.hero__fact dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .hero__lede { grid-column: 1 / 7; }
  .hero__actions { grid-column: 7 / 13; }
  .hero__facts { display: none; }
}
@media (max-width: 900px) {
  .hero__foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__lede, .hero__actions { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------
   MARQUEE
   ------------------------------------------------------------ */

.marquee {
  --speed: 46s;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: 1.05rem;
  background: var(--paper-lift);
  user-select: none;
}
.marquee__track { display: flex; width: max-content; animation: slide var(--speed) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 1.75rem;
  padding-inline: 1.75rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__item::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--verde); flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ------------------------------------------------------------
   MANIFESTO — oversized statement
   ------------------------------------------------------------ */

.manifesto__body { grid-column: 2 / 11; }
.manifesto__text {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "wdth" 95, "opsz" 32;
  font-size: clamp(1.65rem, 3.9vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -.028em;
  text-wrap: pretty;
}
.manifesto__text .serif { color: var(--verde); }
.manifesto__text .dim { color: var(--ink-4); }
.manifesto__sign { grid-column: 2 / 11; margin-top: clamp(2rem, 4vw, 3rem); display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) {
  .manifesto__body, .manifesto__sign { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------
   STAT / NUMBERS
   ------------------------------------------------------------ */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.stat {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem) clamp(2rem, 3.5vw, 3rem);
  display: flex; flex-direction: column; gap: .85rem;
  transition: background .5s var(--ease-out);
}
.stat:hover { background: var(--paper-lift); }
.stat__num { display: flex; align-items: baseline; gap: .1em; color: var(--ink); }
.stat__unit { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; color: var(--verde); }
.stat__label { font-size: var(--t-sm); color: var(--ink-2); max-width: 26ch; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   PRODUCT CARD
   ------------------------------------------------------------ */

/* Centred rows rather than a grid: a grid always parks an incomplete last
   row on the left (10 products in threes left one card alone at the left
   edge, and every filter did the same). Rows here centre themselves. */
.prod-grid {
  --cols: 3;
  --gap-x: clamp(1rem, 1.8vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem) var(--gap-x);
}
.prod-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); min-width: 0; }
/* the full range is ten products: two even rows of five */
@media (min-width: 1280px) { .prod-grid[data-grid] { --cols: 5; } }
@media (max-width: 1000px) { .prod-grid { --cols: 2; } }
@media (max-width: 600px)  { .prod-grid { --cols: 1; } }

.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-lift);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .6s var(--ease-out),
              box-shadow .6s var(--ease-out),
              border-color .6s var(--ease-out);
}
.prod:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.prod__plate {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--plate, var(--sage));
  display: grid;
  place-items: center;
}
.prod__plate img,
.prod__plate svg { width: 100%; height: 100%; object-fit: cover; }
.prod__art {
  transition: transform 1s var(--ease-out);
  transform-origin: 50% 55%;
}
.prod:hover .prod__art { transform: scale(1.055) rotate(-1.2deg); }

.prod__idx {
  position: absolute;
  top: 1rem; left: 1.1rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .12em;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
.prod__tag {
  position: absolute;
  top: .85rem; right: .9rem;
  padding: .45em .85em;
  background: color-mix(in srgb, var(--paper-lift) 88%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.prod__body {
  padding: clamp(1.15rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.prod__name {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  letter-spacing: -.025em;
  line-height: 1.1;
}
.prod__desc { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.45; }

.prod__meta {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: var(--t-xs);
}
.prod__protein { color: var(--verde); font-variant-numeric: tabular-nums; }
.prod__go { display: inline-flex; align-items: center; gap: .45em; color: var(--ink-3); transition: color .3s, gap .35s var(--ease-out); }
.prod:hover .prod__go { color: var(--ink); gap: .75em; }

/* whole-card link */
.prod__link { position: absolute; inset: 0; z-index: 2; }

/* ------------------------------------------------------------
   FILTER BAR
   ------------------------------------------------------------ */

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.filter {
  padding: .68em 1.25em;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .35s var(--ease-out);
}
.filter:hover { color: var(--ink); border-color: var(--ink-4); }
.filter[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.filter__n { opacity: .5; margin-left: .5em; }

/* ------------------------------------------------------------
   SPLIT FEATURE (image + text)
   ------------------------------------------------------------ */

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.split__media { grid-column: 1 / 7; position: relative; }
.split__copy  { grid-column: 8 / 12; }
.split--flip .split__media { grid-column: 7 / 13; order: 2; }
.split--flip .split__copy  { grid-column: 2 / 6; order: 1; }
@media (max-width: 900px) {
  .split__media, .split__copy,
  .split--flip .split__media, .split--flip .split__copy { grid-column: 1 / -1; order: unset; }
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sage);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.frame:hover img { transform: scale(1.04); }
.frame--tall  { aspect-ratio: 3 / 4; }
.frame--wide  { aspect-ratio: 16 / 10; }
.frame--sq    { aspect-ratio: 1; }
.frame__cap {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .5em 1em;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ------------------------------------------------------------
   PROCESS STEPS
   ------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.step__n { font-family: var(--mono); font-size: var(--t-xs); color: var(--verde); letter-spacing: .12em; }
.step__title { font-family: var(--display); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.025em; line-height: 1.08; }
.step__text { font-size: var(--t-sm); color: var(--ink-3); }

/* ------------------------------------------------------------
   VERDE THEORY TEASER
   ------------------------------------------------------------ */

.verde-teaser {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  isolation: isolate;
}
.verde-teaser__bg { position: absolute; inset: 0; z-index: -2; }
.verde-teaser__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform 2s var(--ease-out), opacity 1s; }
.verde-teaser:hover .verde-teaser__bg img { transform: scale(1.05); }
.verde-teaser::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(var(--ink-rgb),.92) 8%, rgba(var(--ink-rgb),.62) 46%, rgba(var(--ink-rgb),.28) 100%);
}
.verde-teaser__inner {
  padding: clamp(2.75rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: end;
  min-height: clamp(420px, 62vh, 660px);
}
.verde-teaser__copy { grid-column: 1 / 7; }
.verde-teaser__side { grid-column: 9 / 13; align-self: end; }
@media (max-width: 900px) {
  .verde-teaser__copy, .verde-teaser__side { grid-column: 1 / -1; }
  .verde-teaser__side { margin-top: 2rem; }
}
.verde-teaser .label { color: rgba(var(--paper-rgb),.5); }
.verde-teaser__title {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "wdth" 88;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin-block: 1.25rem;
}
.verde-teaser__title .serif { text-transform: none; color: var(--verde-tint); }
.verde-teaser .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.verde-teaser .btn::after { background: var(--verde); }
.verde-teaser .btn:hover { color: var(--paper); border-color: var(--verde); }

/* ------------------------------------------------------------
   BIG CTA
   ------------------------------------------------------------ */

.cta-huge { text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); }
.cta-huge__title {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 84;
  font-size: clamp(2.75rem, 10vw, 9rem);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
/* accent words keep the headline's case; only their colour marks them */
.cta-huge__title .serif { color: var(--verde); }

/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: .55rem; }
.field label { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  padding: .95em 1.1em;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--verde); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 520px; width: 100%; }
.inline-form input {
  flex: 1 1 240px;
  padding: 1.05em 1.35em;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  transition: border-color .3s;
}
.inline-form input:focus { outline: none; border-color: var(--verde); }

/* ------------------------------------------------------------
   ACCORDION (FAQ / nutrition)
   ------------------------------------------------------------ */

.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  letter-spacing: -.02em;
  transition: color .3s;
}
.acc__btn:hover { color: var(--verde); }
.acc__sign { position: relative; width: 14px; height: 14px; flex: none; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.acc__sign::before { left: 0; top: 6.5px; width: 14px; height: 1.5px; }
.acc__sign::after  { top: 0; left: 6.5px; width: 1.5px; height: 14px; }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(90deg); opacity: 0; }
.acc__panel { overflow: hidden; height: 0; }
.acc__panel > div { padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }

/* ------------------------------------------------------------
   MISC BITS
   ------------------------------------------------------------ */

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  padding: .5em 1em;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.pill--fill { background: var(--sage); border-color: transparent; }

/* thin index list, used for menus & ingredient lists */
.idx-list { border-top: 1px solid var(--rule); }
.idx-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: clamp(.9rem, 1.6vw, 1.35rem) 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: padding-left .5s var(--ease-out), background .4s;
}
.idx-row:hover { padding-left: .85rem; background: var(--paper-lift); }
.idx-row__n { font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-4); letter-spacing: .1em; }
.idx-row__name { font-family: var(--display); font-weight: 500; font-size: var(--t-md); letter-spacing: -.02em; }
.idx-row__note { display: block; font-family: var(--body); font-weight: 400; font-size: var(--t-sm); color: var(--ink-3); letter-spacing: 0; margin-top: .25rem; }
.idx-row__val { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .idx-row { grid-template-columns: 2.25rem 1fr auto; gap: 1rem; } }

/* page hero for interior pages */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(4rem, 9vw, 8rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-head__title { font-size: var(--t-xxl); text-transform: uppercase; }
/* the fill-the-width size (base.css) must beat the line above */
.page-head__title.title-fill { --fill: .087; font-size: max(var(--t-xxl), calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) * var(--fill))); }

.page-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.25rem, 2.4vw, 2.5rem); align-items: end; }
.page-head__main { grid-column: 1 / 9; }
/* a head with nothing beside it takes the full width */
.page-head__main:only-child { grid-column: 1 / -1; }
/* in a centred narrow page the title keeps its full width (and its line
   breaks); the intro steps down beneath it on the right */
@media (min-width: 1001px) {
  .shell--narrow .page-head__grid { align-items: start; }
  .shell--narrow .page-head__main { grid-column: 1 / -1; }
  .shell--narrow .page-head__aside { grid-column: 7 / 13; margin-top: 1.75rem; }
}
.page-head__aside { grid-column: 10 / 13; }
@media (max-width: 900px) {
  .page-head__main, .page-head__aside { grid-column: 1 / -1; }
  .page-head__aside { margin-top: 1.5rem; }
}

/* ------------------------------------------------------------
   COMPACT PRODUCT GRID — the whole range at a glance
   Photo, 2-line description, protein callout, one CTA. Walking
   a food counter, not reading a spec sheet. Used by the homepage
   range and the recipes index, so it lives here, not in home.css.
   ------------------------------------------------------------ */

.pgrid {
  --cols: 2;
  --gap-x: clamp(.75rem, 1.4vw, 1.4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.85rem, 1.8vw, 1.75rem) var(--gap-x);
}
.pgrid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); min-width: 0; }
@media (min-width: 760px)  { .pgrid { --cols: 3; } }
@media (min-width: 1180px) { .pgrid { --cols: 5; } }

.pcard { display: flex; flex-direction: column; gap: .5rem; }
.pcard__plate {
  display: block;
  aspect-ratio: 4 / 3.4;          /* reserved up front — nothing shifts on load */
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--plate, var(--sage));
}
.pcard__plate svg,
.pcard__plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease-out);
}
.pcard:hover .pcard__plate svg,
.pcard:hover .pcard__plate img { transform: scale(1.05); }

.pcard__name {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: -.022em;
  line-height: 1.15;
}
.pcard__desc {
  font-size: var(--t-sm);
  color: var(--ink-3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__protein {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde-deep);
}
.pcard__cta {
  margin-top: .15rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: var(--verde);
  transition: gap .35s var(--ease-out);
  display: inline-flex; align-items: center; gap: .35em;
}
.pcard:hover .pcard__cta { gap: .65em; }
/* two-up columns on a phone are ~160px: at the default size the label
   breaks and strands its arrow on a line of its own */
@media (max-width: 560px) {
  .pcard__cta { font-size: var(--t-micro); white-space: nowrap; }
}
