/* ==========================================================================
   AgriBloom Fertilizers — "Deep Field"
   Brand: dark forest ground, lime accent, Poppins, zero corner radius.
   Derived from the AgriBloom Home design canvas (direction 1b).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --ink:        #0c1f17;   /* page ground */
  --ink-2:      #123024;   /* raised panel on ground */
  --ink-3:      #163f2f;   /* deep green, used on light sections */
  --lime:       #9bbe50;   /* accent */
  --lime-700:   #7fa53c;   /* accent on light grounds (text-safe) */
  --bone:       #f3f2ec;   /* light ground / text on dark */
  --bone-2:     #e9e8e0;   /* light panel */
  --bone-3:     #dcdcd4;   /* light rule / placeholder fill */
  --slate:      #3d5a4e;   /* body copy on light */
  --slate-2:    #4b6459;   /* muted label on light */

  /* Text on dark */
  --on-dark:        #f3f2ec;
  --on-dark-80:     rgba(243, 242, 236, .80);
  --on-dark-68:     rgba(243, 242, 236, .68);
  --on-dark-55:     rgba(243, 242, 236, .55);
  --rule-dark:      rgba(243, 242, 236, .18);
  --rule-dark-soft: rgba(243, 242, 236, .10);
  --rule-lime:      rgba(155, 190, 80, .35);
  --rule-light:     rgba(22, 63, 47, .25);

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale — artboard sizes are the ceiling */
  --fs-display: clamp(42px, 10.5vw, 150px);  /* home hero */
  --fs-poster:  clamp(34px, 7.2vw, 96px);    /* ESG statement */
  --fs-h1:      clamp(36px, 6.4vw, 78px);    /* inner page hero */
  --fs-h2:      clamp(30px, 5.2vw, 60px);    /* section heading */
  --fs-h3:      clamp(24px, 3.4vw, 32px);    /* row / card title */
  --fs-h4:      clamp(21px, 2.6vw, 30px);
  --fs-lead:    clamp(16px, 1.5vw, 19px);
  --fs-body:    16px;

  /* Rhythm */
  --gutter:     clamp(20px, 4.4vw, 56px);
  --section-y:  clamp(56px, 7vw, 80px);
  --maxw:       1280px;

  --radius: 0;                                  /* Modernist: never round a corner */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease); }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; border-radius: var(--radius); }

/* Themed focus — never the browser default */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.section--light :focus-visible { outline-color: var(--ink-3); }

::selection { background: var(--lime); color: var(--ink); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--ink);
  padding: 14px 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight   { padding-block: clamp(40px, 5vw, 56px); }
.section--flush-t { padding-top: 0; }
.section--flush-b { padding-bottom: 0; }

/* Light inversion — used for portfolio, pricing */
.section--light { background: var(--bone); color: var(--ink); }
.section--panel { background: var(--ink-2); }
.section--lime  { background: var(--lime); color: var(--ink); }

/* Hatched field texture used behind hero and corridor bands */
.hatch {
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(115deg, rgba(155,190,80,.09) 0 3px, transparent 3px 14px);
}

/* Six-column ghost grid overlay (the visible modular grid) */
.gridlines {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.gridlines span { border-right: 1px solid var(--rule-dark-soft); }
.gridlines span:last-child { border-right: 0; }

/* Section kicker: "02 — What you get" */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime);
}
.section--light .kicker { color: var(--slate-2); }
.section--lime .kicker  { color: var(--ink); }

.h2 {
  font-size: var(--fs-h2);
  line-height: 1; font-weight: 700; letter-spacing: -.04em;
  margin-top: 22px; text-wrap: balance;
}
.lead {
  font-size: var(--fs-lead); line-height: 1.65;
  color: var(--on-dark-68); max-width: 62ch;
}
.section--light .lead { color: var(--slate); }

/* Heading + trailing link, wraps cleanly on narrow screens */
.head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: clamp(20px, 3vw, 40px);
}

.mono {
  font-family: var(--mono);
  font-size: 11px; line-height: 1.5; color: var(--on-dark-55);
}
.section--light .mono { color: var(--slate-2); }

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

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer;
  text-align: left;                         /* Modernist: labels flush left */
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--sm { padding: 14px 22px; font-size: 13px; }

.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--bone); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--ink-2); color: var(--lime); }

.btn--ghost { border-color: rgba(243,242,236,.5); color: var(--on-dark); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.btn--outline { border-color: var(--ink-3); color: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--ink-3); color: var(--bone); }

/* Underlined "All products →" link */
.link-more {
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--lime); padding-bottom: 6px; white-space: nowrap;
}
.link-more:hover { color: var(--lime); }
.section--light .link-more:hover { color: var(--lime-700); }

.link-arrow {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--lime-700); }

/* --------------------------------------------------------------------------
   5. Brand mark
   -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: block; width: 22px; height: 22px; flex: 0 0 auto;
  background: var(--lime);
  transform: rotate(45deg) skew(6deg, 6deg);
}
.brand__word { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-lime);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  max-width: var(--maxw); margin-inline: auto;
  padding: 18px var(--gutter);
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--on-dark-80);
  padding-block: 4px;
}
.nav a:hover { color: var(--lime); }
.nav a[aria-current="page"] {
  color: var(--lime); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--lime);
}
/* The nav's own CTA is for the mobile panel only — .header__cta covers desktop */
.nav > .btn { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  background: transparent; border: 1px solid var(--rule-lime);
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 2px; background: var(--bone); }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--bone);
  transition: transform .22s var(--ease), top .22s var(--ease), opacity .16s;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 82vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero--compact { min-height: clamp(320px, 46vh, 460px); }

/* Full-bleed photo layer; falls back to the hatch pattern when absent */
.band-photo { position: absolute; inset: 0; z-index: 0; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,31,23,.62) 0%, rgba(12,31,23,.78) 55%, rgba(12,31,23,.92) 100%);
}
.band-photo.is-empty::after { background: rgba(12,31,23,.35); }

.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(40px, 6vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--lime); flex: 0 0 auto;
  animation: agPulse 2.4s ease-in-out infinite;
}
.section--lime .eyebrow { color: var(--ink); }
.section--lime .eyebrow::before { background: var(--ink); }

.hero__title {
  font-size: var(--fs-display);
  line-height: .86; font-weight: 700; letter-spacing: -.05em;
  margin-top: 28px; text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--lime); }

.hero--compact .hero__title { font-size: var(--fs-h1); line-height: .95; }

.hero__copy { margin-top: 30px; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-80); max-width: 640px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Stat ledger */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(243,242,236,.22);
}
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 22px 24px 24px; border-left: 1px solid rgba(243,242,236,.14); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.03em;
  color: var(--lime); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243,242,236,.6); margin-top: 4px;
}

/* --------------------------------------------------------------------------
   8. Ticker
   -------------------------------------------------------------------------- */
.ticker { background: var(--bone); color: var(--ink); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: agMarquee 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex; gap: 40px; padding-right: 40px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group span[aria-hidden] { color: var(--lime-700); }

/* --------------------------------------------------------------------------
   9. Split bands (about, contact, FAQ)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; }
.split--even    { grid-template-columns: 1fr 1fr; }
.split--wide-l  { grid-template-columns: 1.15fr 1fr; }
.split--wide-r  { grid-template-columns: 1fr 1.4fr; }
.split__cell { padding: clamp(48px, 6vw, 80px) var(--gutter); }

.poster-title {
  font-size: clamp(32px, 5.4vw, 66px);
  line-height: .98; font-weight: 700; letter-spacing: -.04em;
  margin-top: 26px; text-wrap: pretty;
}

.value-list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; font-weight: 600; color: var(--lime); }

/* --------------------------------------------------------------------------
   10. Feature grid (2×2)
   -------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-dark); }
.feature {
  padding: clamp(32px, 3.6vw, 44px) var(--gutter);
  border-bottom: 1px solid var(--rule-dark);
  transition: background-color .2s var(--ease);
}
.feature:nth-child(odd) { border-right: 1px solid var(--rule-dark); }
.feature:hover { background: var(--ink-2); }
.feature__head { display: flex; align-items: baseline; gap: 18px; }
.feature__num { font-size: 13px; font-weight: 700; color: var(--lime); }
.feature__title { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.025em; }
.feature p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--on-dark-68); max-width: 46ch; }

/* --------------------------------------------------------------------------
   11. Portfolio rows
   -------------------------------------------------------------------------- */
.rows { margin-top: clamp(34px, 4vw, 52px); border-top: 2px solid var(--ink-3); }
.row {
  display: grid; grid-template-columns: 80px 1fr 300px 200px;
  gap: clamp(18px, 2.4vw, 32px); align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--rule-light);
  transition: background-color .2s var(--ease);
}
.row:last-child { border-bottom: 2px solid var(--ink-3); }
.row:hover { background: var(--bone-2); }
.row__num { font-size: 15px; font-weight: 700; color: var(--lime-700); }
.row__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.03em; }
.row p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--slate); max-width: 56ch; }
.row__spec { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--bone-2); color: var(--slate); padding: 6px 10px;
  border: 1px solid var(--rule-light);
}
.section--light .row:hover .chip { background: var(--bone); }

/* --------------------------------------------------------------------------
   12. Process steps
   -------------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 120px 1fr 1fr;
  gap: clamp(20px, 3vw, 40px); align-items: baseline;
  padding: 32px 0; border-top: 1px solid rgba(243,242,236,.2);
}
.step:last-child { border-bottom: 1px solid rgba(243,242,236,.2); }
.step__num { font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.04em; color: rgba(155,190,80,.45); line-height: 1; }
.step__title { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.025em; }
.step p { font-size: 16px; line-height: 1.65; color: var(--on-dark-68); }
.step--accent { background: var(--ink-2); padding-inline: 16px; }
.step--accent .step__num, .step--accent .step__title { color: var(--lime); }
.step--accent p { color: var(--on-dark-80); }

/* --------------------------------------------------------------------------
   13. Case study cards
   -------------------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 32px); }
.case { background: var(--ink-2); padding: clamp(28px, 3.2vw, 40px) clamp(24px, 3.2vw, 40px) 44px; }
.case__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.case__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.025em; }
.case__figure { display: flex; align-items: flex-end; gap: 20px; margin-top: 34px; }
.case__delta {
  font-size: clamp(56px, 7vw, 88px); font-weight: 700; letter-spacing: -.05em;
  color: var(--lime); line-height: .85; font-variant-numeric: tabular-nums;
}
.case__delta sup { font-size: .5em; vertical-align: baseline; top: 0; }
.case__note { font-size: 14px; line-height: 1.5; color: rgba(243,242,236,.7); padding-bottom: 8px; }
.bars { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.bar { height: 14px; background: rgba(243,242,236,.14); }
.bar__fill { height: 100%; background: rgba(243,242,236,.45); transform: scaleX(0); transform-origin: left; }
.bar__fill--accent { background: var(--lime); }
.is-in .bar__fill { animation: agDraw 1s var(--ease) both; }
.is-in .bar__fill--accent { animation-delay: .14s; }
.case p.case__body { margin-top: 26px; font-size: 15px; line-height: 1.6; color: var(--on-dark-68); }

/* --------------------------------------------------------------------------
   14. Supply corridor
   -------------------------------------------------------------------------- */
.corridor { position: relative; overflow: hidden; }
.corridor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: end; position: relative; z-index: 2; }
.pillars { display: flex; flex-direction: column; gap: 2px; }
.pillar { background: rgba(12,31,23,.55); padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 34px); border-left: 3px solid var(--lime); }
.pillar__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--lime); }
.pillar p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--on-dark-80); }

/* --------------------------------------------------------------------------
   15. Pricing
   -------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: clamp(34px, 4vw, 52px); }
.plan { background: var(--bone-2); padding: clamp(30px, 3.4vw, 40px) clamp(26px, 3vw, 36px) 44px; display: flex; flex-direction: column; }
.plan--feature { background: var(--ink); color: var(--bone); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime-700); }
.plan--feature .plan__name { color: var(--lime); }
.plan__flag { background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; white-space: nowrap; }
.plan__price { font-size: clamp(34px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.035em; margin-top: 18px; line-height: 1.05; }
.plan__unit { font-size: 13px; color: var(--slate-2); }
.plan--feature .plan__unit { color: rgba(243,242,236,.62); }
.plan__rule { height: 1px; background: var(--rule-light); margin: 26px 0; }
.plan--feature .plan__rule { background: rgba(155,190,80,.4); }
.plan__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--slate); flex: 1; }
.plan--feature .plan__list { color: rgba(243,242,236,.82); }
.plan .btn { margin-top: 32px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   16. Testimonials
   -------------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.quote { background: var(--ink-2); padding: clamp(30px, 3.4vw, 40px) clamp(26px, 3vw, 36px); }
.quote__mark { font-size: 44px; line-height: 1; color: var(--lime); font-weight: 700; }
.quote__text { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; margin-top: 12px; }
.quote__who { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-top: 26px; }

/* --------------------------------------------------------------------------
   17. ESG poster
   -------------------------------------------------------------------------- */
.poster { background: var(--lime); color: var(--ink); padding-block: clamp(56px, 7vw, 88px); }
.poster__statement {
  font-size: var(--fs-poster); line-height: .92; font-weight: 700; letter-spacing: -.05em;
  margin-top: 28px; max-width: 16ch; text-wrap: pretty;
}
.poster__foot { display: grid; grid-template-columns: 1fr 420px; gap: clamp(28px, 4vw, 56px); align-items: end; margin-top: 44px; }
.poster__foot p { font-size: 18px; line-height: 1.6; max-width: 62ch; }
.poster .btn { justify-self: start; }

/* --------------------------------------------------------------------------
   18. Field notes
   -------------------------------------------------------------------------- */
.notes { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(243,242,236,.2); }
.note {
  display: grid; grid-template-columns: 180px 1fr 60px; gap: clamp(18px, 2.4vw, 32px); align-items: center;
  padding: 30px 0; border-bottom: 1px solid rgba(243,242,236,.2);
  transition: background-color .2s var(--ease);
}
.note:hover { background: var(--ink-2); }
.note__meta { font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--on-dark-55); }
.note__title { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.03em; }
.note p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(243,242,236,.66); max-width: 62ch; }
.note__go { font-size: 22px; color: var(--lime); text-align: right; }

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; border-left: 1px solid var(--rule-lime); }
.faq__item { border-bottom: 1px solid var(--rule-dark); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px var(--gutter);
  font-size: clamp(17px, 1.8vw, 19px); font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--lime); }
.faq__sign { color: var(--lime); font-size: 24px; font-weight: 700; line-height: 1; flex: 0 0 auto; transition: transform .2s var(--ease); }
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__a { padding: 0 var(--gutter) 26px; font-size: 16px; line-height: 1.65; color: rgba(243,242,236,.7); max-width: 66ch; }

/* --------------------------------------------------------------------------
   20. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > span {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(243,242,236,.6); margin-bottom: 8px;
}
.input {
  width: 100%; padding: 15px 16px;
  border: 1px solid rgba(243,242,236,.4); background: var(--ink-2);
  font-family: var(--font); font-size: 15px; color: var(--on-dark);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.input::placeholder { color: rgba(243,242,236,.4); }
.input:hover { border-color: rgba(243,242,236,.6); }
.input:focus { border-color: var(--lime); background: var(--ink); outline: none; }
textarea.input { resize: vertical; min-height: 120px; }

.signup { display: flex; }
.signup .input { flex: 1; min-width: 0; border-right: 0; }
.signup button { background: var(--lime); color: var(--ink); border: 0; padding: 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.signup button:hover { background: var(--bone); }

.form-note { margin-top: 16px; font-size: 14px; line-height: 1.6; min-height: 1.6em; }
.form-note--ok   { color: var(--lime); }
.form-note--err  { color: #ff9f8c; }

/* --------------------------------------------------------------------------
   21. Contact panel
   -------------------------------------------------------------------------- */
.contact-panel { display: flex; flex-direction: column; background: var(--ink-2); }
.contact-panel__block { padding: clamp(32px, 3.8vw, 48px) clamp(28px, 3.6vw, 52px); border-bottom: 1px solid var(--rule-dark); }
.contact-panel__pair { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule-dark); }
.contact-panel__pair > div { padding: 34px clamp(28px, 3.6vw, 52px); }
.contact-panel__pair > div:first-child { border-right: 1px solid var(--rule-dark); }
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.contact-value { font-size: 17px; line-height: 1.55; font-weight: 500; margin-top: 10px; }
a.contact-value:hover { color: var(--lime); }
.contact-value--sm { font-size: 15px; word-break: break-word; }
.contact-panel__last { padding: clamp(32px, 3.8vw, 48px) clamp(28px, 3.6vw, 52px); flex: 1; background: var(--ink); }

/* --------------------------------------------------------------------------
   22. Photo slots
   Ship empty; drop a correctly-named file into /images and it goes live.
   -------------------------------------------------------------------------- */
.photo { position: relative; overflow: hidden; margin: 0; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 10px; line-height: 1.3;
  background: var(--bone); color: var(--slate-2); padding: 4px 6px;
  display: none;
}
.photo.is-empty {
  background-color: var(--bone-3);
  background-image: repeating-linear-gradient(135deg, rgba(22,63,47,.10) 0 2px, transparent 2px 10px);
}
.photo.is-empty figcaption { display: block; }
.photo--row { height: 110px; }
.photo--tall { aspect-ratio: 4 / 3; }

/* Full-bleed band note (only while the photo is missing) */
.band-note {
  position: absolute; top: 24px; right: var(--gutter); z-index: 3;
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: rgba(243,242,236,.5); text-align: right; display: none;
}
.band-photo.is-empty ~ .band-note { display: block; }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule-lime); padding-block: clamp(44px, 5vw, 64px) 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 3.4vw, 40px); }
.footer__blurb { margin-top: 18px; font-size: 15px; line-height: 1.6; color: rgba(243,242,236,.62); max-width: 320px; }
.footer__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.footer__links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 15px; color: rgba(243,242,236,.78); }
.footer__links a:hover { color: var(--lime); }
.footer__rule { height: 1px; background: rgba(155,190,80,.3); margin: 44px 0 22px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: rgba(243,242,236,.5); }

/* --------------------------------------------------------------------------
   24. Motion
   -------------------------------------------------------------------------- */
@keyframes agRise    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes agFade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes agDraw    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes agGrow    { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes agMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes agPulse   { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* Scroll-reveal: elements start hidden only when JS is running (see .js on <html>) */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { animation: agRise .8s var(--ease) both; }
.js .reveal.is-in.reveal--fade { animation-name: agFade; }
.js .reveal[data-delay="1"].is-in { animation-delay: .10s; }
.js .reveal[data-delay="2"].is-in { animation-delay: .20s; }
.js .reveal[data-delay="3"].is-in { animation-delay: .30s; }

/* Hero animates immediately — it is above the fold on every page */
.hero .reveal { animation: agRise .9s var(--ease) both; opacity: 1; transform: none; }
.hero .reveal[data-delay="1"] { animation-delay: .08s; }
.hero .reveal[data-delay="2"] { animation-delay: .20s; }
.hero .reveal[data-delay="3"] { animation-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   25. Responsive
   The artboard is a fixed 1280px canvas; everything below re-flows it.
   -------------------------------------------------------------------------- */

/* Explicit column placement so portfolio rows can collapse predictably */
.row__body  { grid-column: 2; }
.row__num   { grid-column: 1; }

@media (max-width: 1100px) {
  .row { grid-template-columns: 70px 1fr 220px 150px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .row {
    grid-template-columns: 56px 1fr;
    row-gap: 18px; padding: 26px 0;
  }
  .row .photo--row  { grid-column: 2; height: 150px; }
  .row .link-arrow  { grid-column: 2; }

  .poster__foot { grid-template-columns: 1fr; align-items: start; }
  .quotes { grid-template-columns: 1fr; }
  .split--wide-r { grid-template-columns: 1fr; }
  .faq { border-left: 0; border-top: 1px solid var(--rule-lime); }
  .plans { grid-template-columns: 1fr; }
  .plan .btn { align-self: stretch; justify-content: flex-start; }
}

@media (max-width: 900px) {
  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-lime);
    padding: 4px var(--gutter) 28px;
    max-height: calc(100dvh - 100%); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    font-size: 18px; font-weight: 600; color: var(--on-dark);
    padding: 18px 0; border-bottom: 1px solid var(--rule-dark);
  }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--lime); }
  .nav > .btn { display: inline-flex; margin-top: 22px; justify-content: flex-start; }

  /* Layout collapse */
  .split, .split--even, .split--wide-l { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-right: 0; }
  .cases { grid-template-columns: 1fr; }
  .corridor__grid { grid-template-columns: 1fr; align-items: start; }
  .step { grid-template-columns: 90px 1fr; row-gap: 10px; }
  .step p { grid-column: 2; }
  .note { grid-template-columns: 1fr 44px; row-gap: 10px; }
  .note__meta { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-inline: 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(243,242,236,.14); margin-top: 4px; }
  .stats--3 { grid-template-columns: repeat(2, 1fr); }

  .band-note { display: none !important; }
}

@media (max-width: 620px) {
  .header__inner { padding-block: 14px; }
  .brand__word { font-size: 19px; }
  .brand__mark { width: 18px; height: 18px; }

  .hero { min-height: auto; padding-block: 48px 8px; }
  .cta-row .btn { width: 100%; justify-content: flex-start; }

  .form-grid { grid-template-columns: 1fr; }
  .contact-panel__pair { grid-template-columns: 1fr; }
  .contact-panel__pair > div:first-child { border-right: 0; border-bottom: 1px solid var(--rule-dark); }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(243,242,236,.14); }
  .stat:first-child { border-top: 0; }
  .stat:nth-child(n+3) { margin-top: 0; }

  .step { grid-template-columns: 1fr; row-gap: 8px; }
  .step p, .step__title { grid-column: 1; }

  .row { grid-template-columns: 1fr; }
  .row__body, .row__num, .row .photo--row, .row .link-arrow { grid-column: 1; }

  .footer__grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .signup .input { border-right: 1px solid rgba(243,242,236,.4); }
  .signup button { padding: 16px 24px; text-align: left; }

  .case__figure { flex-direction: column; align-items: flex-start; gap: 8px; }
  .case__note { padding-bottom: 0; }

  .gridlines { display: none; }
}

/* --------------------------------------------------------------------------
   26. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .ticker, .nav-toggle, .band-note, .signup, .cta-row { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .split__cell, .poster { background: #fff !important; color: #000 !important; padding-block: 18pt; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  a { color: #000; }
}
