/* =========================================================================
   SmAgri Farms — "The Field Ledger"
   A land-survey / agronomic-almanac aesthetic.
   Paper-warm, daylight-first, plot-numbered, measured.
   ========================================================================= */

/* =========================================================================
   Type — self-hosted, SIL OFL (assets/fonts/OFL-*.txt)
   -------------------------------------------------------------------------
   Cut from the upstream variable masters rather than taken from Google:
     - wght clamped to 400..700 (Fraunces) / 400..600 (Plex Sans); the CSS
       never asks for anything outside that
     - wdth pinned on Plex Sans, SOFT and WONK pinned on Fraunces
     - Latin, Latin-1 and the punctuation the copy uses; no Cyrillic, Greek
       or Vietnamese
   179 KB in 5 same-origin files, against ~427 KB in 7 requests to
   fonts.gstatic.com. opsz is left live: Fraunces runs from 1.35rem in the
   brand to 10.5rem in the footer wordmark, and optical sizing is most of why
   it holds up at both.

   NOTE: Google's build carried only opsz and wght, so the SOFT/WONK axes the
   old CSS asked for silently did nothing. Pinned here at 0/0 to keep the page
   rendering exactly as it does today — swap in the builds that keep those
   axes live (+108 KB) if the softer, wonkier cut is wanted.
   ========================================================================= */
@font-face{
  font-family:'Fraunces';font-style:normal;font-weight:400 700;
  font-display:swap;src:url(../fonts/fraunces.woff2) format('woff2');
}
@font-face{
  font-family:'Fraunces';font-style:italic;font-weight:400 700;
  font-display:swap;src:url(../fonts/fraunces-italic.woff2) format('woff2');
}
@font-face{
  font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;
  font-display:swap;src:url(../fonts/plexsans.woff2) format('woff2');
}
@font-face{
  font-family:'IBM Plex Mono';font-style:normal;font-weight:400;
  font-display:swap;src:url(../fonts/plexmono-400.woff2) format('woff2');
}
@font-face{
  font-family:'IBM Plex Mono';font-style:normal;font-weight:500;
  font-display:swap;src:url(../fonts/plexmono-500.woff2) format('woff2');
}

/* Metric-matched stand-ins, so the swap changes the shapes and nothing else.
   font-display:swap paints in the fallback immediately, which is the whole
   point — but an untuned fallback reflows the page when the real font lands.
   Fraunces' x-height is 0.4820 em against Georgia's 0.4814, near enough that
   size-adjust stays at 100% and only the line box needs correcting. */
@font-face{
  font-family:'Fraunces fallback';
  src:local('Georgia'),local('Times New Roman'),local('Times'),
      local('Liberation Serif'),local('DejaVu Serif'),local('Nimbus Roman');
  ascent-override:97.8%;descent-override:25.5%;line-gap-override:0%;
}
@font-face{
  font-family:'Plex fallback';src:local('Arial'),local('Helvetica'),local('Liberation Sans');
  ascent-override:102.5%;descent-override:27.5%;line-gap-override:0%;size-adjust:99.5%;
}

:root{
  /* --- surface --- */
  --paper:#F4F1E9;
  --paper-2:#ECE7DA;
  --paper-3:#E2DCCA;
  --card:#FBF9F4;

  /* --- ink --- */
  --ink:#152218;
  --ink-2:rgba(21,34,24,.68);
  --ink-3:rgba(21,34,24,.44);
  --rule:rgba(21,34,24,.16);
  --rule-soft:rgba(21,34,24,.08);

  /* --- accents --- */
  --green:#2E6B41;
  --green-deep:#1B4A2B;
  --wash:14%;  /* strength of the hover tint — see .split__side */
  --lime:#8CBF3F;
  --soil:#B4562C;
  --sky:#3E6E8E;
  --accent:var(--green);

  /* --- type --- */
  --display:'Fraunces','Fraunces fallback',Georgia,'Times New Roman',serif;
  --sans:'IBM Plex Sans','Plex fallback',system-ui,-apple-system,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SF Mono',monospace;

  /* --- metrics --- */
  --gut:clamp(1.15rem,4.2vw,4.5rem);
  --maxw:1320px;
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-in-out:cubic-bezier(.65,0,.35,1);
}

@media (prefers-color-scheme:dark){
  :root{
    --paper:#0E1310; --paper-2:#141A15; --paper-3:#1B231C; --card:#141A15;
    --ink:#ECE9DF; --ink-2:rgba(236,233,223,.66); --ink-3:rgba(236,233,223,.40);
    --rule:rgba(236,233,223,.17); --rule-soft:rgba(236,233,223,.09);
    --green:#5FA86F; --green-deep:#8CBF3F; --soil:#D9764A; --sky:#6FA0C0;
    --wash:18%;
  }
}
:root[data-theme="dark"]{
  --wash:18%;
  --paper:#0E1310; --paper-2:#141A15; --paper-3:#1B231C; --card:#141A15;
  --ink:#ECE9DF; --ink-2:rgba(236,233,223,.66); --ink-3:rgba(236,233,223,.40);
  --rule:rgba(236,233,223,.17); --rule-soft:rgba(236,233,223,.09);
  --green:#5FA86F; --green-deep:#8CBF3F; --soil:#D9764A; --sky:#6FA0C0;
}
:root[data-theme="light"]{
  --wash:14%;
  --paper:#F4F1E9; --paper-2:#ECE7DA; --paper-3:#E2DCCA; --card:#FBF9F4;
  --ink:#152218; --ink-2:rgba(21,34,24,.68); --ink-3:rgba(21,34,24,.44);
  --rule:rgba(21,34,24,.16); --rule-soft:rgba(21,34,24,.08);
  --green:#2E6B41; --green-deep:#1B4A2B; --soil:#B4562C; --sky:#3E6E8E;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:clamp(1rem,.96rem + .2vw,1.075rem);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,video{max-width:100%;display:block;height:auto}
a{color:inherit}

/* ---------- shared bits ---------- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gut)}

.label{
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-3);
  font-weight:500;
}

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

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

/* Line-by-line reveal for text set over footage. Each line is a masked
   window; the inner span slides up out of it. Below the fold this rides on
   the reveal observer; in the hero it fires on load. */
.ln{display:block;overflow:hidden;padding-block:.04em}
.ln > span{
  display:block;transform:translateY(115%);
  transition:transform 1.05s var(--ease);transition-delay:var(--d,0s);
}
[data-reveal].in .ln > span{transform:none}

.skip{
  position:absolute;left:-9999px;top:0;z-index:999;
  background:var(--ink);color:var(--paper);padding:.75rem 1.15rem;
  font-family:var(--mono);font-size:.8rem;
}
.skip:focus{left:.5rem;top:.5rem}

:where(a,button,input,textarea,summary):focus-visible{
  outline:2px solid var(--green);
  outline-offset:3px;
  border-radius:2px;
}

/* =========================================================================
   SURVEY GRID — the signature motif. Fine plot lines behind everything.
   ========================================================================= */
.survey{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(to right,var(--rule-soft) 1px,transparent 1px),
    linear-gradient(to bottom,var(--rule-soft) 1px,transparent 1px);
  background-size:clamp(60px,7vw,110px) clamp(60px,7vw,110px);
  mask-image:radial-gradient(ellipse 120% 85% at 50% 25%,#000 35%,transparent 78%);
}
.survey::after{ /* diagonal survey traverse */
  content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(58deg,transparent 0 118px,var(--rule-soft) 118px 119px);
  opacity:.55;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.hdr{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb,var(--paper) 88%,transparent);
  backdrop-filter:blur(14px) saturate(1.3);
  border-bottom:1px solid transparent;
  transition:border-color .35s var(--ease),background .35s var(--ease);
}
.hdr.stuck{border-bottom-color:var(--rule)}
.hdr__in{display:flex;align-items:center;gap:1.5rem;min-height:78px}

.brand{display:flex;align-items:center;text-decoration:none;flex:none}
.brand__logo{
  height:clamp(46px,5vw,54px);width:auto;
  transition:transform .4s var(--ease);
}
.brand:hover .brand__logo{transform:scale(1.04)}

.nav{margin-left:auto;display:flex;align-items:center;gap:.35rem}
.nav a{
  font-family:var(--mono);font-size:.76rem;letter-spacing:.08em;
  text-transform:uppercase;text-decoration:none;color:var(--ink-2);
  padding:.5rem .7rem;border-radius:3px;transition:color .2s,background .2s;
}
.nav a:hover{color:var(--ink);background:var(--rule-soft)}
@media (max-width:900px){.nav{display:none}}

.hdr__cta{
  font-family:var(--mono);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;
  text-decoration:none;padding:.6rem 1.05rem;border:1px solid var(--ink);
  background:var(--ink);color:var(--paper);transition:.25s var(--ease);
}
.hdr__cta:hover{background:transparent;color:var(--ink)}

.themer{
  margin-left:.25rem;background:none;border:1px solid var(--rule);color:var(--ink-2);
  width:34px;height:34px;display:grid;place-items:center;cursor:pointer;
  border-radius:3px;transition:.25s;
}
.themer:hover{border-color:var(--ink);color:var(--ink)}

.burger{display:none;margin-left:auto;background:none;border:1px solid var(--rule);
  width:40px;height:38px;cursor:pointer;color:var(--ink);border-radius:3px}
.burger span{display:block;width:17px;height:1.5px;background:currentColor;margin:3.5px auto;transition:.3s var(--ease)}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
@media (max-width:900px){
  .burger{display:block;margin-left:.45rem}
  .hdr__cta{display:none}
  .themer{margin-left:auto}
}

.mnav{
  position:fixed;inset:78px 0 auto;z-index:55;background:var(--paper);
  border-bottom:1px solid var(--rule);
  transform:translateY(-102%);transition:transform .45s var(--ease);
  padding:1rem var(--gut) 2rem;
}
.mnav.open{transform:none}
.mnav a{display:block;padding:.85rem 0;border-bottom:1px solid var(--rule-soft);
  text-decoration:none;font-family:var(--display);font-size:1.35rem}
.mnav .mnav__cta{margin-top:1.25rem;border:0;background:var(--ink);color:var(--paper);
  text-align:center;font-family:var(--mono);font-size:.8rem;letter-spacing:.1em;
  text-transform:uppercase;padding:.95rem}

/* =========================================================================
   HERO
   ========================================================================= */
.hero{position:relative;z-index:1;padding:0 0 clamp(2.5rem,5vw,4rem)}

/* ---------- the split: two looping plates, text set over each ---------- */
.hero__split{
  display:grid;grid-template-columns:1fr 1.1fr;
  height:min(80vh,820px);min-height:500px;
  border-bottom:1px solid var(--rule);
}
.hpanel{
  position:relative;overflow:hidden;background:#0C120E;
  display:flex;align-items:flex-end;isolation:isolate;
}
/* Each panel is a stage of stacked clips that cross-fade in a loop —
   the old site's idea of "the field keeps moving", but one clip's worth
   of bandwidth at a time: the next one is only fetched just before its turn. */
.hpanel__stage{position:absolute;inset:0}
.hpanel__v{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.88) contrast(1.06);
  opacity:0;transition:opacity 1.4s var(--ease-in-out);
}
.hpanel__v.is-on{opacity:1}
.hpanel__scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,14,10,.58) 0%,rgba(8,14,10,.14) 34%,rgba(8,14,10,.86) 100%);
}
.hpanel--b .hpanel__scrim{
  background:linear-gradient(180deg,rgba(8,14,10,.34) 0%,rgba(8,14,10,.10) 26%,rgba(8,14,10,.90) 100%);
}
.hpanel + .hpanel{border-left:1px solid rgba(244,241,233,.24)}

/* survey ticks, same language as the old plate frame */
.hpanel::before,.hpanel::after{
  content:'';position:absolute;width:16px;height:16px;z-index:3;pointer-events:none;
}
.hpanel::before{top:14px;left:14px;
  border-top:2px solid rgba(244,241,233,.78);border-left:2px solid rgba(244,241,233,.78)}
.hpanel::after{bottom:14px;right:14px;
  border-bottom:2px solid rgba(244,241,233,.78);border-right:2px solid rgba(244,241,233,.78)}

.hpanel__no{
  position:absolute;top:14px;right:14px;z-index:3;
  font-family:var(--mono);font-size:.64rem;letter-spacing:.18em;color:#fff;
  background:rgba(0,0,0,.42);padding:.3rem .5rem;backdrop-filter:blur(3px);
}
.hpanel__in{
  position:relative;z-index:2;width:100%;color:#F4F1E9;
  padding:clamp(1.5rem,3.2vw,3rem);
}
.hpanel__eyebrow{
  display:flex;align-items:center;gap:.6rem;margin:0 0 1.1rem;
  font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(244,241,233,.74);
}
.hpanel__eyebrow .dot{
  width:6px;height:6px;border-radius:50%;background:var(--lime);flex:none;
  box-shadow:0 0 0 3px rgba(140,191,63,.25);animation:pulse 2.6s infinite;
}
@keyframes pulse{50%{box-shadow:0 0 0 7px transparent}}

.hpanel__h1{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2.1rem,4.8vw,4.1rem);line-height:1;letter-spacing:-.03em;
  margin:0;font-variation-settings:'SOFT' 20,'WONK' 1;
}
.hpanel__tag{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.75rem,3.5vw,3.1rem);line-height:1.04;letter-spacing:-.03em;
  margin:0;font-variation-settings:'SOFT' 20,'WONK' 1;
}
.hpanel__cap{margin:1.1rem 0 0}
.caps{display:block;position:relative;min-height:1.5em}
.cap{
  position:absolute;inset:0 0 auto;opacity:0;
  transition:opacity .7s var(--ease);
  color:rgba(244,241,233,.62);text-transform:none;letter-spacing:.05em;
}
.cap.is-on{opacity:1}
.hpanel__in--b{text-align:right}
.hpanel__in--b .ln > span{display:block}

/* ---------- the rotating verb, carried over from the old hero ---------- */
.rot{
  display:flex;align-items:baseline;gap:.65rem;margin:.85rem 0 0;
  font-family:var(--display);font-style:italic;font-weight:600;
  font-size:clamp(1.4rem,2.7vw,2.35rem);letter-spacing:-.02em;color:var(--lime);
}
.rot__lbl{
  font-family:var(--mono);font-style:normal;font-size:.7rem;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(244,241,233,.6);
}
.rot__win{display:block;height:1.2em;overflow:hidden}
.rot__list{display:block;animation:rot 12s var(--ease-in-out) infinite}
.rot__list > span{display:block;height:1.2em;line-height:1.2}
@keyframes rot{
  0%,15%   {transform:translateY(0)}
  20%,35%  {transform:translateY(-20%)}
  40%,55%  {transform:translateY(-40%)}
  60%,75%  {transform:translateY(-60%)}
  80%,100% {transform:translateY(-80%)}
}

/* hero lines animate on load rather than on scroll — they're above the fold */
.hero .ln > span{
  transition:none;
  animation:lnup 1.05s var(--ease) var(--d,.2s) both;
}
@keyframes lnup{from{transform:translateY(115%)}to{transform:none}}

@media (max-width:880px){
  .hero__split{grid-template-columns:1fr;height:auto}
  .hpanel{min-height:min(52vh,420px)}
  .hpanel + .hpanel{border-left:0;border-top:1px solid rgba(244,241,233,.24)}
  .hpanel__in--b{text-align:left}
}

/* ---------- hero foot ---------- */
.hero__foot{
  display:grid;grid-template-columns:1fr auto;gap:clamp(1.5rem,4vw,3.5rem);
  align-items:end;padding-block:clamp(2rem,4.5vw,3.4rem);
}
@media (max-width:880px){.hero__foot{grid-template-columns:1fr;align-items:start}}
.hero__lede{font-size:clamp(1.05rem,1.5vw,1.3rem);color:var(--ink-2);max-width:52ch;margin:0}
.hero__lede strong{color:var(--ink);font-weight:600}

.btns{display:flex;flex-wrap:wrap;gap:.7rem}
.btn{
  display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;
  font-family:var(--mono);font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;
  padding:.95rem 1.5rem;border:1px solid var(--ink);transition:.3s var(--ease);
}
.btn--fill{background:var(--ink);color:var(--paper)}
.btn--fill:hover{background:var(--green);border-color:var(--green);color:#fff}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:var(--paper)}
.btn svg{width:14px;height:14px;transition:transform .3s var(--ease)}
.btn:hover svg{transform:translateX(4px)}

/* =========================================================================
   MARQUEE / TICKER
   ========================================================================= */
/* The strip is dragged, so it is scrolled by a JS transform rather than a
   keyframe: a keyframe can't be nudged, thrown, or reversed. touch-action
   leaves the vertical axis to the page and takes the horizontal one. */
.ticker{
  position:relative;z-index:1;border-block:1px solid var(--rule);
  background:var(--paper-2);overflow:hidden;padding:.85rem 0;
  cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;
}
.ticker.is-drag{cursor:grabbing}
.ticker__track{display:flex;width:max-content;will-change:transform}
.ticker__seq{display:flex;gap:3rem;padding-right:3rem;flex:none}
.ticker span{font-family:var(--mono);font-size:.78rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-2);display:flex;align-items:center;gap:3rem;white-space:nowrap}
.ticker span::after{content:'';width:5px;height:5px;background:var(--soil);border-radius:50%;flex:none}
@media (prefers-reduced-motion:reduce){
  .ticker{cursor:auto}
  .ticker__track{width:100%;flex-wrap:wrap;justify-content:center;transform:none!important}
  .ticker__seq:nth-child(n+2){display:none}
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.sec{position:relative;z-index:1;padding:clamp(4rem,9vw,8rem) 0}
.sec--tint{background:var(--paper-2);border-block:1px solid var(--rule)}

.sec__hd{display:flex;align-items:flex-start;gap:1.5rem;margin-bottom:clamp(2.2rem,4.5vw,3.75rem)}
.sec__no{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;color:var(--green);
  border:1px solid var(--rule);padding:.35rem .6rem;flex:none;margin-top:.45rem;
}
.sec h2{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.85rem,4.4vw,3.35rem);line-height:1.04;letter-spacing:-.025em;
  margin:0 0 .7rem;max-width:20ch;
  font-variation-settings:'SOFT' 20,'WONK' 1;
}
.sec__sub{color:var(--ink-2);max-width:56ch;margin:0;font-size:clamp(1rem,1.2vw,1.13rem)}

/* ---------- PLOTS (services) ----------
   Full-bleed: the four plots run the width of the viewport, edge to edge,
   and step down 4 → 2 → 1 so no column is ever left orphaned. */
.plots{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--rule);border-block:1px solid var(--rule);
}
@media (max-width:1180px){.plots{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.plots{grid-template-columns:1fr}}
.plot{
  background:var(--paper);padding:clamp(1.6rem,2.6vw,2.4rem);
  position:relative;transition:background .4s var(--ease);
  display:flex;flex-direction:column;min-height:290px;text-decoration:none;color:inherit;
}
.plot:hover{background:var(--card)}
.plot__media{
  position:relative;margin:calc(-1 * clamp(1.6rem,2.6vw,2.4rem));
  margin-bottom:1.5rem;aspect-ratio:4/3;overflow:hidden;background:var(--paper-3);
  border-bottom:1px solid var(--rule);
}
.plot__media video{width:100%;height:100%;object-fit:cover;display:block;
  filter:saturate(.9) contrast(1.03);transition:transform .8s var(--ease)}
.plot:hover .plot__media video{transform:scale(1.04)}
.plot__media .plot__no{
  position:absolute;left:.75rem;bottom:.7rem;margin:0;color:#fff;
  background:rgba(0,0,0,.42);padding:.28rem .5rem;backdrop-filter:blur(3px);
}
.plot__no{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;color:var(--ink-3);margin-bottom:1.7rem}
.plot__ico{width:38px;height:38px;margin-bottom:1.15rem;color:var(--green)}
.plot__ico svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.4}
.plot h3{font-family:var(--display);font-size:1.4rem;font-weight:600;line-height:1.15;
  margin:0 0 .6rem;letter-spacing:-.015em}
.plot p{margin:0;color:var(--ink-2);font-size:.95rem;line-height:1.6}
.plot__more{
  margin-top:auto;padding-top:1.4rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--green);display:flex;align-items:center;gap:.45rem;
}
.plot__more svg{width:13px;height:13px;transition:transform .3s var(--ease)}
.plot:hover .plot__more svg{transform:translateX(4px)}
/* growing bar on hover */
.plot::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;
  background:var(--lime);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease)}
.plot:hover::after{transform:scaleX(1)}

/* ---------- STATS ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1px;
  background:var(--rule);border:1px solid var(--rule)}
.stat{background:var(--paper);padding:clamp(1.5rem,2.4vw,2.1rem)}
.stat__v{font-family:var(--display);font-size:clamp(2.1rem,4.6vw,3.3rem);font-weight:600;
  line-height:1;letter-spacing:-.03em;color:var(--green);display:block;margin-bottom:.5rem}
.stat__k{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}

/* ---------- PROCESS — drawn as a path ----------
   A spine with four nodes on it. Each connector draws itself in as its step
   comes into view, so scrolling the section literally walks the engagement
   from survey to end-of-season report. */
.path{list-style:none;margin:0;padding:0;position:relative}
.path__step{
  position:relative;display:grid;grid-template-columns:52px 1fr;
  gap:clamp(1.1rem,3vw,2.4rem);
  padding-bottom:clamp(2.4rem,4.5vw,3.6rem);
  margin-left:var(--x,0);
}
.path__step:last-child{padding-bottom:0}

/* Each node sits at its own indent and the connector jogs across to reach
   the next one, so the route wanders instead of running down a ruler.
   --x is where this node sits, --dx how far the next one is from it. */
.path__step:nth-child(1){--x:0;        --dx:5rem}
.path__step:nth-child(2){--x:5rem;     --dx:-3.5rem}
.path__step:nth-child(3){--x:1.5rem;   --dx:5.5rem}
.path__step:nth-child(4){--x:7rem;     --dx:0}

/* The connector is one SVG bezier per step, stretched between this node and
   the next: viewBox units with preserveAspectRatio="none" means the same
   curve fits whatever gap the two indents leave, and non-scaling-stroke keeps
   it 2px through that distortion. It draws itself in as the step reveals, by
   clip rather than by dashes: Chrome measures dashes in screen space while
   pathLength normalises in user space, and under a non-uniform scale the two
   disagree — the tail of the curve simply never got drawn. */
.path__link{
  /* an <svg> is a replaced element, so a top/bottom pair leaves it at its
     intrinsic square instead of stretching — the height has to be stated */
  position:absolute;top:56px;height:calc(100% - 56px);left:26px;width:var(--dx);
  overflow:visible;pointer-events:none;
  /* the inset is negative so the half of the stroke that sits outside the box
     at either end isn't shaved off by the clip */
  clip-path:inset(-3px -3px 100% -3px);
  transition:clip-path 1.1s var(--ease) .2s;
}
.path__step.in .path__link{clip-path:inset(-3px)}
.path__link path{
  fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;
}
/* a step whose next node sits to the left gets the same curve, flipped */
.path__step--l .path__link{
  left:calc(26px + var(--dx));width:calc(-1 * var(--dx));transform:scaleX(-1);
}


.path__node{
  position:relative;z-index:1;
  width:52px;height:52px;border-radius:50%;
  border:1px solid var(--rule);background:var(--paper-2);
  display:grid;place-items:center;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;color:var(--ink-3);
  transition:border-color .5s var(--ease),color .5s var(--ease),background .35s var(--ease);
}
.path__step.in .path__node{border-color:var(--green);color:var(--green)}
.path__node::after{ /* survey tick on the ring */
  content:'';position:absolute;inset:-6px;border-radius:50%;
  border:1px dashed var(--rule-soft);opacity:0;transition:opacity .5s var(--ease);
}
.path__step.in .path__node::after{opacity:1}

.path__card{
  padding:clamp(1rem,2vw,1.5rem) clamp(1.1rem,2.2vw,1.7rem);
  margin-top:-.35rem;max-width:72ch;
}
.path__stage{
  font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3);display:block;margin-bottom:.5rem;
}
.path__card h3{font-family:var(--display);font-size:clamp(1.25rem,2.3vw,1.8rem);font-weight:600;
  margin:0 0 .5rem;letter-spacing:-.018em}
.path__card p{margin:0;color:var(--ink-2);max-width:60ch}
.path__out{
  display:inline-flex;align-items:center;gap:.55rem;margin-top:1.15rem;
  font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--green);border:1px dashed var(--rule);padding:.5rem .8rem;
  transition:border-color .35s var(--ease),background .35s var(--ease);
}
.path__out svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

/* No plate behind the card on hover: its left edge crossed the connector and
   cut the line in half. The node and the deliverable chip carry the hover. */
.path__step:hover .path__node{background:var(--green);border-color:var(--green);color:#fff}
.path__step:hover .path__out{border-color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}

@media (max-width:700px){
  /* the wander is scaled down rather than dropped — at phone widths a 7rem
     indent would push the cards off the screen */
  .path__step:nth-child(1){--x:0;      --dx:1.6rem}
  .path__step:nth-child(2){--x:1.6rem; --dx:-1.1rem}
  .path__step:nth-child(3){--x:.5rem;  --dx:1.8rem}
  .path__step:nth-child(4){--x:2.3rem; --dx:0}
}
@media (max-width:560px){
  .path__step{grid-template-columns:40px 1fr;gap:1rem}
  .path__node{width:40px;height:40px;font-size:.66rem}
  .path__link{left:20px;top:46px;height:calc(100% - 46px)}
  .path__step--l .path__link{left:calc(20px + var(--dx))}
  .path__card{padding-inline:.9rem}
}

/* ---------- FULL-BLEED BAND ---------- */
.band{
  position:relative;z-index:1;overflow:hidden;
  min-height:clamp(340px,52vw,540px);display:grid;align-items:center;
  border-block:1px solid var(--rule);
}
.band__v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.85) contrast(1.05)}
.band__scrim{position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(10,18,12,.93) 0%,rgba(10,18,12,.78) 42%,rgba(10,18,12,.30) 100%)}
.band__in{position:relative;padding-block:clamp(2.5rem,6vw,4.5rem);color:#F4F1E9}
.band__in .label{color:rgba(244,241,233,.6)}
.band blockquote{
  margin:.9rem 0 1.1rem;font-family:var(--display);font-weight:600;
  font-size:clamp(1.8rem,4.6vw,3.4rem);line-height:1.05;letter-spacing:-.028em;
  max-width:17ch;font-variation-settings:'SOFT' 20,'WONK' 1;
}
.band p{margin:0;max-width:48ch;color:rgba(244,241,233,.78);font-size:clamp(1rem,1.2vw,1.1rem)}

/* second band is mirrored, so the two don't read as the same slide twice */
.band--ii .band__scrim{
  background:linear-gradient(270deg,rgba(10,18,12,.93) 0%,rgba(10,18,12,.78) 42%,rgba(10,18,12,.30) 100%);
}
.band--ii .band__in{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.band--ii blockquote{max-width:none}
@media (max-width:760px){
  .band--ii .band__scrim{background:linear-gradient(180deg,rgba(10,18,12,.55) 0%,rgba(10,18,12,.9) 100%)}
  .band--ii .band__in{align-items:flex-start;text-align:left}
}

/* ---------- AUDIENCE SPLIT ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--rule);border:1px solid var(--rule)}
@media (max-width:760px){.split{grid-template-columns:1fr}}
.split__side{
  background:var(--paper);padding:clamp(1.8rem,3.4vw,3rem);
  position:relative;
  transition:background .4s var(--ease),opacity .4s var(--ease);
}
.split__side:nth-child(2){background:var(--card)}
/* Swapping --paper for --card here read as nothing in dark mode: the two
   are six points apart. The hover state is a green wash instead, and the
   side you are not on recedes — the contrast is between the two sides,
   not between one side and its own previous colour. */
/* The fade is on the contents, not the panel: fading the panel itself let
   the rule colour behind the grid gap bleed through and turned the whole
   card sage in light mode. */
.split__side > *{transition:opacity .4s var(--ease)}
.split:hover .split__side > *{opacity:.34}
.split .split__side:hover > *{opacity:1}
.split__side:hover{
  background:color-mix(in srgb,var(--green) var(--wash),var(--card));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green-deep) 55%,transparent);
}
/* --green-deep, which is the darkest green on paper and the brightest on
   the dark theme — either way the hovered heading gains contrast rather
   than losing it against the side it is competing with */
.split__side:hover h3{color:var(--green-deep)}
.split__side h3{transition:color .4s var(--ease)}
@media (hover:none){
  .split:hover .split__side > *{opacity:1}
}
/* growing bar on hover, same language as the plot cards */
.split__side::after{
  content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;
  background:var(--lime);transform:scaleX(0);transform-origin:left;
  transition:transform .5s var(--ease);
}
.split__side:hover::after{transform:scaleX(1)}
.split__side:hover li::before{border-color:var(--lime)}
.split li::before{transition:border-color .4s var(--ease)}
.split__side h3{font-family:var(--display);font-size:clamp(1.3rem,2.4vw,1.9rem);font-weight:600;
  margin:.9rem 0 1rem;letter-spacing:-.02em}
.split ul{list-style:none;margin:0;padding:0;display:grid;gap:.85rem}
.split li{display:flex;gap:.8rem;color:var(--ink-2);font-size:.97rem;line-height:1.55}
.split li::before{
  content:'';flex:none;width:16px;height:16px;margin-top:.25rem;border-radius:50%;
  border:1px solid var(--green);
  background:radial-gradient(circle,var(--lime) 0 3.5px,transparent 3.5px);
}

/* ---------- CONTACT ---------- */
/* The form is gone — the enquiry runs through the mailto in the footer sign
   bar, the same mechanism as genesis-elysium. What's left is the address
   card and a map big enough to actually read. */
.contact{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(1.5rem,3vw,2.5rem);align-items:stretch}
@media (max-width:880px){.contact{grid-template-columns:1fr}}

.infocard{border:1px solid var(--rule);background:var(--card);
  padding:clamp(1.5rem,2.6vw,2.2rem);display:flex;flex-direction:column}
.infocard h3{font-family:var(--display);font-size:1.4rem;margin:0 0 1.4rem;font-weight:600}
.info{display:grid;gap:1.3rem}
.info__row{display:grid;gap:.2rem}
.info__row a{color:var(--green);text-underline-offset:3px}
.info__row .label{margin-bottom:.15rem}
.infocard .info{margin-bottom:2rem}
.infocard .btn--fill{margin-top:auto;align-self:start}

.mapwrap{border:1px solid var(--rule);background:var(--paper-3);
  min-height:clamp(340px,42vw,520px);overflow:hidden}
.mapwrap iframe{width:100%;height:100%;min-height:inherit;border:0;filter:saturate(.75);display:block}
@media (max-width:880px){.mapwrap{min-height:320px}}

/* =========================================================================
   FOOTER
   ========================================================================= */
/* Fixed literals, not --ink/--paper: those flip with the theme, which turned
   the footer into a cream slab with cream text in dark mode. The footer is
   deliberately dark in both themes. */
.ftr{position:relative;z-index:1;background:#121D16;color:#F4F1E9;
  border-top:1px solid rgba(244,241,233,.13);padding:0 0 0;overflow:hidden}
.ftr a{color:inherit}
.ftr > .wrap{padding-top:clamp(1.4rem,3vw,2.2rem);padding-bottom:2rem}

/* The sign bar carries the whole call to action: two halves, the right one
   a mailto. No form to fill in, no handler to run. */
.sign{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid rgba(244,241,233,.15)}
.sign > *{
  display:grid;place-items:center;text-align:center;
  padding:clamp(1.6rem,4vw,2.8rem) clamp(1rem,3vw,2rem);
  font-family:var(--display);font-weight:600;letter-spacing:-.03em;
  font-size:clamp(1.15rem,3vw,2.4rem);line-height:1.05;
  position:relative;overflow:hidden;isolation:isolate;text-decoration:none;
  font-variation-settings:'SOFT' 20,'WONK' 1;
}
/* .ftr a{color:inherit} outranks a bare .sign__b, which left this half
   cream-on-cream and apparently blank */
.ftr .sign__a{background:#121D16;color:#F4F1E9}
.ftr .sign__b{background:#F4F1E9;color:#152218;transition:color .45s var(--ease)}
.sign > * > span{position:relative;z-index:1}
.sign__b::before{content:'';position:absolute;inset:0;z-index:0;background:var(--green-deep);
  transform:translateY(100%);transition:transform .5s var(--ease)}
.ftr .sign__b:hover,.ftr .sign__b:focus-visible{color:#F4F1E9}
.sign__b:hover::before,.sign__b:focus-visible::before{transform:translateY(0)}
@media (max-width:640px){.sign{grid-template-columns:1fr}}

/* the badge and the wordmark read as one lockup: the row is sized off the
   viewport so the two scale together and the pair stays centred */
.ftr__mark{
  padding:clamp(1.4rem,3.5vw,2.6rem) clamp(1rem,3vw,2rem) 0;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  gap:clamp(.6rem,2vw,2rem);
}
.ftr__mark-logo{display:block;flex:none;line-height:0}
.ftr__mark-logo img{
  display:block;width:auto;height:clamp(40px,9.6vw,124px);
  transition:transform .4s var(--ease);
}
.ftr__mark-logo:hover img{transform:translateY(-4px)}
.ftr__mark > span{
  display:block;white-space:nowrap;
  font-family:var(--display);font-weight:600;letter-spacing:-.05em;
  font-size:clamp(2rem,10.4vw,10.5rem);line-height:.86;
  font-variation-settings:'SOFT' 20,'WONK' 1;
  background:linear-gradient(180deg,#F4F1E9 26%,#3C5943);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.ftr__band{height:10px;background:linear-gradient(90deg,var(--green),var(--lime) 55%,var(--soil))}
/* the nav columns are gone — the meta row now needs its own rule above it */
.ftr__btm{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;
  padding-top:1.75rem;border-top:1px solid rgba(244,241,233,.15);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;color:rgba(244,241,233,.45)}
@media (prefers-reduced-motion:reduce){.ftr__mark-logo img{transition:none}}
@media (prefers-reduced-motion:reduce){.sign__b::before{transition:none}}

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
[data-reveal]{opacity:0;transform:translateY(22px);
  transition:opacity .85s var(--ease),transform .85s var(--ease)}
[data-reveal].in{opacity:1;transform:none}
[data-reveal-delay="1"]{transition-delay:.08s}
[data-reveal-delay="2"]{transition-delay:.16s}
[data-reveal-delay="3"]{transition-delay:.24s}
[data-reveal-delay="4"]{transition-delay:.32s}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
  .hpanel__eyebrow .dot{animation:none}
  .ln > span,.hero .ln > span{transform:none;transition:none;animation:none}
  /* the rotator holds on the first word rather than cycling */
  .rot__list{animation:none}
}
