/* ===========================================================
   Engine Den stat sheet: 2026 campaign results + 2027 proposal.
   Cloned from agri4all.css (same layout, reveal and hover gating);
   re-skinned in Engine Den's own design language: charcoal ground,
   high-vis yellow, thin gold frames, red price numerals.
   Sections the A4A template has no layout for live at the end.
   =========================================================== */

:root {
  /* === PRIMITIVE TOKENS (raw values, sampled from Engine Den's 2026 artwork) === */
  --color-yellow-400: #fff000;   /* logo / site yellow */
  --color-yellow-600: #d9cc00;
  --color-gold-500: #c69a2e;     /* thin HUD line frames on the designs */
  --color-red-600: #de2a26;      /* price numerals */
  --color-ink-950: #0f0f10;      /* near-black: logo lettering, frames */
  --color-char-900: #18181a;     /* design background charcoal */
  --color-char-850: #1d1d1f;
  --color-char-800: #222224;
  --color-steel-400: #9c9ea3;
  --color-line-700: #343437;
  --color-white-0: #ffffff;
  --color-text-100: #e9e9ea;

  --font-family-display: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-family-body: 'Roboto', sans-serif;
  --font-family-brush: 'Permanent Marker', 'Roboto Condensed', cursive;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-phone: 2rem;

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);

  --duration-fast: 0.15s ease;
  --duration-normal: 0.25s ease;

  /* === SEMANTIC TOKENS (purpose aliases) === */
  --color-background: var(--color-char-900);
  --color-bg-alt: var(--color-char-850);
  --color-foreground: var(--color-text-100);
  --color-strong: var(--color-white-0);
  --color-card: var(--color-char-800);
  --color-card-foreground: var(--color-text-100);
  --color-primary: var(--color-yellow-400);
  --color-primary-hover: var(--color-yellow-600);
  --color-primary-foreground: var(--color-ink-950);
  --color-gold: var(--color-gold-500);
  --color-red: var(--color-red-600);
  --color-muted-foreground: var(--color-steel-400);
  --color-border: var(--color-line-700);

  --spacing-page: clamp(1.5rem, 4vw, 4rem);

  /* === COMPONENT TOKENS === */
  --section-bg: var(--color-background);
  --section-fg: var(--color-foreground);
  --heading-fg: var(--color-strong);

  --card-bg: var(--color-card);
  --card-fg: var(--color-card-foreground);
  --card-radius: var(--radius-sm);
  --card-shadow: var(--shadow-sm);
  --card-border: 1px solid var(--color-line-700);

  --ghost-stroke: rgba(255, 240, 0, 0.14);

  /* the decor silhouette is a gear here (the template's slot held Africa) */
  --africa-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='100' height='100' fill='white'/%3E%3Ccircle cx='50' cy='50' r='15' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='%23fff000' mask='url(%23m)'%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Cg id='t'%3E%3Crect x='43' y='3' width='14' height='18' rx='2'/%3E%3C/g%3E%3Cuse href='%23t' transform='rotate(40 50 50)'/%3E%3Cuse href='%23t' transform='rotate(80 50 50)'/%3E%3Cuse href='%23t' transform='rotate(120 50 50)'/%3E%3Cuse href='%23t' transform='rotate(160 50 50)'/%3E%3Cuse href='%23t' transform='rotate(200 50 50)'/%3E%3Cuse href='%23t' transform='rotate(240 50 50)'/%3E%3Cuse href='%23t' transform='rotate(280 50 50)'/%3E%3Cuse href='%23t' transform='rotate(320 50 50)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-family-body);
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-family-display); }
p, figure { margin: 0; }
img { max-width: 100%; display: block; }
canvas { max-width: 100%; }

/* ---------- section shell ---------- */

.a4a-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: clamp(4rem, 9vh, 6rem) var(--spacing-page);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* --section-tint is set per active campaign step (agri4all.js) so the
     background lightly shifts as you scroll through the pin. */
  background-color: color-mix(in srgb, var(--section-bg) 94%, var(--section-tint, transparent) 6%);
  transition: background-color 0.6s ease;
  color: var(--section-fg);
  overflow: hidden;
}

.a4a-section:nth-of-type(even) { --section-bg: var(--color-bg-alt); }

/* content sits above the ghost / halftone decor */
.a4a-section .sec-head,
.site-layout,
#campLayout,
#articleCards,
.proagri-layout,
#summaryBig,
#postsStrip,
#leadsSplit {
  position: relative;
  z-index: 1;
}

/* ---------- decor: africa ghost + orange halftone ---------- */

.ghost-africa {
  position: absolute;
  width: clamp(320px, 44vw, 680px);
  aspect-ratio: 100 / 118;
  background: var(--africa-shape) center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.africa-right { top: 50%; right: -8%; transform: translateY(-50%) rotate(6deg); }
.africa-left { top: 50%; left: -9%; transform: translateY(-50%) rotate(-7deg); }
.africa-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(380px, 52vw, 780px);
  opacity: 0.06;
}
.cover-africa { bottom: -12%; right: -6%; opacity: 0.16; mix-blend-mode: screen; }

.halftone-patch {
  position: absolute;
  background-image: radial-gradient(circle, rgba(255, 240, 0, 0.28) 1.6px, transparent 1.8px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.patch-tr { top: 7%; right: 5%; width: 28vw; height: 20vh; }
.patch-bl { bottom: 9%; left: 3%; width: 20vw; height: 16vh; opacity: 0.6; }
.patch-br { bottom: 7%; right: 4%; width: 24vw; height: 18vh; opacity: 0.7; }
.cover-patch {
  top: 8%;
  left: 5%;
  width: 34vw;
  height: 26vh;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.5px, transparent 1.7px);
  background-size: 16px 16px;
  opacity: 0.5;
}

/* ---------- shared: headings, chips ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  flex-wrap: wrap;
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--heading-fg);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  /* GSAP reveals to inset(0 0% 0 0) */
  clip-path: inset(0 100% 0 0);
}

.sec-head .rule {
  flex: 1;
  min-width: 3rem;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transform-origin: left center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-card);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
}

.ghost-text {
  font-family: var(--font-family-display);
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--ghost-stroke);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* ---------- 1. cover ---------- */

.a4a-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--color-ink-950);
  overflow: hidden;
}

.cover-bg { position: absolute; inset: 0; }

.cover-bg img#coverImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(255, 240, 0, 0.55) 0%, rgba(255, 240, 0, 0) 45%),
    linear-gradient(200deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.cover-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  background: var(--color-card);
  /* accent edge is square so the brand rule doesn't fight the radius */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 6px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 4.5vw, 3.2rem) clamp(1.4rem, 4vw, 2.8rem);
  text-align: center;
}

.cover-logo {
  height: clamp(52px, 8vw, 80px);
  width: auto;
  max-width: 80%;
  object-fit: contain;
  margin: 0 auto 1.1rem;
}

.cover-eyebrow {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.cover-title {
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--color-strong);
  margin-top: 0.2rem;
}

.cover-title .ltr { display: inline-block; will-change: transform; }

.cover-rule {
  width: min(220px, 55%);
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 1.1rem auto 0.9rem;
  transform-origin: center;
}

.cover-sub {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--color-primary);
}

.cover-chip { margin-top: 1.1rem; }

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-family-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
}

/* Same cue, dropped inline under a rail instead of pinned to the viewport
   bottom — used on pinned scroll-morph sections to signal "keep scrolling". */
.scroll-cue--inline {
  position: static;
  transform: none;
  flex-direction: row;
  gap: 0.4rem;
  color: var(--color-muted-foreground);
  margin-top: 1rem;
  transition: opacity 0.4s ease;
}

/* ---------- 2. site metrics + machine collage ---------- */

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

.a4a-metric {
  background: var(--card-bg);
  color: var(--card-fg);
  border: var(--card-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.2rem 1.2rem;
}

/* hover only after the GSAP reveal has finished */
.a4a-metric.revealed { transition: transform var(--duration-normal), box-shadow var(--duration-normal); }
.a4a-metric.revealed:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.a4a-metric.revealed:hover .num { color: var(--color-primary); }

.a4a-metric .num {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color var(--duration-normal);
}

.a4a-metric .label {
  margin-top: 0.5rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.a4a-metric .desc {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-muted-foreground);
}

/* Lot photographs are mixed portrait/landscape and must never be cropped, so
   the collage flows as a masonry: each tile carries its photo's own ratio
   (set inline by agri4all.js) and the columns close the gaps. */
.site-collage {
  column-count: 2;
  column-gap: clamp(0.7rem, 1.4vw, 1.1rem);
}

.site-collage .collage-item {
  break-inside: avoid;
  margin-bottom: clamp(0.7rem, 1.4vw, 1.1rem);
  border-radius: var(--radius-sm);
  overflow: hidden;
  /* quiet matte behind any letterboxing from an odd ratio */
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.site-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}

/* opacity is repeated here so the reveal doesn't drop .img-fade's transition */
.site-collage .collage-item.revealed img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--duration-normal), opacity 0.45s ease; }
.site-collage .collage-item.revealed:hover img { transform: scale(1.04); box-shadow: var(--shadow-md); }

/* ---------- 3. campaigns (pinned morph) ---------- */

.pin-stage { justify-content: center; }

#campLayout {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: center;
}

.camp-rail {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.9rem;
}

/* A literal scroll progress bar next to the bullets: fill height tracks the
   pinned section's scroll progress (0-100%), set inline by agri4all.js. */
.camp-rail .rail-track {
  position: relative;
  width: 3px;
  flex-shrink: 0;
  margin-right: 1rem;
  border-radius: 3px;
  background: var(--color-border);
  align-self: stretch;
}

.camp-rail .rail-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  border-radius: 3px;
  background: var(--color-primary);
}

.camp-rail .rail-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.camp-rail .rail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.5rem 0.8rem;
  margin-left: -0.8rem;
  border-radius: 999px;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: color var(--duration-normal), background var(--duration-normal);
  white-space: nowrap;
}

.camp-rail .rail-item:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  color: var(--color-strong);
}

.camp-rail .rail-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--duration-normal), box-shadow var(--duration-normal), transform var(--duration-normal);
}

.camp-rail .rail-item.active {
  color: var(--color-strong);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.camp-rail .rail-item.active::before {
  background: var(--color-primary);
  box-shadow: 0 0 14px rgba(255, 240, 0, 0.85);
  transform: scale(1.25);
}

.camp-copy { min-width: 0; }

.camp-copy .camp-label {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.camp-copy .camp-values {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.camp-copy .val-curated {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

.camp-copy .val-organic {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--color-muted-foreground);
  font-variant-numeric: tabular-nums;
}

.camp-copy .val-curated small,
.camp-copy .val-organic small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.camp-copy .val-curated small { color: var(--color-primary); }

.camp-copy .camp-desc {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-muted-foreground);
  min-height: 3.1em;
}

.chart-card {
  position: relative;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: clamp(1rem, 2vw, 1.4rem);
  height: clamp(320px, 48vh, 440px);
}

.chart-card canvas { width: 100% !important; height: 100% !important; }

/* JS static / mobile fallback: unpin, stack */
.pin-stage.static { min-height: 0; }
.pin-stage.static #campLayout { grid-template-columns: 1fr; }
.pin-stage.static .camp-rail { flex-direction: row; flex-wrap: wrap; }

/* ---------- 4. article campaign cards ---------- */

#articleCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}

.article-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
}

.article-card.revealed { transition: transform var(--duration-normal), box-shadow var(--duration-normal), border-color var(--duration-normal); }
.article-card.revealed:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }

.article-card .tag {
  display: inline-block;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
}

.article-card .tag.curated {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.article-card .tag.organic {
  background: transparent;
  border: 1.5px solid var(--color-muted-foreground);
  color: var(--color-muted-foreground);
}

.article-card .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.article-card .row:last-child { border-bottom: none; padding-bottom: 0; }

.article-card .row .k {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
}

.article-card .row .v {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

.article-card .row:first-of-type .v { color: var(--color-primary); }

/* ---------- 5. proagri article + story phones ---------- */

.proagri-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.link-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  box-shadow: var(--card-shadow);
  padding: clamp(1.3rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link-card.revealed { transition: transform var(--duration-normal), box-shadow var(--duration-normal); }
.link-card.revealed:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.link-card a {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.4;
  color: var(--color-strong);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.link-card a:hover { color: var(--color-primary); text-decoration: underline; }

.link-card .src {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.link-card .views {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

.link-card .views small {
  display: block;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}

#proagriPhone {
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.phone {
  position: relative;
  flex: 0 1 clamp(140px, 16vw, 210px);
  /* aspect-ratio comes inline from each story design's real w/h */
  border: 7px solid var(--color-ink-950);
  border-radius: var(--radius-phone);
  overflow: hidden;
  background: var(--color-ink-950);
  box-shadow: var(--shadow-md);
  will-change: transform;
}

.phone::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 9px;
  background: var(--color-ink-950);
  border-radius: 999px;
  z-index: 2;
}

/* contain, never cover: the story artwork is the deliverable */
.phone img { width: 100%; height: 100%; object-fit: contain; }

.phone.revealed { transition: transform var(--duration-normal), box-shadow var(--duration-normal); }
.phone.revealed:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: var(--shadow-lg); }

/* ---------- 6. summary big stats + posts strip ---------- */

#summaryBig {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.big-stat { min-width: 0; }

.big-stat .num {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.big-stat:nth-child(even) .num { color: var(--color-primary); }

.big-stat .label {
  margin-top: 0.5rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.posts-strip {
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  overflow-x: auto;
  padding-bottom: 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.posts-strip .post-thumb {
  flex: 0 0 auto;
  height: clamp(220px, 34vh, 340px);
  /* aspect-ratio comes inline from each post design's real w/h */
  border-radius: var(--radius-sm);
  overflow: hidden;
  /* matte so a letterboxed design reads as framed, not broken */
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

.posts-strip .post-thumb img { width: 100%; height: 100%; object-fit: contain; will-change: transform; }

.posts-strip .post-thumb.revealed { transition: box-shadow var(--duration-normal); }
.posts-strip .post-thumb.revealed img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease; }
.posts-strip .post-thumb.revealed:hover { box-shadow: var(--shadow-md); }
/* the hover push-in would fight the carousel's own slide tweens */
.posts-strip .post-thumb.revealed:not(.is-carousel):hover img { transform: scale(1.06); }

/* ---------- shared: carousel designs (posts strip + story phones) ----------
   Markup comes from carousel.js buildCarouselInner(); behaviour from
   initCarousels(). A multi-slide design is ONE card that slides, so the
   controls must stay legible over whatever artwork sits underneath. */

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

.is-carousel { position: relative; outline: none; }
.is-carousel:focus-visible { box-shadow: 0 0 0 3px rgba(255, 240, 0, 0.6), var(--shadow-md); }

/* transparent on purpose: the card underneath owns the matte, so a carousel
   letterboxes against exactly the same ground as a single-image card. */
.car-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.car-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
}

/* GSAP tweens autoAlpha inline once running; the class carries the base state
   and the reduced-motion path, where no tween ever runs. */
.car-slide.is-active { opacity: 1; visibility: visible; }

.car-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  color: var(--color-white-0);
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.car-badge svg { display: block; color: var(--color-primary); }

.car-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  color: var(--color-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity var(--duration-normal), background var(--duration-fast),
    color var(--duration-fast), transform var(--duration-fast);
}

.car-prev { left: 0.45rem; }
.car-next { right: 0.45rem; }

.is-carousel:hover .car-arrow,
.is-carousel:focus-within .car-arrow { opacity: 1; }

.car-arrow:hover {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  transform: translateY(-50%) scale(1.08);
}

.car-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* no hover to reveal them on touch */
@media (hover: none) {
  .car-arrow { opacity: 1; }
}

.car-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

/* scrim so the dots hold up over a bright design */
.car-dots::before {
  content: '';
  position: absolute;
  inset: -1.4rem 0 -0.5rem;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.car-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.car-dot.is-active { background: var(--color-primary); transform: scale(1.3); }
.car-dot:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* the phone frame is narrow: scale the furniture down inside it */
.phone .car-arrow { width: 24px; height: 24px; }
.phone .car-arrow svg { width: 13px; height: 13px; }
.phone .car-badge { top: 1.15rem; right: 0.35rem; font-size: 0.55rem; padding: 0.18rem 0.36rem; }
.phone .car-dots { bottom: 0.7rem; }

/* ---------- shared: artwork load-in (LQIP blur-up -> real image) ----------
   Each card paints the manifest's inline LQIP as its own background (set
   inline by agri4all.js). The card carries the artwork's exact aspect-ratio
   and the image is object-fit: contain, so the placeholder sits pixel-for-
   pixel under the real image, which fades onto it once decoded.

   .car-slide is deliberately NOT faded: carousel.js drives slide visibility
   with GSAP autoAlpha, and a competing CSS transition would fight it. There
   the stage keeps the placeholder until slide 1 has decoded instead. */

.img-fade { opacity: 0; transition: opacity 0.45s ease; }
.img-fade.is-loaded { opacity: 1; }

/* ---------- 7. leads finale + marquee ---------- */

.a4a-leads { text-align: center; }
.a4a-leads .sec-head { justify-content: center; }
.a4a-leads .sec-head .rule { flex: 0 1 6rem; }

#leadsSplit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3.5vw, 3rem);
  flex-wrap: wrap;
  padding-bottom: clamp(5rem, 14vh, 9rem); /* clears the marquee band */
}

.lead-num {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

.lead-label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.lead-plus {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--color-primary);
  will-change: transform;
}

/* Total sits on its own full-width row under the two lead columns. */
.lead-total-wrap {
  flex-basis: 100%;
  margin-top: clamp(1rem, 3.5vh, 2.4rem);
}

.lead-total {
  position: relative;
  display: inline-block;
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(4.2rem, 14vw, 11rem);
  line-height: 1;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

/* orange underline sweep: JS tweens --sweep 0 -> 1 (or animates a real
   .lead-underline element, which suppresses the pseudo via :has) */
.lead-total::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.09em;
  background: var(--color-primary);
  border-radius: 3px;
  transform: scaleX(var(--sweep, 0));
  transform-origin: left center;
}

.lead-total:has(.lead-underline)::after { content: none; }

.lead-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.09em;
  background: var(--color-primary);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 8. thank you ---------- */

/* Section intro copy carried over from the source report. */
.sec-intro {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: -0.6rem 0 clamp(1.4rem, 3vh, 2.2rem);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
}

.a4a-thanks {
  align-items: center;
  text-align: center;
  background: var(--color-card);
}

.thanks-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 44rem;
  padding-bottom: clamp(4rem, 12vh, 8rem); /* clears the marquee band */
}

.thanks-logo {
  width: clamp(150px, 22vw, 250px);
  height: auto;
  margin-bottom: 0.6rem;
}

.thanks-title {
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-strong);
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0); /* GSAP reveals this */
}

.thanks-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--color-muted-foreground);
  max-width: 38ch;
}

.thanks-rule {
  width: clamp(4rem, 10vw, 8rem);
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary);
  transform-origin: center;
  margin: 0.4rem 0;
}

.thanks-meta {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-strong);
}

.thanks-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}

.thanks-links a {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  transition: background var(--duration-normal), color var(--duration-normal);
}

.thanks-links a:hover {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.8rem, 3vh, 2rem);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7rem);
  text-transform: uppercase;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 240, 0, 0.28);
  will-change: transform;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  #campLayout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .camp-rail .rail-track { display: none; }
  .camp-rail .rail-items { flex-direction: row; flex-wrap: wrap; gap: 0.9rem; }
  .site-layout { grid-template-columns: 1fr; }
  .ghost-africa { width: clamp(260px, 55vw, 480px); }
}

@media (max-width: 860px) {
  .a4a-section { padding: clamp(3rem, 8vh, 4.5rem) var(--spacing-page); }
  #articleCards { grid-template-columns: 1fr; }
  .proagri-layout { grid-template-columns: 1fr; }
  #proagriPhone { order: -1; }
  .phone { flex: 0 1 clamp(120px, 26vw, 160px); }
  .chart-card { height: clamp(260px, 42vh, 340px); }
  .posts-strip .post-thumb { height: clamp(180px, 26vh, 240px); }
  #summaryBig { gap: 1.4rem; }
  .site-collage { column-count: 2; }
  .cover-card { width: min(94vw, 480px); }
  #leadsSplit { flex-direction: column; gap: 1rem; }
  .lead-plus { transform: none; }
}

/* ---------- reduced motion: everything visible, no scroll effects ----------
   html.motion-forced (set by ?motion=1) opts back in to animations. */

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) *, html:not(.motion-forced) *::before, html:not(.motion-forced) *::after { transition: none !important; animation: none !important; }
  html:not(.motion-forced) .sec-head h2 { clip-path: none; }
  html:not(.motion-forced) .scroll-cue { display: none; }
  html:not(.motion-forced) .pin-stage { min-height: 0; }
  html:not(.motion-forced) #campLayout { grid-template-columns: minmax(0, 1fr); }
  html:not(.motion-forced) .camp-rail { flex-direction: row; flex-wrap: wrap; }
  html:not(.motion-forced) .lead-total::after { transform: scaleX(1); }
  html:not(.motion-forced) .lead-underline { transform: scaleX(1); }
  html:not(.motion-forced) .marquee-inner { transform: none !important; }
  html:not(.motion-forced) .thanks-title { clip-path: none; }
  /* carousels stay navigable without motion, so the arrows must not hide */
  html:not(.motion-forced) .car-arrow { opacity: 1; }
  html:not(.motion-forced) .ghost-africa, html:not(.motion-forced) .halftone-patch { transform: none; }
  html:not(.motion-forced) .africa-right, html:not(.motion-forced) .africa-left { transform: translateY(-50%); }
  html:not(.motion-forced) .africa-center { transform: translate(-50%, -50%); }
}

/* ===========================================================
   Engine Den additions (everything below is new to this report)
   =========================================================== */

/* ---------- brand surface: concrete grain, gear ghost, hazard tape, HUD frames ---------- */

/* The designs sit on a grainy charcoal; a fine noise layer under the content
   gives the flat CSS ground the same tooth without shipping a texture file. */
.a4a-section::after,
.a4a-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ghost-africa { aspect-ratio: 1 / 1; opacity: 0.045; }
.africa-center { opacity: 0.04; }
.cover-africa { opacity: 0.1; mix-blend-mode: normal; }

.halftone-patch { background-image: radial-gradient(circle, rgba(255, 240, 0, 0.16) 1.5px, transparent 1.7px); }
.cover-patch { background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.5px, transparent 1.7px); }

/* Yellow-and-black tape: the one loud graphic device, used at section edges. */
.hazard {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--color-primary) 0 14px, var(--color-ink-950) 14px 28px);
  transform-origin: left center;
}
.hazard-top { top: 0; }
.hazard-bottom { bottom: 0; }

/* Gold corner brackets, after the thin line frames on Engine Den's artwork. */
.hud { position: relative; }
.hud::before {
  content: '';
  position: absolute;
  inset: -7px;
  pointer-events: none;
  z-index: 2;
  --hud: var(--color-gold);
  background:
    linear-gradient(var(--hud), var(--hud)) top left / 22px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) top left / 1.5px 22px no-repeat,
    linear-gradient(var(--hud), var(--hud)) top right / 22px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) top right / 1.5px 22px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom left / 22px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom left / 1.5px 22px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom right / 22px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom right / 1.5px 22px no-repeat;
  transition: inset var(--duration-normal);
}
.hud.revealed:hover::before { inset: -11px; }

/* Red numerals in a gold, corner-cut frame: Engine Den's price tag. */
.ed-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  padding: 0.18em 0.6em 0.14em;
  font-family: var(--font-family-display);
  font-weight: 800;
  line-height: 1;
  color: var(--color-red);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1.5px var(--color-gold);
  clip-path: polygon(0.45em 0, 100% 0, 100% calc(100% - 0.45em), calc(100% - 0.45em) 100%, 0 100%, 0 0.45em);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Shared horizontal value bar (contact split, content, listings, articles). */
.bar-track {
  position: relative;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: var(--color-primary);
  border-radius: 2px;
  transform-origin: left center;
}
.bar-fill.is-gold { background: var(--color-gold); }

.ed-note {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-muted-foreground);
  max-width: 70ch;
}

/* ---------- cover ---------- */

.cover-scrim {
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(255, 240, 0, 0.16) 0%, rgba(255, 240, 0, 0) 55%),
    linear-gradient(200deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.86) 100%);
}

.cover-card {
  background: rgba(24, 24, 26, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-line-700);
  border-bottom: 6px solid var(--color-primary);
}

.cover-logo {
  height: clamp(96px, 15vw, 150px);
  margin-top: calc(-1 * clamp(4rem, 9vw, 6rem));
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}

.cover-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cover-title { color: var(--color-strong); letter-spacing: 0.02em; margin-top: 0.6rem; }

.cover-teaser {
  margin-top: 1.2rem;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-foreground);
}
.cover-teaser strong { color: var(--color-primary); font-weight: 800; }

/* ---------- template components on a dark ground ---------- */

.car-arrow { color: var(--color-ink-950); }
.phone { box-shadow: 0 0 0 1px var(--color-line-700), var(--shadow-md); }
.posts-strip .post-thumb { background: var(--color-ink-950); }
.site-collage .collage-item {
  background: radial-gradient(circle at 50% 45%, #2b2b2e 0%, var(--color-char-800) 70%);
  border: 1px solid var(--color-line-700);
}
.site-collage img { padding: 8%; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55)); }
.a4a-metric { border-color: var(--color-line-700); border-top-color: var(--color-primary); }
.a4a-metric:first-child { background: var(--color-primary); color: var(--color-primary-foreground); }
.a4a-metric:first-child .num,
.a4a-metric:first-child .label,
.a4a-metric:first-child .desc { color: var(--color-primary-foreground); }
.a4a-metric.revealed:first-child:hover .num { color: var(--color-primary-foreground); }

.chart-card { background: var(--color-card); }
.camp-copy .camp-lift {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-foreground);
}
.camp-copy .camp-lift b {
  font-family: var(--font-family-brush);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--color-primary);
  line-height: 1;
}
.camp-copy .val-curated small { color: var(--color-primary); }
.camp-copy .camp-per {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-family-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-muted-foreground);
}
.traction-note {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--color-primary);
  background: rgba(255, 240, 0, 0.06);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-foreground);
  max-width: 46ch;
}
.traction-note strong { color: var(--color-primary); }

/* ---------- enquiries ---------- */

.enq-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

.enq-chart { height: clamp(320px, 50vh, 460px); }

.enq-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}

.enq-total .num {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.enq-total .label {
  margin-top: 0.4rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.split-head {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-strong);
  margin-bottom: 0.7rem;
}

.split-row { margin-bottom: 0.85rem; }
.split-row .k {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--color-foreground);
  margin-bottom: 0.35rem;
}
.split-row .k b {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

/* ---------- content list (2026 campaign content) ---------- */

#articleCards .article-card .tag.curated { background: var(--color-primary); color: var(--color-primary-foreground); }
#articleCards .article-card .tag.organic { border-color: var(--color-gold); color: var(--color-gold); }
#articleCards .article-card .row:first-of-type .v { color: var(--color-primary); }

#contentList {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}

.c-row {
  display: grid;
  grid-template-columns: 4.2rem 6.2rem 5.6rem minmax(0, 1fr) minmax(7rem, 0.55fr) 4.4rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.9rem;
  background: var(--color-card);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.c-row[data-type='article'] { border-left-color: var(--color-primary); }

.c-thumb {
  width: 4.2rem;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  background: var(--color-ink-950);
}
.c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-thumb.is-article {
  display: grid;
  place-items: center;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--color-primary-foreground);
  background: var(--color-primary);
}

.c-date { font-size: 0.8rem; color: var(--color-muted-foreground); white-space: nowrap; }
.c-tag {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.c-row[data-type='article'] .c-tag { color: var(--color-primary); }
.c-title { min-width: 0; font-size: 0.9rem; color: var(--color-strong); }
.c-title small { display: block; font-size: 0.74rem; color: var(--color-muted-foreground); margin-top: 0.1rem; }
.c-views {
  text-align: right;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

/* ---------- marketplace ---------- */

.market-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
}

.list-head {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-strong);
  margin-bottom: 0.8rem;
}

.l-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto minmax(5rem, 0.45fr) 3.6rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-line-700);
}
.l-row:last-child { border-bottom: 0; }
.l-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #2e2e31 0%, var(--color-ink-950) 75%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line-700);
}
.l-thumb img { width: 84%; height: 84%; object-fit: contain; }
.l-title { font-size: 0.88rem; color: var(--color-strong); min-width: 0; }
.l-row .ed-price { font-size: 0.95rem; }
.l-views {
  text-align: right;
  font-family: var(--font-family-display);
  font-weight: 800;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}

#countryChips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.country-chip {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--color-card);
  border: 1px solid var(--color-line-700);
  color: var(--color-foreground);
}
.country-chip.is-home { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-foreground); font-weight: 800; }
.market-side .ed-note { margin-top: 1.2rem; }
.market-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-foreground);
}
.market-badge svg { flex: 0 0 auto; color: var(--color-primary); }

/* ---------- partnership timeline ---------- */

#partnerList { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.4rem; }
.p-row {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr) minmax(4rem, 0.4fr) 3.8rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
}
.p-date { color: var(--color-muted-foreground); white-space: nowrap; }
.p-title { color: var(--color-foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-views { text-align: right; font-family: var(--font-family-display); font-weight: 800; color: var(--color-strong); font-variant-numeric: tabular-nums; }
.p-row.is-2026 .p-date,
.p-row.is-2026 .p-title { color: var(--color-primary); }

.link-card .src { color: var(--color-primary); }
.link-card .views small { color: var(--color-muted-foreground); }
.link-card .extra { font-size: 0.86rem; line-height: 1.5; color: var(--color-muted-foreground); }
.link-card .extra b { color: var(--color-strong); }

/* ---------- cost per enquiry finale (template leads split, ÷ instead of +) ---------- */

.lead-col .lead-num.is-rand { color: var(--color-strong); }
.lead-plus { font-family: var(--font-family-display); }
.lead-total { color: var(--color-primary); }
.lead-total .approx { font-size: 0.5em; vertical-align: 0.6em; margin-right: 0.08em; color: var(--color-muted-foreground); }
.lead-sub {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-foreground);
}

/* ---------- thank you ---------- */

.thanks-logo { width: clamp(140px, 18vw, 210px); }
.thanks-contact {
  font-size: 0.92rem;
  color: var(--color-foreground);
}
.thanks-contact a { color: var(--color-primary); text-decoration: none; }
.thanks-contact a:hover { text-decoration: underline; }

/* ---------- responsive (new sections) ---------- */

@media (max-width: 1080px) {
  .enq-layout,
  .market-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .c-row {
    grid-template-columns: 3.6rem minmax(0, 1fr) 3.8rem;
    grid-template-areas: 'thumb title views' 'thumb bar bar';
    row-gap: 0.35rem;
  }
  .c-row .c-thumb { grid-area: thumb; width: 3.6rem; }
  .c-row .c-date, .c-row .c-tag { display: none; }
  .c-row .c-title { grid-area: title; }
  .c-row .bar-track { grid-area: bar; }
  .c-row .c-views { grid-area: views; }
  .l-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: 'thumb title price' 'thumb bar views'; row-gap: 0.3rem; }
  .l-row .l-thumb { grid-area: thumb; width: 2.6rem; height: 2.6rem; }
  .l-row .l-title { grid-area: title; }
  .l-row .ed-price { grid-area: price; }
  .l-row .bar-track { grid-area: bar; }
  .l-row .l-views { grid-area: views; }
  .p-row { grid-template-columns: 4.6rem minmax(0, 1fr) 3.4rem; }
  .p-row .bar-track { display: none; }
  .cover-logo { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) .bar-fill { transform: none; }
}

/* ---------- scroll progress ---------- */

.ed-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  pointer-events: none;
}
.ed-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(255, 240, 0, 0.5);
}

/* ---------- polish ---------- */

/* the template mixes 6% of the step colour into a light ground; on charcoal
   that reads as olive, so the tint is kept to a whisper here */
.a4a-section { background-color: color-mix(in srgb, var(--section-bg) 97%, var(--section-tint, transparent) 3%); }
.cover-title { text-transform: uppercase; font-size: clamp(3rem, 9.5vw, 6.2rem); }
.lead-sub { max-width: 62ch; margin: 1rem auto 0; line-height: 1.6; }
.article-card .tag.organic { background: transparent; }
.camp-step-static + .camp-step-static { margin-top: 2.2rem; }
.thanks-contact span, .thanks-contact a { white-space: nowrap; }

/* cut-outs are dark metal: a soft light pool behind them keeps edges readable */
.site-collage .collage-item {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 62%),
    var(--color-char-800);
}
.l-thumb { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 70%), var(--color-ink-950); }
#ed-market > .list-head { position: relative; z-index: 1; }
.cover-africa { opacity: 0.05; right: -10%; bottom: -20%; }

/* =====================================================================
   Equation slides (ed-enquiry … ed-reach): the signed-off R50 slide,
   repeated with a different sum and a small support row each.
   ===================================================================== */

.eq-slide { text-align: center; }
.eq-slide .sec-head { justify-content: center; }
.eq-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3.5vw, 3rem);
  flex-wrap: wrap;
}
.eq-split .lead-col { min-width: 0; }
.eq-op { min-width: 0.7em; }
.eq-slide .lead-total { font-size: clamp(4rem, 12vw, 9.5rem); }
.eq-slide .lead-sub { max-width: 60ch; }

.eq-support {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: clamp(1.6rem, 5vh, 3rem) auto 0;
}
.eq-support:empty { display: none; }
.eq-support > .list-head { color: var(--color-muted-foreground); text-align: center; }

/* enquiries per month: eight short columns */
.eq-months {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.2vw, 0.9rem);
  max-width: 720px;
  margin: 0 auto;
  align-items: end;
}
.eq-month { display: grid; grid-template-rows: auto 96px auto; gap: 0.35rem; justify-items: center; }
.eq-month-v {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-strong);
  font-variant-numeric: tabular-nums;
}
.eq-month-bar {
  align-self: end;
  width: 100%;
  height: var(--h);
  background: rgba(255, 240, 0, 0.55);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom center;
}
.eq-month.is-top .eq-month-bar { background: var(--color-primary); }
.eq-month.is-top .eq-month-v { color: var(--color-primary); }
.eq-month-m {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

/* product cut-outs in a row, each on a soft light pool */
.eq-products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
}
.eq-product {
  width: clamp(78px, 8.4vw, 124px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 65%),
    var(--color-char-800);
  border: 1px solid var(--color-line-700);
}
.eq-product img { width: 86%; height: 86%; object-fit: contain; }

/* before → with the campaign, per month */
.eq-lifts { max-width: 760px; margin: 0 auto; text-align: left; }
.eq-lift {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 7rem minmax(6rem, 1.4fr) 3.4rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-line-700);
}
.eq-lift:last-child { border-bottom: 0; }
.eq-lift-label { font-size: 0.9rem; color: var(--color-strong); }
.eq-lift-nums {
  font-family: var(--font-family-display);
  font-size: 0.95rem;
  color: var(--color-muted-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.eq-lift-nums b { color: var(--color-strong); font-weight: 800; }
.eq-lift-nums b.is-on { color: var(--color-primary); }
.eq-lift .bar-track { height: 10px; }
.eq-lift .bar-fill { background: var(--color-steel-400); z-index: 1; }
.eq-lift .bar-fill.is-on { background: var(--color-primary); z-index: 0; }
.eq-lift-x {
  font-family: var(--font-family-brush);
  font-size: 1.35rem;
  color: var(--color-primary);
  text-align: right;
}

/* countries */
.eq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; max-width: 860px; margin: 0 auto; }
.eq-support .market-badge { max-width: 640px; margin: 1.2rem auto 0; text-align: left; }

/* artwork strip keeps the template's posts-strip; left-aligned inside */
.eq-support .posts-strip { text-align: left; }

/* newsletter feature thumbs */
.eq-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
}
.eq-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line-700);
}
.eq-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* cover: the increase itself is the title */
.cover-title--brush {
  font-family: var(--font-family-brush);
  text-transform: none;
  color: var(--color-primary);
  font-size: clamp(4.4rem, 13vw, 8.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 0.4rem;
}
#ed-cover .cover-sub {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--color-strong);
}

@media (max-width: 860px) {
  .eq-months { gap: 0.3rem; }
  .eq-month { grid-template-rows: auto 72px auto; }
  .eq-month-v { font-size: 0.78rem; }
  .eq-lift { grid-template-columns: 1fr auto; grid-template-areas: 'label x' 'nums nums' 'bar bar'; gap: 0.35rem 0.8rem; }
  .eq-lift-label { grid-area: label; }
  .eq-lift-nums { grid-area: nums; }
  .eq-lift .bar-track { grid-area: bar; }
  .eq-lift-x { grid-area: x; }
  .eq-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.eq-support { max-width: 1200px; }
.eq-slide .lead-total-wrap > .lead-label { margin-top: 1.1rem; }
/* phones: the sum reads top to bottom, operator centred between the figures */
@media (max-width: 860px) {
  .eq-split { flex-direction: column; gap: 0.6rem; }
  .eq-split .lead-total-wrap { margin-top: 0.8rem; }
  .eq-op { transform: none; }
  .eq-op.is-arrow { transform: rotate(90deg); }
}
