/* ==========================================================================
   MowSeason design system
   Cut grass fresh: deep lawn green, morning sky, turned soil.
   Motif: mown stripes on the diagonal, organic curves, sunny contrast.
   ========================================================================== */

:root {
  /* --- brief palette --------------------------------------------------- */
  --bg: #F5FAF3;
  --surface: #FFFFFF;
  --ink: #152218;
  --primary: #3E7D34;
  --accent: #7EC8E3;
  --muted: #5F7060;

  /* --- derived greens (the cut and the uncut pass) --------------------- */
  --green-050: #EDF6EA;
  --green-100: #DCEDD6;
  --green-200: #BEDCB4;
  --green-300: #96C889;
  --green-400: #6BA75E;
  --green-500: #3E7D34;
  --green-600: #336728;
  --green-700: #27501F;
  --green-800: #1B3A16;
  --green-900: #122A11;

  /* --- morning sky ----------------------------------------------------- */
  --sky-050: #F0FAFD;
  --sky-100: #DCF2F9;
  --sky-200: #B7E4F1;
  --sky-300: #7EC8E3;
  --sky-500: #3F9BBE;
  --sky-700: #235F77;

  /* --- turned soil and low sun ----------------------------------------- */
  --soil-100: #EADFD3;
  --soil-300: #C4A588;
  --soil-500: #7A5A3C;
  --soil-700: #4B3623;
  --sun-300: #F6DC97;
  --sun-500: #E8B93F;
  --sun-700: #B98A19;

  /* --- ink scale -------------------------------------------------------- */
  --ink-900: #152218;
  --ink-700: #2C3E30;
  --ink-500: #5F7060;
  --ink-300: #8C9A8D;
  --ink-100: #C9D5C8;
  --hairline: #DDE7DA;

  /* --- semantic --------------------------------------------------------- */
  --page: var(--bg);
  --card: var(--surface);
  --text: var(--ink-900);
  --text-soft: var(--muted);
  --rule: var(--hairline);
  --season: var(--green-500);
  --season-soft: var(--green-100);

  /* --- type scale (fluid) ---------------------------------------------- */
  --font-display: "Josefin Sans", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Cabin", "Segoe UI", Roboto, system-ui, sans-serif;
  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --t-lg: clamp(1.11rem, 1.05rem + 0.3vw, 1.28rem);
  --t-xl: clamp(1.34rem, 1.2rem + 0.7vw, 1.72rem);
  --t-2xl: clamp(1.62rem, 1.36rem + 1.25vw, 2.35rem);
  --t-3xl: clamp(2.05rem, 1.6rem + 2.1vw, 3.15rem);
  --t-4xl: clamp(2.45rem, 1.7rem + 3.4vw, 4.3rem);

  /* --- spacing ---------------------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 3.75rem;
  --s-9: 5rem;
  --s-10: 6.75rem;

  /* --- radii: organic curves ------------------------------------------- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;
  --r-pill: 999px;
  --r-leaf: 4px 30px 4px 30px;
  --r-blob: 58% 42% 47% 53% / 43% 51% 49% 57%;

  /* --- shadows ---------------------------------------------------------- */
  --sh-1: 0 1px 2px rgba(21, 34, 24, 0.05), 0 2px 8px rgba(21, 34, 24, 0.04);
  --sh-2: 0 2px 6px rgba(21, 34, 24, 0.06), 0 12px 28px rgba(21, 34, 24, 0.07);
  --sh-3: 0 6px 14px rgba(21, 34, 24, 0.08), 0 26px 60px rgba(21, 34, 24, 0.11);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  /* --- layout ------------------------------------------------------------ */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 74px;

  /* --- motion ------------------------------------------------------------ */
  --ease-turf: cubic-bezier(0.22, 0.72, 0.24, 1);
  --dur-1: 180ms;
  --dur-2: 340ms;
  --dur-3: 780ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0 0 var(--s-4);
  color: var(--ink-900);
}

h1 { font-size: var(--t-4xl); letter-spacing: -0.012em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.008em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

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

a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }

strong { font-weight: 700; color: var(--ink-900); }
small { font-size: var(--t-sm); }

hr {
  border: 0;
  height: 3px;
  margin: var(--s-7) 0;
  background: repeating-linear-gradient(115deg,
    var(--green-200) 0 10px, transparent 10px 20px);
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -80px;
  z-index: 200;
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  transition: top var(--dur-2) var(--ease-turf);
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--ink-900);
  outline-offset: 3px;
}

::selection { background: var(--sky-200); color: var(--ink-900); }

/* ==========================================================================
   The mown stripe engine
   ========================================================================== */

.stripes,
.stripe-field {
  position: relative;
  isolation: isolate;
}

/* Diagonal cut passes, the signature texture of the whole site. */
.stripe-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(118deg,
    color-mix(in srgb, var(--season) 9%, transparent) 0 26px,
    transparent 26px 52px);
  pointer-events: none;
}

.stripe-field--tight::before {
  background-image: repeating-linear-gradient(118deg,
    color-mix(in srgb, var(--season) 13%, transparent) 0 13px,
    transparent 13px 26px);
}

.stripe-rule {
  height: 10px;
  width: 92px;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--season) 0 7px, transparent 7px 14px);
  margin-bottom: var(--s-4);
}

/* The curved horizon that separates bands, an organic mowing edge. */
.edge-curve {
  position: absolute;
  left: -4vw;
  right: -4vw;
  height: 72px;
  background: inherit;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.edge-curve--top { top: -46px; }
.edge-curve--bottom { bottom: -46px; border-radius: 0 0 50% 50% / 0 0 100% 100%; }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  width: min(100% - 2.25rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.25rem, var(--wrap-narrow)); }

.band {
  position: relative;
  padding-block: var(--s-9);
}
.band--tight { padding-block: var(--s-8); }
.band--wide { padding-block: var(--s-10); }

/* Seasonal color shift: each band sits a little further into the year. */
.season-1 { --season: var(--green-300); --season-soft: var(--green-050); }
.season-2 { --season: var(--green-500); --season-soft: var(--green-100); }
.season-3 { --season: var(--sky-500); --season-soft: var(--sky-100); }
.season-4 { --season: var(--green-600); --season-soft: var(--green-100); }
.season-5 { --season: var(--sun-500); --season-soft: #FBF2D9; }
.season-6 { --season: var(--soil-500); --season-soft: var(--soil-100); }

.band--surface { background: var(--surface); }
.band--soft { background: var(--green-050); }
.band--deep {
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(126, 200, 227, 0.22), transparent 62%),
    linear-gradient(168deg, var(--green-800), var(--green-900));
  color: #EAF3E6;
}
.band--deep h2, .band--deep h3 { color: #FFFFFF; }
.band--deep a { color: var(--sky-200); }

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

.section-head { max-width: 660px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .stripe-rule { margin-inline: auto; }
.section-head p { color: var(--text-soft); font-size: var(--t-lg); margin-bottom: 0; }
.band--deep .section-head p { color: #C4D8BF; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: var(--s-3);
}
.band--deep .eyebrow { color: var(--sky-300); }
.eyebrow::before {
  content: "";
  width: 22px; height: 6px;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    currentColor 0 4px, transparent 4px 8px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--green-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
  line-height: 1.2;
  padding: 0.86rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* own stacking context, so the hover stripe overlay below can sit behind the
     label rather than washing across it */
  isolation: isolate;
  transition: transform var(--dur-1) var(--ease-turf),
              box-shadow var(--dur-2) var(--ease-turf),
              background-color var(--dur-2) var(--ease-turf);
  box-shadow: 0 2px 0 var(--green-700), var(--sh-1);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(118deg,
    rgba(255, 255, 255, 0.22) 0 8px, transparent 8px 16px);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-turf);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
/* A button is a link as well, so link, hover, focus and active colours from
   elsewhere can reach its label. Pin the label to the button's own foreground
   in every state: #fff on --green-500 reads at roughly 5:1. */
.btn:link,
.btn:visited,
.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn:active { color: var(--btn-fg); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-700);
  border-color: var(--green-300);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--green-050); }

.btn--sky {
  --btn-bg: var(--sky-300);
  --btn-fg: var(--ink-900);
  box-shadow: 0 2px 0 var(--sky-500), var(--sh-1);
}

.btn--wide { width: 100%; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.94rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease-turf),
              border-color var(--dur-2) var(--ease-turf),
              box-shadow var(--dur-2) var(--ease-turf);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background-image: repeating-linear-gradient(118deg,
    var(--green-300) 0 9px, var(--green-050) 9px 18px);
  opacity: 0.85;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--sh-2);
}

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

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brandmark svg { flex: none; }
.brandmark span i {
  font-style: normal;
  color: var(--green-500);
}
.brandmark:hover { color: var(--green-700); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 42px;
  border: 2px solid var(--green-200);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--green-700);
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--green-700);
  transition: transform var(--dur-2) var(--ease-turf);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-700);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 5px;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 5px, transparent 5px 10px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-turf);
}
.nav a:not(.btn):hover { color: var(--green-700); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: var(--s-8);
  padding-bottom: var(--s-9);
  background:
    radial-gradient(85% 60% at 12% 0%, var(--sky-050), transparent 60%),
    linear-gradient(180deg, #FBFDFA 0%, var(--bg) 68%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 62%;
  background-image: repeating-linear-gradient(118deg,
    rgba(62, 125, 52, 0.075) 0 30px, transparent 30px 60px);
  transform: skewY(-3deg);
  pointer-events: none;
}
/* low morning sun, a soft organic disc behind the copy */
.hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: 46%;
  top: -180px;
  border-radius: var(--r-blob);
  background: radial-gradient(circle at 40% 40%, rgba(232, 185, 63, 0.28), rgba(232, 185, 63, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}

/* The home hero headline sits one step below the global h1: --t-4xl is shared
   with the page, article and magazine mastheads, so the reduction is scoped
   here instead of being taken out of the h1 token. Same face, same weight,
   still fluid, about a fifth smaller at desktop. */
.hero h1 {
  font-size: clamp(1.95rem, 1.4rem + 2.6vw, 3.35rem);
  margin-bottom: var(--s-5);
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--green-600);
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.03em;
  height: 0.28em;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--sun-300) 0 9px, var(--sun-500) 9px 18px);
  opacity: 0.5;
  z-index: -1;
}

.hero-lede {
  font-size: var(--t-lg);
  color: var(--ink-700);
  max-width: 54ch;
  margin-bottom: var(--s-6);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 2px dashed var(--green-200);
  list-style: none;
  padding-left: 0;
}
.trust-strip li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-700);
  margin: 0;
  max-width: 20ch;
}
.trust-strip svg { flex: none; margin-top: 2px; color: var(--green-500); }

/* Photo plate: an organic curved crop with a mown stripe mat behind it. */
.photo-plate {
  position: relative;
  padding: 14px;
}
.photo-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-blob);
  background-image: repeating-linear-gradient(118deg,
    var(--green-200) 0 14px, var(--green-050) 14px 28px);
  transform: rotate(-2deg);
}
.photo-plate img {
  position: relative;
  width: 100%;
  border-radius: 28px 96px 28px 96px;
  box-shadow: var(--sh-3);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.photo-plate--flip img { border-radius: 96px 28px 96px 28px; }
.photo-plate--flip::before { transform: rotate(2deg); }

.photo-tag {
  position: absolute;
  right: -6px;
  bottom: 22px;
  z-index: 2;
  background: var(--surface);
  border: 2px solid var(--green-200);
  border-radius: var(--r-lg);
  padding: 0.7rem 0.95rem;
  box-shadow: var(--sh-2);
  max-width: 232px;
}
.photo-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1;
  color: var(--green-600);
}
.photo-tag span {
  display: block;
  font-size: var(--t-xs);
  color: var(--text-soft);
  line-height: 1.35;
  margin-top: 3px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-turf),
              box-shadow var(--dur-2) var(--ease-turf),
              border-color var(--dur-2) var(--ease-turf);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: color-mix(in srgb, var(--season) 40%, var(--rule));
}
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--text-soft); margin-bottom: 0; }

/* Problem cards carry a torn soil edge and a cost line. */
.pain-card {
  padding-top: var(--s-6);
  border-radius: var(--r-lg) var(--r-lg) var(--r-xl) var(--r-xl);
}
.pain-card::before {
  content: "";
  position: absolute;
  left: var(--s-5);
  right: var(--s-5);
  top: 0;
  height: 6px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--soil-500) 0 6px, var(--soil-300) 6px 12px);
}
.cost-line {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--soil-700);
  background: var(--soil-100);
  border-radius: var(--r-leaf);
  padding: 0.36rem 0.8rem;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-5);
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 4.35rem;
  margin: 0;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--green-500);
  border-radius: 50% 50% 50% 6px;
  box-shadow: 0 3px 0 var(--green-700);
}
.step:nth-child(2)::before { background: var(--green-600); box-shadow: 0 3px 0 var(--green-800); }
.step:nth-child(3)::before { background: var(--sky-500); box-shadow: 0 3px 0 var(--sky-700); }
.step:nth-child(4)::before { background: var(--soil-500); box-shadow: 0 3px 0 var(--soil-700); }
.step::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: -20px;
  width: 3px;
  background-image: repeating-linear-gradient(180deg,
    var(--green-200) 0 7px, transparent 7px 14px);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: var(--s-2); padding-top: 0.55rem; }
.step p { color: var(--text-soft); margin-bottom: 0; }

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

/* ==========================================================================
   Features
   ========================================================================== */

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl) var(--r-md) var(--r-xl) var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur-2) var(--ease-turf), box-shadow var(--dur-2) var(--ease-turf);
}
.feature::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 150px; height: 150px;
  border-radius: var(--r-blob);
  background: color-mix(in srgb, var(--season) 12%, transparent);
  transition: transform var(--dur-3) var(--ease-turf);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.feature:hover::before { transform: scale(1.22) rotate(14deg); }
.feature h3 { margin: 0; }
.feature p { color: var(--text-soft); margin: 0; }

.leaf-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  background: var(--season-soft);
  color: var(--green-700);
  border: 1px solid color-mix(in srgb, var(--season) 32%, transparent);
}
.leaf-icon svg { width: 26px; height: 26px; }

/* ==========================================================================
   Outcomes
   ========================================================================== */

.outcome {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(190, 220, 180, 0.24);
  overflow: hidden;
}
.outcome::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 7px;
  background-image: repeating-linear-gradient(118deg,
    var(--sky-300) 0 8px, transparent 8px 16px);
}
.outcome .figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.6rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.02em;
}
.outcome .figure sup {
  font-size: 0.44em;
  top: -0.85em;
  margin-left: 2px;
  color: var(--sky-300);
}
.outcome h3 {
  font-size: var(--t-lg);
  margin: var(--s-3) 0 var(--s-2);
  color: #F1F8EE;
}
.outcome p { color: #B9CFB4; margin: 0; font-size: var(--t-sm); line-height: 1.6; }

/* ==========================================================================
   Testimonials and results
   ========================================================================== */

.testimonial {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 6px;
  padding: var(--s-6) var(--s-5) var(--s-5);
  margin: 0;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.testimonial::before {
  content: "";
  position: absolute;
  top: 0; left: var(--s-5); right: var(--s-5);
  height: 7px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--green-400) 0 7px, var(--green-100) 7px 14px);
}
.testimonial p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-700);
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--green-200);
}
.avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 7px;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 6px, var(--green-600) 6px 12px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.testimonial cite {
  font-style: normal;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}
.testimonial .who {
  display: block;
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.35;
}

.results-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--s-7);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--green-200);
  background: var(--surface);
}
.result {
  padding: var(--s-5);
  text-align: center;
  border-right: 2px dashed var(--green-100);
  background-image: repeating-linear-gradient(118deg,
    rgba(62, 125, 52, 0.045) 0 18px, transparent 18px 36px);
}
.result:last-child { border-right: 0; }
.result b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
  line-height: 1;
  color: var(--green-600);
}
.result span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--green-100);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-turf), box-shadow var(--dur-2) var(--ease-turf);
}
.tier::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 84px;
  background-image: repeating-linear-gradient(118deg,
    color-mix(in srgb, var(--season) 14%, transparent) 0 16px, transparent 16px 32px);
  pointer-events: none;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }

.tier--pick {
  border-color: var(--green-500);
  box-shadow: 0 0 0 5px var(--green-050), var(--sh-3);
}
.tier-flag {
  position: absolute;
  top: 0; right: 0;
  background: var(--green-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 0 0 0 var(--r-md);
}

.tier h3 { position: relative; margin-bottom: var(--s-1); }
.tier .tier-for {
  position: relative;
  font-size: var(--t-sm);
  color: var(--text-soft);
  margin-bottom: var(--s-4);
  min-height: 2.6em;
}
.tier .amount {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  margin-bottom: var(--s-4);
}
.tier .amount b {
  font-size: clamp(2.35rem, 1.9rem + 1.9vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.tier .amount span { font-size: var(--t-sm); color: var(--text-soft); font-family: var(--font-body); }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.tier li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.97rem;
  color: var(--ink-700);
  margin: 0;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 15px; height: 15px;
  border-radius: 50% 50% 50% 3px;
  background: var(--green-400);
  box-shadow: inset -3px -3px 0 rgba(21, 34, 24, 0.12);
}

.billing-note {
  margin-top: var(--s-5);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--text-soft);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  display: grid;
  gap: var(--s-3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-turf), box-shadow var(--dur-2) var(--ease-turf);
}
.faq-item:has(button[aria-expanded="true"]) {
  border-color: var(--green-300);
  box-shadow: var(--sh-2);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--ink-900);
  background: none;
  border: 0;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  line-height: 1.28;
}
.faq-q:hover { color: var(--green-700); }
.faq-mark {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 5px;
  background: var(--green-050);
  border: 1px solid var(--green-200);
  position: relative;
  margin-top: 2px;
  transition: background-color var(--dur-2) var(--ease-turf), transform var(--dur-2) var(--ease-turf);
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--green-700);
  border-radius: 2px;
}
.faq-mark::before { width: 13px; height: 2px; }
.faq-mark::after { width: 2px; height: 13px; transition: transform var(--dur-2) var(--ease-turf); }
.faq-q[aria-expanded="true"] .faq-mark { background: var(--green-500); transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-mark::before,
.faq-q[aria-expanded="true"] .faq-mark::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-mark::after { transform: scaleY(0); }

.faq-a {
  padding: 0 1.2rem 1.15rem;
  border-top: 1px dashed var(--green-200);
  margin-top: -1px;
}
.faq-a p { color: var(--text-soft); margin: 1rem 0 0; }
.faq-a[hidden] { display: none; }

/* ==========================================================================
   Contact and form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-8);
  align-items: start;
}

.contact-aside p { color: var(--ink-700); }
.contact-aside .checklist {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: grid;
  gap: 0.7rem;
}
.contact-aside .checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-700);
  margin: 0;
}
.contact-aside .checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 4px;
  background-image: repeating-linear-gradient(118deg,
    var(--green-400) 0 4px, var(--green-600) 4px 8px);
}

.form-shell {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--green-100);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--sh-3);
}
.form-shell::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto -2px;
  height: 12px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 12px, var(--sky-300) 12px 24px);
}

.field { margin-bottom: var(--s-4); }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}
.hint {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--text-soft);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  background: #FCFEFB;
  border: 2px solid var(--green-100);
  border-radius: var(--r-md);
  padding: 0.72rem 0.85rem;
  transition: border-color var(--dur-1) var(--ease-turf), box-shadow var(--dur-1) var(--ease-turf);
}
textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-600) 50%),
                    linear-gradient(135deg, var(--green-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 1.32rem, calc(100% - 14px) 1.32rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 4px var(--green-050);
  outline: none;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 2px;
}
[aria-invalid="true"] { border-color: #B4402C; background: #FEF6F4; }

.error-note {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: #8E2F1E;
  margin-top: 0.3rem;
  min-height: 1em;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: var(--s-5) 0 var(--s-4);
}
.consent input {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--green-500);
}
.consent label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.94rem;
  color: var(--ink-700);
  margin: 0;
}

.form-foot {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--text-soft);
  text-align: center;
}

/* ==========================================================================
   Author byline
   ========================================================================== */

.byline {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-8);
  padding: var(--s-5);
  background: var(--green-050);
  border: 1px solid var(--green-200);
  border-left: 7px solid var(--green-500);
  border-radius: var(--r-md);
}
.byline p { margin: 0; color: var(--ink-700); font-size: 0.98rem; }
.byline .seal {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50% 50% 50% 8px;
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 7px, var(--green-600) 7px 14px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--green-900);
  color: #C8DCC2;
  padding-top: var(--s-9);
  margin-top: var(--s-9);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 14px, var(--sky-300) 14px 28px, var(--sun-500) 28px 42px);
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #C8DCC2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}
.footer-brand .brandmark { color: #fff; }
.footer-brand .brandmark span i { color: var(--sky-300); }
.footer-brand p {
  margin: var(--s-4) 0 var(--s-5);
  font-size: 0.96rem;
  color: #A9C2A3;
  max-width: 34ch;
}
.footer-col h3 {
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col li { margin: 0; font-size: 0.96rem; }

.social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.social-row a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 7px;
  border: 1px solid rgba(200, 220, 194, 0.34);
  color: #C8DCC2;
  transition: background-color var(--dur-2) var(--ease-turf), color var(--dur-2) var(--ease-turf),
              transform var(--dur-2) var(--ease-turf);
}
.social-row a:hover {
  background: var(--green-500);
  color: #fff;
  transform: translateY(-2px);
}
.social-row svg { width: 19px; height: 19px; }

.publisher-line { margin-top: var(--s-4); font-size: 0.9rem; color: #A9C2A3; }

.base-bar {
  border-top: 1px solid rgba(200, 220, 194, 0.2);
  padding: var(--s-4) 0 var(--s-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.9rem;
  color: #9FB89A;
}

/* ==========================================================================
   Interior pages
   ========================================================================== */

.page-head {
  position: relative;
  padding-block: var(--s-8) var(--s-7);
  background:
    radial-gradient(70% 120% at 8% 0%, var(--sky-050), transparent 62%),
    linear-gradient(180deg, #FBFDFA, var(--bg));
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -60%;
  width: 460px; height: 460px;
  border-radius: var(--r-blob);
  background-image: repeating-linear-gradient(118deg,
    rgba(62, 125, 52, 0.1) 0 16px, transparent 16px 32px);
  pointer-events: none;
}
.page-head h1 { max-width: 20ch; }
.page-head p {
  max-width: 62ch;
  font-size: var(--t-lg);
  color: var(--ink-700);
  margin-bottom: 0;
}

.crumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
}
.crumbs li { margin: 0; display: flex; gap: 0.45rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--green-300); }

.prose {
  max-width: 74ch;
}
.prose h2 {
  font-size: var(--t-2xl);
  margin-top: var(--s-8);
  padding-top: var(--s-3);
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(118deg,
    var(--green-300) 0 8px, transparent 8px 16px) 3;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { color: var(--ink-700); }
.prose li { margin-bottom: 0.5rem; }
.prose ul { padding-left: 1.3rem; }

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: grid;
  gap: 0;
  border: 2px solid var(--green-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.fact-list li {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--s-4);
  padding: 0.7rem 1rem;
  margin: 0;
  border-bottom: 1px dashed var(--green-100);
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list li:nth-child(odd) { background: rgba(237, 246, 234, 0.55); }
.fact-list dfn, .fact-list b {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--ink-900);
}

.map-group {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
}
.map-group h2 { font-size: var(--t-xl); margin-top: 0; border: 0; padding-top: 0; }
.map-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.map-group li { margin: 0; }
.map-group a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.map-group a:hover { text-decoration: underline; }
.map-group span { display: block; font-size: 0.94rem; color: var(--text-soft); }

/* Author page */
.author-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.author-portrait {
  position: relative;
  padding: 12px;
}
.author-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-blob);
  background-image: repeating-linear-gradient(118deg,
    var(--green-200) 0 12px, var(--green-050) 12px 24px);
}
.author-portrait img {
  position: relative;
  width: 100%;
  border-radius: 24px 78px 24px 78px;
  box-shadow: var(--sh-2);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.profile-links {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.profile-links li { margin: 0; }
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.42rem 0.85rem;
  border: 2px solid var(--green-200);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--green-700);
}
.profile-links a:hover { background: var(--green-050); border-color: var(--green-400); }

.callout {
  background: var(--green-050);
  border: 1px solid var(--green-200);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-6) 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Thanks and 404 */
.center-stage {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding-block: var(--s-9);
}
.center-stage .stripe-rule { margin-inline: auto; }
.center-stage .btn-row { justify-content: center; }
.big-mark {
  width: 108px; height: 108px;
  margin: 0 auto var(--s-5);
  border-radius: var(--r-blob);
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(118deg,
    var(--green-100) 0 10px, var(--green-050) 10px 20px);
  border: 2px solid var(--green-200);
  color: var(--green-600);
}
.big-mark svg { width: 52px; height: 52px; }

/* ==========================================================================
   Reveal motion: the mown stripe wipe
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-3) var(--ease-turf), transform var(--dur-3) var(--ease-turf);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }
.reveal:nth-child(6) { transition-delay: 400ms; }

.wipe { position: relative; }
.wipe::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 15px, var(--green-100) 15px 30px);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 900ms var(--ease-turf);
}
.wipe.is-in::after { transform: scaleX(0); }

.js-off .reveal { opacity: 1; transform: none; }
.js-off .wipe::after { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: var(--s-6); }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }
  .hero-grid,
  .how-grid,
  .contact-grid,
  .author-hero { grid-template-columns: minmax(0, 1fr); }
  .author-portrait { max-width: 300px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .hero h1 { max-width: 100%; }
  .hero::after { right: 8%; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4);
    background: var(--surface);
    border-bottom: 3px solid var(--green-200);
    box-shadow: var(--sh-3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px dashed var(--green-100); }
  .nav a:not(.btn) { display: block; padding: 0.8rem 0.35rem; font-size: 1.06rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--s-4); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 700px) {
  .band { padding-block: var(--s-8); }
  .band--wide { padding-block: var(--s-8); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .results-strip { grid-template-columns: minmax(0, 1fr); }
  .result { border-right: 0; border-bottom: 2px dashed var(--green-100); }
  .result:last-child { border-bottom: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .fact-list li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .photo-tag { right: 4px; bottom: 8px; max-width: 200px; }
  .base-bar { flex-direction: column; }
}

@media (max-width: 400px) {
  .photo-plate img { border-radius: 20px 56px 20px 56px; }
  .btn { width: 100%; }
  .btn-row { gap: var(--s-2); }
  .photo-tag { position: static; margin-top: var(--s-4); max-width: none; }
}

@media (min-width: 1400px) {
  :root { --wrap: 1260px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reduced motion: everything holds still
   ========================================================================== */

@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .wipe::after { display: none !important; }
  .btn:hover, .card:hover, .tier:hover, .feature:hover { transform: none !important; }
}

/* ==========================================================================
   The Cut List: the magazine
   Same tokens, same typefaces, same mown stripe motif. Nothing new is invented
   here, the article pages simply reuse the season palette at reading widths.
   ========================================================================== */

/* Current section marker in the header and footer navigation. */
.nav a:not(.btn)[aria-current="page"] { color: var(--green-700); }
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

/* Seven navigation items need a little more room on mid size laptops. */
@media (min-width: 941px) and (max-width: 1180px) {
  .nav { gap: var(--s-4); }
  .nav ul { gap: var(--s-4); }
  .nav a:not(.btn) { font-size: 0.95rem; }
}

/* --- shared reading measure ------------------------------------------- */
.mag-measure { width: min(100% - 2.25rem, 72ch); margin-inline: auto; }

.mag-crumbs { margin-bottom: var(--s-4); }
.mag-crumbs .crumbs { margin-bottom: 0; }
.mag-crumbs .crumbs li:last-child span { color: var(--ink-700); }

.mag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green-300);
  display: inline-block;
}

/* ==========================================================================
   Magazine masthead and index grid
   ========================================================================== */

.mag-masthead {
  position: relative;
  padding-block: var(--s-8) var(--s-7);
  background:
    radial-gradient(72% 120% at 6% 0%, var(--sky-050), transparent 64%),
    linear-gradient(180deg, #FBFDFA, var(--bg));
  overflow: hidden;
}
.mag-masthead::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -58%;
  width: 480px; height: 480px;
  border-radius: var(--r-blob);
  background-image: repeating-linear-gradient(118deg,
    rgba(62, 125, 52, 0.1) 0 16px, transparent 16px 32px);
  pointer-events: none;
}
.mag-masthead__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: var(--s-7);
  align-items: end;
}
.mag-masthead h1 { max-width: 14ch; }
.mag-masthead__note {
  font-size: var(--t-sm);
  color: var(--text-soft);
  margin-bottom: 0;
}
.mag-masthead__facts {
  margin: 0;
  border: 2px solid var(--green-100);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.mag-masthead__facts > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--s-3);
  padding: 0.7rem 1rem;
  border-bottom: 1px dashed var(--green-100);
}
.mag-masthead__facts > div:last-child { border-bottom: 0; }
.mag-masthead__facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-600);
  align-self: center;
}
.mag-masthead__facts dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.mag-index { padding-block: var(--s-8); }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
  align-items: stretch;
}

/* ==========================================================================
   Article card
   ========================================================================== */

.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-turf),
              box-shadow var(--dur-2) var(--ease-turf),
              border-color var(--dur-2) var(--ease-turf);
}
.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--green-200);
}
.mag-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--green-050);
}
.mag-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-turf);
}
.mag-card:hover .mag-card__media img { transform: scale(1.035); }
.mag-card__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 8px, var(--green-300) 8px 16px);
}
.mag-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  flex: 1 1 auto;
}
.mag-card__kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green-600);
}
.mag-card__title {
  margin: 0;
  font-size: var(--t-lg);
  line-height: 1.18;
}
.mag-card__title a {
  color: var(--ink-900);
  text-decoration: none;
  background-image: repeating-linear-gradient(118deg,
    var(--green-300) 0 6px, transparent 6px 12px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 4px;
  transition: background-size var(--dur-2) var(--ease-turf), color var(--dur-1) linear;
  padding-bottom: 2px;
}
.mag-card__title a:hover { color: var(--green-700); background-size: 100% 4px; }
.mag-card__dek {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}
.mag-card__meta {
  margin: auto 0 0;
  padding-top: var(--s-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  color: var(--ink-500);
  border-top: 1px dashed var(--green-100);
}

/* The lead report runs the full width of the grid with a larger headline. */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  border-radius: var(--r-xl);
  border-color: var(--green-200);
  box-shadow: var(--sh-2);
}
.mag-card.lead .mag-card__media { flex: 1 1 56%; min-width: 0; }
.mag-card.lead .mag-card__media img { height: 100%; aspect-ratio: 16 / 10; }
.mag-card.lead .mag-card__media::after {
  left: auto;
  top: 0;
  bottom: 0;
  right: 0;
  width: 7px;
  height: auto;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 9px, var(--green-300) 9px 18px);
}
.mag-card.lead .mag-card__body {
  flex: 1 1 44%;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-7);
}
.mag-card.lead .mag-card__kicker::before {
  content: "Lead report / ";
  color: var(--soil-500);
}
.mag-card.lead .mag-card__title { font-size: var(--t-2xl); }
.mag-card.lead .mag-card__dek { font-size: var(--t-lg); color: var(--ink-700); }

.mag-foot-cta h2 { max-width: 22ch; }
.mag-foot-cta p { color: var(--ink-700); }
.mag-foot-cta .btn { margin-right: var(--s-2); margin-bottom: var(--s-2); }

/* ==========================================================================
   Article page: header, figure, body
   ========================================================================== */

.mag-head {
  position: relative;
  padding-block: var(--s-8) var(--s-6);
  background:
    radial-gradient(76% 130% at 92% 0%, var(--sky-050), transparent 62%),
    linear-gradient(180deg, #FBFDFA, var(--bg));
  overflow: hidden;
}
.mag-head h1 { margin-bottom: var(--s-4); }
.mag-standfirst {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 60ch;
  margin-bottom: var(--s-5);
}

.mag-byline {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(118deg,
    var(--green-300) 0 8px, transparent 8px 16px) 3;
}
.mag-byline__seal {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50% 50% 50% 8px;
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 7px, var(--green-600) 7px 14px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.mag-byline__text { min-width: 0; }
.mag-byline__who {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.mag-byline__who a { color: inherit; text-decoration-color: var(--green-300); }
.mag-byline__who a:hover { color: var(--green-700); }
.mag-byline__meta {
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
}

.mag-figure { margin: 0; padding-block: var(--s-6) var(--s-7); }
.mag-figure__plate {
  position: relative;
  border-radius: 26px 74px 26px 74px;
  overflow: hidden;
  box-shadow: var(--sh-3);
  border: 1px solid var(--green-100);
}
.mag-figure__plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--text-soft);
  max-width: 70ch;
  border-left: 4px solid var(--green-200);
  padding-left: var(--s-3);
}

/* --- body typography: a 64 to 75 character measure ---------------------- */
.mag-prose {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink-700);
}
.mag-prose > *:first-child { margin-top: 0; }
.mag-prose p { margin: 0 0 var(--s-5); }
.mag-prose h2 {
  font-size: var(--t-2xl);
  line-height: 1.14;
  color: var(--ink-900);
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-4);
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(118deg,
    var(--green-400) 0 8px, transparent 8px 16px) 3;
}
.mag-prose h3 {
  font-size: var(--t-xl);
  color: var(--ink-900);
  margin: var(--s-6) 0 var(--s-3);
}
.mag-prose h3::before {
  content: "";
  display: inline-block;
  width: 16px; height: 5px;
  margin-right: 0.55rem;
  vertical-align: 0.22em;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--sky-500) 0 4px, transparent 4px 8px);
}
.mag-prose ul, .mag-prose ol { margin: 0 0 var(--s-5); padding-left: 1.35rem; }
.mag-prose li { margin-bottom: 0.55rem; }
.mag-prose li::marker { color: var(--green-500); }
.mag-prose strong { color: var(--ink-900); }
.mag-prose a { color: var(--green-600); text-underline-offset: 3px; }
.mag-prose a:hover { color: var(--green-700); }
.mag-prose blockquote {
  margin: 0 0 var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--green-050);
  border-left: 7px solid var(--green-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-900);
  font-size: var(--t-lg);
  line-height: 1.55;
}
.mag-prose blockquote p:last-child { margin-bottom: 0; }
.mag-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s-5);
  font-size: 0.97rem;
  background: var(--surface);
  border: 2px solid var(--green-100);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mag-prose th, .mag-prose td {
  text-align: left;
  padding: 0.62rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
}
.mag-prose th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  background: var(--green-050);
}
.mag-prose tr:last-child td { border-bottom: 0; }

/* --- the contextual reading links dropped between sections -------------- */
.inline-read {
  margin: var(--s-6) 0;
  padding: 0.85rem 1.1rem 0.85rem 3.1rem;
  position: relative;
  background: var(--sky-050);
  border: 1px solid var(--sky-200);
  border-radius: var(--r-leaf);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--sky-700);
}
.inline-read::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 20px; height: 6px;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--sky-500) 0 5px, transparent 5px 10px);
}
.inline-read a { color: var(--green-700); text-underline-offset: 3px; }
.inline-read a:hover { color: var(--green-600); }

/* ==========================================================================
   Call to action, author box, Read also
   ========================================================================== */

.mag-cta {
  position: relative;
  margin: var(--s-8) 0 0;
  padding: var(--s-6) var(--s-6) var(--s-5);
  background: var(--green-050);
  border: 1px solid var(--green-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mag-cta__stripe {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 10px, var(--sun-500) 10px 20px);
}
.mag-cta h2 { font-size: var(--t-xl); margin: var(--s-2) 0 var(--s-3); }
.mag-cta p { color: var(--ink-700); margin-bottom: var(--s-4); }
.mag-cta__act { margin-bottom: 0; }

.mag-author {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  margin: var(--s-7) 0 var(--s-9);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 7px solid var(--soil-500);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.mag-author__portrait {
  width: 132px; height: 132px;
  object-fit: cover;
  border-radius: 50% 50% 50% 10px;
  border: 3px solid var(--green-100);
}
.mag-author__kicker {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--soil-500);
}
.mag-author h2 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.mag-author p { color: var(--ink-700); font-size: 0.98rem; margin-bottom: var(--s-3); }
.mag-author__more { margin-bottom: 0; font-weight: 600; }

.mag-also {
  position: relative;
  padding-block: var(--s-8);
  background: var(--green-050);
  border-top: 1px solid var(--green-100);
}
.mag-also__head { max-width: 56ch; margin-bottom: var(--s-6); }
.mag-also__head h2 { font-size: var(--t-2xl); margin-bottom: var(--s-2); }
.mag-also__head p { color: var(--text-soft); margin-bottom: 0; }
.mag-also__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.mag-also__all { margin: var(--s-6) 0 0; }

.rel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md) var(--r-lg) var(--r-md) var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-turf),
              box-shadow var(--dur-2) var(--ease-turf);
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.rel-card__media { display: block; background: var(--green-100); }
.rel-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rel-card__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.rel-card__title { font-size: 1.09rem; line-height: 1.2; margin-bottom: var(--s-2); }
.rel-card__title a { color: var(--ink-900); text-decoration: none; }
.rel-card__title a:hover { color: var(--green-700); text-decoration: underline; }
.rel-card__dek {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: var(--s-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-card__meta {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Magazine teaser on the home page
   ========================================================================== */

.mag-teaser__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.mag-teaser__head .section-head { margin-bottom: 0; }
.mag-teaser .mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mag-teaser .mag-card__title { font-size: 1.12rem; }

/* ==========================================================================
   Magazine listings on the author page and the site map
   ========================================================================== */

.mag-list { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.mag-list li {
  padding: 0.7rem 0 0.7rem 1.9rem;
  position: relative;
  border-bottom: 1px dashed var(--green-100);
  margin-bottom: 0;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 18px; height: 6px;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(118deg,
    var(--green-500) 0 5px, transparent 5px 10px);
}
.mag-list a { font-weight: 600; }
.mag-list time { display: block; font-size: var(--t-xs); color: var(--ink-500); margin-top: 2px; }

/* ==========================================================================
   Magazine responsive behavior, down to a 360 pixel viewport
   ========================================================================== */

@media (max-width: 1080px) {
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-also__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-teaser .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .mag-masthead__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .mag-masthead h1 { max-width: 100%; }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card__body { padding: var(--s-6); }
  .mag-card.lead .mag-card__media img { aspect-ratio: 2 / 1; }
  .mag-card.lead .mag-card__media::after {
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto; height: 6px;
  }
  .mag-figure__plate { border-radius: 20px 52px 20px 52px; }
}

@media (max-width: 700px) {
  .mag-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-also__grid { grid-template-columns: minmax(0, 1fr); }
  .mag-teaser .mag-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-masthead { padding-block: var(--s-7) var(--s-6); }
  .mag-index { padding-block: var(--s-7); }
  .mag-also { padding-block: var(--s-7); }
  .mag-card.lead .mag-card__title { font-size: var(--t-xl); }
  .mag-card.lead .mag-card__dek { font-size: 1rem; }
  .mag-author {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: var(--s-4);
  }
  .mag-prose { font-size: 1.02rem; }
  .mag-figure { padding-block: var(--s-5) var(--s-6); }
}

@media (max-width: 460px) {
  .mag-measure,
  .mag-figure > .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .mag-measure { max-width: 72ch; }
  .mag-masthead__facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .mag-card__body { padding: var(--s-4); }
  .mag-card.lead .mag-card__body { padding: var(--s-5); }
  .mag-cta { padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--r-md); }
  .mag-cta .btn { width: 100%; justify-content: center; }
  .mag-figure__plate { border-radius: var(--r-lg); }
  .mag-author { padding: var(--s-4); }
  .mag-author__portrait { width: 108px; height: 108px; }
  .mag-byline { gap: var(--s-3); }
  .mag-byline__meta { font-size: var(--t-xs); }
  .inline-read { padding: 0.8rem 0.9rem 0.8rem 2.6rem; font-size: 0.96rem; }
  .inline-read::before { left: 0.8rem; }
  .mag-prose h2 { font-size: var(--t-xl); }
  .rel-card__body { padding: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  .mag-card:hover,
  .rel-card:hover { transform: none !important; }
  .mag-card:hover .mag-card__media img { transform: none !important; }
}

@media print {
  .mag-cta, .mag-also, .inline-read { display: none !important; }
  .mag-prose { max-width: none; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Phone: the footer grid stopped at two columns, which forces each column wider than
   a 360px viewport, and form controls kept their intrinsic width. */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
input, select, textarea, .field, .field-row { max-width: 100%; box-sizing: border-box; }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
