/* ==========================================================================
   OLYF-FARM — Design System
   1. Tokens
   2. Reset & base
   3. Typography
   4. Layout primitives
   5. Motion system
   6. Components (nav, buttons, rules, labels)
   7. Sections
   8. Form
   9. Responsive
   ========================================================================== */

/* 0. FONTS ===============================================================
   Self-hosted. No third-party request, so no personal data leaves the site
   on page load (see README: GDPR / Google Fonts).
   Fraunces is instanced at opsz 100 for display use and subsetted to the
   Latin set the site actually uses: 88 KB total instead of ~300 KB.      */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-display.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-display-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* 1. TOKENS ============================================================== */
:root {
  /* Colour — derived from grove, stone, pressed oil. No gradients. */
  --c-ink:        #10130C;   /* deepest — dark sections, text on light */
  --c-grove:      #24301B;   /* deep olive green — primary brand */
  --c-leaf:       #4A5A33;   /* mid olive — secondary surfaces */
  --c-sage:       #8B9678;   /* muted olive — secondary text on dark */
  --c-limestone:  #E7E2D3;   /* warm ivory — light section base */
  --c-bone:       #F4F1E7;   /* lightest — page background */
  --c-oil:        #C08A2E;   /* pressed-oil amber — accent only, never fills */
  --c-oil-soft:   #D9B978;

  /* Semantic */
  --bg:            var(--c-bone);
  --fg:            var(--c-ink);
  --fg-muted:      #5C6152;
  --rule:          rgba(16, 19, 12, 0.14);
  --rule-dark:     rgba(231, 226, 211, 0.16);

  /* Type */
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-hero:    clamp(2.9rem, 8.2vw, 7.6rem);
  --t-h1:      clamp(2.4rem, 5.6vw, 4.6rem);
  --t-h2:      clamp(1.9rem, 3.9vw, 3.3rem);
  --t-h3:      clamp(1.25rem, 2vw, 1.6rem);
  --t-lead:    clamp(1.02rem, 1.35vw, 1.28rem);
  --t-body:    1rem;
  --t-small:   0.86rem;
  --t-label:   0.7rem;
  --t-numeral: clamp(3.4rem, 9vw, 8.5rem);

  --lh-tight: 1.02;
  --lh-head:  1.08;
  --lh-body:  1.62;
  --ls-label: 0.16em;

  /* Space — 4px base, editorial rhythm */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;    --s-11: 11rem;

  --section-y: clamp(4.5rem, 10vw, 9.5rem);
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --max:       1560px;
  --max-text:  62ch;

  /* Form */
  --radius: 2px;   /* deliberate: near-square. No pill shapes. */

  /* 5. MOTION SYSTEM */
  --motion-fast:      180ms;
  --motion-standard:  520ms;
  --motion-slow:      1100ms;
  --ease-premium:     cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-soft: cubic-bezier(0.62, 0.02, 0.2, 1);
}

/* 2. RESET & BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--c-oil);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-ink); color: var(--c-bone); padding: var(--s-3) var(--s-5);
}
.skip:focus { left: var(--s-4); top: var(--s-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. TYPOGRAPHY ========================================================== */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.021em;
}
/* Fraunces has long descenders. At display line-heights the g, y, p and j
   sit below the line box, so any ancestor with overflow:hidden clips them.
   Padding the line box and pulling it back with a negative margin keeps the
   visual rhythm while giving descenders room. */
.mask-line { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.display em {
  font-style: italic;
}

.t-hero  { font-size: var(--t-hero); }
.t-h1    { font-size: var(--t-h1); }
.t-h2    { font-size: var(--t-h2); line-height: var(--lh-head); }
.t-h3    { font-size: var(--t-h3); line-height: 1.25; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--fg-muted);
}
p { margin: 0 0 var(--s-4); max-width: var(--max-text); }
p:last-child { margin-bottom: 0; }

/* Utility label — the site's structural voice: specification-sheet style */
.label {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--fg-muted);
}
.label--oil { color: var(--c-oil); }
.label--dot::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--c-oil);
  border-radius: 50%;
  margin-right: 0.7em;
  vertical-align: 0.22em;
}
.index-mark {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-oil);
}

/* 4. LAYOUT ============================================================== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1080px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

/* Tone surfaces — the page alternates light stone and dark grove */
.tone-bone  { background: var(--c-bone);  color: var(--c-ink); }
.tone-stone { background: var(--c-limestone); color: var(--c-ink); }
.tone-dark  { background: var(--c-ink);   color: var(--c-limestone); }
.tone-grove { background: var(--c-grove); color: var(--c-limestone); }
.tone-dark .label, .tone-grove .label { color: var(--c-sage); }
.tone-dark .lead,  .tone-grove .lead  { color: var(--c-sage); }
.tone-dark .label--oil, .tone-grove .label--oil { color: var(--c-oil-soft); }

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

/* Editorial grid: 12 columns, asymmetric placement by design */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6); }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }
/* Start utilities must set BOTH edges. `grid-column: span 5` writes
   grid-column-end: auto, so a later grid-column-start would leave the item
   one track wide. These set the end explicitly to avoid that. */
.start-2 { grid-column: 2 / -1; }
.start-7 { grid-column: 7 / -1; }

/* Section heading block */
.head { margin-bottom: var(--s-8); }
.head .label { display: block; margin-bottom: var(--s-4); }
.head .lead { margin-top: var(--s-5); }

/* 5. MOTION ============================================================== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--motion-standard) var(--ease-out-expo),
    transform var(--motion-standard) var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Masked line reveal — used only on display headlines */
.mask-line { display: block; overflow: hidden; }
.mask-line > span {
  display: block;
  transform: translate3d(0, 118%, 0);
  transition: transform var(--motion-slow) var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.is-in .mask-line > span,
.mask-line.is-in > span { transform: none; }

/* Clip reveal for visual blocks */
[data-clip] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--motion-slow) var(--ease-premium);
  transition-delay: var(--d, 0ms);
}
[data-clip].is-in { clip-path: inset(0 0 0% 0); }

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

/* 6. COMPONENTS ========================================================== */

/* --- Navigation --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--motion-standard) var(--ease-premium),
              color var(--motion-standard) var(--ease-premium),
              border-color var(--motion-standard) linear;
  border-bottom: 1px solid transparent;
  color: var(--c-limestone);
}
.nav__inner {
  display: flex; align-items: center; gap: var(--s-6);
  height: 76px;
}
.nav.is-solid {
  background: rgba(16, 19, 12, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-dark);
}
.nav__logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-body);
  font-weight: 700; letter-spacing: 0.13em; font-size: 0.92rem;
  text-transform: uppercase; margin-right: auto;
}
.nav__logo img { height: 36px; width: auto; }
.nav__logo span { color: var(--c-oil); }

/* Footer lockup — the full emblem, on dark only */
.footer__logo { display: block; width: 92px; height: auto; margin-bottom: var(--s-5); }
.nav__links { display: flex; gap: var(--s-6); align-items: center; }
.nav__link {
  font-size: var(--t-small); letter-spacing: 0.03em; position: relative;
  padding-block: var(--s-2);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-fast) var(--ease-premium);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* The mobile overlay must be hidden at every width by default. Its layout
   rules live in the 720px media query; without this base rule the markup
   renders as a plain list of links above the page on desktop. */
.menu { display: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75em;
  padding: 0.95em 1.6em;
  font-size: var(--t-small); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: background var(--motion-fast) var(--ease-premium),
              color var(--motion-fast) var(--ease-premium),
              border-color var(--motion-fast) var(--ease-premium);
}
.btn__arrow {
  width: 14px; height: 8px; flex: none;
  transition: transform var(--motion-fast) var(--ease-out-expo);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--oil { background: var(--c-oil); color: var(--c-ink); }
.btn--oil:hover { background: var(--c-oil-soft); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover .btn__label,
.btn--ghost:hover .btn__arrow { mix-blend-mode: difference; }
.btn--solid { background: var(--c-ink); color: var(--c-bone); }
.btn--solid:hover { background: var(--c-grove); }
.btn--nav { padding: 0.7em 1.1em; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* Text link with growing rule */
.tlink {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--t-small); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-bottom: 0.4em; border-bottom: 1px solid currentColor;
  transition: gap var(--motion-fast) var(--ease-premium);
}
.tlink:hover { gap: 1.1em; }

/* Sticky B2B CTA */
.sticky-cta {
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 90;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity var(--motion-standard) var(--ease-premium),
              transform var(--motion-standard) var(--ease-premium);
  box-shadow: 0 10px 34px rgba(16, 19, 12, 0.26);
}
.sticky-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* 7. SECTIONS ============================================================ */

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--c-ink);
  color: var(--c-limestone);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.hero__canvas svg { width: 100%; height: 100%; }
.hero__glow {
  position: absolute; inset: auto -10% -30% auto;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 60% 60%, rgba(192,138,46,0.18), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; width: 100%; }
.hero__eyebrow { margin-bottom: var(--s-6); color: var(--c-sage); }
.hero__title { max-width: 16ch; margin-bottom: var(--s-6); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7);
  align-items: flex-end; justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--rule-dark);
}
.hero__scroll {
  display: inline-flex; align-items: center; gap: var(--s-3);
  color: var(--c-sage);
}
.hero__scroll i {
  display: block; width: 1px; height: 34px; background: var(--c-sage);
  transform-origin: top; animation: drip 2.6s var(--ease-in-out-soft) infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.25); opacity: 0.4; }
  45%      { transform: scaleY(1);    opacity: 1; }
}

/* --- Scale bar --- */
.scalebar { border-bottom: 1px solid var(--rule); }
.scalebar__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.scalebar__item {
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-left: 1px solid var(--rule);
  padding-left: var(--s-5);
}
.scalebar__item:first-child { border-left: 0; padding-left: 0; }
.scalebar__num {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1; letter-spacing: -0.02em; display: block;
  margin-bottom: var(--s-3);
}

/* --- Routes (three commercial models) --- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); }
.route {
  background: var(--c-bone);
  padding: var(--s-7) var(--s-6) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: background var(--motion-standard) var(--ease-premium);
  position: relative;
}
.route:hover { background: var(--c-limestone); }
.route__fig {
  aspect-ratio: 4 / 3; margin-bottom: var(--s-4);
  background: var(--c-limestone);
  display: grid; place-items: center; overflow: hidden;
}
.route:hover .route__fig-art { transform: scale(1.03); }
.route__fig-art { transition: transform var(--motion-slow) var(--ease-premium); width: 100%; }
.route__list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.route__list li {
  font-size: var(--t-small); color: var(--fg-muted);
  padding: 0.5em 0; border-bottom: 1px solid var(--rule);
}
.route__cta { margin-top: auto; }

/* --- Full-bleed brand statement --- */
.statement {
  padding-block: clamp(6rem, 16vw, 15rem);
  text-align: left;
}
.statement__text { max-width: 20ch; }

/* --- Scroll story: grove → market --- */
.story { position: relative; }
.story__layout { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.story__sticky { position: sticky; top: 120px; }
.story__stage {
  aspect-ratio: 1 / 1; width: 100%; max-width: 460px;
  margin-top: var(--s-6);
}
.story__steps { display: flex; flex-direction: column; }
.story__step {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--rule-dark);
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-5);
  opacity: 0.34;
  transition: opacity var(--motion-standard) var(--ease-premium);
}
.story__step.is-active { opacity: 1; }
.story__step h3 { margin-bottom: var(--s-3); }
.story__step p { font-size: var(--t-small); color: var(--c-sage); }
.story__progress {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--rule-dark);
}
.story__progress i {
  position: absolute; inset: 0 auto auto 0; width: 100%;
  height: var(--p, 0%); background: var(--c-oil);
  transition: height 120ms linear;
}

/* --- Production at scale (oversized numerals) --- */
.scale__row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-5);
  align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2.6rem) 0;
  border-top: 1px solid var(--rule-dark);
}
.scale__num {
  font-family: var(--f-display);
  font-size: var(--t-numeral); line-height: 0.86;
  letter-spacing: -0.04em;
  order: 2;
}
.scale__key { max-width: 30ch; }
.scale__key .label { display: block; margin-bottom: var(--s-2); }
.scale__key p { font-size: var(--t-small); color: var(--c-sage); }

/* --- Quality ladder --- */
.ladder { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-8); }
.ladder__tiers { display: flex; flex-direction: column; }
.tier {
  display: grid; grid-template-columns: 2.5rem 1fr auto; gap: var(--s-4);
  align-items: center; text-align: left; width: 100%;
  padding: var(--s-5) 0; border-top: 1px solid var(--rule);
  transition: color var(--motion-fast) var(--ease-premium);
}
.tier:last-child { border-bottom: 1px solid var(--rule); }
.tier__name { font-family: var(--f-display); font-size: var(--t-h3); }
.tier__bar {
  width: clamp(50px, 12vw, 130px); height: 2px; background: var(--rule);
  position: relative;
}
.tier__bar i {
  position: absolute; inset: 0 auto 0 0; background: var(--c-oil);
  width: var(--w, 25%);
  transition: width var(--motion-standard) var(--ease-out-expo);
}
.tier[aria-selected="true"] { color: var(--c-ink); }
.tier[aria-selected="false"] { color: var(--fg-muted); }
.ladder__panel {
  background: var(--c-limestone); padding: var(--s-7);
  align-self: start;
}
.ladder__panel dl { margin: var(--s-5) 0 0; display: grid; gap: 0; }
.ladder__panel dt { margin-top: var(--s-4); }
.ladder__panel dd { margin: var(--s-1) 0 0; font-size: var(--t-small); }
.fade-swap { animation: fadeSwap var(--motion-standard) var(--ease-out-expo); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Accolade band ---------------------------------------------------
   One statement, not a grid of empty award cards. Until the competition
   names and years are confirmed, a single confident claim reads better to
   a buyer than three placeholders.                                      */
.accolade { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-9); align-items: start; }
.accolade__mark { width: clamp(66px, 6.5vw, 96px); height: auto; color: var(--c-oil); margin-bottom: var(--s-6); }
.accolade__note {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-small); color: var(--c-sage); max-width: 52ch;
}
/* A single metallic pass when the band enters the viewport. Never loops. */
.accolade__body { position: relative; overflow: hidden; }
.accolade__body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(217,185,120,0.14) 50%, transparent 58%);
  transform: translateX(-120%);
}
.accolade__body.is-in::after { animation: sheen 1700ms var(--ease-premium) 340ms 1 forwards; }
@keyframes sheen { to { transform: translateX(120%); } }

/* --- OLYFIA brand lockup --- */
.brandmark { width: clamp(120px, 16vw, 180px); height: auto; }

/* --- Certifications --- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); }
.cert { background: var(--c-bone); padding: var(--s-6); }
.cert__std {
  font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--c-oil); display: block; margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
}
.cert__name { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.2; margin-bottom: var(--s-3); }
.cert p { font-size: var(--t-small); color: var(--fg-muted); }

/* --- Distribution --- */
.dist { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-8); align-items: center; }
.dist__map { width: 100%; }

/* --- Partners grid --- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); }
.partner { background: var(--c-bone); padding: var(--s-6) var(--s-5); }
.partner .index-mark { display: block; margin-bottom: var(--s-4); }
.partner h3 { font-family: var(--f-display); font-size: 1.22rem; margin-bottom: var(--s-2); }
.partner p { font-size: var(--t-small); color: var(--fg-muted); }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%; text-align: left; display: flex; gap: var(--s-5);
  align-items: center; justify-content: space-between;
  padding: var(--s-5) 0; font-size: var(--t-h3); font-family: var(--f-display);
}
.faq__icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--c-oil);
  left: 0; top: 50%; width: 100%; height: 1px;
  transition: transform var(--motion-standard) var(--ease-premium);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; height: 0; transition: height var(--motion-standard) var(--ease-premium); }
.faq__a > div { padding-bottom: var(--s-6); }
.faq__a p { font-size: var(--t-small); color: var(--fg-muted); }

/* 8. FORM ================================================================ */
.form-layout { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); }
.form { display: grid; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field > label, .field-label { font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-dark);
  color: inherit; padding: 0.85em 0;
  border-radius: 0;
  transition: border-color var(--motion-fast) var(--ease-premium);
}
.field select { appearance: none; background-image: none; }
/* Calling code and number read as one control but stay two separate inputs,
   so the code can be chosen independently of the country/market field. */
.field__combo { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--s-4); }
.field__combo select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 480px) { .field__combo { grid-template-columns: 7rem 1fr; } }
/* A long country list is unreadable on a dark background in some browsers,
   which render the popup with the page colours. Force a light popup. */
.field select option { color: var(--c-ink); background: var(--c-bone); }
.field select option { color: var(--c-ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(139,150,120,0.7); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--c-oil);
}
.field textarea { resize: vertical; min-height: 110px; }
.field__error { font-size: var(--t-small); color: #E2A38C; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #E2A38C; }
.form__conditional { display: none; }
.form__conditional.is-on { display: flex; animation: fadeSwap var(--motion-standard) var(--ease-out-expo); }
.form__note { font-size: var(--t-small); color: var(--c-sage); max-width: 46ch; }
/* Honeypot. Hidden from sighted users and from screen readers, but still
   submitted, so a bot that fills every field is caught server-side. */
.honey {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-status { display: none; padding: var(--s-6); border: 1px solid var(--c-oil); }
.form-status.is-on { display: block; animation: fadeSwap var(--motion-standard) var(--ease-out-expo); }

/* --- Final CTA --- */
.final { position: relative; overflow: hidden; }
.final__art { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }

/* --- Footer --- */
.footer { padding-block: var(--s-8) var(--s-6); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer h4 { font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; margin-bottom: var(--s-4); color: var(--c-sage); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.footer a { font-size: var(--t-small); }
.footer a:hover { color: var(--c-oil-soft); }
.footer__address {
  font-style: normal;
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--c-sage);
  margin-top: var(--s-5);
}
.footer__base {
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--rule-dark);
  font-size: var(--t-small); color: var(--c-sage);
}

/* 9. RESPONSIVE ========================================================== */
@media (max-width: 1080px) {
  .story__layout, .ladder, .dist, .form-layout { grid-template-columns: 1fr; }
  .story__sticky { position: static; }
  .story__stage { max-width: 320px; margin-inline: auto; }
  .routes { grid-template-columns: 1fr; }
  .certs, .partners { grid-template-columns: repeat(2, 1fr); }
  .accolade { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
  .start-2, .start-7 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    padding: var(--s-3); margin-right: calc(var(--s-3) * -1);
  }
  .nav__toggle i { display: block; width: 22px; height: 1px; background: currentColor;
    transition: transform var(--motion-fast) var(--ease-premium), opacity var(--motion-fast); }
  .nav.is-open .nav__toggle i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle i:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.is-open { background: var(--c-ink); }
  .menu {
    position: fixed; inset: 76px 0 0 0; background: var(--c-ink); color: var(--c-limestone);
    padding: var(--s-7) var(--gutter); z-index: 99;
    display: none; flex-direction: column; gap: var(--s-2);
  }
  .menu.is-open { display: flex; }
  .menu a {
    font-family: var(--f-display); font-size: 1.9rem; padding: var(--s-3) 0;
    border-bottom: 1px solid var(--rule-dark);
    opacity: 0; transform: translateY(14px);
    animation: menuIn 460ms var(--ease-out-expo) forwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes menuIn { to { opacity: 1; transform: none; } }
  .scalebar__grid { grid-template-columns: 1fr 1fr; }
  .scalebar__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .scalebar__item:nth-child(-n+2) { border-top: 0; }
  .certs, .partners, .footer__grid, .field--split { grid-template-columns: 1fr; }
  .scale__row { grid-template-columns: 1fr; }
  .scale__num { order: 0; }
  .sticky-cta { right: var(--s-4); left: var(--s-4); justify-content: center; }
  .story__step { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* 10. STORY STAGE (scroll-linked SVG: grove → mill → bottle) =============
   Driven by a single --p custom property set by main.js. Every transform
   is composited (rotate / translate / scale), so it stays on the GPU.     */
.stage { --p: 0; width: 100%; height: auto; }
.stage__ink   { stroke: var(--c-sage); fill: none; stroke-width: 1.1; }
.stage__oil   { stroke: var(--c-oil); fill: none; }
.stage__solid { fill: var(--c-sage); }

/* Branch fades out as the harvest begins */
.stage__branch { opacity: calc(1 - clamp(0, (var(--p) - 0.06) * 5, 1) * 0.75); }

/* Olives fall from the branch into the mill */
.stage__olive { transform: translateY(calc(clamp(0, (var(--p) - 0.06) * 3.2, 1) * 62px)); }
.stage__olive--b { transform: translateY(calc(clamp(0, (var(--p) - 0.11) * 3.2, 1) * 58px)); }
.stage__olive--c { transform: translateY(calc(clamp(0, (var(--p) - 0.16) * 3.2, 1) * 66px)); }
.stage__olive { opacity: calc(1 - clamp(0, (var(--p) - 0.30) * 8, 1)); }

/* Millstone turns while crushing runs */
.stage__stone {
  transform-origin: 100px 118px;
  transform: rotate(calc(var(--p) * 760deg));
}
.stage__mill { opacity: calc(clamp(0, (var(--p) - 0.10) * 6, 1)); }

/* Oil streams down into the bottle */
.stage__stream {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--p) - 0.36) * 3.4, 1));
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* Bottle appears, then fills */
.stage__bottle { opacity: calc(clamp(0, (var(--p) - 0.42) * 6, 1)); }
.stage__fill {
  transform-origin: 100px 250px;
  transform: scaleY(calc(clamp(0, (var(--p) - 0.52) * 2.6, 1)));
  fill: var(--c-oil);
}
/* Label lands last — the private-label moment */
.stage__label {
  opacity: calc(clamp(0, (var(--p) - 0.86) * 8, 1));
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.86) * 8, 1)) * 8px));
}

@media (prefers-reduced-motion: reduce) {
  .stage { --p: 1 !important; }
  .stage__olive, .stage__stone, .stage__label { transform: none !important; }
}

/* 11. INTERIOR PAGES ====================================================
   Sub-pages open on a dark band that sits behind the fixed navigation,
   so the top padding clears the 76px bar.                              */
.page-hero { padding-top: calc(76px + clamp(3rem, 7vw, 6rem)); }
.page-hero h1 { max-width: 15ch; margin: var(--s-4) 0 var(--s-5); }
.page-hero .lead { max-width: 52ch; }
.crumb { font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-sage); }
.crumb a { border-bottom: 1px solid transparent; }
.crumb a:hover { border-bottom-color: currentColor; }

/* Specification blocks — two-column definition rows */
.spec { border-top: 1px solid var(--rule); }
.tone-dark .spec, .tone-grove .spec { border-color: var(--rule-dark); }
.spec__row {
  display: grid; grid-template-columns: 15rem 1fr; gap: var(--s-6);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--rule);
}
.tone-dark .spec__row, .tone-grove .spec__row { border-color: var(--rule-dark); }
.spec__row dt { font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; }
.spec__row dd { margin: 0; font-size: 0.95rem; }
.tone-dark .spec__row dd, .tone-grove .spec__row dd { color: var(--c-sage); }

/* Numbered process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); }
.tone-dark .steps, .tone-grove .steps { background: var(--rule-dark); }
.step { background: var(--c-bone); padding: var(--s-6) var(--s-5); }
.tone-dark .step { background: var(--c-ink); }
.tone-grove .step { background: var(--c-grove); }
.step .index-mark { display: block; margin-bottom: var(--s-4); }
.step h3 { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: var(--s-2); }
.step p { font-size: var(--t-small); color: var(--fg-muted); }
.tone-dark .step p, .tone-grove .step p { color: var(--c-sage); }

/* Two-column prose */
.prose-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }

/* Legal pages */
.legal h2 { font-family: var(--f-display); font-size: 1.5rem; margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { font-size: 0.95rem; color: var(--fg-muted); max-width: 68ch; }
.legal ul { padding-left: 1.1rem; }
.legal li { margin-bottom: var(--s-2); }

/* 12. READABILITY PASS ==================================================
   Mobile gets slightly larger body and label sizes, and the value-chain
   steps stay at full opacity because there is no sticky stage to anchor
   the active one.                                                       */
@media (max-width: 1080px) {
  .story__step { opacity: 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prose-2 { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 11rem 1fr; gap: var(--s-5); }
}
@media (max-width: 720px) {
  :root {
    --t-body:  1.05rem;
    --t-small: 0.95rem;
    --t-label: 0.74rem;
    --t-lead:  1.1rem;
  }
  .lead { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: var(--s-2); }
  .story__stage { max-width: 240px; }
  .btn { width: 100%; justify-content: space-between; }
  .btn--nav, .sticky-cta { width: auto; }
  .btn-row { gap: var(--s-3); }
  .faq__q { font-size: 1.1rem; }
  .tier { grid-template-columns: 2rem 1fr; }
  .tier__bar { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 400px) {
  .nav__logo span[aria-hidden] { display: none; }
}
