/* ==========================================================================
   Greenleaf Environmental Services
   Single stylesheet. No frameworks, no build step.
   ========================================================================== */

:root {
  /* Palette derived from the Greenleaf logo:
     leaf green #0b9444, droplet blue #00adef, wordmark ink #231f20.
     Green carries land and solids, blue carries water. */
  --green-900: #072a16;
  --green-800: #0a4a26;
  --green-700: #0b6a34;   /* text and buttons — passes AA on white */
  --green-600: #0b9444;   /* BRAND leaf */
  --green-500: #2fb763;
  --green-100: #d7efe0;
  --green-050: #f0faf4;

  --blue-700: #0083b8;
  --blue-600: #00adef;    /* BRAND droplet */
  --blue-100: #d6f1fd;
  --blue-050: #eef9fe;

  --slate-900: #231f20;   /* BRAND ink */
  --slate-800: #3a3536;
  --slate-600: #6b6567;
  --slate-400: #a29d9e;
  --slate-200: #e2dedf;
  --slate-100: #f2efef;

  --sand: #c9a227;

  --white: #ffffff;
  --text: var(--slate-800);
  --muted: var(--slate-600);

  --maxw: 1140px;
  --gutter: 24px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(20, 24, 28, .08), 0 8px 24px rgba(20, 24, 28, .06);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --brand-gradient: linear-gradient(90deg, var(--green-600), var(--blue-600) 55%, var(--green-500));
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--slate-900);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; letter-spacing: -.018em; }

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

/* --- layout --------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: 780px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--tint { background: var(--green-050); }
.section--slate { background: var(--slate-100); }

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-600);
  margin: 0 0 .7em;
}

.lede { font-size: 1.15rem; color: var(--muted); }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate-900);
}

/* The logo is a full lockup — mark plus wordmark — so it stands alone.
   The file is supplied at 2x this height to stay crisp on retina screens. */
.brand img { height: 64px; width: auto; }

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

.nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius);
  color: var(--slate-800);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}

/* :not(.btn) — the CTA in the nav is a button and keeps its own colors,
   otherwise its white label vanishes into the green fill on its own page. */
.nav a:not(.btn):hover { background: var(--green-050); color: var(--green-700); }
.nav a:not(.btn)[aria-current="page"] { color: var(--green-700); font-weight: 700; }

/* `.nav a` (0,1,1) outranks `.btn--primary` (0,1,0), so the CTA needs this
   to keep its white label. */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: var(--white); }

/* Keep the CTA on one line — "Contact Greenleaf" otherwise breaks in two. */
.nav a.btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: .95rem;
  cursor: pointer;
  color: var(--slate-800);
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-800); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-050); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* --- hero ----------------------------------------------------------------- */

/* The image lives on ::before so it can drift independently of the content.
   Three layers, front to back: a dark scrim, the photo if one has been set,
   and a terrain SVG that shows through until then. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--green-900);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15, 40, 26, .58), rgba(7, 42, 22, .80)),
    var(--hero-image, none),
    url('/images/hero-topo.svg');
  background-size: cover, cover, cover;
  background-position: center, center, bottom center;
  background-repeat: no-repeat;
  transform: scale(1.07);
  animation: heroDrift 26s ease-out forwards;
}

/* Content sits above the drifting image layer. */
.hero__inner { position: relative; z-index: 1; }

@keyframes heroDrift {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* Accent rule along the bottom edge of every hero, slowly drifting. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-600), var(--sand), var(--green-500));
  background-size: 300% 100%;
  animation: accentDrift 18s linear infinite;
}

@keyframes accentDrift {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

/* Set the vertical padding only — .wrap owns the horizontal gutter and a
   `padding` shorthand here would silently wipe it out. */
.hero__inner { padding-top: 108px; padding-bottom: 96px; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 62ch; }

.hero--sub .hero__inner { padding-top: 68px; padding-bottom: 60px; }
.hero--sub h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; }

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.card__link::after { content: " \2192"; }

/* --- stats ---------------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat { background: var(--white); padding: 28px 24px; text-align: center; }
.stat__num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- spec list ------------------------------------------------------------ */

.spec-list { list-style: none; margin: 0; padding: 0; }

.spec-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--muted);
}
.spec-list li:last-child { border-bottom: 0; }

.spec-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.spec-list strong { color: var(--slate-900); }

/* --- process steps -------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 20px; }

.step {
  position: relative;
  padding-left: 62px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step h3 { margin-bottom: .25em; }
.step p { color: var(--muted); font-size: .97rem; }

/* --- gallery -------------------------------------------------------------- */

.gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery figcaption {
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--slate-200);
}

/* Placeholder tile — replace the <img> and this class disappears with it. */
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, var(--slate-100), var(--slate-100) 12px, var(--white) 12px, var(--white) 24px);
  color: var(--slate-400);
  font-size: .85rem;
  text-align: center;
  padding: 20px;
}

/* --- forms ---------------------------------------------------------------- */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; }

.field label { font-weight: 600; font-size: .92rem; color: var(--slate-900); }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(63, 154, 108, .18);
}

.field textarea { min-height: 140px; resize: vertical; }

.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

.hp { position: absolute; left: -9999px; }

/* --- contact info panel --------------------------------------------------- */

.info-panel {
  background: var(--green-900);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  padding: 32px;
}

.info-panel h3 { color: var(--white); }
.info-panel a { color: var(--white); }

.info-panel dl { margin: 0; display: grid; gap: 20px; }
.info-panel dt {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-500);
  font-weight: 700;
  margin-bottom: 3px;
}
.info-panel dd { margin: 0; }

/* --- map ------------------------------------------------------------------ */

.map {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.map iframe { width: 100%; height: 420px; border: 0; }

/* --- callout -------------------------------------------------------------- */

.callout {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.callout h2 { color: var(--white); margin-bottom: .2em; }
.callout p { color: rgba(255, 255, 255, .85); margin: 0; }

/* --- table ---------------------------------------------------------------- */

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 480px;
}

th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--slate-200); }
th { background: var(--green-050); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-800); }
td { color: var(--muted); }

/* --- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--slate-900);
  color: rgba(255, 255, 255, .68);
  padding: 56px 0 28px;
  font-size: .93rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1em;
}

.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

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

.site-footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.6fr 1fr 1fr;
}

.site-footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
}

/* --- icons ---------------------------------------------------------------- */

/* All inline SVGs use stroke="currentColor" and inherit size from here, so a
   colour change on the parent recolours the icon. */
.icon {
  width: 28px;
  height: 28px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 18px;
}

.card--icon .icon-badge { margin-bottom: 16px; }

.info-panel .icon-badge { background: rgba(255, 255, 255, .12); color: var(--green-500); }

/* Water-related sections take the droplet blue from the logo. */
.icon-badge--water { background: var(--blue-100); color: var(--blue-700); }

/* --- process flow --------------------------------------------------------- */

.flow {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  counter-reset: flow;
}

.flow__node {
  position: relative;
  counter-increment: flow;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--green-600);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}

.flow__node::before {
  content: counter(flow);
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-100);
}

.flow__node h4 {
  margin: 0 0 .35em;
  font-size: 1rem;
  color: var(--slate-900);
  position: relative;
}

.flow__node p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
}

.flow__node .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.flow__node .icon { width: 22px; height: 22px; }

/* Chevron between nodes on wide screens. */
.flow__node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-top: 2px solid var(--slate-400);
  border-right: 2px solid var(--slate-400);
  transform: rotate(45deg);
  z-index: 2;
}
.flow__node:last-child::after { display: none; }

.section--tint .flow__node,
.section--slate .flow__node { background: var(--white); }

/* --- diagram figures ------------------------------------------------------ */

.diagram {
  margin: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow);
}

.diagram svg { width: 100%; height: auto; display: block; }

.diagram figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
  font-size: .87rem;
  color: var(--muted);
}

/* --- highlight panel ------------------------------------------------------ */

.panel {
  border: 1px solid var(--green-100);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius);
  background: var(--green-050);
  padding: 26px 28px;
}

.panel h3 { margin-bottom: .4em; }
.panel p:last-child { margin-bottom: 0; }

.panel--sand {
  border-color: #eadfb4;
  border-left-color: var(--sand);
  background: #fdfaf0;
}

/* --- section heading rule ------------------------------------------------- */

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--green-500);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 80;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--brand-gradient);
  pointer-events: none;
}

/* --- statement band ------------------------------------------------------- */

.statement {
  position: relative;
  overflow: hidden;
  background: var(--slate-900);
  color: var(--white);
  padding: 96px 0;
}

/* Oversized leaf mark, bled off the right edge as texture. */
.statement::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  width: 420px;
  height: 420px;
  margin-top: -210px;
  background: url('/images/mark.png') no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}

/* `.statement p` below is also (0,1,1); at equal specificity the later rule
   would win, so this one is scoped tighter on purpose. */
.statement p.statement__quote {
  position: relative;
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--white);
}

.statement__quote em {
  font-style: normal;
  color: inherit;
}

.statement p {
  position: relative;
  max-width: 52ch;
  margin-top: 28px;
  color: rgba(255, 255, 255, .72);
  font-size: 1.08rem;
}

/* --- ghost section numerals ----------------------------------------------- */

.section[data-num] { position: relative; overflow: hidden; }

.section[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -.28em;
  right: 2%;
  font-size: clamp(9rem, 22vw, 20rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--slate-900);
  opacity: .035;
  pointer-events: none;
  user-select: none;
}

.section--tint[data-num]::before { color: var(--green-800); opacity: .06; }

/* --- stats ---------------------------------------------------------------- */

.stats {
  position: relative;
  border-radius: var(--radius);
}

/* Brand rule across the top of the stat band. */
.stats::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 3;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand-gradient);
}

.stat__num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

/* --- eyebrow rule --------------------------------------------------------- */

.eyebrow::before { background: var(--brand-gradient); }

/* --- motion --------------------------------------------------------------- */

/* Elements are tagged with data-reveal by js/main.js so the markup stays
   clean. Anything not reached by the observer stays visible. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Stagger siblings inside a grid or flow so they arrive in sequence. */
[data-reveal][style*="--d"] { transition-delay: var(--d); }

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

.card {
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green-600), var(--blue-600));
  opacity: 0;
  transition: opacity .22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green-100);
  box-shadow: 0 2px 6px rgba(35, 31, 32, .07), 0 16px 34px rgba(35, 31, 32, .10);
}

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

.card__link { transition: gap .2s ease; }
.card__link::after { display: inline-block; transition: transform .2s ease; }
.card:hover .card__link::after { transform: translateX(4px); }

.btn { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(11, 106, 52, .28); }
.btn:active { transform: translateY(0); }

.stat { transition: background .22s ease; }
.stat:hover { background: var(--green-050); }

.gallery figure img { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.gallery figure { overflow: hidden; }
.gallery figure:hover img { transform: scale(1.04); }

/* Header gains a shadow once the page scrolls, so it detaches from the hero. */
.site-header { transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(35, 31, 32, .05), 0 6px 22px rgba(35, 31, 32, .09);
  border-bottom-color: transparent;
}

/* --- reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero::before { animation: none; transform: none; }
  .hero::after { animation: none; background-size: 100% 100%; }

  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .btn:hover { transform: none; }

  .gallery figure:hover img { transform: none; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 8px var(--gutter) 16px;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--slate-100); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }

  .site-header__bar { position: relative; }
}

@media (max-width: 760px) {
  /* Flow runs vertically, so the chevron moves to the bottom edge. */
  .flow { grid-template-columns: 1fr; }
  .flow__node::after {
    top: auto;
    right: 50%;
    bottom: -13px;
    margin: 0 -5px 0 0;
    transform: rotate(135deg);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .diagram { padding: 16px; }
  .panel { padding: 20px 22px; }
  .statement { padding: 64px 0; }
  .statement::before { width: 260px; height: 260px; margin-top: -130px; right: -70px; }
  .section[data-num]::before { display: none; }
  .hero__inner { padding-top: 72px; padding-bottom: 64px; }
  .hero--sub .hero__inner { padding-top: 52px; padding-bottom: 48px; }

  .brand img { height: 46px; }
  .site-header__bar { min-height: 78px; }

  .field-row { grid-template-columns: 1fr; }
  .callout { padding: 28px; }
  .info-panel { padding: 24px; }
}

@media print {
  .site-header, .site-footer, .btn-row { display: none; }
}
