/* ==========================================================================
   Shamba Super Intelligence — public website (shamba.si)
   Design system: tokens → base → layout → components → pages → utilities
   ========================================================================== */

/* ---- Fonts (self-hosted: no third-party requests from a visitor's browser) */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist/geist-latin-wght-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-mono/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Brand green. 700 is the primary (buttons, links): AA on white. */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  /* Cool neutrals */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --gray-950: #09090b;
  /* Dark surfaces: deep forest under orange contour lines */
  --night: #0b2e1f;
  --night-deep: #072217;
  --night-card: #0f3826;
  --night-line: rgb(255 255 255 / 0.1);
  --orange-400: #fbbf24;
  --orange-500: #f5a524;
  --on-orange: #1c1204;
  --contours: url(/img/contours-dark.svg) center / cover no-repeat;
  /* Status and feedback */
  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  /* One family, Geist, for headings and text; Geist Mono for data labels. */
  --font-display: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;
  --font-sans: var(--font-display);
  --font-mono: 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--2: 0.78rem;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: clamp(1.075rem, 1.03rem + 0.25vw, 1.2rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-4: clamp(2rem, 1.5rem + 2.3vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);

  --radius-sm: 3px;
  --radius: 3px;
  --radius-lg: 3px;
  --radius-xl: 3px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px rgb(0 0 0 / 0.05), 0 8px 24px -12px rgb(0 0 0 / 0.12);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / 0.04), 0 32px 64px -24px rgb(0 0 0 / 0.22);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--gray-950);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
  letter-spacing: -0.04em;
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h4 {
  font-size: var(--step-1);
  line-height: 1.3;
}
/* Emphasis in headlines is a colour change only. */
/* Emphasis in headlines is a colour change only. */
/* Two-tone headlines: the second phrase steps back in grey. Never italic. */
h1 em,
h2 em {
  font-style: normal;
  color: var(--gray-500);
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--green-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--night);
}
ul,
ol {
  margin: 0;
  padding: 0;
}
strong {
  font-weight: 700;
  color: var(--gray-950);
}
::selection {
  background: var(--green-200);
  color: var(--gray-950);
}
:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: 860px;
}
.section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.section--sand {
  background: var(--gray-50);
}
.section--white {
  background: var(--white);
}
.section--dark {
  background: var(--contours), var(--night);
  color: rgb(255 255 255 / 0.68);
}
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong {
  color: var(--white);
}
.section--dark h2 em {
  color: rgb(255 255 255 / 0.5);
}
.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 + p,
.section-head .lead {
  margin-top: 1.1rem;
}
.section-head--split {
  display: grid;
  max-width: none;
  gap: 1.5rem 3rem;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.lead {
  color: var(--gray-600);
  font-size: var(--step-1);
  line-height: 1.6;
}
.section--dark .lead {
  color: rgb(255 255 255 / 0.68);
}
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--media {
    grid-template-columns: 1.25fr 0.95fr;
  }
  .split--reverse > :first-child {
    order: 2;
  }
  .split--wide-text {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.stack > * + * {
  margin-top: 1rem;
}
.stack-lg > * + * {
  margin-top: 1.75rem;
}

/* ---- Buttons & links ----------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}
.btn:hover .icon--arrow {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 1px 2px rgb(0 0 0 / 0.1);
}
.btn--primary:hover {
  background: var(--green-800);
  color: var(--white);
}
/* The call to action: brand green on light surfaces, orange on dark ones. */
.btn--gold {
  background: var(--green-700);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 1px 2px rgb(0 0 0 / 0.1);
}
.btn--gold:hover {
  background: var(--green-800);
  color: var(--white);
}
:is(.hero, .page-hero, .section--dark, .cta-band) :is(.btn--gold, .btn--primary) {
  background: var(--orange-500);
  color: var(--on-orange);
  box-shadow: none;
}
:is(.hero, .page-hero, .section--dark, .cta-band) :is(.btn--gold, .btn--primary):hover {
  background: var(--orange-400);
  color: var(--on-orange);
}
.btn--ghost {
  border-color: var(--gray-200);
  background: var(--white);
  color: var(--gray-950);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  color: var(--gray-950);
}
/* Outline button for dark surfaces. */
.btn--light,
:is(.hero, .page-hero) .btn--ghost {
  border-color: rgb(255 255 255 / 0.22);
  background: transparent;
  color: var(--white);
  box-shadow: none;
}
.btn--light:hover,
:is(.hero, .page-hero) .btn--ghost:hover {
  border-color: rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
}
.btn--lg {
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}
.btn--sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}
.btn--block {
  width: 100%;
}
.btn[aria-busy='true'] {
  color: transparent !important;
  pointer-events: none;
}
.btn[aria-busy='true']::after {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--white);
  border-right-color: transparent;
  border-radius: 50%;
  content: '';
  animation: spin 0.7s linear infinite;
}
.btn--gold[aria-busy='true']::after {
  border-color: var(--gray-950);
  border-right-color: transparent;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-800);
  font-weight: 650;
  text-decoration: none;
}
.link-arrow .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}
.section--dark .link-arrow {
  color: var(--orange-400);
}

/* ---- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--white);
  font-weight: 650;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---- Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
  background: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
}
.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.95);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gray-950);
  text-decoration: none;
}
.brand__mark {
  width: 42px;
  height: 42px;
}
.brand__text {
  display: grid;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand__name span {
  color: var(--green-500);
}
.brand__tag {
  margin-top: 0.3rem;
  color: var(--green-700);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav {
  display: none;
  margin-inline: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav__item {
  position: static;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--gray-600);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.nav__link:hover,
.nav__item.is-open > .nav__link,
.nav__link[aria-current='page'] {
  background: var(--gray-50);
  color: var(--gray-950);
}
.nav__link .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.2s var(--ease);
}
.nav__item.is-open > .nav__link .icon {
  transform: rotate(180deg);
}
.nav__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
}
.nav__item.is-open > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__panel--mega {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0.75rem;
  width: min(940px, calc(100vw - 2rem));
}
.nav__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--gray-200);
  font-size: var(--step--1);
}
.nav__intro strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.2;
}
.nav__intro .link-arrow {
  margin-top: auto;
  color: var(--green-400);
}
.nav__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  list-style: none;
}
.nav__panel:not(.nav__panel--mega) .nav__links {
  grid-template-columns: 1fr 1fr;
  width: min(560px, calc(100vw - 2rem));
}
.nav-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  color: var(--gray-800);
  text-decoration: none;
  transition: background-color 0.15s;
}
.nav-card:hover {
  background: var(--white);
  color: var(--gray-950);
}
.nav-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--green-50);
  color: var(--green-700);
}
.nav-card__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.nav-card__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.3;
}
.nav-card__desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--gray-500);
  font-size: 0.8rem;
  line-height: 1.4;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.header-actions .btn--ghost {
  display: none;
}
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-950);
  cursor: pointer;
}
.menu-toggle .icon--close {
  display: none;
}
.menu-open .menu-toggle .icon--menu {
  display: none;
}
.menu-open .menu-toggle .icon--close {
  display: block;
}
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem var(--gutter) 3rem;
  background: var(--white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s;
}
.menu-open .mobile-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.menu-open {
  overflow: hidden;
}
.mobile-nav details {
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav summary,
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  color: var(--gray-950);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav details[open] summary .icon {
  transform: rotate(180deg);
}
.mobile-nav__top {
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav ul {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  list-style: none;
}
.mobile-nav ul a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.25rem;
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav ul .icon {
  color: var(--green-700);
}
.mobile-nav .actions {
  margin-top: 1.75rem;
}
.mobile-nav .btn {
  flex: 1 1 100%;
}
@media (min-width: 1120px) {
  .nav {
    display: block;
  }
  .menu-toggle,
  .mobile-nav {
    display: none;
  }
  .header-actions {
    margin-left: 0;
  }
  .header-actions .btn--ghost {
    display: inline-flex;
  }
}
@media (max-width: 520px) {
  .header-actions .btn--primary {
    display: none;
  }
  .brand__tag {
    display: none;
  }
}

/* ---- Hero (home) --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--contours), var(--night);
  color: rgb(255 255 255 / 0.72);
  text-align: center;
}
.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: clamp(110px, 22%, 260px);
  background: var(--gray-50);
  content: '';
}
.hero__inner,
.hero .showcase {
  position: relative;
  z-index: 1;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  max-width: 18ch;
  width: 100%;
  color: var(--white);
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero .lead {
  max-width: 660px;
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 0.72);
  font-size: var(--step-1);
}
.hero .actions {
  justify-content: center;
  margin-top: 2.25rem;
}
.showcase {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 1rem;
}
.hero .shot {
  max-width: 1120px;
  margin-inline: auto;
}
.shot--hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

/* ---- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  background: var(--contours), var(--night);
  color: rgb(255 255 255 / 0.72);
  text-align: center;
}
.page-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .page-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.page-hero h1 {
  max-width: 24ch;
  margin-inline: auto;
  color: var(--white);
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.page-hero h1 em {
  color: rgb(255 255 255 / 0.5);
}
.page-hero .lead {
  max-width: 720px;
  margin-inline: auto;
  margin-top: 1.25rem;
  color: rgb(255 255 255 / 0.72);
}
.page-hero .lead a {
  color: var(--orange-400);
}
.page-hero .actions {
  margin-top: 2rem;
}
.page-hero .actions,
.page-hero .breadcrumb,
.page-hero .article-meta {
  justify-content: center;
}
@media (min-width: 1000px) {
  .page-hero__grid {
    text-align: left;
  }
  .page-hero__grid h1 {
    max-width: 18ch;
  }
  .page-hero__grid h1,
  .page-hero__grid .lead {
    margin-inline: 0;
  }
  .page-hero__grid .actions,
  .page-hero__grid .breadcrumb {
    justify-content: flex-start;
  }
}
.page-hero .status-legend {
  color: rgb(255 255 255 / 0.7);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: rgb(255 255 255 / 0.55);
  font-size: 0.875rem;
  list-style: none;
}
.breadcrumb li + li::before {
  margin-right: 0.4rem;
  color: rgb(255 255 255 / 0.3);
  content: '/';
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--white);
}
.page-hero .article-meta {
  color: rgb(255 255 255 / 0.6);
}
.page-hero .success-mark {
  margin-inline: auto;
  box-shadow: 0 0 0 10px rgb(74 222 128 / 0.15);
}
.page-hero .reference {
  border-color: rgb(245 165 36 / 0.6);
  background: rgb(255 255 255 / 0.04);
}
.page-hero .reference small {
  color: rgb(255 255 255 / 0.6);
}
.page-hero .reference b {
  color: var(--orange-400);
}
.page-hero .muted {
  color: rgb(255 255 255 / 0.6);
}

/* ---- Fact strip ---------------------------------------------------------- */
.factstrip {
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.factstrip ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  list-style: none;
}
.factstrip li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem 2.25rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.factstrip li + li {
  border-left: 0;
}
@media (max-width: 760px) {
  .factstrip li {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
}
.factstrip .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--green-600);
}

/* ---- Cards --------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.4rem, 2.2vw, 1.75rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--gray-600);
  font-size: 0.925rem;
  line-height: 1.6;
}
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.card--link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
}
.card--link:hover {
  border-color: var(--gray-300);
  color: inherit;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card--link .link-arrow {
  margin-top: auto;
  padding-top: 0.4rem;
}
.card--sand {
  background: var(--gray-50);
}
.card--dark {
  border-color: var(--night-line);
  background: var(--night-card);
}
.card--dark p {
  color: rgb(255 255 255 / 0.65);
}
.card--dark h3 {
  color: var(--white);
}
.chip-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--green-700);
}
.chip-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.chip-icon--dark {
  border-color: var(--night-line);
  background: rgb(255 255 255 / 0.05);
  box-shadow: none;
  color: var(--orange-400);
}
.chip-icon--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.chip-icon--sm .icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* ---- Status pills -------------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.status::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  content: '';
}
.status--available {
  background: var(--green-50);
  color: var(--green-800);
}
.status--available::before {
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgb(42 157 92 / 0.2);
}
.status--building {
  background: var(--amber-50);
  color: var(--amber-700);
}
.status--building::before {
  background: var(--amber-500);
}
.status--roadmap {
  background: var(--blue-50);
  color: var(--blue-700);
}
.status--roadmap::before {
  background: var(--blue-600);
}
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  color: var(--gray-500);
  font-size: var(--step--1);
}
.status-legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
}

/* ---- Bento (home capabilities) ------------------------------------------ */
.bento {
  display: grid;
  gap: clamp(1rem, 2vw, 1.25rem);
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento__feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento__wide {
    grid-column: span 2;
  }
}
.bento__feature {
  justify-content: space-between;
  min-height: 420px;
  border: 0;
  background: var(--contours), var(--night);
  color: rgb(255 255 255 / 0.68);
}
.bento__feature h3 {
  color: var(--white);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.bento__feature p {
  max-width: 460px;
  color: rgb(255 255 255 / 0.68);
  font-size: 1rem;
}
.bento__feature .link-arrow {
  color: var(--orange-400);
}

/* ---- Steps --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
  list-style: none;
}
.steps li {
  position: relative;
  padding-top: 1.4rem;
  border-top: 2px solid var(--gray-300);
  counter-increment: step;
}
.steps li::before {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  content: '0' counter(step);
}
.steps h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.steps p {
  margin-top: 0.5rem;
  color: var(--gray-600);
  font-size: var(--step--1);
}
.section--dark .steps li {
  border-top-color: rgb(251 248 241 / 0.18);
}
.section--dark .steps li::before {
  color: var(--green-200);
}
.section--dark .steps p {
  color: var(--gray-300);
}

/* ---- Feature list -------------------------------------------------------- */
.checklist {
  display: grid;
  gap: 0.8rem;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.checklist li::before {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--green-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f432b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.85rem no-repeat;
  content: '';
}
.section--dark .checklist li::before {
  background-color: rgb(79 184 122 / 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fb87a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-row h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.feature-row p {
  margin-top: 0.3rem;
  color: var(--gray-600);
  font-size: var(--step--1);
}
.section--dark .feature-row p {
  color: var(--gray-300);
}

/* ---- Stats --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-200);
}
.stat {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--white);
}
.stat__value {
  display: block;
  color: var(--gray-950);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat__value small {
  font-size: 0.45em;
  letter-spacing: 0;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  color: var(--gray-600);
  font-size: var(--step--1);
  line-height: 1.45;
}
.section--dark .stats {
  border-color: rgb(251 248 241 / 0.12);
  background: rgb(251 248 241 / 0.12);
}
.section--dark .stat {
  background: var(--night);
}
.section--dark .stat__value {
  color: var(--white);
}
.section--dark .stat__label {
  color: var(--gray-300);
}

/* ---- Quote --------------------------------------------------------------- */
.pullquote {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 3px solid var(--green-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}
.pullquote p {
  color: var(--gray-950);
  font-size: var(--step-1);
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.pullquote p::before {
  content: '“';
}
.pullquote p::after {
  content: '”';
}
.pullquote footer {
  margin-top: 0.9rem;
  color: var(--gray-500);
  font-size: var(--step--1);
  font-weight: 500;
}

/* ---- Principles (numbered dark list) ------------------------------------ */
.principles {
  display: grid;
  gap: 1rem;
  counter-reset: principle;
  list-style: none;
}
.principles li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  counter-increment: principle;
}
.principles li::before {
  color: var(--amber-600);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  content: counter(principle, decimal-leading-zero);
}

/* ---- Specs --------------------------------------------------------------- */
.specs {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--gray-300);
}
.specs > div {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-300);
}
@media (min-width: 640px) {
  .specs > div {
    grid-template-columns: 200px 1fr;
  }
}
.specs dt {
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.specs dd {
  margin: 0;
  color: var(--gray-950);
  font-weight: 600;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-xl);
  background: var(--contours), var(--night);
  color: rgb(255 255 255 / 0.68);
}
.cta-band__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band__grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .cta-band__grid .actions {
    justify-content: flex-end;
  }
}
.cta-band h2 {
  color: var(--white);
  font-size: var(--step-4);
}
.cta-band h2 em {
  color: rgb(255 255 255 / 0.5);
}
.cta-band p {
  max-width: 560px;
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.7);
  font-size: var(--step-1);
}

/* ---- Audience tiles ------------------------------------------------------ */
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 240px;
  padding: 1.75rem;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  background: var(--night-card);
  color: var(--gray-400);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.tile:hover {
  border-color: rgb(245 165 36 / 0.45);
  color: var(--gray-300);
  transform: translateY(-2px);
}
.tile h3 {
  color: var(--white);
  font-size: var(--step-1);
  font-weight: 600;
}
.tile p {
  color: rgb(255 255 255 / 0.65);
  font-size: 0.925rem;
}
.tile .link-arrow {
  margin-top: auto;
  color: var(--orange-400);
}

/* ---- Mockups (illustrations built in HTML/SVG) -------------------------- */
.visual {
  position: relative;
}
.visual__note {
  margin-top: 1rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
:is(.page-hero, .section--dark) .visual__note {
  color: rgb(255 255 255 / 0.55);
}
.mock {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.mock__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-950);
  font-size: 0.82rem;
  font-weight: 650;
}
.mock__dots {
  display: flex;
  gap: 0.35rem;
}
.mock__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}
.mock__bar .status {
  margin-left: auto;
}
.mock__body {
  padding: 1.1rem;
}
.device-diagram {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Product screenshots ------------------------------------------------ */
.shot {
  margin: 0;
}
.shot__frame {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
:is(.page-hero, .section--dark, .hero) .shot__frame {
  border-color: rgb(255 255 255 / 0.18);
  box-shadow:
    0 40px 80px -30px rgb(0 0 0 / 0.55),
    0 0 0 6px rgb(255 255 255 / 0.04);
}
.shot__bar {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  height: 34px;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.shot__bar span {
  overflow: hidden;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 0.85rem;
  color: var(--gray-500);
  font-size: 0.78rem;
  text-align: center;
}
:is(.page-hero, .section--dark) .shot figcaption {
  color: rgb(255 255 255 / 0.55);
}
.shot--narrow {
  max-width: 380px;
  margin-inline: auto;
}

/* ---- Platform gallery (home) -------------------------------------------- */
.gallery {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(12, 1fr);
  }
  .gallery__item--7 {
    grid-column: span 7;
  }
  .gallery__item--5 {
    grid-column: span 5;
  }
  .gallery__item--6 {
    grid-column: span 6;
  }
}
.gallery__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.gallery__item:hover {
  border-color: var(--gray-300);
  color: inherit;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.gallery__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.gallery__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.gallery__media--contain {
  position: relative;
}
.gallery__media--contain img {
  position: absolute;
  inset: 1.25rem;
  width: auto;
  max-width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  margin: auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: var(--shadow);
  object-fit: contain;
}
.gallery__body {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.4rem 1.4rem;
}
.gallery__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.gallery__body p {
  color: var(--gray-600);
  font-size: 0.925rem;
}
.gallery__body .link-arrow {
  margin-top: 0.4rem;
}

/* ---- Roadmap ------------------------------------------------------------- */
.roadmap {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 980px) {
  .roadmap {
    grid-template-columns: repeat(3, 1fr);
  }
}
.roadmap__stage {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.roadmap__head {
  padding: 1.6rem 1.6rem 1.3rem;
  border-bottom: 1px solid var(--gray-200);
}
.roadmap__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.roadmap__label b {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}
.roadmap__stage--available .roadmap__label b {
  color: var(--green-800);
}
.roadmap__stage--building .roadmap__label b {
  color: var(--amber-600);
}
.roadmap__stage--roadmap .roadmap__label b {
  color: var(--blue-600);
}
.roadmap__head h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.roadmap__head p {
  margin-top: 0.5rem;
  color: var(--gray-600);
  font-size: var(--step--1);
}
.roadmap__items {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.6rem 1.6rem;
  list-style: none;
}
.roadmap__items li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  color: var(--gray-700);
  font-size: var(--step--1);
  line-height: 1.5;
}
.roadmap__items li::before {
  position: absolute;
  top: 0.95rem;
  left: 0.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  content: '';
}
.roadmap__stage--available li::before {
  background: var(--green-500);
}
.roadmap__stage--building li::before {
  background: var(--amber-500);
}
.roadmap__stage--roadmap li::before {
  border: 2px solid var(--blue-600);
}

/* ---- Accordion (FAQ) ----------------------------------------------------- */
.faq-group + .faq-group {
  margin-top: 3rem;
}
.faq-group h2 {
  margin-bottom: 1rem;
  font-size: var(--step-2);
}
.accordion {
  border-top: 1px solid var(--gray-300);
}
.accordion details {
  border-bottom: 1px solid var(--gray-300);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  color: var(--gray-950);
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary .icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--gray-50);
  transition:
    transform 0.25s var(--ease),
    background-color 0.2s;
}
.accordion details[open] summary .icon {
  background: var(--green-400);
  transform: rotate(45deg);
}
.accordion details p {
  max-width: 72ch;
  padding: 0 0.25rem 1.5rem;
  color: var(--gray-600);
}
.faq-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 980px) {
  .faq-layout {
    grid-template-columns: 260px 1fr;
  }
  .faq-nav {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}
.faq-nav ul {
  display: grid;
  gap: 0.25rem;
  list-style: none;
}
.faq-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
}
.faq-nav a:hover {
  background: var(--gray-50);
  color: var(--gray-950);
}

/* ---- Prose (legal, insights) -------------------------------------------- */
.prose {
  max-width: 72ch;
  color: var(--gray-700);
  font-size: var(--step-0);
}
.prose > * + * {
  margin-top: 1.1rem;
}
.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--step-3);
}
.prose h3 {
  margin-top: 2rem;
  font-size: var(--step-2);
}
.prose .lead {
  color: var(--gray-800);
  font-size: var(--step-2);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.45;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li + li {
  margin-top: 0.45rem;
}
.prose em {
  color: var(--gray-950);
}
.notice {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--gray-800);
  font-size: var(--step--1);
}
.notice .icon {
  margin-top: 0.15rem;
  color: var(--amber-700);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--gray-500);
  font-size: var(--step--1);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- Forms --------------------------------------------------------------- */
.form-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 1020px) {
  .form-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .form-layout__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.form-card {
  padding: clamp(1.4rem, 4vw, 2.75rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-card__title {
  font-size: var(--step-3);
}
.form-card__intro {
  margin-top: 0.6rem;
  color: var(--gray-600);
}
.form {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}
.form fieldset {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
@media (min-width: 640px) {
  .form fieldset {
    grid-template-columns: 1fr 1fr;
  }
}
.form legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 1.15rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-950);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}
.form legend span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}
.field {
  display: grid;
  gap: 0.4rem;
  grid-column: 1 / -1;
  align-content: start;
  min-width: 0;
}
@media (min-width: 640px) {
  .field--half {
    grid-column: span 1;
  }
}
.field__label {
  color: var(--gray-950);
  font-size: var(--step--1);
  font-weight: 650;
}
.field__req {
  margin-left: 0.2rem;
  color: var(--red-600);
}
.field__hint {
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.45;
}
.field__error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.field__error .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.05rem;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-950);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400);
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.select {
  padding-right: 2.75rem;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333423a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 1rem center / 1.1rem no-repeat;
  cursor: pointer;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--gray-400);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--green-500);
  outline: none;
  box-shadow: 0 0 0 4px rgb(42 157 92 / 0.18);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--red-600);
  background-color: #fffaf7;
}
.field.has-error .input:focus,
.field.has-error .select:focus,
.field.has-error .textarea:focus {
  box-shadow: 0 0 0 4px rgb(164 80 42 / 0.16);
}
.field__counter {
  justify-self: end;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.field__counter.is-over {
  color: var(--red-700);
}
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 0.6rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-800);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.choice:hover {
  border-color: var(--gray-400);
}
.choice input,
.consent input {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin: 0;
  accent-color: var(--green-700);
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--green-800);
  background: var(--green-50);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}
.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  font-size: var(--step--1);
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  margin-top: 0.15rem;
}
.field.has-error .consent,
.field.has-error .choice {
  border-color: var(--red-600);
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}
.form-submit p {
  flex: 1 1 260px;
  color: var(--gray-500);
  font-size: 0.82rem;
}
.error-summary,
.form-alert {
  padding: 1.15rem 1.3rem;
  border: 2px solid var(--red-600);
  border-radius: var(--radius);
  background: #fff7f2;
}
.error-summary h2,
.form-alert strong {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--red-700);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 750;
  letter-spacing: 0;
}
.error-summary ul {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.65rem;
  padding-left: 1.2rem;
}
.error-summary a {
  color: var(--red-700);
  font-weight: 600;
}
.form-alert p {
  margin-top: 0.4rem;
  color: var(--gray-700);
  font-size: var(--step--1);
}
.form-success {
  padding: 1.15rem 1.3rem;
  border: 2px solid var(--green-500);
  border-radius: var(--radius);
  background: var(--green-50);
  color: var(--night);
  font-weight: 600;
}
.aside-card {
  padding: 1.6rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.aside-card h3 {
  margin-bottom: 1rem;
  font-size: var(--step-1);
  font-weight: 600;
}
.aside-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}
.aside-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--step--1);
}
.aside-list strong {
  display: block;
}
.aside-list span {
  color: var(--gray-600);
}

/* ---- Thank-you ----------------------------------------------------------- */
.reference {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  border: 1.5px dashed var(--green-700);
  border-radius: var(--radius);
  background: var(--white);
}
.reference small {
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reference b {
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 0 0 10px var(--green-50);
}
.success-mark .icon {
  width: 2.2rem;
  height: 2.2rem;
  stroke-width: 2.5;
}

/* ---- Brand page ---------------------------------------------------------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}
.swatch {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}
.swatch__chip {
  height: 120px;
}
.swatch__meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem 1rem;
  font-size: var(--step--1);
}
.swatch__meta strong {
  font-size: var(--step-0);
}
.swatch__meta code {
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.swatch__meta span {
  color: var(--gray-600);
  font-size: 0.8rem;
}
.bg-green-700 {
  background: var(--green-700);
}
.bg-green-500 {
  background: var(--green-500);
}
.bg-green-50 {
  background: var(--green-50);
}
.bg-night {
  background: var(--night);
}
.bg-white {
  background: var(--white);
}
.bg-gray-50 {
  background: var(--gray-50);
}
.bg-gray-300 {
  background: var(--gray-300);
}
.bg-gray-500 {
  background: var(--gray-500);
}
.bg-gray-950 {
  background: var(--gray-950);
}
.bg-amber-500 {
  background: var(--amber-500);
}
.bg-orange-500 {
  background: var(--orange-500);
}
.bg-blue-600 {
  background: var(--blue-600);
}
.bg-red-600 {
  background: var(--red-600);
}
.type-specimen {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.type-specimen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.type-specimen__head code {
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.specimen-display {
  color: var(--gray-950);
  font-size: clamp(2.3rem, 1.7rem + 3vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.specimen-display em {
  font-style: normal;
  color: var(--green-700);
}
.specimen-sans {
  color: var(--gray-950);
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.specimen-mono {
  color: var(--gray-950);
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.4;
}
.glyphs {
  color: var(--gray-600);
  font-size: var(--step-0);
  letter-spacing: 0.04em;
  word-break: break-all;
}
.type-scale {
  display: grid;
  gap: 0.9rem;
}
.type-scale div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--gray-300);
}
.type-scale code {
  min-width: 140px;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.logo-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.logo-tile {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.logo-tile--dark {
  border: 0;
  background: var(--night);
}
.logo-tile--dark .brand {
  color: var(--white);
}
.logo-tile--dark .brand__tag {
  color: var(--gray-300);
}
.logo-tile--sand {
  background: var(--gray-50);
}
.logo-tile .brand__mark {
  width: 56px;
  height: 56px;
}
.logo-tile .brand__name {
  font-size: 1.9rem;
}
.logo-tile .brand__tag {
  display: block;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--night-deep);
  color: rgb(255 255 255 / 0.62);
  font-size: 0.9rem;
}
.site-footer .brand {
  color: var(--white);
}
.site-footer .brand__tag {
  color: var(--orange-400);
}
.newsletter {
  border-bottom: 1px solid var(--night-line);
  background: var(--contours), var(--night);
}
.newsletter__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 960px) {
  .newsletter__grid {
    grid-template-columns: 1fr 1.1fr;
  }
}
.newsletter h2 {
  color: var(--white);
  font-size: var(--step-3);
}
.newsletter h2 em {
  color: rgb(255 255 255 / 0.5);
}
.newsletter p {
  margin-top: 0.4rem;
  color: rgb(255 255 255 / 0.65);
}
.newsletter-form {
  display: grid;
  gap: 0.75rem;
}
.newsletter-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.newsletter-form .input {
  flex: 1 1 240px;
  min-height: 44px;
  padding-inline: 1.1rem;
  border-color: rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
}
.newsletter-form .input::placeholder {
  color: rgb(255 255 255 / 0.45);
}
.newsletter-form .input:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgb(245 165 36 / 0.2);
}
.newsletter-form .btn--gold {
  background: var(--orange-500);
  color: var(--on-orange);
  box-shadow: none;
}
.newsletter-form .btn--gold:hover {
  background: var(--orange-400);
  color: var(--on-orange);
}
.newsletter-form .consent {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.8rem;
}
.newsletter-form .consent a {
  color: var(--orange-400);
}
.newsletter-form .form-success {
  border-color: rgb(74 222 128 / 0.4);
  background: rgb(74 222 128 / 0.1);
  color: var(--white);
}
.newsletter-form .field__error {
  color: #fca5a5;
}
.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4rem);
}
@media (min-width: 1000px) {
  .footer-main {
    grid-template-columns: 1.2fr 3fr;
    gap: 4rem;
  }
}
.footer-brand p {
  max-width: 340px;
  margin-top: 1.1rem;
  color: rgb(255 255 255 / 0.6);
}
.footer-contact {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
  list-style: none;
}
.footer-contact a,
.footer-contact li {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--white);
}
.footer-contact .icon {
  margin-top: 0.15rem;
  color: var(--orange-400);
}
.social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  color: rgb(255 255 255 / 0.75);
}
.social a:hover {
  border-color: var(--orange-400);
  color: var(--orange-400);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 2rem;
}
.footer-cols h2 {
  margin-bottom: 0.9rem;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-cols ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}
.footer-cols a {
  color: rgb(255 255 255 / 0.62);
  text-decoration: none;
}
.footer-cols a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--night-line);
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8rem;
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}
.footer-bottom a {
  color: rgb(255 255 255 / 0.65);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--white);
}

/* ---- Error / 404 --------------------------------------------------------- */
.error-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
  text-align: center;
}
.error-page__code {
  color: var(--green-700);
  font-size: clamp(4.5rem, 3rem + 7vw, 8rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}
.error-page .actions {
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Admin --------------------------------------------------------------- */
.admin {
  padding-block: 2.5rem 4rem;
}
.admin h1 {
  font-size: var(--step-3);
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.admin-nav a {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-700);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}
.admin-nav a[aria-current='page'] {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}
.admin-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.admin-counts a {
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
}
.admin-counts a:hover {
  border-color: var(--green-400);
}
.admin-counts small {
  display: block;
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-counts b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 650;
}
.admin-counts em {
  margin-left: 0.4rem;
  color: var(--amber-700);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}
.admin-filters .field {
  flex: 1 1 180px;
  grid-column: auto;
}
.admin-filters .input,
.admin-filters .select {
  min-height: 44px;
  padding-block: 0.5rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.table th,
.table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--gray-50);
  text-align: left;
  vertical-align: top;
}
.table th {
  background: var(--white);
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td small {
  display: block;
  color: var(--gray-500);
}
.table code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge--new {
  background: var(--amber-50);
  color: var(--amber-700);
}
.badge--in_progress {
  background: var(--blue-50);
  color: var(--blue-700);
}
.badge--closed,
.badge--subscribed {
  background: var(--green-50);
  color: var(--green-800);
}
.badge--spam,
.badge--unsubscribed {
  background: var(--gray-200);
  color: var(--gray-600);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: var(--step--1);
}
.detail-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1000px) {
  .detail-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}
.detail-list {
  display: grid;
  margin: 0;
}
.detail-list > div {
  display: grid;
  gap: 0.2rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-50);
}
@media (min-width: 640px) {
  .detail-list > div {
    grid-template-columns: 220px 1fr;
  }
}
.detail-list dt {
  color: var(--gray-500);
  font-size: var(--step--1);
  font-weight: 600;
}
.detail-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- Motion -------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal-delay-1 {
  transition-delay: 0.08s;
}
.js .reveal-delay-2 {
  transition-delay: 0.16s;
}
.js .reveal-delay-3 {
  transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.text-center {
  text-align: center;
}
.muted {
  color: var(--gray-500);
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2.5rem;
}
.mt-5 {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.center {
  justify-content: center;
}
.small {
  font-size: var(--step--1);
}
.divider {
  height: 1px;
  margin-block: clamp(2.5rem, 5vw, 4rem);
  border: 0;
  background: var(--gray-300);
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .mobile-nav {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

/* ---- No-JS menus ----------------------------------------------------------- */
.no-js .nav__item:hover > .nav__panel,
.no-js .nav__item:focus-within > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (max-width: 1119px) {
  .no-js .menu-toggle {
    display: none;
  }
  .no-js .mobile-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

/* ---- Architecture diagram ------------------------------------------------ */
.arch {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}
.arch__row {
  display: grid;
  gap: 0.6rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: var(--white);
}
@media (min-width: 820px) {
  .arch__row {
    grid-template-columns: 170px 1fr;
  }
}
.arch__label {
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.arch__boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.5rem;
}
.arch__box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.arch__box .icon {
  color: var(--green-700);
}
.arch__box--wide {
  grid-column: 1 / -1;
}
.arch__row--core {
  background: var(--night);
}
.arch__row--core .arch__label {
  color: var(--green-400);
}
.arch__row--core .arch__box {
  border-color: rgb(251 248 241 / 0.15);
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
}
.arch__row--core .arch__box .icon {
  color: var(--green-400);
}
.arch__box--ai {
  border-color: var(--green-400);
  background: var(--amber-50);
}
.arch__box--next {
  border-style: dashed;
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-700);
}
.arch__box--next .icon {
  color: var(--blue-600);
}
.arch__row--data {
  background: var(--green-50);
}

/* ---- SDG cards ----------------------------------------------------------- */
.sdg {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.sdg b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  background: var(--green-700);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.sdg span {
  color: var(--gray-950);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
}
.h2 {
  font-size: var(--step-4);
}
.h3 {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
}
.roadmap__head .h3 {
  font-size: var(--step-1);
}
.aside-card .steps {
  grid-template-columns: 1fr;
}
.aside-card .steps li::before {
  font-size: 1.8rem;
}

.section-legend {
  margin: calc(-1 * clamp(1rem, 2.5vw, 2rem)) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.aside-line {
  display: block;
}

/* Farm-to-consumer story and founder profiles. */
.story-eyebrow {
  color: var(--green-700);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.journey li {
  border-top: 3px solid var(--green-700);
  padding-top: 1.5rem;
}
.journey h3 {
  margin: 1rem 0;
}
.journey p {
  margin-bottom: 1rem;
}
.journey a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.founder-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.founder-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
}
.founder-role {
  margin-top: 0.5rem;
  color: var(--green-700);
}
@media (max-width: 900px) {
  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .journey {
    grid-template-columns: 1fr;
  }
  .founder-card {
    align-items: flex-start;
    gap: 1rem;
  }
}

.hero h1 {
  max-width: 24ch;
}
.hero .story-eyebrow {
  color: var(--green-200);
}

/* Editorial refresh: open layouts, clear hierarchy and field photography. */
:root {
  --container: 1240px;
  --radius: 3px;
  --radius-lg: 3px;
  --radius-xl: 3px;
}
html {
  scroll-padding-top: 6rem;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  padding-inline: 0;
}
.container--narrow {
  max-width: 850px;
}
.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.card,
.tile,
.gallery__item {
  border-radius: 4px;
  box-shadow: none;
}
.card {
  border: 0;
  border-top: 1px solid var(--gray-200);
  background: transparent;
  padding: 1.5rem 0;
}
.card--dark {
  border-color: var(--night-line);
}
.card--link:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}
.section--dark {
  background: var(--night);
}
.page-hero {
  background: var(--gray-50);
  color: var(--gray-700);
  padding-block: 3rem 4rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero h1 {
  color: var(--gray-950);
  max-width: 23ch;
}
.page-hero h1 em {
  color: var(--green-700);
}
.page-hero .lead {
  color: var(--gray-600);
}
.page-hero .breadcrumb a,
.page-hero .breadcrumb {
  color: var(--gray-600);
}
.eyebrow {
  color: var(--green-700);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  margin-bottom: 1rem;
}
.field-hero {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: var(--white);
}
.field-hero__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
.field-hero h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 15ch;
}
.field-hero h1 em {
  color: var(--green-700);
}
.field-hero .lead {
  margin-top: 1.5rem;
  max-width: 48ch;
}
.field-hero .actions {
  margin-top: 2rem;
}
.farm-photo {
  margin: 0;
  min-width: 0;
}
.farm-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.farm-photo figcaption {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin-top: 0.65rem;
}
.farm-photo figcaption a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.field-hero__photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 35% center;
}
.chapter-nav {
  border-block: 1px solid var(--gray-200);
  background: var(--white);
}
.chapter-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}
.chapter-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  padding-block: 0.3rem;
}
.text-link {
  font-weight: 600;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.editorial-split {
  display: grid;
  gap: 2rem 5rem;
  align-items: start;
}
.reading-copy p + p {
  margin-top: 1.25rem;
}
.reading-copy .text-link {
  display: inline-block;
  margin-top: 1.5rem;
}
.story-line {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
.story-line p {
  border-top: 2px solid var(--green-700);
  padding-top: 1.1rem;
}
.story-line strong,
.story-line span {
  display: block;
}
.story-line span {
  margin-top: 0.5rem;
  color: var(--gray-600);
}
.partner-wordmark {
  border-left: 3px solid var(--green-700);
  padding-left: 2rem;
}
.partner-wordmark h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.partner-wordmark p {
  margin-block: 1rem;
}
.audience-list {
  display: grid;
  column-gap: 4rem;
}
.audience-list > a {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--gray-200);
  padding-block: 1.5rem;
}
.audience-list__icon {
  color: var(--green-700);
  padding-top: 0.25rem;
}
.audience-list p {
  margin-top: 0.5rem;
  color: var(--gray-600);
}
.reason-list {
  margin: 0;
}
.reason-list > div {
  border-top: 1px solid var(--gray-300);
  padding-block: 1.25rem;
}
.reason-list dt {
  font-weight: 650;
  color: var(--gray-950);
  font-size: 1.2rem;
}
.reason-list dd {
  margin: 0.65rem 0 0;
  color: var(--gray-600);
}
.product-rows > a {
  display: grid;
  gap: 0.75rem 2rem;
  border-top: 1px solid var(--gray-200);
  padding-block: 1.75rem;
}
.product-rows .eyebrow {
  margin: 0;
}
.product-rows p {
  color: var(--gray-600);
}
.article-grid {
  display: grid;
  gap: 3rem 2rem;
}
.article-preview {
  min-width: 0;
}
.article-preview__image {
  display: block;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.article-preview__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.25s;
}
.article-preview__image:hover img {
  transform: scale(1.025);
}
.article-preview h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
.article-preview h3 a:hover {
  color: var(--green-700);
  text-decoration: underline;
}
.article-preview > p:last-child {
  margin-top: 0.85rem;
  color: var(--gray-600);
}
.article-preview .eyebrow {
  margin-bottom: 0.65rem;
}
.founder-card {
  border-top: 1px solid var(--gray-200);
}
.founder-monogram {
  border-radius: 4px;
}
.contact-band {
  background: var(--green-50);
}
.article-header {
  padding-block: 3rem;
}
.article-header h1 {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  max-width: 25ch;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.article-header .lead {
  margin-top: 1.5rem;
}
.article-meta {
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.article-cover {
  max-width: 1080px;
}
.article-cover img {
  max-height: 560px;
  object-fit: cover;
}
.article-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.article-body {
  min-width: 0;
  max-width: 760px;
}
.article-toc ol {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}
.article-toc li {
  padding-block: 0.35rem;
  font-size: 1rem;
}
.article-toc a:hover {
  color: var(--green-700);
  text-decoration: underline;
}
.prose h2 {
  scroll-margin-top: 6rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li + li {
  margin-top: 0.5rem;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: 1rem;
}
.guide-table th,
.guide-table td {
  padding: 0.8rem;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}
.guide-table th {
  background: var(--green-50);
}
.table-scroll {
  overflow-x: auto;
}
.guide-context,
.article-next {
  border-top: 1px solid var(--gray-200);
  margin-top: 3rem;
  padding-top: 2rem;
}
.guide-context h2,
.article-next h2 {
  font-size: 1.4rem;
}
.guide-context p,
.article-next p {
  margin-block: 1rem;
  color: var(--gray-600);
}
@media (min-width: 680px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .field-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
  .editorial-split {
    grid-template-columns: 1fr 1fr;
  }
  .story-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-rows > a {
    grid-template-columns: 0.8fr 1.15fr 1fr;
  }
  .article-layout {
    grid-template-columns: 250px minmax(0, 760px);
    justify-content: center;
    gap: 4rem;
  }
  .article-toc {
    position: sticky;
    top: 6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-preview__image img {
    transition: none;
  }
}

.page-hero {
  text-align: left;
}
.page-hero h1,
.page-hero .lead {
  margin-inline: 0;
}
.page-hero .breadcrumb,
.page-hero .actions {
  justify-content: flex-start;
}
.page-hero .lead a {
  color: var(--green-700);
}
.page-hero .status-legend {
  color: var(--gray-600);
}
.page-hero .breadcrumb a:hover {
  color: var(--green-700);
}
.article-header .breadcrumb {
  color: var(--gray-600);
}
.article-header .breadcrumb a {
  color: var(--green-700);
}
.source-note {
  font-size: 0.875rem;
}

.field-hero__photo img {
  aspect-ratio: 4 / 3;
  object-position: 35% center;
}
.audience-list > a,
.product-rows > a {
  text-decoration: none;
  color: inherit;
}
.audience-list > a:hover h3,
.product-rows > a:hover h3 {
  color: var(--green-700);
}
.article-preview h3 a {
  color: var(--gray-950);
  text-decoration: none;
}
.card.founder-card {
  flex-direction: row;
  align-items: center;
}
.page-hero .btn--ghost {
  color: var(--green-700);
  border-color: var(--gray-300);
  background: transparent;
}
.page-hero .btn--ghost:hover {
  color: var(--green-800);
  border-color: var(--green-700);
  background: var(--green-50);
}
.page-hero .btn--primary {
  background: var(--green-700);
  color: var(--white);
}
.page-hero .btn--primary:hover {
  background: var(--green-800);
}
.cta-band,
.newsletter {
  background: var(--night);
}
.tile {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--night-line);
  border-radius: 0;
  padding-inline: 0;
}
.tile:hover {
  transform: none;
}
@media (max-width: 560px) {
  .card.founder-card {
    align-items: flex-start;
  }
}

/* Section-led article reader: persistent index and a focused reading column. */
.article-reader {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) 4rem;
}
.article-reader .article-body {
  max-width: none;
}
.article-reader .article-header {
  padding: 0 0 2rem;
}
.article-reader .article-header h1 {
  max-width: 24ch;
}
.article-reader .article-cover {
  margin: 0 0 3rem;
}
.article-reader .article-cover img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.article-reader .article-toc {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  z-index: 5;
  min-width: 0;
  background: var(--white);
}
.toc-disclosure {
  border-block: 1px solid var(--gray-200);
  background: var(--white);
}
.toc-disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.25rem;
  cursor: pointer;
  color: var(--gray-950);
  font-weight: 650;
  list-style: none;
}
.toc-disclosure > summary::-webkit-details-marker {
  display: none;
}
.toc-disclosure[open] > summary .icon {
  transform: rotate(180deg);
}
.toc-disclosure nav {
  padding-block: 1.25rem;
}
.article-menu {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  border-left: 2px solid var(--gray-200);
}
.article-toc .article-menu li {
  padding: 0;
}
.article-menu a {
  display: block;
  padding: 0.7rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
  color: var(--gray-600);
}
.article-menu a[aria-current='location'] {
  border-left-color: var(--green-700);
  color: var(--green-800);
  background: var(--green-50);
  font-weight: 650;
}
.article-menu a:hover {
  background: var(--gray-50);
  text-decoration: none;
}
.article-menu a:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: -2px;
}
.article-menu__footer {
  border-top: 1px solid var(--gray-200);
  padding-block: 1.25rem;
}
.article-position {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.article-sections {
  font-size: 1.125rem;
  line-height: 1.85;
}
.article-sections > .lead {
  font-size: 1.25rem;
  line-height: 1.75;
}
.article-sections h2 {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.1rem;
  color: var(--green-800);
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.3;
  scroll-margin-top: 4rem;
}
.article-sections h2:focus {
  outline: none;
}
.article-sections h2:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 0.5rem;
}
.article-pagination {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
}
.article-pagination a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 128px;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  color: var(--gray-950);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.article-pagination a > span {
  min-width: 0;
  flex: 1;
}
.article-pagination a > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--green-700);
}
.article-pagination__next {
  text-align: right;
}
.article-pagination a:hover {
  border-color: var(--green-700);
  background: var(--gray-50);
}
.article-pagination a:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 4px;
}
.article-pagination .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}
.article-pagination strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.4;
}
.article-pagination a:hover strong {
  color: var(--green-700);
  text-decoration: underline;
}
@media (max-width: 959px) {
  .toc-disclosure[open] {
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
  }
  .toc-disclosure nav {
    padding: 0.5rem 0 1rem;
  }
  .article-menu__footer {
    padding-block: 1rem;
  }
  .article-toc #article-menu-title {
    display: none;
  }
}
@media (min-width: 680px) {
  .article-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-pagination__next {
    grid-column: 2;
  }
}
@media (min-width: 960px) {
  .article-reader {
    grid-template-columns: 300px minmax(0, 800px);
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .article-reader .article-toc {
    max-height: none;
    overflow: visible;
  }
  .toc-disclosure {
    border: 0;
  }
  .toc-disclosure > summary {
    display: none;
  }
  .article-sections h2 {
    scroll-margin-top: 1.5rem;
  }
}

/* Public impact framework: outcomes first, with measurement details on demand. */
.impact-overview {
  display: grid;
  gap: 0 3rem;
}
.impact-overview > a {
  display: block;
  padding-block: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
}
.impact-overview h3 {
  font-size: 1.25rem;
}
.impact-overview a:hover h3 {
  color: var(--green-700);
}
.impact-overview p {
  margin-top: 0.65rem;
  color: var(--gray-600);
}
.impact-note {
  max-width: 70ch;
  margin-block: 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.impact-kpi {
  display: grid;
  gap: 1.5rem 4rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--gray-200);
  scroll-margin-top: 2rem;
}
.impact-kpi h3 {
  font-size: 1.6rem;
  line-height: 1.3;
}
.impact-kpi .lead {
  margin-top: 0.85rem;
}
.impact-kpi > div > p + p {
  margin-top: 0.65rem;
}
.kpi-method {
  margin-top: 1.5rem;
}
.kpi-method summary {
  color: var(--green-800);
  font-weight: 600;
  cursor: pointer;
  padding-block: 0.5rem;
}
.kpi-method dl {
  margin-top: 1rem;
}
.kpi-method dl > div {
  padding-block: 0.85rem;
  border-top: 1px solid var(--gray-200);
}
.kpi-method dt {
  font-weight: 650;
  color: var(--gray-950);
}
.kpi-method dd {
  margin: 0.4rem 0 0;
  color: var(--gray-600);
}
.impact-method {
  margin: 0;
  padding-left: 1.4rem;
}
.impact-method li {
  padding-left: 0.5rem;
  margin-bottom: 1.75rem;
}
.impact-method h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.impact-method p {
  color: var(--gray-600);
}
@media (min-width: 680px) {
  .impact-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .impact-kpi {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---- Calmer headings, article cards and the guide library (November 2026) ----
   Headlines were large enough to push the reading down the page; this scale keeps
   hierarchy with less shouting. Cards follow one pattern everywhere: picture with a
   topic pill, title, three-line summary, "Read more", then reading time and type. */
:root {
  --step-3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --step-4: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-5: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* Article page */
.article-reader .article-header h1 {
  max-width: 26ch;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.article-reader .article-header .eyebrow {
  margin-bottom: 0.75rem;
}
.article-reader .article-header .lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}
.article-reader .article-cover img {
  border-radius: var(--radius-xl);
}
.article-sections {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.article-sections > .lead {
  font-size: 1.15rem;
  line-height: 1.7;
}
.article-sections h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  font-size: clamp(1.3rem, 1.15rem + 0.55vw, 1.6rem);
  letter-spacing: -0.02em;
}
.article-sections h3 {
  font-size: 1.15rem;
}
.guide-context h2,
.article-next h2 {
  font-size: 1.2rem;
}
@media (min-width: 960px) {
  /* The article index reads as a card beside the text, like the library's side panels. */
  .article-reader .toc-disclosure {
    padding: 1.25rem 1.25rem 0.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
  }
  .article-reader .toc-disclosure nav {
    padding-top: 0;
  }
  .article-toc #article-menu-title {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green-600);
    color: var(--night);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
  }
  .article-more .container {
    max-width: calc(300px + 800px + clamp(2rem, 4vw, 4rem) + 2 * var(--gutter));
  }
}
.article-more .section-head {
  margin-bottom: 1.5rem;
}
.article-more .section-head h2 {
  font-size: var(--step-3);
}

/* Article cards */
.article-grid {
  gap: 1.5rem;
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.article-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.article-card:focus-within {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}
.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
}
.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .article-card__media img {
  transform: scale(1.03);
}
.article-card__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--orange-400);
  color: var(--on-orange);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.5rem 1.25rem;
}
.article-card h3 {
  color: var(--night);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.article-card h3 a {
  color: inherit;
  text-decoration: none;
}
.article-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.article-card__link:focus-visible {
  outline: none;
}
.article-card:hover h3 {
  color: var(--green-700);
}
.article-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.975rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.25rem;
  color: var(--green-700);
  font-size: 0.95rem;
  font-weight: 650;
}
.article-card__more .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.article-card:hover .article-card__more .icon {
  transform: translateX(3px);
}
.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.85rem;
}
.article-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.article-card__meta .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--green-700);
}
@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card__media img,
  .article-card__more .icon {
    transition: none;
  }
  .article-card:hover,
  .article-card:hover .article-card__media img {
    transform: none;
  }
}

/* The guide library: the articles, with topics and tools beside them */
.library {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 4vw, 3.5rem) 4.5rem;
}
.library__section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.library__section + .library__section {
  margin-top: 3.5rem;
}
.library__head {
  margin-bottom: 1.5rem;
}
.library__head .eyebrow {
  margin-bottom: 0.5rem;
}
.library__head h2 {
  font-size: var(--step-3);
}
.library__head p:last-child {
  max-width: 62ch;
  margin-top: 0.5rem;
  color: var(--gray-600);
}
.side-card {
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}
.side-card + .side-card {
  margin-top: 1.5rem;
}
.side-card h2 {
  margin-bottom: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--green-600);
  color: var(--night);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list li + li {
  border-top: 1px dashed var(--gray-200);
}
.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  color: var(--gray-800);
  font-weight: 550;
  text-decoration: none;
}
.side-list a span {
  color: var(--green-700);
  font-weight: 650;
}
.side-list a .icon {
  width: 1rem;
  height: 1rem;
  color: var(--gray-400);
}
.side-list a:hover,
.side-list a:hover .icon {
  color: var(--green-700);
}
@media (min-width: 680px) {
  .library .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .library {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 3rem;
    align-items: start;
  }
  .library__side {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
  /* The side panel lists the topics, so the bar of section links is not needed. */
  .chapter-nav {
    display: none;
  }
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.language-switch a {
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--green-800);
  text-decoration: none;
}
html[lang='en'] .language-switch a[lang='en'],
html[lang='sw'] .language-switch a[lang='sw'] {
  background: var(--green-50);
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.language-switch--mobile {
  padding: 1rem;
}
.library-filters {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.library-filters label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.library-filters .input {
  width: 100%;
}
.library-status {
  color: var(--gray-600);
  margin-block: 1.5rem;
}
.library-pagination {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.library-pagination a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
}
.library-pagination a[aria-current] {
  background: var(--green-700);
  color: var(--white);
}
@media (min-width: 960px) {
  .library-filters {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}
@media (max-width: 479px) {
  .header-actions > .language-switch {
    display: none;
  }
}
/* A card whose picture is not in the library yet shows its topic icon instead. */
.article-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--green-700);
}
.article-card__placeholder .icon {
  width: 3rem;
  height: 3rem;
  stroke-width: 1.4;
  opacity: 0.7;
}
/* Page and home headlines on the same calmer scale as the rest. */
.page-hero h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  line-height: 1.05;
}

/* Farming library: image cards and topic tabs, with search and resources alongside. */
[data-library] { padding-top: 0; }
.library__main { min-width: 0; }
.library-topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.library-topics a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .6rem 1rem; border: 1px solid var(--gray-200); border-radius: 999px;
  color: var(--gray-700); text-decoration: none; font-size: .875rem; font-weight: 600;
}
.library-topics a[aria-current] { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.library-topics a:hover { border-color: var(--green-700); }
.library-topics a:focus-visible, .side-list a:focus-visible { outline: 2px solid var(--green-700); outline-offset: 4px; }
.library-search { display: grid; gap: .75rem; margin-bottom: 1.75rem; }
.library-search label { font-size: .875rem; font-weight: 600; }
.library-search .input { width: 100%; min-width: 0; }
.library-search__field { position: relative; }
.library-search__field .input { padding-left: 2.75rem; border-radius: 999px; }
.library-search__field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--green-700); pointer-events: none; }
.side-list a .library-topic-name { color: inherit; font-weight: inherit; }
.side-list a[aria-current] { color: var(--green-700); }
.library .article-card { border-radius: 3px; }
.library .article-card__media { aspect-ratio: 1.6; }
.library .article-grid { gap: 2rem; }
.library__side { align-self: start; }
@media (max-width: 1079px) {
  .library__side { grid-row: 1; }
  .library-search { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
  .library-search label { grid-row: 1; }
  .library-search label[for='article-search'] { grid-column: 1; }
  .library-search label[for='article-crop'] { grid-column: 2; }
  .library-search__field, .library-search > select:not([hidden]), .library-search > button { grid-row: 2; }
  .library__side .side-card { display: none; }
}
@media (max-width: 599px) {
  .library-search { grid-template-columns: minmax(0, 1fr) auto; }
  .library-search label[for='article-crop'] { grid-row: 3; grid-column: 1; }
  .library-search > select:not([hidden]) { grid-row: 4; grid-column: 1 / -1; }
  .library-search__field { grid-column: 1; }
  .library-search > button { grid-column: 2; }
  .library-topics { gap: .5rem; }
  .library-topics a { padding-inline: .8rem; }
}

/* Subtle corners for editorial surfaces and photographs throughout the public site. */
main :is(.container, .card, .side-card, .article-card, .farm-photo, .article-cover,
  .guide-context, .article-next, .toc-disclosure, figure, img) {
  border-radius: 3px;
}

/* Keep the index heading and footer clear while long section lists scroll. */
.article-toc #article-menu-title {
  position: static;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.article-toc .article-menu li {
  margin: 0;
  padding: 0;
}
.article-toc .article-menu a {
  height: auto;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.article-menu__footer .text-link {
  display: inline-block;
  white-space: normal;
  line-height: 1.5;
}
@media (min-width: 960px) {
  .article-reader .toc-disclosure[open] {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - var(--header-h) - clamp(1.5rem, 4vw, 3.5rem) - 1rem);
    min-height: 0;
    overflow: hidden;
  }
  .article-reader .toc-disclosure nav {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 1rem;
  }
  .article-toc #article-menu-title {
    flex: 0 0 auto;
    margin: 0 0 1rem;
  }
  .article-toc .article-menu {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
  }
  .article-menu__footer { flex: 0 0 auto; }
}
@media (max-width: 959px) {
  .article-sections h2 {
    scroll-margin-top: 4rem;
  }
}

/* Navigation copy has its own compact scale, with room for translated titles. */
.article-reader .toc-disclosure {
  padding-inline: 1rem;
}
.article-toc #article-menu-title {
  font-size: .9375rem;
  font-weight: 650;
}
.article-toc .article-menu a {
  padding: .65rem .75rem;
  font-size: .875rem;
  line-height: 1.6;
  font-weight: 450;
  text-wrap: pretty;
}
.article-toc .article-menu a[aria-current='location'] {
  font-weight: 600;
}
.article-menu__footer {
  padding-block: 1rem;
}
.article-menu__footer .text-link,
.article-menu__footer .article-position {
  font-size: .8125rem;
  line-height: 1.6;
}
.article-pagination {
  gap: 1rem;
  align-items: stretch;
}
.article-pagination a {
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
  padding: 1.25rem;
  text-align: left;
}
.article-pagination a > svg {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  margin-top: .2rem;
}
.article-pagination .eyebrow {
  margin-bottom: .5rem;
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}
.article-pagination strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
@media (min-width: 960px) and (max-width: 1199px) {
  .article-reader { grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; }
  .article-pagination { grid-template-columns: minmax(0, 1fr); }
  .article-pagination__next { grid-column: auto; }
}

/* SSI wordmark: a compact typographic lockup with a green palette. */
.brand { flex-shrink: 0; }
.brand__wordmark { display: block; width: 190px; height: auto; border-radius: 0; }
.brand__wordmark--light { display: none; }
.site-footer .brand__wordmark, .logo-tile--dark .brand__wordmark { display: none; }
.site-footer .brand__wordmark--light, .logo-tile--dark .brand__wordmark--light { display: block; }
@media (max-width: 520px) {
  .brand__wordmark { width: 170px; }
}

/* Photo-led mega menus make the platform and its audiences easier to explore. */
.nav__panel--mega {
  width: min(1180px, calc(100vw - 3rem));
  grid-template-columns: minmax(270px, .85fr) minmax(0, 2fr);
  gap: 1.5rem;
  padding: 1.25rem;
  max-height: calc(100dvh - var(--header-h) - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__intro {
  min-width: 0;
  padding: 1.25rem;
  gap: 1rem;
  border-radius: 3px;
  font-size: .9375rem;
  line-height: 1.65;
}
.nav__intro strong { font-size: 1.4rem; line-height: 1.3; }
.nav__intro .nav__photo { margin: 0; }
.nav__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
}
.nav__photo figcaption {
  margin-top: .5rem;
  font-size: .625rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.nav__intro .nav__photo figcaption,
.nav__intro .nav__photo figcaption a { color: var(--green-100); }
.nav__panel--mega .nav__links { min-width: 0; gap: .5rem; align-content: start; }
.nav__panel--mega .nav__links li { min-width: 0; }
.nav__panel--mega .nav-card {
  min-height: 108px;
  height: 100%;
  padding: 1.15rem 1rem;
  gap: 1rem;
  border: 1px solid transparent;
  border-radius: 3px;
}
.nav__panel--mega .nav-card:hover,
.nav__panel--mega .nav-card:focus-visible {
  background: var(--green-50);
  border-color: var(--green-200);
}
.nav__panel--mega .nav-card > span:last-child { min-width: 0; }
.nav__panel--mega .nav-card__icon { width: 42px; height: 42px; border-radius: 3px; }
.nav__panel--mega .nav-card__label { font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.nav__panel--mega .nav-card__desc { margin-top: .4rem; font-size: .875rem; line-height: 1.6; color: var(--gray-600); }
.mobile-nav__intro {
  display: grid;
  gap: .75rem;
  padding-block: .75rem 1.25rem;
  font-size: .9375rem;
  line-height: 1.6;
}
.mobile-nav__intro .farm-photo { margin: 0; }
.mobile-nav__intro strong { color: var(--green-800); font-size: 1.1rem; }
.mobile-nav__description { display: block; margin-top: .25rem; font-size: .8125rem; font-weight: 400; line-height: 1.6; color: var(--gray-600); }
.mobile-nav ul a { align-items: flex-start; padding-block: .85rem; }
.mobile-nav ul a > .icon { flex-shrink: 0; margin-top: .15rem; }

/* The hero leads with the problem Shamba solves and its promise to farmers. */
.field-hero__copy { min-width: 0; }
.field-hero h1 {
  font-size: clamp(1.85rem, 4.3vw, 3.5rem);
  max-width: 20ch;
  line-height: 1.12;
}
.field-hero h1 em { display: block; }
.field-hero__explanation {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.75;
}

/* Restore the contour motif at a few key moments in the page story. */
.contour-surface {
  background: var(--contours), var(--night);
  color: var(--green-100);
}
.contour-surface :is(h1, h2, h3, strong, .reason-list dt) { color: var(--white); }
.contour-surface :is(h1 em, h2 em, .eyebrow) { color: #86efac; }
.contour-surface :is(.lead, .field-hero__explanation, .reason-list dd) { color: #d5e5dc; }
.contour-surface .reason-list > div { border-color: rgb(255 255 255 / .2); }
.contour-surface .text-link,
.contour-surface .farm-photo figcaption,
.contour-surface .farm-photo figcaption a { color: var(--green-100); }
.contour-surface .btn--primary { background: var(--orange-500); color: var(--on-orange); }
.contour-surface .btn--primary:hover { background: var(--orange-400); }

/* A more legible footer: newsletter, a concise brand introduction, then clear links. */
.site-footer { background: var(--night-deep); }
.site-footer .newsletter {
  background: var(--contours), var(--night);
  border-top: 1px solid rgb(255 255 255 / .12);
}
.newsletter .eyebrow { margin: 0 0 .75rem; color: #86efac; font-size: .75rem; }
.newsletter h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.2; }
.newsletter h2 em { color: var(--green-200); }
.newsletter p:not(.eyebrow) { max-width: 52ch; line-height: 1.7; color: #d5e5dc; }
.newsletter__grid { gap: 2rem 4rem; }
.newsletter-form__row { align-items: start; }
.newsletter-form__row .field { flex: 1 1 220px; min-width: 0; }
.newsletter-form .input { width: 100%; border-radius: 3px; background: rgb(255 255 255 / .09); border-color: rgb(255 255 255 / .35); }
.newsletter-form .input::placeholder { color: #c1d3c7; }
.newsletter-form .consent { color: #d5e5dc; line-height: 1.6; }
.footer-main { gap: 3rem; }
.footer-brand p { margin-top: 1rem; line-height: 1.75; color: #bfd1c5; }
.footer-brand .footer-promise { color: var(--white); font-size: 1.125rem; line-height: 1.5; font-weight: 600; }
.footer-contact-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.25rem; color: var(--green-200); font-weight: 600; text-underline-offset: .3em; }
.footer-contact-link .icon { width: 1rem; height: 1rem; }
.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.footer-cols nav { min-width: 0; }
.footer-cols h2 { margin-bottom: 1rem; font-size: .875rem; color: var(--white); }
.footer-cols a { display: inline-block; padding-block: .25rem; color: #bfd1c5; line-height: 1.6; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }
.footer-contact a { overflow-wrap: anywhere; }
.site-footer .social { flex-wrap: wrap; }
.site-footer .social a { display: inline-flex; gap: .5rem; width: auto; height: auto; min-height: 44px; padding: .6rem .85rem; border-radius: 3px; color: var(--green-100); }
.site-footer .social .icon { width: 1.1rem; height: 1.1rem; }
.footer-bottom { align-items: start; gap: 1.25rem; color: #adc4b6; line-height: 1.7; }
.footer-bottom > p { flex-basis: 100%; }
.footer-bottom a { display: inline-block; padding-block: .25rem; color: #bfd1c5; }
.footer-languages { display: flex; gap: 1rem; margin-left: auto; }
html[lang='en'] .footer-languages [lang='en'],
html[lang='sw'] .footer-languages [lang='sw'] { color: var(--white); text-decoration: underline; text-underline-offset: .3em; }
.site-footer a:focus-visible { outline: 2px solid var(--green-200); outline-offset: 4px; }
@media (min-width: 760px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 4rem; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
}

/* Hold the introduction beside the reasons until this section ends. */
@media (min-width: 960px) and (min-height: 600px) {
  #why-shamba .editorial-split { align-items: start; }
  .why-shamba__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* Product story: a steady introduction beside four visual feature panels. */
.product-showcase__layout { display: grid; gap: 2.5rem; align-items: start; }
.product-showcase__intro h2 { max-width: 18ch; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.15; }
.product-showcase__intro h2 em { color: var(--green-700); }
.product-showcase__intro .lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.75; }
.product-showcase__actions { display: flex; flex-wrap: wrap; align-items: start; gap: 1.25rem; margin-top: 1.75rem; }
.product-showcase__features { display: grid; min-width: 0; gap: 1.5rem; }
.product-feature { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 3px; background: var(--gray-50); }
.product-feature__image { min-width: 0; padding: .75rem; background: var(--green-50); }
.product-feature__image .farm-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.product-feature__image .farm-photo figcaption { margin-top: .5rem; font-size: .625rem; line-height: 1.5; overflow-wrap: anywhere; }
.product-feature__copy { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 1.5rem; }
.product-feature__top { display: flex; justify-content: space-between; align-items: start; gap: .75rem; width: 100%; margin-bottom: 1.1rem; }
.product-feature__top .eyebrow { margin: 0; font-size: .75rem; line-height: 1.6; letter-spacing: .025em; }
.product-feature__number { flex-shrink: 0; font-family: var(--font-mono); color: var(--green-700); font-size: .75rem; line-height: 1.6; }
.product-feature h3 { font-size: clamp(1.2rem, 1.4vw, 1.5rem); line-height: 1.35; color: var(--gray-950); }
.product-feature__copy > p { margin-top: .85rem; margin-bottom: 1.25rem; font-size: .9375rem; line-height: 1.75; }
.product-feature__link { display: inline-flex; align-items: center; gap: .65rem; margin-top: auto; padding-block: .5rem; color: var(--green-800); font-size: .875rem; font-weight: 650; text-underline-offset: .3em; }
.product-feature__link .icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.product-feature__link:hover { color: var(--green-700); }
.product-feature__link:focus-visible { outline: 2px solid var(--green-700); outline-offset: 4px; }
@media (min-width: 640px) {
  .product-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (min-width: 960px) {
  .product-showcase__layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: clamp(2rem, 4vw, 4rem); }
  .product-showcase__actions { flex-direction: column; }
}
@media (min-width: 960px) and (min-height: 650px) {
  .product-showcase__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Impact: a connected introduction followed by six easy-to-scan outcome cards. */
#our-impact .impact-intro { max-width: 760px; margin-inline: auto; text-align: center; }
.impact-intro h2 { max-width: 26ch; margin-inline: auto; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.impact-intro h2 em { color: var(--green-700); }
#our-impact .impact-intro .lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.75; }
#our-impact .impact-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
#our-impact .impact-overview > a {
  display: flex; flex-direction: column; align-items: start; min-width: 0;
  padding: 1.5rem; border: 1px solid var(--gray-200); border-radius: 3px;
  background: var(--gray-50); text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
#our-impact .impact-overview > a:hover { background: var(--green-50); border-color: var(--green-700); }
#our-impact .impact-overview > a:focus-visible { outline: 2px solid var(--green-700); outline-offset: 4px; }
.impact-overview__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.25rem; border-radius: 3px; background: var(--green-100); color: var(--green-800); }
.impact-overview__icon .icon { width: 22px; height: 22px; }
#our-impact .impact-overview h3 { font-size: 1.125rem; line-height: 1.45; color: var(--gray-950); }
#our-impact .impact-overview p { margin-top: .75rem; margin-bottom: 1.5rem; font-size: .9375rem; line-height: 1.75; }
.impact-overview__more { display: inline-flex; align-items: center; gap: .65rem; margin-top: auto; font-size: .8125rem; font-weight: 600; color: var(--green-800); }
.impact-overview__more .icon { width: 1rem; height: 1rem; }
.impact-assessment { display: grid; gap: 1rem; margin-top: 1.75rem; padding: 1.5rem; border-left: 3px solid var(--green-700); border-radius: 3px; background: var(--green-50); }
.impact-assessment .impact-note { margin: 0; max-width: 80ch; font-size: .875rem; line-height: 1.75; }
.impact-assessment .text-link { justify-self: start; font-size: .875rem; line-height: 1.6; }
@media (min-width: 640px) {
  #our-impact .impact-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  #our-impact .impact-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

/* Founders and invitation: keep each heading together with its introduction. */
#team .team-intro { max-width: 740px; margin-inline: auto; text-align: center; }
.team-intro h2 { max-width: 25ch; margin-inline: auto; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.team-intro h2 em { color: var(--green-700); }
#team .team-intro .lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.75; }
.team-profiles { max-width: 960px; margin-inline: auto; gap: 1.5rem; }
#team .card.founder-card { padding: 1.75rem; border: 1px solid var(--gray-200); border-radius: 3px; background: var(--gray-50); box-shadow: none; }
#team .founder-monogram { border-radius: 3px; }
#team .founder-card h3 { font-size: 1.125rem; line-height: 1.5; }
#team .founder-role { font-size: .9375rem; line-height: 1.65; }
.team-actions { justify-content: center; gap: 1rem; padding-top: .75rem; }
.team-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
.contact-invitation__copy { max-width: 760px; margin-inline: auto; text-align: center; }
.contact-invitation h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.15; }
.contact-invitation h2 em { color: var(--green-700); }
.contact-invitation .lead { margin-top: 1.5rem; margin-inline: auto; max-width: 55ch; font-size: 1.0625rem; line-height: 1.75; }
.contact-invitation .actions { justify-content: center; gap: 1.25rem; }
@media (max-width: 599px) {
  #team .card.founder-card { flex-direction: column; align-items: center; text-align: center; }
  #team .founder-monogram { width: 64px; }
}

/* A consistent centered, contour-backed introduction on every inner page. */
.page-hero {
  background: var(--contours), var(--night);
  color: #d5e5dc;
  text-align: center;
  padding-block: clamp(3rem, 5vw, 5rem);
  border-bottom-color: var(--night-line);
}
.page-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}
.page-hero__grid > div:first-child {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
}
.page-hero h1,
.page-hero__grid h1 {
  max-width: 27ch;
  margin-inline: auto;
  color: var(--white);
  text-align: center;
  text-wrap: balance;
}
.page-hero h1 em,
.page-hero .eyebrow { color: #86efac; }
.page-hero .lead,
.page-hero__grid .lead {
  max-width: 68ch;
  margin-inline: auto;
  color: #d5e5dc;
  text-align: center;
  line-height: 1.75;
}
.page-hero .actions,
.page-hero .breadcrumb,
.page-hero__grid .actions,
.page-hero__grid .breadcrumb,
.page-hero .status-legend { justify-content: center; }
.page-hero .breadcrumb,
.page-hero .breadcrumb a { color: #c7ddcf; }
.page-hero .breadcrumb li + li::before { color: #8fb39d; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .lead a { color: var(--orange-400); }
.page-hero .status-legend { color: #d5e5dc; }
.page-hero .btn--primary { background: var(--orange-500); color: var(--on-orange); }
.page-hero .btn--primary:hover { background: var(--orange-400); }
.page-hero .btn--ghost { border-color: rgb(255 255 255 / .4); background: transparent; color: var(--white); }
.page-hero .btn--ghost:hover { border-color: var(--green-200); background: rgb(255 255 255 / .08); color: var(--white); }
.page-hero .actions .btn { max-width: 100%; white-space: normal; }
.page-hero__grid > .reveal { width: 100%; max-width: 1000px; margin-inline: auto; text-align: left; }

/* Official SDG artwork stays square, complete and in its published colours. */
.sdg-intro, .pilot-participants__intro { max-width: 760px; margin-inline: auto; text-align: center; }
.sdg-intro h2 em, .pilot-participants__intro h2 em { color: var(--green-700); }
.sdg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.sdg-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--gray-200); border-radius: 3px; background: var(--white); }
.sdg-card__image { display: block; width: min(100%, 180px); margin-inline: auto; }
.sdg-card__image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.sdg-card__image:focus-visible { outline: 2px solid var(--green-700); outline-offset: 4px; }
.sdg-card__copy { margin-top: 1.5rem; }
.sdg-card h3 { font-size: 1.125rem; line-height: 1.5; }
.sdg-card p { margin-top: .75rem; font-size: .9375rem; line-height: 1.75; color: var(--gray-600); }
.sdg-credit { margin-top: 2rem; max-width: 90ch; font-size: .8125rem; line-height: 1.75; color: var(--gray-600); }
.sdg-credit p { margin-top: .5rem; }
.pilot-participants__grid { display: grid; gap: 1.5rem; max-width: 900px; margin-inline: auto; }
.pilot-participant { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 2rem; border: 1px solid var(--gray-200); border-radius: 3px; background: var(--white); text-align: center; }
.pilot-participant__icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--green-50); border-radius: 3px; color: var(--green-700); }
.pilot-participant__value { margin-block: 1rem .5rem; font-size: 3rem; line-height: 1.2; color: var(--green-800); }
.pilot-participant__value--text { margin-block: auto .5rem; padding-top: 1rem; font-size: 1.4rem; line-height: 1.5; }
.pilot-participant h3 { font-size: 1rem; line-height: 1.5; }
@media (min-width: 640px) {
  .sdg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-participants__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .sdg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Solutions overview: guidance first, practical farm tools, then connected services. */
.solutions-jump { border-bottom: 1px solid var(--gray-200); background: var(--white); }
.solutions-jump > .container { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; padding-block: 1rem; }
.solutions-jump a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .75rem; border-radius: 3px; color: var(--green-800); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.solutions-jump a:hover { background: var(--green-50); }
.solutions-jump .icon { width: 18px; height: 18px; flex-shrink: 0; }
.solutions-ai, .solutions-farm, .solutions-connected, .solution-visual { scroll-margin-top: 1rem; }
.solutions-ai__feature { display: grid; border: 1px solid var(--gray-200); border-radius: 3px; overflow: hidden; }
.solutions-ai__photo { padding: 1rem; background: var(--green-50); min-width: 0; }
.solutions-ai__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.solutions-ai__photo figcaption, .solution-visual__photo figcaption { font-size: .625rem; line-height: 1.5; overflow-wrap: anywhere; }
.solutions-ai__copy { padding: clamp(1.5rem, 3vw, 3rem); min-width: 0; }
.solutions-ai__copy h2 { max-width: 22ch; font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1.2; }
.solutions-ai__copy h2 em { color: var(--green-700); }
.solutions-ai__copy .lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.75; }
.solutions-ai__ways { display: grid; gap: .9rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.solutions-ai__ways li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; }
.solutions-ai__ways .icon { color: var(--green-700); width: 20px; height: 20px; flex-shrink: 0; }
.solutions-availability { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: 1.75rem; color: var(--gray-600); font-size: .75rem; line-height: 1.6; }
.solutions-section-head { max-width: 740px; margin: 0 auto 2.5rem; text-align: center; }
.solutions-section-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.solutions-section-head h2 em { color: var(--green-700); }
.solutions-section-head .lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.75; }
.solutions-core-grid, .solutions-connected__grid { display: grid; gap: 1.5rem; }
.solution-visual { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--gray-200); border-radius: 3px; background: var(--white); overflow: hidden; }
.solution-visual__photo { padding: .75rem; background: var(--green-50); }
.solution-visual__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.solution-visual__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 1.5rem; }
.solution-visual__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.25rem; background: var(--green-50); color: var(--green-700); border-radius: 3px; }
.solution-visual__icon .icon { width: 22px; height: 22px; }
.solution-visual h3, .solution-tool h3 { font-size: 1.25rem; line-height: 1.4; color: var(--gray-950); }
.solution-visual__body > p, .solution-tool > p { margin-block: .85rem 1.25rem; font-size: .9375rem; line-height: 1.75; color: var(--gray-600); }
.solution-visual__body .status, .solution-tool .status { margin-bottom: 1.25rem; white-space: normal; }
.solution-visual__link { display: inline-flex; align-items: center; gap: .6rem; margin-top: auto; padding-block: .5rem; font-size: .875rem; font-weight: 650; color: var(--green-800); text-underline-offset: .3em; }
.solution-visual__link .icon { width: 16px; height: 16px; flex-shrink: 0; }
.solution-tool { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 1.75rem; border: 1px solid var(--gray-200); border-radius: 3px; background: var(--gray-50); }
.solutions-status-note { display: flex; align-items: start; gap: 1rem; margin-top: 2rem; padding: 1.5rem; border-left: 3px solid var(--green-700); border-radius: 3px; background: var(--green-50); font-size: .875rem; line-height: 1.75; }
.solutions-status-note > .icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--green-700); }
.solutions-status-note .text-link { display: inline-block; margin-top: .5rem; }
.solutions-ai__copy .btn { max-width: 100%; white-space: normal; }
:is(.solutions-jump, .solutions-core-grid, .solutions-connected__grid) a:focus-visible { outline: 2px solid var(--green-700); outline-offset: 4px; }
@media (min-width: 700px) {
  .solutions-core-grid, .solutions-connected__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .solutions-ai__feature { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; }
  .solutions-ai__photo { display: flex; align-items: center; padding: 1.5rem; }
}
@media (min-width: 1100px) {
  .solutions-core-grid, .solutions-connected__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
