/* Turnstone Works — styles
   Mobile-first. Flat: no gradients, no shadows. 1px rules echo the monoline mark. */

:root {
  /* Palette */
  --pine:   #1E3A2F;
  --sage:   #8FA68A;
  --lichen: #CDD8A6;
  --oat:    #F1E9D2;
  --brick:  #B5534F;

  /* Type */
  --font-sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-h3: 1.25rem;
  --text-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --text-h1: clamp(2.375rem, 1.6rem + 4vw, 4.75rem);

  /* Space */
  --gutter: 50px; /* TUNE:sideMargin. tools/tune.py keeps this in sync with main.js */
  --head-indent: 10%; /* heading blocks sit this far in from the side margin */
  --max: 1200px;
  --header-h: 85px;

  --rule: 1px solid var(--pine);       /* box borders: cards, buttons, menu button */
  --rule-soft: 1px solid var(--sage);
  --line: 2px solid var(--pine);       /* page rules: header, section heads, steps, quote, footer */
  --line-soft: 2px solid var(--sage);
  --ease: 150ms ease;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Without JS, pages settle softly to the top. With JS, main.js's magnet does it. */
  scroll-snap-type: y proximity;
}

html.js { scroll-snap-type: none; }

/* Touch screens: Safari's own scrolling, snapping to one page per swipe (main.js sets the class) */
html.js.tw-native { scroll-snap-type: y mandatory; }
html.js.tw-native .page { scroll-snap-stop: always; }
html.js.tw-native.tw-off { scroll-snap-type: none; } /* /tweak/ kill switch */

body {
  margin: 0;
  background: var(--oat);
  color: var(--pine);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: currentColor;
  transition: text-decoration-color var(--ease), color var(--ease), background-color var(--ease), border-color var(--ease);
}

/* Brick text on oat is 4.02:1 — below AA for body-size text — so hover recolors the underline only */
a:hover { text-decoration-color: var(--brick); }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.section--brick-bg :focus-visible,
.site-footer :focus-visible { outline-color: var(--oat); }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--pine);
  color: var(--oat);
  font-weight: 600;
}

.skip-link:focus { top: 0.5rem; }

/* ---------- Mark ---------- */

.mark {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: miter;
  /* width follows the viewBox ratio (1572 x 1227): the mark is wider than tall */
  aspect-ratio: 1572 / 1227;
  overflow: visible;
}

.mark--header { height: 50px; stroke-width: 1.25px; }
.mark--footer { height: 36px; stroke-width: 1px; }

.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.site-header .wordmark { font-size: 1.171875rem; }

/* Hero lockup: mark + outlined wordmark in one SVG. The viewBox is the drawing's
   exact bounds (1560 x 1447.5, strokes overflow) so the box edges are the ink
   edges. The wordmark is exactly as wide as the mark. */
.logo-full {
  display: block;
  width: clamp(220px, 46vw, 480px);
  aspect-ratio: 1560 / 1447.5;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  overflow: visible;
}

.logo-full__wordmark {
  fill: currentColor;
  stroke: none;
}

/* ---------- Mono labels ---------- */

.eyebrow,
.section-label,
.card__num,
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  /* 19px bold qualifies as WCAG "large text" (>=18.66px bold), which oat on brick (4.02:1) needs */
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--brick);
  border-color: var(--brick);
  color: var(--oat);
}

.btn--primary:hover {
  background: var(--pine);
  border-color: var(--pine);
}

.btn--secondary {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine);
}

.btn--secondary:hover { background: var(--lichen); }

.btn--light {
  background: var(--oat);
  border-color: var(--oat);
  color: var(--pine);
}

.btn--light:hover {
  background: var(--lichen);
  border-color: var(--lichen);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--oat);
  border-bottom: var(--line);
}

/* With JS the header is hidden over the hero and slides in as the Services rule
   approaches the top of the screen. main.js sets --reveal from 0 to 1. */
.js .site-header {
  position: fixed;
  left: 0;
  right: 0;
  opacity: var(--reveal, 0);
  transform: translateY(calc(-100% * (1 - var(--reveal, 0))));
  visibility: hidden;
}

.js .site-header.is-visible { visibility: visible; }

/* Keyboard users tabbing into the nav always get the full header */
.js .site-header:focus-within {
  --reveal: 1 !important;
  visibility: visible;
}

.site-header .header-inner {
  --header-needs: 340px;
  padding-inline: clamp(12px, var(--gutter), max(12px, (100vw - var(--header-needs)) / 2));
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9375rem;
  text-decoration: none;
  color: var(--pine);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.78rem;
  min-height: 55px;
  padding: 0.625rem 1.09rem;
  background: transparent;
  border: var(--rule);
  color: var(--pine);
  font-family: var(--font-mono);
  font-size: 1.015625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform var(--ease);
}

.nav-toggle__bars { position: relative; transform: translateY(-4px); }

.nav-toggle__bars::before {
  content: "";
  position: absolute;
  top: 8px;
}

/* Small phones: icon-only menu button (label kept for screen readers) so the larger header fits */
@media (max-width: 479px) {
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand { gap: 0.75rem; }

  /* The header row never wraps with JS on (see .js .header-inner), so below about
     380px the 50px mark + 18.75px wordmark + menu button no longer fit side by side.
     Scale both with the viewport: mark 40px tall at 320px, 50px again from 400px;
     wordmark 15px at 320px, 18.75px again from 399px. Fits down to 320px with room. */
  .mark--header { height: clamp(40px, 12.5vw, 50px); }
  .site-header .wordmark { font-size: clamp(0.875rem, 4.7vw, 1.171875rem); letter-spacing: 0.06em; }
  .nav-toggle { padding-inline: 0.75rem; }
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

/* No-JS fallback: nav simply wraps below the brand */
.site-header .header-inner { flex-wrap: wrap; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav__list a {
  display: inline-block;
  padding-block: 0.375rem;
  text-decoration-color: transparent;
  font-weight: 600;
}

.site-nav__list a:hover { text-decoration-color: var(--brick); }

/* With JS: collapse to a menu button below the desktop breakpoint */
.js .header-inner { flex-wrap: nowrap; }
.js .nav-toggle { display: inline-flex; }

.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--oat);
  border-bottom: var(--line);
}

.js .site-nav.is-open { display: flex; }

.js .site-nav__list {
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
}

.js .site-nav__list li + li { border-top: var(--line-soft); }

.js .site-nav__list a {
  display: block;
  padding-block: 1.09rem;
  font-size: 1.40625rem;
}

.btn--header {
  font-size: 1.484375rem;
  min-height: 55px;
  padding-inline: 1.5625rem;
}

@media (min-width: 1080px) {
  .site-header .header-inner { --header-needs: 990px; }

  .js .nav-toggle { display: none; }

  .js .site-nav,
  .js .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
    background: none;
    border: 0;
  }

  .js .site-nav__list {
    flex-direction: row;
    gap: 2.1875rem;
    margin: 0;
  }

  .js .site-nav__list li + li { border: 0; }

  .js .site-nav__list a {
    display: inline-block;
    padding-block: 0.47rem;
    font-size: 1.328125rem;
  }

  .site-nav { padding-bottom: 0; }
}

/* ---------- Pages ----------
   Hero and each section fill the screen and snap to the top. main.js fades/blurs
   them in and out as they cross the middle of the screen. */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}

/* Contact + footer together fill the last screen; main.js sets --footer-h */
#contact { min-height: calc(100svh - var(--footer-h, 0px)); }

/* iPhone Safari: its toolbar floats over the bottom of the page, so every screen
   keeps its bottom 100px clear (main.js sets the class). A transparent border
   shows the page's own background, so the colour runs under the toolbar. */
html.ios-safari { --ios-bar: 100px; }
html.ios-safari .page:not(#contact),
html.ios-safari .site-footer { border-bottom: var(--ios-bar) solid transparent; }

/* ---------- Fitting ----------
   A page taller than the screen is squeezed in steps, only as far as it needs
   (main.js sets data-fit). 1: no separator lines. 2: smaller big type.
   3: tighter gaps. Only then is the whole page scaled, never below 85%. */

/* 1: separator lines off */
:is(#services, #approach, #about, #contact)[data-fit] .section-head { border-top: 0; padding-top: 0; }
:is(#services, #approach, #about, #contact)[data-fit] .step { border-top: 0; border-bottom: 0; }

/* 2: big type down (labels stay 19px bold: brick text never goes smaller) */
:is(#services, #approach, #about, #contact):is([data-fit="2"], [data-fit="3"]) .section-head h2 { font-size: 1.5rem; }
:is(#services, #approach, #about, #contact):is([data-fit="2"], [data-fit="3"]) .pull-quote { font-size: 1.1875rem; }
:is(#services, #approach, #about, #contact):is([data-fit="2"], [data-fit="3"]) .contact-email { font-size: 1.25rem; }

/* 3: gaps down */
.hero[data-fit="3"] { padding-block: 0.75rem; }
.hero[data-fit="3"] .hero-inner { gap: 1rem; }
.hero[data-fit="3"] .hero-copy { gap: 0.75rem; }
.hero[data-fit="3"] .hero-actions { margin-top: 0; }
.hero[data-fit="3"] .lede { line-height: 1.4; }
:is(#services, #approach, #about, #contact)[data-fit="3"] { padding-block: calc(var(--header-h) + 0.25rem) 0.5rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .section-head { gap: 0.375rem; margin-bottom: 0.75rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .cards { gap: 0.375rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .card { gap: 0.25rem; padding: 0.625rem 0.625rem 0.75rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .card__num { margin-bottom: 0; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .step { padding-block: 0.5rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .about-grid { gap: 1.25rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .about-copy { gap: 0.75rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .contact-lede { margin-bottom: 1rem; }
:is(#services, #approach, #about, #contact)[data-fit="3"] .contact-email { margin-bottom: 1.25rem; }

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

.hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
}

.hero-mark {
  display: flex;
  justify-content: center;
  color: var(--pine);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: center;
}

.hero .eyebrow,
.hero h1 { margin-left: var(--head-indent); }

/* Tablet and phone: the two halves of the line stack, without the dot */
@media (max-width: 1099px) {
  .hero .eyebrow span { display: block; }
  .hero .eyebrow .eyebrow__sep { display: none; }
}

.hero h1 {
  font-size: var(--text-h1);
  line-height: 1.04;
  max-width: 16ch;
}

.lede {
  font-size: var(--text-lg);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 1100px) {
  /* Copy on the left sized to its content, then a fixed 60px, then the lockup.
     The lockup takes what is left, up to 560px. */
  .hero-inner {
    grid-template-columns: auto minmax(400px, 1fr);
    align-items: center;
    gap: 60px;
  }

  /* Fixed indent (not a %) so the content-sized column does not depend on itself */
  .hero .eyebrow,
  .hero h1 { margin-left: 3.5rem; }

  /* Hugs the longest line of the current headline ("your workflows.") so the
     60px gap is what you see. Retune if the headline changes (1ch = 48px at 76px Figtree). */
  .hero h1 { max-width: 12ch; }

  /* The lockup is exactly as tall as the copy column (eyebrow top to buttons
     bottom). It is taken out of flow so it never sets the row height, fills the
     cell, and the SVG's xMaxYMid keeps the drawing right-aligned at the largest
     size that fits both the cell's height and its width. When the cell is too
     narrow for that height (about 1100 to 1200px wide), main.js shrinks the
     headline until it fits. */
  .hero-mark {
    order: 2;
    position: relative;
    align-self: stretch;
  }

  .logo-full--hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
}

/* Stacked layouts (phone and tablet): one centred column. Logo, wordmark,
   eyebrow and headline all share the column width (--col). The lockup is capped
   by the screen height so the column fits the first screen. main.js spreads the
   eyebrow's letter-spacing and the headline's word-spacing so every line runs
   the full column width, and picks the headline's two-line break. */
@media (max-width: 1099px) {
  .hero-inner {
    --col: min(clamp(260px, 76vw, 480px), 50svh);
    justify-items: center;
  }
  .hero-mark { justify-content: center; }
  .logo-full--hero { width: var(--col); }

  .hero-copy { width: 100%; justify-items: center; }
  .hero .eyebrow,
  .hero h1 { margin-left: 0; width: var(--col); }
  .hero .eyebrow span { white-space: nowrap; }
  /* Second line is three letters shorter: one size up so its spacing matches the first */
  .hero .eyebrow span:last-child { font-size: calc(0.8125rem + 1px); }

  .hero h1 { max-width: none; font-size: min(var(--text-h1), 6.5svh); }
  .hero h1 span { display: block; white-space: nowrap; }

  .hero .lede { text-align: center; }
  .hero-actions { justify-content: center; }

  /* Tighter top and bottom so the buttons make the first screen */
  .hero { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
}

/* Phones: the two buttons share one row, splitting the width (they still wrap
   if even that is too narrow, below about 340px) */
@media (max-width: 767px) {
  .hero-actions { width: 100%; gap: 0.5rem; }
  .hero-actions .btn { flex: 1 1 0; padding-inline: 0.5rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: calc(var(--header-h) + clamp(1.5rem, 1rem + 2vw, 3rem)) clamp(3rem, 2rem + 3vw, 5rem); }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding-top: 1rem;
  padding-left: var(--head-indent); /* the rule above stays full width */
  border-top: var(--line);
}

.section-label span { margin-right: 0.75em; }

.section-head h2 {
  font-size: var(--text-h2);
  max-width: 20ch;
}

.section--tint { background: var(--lichen); }

.section--dark {
  background: var(--pine);
  color: var(--oat);
}

.section--dark .section-head { border-top-color: var(--sage); }

/* Approach: the Contact treatment in brick. Brick background, oat text and oat
   rules. Oat on brick is 4.02:1, the same ratio as brick on oat: AA for large
   text only (>= 18.66px bold or 24px regular). Headings pass; the step body
   text and the mono numbers do not. David's call, 2026-10-21. */
.section--brick-bg {
  background: var(--brick);
  color: var(--oat);
}

.section--brick-bg .section-head { border-top-color: var(--oat); }
.section.section--brick-bg .step { border-color: var(--oat); } /* outranks the later .step:last-child rules */
.section--brick-bg .step__num { color: var(--oat); }
.section--brick-bg .step p:last-child { font-weight: 700; }

/* Services: oat background with a brick header and brick rule */
.section--brick {
  background: var(--oat);
  color: var(--brick);
}

.section--brick .section-head { border-top-color: var(--brick); }

/* Cards: sage panels with pine text (pine on sage is 4.7:1, AA for body text) */
.section--brick .card {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--pine);
}

.section--brick .card p { font-weight: 600; }

/* Every section label matches Services' (David, 2026-10-21): 19px bold. On
   Services that size is also what lets brick on oat (4.02:1) pass WCAG AA as
   "large text" (>= 18.66px bold). */
.section-label {
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--lichen);
  border: var(--rule);
  transition: background-color var(--ease);
}

.card h3 { font-size: var(--text-h3); }

.card__num { margin-bottom: 1.5rem; }

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Approach ---------- */

.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.75rem;
  border-top: var(--line-soft);
}

.step:last-child { border-bottom: var(--line-soft); }

.step h3 { font-size: var(--text-h3); }

.step__num {
  font-size: 0.875rem;
  color: var(--pine);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }

  .step:nth-last-child(2) { border-bottom: var(--line-soft); }
}

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }

  .step { border-bottom: var(--line-soft); }
}

/* ---------- Services + Approach: one screen on tablet and phone ----------
   Services is four quadrants (S/01 S/02 over S/03 S/04). Approach is four
   rows: number and title side by side, the line of text beside them on
   tablet (never wrapping) and beneath them on phone. */

@media (max-width: 1099px) {
  #services,
  #approach { padding-block: calc(var(--header-h) + 1rem) 1.5rem; }

  #services .section-head,
  #approach .section-head { margin-bottom: 1.25rem; }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .card {
    gap: 0.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .card__num { margin-bottom: 0.5rem; }

  .card h3 { font-size: 1.125rem; }

  .card p { font-size: 1rem; }

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

  .step {
    grid-template-columns: 2.5rem 1fr;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    align-items: baseline;
    padding-block: 1rem;
  }

  .step p:last-child { grid-column: 2; }

  .step h3 { font-size: 1.125rem; }

  .step:nth-last-child(2) { border-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  #services .section-head h2,
  #approach .section-head h2 {
    max-width: none;
    font-size: clamp(1.75rem, 0.5rem + 3.2vw, 2.5rem);
    white-space: nowrap;
  }

  .step { grid-template-columns: 2.5rem 11rem 1fr; }

  .step p:last-child {
    grid-column: 3;
    font-size: 1rem; /* same as .card p on tablet */
  }
}

@media (max-width: 767px) {
  .cards { gap: 0.5rem; }

  .card {
    padding: 1rem 0.875rem 1.125rem;
  }

  .card__num { margin-bottom: 0.25rem; }

  .card h3 { font-size: 1rem; }

  .card p { font-size: 0.875rem; line-height: 1.4; }

  .step p:last-child { font-size: 0.875rem; line-height: 1.4; } /* same as .card p */
}

/* Short phones (iPhone SE and smaller): tighter still, so the page fits */
@media (max-width: 767px) and (max-height: 720px) {
  #services,
  #approach { padding-block: calc(var(--header-h) + 0.25rem) 0.75rem; }

  #services .section-head,
  #approach .section-head {
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    padding-top: 0.625rem;
  }

  #services .section-head h2,
  #approach .section-head h2 { font-size: 1.625rem; }

  .card { padding: 0.625rem 0.625rem 0.75rem; gap: 0.25rem; }

  .card__num { margin-bottom: 0; }

  .card h3 { font-size: 0.9375rem; }

  .card p { font-size: 0.8125rem; line-height: 1.35; }

  .step { padding-block: 0.5rem; }

  .step p:last-child { font-size: 0.8125rem; line-height: 1.35; } /* same as .card p */
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 62ch;
  font-size: var(--text-base); /* body text matches Services (David, 2026-10-21) */
}

.pull-quote {
  margin: 0;
  padding-left: 1.5rem;
  border-left: var(--line);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  align-self: start;
}

@media (min-width: 1100px) {
  .about-grid {
    grid-template-columns: 3fr 2fr;
    gap: 5rem;
  }
}

/* ---------- Contact ---------- */

.contact-lede {
  max-width: 48ch;
  font-size: var(--text-base); /* body text matches Services */
  margin-bottom: 1.5rem;
}

/* Body text in every section tracks Services' size per breakpoint */
@media (max-width: 1099px) {
  .about-copy,
  .contact-lede { font-size: 1rem; }
}

@media (max-width: 767px) {
  .about-copy,
  .contact-lede { font-size: 0.875rem; line-height: 1.4; }
}

.contact-email {
  margin-bottom: 2.5rem;
  font-size: clamp(1.25rem, 6.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-email a { text-decoration-color: var(--sage); }

/* Phone: centre the contact button */
@media (max-width: 767px) {
  .section--dark .btn--light {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }
}
.contact-email a:hover { text-decoration-color: var(--lichen); }

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

.site-footer {
  background: var(--pine);
  color: var(--oat);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: var(--line-soft);
  font-size: var(--text-sm);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }
}


/* ---------- Anchors ----------
   Pages snap to the very top; their own top padding clears the header. */

section[id] { scroll-margin-top: 0; }

/* ---------- Motion ---------- */

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

  .js .site-header { transform: none; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
