/* =========================================================
   Innovis Crop Protection Limited — design system
   Palette anchored to the ICPL wordmark: petrol teal #0c576b
   with the leaf green #3eb54e and a prairie gold highlight.
   ========================================================= */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.15vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;

  --container: 76rem;
  --container-narrow: 46rem;

  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root,
[data-theme='light'] {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #eceae4;
  --surface-sunk: #e3e0d8;
  --ink: #10262e;
  --ink-muted: #4f6670;
  --ink-faint: #84969d;
  --ink-inverse: #f7f8f7;

  --primary: #0c576b;
  --primary-hover: #094150;
  --primary-deep: #072f3b;
  --primary-tint: #dfeaed;

  --leaf: #26893a;
  --leaf-hover: #1c6c2d;
  --leaf-tint: #e0efe2;

  --gold: #b07d0d;
  --gold-tint: #f2e9d3;

  --border: rgba(16, 38, 46, 0.13);
  --border-strong: rgba(16, 38, 46, 0.26);
  --shadow-sm: 0 1px 2px rgba(7, 47, 59, 0.06), 0 2px 8px rgba(7, 47, 59, 0.05);
  --shadow-md: 0 2px 4px rgba(7, 47, 59, 0.06), 0 12px 32px rgba(7, 47, 59, 0.09);
  --shadow-lg: 0 4px 8px rgba(7, 47, 59, 0.07), 0 28px 64px rgba(7, 47, 59, 0.13);
}

[data-theme='dark'] {
  --bg: #08181e;
  --surface: #0e242c;
  --surface-2: #133039;
  --surface-sunk: #061419;
  --ink: #e9eff0;
  --ink-muted: #a3b8be;
  --ink-faint: #6f8a92;
  --ink-inverse: #08181e;

  --primary: #4fb6cf;
  --primary-hover: #7ccadd;
  --primary-deep: #cfe9f0;
  --primary-tint: #123742;

  --leaf: #56c46b;
  --leaf-hover: #7ad48b;
  --leaf-tint: #12301c;

  --gold: #dfb352;
  --gold-tint: #2c2413;

  --border: rgba(233, 239, 240, 0.14);
  --border-strong: rgba(233, 239, 240, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.45), 0 30px 70px rgba(0, 0, 0, 0.55);
}

/* ---------------- Base ---------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-2xl);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
}
h4 {
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 0.18em;
  transition: color 0.18s var(--ease);
}
a:hover {
  color: var(--primary-hover);
}

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

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.15rem;
}
li {
  margin-bottom: var(--space-2);
}
li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2.5px solid var(--leaf);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--primary);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------- Layout primitives ---------------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 48rem) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

.wrap--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section--sunk {
  background: var(--surface-2);
}
.section--deep {
  background: var(--primary-deep);
  color: #e6f1f4;
}
.section--deep h2,
.section--deep h3 {
  color: #fff;
}
.section--deep .eyebrow {
  color: #9fd3e0;
}
.section--deep a {
  color: #b6e2ee;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip:focus {
  left: 0;
}

/* ---------------- Type helpers ---------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--leaf);
  flex: none;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 58ch;
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: var(--space-12);
}
.prose h3 {
  margin-top: var(--space-8);
}
.prose > :first-child {
  margin-top: 0;
}
.prose li {
  line-height: 1.6;
}

.muted {
  color: var(--ink-muted);
}
.small {
  font-size: var(--text-sm);
}
.xs {
  font-size: var(--text-xs);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.875rem;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease),
    color 0.18s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--leaf);
  color: #fff;
}
.btn--primary:hover {
  background: var(--leaf-hover);
  color: #fff;
}
[data-theme='dark'] .btn--primary {
  color: #05230e;
}

.btn--dark {
  background: var(--primary);
  color: #fff;
}
.btn--dark:hover {
  background: var(--primary-hover);
  color: #fff;
}
[data-theme='dark'] .btn--dark {
  color: #04222b;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.btn--onimage {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--onimage:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-deep);
  border-color: #fff;
}

.btn--sm {
  min-height: 2.375rem;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.textlink {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.textlink::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.textlink:hover::after {
  transform: translateX(4px);
}

/* ---------------- Header ---------------- */

.topbar {
  background: var(--primary-deep);
  color: #cfe6ec;
  font-size: var(--text-xs);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 2.25rem;
}
.topbar a {
  color: #e4f2f6;
  text-decoration: none;
}
.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}
.topbar__tag {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd3e0;
}
.topbar__links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 40rem) {
  .topbar__tag {
    display: none;
  }
  .topbar .wrap {
    justify-content: center;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
}
.brand__mark {
  height: 2rem;
  width: auto;
}
[data-theme='dark'] .brand__mark {
  filter: brightness(0) invert(1);
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
@media (min-width: 66rem) {
  .nav {
    display: flex;
  }
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav__link:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.nav__link[aria-current='page'] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--leaf);
}

.nav__group {
  position: relative;
}
.nav__toggle {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.nav__toggle:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.nav__toggle svg {
  width: 0.6rem;
  transition: transform 0.2s var(--ease);
}
.nav__group[data-open='true'] .nav__toggle svg {
  transform: rotate(180deg);
}
.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  display: none;
  z-index: 100;
}
.nav__group[data-open='true'] .nav__menu {
  display: block;
}
.nav__menu a {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.35;
}
.nav__menu a:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.nav__menu span {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.header__phone {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 78rem) {
  .header__phone {
    display: inline-block;
  }
}
.header__cta {
  display: none;
}
@media (min-width: 66rem) {
  .header__cta {
    display: inline-flex;
  }
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.menu-btn {
  display: inline-flex;
}
@media (min-width: 66rem) {
  .menu-btn {
    display: none;
  }
}
.theme-btn .icon-moon {
  display: none;
}
[data-theme='dark'] .theme-btn .icon-moon {
  display: block;
}
[data-theme='dark'] .theme-btn .icon-sun {
  display: none;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.drawer[data-open='true'] {
  display: block;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 31, 0.55);
  backdrop-filter: blur(2px);
}
.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(22rem, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: var(--space-5);
  overflow-y: auto;
  animation: slidein 0.28s var(--ease);
}
@keyframes slidein {
  from {
    transform: translateX(100%);
  }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.drawer__panel a {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.drawer__panel a:hover {
  color: var(--primary);
}
.drawer__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin: var(--space-6) 0 var(--space-1);
  font-family: var(--font-display);
  font-weight: 700;
}
.drawer__cta {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.drawer__cta .btn {
  width: 100%;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media .ph {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(6, 40, 50, 0.94) 0%,
    rgba(6, 40, 50, 0.82) 42%,
    rgba(6, 40, 50, 0.44) 100%
  );
}
.hero__inner {
  padding-block: clamp(var(--space-16), 11vw, var(--space-32));
  max-width: 46rem;
}
.hero h1 {
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--space-5);
}
.hero .eyebrow {
  color: #a8dbe7;
}
.hero p {
  color: #d5e6ea;
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 42ch;
}
.hero .btn-row {
  margin-top: var(--space-8);
}

.hero--page .hero__inner {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
  max-width: 52rem;
}
.hero--page h1 {
  font-size: var(--text-2xl);
}

/* Stat band */
.statband {
  background: var(--primary);
  color: #fff;
}
.statband__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-8);
  padding-block: var(--space-8);
}
@media (min-width: 56rem) {
  .statband__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.stat__label {
  font-size: var(--text-xs);
  color: #bfdde5;
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* ---------------- Placeholder image blocks ---------------- */

.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 11px,
    color-mix(in srgb, var(--primary) 9%, transparent) 11px 12px
  );
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 12rem;
  color: var(--ink-muted);
}
.ph__tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-top: 1px solid var(--border);
  width: 100%;
  backdrop-filter: blur(4px);
}
.ph__tag b {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.hero__media .ph__tag {
  background: rgba(6, 40, 50, 0.55);
  color: #cfe6ec;
  border-top-color: rgba(255, 255, 255, 0.2);
}
.hero__media .ph__tag b {
  color: #9fd3e0;
}
.ph--tall {
  min-height: 26rem;
}
.ph--wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.ph--square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}
.ph--portrait {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

/* ---------------- Cards & grids ---------------- */

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 62rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 58rem) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--wide-left {
    grid-template-columns: 1.35fr 0.65fr;
  }
  .split--media-first > .split__media {
    order: -1;
  }
}
.split__body h2 {
  margin-bottom: var(--space-5);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card--flat {
  box-shadow: none;
}
.card h3 {
  margin-bottom: var(--space-3);
}
.card p:last-child {
  margin-bottom: 0;
}

/* Product cards */
.prod {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.prod:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: var(--ink);
}
.prod__shot {
  background: var(--surface-2);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
}
.prod__shot img {
  max-height: 9rem;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-theme='dark'] .prod__shot img {
  mix-blend-mode: normal;
}
.prod__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-3);
}
.prod__body h3 {
  margin: 0;
  font-size: var(--text-lg);
}
.prod__meta {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  font-weight: 600;
}
.prod__body p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0;
}
.prod__more {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--primary);
}

.prod--feature {
  border-color: var(--primary);
  border-width: 1.5px;
}
@media (min-width: 62rem) {
  .prodgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
  .prodgrid .prod--feature {
    grid-column: span 3;
    flex-direction: row;
  }
  .prodgrid .prod--feature .prod__shot {
    width: 34%;
    flex: none;
  }
  .prodgrid .prod--feature .prod__shot img {
    max-height: 16rem;
  }
  .prodgrid .prod--feature .prod__body {
    padding: var(--space-10);
    justify-content: center;
  }
  .prodgrid .prod--feature .prod__body h3 {
    font-size: var(--text-xl);
  }
  .prodgrid .prod--feature .prod__body p {
    font-size: var(--text-base);
    max-width: 52ch;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--leaf-tint);
  color: var(--leaf-hover);
  align-self: flex-start;
}
[data-theme='dark'] .badge {
  color: var(--leaf);
}
.badge--gold {
  background: var(--gold-tint);
  color: var(--gold);
}
.badge--teal {
  background: var(--primary-tint);
  color: var(--primary);
}

/* Spec list */
.spec {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 0;
}
.spec > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 40rem) {
  .spec > div {
    grid-template-columns: 12rem 1fr;
    gap: var(--space-6);
  }
}
.spec dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
}
.spec dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.6;
}
.spec dd ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Numbered steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
  display: grid;
  gap: 0;
}
.steps > li {
  counter-increment: s;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
@media (min-width: 46rem) {
  .steps > li {
    grid-template-columns: 4rem 1fr;
    gap: var(--space-8);
    padding: var(--space-8) 0;
  }
}
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--leaf);
  letter-spacing: -0.02em;
}
.steps h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}
.steps p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* Quotes */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}
.quote blockquote {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
}
.quote--lead blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--leaf);
  height: 1.4rem;
}
.quote__who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.quote__who .ph {
  width: 3.25rem;
  height: 3.25rem;
  min-height: 0;
  border-radius: 999px;
  flex: none;
}
.quote__who .ph .ph__tag {
  display: none;
}
.quote__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.3;
}
.quote__where {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Pull quote */
.pull {
  border-left: 3px solid var(--leaf);
  padding-left: var(--space-6);
  margin: var(--space-10) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.pull cite {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  font-style: normal;
  color: var(--ink-muted);
  margin-top: var(--space-3);
  letter-spacing: 0;
}

/* Team */
.person {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 46rem) {
  .person {
    grid-template-columns: 15rem 1fr;
    gap: var(--space-10);
    align-items: start;
  }
}
.person__role {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leaf);
  margin-bottom: var(--space-2);
}
.person h3 {
  margin-bottom: var(--space-3);
}
.person p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* ---------------- Forms ---------------- */

.form {
  display: grid;
  gap: var(--space-6);
}
.form fieldset {
  border: 0;
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
}
.form legend {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  padding: 0 var(--space-3) 0 0;
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 40rem) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .field-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.req {
  color: var(--leaf);
}
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-height: 2.875rem;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.55;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-faint);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234f6670' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 0.6rem;
  padding-right: var(--space-10);
}
.checks {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 40rem) {
  .checks--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.45;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.check:hover {
  border-color: var(--border-strong);
}
.check input {
  margin: 0.15rem 0 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--leaf);
  flex: none;
}
.check:has(input:checked) {
  border-color: var(--leaf);
  background: var(--leaf-tint);
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}
.form__note {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  max-width: 44ch;
}
.formnotice {
  background: var(--gold-tint);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink);
}
.formnotice b {
  font-family: var(--font-display);
}

/* ---------------- Retailer directory ---------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}
.filters .field {
  min-width: 12rem;
  flex: 1 1 12rem;
}
.filters__count {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 600;
  padding-bottom: var(--space-3);
}

.retailers {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 50rem) {
  .retailers {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 72rem) {
  .retailers {
    grid-template-columns: repeat(3, 1fr);
  }
}
.retailer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.retailer h3 {
  font-size: var(--text-base);
  margin: 0;
}
.retailer__loc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.retailer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.tag {
  font-size: 0.6875rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
}
.retailer__contact {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}
.empty {
  padding: var(--space-12);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* ---------------- FAQ / accordion ---------------- */

.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  position: relative;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--leaf);
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq summary:hover {
  color: var(--primary);
}
.faq__a {
  padding: 0 var(--space-10) var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 72ch;
}
.faq__a p:last-child {
  margin-bottom: 0;
}

/* ---------------- Answer block (AEO) ---------------- */

.answer {
  background: var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
[data-theme='dark'] .answer {
  background: var(--surface-2);
}
.answer__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.answer p {
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 74ch;
}

/* ---------------- Tables ---------------- */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 34rem;
}
th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--surface-2);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------------- Resource links ---------------- */

.reslist {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 50rem) {
  .reslist {
    grid-template-columns: repeat(2, 1fr);
  }
}
.res {
  display: block;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.res:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--ink);
}
.res strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  display: block;
  margin-bottom: var(--space-1);
  color: var(--primary);
}
.res span {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  display: block;
}
.res em {
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--ink-faint);
  display: block;
  margin-top: var(--space-2);
  word-break: break-word;
}

/* ---------------- Dual CTA ---------------- */

.dual {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 50rem) {
  .dual {
    grid-template-columns: 1fr 1fr;
  }
}
.dual__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.dual__card h3 {
  margin: 0;
}
.dual__card p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.dual__card ul {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0;
  padding-left: 1.1rem;
}
.dual__card .btn {
  align-self: flex-start;
  margin-top: auto;
}
.section--deep .dual__card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.section--deep .dual__card p,
.section--deep .dual__card ul {
  color: #c8dfe5;
}

/* ---------------- Breadcrumbs ---------------- */

.crumbs {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  padding-top: var(--space-5);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.crumbs li {
  margin: 0;
}
.crumbs li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--ink-faint);
}
.crumbs a {
  text-decoration: none;
}

/* ---------------- Footer ---------------- */

.footer {
  background: var(--primary-deep);
  color: #c5dde3;
  font-size: var(--text-sm);
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 52rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8fc9d8;
  margin-bottom: var(--space-4);
}
.footer a {
  color: #dcecf0;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.footer li {
  margin: 0;
}
.footer__mark {
  height: 2rem;
  width: auto;
  margin-bottom: var(--space-5);
  filter: brightness(0) invert(1);
}
.footer__about {
  max-width: 34ch;
  color: #a9c9d1;
}
.footer__legal {
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #8fadb6;
}
.footer__tm {
  max-width: 90ch;
  line-height: 1.55;
}

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- utilities added post-build */
.stat {
  min-width: 0;
}

.stat__num--tbd {
  font-size: var(--text-xl);
  letter-spacing: 0.08em;
  color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hero placeholder note: compact, tucked bottom-right so it never fights the headline */
.hero__media .ph {
  justify-content: flex-end;
  align-items: flex-end;
}
.hero__media .ph__tag {
  width: auto;
  max-width: 22rem;
  margin: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
}
@media (max-width: 48rem) {
  .hero__media .ph__tag {
    max-width: none;
    margin: var(--space-4);
  }
}

/* The [hidden] attribute must win over component display rules (grid/flex cards) */
[hidden] {
  display: none !important;
}

/* Keep inputs on the same baseline when a sibling label wraps to two lines */
.field-row {
  align-items: end;
}
.field-row .field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.field-row .field label {
  margin-top: auto;
}

/* Hero placeholder note must not inherit the hero's large body type */
.hero .ph__tag,
.hero__media .ph__tag {
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: none;
}
.hero .ph__tag b {
  font-size: 0.6875rem;
}

/* Dark theme: lift top-bar contrast */
[data-theme='dark'] .topbar {
  background: #061e26;
  color: #dcecf1;
}
[data-theme='dark'] .topbar__tag {
  color: #b6dfe9;
}
[data-theme='dark'] .topbar a {
  color: #f0f8fa;
}

/* Mobile drawer: keep grouped and ungrouped links visually distinct */
.drawer__group + .drawer__group {
  margin-top: var(--space-6);
}
.drawer__group a:last-child {
  border-bottom: 0;
}

/* Mobile: reserve room under the hero copy for the image placeholder note */
@media (max-width: 48rem) {
  .hero__media .ph {
    align-items: flex-end;
  }
  .hero__media .ph__tag {
    margin: var(--space-3);
  }
  /* Only heroes that actually carry a placeholder note reserve the extra room */
  .hero:has(.hero__media) .hero__inner {
    padding-bottom: calc(var(--space-16) + 6.5rem);
  }
  .hero--page:has(.hero__media) .hero__inner {
    padding-bottom: calc(var(--space-12) + 6rem);
  }
}


/* ---- Post-QA fixes: product page + testimonials ---- */
/* Sidebar spec list must not be vertically centred against a shorter body */
.split--wide-left {
  align-items: start;
}
/* Keep spec label/value stacked inside the narrow sidebar column */
.split__media .spec > div {
  grid-template-columns: 1fr;
  gap: var(--space-1);
}
/* Lead testimonial spans the full grid row so type sizes never clash side by side */
@media (min-width: 52rem) {
  .grid--2 > .quote--lead {
    grid-column: 1 / -1;
  }
}

/* ---- Real portrait images (team, testimonials) ---- */
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* A lone quote in a two-up grid should fill the row rather than leave a gap */
@media (min-width: 52rem) {
  .grid--2 > .quote:only-child {
    grid-column: 1 / -1;
  }
}

/* Team portraits: keep the image from dominating the phone viewport */
@media (max-width: 48rem) {
  .person .portrait {
    max-width: 17rem;
  }
}

/* A long featured quote at display size runs very tall on a phone */
@media (max-width: 48rem) {
  .quote--lead blockquote {
    font-size: var(--text-base);
    line-height: 1.55;
    letter-spacing: -0.005em;
  }
}

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

/* Let data tables scroll inside their wrapper instead of widening the page on phones */
.split > *,
.split__body,
.split__media,
.prose {
  min-width: 0;
}
.tablewrap table {
  min-width: 22rem;
}
@media (max-width: 40rem) {
  .tablewrap th,
  .tablewrap td {
    padding: var(--space-2) var(--space-3);
  }
}

/* ---------------- Real photos ---------------- */
.photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.ph--wide { aspect-ratio: 16 / 9; }
.photo.ph--43 { aspect-ratio: 4 / 3; }
.photo.ph--portrait { aspect-ratio: 4 / 5; }

/* Testimonial cards with a photo */
.quote--photo {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.quote__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
}
.quote--photo .quote__body {
  padding: clamp(var(--space-6), 3vw, var(--space-10));
}
.quote__photo {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.quote__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 52rem) {
  .quote--lead.quote--photo {
    flex-direction: row;
  }
  .quote--lead.quote--photo .quote__photo {
    flex: 0 0 38%;
    aspect-ratio: auto;
  }
}
.quote__photo picture { display: block; width: 100%; height: 100%; }
@media (min-width: 52rem) {
  .quote--lead.quote--photo .quote__photo img { object-position: 50% 30%; }
}
@media (min-width: 52rem) {
  .quote--lead.quote--photo .quote__photo { min-width: 0; overflow: hidden; }
  .quote--lead.quote--photo .quote__body { min-width: 0; }
}
.split__media .tablewrap table { min-width: 0; }
.split__media .tablewrap th { white-space: normal; }
.split__media .tablewrap td { white-space: nowrap; }
.split__media .tablewrap th, .split__media .tablewrap td { padding: var(--space-2) var(--space-3); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--photo::after {
  background: linear-gradient(100deg, rgba(6, 40, 50, 0.92) 0%, rgba(6, 40, 50, 0.74) 45%, rgba(6, 40, 50, 0.28) 100%);
}
@media (max-width: 40rem) {
  .hero--photo::after { background: rgba(6, 40, 50, 0.78); }
}
.hero .eyebrow { max-width: none; }
/* Header: longer CTA label, so the full nav waits for wider screens */
.header__cta { white-space: nowrap; }
@media (min-width: 48rem) { .header__cta { display: inline-flex; } }
/* Nav always shows from 66rem; the CTA uses a short label until there is room for the full one */
.header__cta .cta-long { display: none; }
@media (max-width: 65.99rem) { .header__cta .cta-long { display: inline; } }
@media (min-width: 84rem) { .header__cta .cta-long { display: inline; } }
@media (min-width: 78rem) { .header__phone { display: none; } }
@media (min-width: 100rem) { .header__phone { display: inline-block; } }
@media (min-width: 66rem) { .header__phone { display: none !important; } }
@media (min-width: 84rem) { .nav__link { padding-inline: var(--space-2); } }
@media (min-width: 84rem) {
  .header .wrap.header__inner { max-width: 86rem; }
  .nav { gap: 0; }
}
@media (min-width: 66rem) and (max-width: 74.99rem) { .header__cta { display: none; } }
.header__cta { gap: 0; }
@media (min-width: 62rem) {
  .statband__grid:has(> .stat:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.challenge-intro { display: grid; gap: var(--space-8); align-items: center; }
.challenge-logo { width: min(100%, 22rem); height: auto; margin-inline: auto; }
@media (min-width: 52rem) { .challenge-intro { grid-template-columns: 20rem 1fr; } .challenge-logo { width: 100%; } }
[data-theme='dark'] .challenge-logo { background: #fff; border-radius: var(--radius-lg); padding: var(--space-4); }
/* 280 Challenge phases + galleries */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2, #e8e6e1); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phase { display: grid; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.phase:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 62rem) { .phase { grid-template-columns: 18rem 1fr; gap: var(--space-10); align-items: start; } }
.phase__num { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin: 0 0 var(--space-2); }
.phase__head h3 { margin: 0 0 var(--space-3); }
.challenge-map { width: 100%; height: auto; border-radius: var(--radius-lg); }
@media (max-width: 47.99rem) {
  .phase .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-5); gap: var(--space-3); margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); scrollbar-width: none; }
  .phase .gallery::-webkit-scrollbar { display: none; }
  .phase .gallery figure { flex: 0 0 72%; scroll-snap-align: start; }
}
/* social icons */
.social { list-style: none; display: flex; gap: var(--space-2); padding: 0; margin: var(--space-5) 0 0; }
.social li { margin: 0; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; transition: background-color .2s, color .2s; }
.social--footer a { color: #fff; background: rgba(255,255,255,.1); }
.social--footer a:hover, .social--footer a:focus-visible { background: #3eb54e; color: #fff; }
.social--card a { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.social--card a:hover, .social--card a:focus-visible { background: var(--primary); color: #fff; }
.footer ul.social { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
.footer ul.social li { margin: 0; padding: 0; }

/* Phase galleries: match the deck's row of 4 on desktop */
@media (min-width: 48rem) { .phase .gallery--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .phase .gallery--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } }

/* Form spam trap (hidden from people) and send status */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnotice--ok { border-color: #3eb54e; background: color-mix(in srgb, #3eb54e 10%, transparent); }
.formnotice--err { border-color: #c0392b; background: color-mix(in srgb, #c0392b 8%, transparent); }
