/* ==========================================================================
   Agrolink — Design System
   Refined light · forest green · premium minimal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --forest-900: #0C1F16;
  --forest-800: #12301F;
  --forest-700: #1A4129;
  --forest-600: #235A37;
  --forest-500: #2F6B44;
  --forest-400: #3F8756;
  --forest-300: #6FA97F;
  --forest-100: #DCEAD9;
  --forest-50: #EDF5EC;

  --clay-600: #B4712F;
  --clay-500: #C9822F;
  --clay-400: #DB9A4A;
  --clay-100: #F7E7D2;

  --alert-500: #C4453A;

  /* Neutrals */
  --paper: #FBFAF7;
  --paper-2: #F3F0E9;
  --paper-3: #EAE5DA;
  --white: #FFFFFF;

  --ink: #0E1512;
  --ink-2: #414A45;
  --ink-3: #6E7772;
  --ink-4: #9AA29D;

  --line: #E4DFD5;
  --line-2: #D6D0C4;
  --line-ink: rgba(255, 255, 255, 0.12);

  /* Semantic */
  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --border: var(--line);
  --accent: var(--forest-600);
  --accent-hover: var(--forest-700);
  --success: #2F6B44;
  --error: var(--alert-500);

  /* Type */
  --font-display: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --fs-display: clamp(2.6rem, 6.2vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 4.6vw, 3.5rem);
  --fs-h2: clamp(1.7rem, 3.1vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-micro: 0.6875rem;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(14, 21, 18, 0.04);
  --shadow-sm: 0 1px 3px rgba(14, 21, 18, 0.05), 0 1px 2px rgba(14, 21, 18, 0.03);
  --shadow-md: 0 10px 30px -12px rgba(14, 21, 18, 0.12), 0 2px 8px -4px rgba(14, 21, 18, 0.06);
  --shadow-lg: 0 28px 60px -24px rgba(14, 21, 18, 0.2), 0 4px 16px -8px rgba(14, 21, 18, 0.08);
  --shadow-brand: 0 16px 40px -18px rgba(35, 90, 55, 0.42);

  /* Layout */
  --container: 1160px;
  --container-narrow: 780px;
  --gutter: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --header-h: 72px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.026em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.014em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
  max-width: 66ch;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--forest-600);
  text-decoration: none;
  transition: color 0.18s var(--ease-soft);
}

a:hover {
  color: var(--forest-800);
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.15em;
  color: var(--text-2);
}

li + li {
  margin-top: var(--s-2);
}

li::marker {
  color: var(--forest-300);
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

strong,
b {
  font-weight: 600;
  color: var(--text);
}

small {
  font-size: var(--fs-xs);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-7) 0;
}

::selection {
  background: var(--forest-100);
  color: var(--forest-900);
}

:focus-visible {
  outline: 2px solid var(--forest-600);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Utilities */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.muted {
  color: var(--text-3);
}

.mono,
.stat-value,
.waitlist-counter-value {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

.full-width {
  width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--forest-700);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   3. Entry curtain  (replaces the old 22s farm-scene loader)
   -------------------------------------------------------------------------- */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.55s var(--ease-soft);
}

/* Two white panels that part like stage curtains as the overlay lifts. */
#curtain::before,
#curtain::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: var(--paper);
  transition: transform 0.85s var(--ease-out);
  pointer-events: none;
}

#curtain::before {
  left: 0;
}

#curtain::after {
  right: 0;
}

#curtain .curtain-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  padding: 0 var(--s-5);
  text-align: center;
}

#curtain .curtain-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.14em;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  animation: curtain-word 0.85s var(--ease-out) 0.06s forwards;
}

#curtain .curtain-wordmark em {
  font-style: normal;
  color: var(--forest-500);
}

#curtain .curtain-rule {
  width: clamp(120px, 26vw, 220px);
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

#curtain .curtain-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--forest-500);
  transform: scaleX(0);
  transform-origin: left center;
  animation: curtain-rule 1.05s var(--ease-soft) 0.12s forwards;
}

#curtain .curtain-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-4);
  opacity: 0;
  animation: curtain-fade 0.7s var(--ease-soft) 0.34s forwards;
}

#curtain.is-leaving {
  opacity: 0;
  pointer-events: none;
}

#curtain.is-leaving::before {
  transform: translateX(-100.5%);
}

#curtain.is-leaving::after {
  transform: translateX(100.5%);
}

#curtain.is-leaving .curtain-inner {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease-soft), transform 0.5s var(--ease-out);
}

@keyframes curtain-word {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes curtain-fade {
  to {
    opacity: 1;
  }
}

@keyframes curtain-rule {
  to {
    transform: scaleX(1);
  }
}

/* Page content waits for the curtain, then reveals.
   `entry-hidden` is set by an inline script in <head> before first paint, so the
   hero is never visible behind the curtain. Removing the class plays the reveal. */
html.entry-hidden {
  overflow: hidden;
}

html.entry-hidden .home-main {
  opacity: 0;
  transform: translateY(18px);
}

.home-main {
  transition: opacity 0.7s var(--ease-out) 0.1s, transform 0.85s var(--ease-out) 0.1s;
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -8px rgba(14, 21, 18, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--forest-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-brand);
  transition: transform 0.35s var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.nav-link:hover {
  color: var(--forest-700);
  background: var(--forest-50);
}

.nav-link[aria-current="page"] {
  color: var(--forest-800);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 14px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--forest-500);
  transform: translateX(-50%);
}

.nav-cta {
  margin-left: var(--s-3);
  padding: 9px 18px;
  min-height: 38px;
  border-radius: var(--r-full);
  background: var(--forest-700);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-brand);
  transition: background 0.22s var(--ease-soft), transform 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-soft);
}

.nav-cta:hover {
  background: var(--forest-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px -18px rgba(18, 48, 31, 0.55);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.nav-toggle:hover {
  border-color: var(--line-2);
  background: var(--paper-2);
}

.nav-toggle-bar {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: var(--r-full);
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-soft);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: none;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease-soft), color 0.22s var(--ease-soft),
    border-color 0.22s var(--ease-soft), transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-soft);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--forest-700);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--forest-800);
  color: #fff;
  box-shadow: 0 22px 48px -18px rgba(18, 48, 31, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--forest-800);
  border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  color: var(--forest-800);
  border-color: var(--forest-300);
  background: var(--forest-50);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-700);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  color: var(--forest-800);
  background: var(--white);
  border-color: var(--forest-300);
  box-shadow: var(--shadow-xs);
}

.btn-clay {
  background: var(--clay-500);
  color: #fff;
}

.btn-clay:hover {
  background: var(--clay-600);
  color: #fff;
}

.btn-sm {
  min-height: 40px;
  padding: 10px 20px;
  font-size: var(--fs-xs);
}

.btn-lg {
  min-height: 54px;
  padding: 16px 32px;
  font-size: 1rem;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--forest-600);
}

.link-arrow::after {
  content: "";
  width: 14px;
  height: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9.5 1.5L13.5 5l-4 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9.5 1.5L13.5 5l-4 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Sections & rhythm
   -------------------------------------------------------------------------- */
.section {
  padding: var(--s-9) 0;
}

.section-tight {
  padding: var(--s-7) 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-alt + .section-alt {
  border-top: 1px solid var(--border);
}

.section-title {
  margin-bottom: var(--s-4);
  max-width: 22ch;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--forest-100);
  border-radius: var(--r-full);
  background: var(--forest-50);
  color: var(--forest-600);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest-400);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--s-7);
}

.section-head p {
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--text-2);
}

.section-cta {
  margin-top: var(--s-7);
}

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--s-9) + 8px) 0 var(--s-8);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: var(--fs-display);
  max-width: 20ch;
  margin-bottom: var(--s-5);
}

.page-hero p {
  font-size: var(--fs-lead);
  line-height: 1.7;
  max-width: 60ch;
}

.page-hero .hero-grid {
  align-items: center;
  gap: var(--s-8);
}

/* --------------------------------------------------------------------------
   8. Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--s-9) + 16px) 0 var(--s-9);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(111, 169, 127, 0.16),
    rgba(111, 169, 127, 0) 72%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--s-8);
  align-items: center;
}

.hero-copy h1 {
  font-size: var(--fs-display);
  max-width: 17ch;
  margin-bottom: var(--s-5);
}

.hero-copy p {
  font-size: var(--fs-lead);
  line-height: 1.72;
  max-width: 52ch;
}

.hero-illustration {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}

.hero-illustration h3 {
  margin: 0;
}

.hero-illustration p {
  margin: 0;
}

.hero-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Floating proof card over the hero visual */
.hero-panel {
  position: relative;
  display: grid;
  gap: var(--s-4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: start;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--paper);
  color: var(--text-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  color: var(--forest-600);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-clay {
  background: var(--clay-100);
  border-color: #EFD6B4;
  color: var(--clay-600);
}

/* --------------------------------------------------------------------------
   9. Trust / stats bars
   -------------------------------------------------------------------------- */
.activity-strip {
  border-block: 1px solid var(--border);
  background: var(--paper-2);
}

.activity-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--s-7);
  align-items: start;
  padding: var(--s-6) 0;
}

.waitlist-counter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.waitlist-counter-value {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color 0.3s var(--ease-soft);
}

.waitlist-counter-value.pulse {
  color: var(--forest-400);
}

.activity-feed {
  border-left: 1px solid var(--border);
  padding-left: var(--s-6);
}

.activity-feed h3 {
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.activity-note {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.activity-lines {
  display: grid;
  gap: 10px;
  min-height: 92px;
}

.activity-line {
  position: relative;
  padding-left: var(--s-4);
  color: var(--text-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-out);
}

.activity-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest-300);
}

.activity-line strong {
  font-weight: 600;
  color: var(--ink);
}

.activity-line.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.activity-line.fade-in {
  opacity: 0;
  transform: translateY(-6px);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.cards-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-soft);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(47, 107, 68, 0.05), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.card:hover::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 0;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--text-2);
}

.card .card-link {
  margin-top: auto;
  padding-top: var(--s-1);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: var(--r-sm);
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  color: var(--forest-600);
  transition: background 0.3s var(--ease-soft), transform 0.35s var(--ease-spring);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-icon.orange {
  background: var(--clay-100);
  border-color: #EFD6B4;
  color: var(--clay-600);
}

.card:hover .card-icon {
  transform: translateY(-2px) scale(1.04);
}

/* Numbered feature rows */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
}

.feature-item .feature-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--forest-400);
  padding-top: 4px;
}

.feature-item h3 {
  margin-bottom: var(--s-2);
}

.feature-item p {
  margin: 0;
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.stat-card {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  display: block;
  margin-bottom: var(--s-3);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--forest-600);
}

.stat-label {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

.two-col-wide {
  grid-template-columns: 0.85fr 1.15fr;
}

.testimonial-frame {
  position: relative;
  min-height: 264px;
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.testimonial-frame::before {
  content: "\201C";
  position: absolute;
  top: -34px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: var(--forest-50);
  pointer-events: none;
}

.testimonial {
  position: absolute;
  inset: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.testimonial p {
  margin: auto 0 0;
  font-size: var(--fs-sm);
}

.testimonial .muted {
  font-size: var(--fs-xs);
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--clay-500);
}

.star-icon {
  width: 15px;
  height: 15px;
}

.testimonial-dots {
  display: flex;
  gap: 6px;
  margin-top: var(--s-5);
}

.testimonial-dots button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: var(--line-2);
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), width 0.3s var(--ease-out);
}

.testimonial-dots button[aria-selected="true"] {
  width: 34px;
  background: var(--forest-500);
}

/* --------------------------------------------------------------------------
   13. Panels, lists, timeline
   -------------------------------------------------------------------------- */
.panel {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.panel-alt {
  background: var(--forest-800);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.panel-alt h2,
.panel-alt h3,
.panel-alt strong {
  color: #fff;
}

.panel-alt p {
  color: rgba(255, 255, 255, 0.72);
}

/* Buttons sitting on a dark panel need light-on-dark treatment, otherwise the
   forest-tinted ghost/secondary variants disappear into the background. */
.panel-alt .btn-ghost,
.panel-alt .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: none;
}

.panel-alt .btn-ghost:hover,
.panel-alt .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.panel-alt .btn-primary {
  background: #fff;
  color: var(--forest-800);
  box-shadow: none;
}

.panel-alt .btn-primary:hover {
  background: var(--forest-50);
  color: var(--forest-900);
}

.panel-alt .checklist li {
  color: rgba(255, 255, 255, 0.75);
}

.panel-alt .checklist li::before {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.panel-alt .checklist li::after {
  border-color: #fff;
}

.panel-alt .link-arrow {
  color: #fff;
}

.panel-alt .inline-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
}

.panel h3 {
  margin-bottom: var(--s-3);
}

.panel p:last-of-type {
  margin-bottom: var(--s-5);
}

.panel .btn {
  margin-top: var(--s-2);
}

.checklist {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A block directly after a checklist needs its own breathing room, since the
   checklist itself carries no bottom margin. */
.checklist + * {
  margin-top: var(--s-7);
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.62em;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--forest-500);
  border-bottom: 1.6px solid var(--forest-500);
  transform: rotate(-45deg);
}

.timeline {
  display: grid;
  gap: var(--s-6);
  margin: 0;
  padding: 0 0 0 var(--s-5);
  list-style: none;
  border-left: 1px solid var(--line-2);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(var(--s-5) * -1 - 4px);
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest-500);
  box-shadow: 0 0 0 3px var(--paper-2);
}

.timeline-item h3 {
  margin: 0 0 5px;
  min-height: 11px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--forest-600);
}

.timeline-item p {
  margin: 0;
  font-size: var(--fs-sm);
}

.list-links {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-soft);
}

.list-links a:hover {
  transform: translateY(-2px);
  border-color: var(--forest-300);
  box-shadow: var(--shadow-md);
  color: var(--forest-800);
}

.list-links a::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 10px;
  background: var(--forest-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9.5 1.5L13.5 5l-4 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9.5 1.5L13.5 5l-4 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Blog / resource cards */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.post-body {
  max-width: 68ch;
}

.post-body h2 {
  margin-top: var(--s-8);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}

.post-body h3 {
  margin-top: var(--s-6);
}

.post-body p,
.post-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post-body blockquote {
  margin: var(--s-7) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 2px solid var(--forest-300);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-style: normal;
  color: var(--ink);
}

.pull-quote {
  margin: var(--s-7) 0;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--s-4);
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.5;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft),
    background 0.2s var(--ease-soft);
  appearance: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-4);
}

select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%236E7772' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 11px;
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-4);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 4px rgba(47, 107, 68, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(196, 69, 58, 0.12);
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
  accent-color: var(--forest-600);
}

.error-text {
  min-height: 18px;
  margin-top: 6px;
  color: var(--error);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
}

.error-text:empty {
  min-height: 0;
  margin-top: 0;
}

.success-message {
  min-height: 22px;
  margin-top: var(--s-4);
  color: var(--success);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.success-message:not(:empty) {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 11px 15px;
  border: 1px solid var(--forest-100);
  border-radius: var(--r-sm);
  background: var(--forest-50);
}

.form-note {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s-4);
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   15. Media
   -------------------------------------------------------------------------- */
.invest-photo,
.media-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.invest-photo img,
.media-frame img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame.tall img {
  aspect-ratio: 3 / 4;
}

/* A media frame leading a card goes full-bleed to the card's edges. The explicit
   calc() width is required: negative margins alone cannot widen a box past its
   containing block once margins are no longer auto. */
.card > .media-frame:first-child {
  width: calc(100% + var(--s-6) * 2);
  margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) 0;
  border-inline: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.team-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  object-fit: cover;
}

.team-card h3 {
  margin: 0;
}

.team-card .role {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-500);
}

.team-card p {
  margin: 0;
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding: var(--s-9) 0 var(--s-6);
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.62);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 169, 127, 0.5),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr;
  gap: var(--s-8);
  align-items: start;
}

.footer h3,
.footer h4 {
  margin-bottom: var(--s-4);
  color: #fff;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  max-width: 42ch;
}

.footer .muted {
  color: rgba(255, 255, 255, 0.42);
  font-size: var(--fs-xs);
}

.footer a {
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--fs-sm);
  transition: color 0.2s var(--ease-soft);
}

.footer a:hover {
  color: #fff;
}

.footer-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-ink);
  color: #fff;
}

.footer input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.footer input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.footer input:focus {
  border-color: var(--forest-300);
  box-shadow: 0 0 0 4px rgba(111, 169, 127, 0.16);
}

.footer .btn-secondary {
  margin-top: var(--s-3);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-ink);
  color: #fff;
  box-shadow: none;
}

.footer .btn-secondary:hover {
  background: var(--forest-500);
  border-color: var(--forest-500);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-ink);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: var(--fs-xs);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}

/* --------------------------------------------------------------------------
   17. Motion on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 68px;
  }

  .hero-grid,
  .two-col,
  .two-col-wide,
  .page-grid,
  .activity-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: var(--s-7);
  }

  .cards-grid,
  .cards-grid-2,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--s-8) + 8px);
  }

  .page-hero {
    padding-top: calc(var(--s-8) + 8px);
  }

  .activity-feed {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--s-5);
  }

  .hero-copy h1,
  .page-hero h1,
  .section-title {
    max-width: none;
  }

  .two-col {
    gap: var(--s-7);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --s-9: 64px;
    --s-8: 48px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    background: rgba(251, 250, 247, 0.96);
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: var(--s-2);
    padding-block: 10px;
  }

  .site-nav {
    order: 3;
    display: grid;
    gap: 2px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.4s var(--ease-out), opacity 0.28s var(--ease-soft),
      transform 0.3s var(--ease-out), padding 0.3s var(--ease-soft);
  }

  .site-nav.is-open {
    max-height: 460px;
    opacity: 1;
    transform: none;
    padding-top: var(--s-3);
    border-top: 1px solid var(--border);
    margin-top: var(--s-2);
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 1rem;
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: var(--forest-50);
  }

  .nav-cta {
    width: 100%;
    margin: var(--s-3) 0 0;
    justify-content: center;
  }

  .cards-grid,
  .cards-grid-2,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn-row,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-row .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-illustration,
  .panel,
  .card,
  .stat-card,
  .testimonial-frame {
    padding: var(--s-5);
    border-radius: var(--r-md);
  }

  .card > .media-frame:first-child {
    width: calc(100% + var(--s-5) * 2);
    margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) 0;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  .testimonial-frame {
    min-height: 320px;
  }

  .testimonial {
    inset: var(--s-5);
  }

  .footer {
    padding-top: var(--s-8);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  #curtain .curtain-wordmark {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }
}

@media (max-width: 420px) {
  .section-kicker {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  .home-main,
  html.entry-hidden .home-main {
    opacity: 1 !important;
    transform: none !important;
  }

  html.entry-hidden {
    overflow: auto;
  }

  #curtain {
    display: none;
  }

  .btn:hover,
  .card:hover,
  .stat-card:hover,
  .list-links a:hover,
  .team-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .footer,
  #curtain,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
  }

  [data-reveal],
  .home-main {
    opacity: 1 !important;
    transform: none !important;
  }
}
