/* ==========================================================================
   Zamba — styles.css
   Transparent supply chains, empowered communities.
   Scroll-driven narrative · "Living Thread" visual device · field-first agritech
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@300..700&family=Fraunces:opsz,wght@9..144,400..700&display=swap');

@property --reveal {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* ---- palette ---- */
  --forest: #0B3D2E;
  --leaf: #2E7D32;
  --fresh: #7BC96F;
  --gold: #F2B441;
  --cream: #F8F5EE;
  --white: #FFFFFF;
  --charcoal: #1F2A24;
  --slate: #66756D;
  --border: #E4E9E3;
  --blue: #2F80ED;
  --pear: #E85D75;

  --forest-92: rgba(11, 61, 46, .92);
  --forest-60: rgba(11, 61, 46, .60);
  --forest-40: rgba(11, 61, 46, .40);
  --forest-22: rgba(11, 61, 46, .22);
  --forest-14: rgba(11, 61, 46, .14);
  --forest-08: rgba(11, 61, 46, .08);
  --forest-05: rgba(11, 61, 46, .05);
  --forest-tint: #E8EFE9;
  --forest-mid: #14503C;

  --cream-80: rgba(248, 245, 238, .80);
  --cream-72: rgba(248, 245, 238, .72);
  --cream-40: rgba(248, 245, 238, .40);
  --cream-16: rgba(248, 245, 238, .16);
  --cream-07: rgba(248, 245, 238, .07);

  --gold-glow: rgba(242, 180, 65, .28);
  --fresh-glow: rgba(123, 201, 111, .35);

  /* ---- type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* modular scale 1.25 · root 16px */
  --fs-caption: 0.64rem;   /* 10.2px */
  --fs-small: 0.8rem;      /* 12.8px */
  --fs-body: 1rem;         /* 16px   */
  --fs-lead: 1.25rem;      /* 20px   */
  --fs-h4: 1.563rem;       /* 25px   */
  --fs-h3: 1.953rem;       /* 31.3px */
  --fs-h2: 2.441rem;       /* 39.1px */
  --fs-h1: 3.052rem;       /* 48.8px */
  --fs-display: 3.815rem;  /* 61px   */

  --lh-display: .97;
  --lh-tight: 1.05;
  --lh-snug: 1.15;
  --lh-head: 1.25;
  --lh-lead: 1.45;
  --lh-body: 1.55;

  /* ---- 8pt space scale ---- */
  --space-1: 0.5rem;   /*  8 */
  --space-2: 1rem;     /* 16 */
  --space-3: 1.5rem;   /* 24 */
  --space-4: 2rem;     /* 32 */
  --space-5: 2.5rem;   /* 40 */
  --space-6: 3rem;     /* 48 */
  --space-7: 3.5rem;   /* 56 */
  --space-8: 4rem;     /* 64 */
  --space-10: 5rem;    /* 80 */
  --space-12: 6rem;    /* 96 */
  --space-16: 8rem;    /* 128 */
  --space-20: 10rem;   /* 160 */

  --section-y: clamp(4rem, 7.5vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 1.5rem);
  --shell-max: 1280px;
  --header-h: 4rem;

  /* ---- radii ---- */
  --r-1: 0.25rem;
  --r-2: 0.625rem;
  --r-3: 0.875rem;
  --r-4: 1.25rem;
  --r-5: 1.75rem;
  --r-pill: 999px;

  /* ---- elevation system ---- */
  --ele-1: 0 1px 0 rgba(11, 61, 46, .05), 0 1px 2px rgba(11, 61, 46, .06);
  --ele-2: 0 1px 0 rgba(11, 61, 46, .05), 0 6px 16px -8px rgba(11, 61, 46, .22), 0 0 0 1px rgba(11, 61, 46, .06);
  --ele-3: 0 2px 0 rgba(11, 61, 46, .06), 0 18px 40px -20px rgba(11, 61, 46, .30), 0 0 0 1px rgba(11, 61, 46, .07);
  --ele-4: 0 3px 0 rgba(11, 61, 46, .07), 0 34px 68px -28px rgba(11, 61, 46, .38), 0 0 0 1px rgba(11, 61, 46, .08);
  --ele-5: 0 4px 0 rgba(11, 61, 46, .08), 0 56px 96px -40px rgba(11, 61, 46, .45), 0 0 0 1px rgba(11, 61, 46, .09);
  --ele-hard: 10px 10px 0 rgba(11, 61, 46, .10);
  --ele-inset: inset 0 1px 0 rgba(255, 255, 255, .72);
  --ele-dark: inset 0 1px 0 rgba(255, 255, 255, .07), 0 28px 56px -30px rgba(0, 0, 0, .62);
  --ring: 0 0 0 3px rgba(123, 201, 111, .35);

  /* ---- layering ---- */
  --z-thread: 1;
  --z-content: 2;
  --z-rail: 30;
  --z-header: 60;
  --z-grain: 90;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.22, .72, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --dur-fast: .22s;
  --dur-mid: .38s;
  --dur-slow: .7s;
}

@media (min-width: 960px) {
  :root { --header-h: 4.5rem; }
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 70% at 82% -6%, rgba(123, 201, 111, .10) 0%, rgba(123, 201, 111, 0) 62%),
    radial-gradient(90% 60% at -10% 24%, rgba(242, 180, 65, .09) 0%, rgba(242, 180, 65, 0) 60%);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

::selection {
  background: var(--gold);
  color: var(--forest);
}

:focus-visible {
  outline: 2px dashed var(--leaf);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--forest);
  color: var(--cream);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--r-2);
  box-shadow: var(--ele-3);
  transform: translateY(-200%);
  transition: transform var(--dur-mid) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  outline-offset: 4px;
}

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

/* ---- grain / noise film ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.62'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
}

/* ---- the Living Thread ---- */
.thread {
  position: absolute;
  inset: 0;
  z-index: var(--z-thread);
  pointer-events: none;
  overflow: visible;
}

.thread__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.thread__path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.thread__path--base {
  stroke: var(--forest-14);
  stroke-width: 2;
}

.thread__path--live {
  stroke: var(--fresh);
  stroke-width: 2.5;
  stroke-dasharray: 14 22;
  filter: drop-shadow(0 0 6px var(--fresh-glow));
  animation: thread-flow 7s linear infinite;
}

.thread__node {
  fill: var(--leaf);
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 4.2s var(--ease-out) infinite;
}

.thread__node--gold {
  fill: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.thread__node--pear {
  fill: var(--pear);
  filter: drop-shadow(0 0 8px rgba(232, 93, 117, .4));
}

.thread__node--fresh {
  fill: var(--fresh);
  filter: drop-shadow(0 0 8px var(--fresh-glow));
}

@keyframes thread-flow {
  to { stroke-dashoffset: -360; }
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.45); opacity: 1; }
}

/* --------------------------------------------------------------------------
   4. HEADER / NAV
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    backdrop-filter var(--dur-slow) var(--ease-out);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--forest-14) 12%, var(--forest-14) 88%, transparent);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

/* ---- brand ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex: none;
  text-decoration: none;
  color: var(--forest);
}

.brand__mark {
  position: relative;
  display: block;
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
  background: var(--forest);
  border-radius: 60% 12% 60% 60%;
  transform: rotate(-12deg);
  box-shadow: var(--ele-2);
  transition: transform var(--dur-mid) var(--ease-spring), background-color var(--dur-mid);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: .64rem;
  border-radius: 50%;
  background: var(--fresh);
  box-shadow: 0 0 0 2px rgba(123, 201, 111, .22);
  transition: background-color var(--dur-mid), box-shadow var(--dur-mid);
}

.brand:hover .brand__mark {
  transform: rotate(0deg) scale(1.06);
  background: var(--leaf);
}

.brand:hover .brand__mark::after {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.brand__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1;
  color: var(--forest);
}

/* ---- primary nav ---- */
.site-nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: .55rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .022em;
  color: var(--forest);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .35rem;
  width: 100%;
  height: 1.5px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-mid) var(--ease-out), background-color var(--dur-mid);
}

.site-nav__list a:hover { color: var(--leaf); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.link-quiet {
  display: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--forest);
  padding-block: .35rem;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.link-quiet:hover {
  color: var(--leaf);
  border-bottom-color: var(--leaf);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .012em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: var(--leaf);
  color: var(--cream);
  box-shadow: var(--ele-2), var(--ele-inset);
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    color var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ele-3), var(--ele-inset), 0 0 0 4px rgba(46, 125, 50, .12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--ele-1), var(--ele-inset);
}

.btn--primary {
  background: var(--leaf);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--forest);
}

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest-22);
  box-shadow: none;
}

.btn--ghost::after { display: none; }

.btn--ghost:hover {
  background: var(--forest-05);
  border-color: var(--forest-40);
  box-shadow: 0 0 0 4px rgba(11, 61, 46, .05);
}

.btn--sm {
  padding: .625rem 1.0625rem;
  font-size: var(--fs-small);
}

.btn--block {
  width: 100%;
  display: flex;
}

/* ---- mobile nav toggle ---- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--forest-14);
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}

.nav-toggle:hover {
  background: var(--white);
  border-color: var(--forest-22);
}

.nav-toggle:active { transform: scale(.94); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--forest);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid), opacity var(--dur-fast);
}

.nav-toggle__bars::before {
  top: 0;
  box-shadow: 0 5px 0 var(--forest);
}

.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
  box-shadow: 0 5px 0 rgba(11, 61, 46, 0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---- mobile nav panel ---- */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-3) var(--gutter) var(--space-6);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--ele-4);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path var(--dur-slow) var(--ease-out),
    visibility var(--dur-slow) linear;
}

.mobile-nav.is-open,
.mobile-nav[data-open="true"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mobile-nav__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 1px;
}

.mobile-nav__list li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav__list a {
  display: block;
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--forest);
  transition: color var(--dur-fast), padding-left var(--dur-mid) var(--ease-out);
}

.mobile-nav__list a:hover {
  color: var(--leaf);
  padding-left: .5rem;
}

.mobile-nav__actions {
  display: grid;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   6. CHAPTER RAIL
   -------------------------------------------------------------------------- */

.chapter-rail { display: none; }

/* --------------------------------------------------------------------------
   7. CHAPTER STRUCTURE
   -------------------------------------------------------------------------- */

.chapter {
  position: relative;
  padding-block: var(--section-y);
}

.chapter__inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.chapter__head {
  max-width: 46rem;
  margin-bottom: var(--space-6);
}

.section-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.75rem, 3.6vw, var(--fs-h2));
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -.024em;
  color: var(--forest);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   8. HERO / ROOTS
   -------------------------------------------------------------------------- */

.chapter--roots {
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 8rem);
  background-color: transparent;
  background-image:
    repeating-linear-gradient(96deg,
      rgba(11, 61, 46, .038) 0 1px,
      rgba(11, 61, 46, 0) 1px 26px),
    linear-gradient(180deg,
      var(--cream) 0%,
      #EFF4EC 52%,
      var(--cream) 100%);
}

.chapter--roots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg,
      rgba(123, 201, 111, .07) 0 1px,
      rgba(123, 201, 111, 0) 1px 96px);
  pointer-events: none;
  z-index: 0;
}

.hero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  position: relative;
}

.hero__copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leaf);
}

.eyebrow__rule {
  display: block;
  width: 2.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--fresh));
  flex: none;
}

.display {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 132;
  font-size: clamp(2.6rem, 8.4vw, var(--fs-display));
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: -.032em;
  color: var(--forest);
  text-wrap: balance;
}

.display em {
  font-style: italic;
  font-variation-settings: "opsz" 132, "SOFT" 40;
  color: var(--leaf);
  box-shadow: inset 0 -0.14em 0 var(--gold-glow);
}

.lead {
  margin: 0 0 var(--space-4);
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--slate);
}

.lead--muted { color: var(--slate); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.trust-badges__item {
  position: relative;
  padding-left: 1.375rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--forest);
}

.trust-badges__item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .42em;
  width: .55rem;
  height: .3rem;
  border-left: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: rotate(-45deg);
}

/* ---- hero stack / mockup ---- */
.hero__stack {
  position: relative;
  z-index: 2;
  padding-block: var(--space-3);
}

.hero__frame {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--forest-08);
  box-shadow: var(--ele-5);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

.hero__frame::before {
  content: "";
  display: block;
  height: 2.125rem;
  background-color: #F1F3EF;
  background-image:
    radial-gradient(circle at 1.125rem 50%, #DF655C 0 3.4px, transparent 3.6px),
    radial-gradient(circle at 2.125rem 50%, #E9B84A 0 3.4px, transparent 3.6px),
    radial-gradient(circle at 3.125rem 50%, var(--fresh) 0 3.4px, transparent 3.6px);
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 2.125rem 0 0 0;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(11, 61, 46, 0) 42%,
      rgba(11, 61, 46, .10) 72%,
      rgba(11, 61, 46, .30) 100%);
  mix-blend-mode: multiply;
}

.hero__frame img {
  width: 100%;
  height: auto;
  filter: saturate(.94) contrast(1.03);
}

/* crop-row silhouette clip */
.clip-crop-rows {
  position: relative;
  clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 0% 25%, 0% 28%, 100% 28%, 100% 54%, 0% 54%, 0% 57%, 100% 57%, 100% 100%, 0% 100%);
  transition: clip-path var(--dur-slow) var(--ease-out);
}

.clip-crop-rows:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(152deg, rgba(11, 61, 46, .95) 0%, rgba(242, 180, 65, .72) 100%);
  mix-blend-mode: color;
  opacity: .32;
}

.clip-crop-rows:hover {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 100%, 100% 100%, 100% 100%, 0% 100%, 0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

.figure-caption {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  letter-spacing: .012em;
  color: var(--slate);
}

.figure-caption::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: var(--gold);
}

/* ---- floating UI cards ---- */
.float-card {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: .25rem;
  min-width: 10.5rem;
  padding: .875rem 1rem;
  border-radius: var(--r-3);
  background: rgba(255, 255, 255, .90);
  border: 1px solid var(--forest-08);
  box-shadow: var(--ele-3);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
}

.float-card--sync {
  left: .5rem;
  top: 1rem;
  animation: float-drift 8s var(--ease-out) infinite;
}

.float-card--lot {
  right: .5rem;
  bottom: 1.25rem;
  padding-left: 1.25rem;
  animation: float-drift 10s var(--ease-out) infinite reverse;
}

.float-card--lot::before {
  content: "";
  position: absolute;
  left: .55rem;
  top: .875rem;
  bottom: .875rem;
  width: 3px;
  border-radius: 3px;
  background: var(--pear);
  box-shadow: 0 0 10px rgba(232, 93, 117, .45);
}

.float-card__label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--slate);
}

.float-card--sync .float-card__label::before {
  content: "";
  width: .45rem;
  height: .45rem;
  flex: none;
  border-radius: 50%;
  background: var(--fresh);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}

.float-card__value {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 42;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--forest);
}

.numeric {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.012em;
}

.float-card__meta {
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--slate);
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(123, 201, 111, .55); }
  70% { box-shadow: 0 0 0 9px rgba(123, 201, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 201, 111, 0); }
}

/* --------------------------------------------------------------------------
   9. PROOF / MARQUEE
   -------------------------------------------------------------------------- */

.proof {
  position: relative;
  z-index: var(--z-content);
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--white);
  border-block: 1px solid var(--border);
}

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2) var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__viewport {
  display: flex;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: none;
  min-width: max-content;
  animation: marquee-scroll 42s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: .8;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.proof__strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--ele-1);
}

.proof__stat {
  position: relative;
  display: grid;
  align-content: start;
  gap: .375rem;
  padding: var(--space-4) var(--space-3);
  background: var(--white);
  box-shadow: inset 0 0 0 0 var(--gold);
  transition: background-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.proof__stat:hover {
  background: #FCFBF7;
  box-shadow: inset 0 3px 0 0 var(--gold);
}

.proof__value {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-size: clamp(1.75rem, 4vw, var(--fs-h2));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.028em;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.proof__label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   10. FRAGMENTED CHAIN (dark chapter)
   -------------------------------------------------------------------------- */

.chapter--fragmented {
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}

.chapter--fragmented::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(94deg,
      rgba(248, 245, 238, .045) 0 1px,
      rgba(248, 245, 238, 0) 1px 34px),
    radial-gradient(80% 60% at 88% 0%, rgba(123, 201, 111, .14) 0%, rgba(123, 201, 111, 0) 62%);
}

.chapter--fragmented .chapter__inner { position: relative; z-index: 2; }

.chapter--fragmented .section-title { color: var(--cream); }

.chapter--fragmented .lead--muted { color: var(--cream-72); }

/* ---- asymmetric fragment grid ---- */
.fragment-grid {
  display: grid;
  gap: var(--space-3);
}

.fragment-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-5);
  border-radius: var(--r-3);
  background: var(--cream-07);
  border: 1px solid var(--cream-16);
  box-shadow: var(--ele-dark);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.fragment-card::before {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cream-16);
  transition: background-color var(--dur-mid) var(--ease-out);
}

.fragment-card:hover {
  transform: translateY(-6px);
  background: rgba(248, 245, 238, .105);
  border-color: rgba(123, 201, 111, .38);
}

.fragment-card:hover::before { background: var(--gold); }

.fragment-card__num {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--cream);
}

.fragment-card p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--cream-72);
}

.fragment-card__thread {
  position: relative;
  display: block;
  height: 2px;
  margin-top: var(--space-2);
  background-image: repeating-linear-gradient(90deg,
      rgba(242, 180, 65, .85) 0 9px,
      rgba(242, 180, 65, 0) 9px 17px);
  background-size: 17px 100%;
  animation: thread-dash 3.4s linear infinite;
}

.fragment-card__thread::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--pear);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(232, 93, 117, .55);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.fragment-card:hover .fragment-card__thread::after { opacity: 1; }

@keyframes thread-dash {
  to { background-position-x: 17px; }
}

/* --------------------------------------------------------------------------
   11. CHAPTER BRIDGE
   -------------------------------------------------------------------------- */

.chapter__bridge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.bridge-line {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--cream-16), rgba(248, 245, 238, .32) 45%, rgba(248, 245, 238, 0));
}

.bridge-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fresh);
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 4px rgba(123, 201, 111, .16);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--dur-fast) var(--ease-out);
}

.link-arrow::after {
  content: "→";
  display: inline-block;
  font-size: 1em;
  transition: transform var(--dur-mid) var(--ease-spring);
}

.link-arrow:hover { color: var(--fresh); }
.link-arrow:hover::after { transform: translateX(6px); }

/* bridge on light backgrounds */
.chapter:not(.chapter--fragmented) .bridge-line {
  background: linear-gradient(90deg, var(--forest-14), var(--forest-22) 45%, rgba(11, 61, 46, 0));
}

.chapter:not(.chapter--fragmented) .link-arrow { color: var(--leaf); }
.chapter:not(.chapter--fragmented) .link-arrow:hover { color: var(--forest); }

/* --------------------------------------------------------------------------
   12. RESPONSIVE — mobile-first escalation
   -------------------------------------------------------------------------- */

@media (min-width: 600px) {
  .float-card { min-width: 11.5rem; }
  .fragment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card--sync { left: -1rem; top: 2.5rem; }
  .float-card--lot { right: -1rem; bottom: 2.5rem; }
}

@media (min-width: 900px) {
  .proof__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .fragment-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-5) var(--space-3);
    align-items: start;
  }

  .fragment-card:nth-child(1) { grid-column: 1 / span 5; }
  .fragment-card:nth-child(2) { grid-column: 7 / span 4; margin-top: var(--space-6); }
  .fragment-card:nth-child(3) { grid-column: 2 / span 4; margin-top: var(--space-2); }
  .fragment-card:nth-child(4) { grid-column: 7 / span 5; margin-top: var(--space-5); }
  .fragment-card:nth-child(5) { grid-column: 1 / span 4; margin-top: var(--space-2); }
  .fragment-card:nth-child(6) { grid-column: 6 / span 4; margin-top: var(--space-6); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
  .link-quiet { display: inline-block; }
  .mobile-nav { display: none; }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: var(--space-8);
    align-items: center;
  }

  .float-card--sync { left: -2.25rem; top: 18%; }
  .float-card--lot { right: -2rem; bottom: 12%; }
}

@media (min-width: 1120px) {
  .display {
    width: calc(100% + 3.25rem);
    max-width: 16ch;
  }

  .hero__copy { padding-right: var(--space-2); }
}

@media (min-width: 1200px) {
  .chapter-rail {
    display: block;
    position: fixed;
    left: max(1.5rem, calc((100vw - 1440px) / 2));
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-rail);
  }

  .chapter-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .chapter-rail__list > * {
    display: flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
    color: var(--slate);
    cursor: pointer;
  }

  .chapter-rail__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid var(--forest-14);
    background: rgba(255, 255, 255, .62);
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--forest);
    font-variant-numeric: tabular-nums;
    transition:
      background-color var(--dur-mid) var(--ease-out),
      color var(--dur-mid) var(--ease-out),
      border-color var(--dur-mid) var(--ease-out),
      transform var(--dur-mid) var(--ease-spring);
  }

  .chapter-rail__label {
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), color var(--dur-mid);
  }

  .chapter-rail__list > *:hover .chapter-rail__num,
  .chapter-rail__list > *.is-active .chapter-rail__num {
    background: var(--forest);
    color: var(--gold);
    border-color: var(--forest);
    transform: scale(1.08);
  }

  .chapter-rail__list > *:hover .chapter-rail__label,
  .chapter-rail__list > *.is-active .chapter-rail__label {
    opacity: 1;
    transform: translateX(0);
    color: var(--forest);
  }

  .proof__strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .display { font-size: var(--fs-display); }
}

/* --------------------------------------------------------------------------
   13. SCROLL-DRIVEN REVEALS (progressive enhancement)
   -------------------------------------------------------------------------- */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes row-unmask {
  from {
    clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 0% 25%, 0% 28%, 100% 28%, 100% 54%, 0% 54%, 0% 57%, 100% 57%, 100% 100%, 0% 100%);
  }
  to {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 100%, 100% 100%, 100% 100%, 0% 100%, 0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
}

@keyframes field-mask {
  from { --reveal: 0%; }
  to { --reveal: 100%; }
}

@supports (animation-timeline: view()) {
  .hero__copy > * {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }

  .hero__copy > *:nth-child(2) { animation-range: entry 2% cover 26%; }
  .hero__copy > *:nth-child(3) { animation-range: entry 4% cover 30%; }
  .hero__copy > *:nth-child(4) { animation-range: entry 6% cover 34%; }
  .hero__copy > *:nth-child(5) { animation-range: entry 8% cover 38%; }

  .hero__stack {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  .hero__frame {
    -webkit-mask-image: linear-gradient(180deg, #000 0 var(--reveal), transparent var(--reveal));
    mask-image: linear-gradient(180deg, #000 0 var(--reveal), transparent var(--reveal));
    animation: field-mask linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 55%;
  }

  .chapter__head { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }

  .proof__stat { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 5% cover 34%; }
  .proof__stat:nth-child(2) { animation-range: entry 8% cover 36%; }
  .proof__stat:nth-child(3) { animation-range: entry 11% cover 38%; }
  .proof__stat:nth-child(4) { animation-range: entry 14% cover 40%; }

  .fragment-card {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 6% cover 36%;
  }

  .fragment-card:nth-child(2) { animation-range: entry 10% cover 38%; }
  .fragment-card:nth-child(3) { animation-range: entry 14% cover 40%; }
  .fragment-card:nth-child(4) { animation-range: entry 18% cover 42%; }
  .fragment-card:nth-child(5) { animation-range: entry 22% cover 44%; }
  .fragment-card:nth-child(6) { animation-range: entry 26% cover 46%; }

  .chapter__bridge {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solidify linear both;
    animation-timeline: scroll(root);
    animation-range: 0 140px;
  }

  .thread__path--live {
    animation-timeline: scroll(root);
  }
}

@keyframes header-solidify {
  from {
    background-color: rgba(248, 245, 238, 0);
    border-bottom-color: rgba(228, 233, 227, 0);
    box-shadow: 0 0 0 0 rgba(11, 61, 46, 0);
    backdrop-filter: blur(0px);
  }
  to {
    background-color: rgba(248, 245, 238, .88);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 32px -26px rgba(11, 61, 46, .55);
    backdrop-filter: blur(14px) saturate(1.15);
  }
}

/* --------------------------------------------------------------------------
   14. REDUCED MOTION
   -------------------------------------------------------------------------- */

@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;
  }

  .thread__path--live,
  .thread__node,
  .marquee__track,
  .float-card,
  .fragment-card__thread {
    animation: none !important;
  }

  .hero__frame {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* --------------------------------------------------------------------------
   15. PRINT
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-nav,
  .chapter-rail,
  .grain,
  .thread { display: none !important; }

  body { background: #fff; color: #000; }
}