/* ==========================================================================
   Greengraze — styles
   Spacing scale is 8px-based (--s-*). Colors and type are tokens on :root.
   ========================================================================== */

:root {
  /* Neutrals */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --gray-50: #F4F5F2;
  --gray-100: #ECEEEA;
  --line: #E3E6E1;
  --line-strong: #CFD4CD;
  --ink: #0E1512;
  --ink-2: #414B45;
  --ink-3: #626C66;

  /* Greens */
  --green-950: #0C1F15;
  --green-900: #112B1D;
  --green-800: #163A27;
  --green-700: #1D4B33;
  --green-600: #256140;

  /* Mint */
  --mint-50: #F0F7F2;
  --mint-100: #E1F0E6;
  --mint-200: #C9E5D2;
  --mint-300: #A6D4B6;
  --mint-400: #7FC198;

  /* On dark */
  --on-dark: #F4F7F4;
  --on-dark-2: rgba(244, 247, 244, 0.72);
  --on-dark-3: rgba(244, 247, 244, 0.52);
  --line-dark: rgba(244, 247, 244, 0.14);   /* dividers only */
  --line-dark-ui: rgba(244, 247, 244, 0.38); /* form control borders: ≥3:1 on green-950 */
  --line-dark-ui-hover: rgba(244, 247, 244, 0.56);

  /* Type */
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8px base) */
  --s-05: 4px;
  --s-1: 8px;
  --s-1-5: 12px; /* half-step for tight UI gaps */
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-15: 120px;

  /* Radii */
  --r-sm: 8px;
  --r-control: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows (soft, low) */
  --shadow-sm: 0 1px 2px rgba(14, 21, 18, 0.04), 0 1px 1px rgba(14, 21, 18, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(14, 21, 18, 0.10), 0 2px 6px rgba(14, 21, 18, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(14, 21, 18, 0.18), 0 4px 12px rgba(14, 21, 18, 0.05);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 80px;
  --container: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.section-deep :focus-visible { outline-color: var(--mint-300); }

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -64px;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--green-800);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s-2); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 var(--s-1);
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-800);
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 48px;
  padding: 0 var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:active { transform: translateY(1px); }

.btn-sm { height: 40px; padding: 0 var(--s-2); font-size: 14px; }
.btn-lg { height: 56px; padding: 0 var(--s-4); font-size: 16px; }

.btn-primary { background: var(--green-800); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--green-800); color: var(--green-800); }

.btn-ghost { color: var(--ink); padding-inline: var(--s-2); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-ghost:hover .icon { transform: translateY(2px); }

.btn-mint { background: var(--mint-200); color: var(--green-900); }
.btn-mint:hover { background: var(--mint-300); }
.btn-mint:hover .icon { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px -12px rgba(14, 21, 18, 0.18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 100%;
}
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav-link {
  position: relative;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--gray-100); }
.nav-link.is-active { color: var(--ink); font-weight: 500; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--green-600);
}
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 15px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-8); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--s-8);
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.hero-copy .lead { max-width: 440px; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 32px;
  padding: 0 var(--s-2) 0 var(--s-1-5);
  border: 1px solid var(--mint-200);
  border-radius: var(--r-pill);
  background: var(--mint-50);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 3px var(--mint-200);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-1); }

.hero-media { position: relative; padding-bottom: var(--s-4); }
.hero-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

.stat-card {
  position: absolute;
  left: calc(var(--s-6) * -1);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  width: 320px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.stat { display: flex; flex-direction: column; gap: var(--s-05); }
.stat + .stat { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.stat-value {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; line-height: 1.4; color: var(--ink-3); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}
.facts li { display: flex; align-items: center; gap: var(--s-2); }
.facts li + li { padding-left: var(--s-6); border-left: 1px solid var(--line); }
.fact-value {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fact-label { max-width: 160px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-15); }
.section-gray { background: var(--gray-50); }
.section-mint { background: var(--mint-50); }

.section-dark { background: var(--green-800); color: var(--on-dark); }
.section-deep { background: var(--green-950); color: var(--on-dark); }
.section-dark .eyebrow,
.section-deep .eyebrow { color: var(--mint-300); }
.section-dark .eyebrow span,
.section-deep .eyebrow span { background: rgba(166, 212, 182, 0.14); color: var(--mint-200); }

.section-head { margin-bottom: var(--s-8); }
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: end;
}
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

.section-intro { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.section-head.center .section-intro { margin-top: var(--s-3); }
.section-dark .section-intro,
.section-deep .section-intro { color: var(--on-dark-2); }

/* ---------- 01 Model grid ---------- */
.section-dark .section-intro { color: rgba(244, 247, 244, 0.82); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(420px, auto);
  gap: var(--s-3);
}

.model-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(244, 247, 244, 0.16);
  border-radius: var(--r-lg);
  background: var(--green-900);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
  isolation: isolate;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.model-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.6s var(--ease);
}
.model-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 31, 21, 0) 35%, rgba(12, 31, 21, 0.82) 100%);
  transition: opacity 0.6s var(--ease);
}

/* Live state: hover on pointer devices, in-view on touch (set by script.js) */
.model-card:hover,
.model-card.is-live { border-color: rgba(166, 212, 182, 0.45); }
.model-card:hover img,
.model-card.is-live img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.model-card:hover::after,
.model-card.is-live::after { opacity: 0.85; }

.model-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
  max-width: 480px;
  padding: var(--s-4);
}
.model-tag {
  margin-bottom: var(--s-05);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-300);
}
.model-body p { font-size: 15px; line-height: 1.6; color: rgba(244, 247, 244, 0.8); text-wrap: pretty; }

.status {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: inline-grid;
  height: 28px;
  padding: 0 var(--s-1-5) 0 calc(var(--s-1-5) + var(--s-2));
  border: 1px solid rgba(244, 247, 244, 0.22);
  border-radius: var(--r-pill);
  background: rgba(12, 31, 21, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
/* Both labels share one grid cell so the pill never changes width abruptly */
.status > span { grid-area: 1 / 1; align-self: center; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.status-idle { color: var(--on-dark-2); }
.status-live { color: var(--mint-200); opacity: 0; transform: translateY(4px); }
.status::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--on-dark-3);
  transition: background-color 0.3s var(--ease);
}
.model-card:hover .status,
.model-card.is-live .status { border-color: rgba(166, 212, 182, 0.5); background: rgba(12, 31, 21, 0.7); }
.model-card:hover .status-idle,
.model-card.is-live .status-idle { opacity: 0; transform: translateY(-4px); }
.model-card:hover .status-live,
.model-card.is-live .status-live { opacity: 1; transform: none; }
.model-card:hover .status::before,
.model-card.is-live .status::before { background: var(--mint-400); animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(127, 193, 152, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(127, 193, 152, 0); }
}

.model-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(244, 247, 244, 0.16);
  border-radius: var(--r-lg);
}
.model-cta p { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; color: var(--on-dark); }
.model-cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-1-5); }

.btn-outline-light { border-color: rgba(244, 247, 244, 0.3); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--mint-300); color: var(--mint-200); }

/* ---------- 02 About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
.about-copy .h2 { margin-bottom: var(--s-3); }
.collab {
  margin-top: var(--s-3);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--green-700);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-4); }
.chips li {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--s-2);
  border: 1px solid var(--mint-200);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
}

.about-media { position: relative; padding-bottom: var(--s-5); }
.about-image {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.trust-card {
  position: absolute;
  left: calc(var(--s-5) * -1);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-control);
  background: var(--green-800);
  color: var(--mint-200);
}
.trust-icon .icon { width: 22px; height: 22px; }
.trust-card > div { display: flex; flex-direction: column; }
.trust-kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); }
.trust-card strong { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.trust-sub { font-size: 13px; color: var(--ink-3); }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }

/* ---------- 03 Impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.impact-card { display: flex; flex-direction: column; padding: var(--s-4); }
.impact-card .h3 { margin-top: var(--s-3); margin-bottom: var(--s-2); }
.impact-card p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-control);
  background: var(--mint-100);
  color: var(--green-800);
}
.icon-tile .icon { width: 22px; height: 22px; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--green-800);
}
.impact-card p { margin-bottom: var(--s-4); }
.card-foot .icon { color: var(--green-600); }

/* ---------- 04 Loop ---------- */
.loop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.loop-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--mint-50);
}
.loop-ring { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; }
.loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.ring-track { fill: none; stroke: var(--mint-300); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.ring-arc {
  fill: none;
  stroke: var(--green-700);
  stroke-width: 3;
  stroke-linecap: round;
  /* One quarter of the circumference (2π·150 ≈ 942.5) */
  stroke-dasharray: 235.6 706.9;
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: rotate(var(--arc-rot, -90deg));
  transition: transform 0.9s var(--ease);
}

.loop-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.loop-node .icon { width: 24px; height: 24px; color: var(--ink-2); transition: color 0.35s var(--ease); }
.loop-node:hover .icon { color: var(--green-700); }
.loop-node.is-active .icon { color: var(--mint-200); }
.loop-node.is-next .icon { color: var(--green-700); }
.loop-node:hover { border-color: var(--green-600); color: var(--green-700); }
.loop-node.is-active {
  border-color: var(--green-800);
  background: var(--green-800);
  color: var(--mint-200);
  box-shadow: 0 0 0 6px var(--mint-100), var(--shadow-md);
  transform: translate(-50%, -50%) scale(1.06);
}
.loop-node.is-next { border-color: var(--mint-300); color: var(--green-700); }

.loop-center {
  position: absolute;
  inset: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.loop-center-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.loop-center-num {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}
.loop-center-title { max-width: 120px; margin-top: var(--s-05); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.loop-center.is-changing > * { animation: center-in 0.45s var(--ease); }
@keyframes center-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.loop-steps { display: flex; flex-direction: column; padding-right: var(--s-2); }
.loop-step { position: relative; border-top: 1px solid var(--line); }
.loop-step:first-child { border-top: 0; }
.loop-step h3 { font: inherit; }

.loop-step-btn {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-3) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.step-num {
  min-width: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}
.step-title {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}
.loop-step-btn:hover .step-title { color: var(--ink-2); }
.loop-step.is-active .step-num { color: var(--green-600); }
.loop-step.is-active .step-title { color: var(--ink); }

.loop-step-body { padding-left: 48px; }
.loop-step-body p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.step-yield {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 28px;
  margin-top: var(--s-1-5);
  padding: 0 var(--s-1-5);
  border-radius: var(--r-pill);
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  font-size: 12px;
  font-weight: 500;
  color: var(--green-700);
}
.step-yield::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }

.loop-toggle {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 32px;
  padding: 0 var(--s-1-5) 0 var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.loop-toggle[hidden] { display: none; }
.loop-toggle:hover { border-color: var(--green-600); color: var(--green-700); }
.loop-toggle .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.loop-toggle .icon-play,
.loop-toggle[data-paused="true"] .icon-pause { display: none; }
.loop-toggle[data-paused="true"] .icon-play { display: block; }

/* Accordion behaviour only when JS runs; without JS every step stays open. */
.js .loop-step-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease), padding-bottom 0.45s var(--ease);
}
.js .loop-step-body > div { overflow: hidden; }
.js .loop-step.is-active .loop-step-body { grid-template-rows: 1fr; opacity: 1; padding-bottom: var(--s-3); }
html:not(.js) .loop-step-body { padding-bottom: var(--s-3); }

/* Autoplay progress line on the active step */
.loop-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.loop-panel.is-playing .loop-step.is-active .loop-progress {
  opacity: 1;
  animation: loop-progress var(--loop-duration, 5000ms) linear forwards;
}
.loop-panel.is-paused .loop-step.is-active .loop-progress { animation-play-state: paused; }
@keyframes loop-progress { to { transform: scaleX(1); } }

/* ---------- 05 Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: var(--s-3); }

.field-label {
  display: block;
  margin-bottom: var(--s-1);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}
.optional { font-weight: 400; color: var(--on-dark-3); }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-05);
  padding: var(--s-05);
  border: 1px solid var(--line-dark-ui);
  border-radius: var(--r-pill);
  background: rgba(244, 247, 244, 0.04);
}
.segmented button {
  height: 40px;
  padding: 0 var(--s-2);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented button:hover { color: var(--on-dark); }
.segmented button[aria-checked="true"] { background: var(--mint-200); color: var(--green-900); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.field { display: flex; flex-direction: column; }

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-1-5) var(--s-2);
  border: 1px solid var(--line-dark-ui);
  border-radius: var(--r-control);
  background: rgba(244, 247, 244, 0.04);
  color: var(--on-dark);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 136px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--on-dark-3); }
.field input:not([type="checkbox"]):not([type="radio"]):hover,
.field textarea:hover { border-color: var(--line-dark-ui-hover); }
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint-300);
  background: rgba(244, 247, 244, 0.06);
  box-shadow: 0 0 0 3px rgba(166, 212, 182, 0.18);
}
.field.has-error input:not([type="checkbox"]):not([type="radio"]),
.field.has-error textarea { border-color: #E8A39A; }
.field-error { min-height: 0; font-size: 13px; color: #F0B4AC; }
.field.has-error .field-error { margin-top: var(--s-1); }

.section-deep { color-scheme: dark; }

.role-hint { margin-top: var(--s-1-5); font-size: 14px; color: var(--on-dark-3); }

.role-panel { display: flex; flex-direction: column; gap: var(--s-3); }
.role-panel[hidden] { display: none; }
.role-panel.is-entering { animation: panel-in 0.35s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.field select {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-5) 0 var(--s-2);
  border: 1px solid var(--line-dark-ui);
  border-radius: var(--r-control);
  background: rgba(244, 247, 244, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C9E5D2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right var(--s-2) center;
  color: var(--on-dark);
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select:hover { border-color: var(--line-dark-ui-hover); }
.field select:focus { outline: none; border-color: var(--mint-300); box-shadow: 0 0 0 3px rgba(166, 212, 182, 0.18); }
.field select:invalid { color: var(--on-dark-3); }
.field select option { background: var(--green-900); color: var(--on-dark); }
.field.has-error select { border-color: #E8A39A; }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; }

/* Multi-select chips (buyer products) */
.check-chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.check-chips label { position: relative; cursor: pointer; }
.check-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check-chips span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 40px;
  padding: 0 var(--s-2);
  border: 1px solid var(--line-dark-ui);
  border-radius: var(--r-pill);
  background: rgba(244, 247, 244, 0.04);
  font-size: 14px;
  color: var(--on-dark-2);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.check-chips label:hover span { border-color: var(--line-dark-ui-hover); color: var(--on-dark); }
.check-chips input:checked + span { background: rgba(166, 212, 182, 0.14); border-color: var(--mint-300); color: var(--mint-100); }
.check-chips input:checked + span::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23C9E5D2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.5 2.5 2.5 4.5-5.5'/%3E%3C/svg%3E") no-repeat center;
}
.check-chips input:focus-visible + span { outline: 2px solid var(--mint-300); outline-offset: 2px; }
.check-group.has-error .check-chips span { border-color: rgba(232, 163, 154, 0.6); }

/* Single-select option cards (farmer interest) */
.option-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1-5); }
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-05);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-6);
  border: 1px solid var(--line-dark-ui);
  border-radius: var(--r-control);
  background: rgba(244, 247, 244, 0.04);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.option-card:hover { border-color: var(--line-dark-ui-hover); }
.option-card input {
  position: absolute;
  top: 18px;
  left: var(--s-2);
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  border: 1.5px solid var(--on-dark-3);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.option-card input:checked { border-color: var(--mint-300); box-shadow: inset 0 0 0 3px var(--green-950), inset 0 0 0 8px var(--mint-300); }
.option-card input:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 2px; }
.option-card:has(input:checked) { border-color: var(--mint-300); background: rgba(166, 212, 182, 0.08); }
.option-title { font-size: 15px; font-weight: 500; color: var(--on-dark); }
.option-desc { font-size: 13px; line-height: 1.45; color: var(--on-dark-3); }
.field.has-error .option-card { border-color: rgba(232, 163, 154, 0.6); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-1); }
.form-status { font-size: 14px; color: var(--mint-200); }
.form-status.is-error { color: #F0B4AC; }

.contact-card {
  font-style: normal;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(244, 247, 244, 0.03);
  overflow: hidden;
}
.contact-item { padding: var(--s-3); }
.contact-item + .contact-item { border-top: 1px solid var(--line-dark); }
.contact-kicker {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-1);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.contact-kicker .icon { width: 16px; height: 16px; color: var(--mint-300); }
.contact-item p,
.contact-item a { font-size: 17px; line-height: 1.5; color: var(--on-dark); }
.contact-item a {
  display: inline-block;
  padding-block: var(--s-05);
  text-decoration: underline;
  text-decoration-color: rgba(166, 212, 182, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
  overflow-wrap: anywhere;
}
.contact-item a:hover { text-decoration-color: var(--mint-300); }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--s-10); background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}
.footer-brand img { width: 168px; margin-left: -8px; }
.footer-brand p { max-width: 360px; margin-top: var(--s-2); font-size: 15px; line-height: 1.65; color: var(--ink-3); }
.footer-title {
  margin-bottom: var(--s-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--s-05); }
.site-footer ul a { display: inline-block; padding-block: var(--s-05); font-size: 15px; color: var(--ink-2); transition: color 0.2s var(--ease); }
.site-footer ul a:hover { color: var(--green-700); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-collab { font-style: italic; }

/* ---------- Reveal (only when JS is on) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .model-card:hover img,
  .model-card.is-live img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stat-card { left: var(--s-3); }
  .trust-card { left: var(--s-3); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-05);
    padding: var(--s-2) var(--gutter) var(--s-3);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-link { padding: var(--s-1-5) var(--s-2); font-size: 17px; border-radius: var(--r-control); }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--mint-50); }
  .nav-cta-mobile { display: inline-flex; margin-top: var(--s-1); }

  .section { padding-block: var(--s-12); }
  .hero { padding-top: var(--s-5); }
  .hero-grid,
  .about-grid,
  .contact-grid,
  .section-head.split { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .hero-copy .lead { max-width: 560px; }

  .impact-grid { grid-template-columns: minmax(0, 1fr); }
  .loop-panel { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .loop-visual { padding: var(--s-4); }
  .loop-ring { max-width: 380px; }
  .loop-steps { padding-right: 0; }

  .model-grid { grid-auto-rows: minmax(360px, auto); gap: var(--s-2); }
  .model-body { padding: var(--s-3); }

  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .facts li { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .facts li + li { padding-left: var(--s-3); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .brand img { width: 144px; }
  .section { padding-block: var(--s-10); }
  .section-head { margin-bottom: var(--s-5); }
  .h3 { font-size: 26px; }

  .eyebrow-pill { font-size: 11px; letter-spacing: 0.04em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }

  .hero-media,
  .about-media { padding-bottom: 0; }
  .hero-image { aspect-ratio: 4 / 5; }
  .stat-card,
  .trust-card { position: relative; left: auto; bottom: auto; margin: calc(var(--s-6) * -1) var(--s-2) 0; width: auto; }
  .stat-value { font-size: 40px; }

  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s-5); padding-block: var(--s-1); }
  .facts li { flex-direction: row; align-items: center; gap: var(--s-2); padding-block: var(--s-2); }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact-value { min-width: 88px; }
  .fact-label { max-width: none; }

  .model-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(380px, auto); }
  .model-body { padding: var(--s-3); }
  .model-cta { padding: var(--s-3); }
  .model-cta p { font-size: 22px; }
  .model-cta-actions, .model-cta-actions .btn { width: 100%; }

  .impact-card { padding: var(--s-3); }
  .loop-panel { padding: var(--s-2); border-radius: var(--r-lg); }
  .loop-visual { padding: var(--s-3) var(--s-2); border-radius: var(--r-md); }
  .loop-node { width: 52px; height: 52px; }
  .loop-node .icon { width: 20px; height: 20px; }
  .loop-center-title { font-size: 12px; max-width: 96px; }
  .loop-steps { padding-inline: var(--s-1); }
  .step-title { font-size: 26px; }
  .loop-step-body { padding-left: 0; }

  .field-row,
  .option-cards { grid-template-columns: minmax(0, 1fr); }
  .segmented { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-md); width: 100%; }
  .segmented button { border-radius: var(--r-control); }
  .form-foot .btn { width: 100%; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: var(--s-1); }
}

@media (max-width: 400px) {
  .loop-center { inset: 31%; }
  .loop-center-kicker,
  .loop-center-title { display: none; }
}
