/* ==========================================================================
   TOKENS — the only place raw values may appear.
   Everything below §2 references a token or a derived alias.
   ========================================================================== */
:root {
  /* 1. Color — 7 core tokens (contrast-verified, see DESIGN.md) */
  --ink:     #201D1A;
  --paper:   #F6F3EE;
  --surface: #FFFFFF;
  --muted:   #5C564E;
  --stone:   #B3AA9D;
  --bronze:  #7A5A33;
  --error:   #A23B2E;

  /* Derived aliases — mixes of core tokens, not new colors */
  --line:       color-mix(in srgb, var(--ink) 14%, transparent);
  --line-dark:  color-mix(in srgb, var(--paper) 18%, transparent);
  --wash:       color-mix(in srgb, var(--ink) 6%, transparent);   /* hover wash on light */
  --wash-dark:  color-mix(in srgb, var(--paper) 8%, transparent);

  /* Semantic slots — flipped inside .theme-dark */
  --bg:        var(--paper);
  --text:      var(--ink);
  --text-2:    var(--muted);
  --eyebrow-c: var(--bronze);
  --hairline:  var(--line);
  --focus:     var(--bronze);
  --btn-bg:    var(--ink);
  --btn-fg:    var(--paper);
  --hover-wash: var(--wash);

  /* 2. Type — modular scale, ratio 1.25, base 1rem */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-100: 0.8rem;
  --fs-200: 1rem;
  --fs-300: 1.25rem;
  --fs-400: 1.563rem;
  --fs-500: 1.953rem;
  --fs-600: 2.441rem;
  --fs-700: 3.052rem;
  --fs-800: 3.815rem;
  /* fluid display sizes interpolate between two adjacent scale steps */
  --fs-hero:    clamp(var(--fs-600), 1.6rem + 3.2vw, var(--fs-800));
  --fs-section: clamp(var(--fs-500), 1.5rem + 1.6vw, var(--fs-600));
  --fs-quote:   clamp(var(--fs-300), 1rem + 1.2vw, var(--fs-400));
  --lh-tight: 1.12;
  --lh-body: 1.6;

  /* 3. Spacing — 8px base grid (4px micro only) */
  --s-05: 4px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;

  /* 4. Radius — 3 values */
  --r-s: 8px;
  --r-m: 16px;
  --r-pill: 999px;

  /* 5. Elevation — 4 levels, ink-tinted */
  --e-1: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent);
  --e-2: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent),
         0 8px 24px color-mix(in srgb, var(--ink) 6%, transparent);
  --e-3: 0 4px 16px color-mix(in srgb, var(--ink) 10%, transparent),
         0 12px 40px color-mix(in srgb, var(--ink) 8%, transparent);
  --e-4: 0 8px 24px color-mix(in srgb, var(--ink) 10%, transparent),
         0 24px 72px color-mix(in srgb, var(--ink) 12%, transparent);

  /* 6. Motion — one easing, three durations */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 300ms;
  --t-slow: 600ms;

  /* 7. Layout */
  --container: 1176px;
  --gutter: var(--s-3);
  --target: 48px;           /* preferred touch target */
  --target-min: 44px;       /* absolute minimum touch target */
  --nav-h: 72px;            /* 9 × 8px */
  --icon-stroke: 1.75;      /* one stroke width everywhere */
}

/* Dark scope: components restyle themselves via semantic slots only */
.theme-dark {
  --bg: var(--ink);
  --text: var(--paper);
  --text-2: var(--stone);
  --eyebrow-c: var(--stone);
  --hairline: var(--line-dark);
  --focus: var(--paper);
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --hover-wash: var(--wash-dark);
}

/* ==========================================================================
   FONTS (self-hosted)
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-normal-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-500.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-normal-400-600.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-200);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-s);
}

.skip-link {
  position: absolute; left: var(--s-2); top: calc(-1 * var(--s-8));
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus-visible { top: var(--s-2); }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }

.section { padding-block: var(--s-16); }
.theme-dark { background: var(--bg); color: var(--text); }

/* Reveal on scroll (JS adds .js to <html>; reduced-motion overrides at bottom) */
.js .reveal { opacity: 0; translate: 0 var(--s-3); }
.js .reveal.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity var(--t-slow) var(--ease), translate var(--t-slow) var(--ease);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* --- Section header (one pattern, everywhere) --- */
.section-head { max-width: calc(var(--container) / 2); margin-bottom: var(--s-8); }
.eyebrow {
  display: block;
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow-c);
  margin-bottom: var(--s-2);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-section);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.section-head .lede { margin-top: var(--s-3); font-size: var(--fs-300); color: var(--text-2); }

/* --- Button (one component, two variants) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: var(--target);
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 500 var(--fs-200) var(--font-ui);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              translate var(--t-fast) var(--ease);
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { box-shadow: var(--e-2); translate: 0 -1px; }
.btn--primary:active { box-shadow: var(--e-1); translate: 0 0; }
.btn--ghost { border-color: var(--hairline); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--hover-wash); border-color: var(--text-2); }
.btn--ghost:active { background: var(--hover-wash); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; translate: none; }

/* --- Arrow (one style everywhere: 16px line + head, stroke 1.75) --- */
.arrow { transition: translate var(--t-fast) var(--ease); flex: none; }

/* --- Card (one component; capabilities + chips reuse it) --- */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  box-shadow: var(--e-1);
  overflow: hidden;
  transition: box-shadow var(--t-med) var(--ease), translate var(--t-med) var(--ease);
}
.card::before { /* AI paper texture, whisper-level */
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/tex-card.webp") center / cover;
  opacity: 0.35; pointer-events: none;
}
.card > * { position: relative; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--e-2); translate: 0 -2px; }
a.card:hover .arrow { translate: var(--s-05) 0; }
.card h3 { font: 600 var(--fs-300) var(--font-ui); letter-spacing: -0.01em; }
.card p { color: var(--text-2); }
.card .card-cta {
  margin-top: auto; padding-top: var(--s-2);
  display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: var(--s-4);
  font-weight: 500; color: var(--bronze);
}
.card-icon {
  width: var(--s-6); height: var(--s-6);
  display: grid; place-items: center;
  border-radius: var(--r-s);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--bronze);
}

/* --- Field (one component for input/select/textarea) --- */
.field { display: flex; flex-direction: column; gap: var(--s-05); }
.field label { font-size: var(--fs-100); font-weight: 600; color: var(--text); }
.field .optional { color: var(--text-2); font-weight: 400; }
.control {
  min-height: var(--target);
  padding: var(--s-1) var(--s-2);
  font: 400 var(--fs-200) var(--font-ui);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
}
.control:hover { border-color: var(--text-2); }
.control:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
textarea.control { resize: vertical; min-height: calc(2 * var(--s-6)); }
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235C564E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-2) center;
  padding-right: var(--s-6);
}
.field .msg {
  display: none;
  align-items: center; gap: var(--s-05);
  font-size: var(--fs-100);
  min-height: var(--s-3);
}
.field.is-error .control { border-color: var(--error); }
.field.is-error .msg--error { display: inline-flex; color: var(--error); }
.field.is-valid .msg--ok { display: inline-flex; color: var(--bronze); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
              background-color var(--t-med) var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--e-3);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: var(--s-3); }

/* Brand slot: empty mark container + wordmark text slot (no invented identity) */
.brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: var(--target);
  text-decoration: none;
  margin-right: auto;
}
.brand .mark-slot {
  width: var(--s-4); height: var(--s-4);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-s);
}
.brand .wordmark-slot {
  font: 600 var(--fs-300) var(--font-display);
  letter-spacing: -0.01em; color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: var(--s-1); }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: var(--target);
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--wash); }
.nav-cta { margin-left: var(--s-2); }
/* While the hero's primary CTA is on screen, the nav CTA stays quiet (one primary per viewport) */
.nav-cta.is-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.nav-cta.is-quiet:hover { background: var(--wash); box-shadow: none; translate: none; }

.menu-btn {
  display: none;
  width: var(--target); height: var(--target);
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--ink); cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + var(--s-12)) var(--s-12);
  overflow: clip;
  /* graceful fallback if the texture fails: token gradient */
  background: linear-gradient(160deg, var(--surface), var(--paper));
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim { /* guarantees text contrast over the texture */
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--paper) 94%, transparent) 0%,
    color-mix(in srgb, var(--paper) 72%, transparent) 50%,
    transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { grid-column: 1 / 8; align-self: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero .lede {
  margin-top: var(--s-3);
  font-size: var(--fs-300);
  color: var(--text-2);
  max-width: 44ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }

.hero-stats {
  grid-column: 1 / 8;
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  margin-top: var(--s-8); padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.stat .stat-n {
  display: block;
  font: 600 var(--fs-500) var(--font-display);
  line-height: var(--lh-tight);
}
.stat .stat-l { color: var(--muted); font-size: var(--fs-100); }

/* Signature layered moment: backdrop panel → art → floating chip */
.hero-art { grid-column: 8 / 13; position: relative; align-self: center; min-height: calc(3 * var(--s-16)); }
.hero-art .layer-back {
  position: absolute; z-index: 0;
  inset: var(--s-8) calc(-1 * var(--s-2)) calc(-1 * var(--s-2)) var(--s-8);
  background: color-mix(in srgb, var(--bronze) 18%, var(--paper));
  border-radius: var(--r-m);
}
.hero-art .layer-art {
  position: relative; z-index: 1;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--e-3);
  /* fallback behind the image */
  background: linear-gradient(135deg, var(--stone), var(--paper));
}
.hero-art .layer-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.hero-art .layer-chip {
  position: absolute; z-index: 2;
  left: calc(-1 * var(--s-6)); bottom: var(--s-6);
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--e-2);
}
.layer-chip .chip-dot { width: var(--s-1); height: var(--s-1); border-radius: var(--r-pill); background: var(--bronze); flex: none; }
.layer-chip .chip-text { font-size: var(--fs-100); color: var(--muted); }
.layer-chip .chip-text strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust { padding-block: var(--s-6); border-block: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.trust-label { font-size: var(--fs-100); color: var(--muted); }
.trust-marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
.trust-mark {
  font: 600 var(--fs-200) var(--font-ui);
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.cap-grid { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach-visual { grid-column: 1 / 6; position: relative; }
.approach-visual .layer-back {
  position: absolute; z-index: 0;
  inset: var(--s-6) var(--s-6) calc(-1 * var(--s-2)) calc(-1 * var(--s-2));
  background: color-mix(in srgb, var(--stone) 35%, var(--paper));
  border-radius: var(--r-m);
}
.approach-visual figure {
  position: relative; z-index: 1;
  border-radius: var(--r-m); overflow: hidden;
  box-shadow: var(--e-2);
  background: linear-gradient(135deg, var(--paper), var(--stone)); /* fallback */
}
.approach-visual img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.approach-copy { grid-column: 7 / 13; align-self: center; }
.approach-copy .section-head { margin-bottom: var(--s-4); }
.checks { display: flex; flex-direction: column; gap: var(--s-3); }
.checks li { display: flex; gap: var(--s-2); align-items: flex-start; }
.checks .check-ic {
  flex: none;
  width: var(--s-3); height: var(--s-3);
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bronze) 14%, var(--paper));
  color: var(--bronze);
  margin-top: var(--s-05);
}
.checks strong { display: block; font-weight: 600; }
.checks p { color: var(--text-2); }

/* ==========================================================================
   PROCESS (dark)
   ========================================================================== */
.process { position: relative; overflow: clip; background: var(--ink); }
.process-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.process .container { position: relative; }
.steps { grid-template-columns: repeat(4, 1fr); row-gap: var(--s-6); }
.step { padding-top: var(--s-3); border-top: 1px solid var(--hairline); }
.step .step-n {
  display: block;
  font: 600 var(--fs-400) var(--font-display);
  color: var(--stone);
  margin-bottom: var(--s-2);
}
.step h3 { font: 600 var(--fs-300) var(--font-ui); color: var(--text); margin-bottom: var(--s-1); }
.step p { color: var(--text-2); }

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */
.testimonial { position: relative; overflow: clip; }
.testimonial-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.testimonial-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.testimonial .container { position: relative; }
.quote-card {
  grid-column: 3 / 11;
  padding: var(--s-8);
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--e-4);
  text-align: center;
}
.quote-card blockquote {
  margin: 0;
  font: italic 500 var(--fs-quote) var(--font-display);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote-card figcaption { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-100); }
.quote-card figcaption strong { display: block; color: var(--ink); font-size: var(--fs-200); font-weight: 600; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-form { grid-column: 1 / 8; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-aside { grid-column: 9 / 13; display: flex; flex-direction: column; gap: var(--s-4); align-self: start; }
fieldset { border: 0; display: flex; flex-direction: column; gap: var(--s-2); }
fieldset legend {
  font-size: var(--fs-100); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--s-2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
/* progressive disclosure: later groups slide in once the prior group is valid */
.js .form-stage[hidden] { display: none; }
.form-stage { transition: opacity var(--t-med) var(--ease), translate var(--t-med) var(--ease); }
.js .form-stage.is-entering { opacity: 0; translate: 0 var(--s-2); }
.form-actions { display: flex; align-items: center; gap: var(--s-3); }
.form-note { color: var(--muted); font-size: var(--fs-100); }
.form-success {
  grid-column: 1 / 8;
  display: none;
  gap: var(--s-2); align-items: flex-start;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--e-1);
}
.form-success.is-shown { display: flex; }
.aside-block { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.aside-block h3 { font: 600 var(--fs-200) var(--font-ui); margin-bottom: var(--s-05); }
.aside-block p, .aside-block a { color: var(--muted); }
.aside-block a {
  display: inline-flex; align-items: center; min-height: var(--target-min);
  color: var(--bronze); font-weight: 500;
}

/* ==========================================================================
   FOOTER (dark)
   ========================================================================== */
.footer { position: relative; overflow: clip; background: var(--ink); padding-block: var(--s-12) var(--s-4); }
.footer-bg { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; opacity: 0.7; }
.footer-scrim { /* melts the 3:1 strip's lower edge into the section color */
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--ink) 72%);
}
.footer .container { position: relative; }
.footer-brand { grid-column: 1 / 5; }
.footer-brand .brand .mark-slot { border-color: var(--paper); }
.footer-brand .brand .wordmark-slot { color: var(--paper); }
.footer-brand p { color: var(--text-2); margin-top: var(--s-2); max-width: 28ch; }
.footer-col { grid-column: span 2; }
.footer-col:nth-of-type(1) { grid-column: 6 / 8; }
.footer-col:nth-of-type(2) { grid-column: 8 / 11; } /* widest: holds the email address */
.footer-col:nth-of-type(3) { grid-column: 11 / 13; }
.footer-col h3 {
  font-size: var(--fs-100); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s-2);
}
.footer-col ul { display: flex; flex-direction: column; row-gap: var(--s-1); }
.footer-col a {
  display: inline-flex; align-items: center;
  min-height: var(--target-min);
  color: var(--paper); text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--stone); }
.footer-legal {
  margin-top: var(--s-8); padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  color: var(--text-2); font-size: var(--fs-100);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .section { padding-block: var(--s-12); }
  .hero-copy, .hero-stats { grid-column: 1 / 13; }
  .hero-art { grid-column: 1 / 13; margin-top: var(--s-8); min-height: 0; }
  .hero-art .layer-chip { left: var(--s-2); bottom: calc(-1 * var(--s-3)); }
  .cap-grid { grid-template-columns: 1fr; }
  .approach-visual { grid-column: 1 / 13; margin-bottom: var(--s-6); }
  .approach-copy { grid-column: 1 / 13; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-column: 1 / 13; padding: var(--s-6); }
  .contact-form { grid-column: 1 / 13; }
  .form-success { grid-column: 1 / 13; }
  .contact-aside { grid-column: 1 / 13; }
  .footer-brand { grid-column: 1 / 13; margin-bottom: var(--s-6); }
  .footer-col, .footer-col:nth-of-type(1), .footer-col:nth-of-type(2),
  .footer-col:nth-of-type(3) { grid-column: span 4; }
}

@media (max-width: 640px) {
  .section { padding-block: var(--s-8); }
  .hero { padding-block: calc(var(--nav-h) + var(--s-8)) var(--s-8); }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s-4); }
  .footer-col, .footer-col:nth-of-type(1), .footer-col:nth-of-type(2),
  .footer-col:nth-of-type(3) { grid-column: 1 / 13; }
  .quote-card { padding: var(--s-4); }

  /* mobile nav */
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: var(--s-05);
    padding: var(--s-2) var(--gutter) var(--s-3);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--e-3);
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { margin-left: 0; margin-top: var(--s-1); }
}

/* ==========================================================================
   REDUCED MOTION — one switch kills all movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .parallax { translate: none !important; }
}
