/* ==========================================================================
   Farm Life Financial - main stylesheet
   Mobile first. Breakpoints: 768, 1024, 1440 (base = 375).
   Sections: 1 Fonts, 2 Tokens, 3 Base, 4 Layout, 5 Components, 6 Page sections,
             7 Utilities
   ========================================================================== */

/* 1. Fonts: Source Sans 3 (OFL), self-hosted variable, latin subset ~28 KB each */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* 2. Tokens ================================================================ */
:root {
  /* Brand palette (exact) */
  --fl-green: #43793A;
  --fl-cream: #F6EDD9;
  --fl-olive: #869A48;
  --fl-gold: #CCBA60;
  --fl-rust: #AC5425;
  --fl-blue: #0070C5;
  --fl-text: #403E3C;
  --fl-fine-brand: #7F7F7F;
  --fl-white: #FFFFFF;

  /* Text-safe variants (derived; small text on cream only, see design system) */
  --fl-green-ink: #3D6E35;   /* 5.18:1 on cream */
  --fl-rust-ink: #9C4B20;    /* 5.24:1 on cream */
  --fl-blue-ink: #005FA8;    /* hover on blue buttons */
  --fl-fine: #6B6966;        /* fine print, 4.70:1 on cream, 5.47:1 on white */

  /* Supporting neutrals (non-text) */
  --fl-line: #E2D8C0;        /* card borders, dividers on cream */
  --fl-line-strong: #8C877A; /* form field borders, 3.6:1 on white */
  --fl-ph: #DAD5CA;          /* image placeholders */
  --fl-disabled-bg: #ECE7DC;

  /* Roles */
  --bg: var(--fl-cream);
  --surface: var(--fl-white);
  --text: var(--fl-text);
  --heading: var(--fl-green);
  --focus: var(--fl-text);

  /* Type */
  --font: "Source Sans 3", Aptos, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.55rem + 2.9vw, 3.5rem);    /* 36 -> 56 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);     /* 28 -> 40 */
  --fs-h3: clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem); /* 22 -> 28 */
  --fs-h4: 1.25rem;                                    /* 20 */
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); /* 19 -> 22 */
  --fs-body: 1.0625rem;                                /* 17, 18 at 1024+ */
  --fs-small: 0.9375rem;                               /* 15, meta only */
  --fs-caption: 0.875rem;                              /* 14, captions + fine print */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  /* Layout */
  --max: 1200px;
  --gutter: 16px;
  --gap: 16px;
  --section-y: var(--s-7);
  --radius-s: 4px;
  --radius-m: 6px;
  --header-h: 64px;
  --tap: 44px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --gap: 24px; }
}
@media (min-width: 1024px) {
  :root { --fs-body: 1.125rem; --gap: 32px; --section-y: var(--s-8); --header-h: 80px; }
}

/* 3. Base ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-3)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--fs-h1); color: var(--heading); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); color: var(--heading); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); color: var(--text); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); color: var(--text); line-height: var(--lh-snug); }
p { margin: 0; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--fl-green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fl-gold); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark { --focus: var(--fl-white); --heading: var(--fl-white); color: var(--fl-white); }
.on-dark a:not(.btn) { color: var(--fl-white); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--fl-line); margin: var(--s-6) 0; }
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  background: var(--fl-white); color: var(--fl-text); padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 4. Layout ================================================================ */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--fl-white); }
.section--cream { background: var(--fl-cream); }
.section--green { background: var(--fl-green); }
.section--olive { background: var(--fl-olive); }
.section--blue { background: var(--fl-blue); }
.section--tight { padding-block: var(--s-6); }
.stack > * + * { margin-top: var(--s-3); }
.stack-l > * + * { margin-top: var(--s-4); }

/* 12 / 8 / 4 column grid. Children span full width until a span class applies. */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .md-2 { grid-column: span 2; } .md-3 { grid-column: span 3; } .md-4 { grid-column: span 4; }
  .md-5 { grid-column: span 5; } .md-6 { grid-column: span 6; } .md-8 { grid-column: span 8; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg-3 { grid-column: span 3; } .lg-4 { grid-column: span 4; } .lg-5 { grid-column: span 5; }
  .lg-6 { grid-column: span 6; } .lg-7 { grid-column: span 7; } .lg-8 { grid-column: span 8; }
  .lg-12 { grid-column: span 12; }
  .lg-start-7 { grid-column: 7 / span 6; }
}

/* 5. Components ============================================================ */

/* 5.1 Buttons */
.btn {
  --btn-bg: var(--fl-green); --btn-fg: var(--fl-white); --btn-bd: var(--fl-green);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 10px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius-s);
  font: 600 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .btn.is-hover { --btn-bg: var(--fl-gold); --btn-fg: var(--fl-text); --btn-bd: var(--fl-gold); text-decoration: none; }
.btn:active, .btn.is-active { --btn-bg: #B8A64F; --btn-bd: #B8A64F; --btn-fg: var(--fl-text); }
.btn.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled {
  --btn-bg: var(--fl-disabled-bg); --btn-fg: var(--fl-fine); --btn-bd: var(--fl-disabled-bg);
  cursor: not-allowed; pointer-events: none;
}
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--fl-green-ink); --btn-bd: var(--fl-green); }
.btn--accent { --btn-bg: var(--fl-gold); --btn-fg: var(--fl-text); --btn-bd: var(--fl-gold); }
.btn--accent:hover, .btn--accent.is-hover { --btn-bg: var(--fl-white); --btn-fg: var(--fl-text); --btn-bd: var(--fl-white); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--fl-white); --btn-bd: var(--fl-white); }
.btn--ghost-light:hover, .btn--ghost-light.is-hover { --btn-bg: var(--fl-white); --btn-fg: var(--fl-green-ink); --btn-bd: var(--fl-white); }
.btn--data { --btn-bg: var(--fl-blue); --btn-fg: var(--fl-white); --btn-bd: var(--fl-blue); }
.btn--data:hover, .btn--data.is-hover { --btn-bg: var(--fl-blue-ink); --btn-fg: var(--fl-white); --btn-bd: var(--fl-blue-ink); }
.btn--on-blue { --btn-bg: var(--fl-white); --btn-fg: var(--fl-blue-ink); --btn-bd: var(--fl-white); }
.btn--on-blue:hover, .btn--on-blue.is-hover { --btn-bg: var(--fl-gold); --btn-fg: var(--fl-text); --btn-bd: var(--fl-gold); }
.btn--small { min-height: var(--tap); padding: 8px 16px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Text link with arrow (standalone) */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  color: var(--fl-green-ink); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover, .link-arrow.is-hover { text-decoration-color: var(--fl-gold); text-decoration-thickness: 3px; }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--fl-white); }

/* 5.2 Section header */
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; }
@media (min-width: 768px) {
  .section-head--split { grid-template-columns: 1fr auto; align-items: end; }
  .section-head--split > .link-arrow { grid-row: 1 / span 3; grid-column: 2; align-self: end; }
}
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fl-green-ink);
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--fl-gold); flex: none; }
.section-head--center .eyebrow::before { display: none; }
.on-dark .eyebrow { color: var(--fl-white); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }

/* 5.3 Header and navigation */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--fl-green); color: var(--fl-white);
  --focus: var(--fl-white);
}
.site-header__bar { display: flex; align-items: center; gap: var(--s-3); height: var(--header-h); transition: height .2s; }
.site-header.is-compact { --header-h: 64px; }
.brand { display: flex; align-items: center; flex: none; min-height: var(--tap); }
.brand img { height: 48px; width: auto; transition: height .2s; }
@media (min-width: 1024px) { .brand img { height: 60px; } .site-header.is-compact .brand img { height: 48px; } }
.nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); min-width: var(--tap);
  padding: 0 12px; background: transparent; color: var(--fl-white);
  border: 2px solid rgba(255,255,255,.7); border-radius: var(--radius-s);
  font: 600 1rem var(--font); cursor: pointer;
}
.menu-toggle__icon { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 3px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; transform: rotate(-45deg); }

.mobile-menu { background: var(--fl-green); border-top: 1px solid rgba(255,255,255,.25); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 56px; padding: 0 var(--gutter);
  color: var(--fl-white); text-decoration: none; font-size: 1.125rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.mobile-menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--fl-gold); }
.mobile-menu .sub a { padding-left: calc(var(--gutter) + var(--s-4)); font-weight: 400; font-size: 1.0625rem; min-height: 48px; }
.mobile-menu__cta { padding: var(--s-4) var(--gutter) var(--s-5); }

@media (min-width: 1024px) {
  .menu-toggle, .mobile-menu { display: none !important; }
  .nav { display: block; margin-left: auto; }
  .nav > ul { display: flex; align-items: center; gap: var(--s-1); list-style: none; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px;
    color: var(--fl-white); text-decoration: none; font: 600 1.0625rem var(--font);
    background: none; border: 0; cursor: pointer; position: relative;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
    background: var(--fl-gold); transform: scaleX(0); transition: transform .15s;
  }
  .nav__link:hover { text-decoration: none; }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
  .nav__caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
  .has-sub { position: relative; }
  .subnav {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
    background: var(--fl-white); border: 1px solid var(--fl-line); border-top: 4px solid var(--fl-gold);
    border-radius: 0 0 var(--radius-m) var(--radius-m); padding: var(--s-2) 0; list-style: none;
    --focus: var(--fl-text);
  }
  .subnav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4); color: var(--fl-text); text-decoration: none; font-weight: 600; }
  .subnav a:hover { background: var(--fl-cream); color: var(--fl-green-ink); }
  .header-actions { margin-left: var(--s-3); }
}

/* 5.4 Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: var(--fs-small); }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 var(--s-2); color: var(--fl-fine); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.breadcrumbs [aria-current="page"] { color: var(--fl-text); font-weight: 600; }

/* 5.5 Cards */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--surface); border: 1px solid var(--fl-line); border-radius: var(--radius-m);
  padding: var(--s-4);
}
.card h3 { font-size: var(--fs-h4); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link { transition: outline-color .15s; outline: 2px solid transparent; outline-offset: -2px; }
.card--link:hover, .card--link.is-hover { outline-color: var(--fl-gold); }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card--link .card__link:focus-visible { outline: none; }
.card__foot { margin-top: auto; }
.card__media { margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0; border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden; }
.card--outline { background: transparent; border: 2px solid var(--fl-green); }
.card--cream { background: var(--fl-cream); }
.icon-ph {
  width: 48px; height: 48px; border-radius: var(--radius-s); background: var(--fl-cream);
  border: 1px dashed var(--fl-line-strong); display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fl-fine);
}
.card--cream .icon-ph, .section--cream .card--cream .icon-ph { background: var(--fl-white); }
.meta { font-size: var(--fs-small); color: var(--fl-fine); }
.chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; width: fit-content;
  border: 1px solid var(--fl-line-strong); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fl-text);
}
.chip--event { background: var(--fl-green); border-color: var(--fl-green); color: var(--fl-white); }

/* 5.6 Image placeholders (swap for <img loading="lazy" width height>) */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; max-width: 100%;
  aspect-ratio: 4 / 3; align-self: start; background: var(--fl-ph); color: var(--fl-text);
  border-radius: var(--radius-m); padding: var(--s-4); text-align: center;
}
.ph span { font-size: var(--fs-caption); font-weight: 600; max-width: 32ch; line-height: 1.4; }
.ph span::before { content: "PHOTO"; display: block; font-size: 11px; letter-spacing: .12em; color: var(--fl-fine); margin-bottom: 4px; }
.ph--logo span::before { content: "LOGO"; }
.ph--map span::before { content: "MAP"; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1; }
.ph--hero { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .ph--hero { aspect-ratio: 5 / 4; } }
.ph--logo { aspect-ratio: 3 / 1; background: transparent; border: 1px dashed var(--fl-line-strong); padding: var(--s-2); }
.card__media .ph { border-radius: 0; }

/* 5.7 Callout (rust) - critical information only */
.callout {
  background: var(--fl-rust); color: var(--fl-white); border-radius: var(--radius-m);
  padding: var(--s-4); display: grid; gap: var(--s-2); font-weight: 700; --focus: var(--fl-white);
}
.callout__label { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-caption); letter-spacing: .1em; text-transform: uppercase; }
.callout__label::before { content: "!"; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 50%; font-size: 14px; }
.callout p { max-width: 60ch; }
.callout a { color: var(--fl-white); }

/* 5.8 Data panel (blue) - data, charts, calculators only */
.data-panel {
  background: var(--fl-white); border: 1px solid var(--fl-line); border-top: 6px solid var(--fl-blue);
  border-radius: var(--radius-m); padding: var(--s-4); display: grid; gap: var(--s-4); color: var(--fl-text);
  --focus: var(--fl-text);
}
.data-panel__label { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-blue); }
.data-panel h3 { font-size: var(--fs-h4); }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.stat { border-left: 3px solid var(--fl-blue); padding-left: var(--s-3); }
.stat__value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--fl-text); }
.stat__label { font-size: var(--fs-small); color: var(--fl-fine); }
.bar-chart { display: grid; gap: var(--s-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.bar-chart__row { display: grid; grid-template-columns: 88px 1fr 56px; align-items: center; gap: var(--s-2); }
.bar-chart__track { height: 20px; background: #E6EFF8; border-radius: 2px; overflow: hidden; }
.bar-chart__fill { height: 100%; background: var(--fl-blue); }
.bar-chart__fill--alt { background: #7FB2DF; }
.bar-chart__value { text-align: right; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-small); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend i { width: 14px; height: 14px; border-radius: 2px; background: var(--fl-blue); }
.legend i.alt { background: #7FB2DF; }

/* 5.9 Pull quote (olive band, large white type only) */
.pullquote { margin: 0; background: var(--fl-olive); color: var(--fl-white); border-radius: var(--radius-m); padding: var(--s-5) var(--s-4); }
.pullquote blockquote { margin: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.35; font-weight: 600; max-width: 34ch; }
.pullquote blockquote::before { content: ""; display: block; width: 48px; height: 4px; background: var(--fl-white); margin-bottom: var(--s-4); }
.pullquote figcaption { margin-top: var(--s-4); font-size: 1.1875rem; font-weight: 700; }
@media (min-width: 768px) { .pullquote { padding: var(--s-6); } }
.section--olive .pullquote { padding: 0; border-radius: 0; }

/* 5.10 Accordion (native details/summary, works without JS) */
.accordion { border-top: 1px solid var(--fl-line-strong); }
.accordion details { border-bottom: 1px solid var(--fl-line-strong); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-snug); color: var(--fl-text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--fl-green-ink); }
.accordion__icon { position: relative; flex: none; width: 32px; height: 32px; border: 2px solid var(--fl-green); border-radius: 50%; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--fl-green); transform: translate(-50%, -50%); }
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
.accordion details[open] .accordion__icon { background: var(--fl-green); }
.accordion details[open] .accordion__icon::before, .accordion details[open] .accordion__icon::after { background: var(--fl-white); }
.accordion details[open] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__body { padding: 0 0 var(--s-4); max-width: 68ch; }
.accordion__body > * + * { margin-top: var(--s-3); }

/* 5.11 Forms */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label, .field legend { font-weight: 600; font-size: 1.0625rem; color: var(--fl-text); padding: 0; }
.field .opt { font-weight: 400; color: var(--fl-fine); }
.field__hint { font-size: var(--fs-small); color: var(--fl-fine); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--fl-white); color: var(--fl-text);
  border: 1.5px solid var(--fl-line-strong); border-radius: var(--radius-s);
  font: 400 1.0625rem/1.4 var(--font);
  transition: border-color .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23403E3C' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--fl-text); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .field.is-focus .input {
  outline: 3px solid var(--fl-text); outline-offset: 1px; border-color: var(--fl-green);
}
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border: 2px solid var(--fl-rust); }
.field.is-success .input { border: 2px solid var(--fl-green); }
.field__msg { display: none; font-size: var(--fs-small); font-weight: 600; }
.field.is-error .field__msg--error { display: flex; gap: 6px; color: var(--fl-rust-ink); }
.field.is-error .field__msg--error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--fl-rust); color: var(--fl-white); font-size: 12px; }
.field.is-success .field__msg--ok { display: block; color: var(--fl-green-ink); }
.input:disabled, .select:disabled, .field.is-disabled .input {
  background: var(--fl-disabled-bg); color: var(--fl-fine); border-style: dashed; cursor: not-allowed;
}
.choices { display: grid; gap: var(--s-1); border: 0; margin: 0; padding: 0; }
.choices legend { margin-bottom: var(--s-2); }
@media (min-width: 768px) { .choices--inline { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: var(--s-4); } .choices--inline legend { grid-column: 1 / -1; } }
.choice { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--fl-green); flex: none; }
.choice--top { align-items: flex-start; }
.choice--top input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-m); padding: var(--s-4); font-weight: 600; }
.form-status--ok { background: var(--fl-green); color: var(--fl-white); }
.form-status--error { background: var(--fl-rust); color: var(--fl-white); }
.form-panel { background: var(--fl-white); border: 1px solid var(--fl-line); border-radius: var(--radius-m); padding: var(--s-4); }
@media (min-width: 768px) { .form-panel { padding: var(--s-6); } }

/* 5.12 Disclaimer / fine print */
.fineprint { font-size: var(--fs-caption); font-style: italic; color: var(--fl-fine); line-height: 1.55; }
.fineprint > * + * { margin-top: var(--s-2); }
.fineprint p { max-width: 110ch; }
.fineprint strong { font-style: normal; color: var(--fl-text); }
.disclaimer { border-top: 1px solid var(--fl-line); padding-top: var(--s-4); }

/* 5.13 Numbered process (horizontal on desktop, vertical on mobile) */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 0 var(--s-4); padding-bottom: var(--s-5); }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--fl-olive); color: var(--fl-white); font-size: 1.25rem; font-weight: 700;
  position: relative; z-index: 1; grid-row: 1 / span 3;
}
.step::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--fl-olive); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-h4); padding-top: 10px; }
.step p { margin-top: var(--s-2); }
.step__meta { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--fl-fine); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: var(--s-4); }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { grid-row: auto; margin-bottom: var(--s-3); }
  .step::after { left: 48px; right: calc(-1 * var(--s-4)); top: 23px; bottom: auto; width: auto; height: 2px; }
  .step h3 { padding-top: 0; }
}

/* 5.14 Checklist */
.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--fl-green);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 9px; width: 6px; height: 10px;
  border: solid var(--fl-white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (min-width: 768px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); } }

/* 6. Page sections ========================================================= */

/* 6.1 Hero */
.hero { padding-block: var(--s-6) var(--s-7); }
.hero__grid { align-items: center; row-gap: var(--s-5); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 44ch; }
.hero__actions { margin-top: var(--s-5); }
@media (min-width: 1024px) { .hero { padding-block: var(--s-7) var(--s-8); } }

.page-hero { padding-block: var(--s-4) var(--s-6); }
.page-hero h1 { max-width: 20ch; margin-top: var(--s-3); }
.page-hero .lead { margin-top: var(--s-3); max-width: 52ch; }
@media (min-width: 1024px) { .page-hero { padding-block: var(--s-5) var(--s-7); } }

/* 6.2 Trust strip */
.trust { padding-block: var(--s-5); border-bottom: 1px solid var(--fl-line); }
.trust__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.trust__stat strong { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--fl-green); font-variant-numeric: tabular-nums; }
.trust__stat span { font-size: var(--fs-small); color: var(--fl-fine); }
.trust__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .trust__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
  .trust__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__logos { margin-top: 0; }
}

/* 6.3 Feature band (blue) */
.feature__grid { align-items: center; row-gap: var(--s-5); }
.section--blue .lead, .section--blue p { color: var(--fl-white); }

/* 6.4 Team */
.team-card .ph { border-radius: var(--radius-m) var(--radius-m) 0 0; }
.team-card { padding: 0; gap: 0; overflow: hidden; }
.team-card__body { padding: var(--s-4); display: grid; gap: var(--s-1); }
.team-card__creds { font-size: var(--fs-small); color: var(--fl-fine); }
.team-card__focus { font-size: var(--fs-small); margin-top: var(--s-2); }

/* 6.5 Event date block */
.date-block { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-s); background: var(--fl-green); color: var(--fl-white); line-height: 1; }
.date-block b { font-size: 1.5rem; }
.date-block small { font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* 6.6 CTA band */
.cta-band { text-align: left; }
.cta-band__inner { display: grid; gap: var(--s-5); align-items: center; }
.cta-band__logo { width: 96px; height: auto; }
.cta-band h2 { color: var(--fl-white); max-width: 22ch; }
.cta-band p { margin-top: var(--s-3); color: var(--fl-white); }
@media (min-width: 1024px) {
  .cta-band__inner { grid-template-columns: auto 1fr auto; gap: var(--s-6); }
  .cta-band__logo { width: 128px; }
}

/* 6.7 Footer */
.site-footer { background: var(--fl-white); border-top: 4px solid var(--fl-gold); padding-block: var(--s-7) var(--s-5); font-size: 1rem; }
.footer__grid { display: grid; gap: var(--s-5); }
.footer__logo { width: 88px; }
.site-footer h2 { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-text); margin-bottom: var(--s-3); }
.footer__list { list-style: none; display: grid; }
.footer__list a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--fl-text); text-decoration: none; }
.footer__list a:hover { color: var(--fl-green-ink); text-decoration: underline; text-decoration-color: var(--fl-gold); text-decoration-thickness: 3px; }
.footer__contact { font-style: normal; display: grid; gap: var(--s-2); }
.footer__contact a { color: var(--fl-green-ink); font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; justify-content: space-between; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--fl-line); font-size: var(--fs-small); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); list-style: none; }
.footer__bottom a { color: var(--fl-text); min-height: var(--tap); display: inline-flex; align-items: center; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: var(--s-6); } }

/* 6.8 Contact page aside */
.contact-aside { display: grid; gap: var(--s-5); align-content: start; }
.contact-aside dl { display: grid; gap: var(--s-3); margin: 0; }
.contact-aside dt { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-green-ink); }
.contact-aside dd { margin: 2px 0 0; }

/* 6.9 Service sub-navigation */
.service-links { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--fl-line-strong); }
.service-links a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--fl-line-strong); color: var(--fl-text); text-decoration: none; font-weight: 600; }
.service-links a::after { content: "\2192"; color: var(--fl-green-ink); }
.service-links a:hover { color: var(--fl-green-ink); }
.service-links a[aria-current="page"] { color: var(--fl-green-ink); }
.service-links a[aria-current="page"]::after { content: "Current"; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* 6.10 Stub page notice (round 2 pages) */
.stub-note { border: 2px dashed var(--fl-line-strong); border-radius: var(--radius-m); padding: var(--s-5); background: var(--fl-white); }

/* 7. Utilities ============================================================= */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }
@media (min-width: 768px) { .hide-tablet-up { display: none; } }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.section--blue .data-panel p { color: var(--fl-text); }
.section--blue .data-panel .data-panel__label { color: var(--fl-blue); }
.section--blue .data-panel .fineprint { color: var(--fl-fine); }
/* Mobile 2-up (team cards) */
.grid > .sm-2 { grid-column: span 2; }
@media (min-width: 768px) { .grid > .sm-2.md-4 { grid-column: span 4; } }
@media (min-width: 1024px) { .grid > .sm-2.lg-3 { grid-column: span 3; } }
@media (max-width: 767px) {
  .team-card__body { padding: var(--s-3); }
  .team-card__creds, .team-card__focus { font-size: var(--fs-caption); }
  .card--link .icon-ph { display: none; }
}

/* 6.11 Paper cutout farm animation (hero). No JS or reduced motion = finished farm. */
.farm-scene { display: grid; gap: var(--s-2); justify-items: end; }
.farm-scene__stage { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; background: var(--fl-white); border: 1px solid var(--fl-line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 1024px) { .farm-scene__stage { aspect-ratio: 5 / 4; } }
.farm { display: block; width: 100%; height: 100%; }
.farm .cut { stroke: #FFFFFF; stroke-width: 6; stroke-linejoin: round; paint-order: stroke fill; }
.farm .cut--s { stroke-width: 3; }
.farm .pc, .farm .a-drive, .farm .a-wheel, .farm .a-spin, .farm .a-drift, .farm .a-ripen { transform-box: fill-box; transform-origin: 50% 100%; }
.farm .pc--left { transform-origin: 0% 50%; }
.farm .pc--center { transform-origin: 50% 50%; }
.farm .a-wheel, .farm .a-spin { transform-origin: 50% 50%; }
.farm .a-spin { transform-origin: 641px 296px; transform-box: view-box; }

.farm.is-playing .a-pop    { animation: fl-pop .75s cubic-bezier(.34, 1.5, .64, 1) var(--d, 0s) both; }
.farm.is-playing .a-grow   { animation: fl-grow .6s cubic-bezier(.34, 1.6, .64, 1) var(--d, 0s) both; }
.farm.is-playing .a-unroll { animation: fl-unroll .7s cubic-bezier(.25, .9, .35, 1) var(--d, 0s) both; }
.farm.is-playing .a-open   { animation: fl-open .5s cubic-bezier(.34, 1.5, .64, 1) var(--d, 0s) both; }
.farm.is-playing .a-drop   { animation: fl-drop .8s linear var(--d, 0s) both; }
.farm.is-playing .a-draw   { stroke-dasharray: 1; animation: fl-draw .9s ease-out var(--d, 0s) both; }
.farm.is-playing .a-rise   { animation: fl-rise 1.1s cubic-bezier(.25, .9, .35, 1) var(--d, 0s) both; }
.farm.is-playing .a-slide  { animation: fl-slide 1.1s cubic-bezier(.25, .9, .35, 1) var(--d, 0s) both; }
.farm.is-playing .a-drive  { animation: fl-drive 1.6s cubic-bezier(.2, .75, .3, 1) var(--d, 0s) both; }
.farm.is-playing .a-wheel  { animation: fl-wheel 1.6s cubic-bezier(.2, .75, .3, 1) var(--d, 0s) both; }
.farm.is-playing .a-ripen  { animation: fl-ripen .8s ease-out var(--r, 6s) both; }
.farm.is-playing .a-spin   { animation: fl-spin 5s linear var(--d, 0s) 4; }
.farm.is-playing .a-drift  { animation: fl-drift 7s ease-in-out var(--d, 0s) 2 alternate; }
.farm.is-playing .a-drift--alt { animation-duration: 8s; }
.farm.is-paused * { animation-play-state: paused !important; }

@keyframes fl-pop    { 0% { transform: scaleY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes fl-grow   { 0% { transform: scale(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fl-unroll { 0% { transform: scaleX(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes fl-open   { 0% { transform: scaleX(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes fl-drop   {
  0% { transform: translateY(-260px); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
  10% { opacity: 1; }
  60% { transform: translateY(0); animation-timing-function: cubic-bezier(0, .4, .5, 1); }
  78% { transform: translateY(-18px); animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
  90% { transform: translateY(0); }
  95% { transform: translateY(-4px); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fl-draw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fl-rise   { from { transform: translateY(110px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fl-slide  { from { transform: translateX(-180px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fl-drive  { 0% { transform: translateX(-560px); } 88% { transform: translateX(6px); } 100% { transform: translateX(0); } }
@keyframes fl-wheel  { from { transform: rotate(-1080deg); } to { transform: rotate(0deg); } }
@keyframes fl-ripen  { from { fill: #869A48; transform: scale(1); } to { fill: #CCBA60; transform: scale(1.35); } }
@keyframes fl-spin   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fl-drift  { from { transform: translateX(0); } to { transform: translateX(28px); } }

.farm-scene__control {
  min-height: var(--tap); padding: 0 12px; border: 0; background: transparent;
  color: var(--fl-green-ink); font: 600 1rem var(--font); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.farm-scene__control:hover { text-decoration-color: var(--fl-gold); text-decoration-thickness: 3px; }
@media (prefers-reduced-motion: reduce) { .farm-scene__control { display: none; } }
