/* ==========================================================================
   base.css — website-builder design system
   --------------------------------------------------------------------------
   Token-driven. Set the :root tokens per client (Phase 5) and everything
   below inherits. Do NOT hard-code colours, sizes, or spacing in page CSS —
   if you need a new value, add a token.

   Order: tokens → reset → base elements → layout → components → utilities
          → motion → print.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS  —  REPLACE THE VALUES IN THIS BLOCK PER CLIENT
   ========================================================================== */

:root {
  /* ---- Colour: values come from brand.json via /assets/css/tokens.css --- */
  --surface:     var(--b-ivory);
  --surface-2:   var(--b-ivory2);
  --surface-3:   var(--b-line);
  --ink:         var(--b-ink);
  --ink-muted:   var(--b-muted);
  --anchor:      var(--b-ink);
  --anchor-700:  var(--b-inkSoft);
  --accent:      var(--b-accent);
  --accent-600:  color-mix(in srgb, var(--b-accent) 80%, black);
  --accent-tint: color-mix(in srgb, var(--b-accent) 7%, var(--b-ivory));
  --on-accent:   var(--b-ivory);
  --on-anchor:   var(--b-ivory);
  --border:      var(--b-line);
  --focus:       var(--b-focus);
  --champagne:   var(--b-champagne);

  --ok:    var(--b-ok);
  --warn:  #7A5200;
  --error: var(--b-error);

  /* ---- Type: families come from brand.json ---------------------------- */
  --font-display: var(--b-font-display);
  --font-body:    var(--b-font-body);

  /* One notch larger than kit default: the audience is seniors and their
     adult children, and small type is a genuine barrier here. */
  --step--2: clamp(0.75rem, 0.73rem + 0.08vw, 0.81rem);
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 1.00rem);
  --step-0:  clamp(1.06rem, 1.02rem + 0.22vw, 1.19rem);
  --step-1:  clamp(1.31rem, 1.22rem + 0.45vw, 1.56rem);
  --step-2:  clamp(1.63rem, 1.45rem + 0.85vw, 2.06rem);
  --step-3:  clamp(2.00rem, 1.72rem + 1.45vw, 2.75rem);
  --step-4:  clamp(2.44rem, 2.00rem + 2.30vw, 3.50rem);
  --step-5:  clamp(2.90rem, 2.25rem + 3.40vw, 4.40rem);

  --lh-tight:  1.08;
  --lh-snug:   1.25;
  --lh-body:   1.7;
  --tracking-display: -0.025em;

  /* ---- Space (4px base) ------------------------------------------------ */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;   --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;     --space-9: 6rem;
  --space-10: 8rem;

  --section-y: clamp(3.5rem, 8vw, 7.5rem);   /* vertical section rhythm */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;

  /* ---- Shape ----------------------------------------------------------- */
  --radius:    4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --border-w: 1px;

  /* ---- Depth (tinted with the anchor hue, never pure black) ------------ */
  --shadow-sm: 0 1px 2px -1px rgb(20 32 26 / .08),
               0 1px 3px     rgb(20 32 26 / .06);
  --shadow-md: 0 4px 6px -2px rgb(20 32 26 / .06),
               0 12px 20px -4px rgb(20 32 26 / .10);
  --shadow-lg: 0 8px 12px -4px rgb(20 32 26 / .06),
               0 24px 48px -12px rgb(20 32 26 / .16);

  /* ---- Motion ---------------------------------------------------------- */
  --dur:      200ms;
  --dur-slow: 500ms;
  --ease:     cubic-bezier(.2, 0, 0, 1);

  --header-h: 72px;
  --z-header: 100;
  --z-menu:   200;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  /* `clip`, not `hidden`: both stop the off-canvas mobile menu (parked at
     translateX(100%)) from creating a horizontal scrollbar, but `hidden`
     silently breaks `position: sticky` on the header. */
  overflow-x: clip;
}
body { overflow-x: clip; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

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

input, button, textarea, select { font: inherit; color: inherit; }

p, h1, h2, h3, h4, li, figcaption { overflow-wrap: break-word; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ==========================================================================
   3. BASE ELEMENTS
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: var(--lh-snug); }
h4 { font-size: var(--step-1); line-height: var(--lh-snug); }

p, ul, ol { max-width: var(--measure); }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-600); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--on-accent); }

hr {
  border: 0;
  border-top: var(--border-w) solid var(--border);
  margin: var(--space-7) 0;
}

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: var(--lh-snug);
}

/* Skip link — accessibility requirement, first element in <body> */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 999;
  padding: var(--space-3) var(--space-5);
  background: var(--anchor);
  color: var(--on-anchor);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

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

.section { padding-block: var(--section-y); }

/* Alternating bands give the page a pulse. Never ship a page where every
   section is the same colour. */
.section--alt    { background: var(--surface-2); }
.section--anchor {
  background: var(--anchor);
  color: var(--on-anchor);
}
.section--anchor :where(h1, h2, h3, h4) { color: var(--on-anchor); }
.section--anchor :where(p, li)          { color: rgb(from var(--on-anchor) r g b / .85); }
.section--anchor a:not(.btn)            { color: var(--accent-tint); }

.section__head { max-width: 60ch; margin-bottom: var(--space-7); }
.section__head > * + * { margin-top: var(--space-4); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--anchor .eyebrow { color: var(--accent-tint); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-muted);
}
.section--anchor .lede { color: rgb(from var(--on-anchor) r g b / .82); }

/* Grid: auto-fit with a floor. Handles 2/3/4-up without media queries. */
.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* Two-column split, stacks under 900px */
.split {
  display: grid;
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--40-60 { grid-template-columns: 4fr 6fr; }
  .split--60-40 { grid-template-columns: 6fr 4fr; }
  .split--reverse > :first-child { order: 2; }
}

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

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

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;                       /* tap target */
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--border-w) solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover {
  --btn-bg: var(--accent-600);
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border);
}
.btn--secondary:hover {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
  border-color: var(--ink-muted);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-anchor);
  border-color: rgb(from var(--on-anchor) r g b / .35);
}
.btn--ghost:hover {
  --btn-bg: rgb(from var(--on-anchor) r g b / .12);
  --btn-fg: var(--on-anchor);
}

.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-7); font-size: var(--step-1); }
.btn--block { width: 100%; }

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

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(from var(--surface) r g b / .88);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-w) solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { max-height: 40px; width: auto; }

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.nav__link {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: none;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: rotate(-45deg) translateY(0); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-menu);
  padding: var(--space-6) var(--gutter);
  background: var(--surface);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.mobile-menu[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-menu__list { list-style: none; padding: 0; margin: 0; max-width: none; }
.mobile-menu__list li + li { border-top: var(--border-w) solid var(--border); }
.mobile-menu__link {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* Below the desktop breakpoint a text phone button in the header wraps the
   cluster onto a second row, doubling header height and pushing the menu
   toggle down. Hide it — the sticky .callbar and the CTA inside the mobile
   menu carry the call action. Always ship one of those two on mobile. */
@media (max-width: 899px) {
  .header .cluster { flex-wrap: nowrap; }
  /* Descendant selector on purpose. A direct-child chain silently stops
     matching the moment the header markup gains a wrapper, and the hidden
     button reappears at full width on phones — pushing the menu toggle
     clean off the screen. */
  .header .cluster .btn { display: none; }
}

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

.hero { position: relative; padding-block: clamp(4rem, 10vw, 9rem); }
/* Must be a CHILD of .container, never combined with it on one element —
   .container's margin-inline:auto plus this max-width would centre a narrow
   column instead of left-aligning it. margin-inline:0 defends against that. */
.hero__content { position: relative; z-index: 2; max-width: 34ch; margin-inline: 0; }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lede { margin-bottom: var(--space-6); max-width: 52ch; }

.hero--image {
  color: var(--on-anchor);
  min-height: min(78svh, 760px);
  display: grid;
  /* minmax(0,1fr) is required: with an `auto` column the percentage-width
     .container collapses to its content's max-width and centres itself. */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero--image h1 { color: var(--on-anchor); }
.hero--image .lede { color: rgb(from var(--on-anchor) r g b / .88); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Gradient scrim, not a flat wash — keeps the photo alive under the text */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    100deg,
    rgb(from var(--anchor-700) r g b / .88) 0%,
    rgb(from var(--anchor-700) r g b / .70) 42%,
    rgb(from var(--anchor-700) r g b / .25) 100%);
}

/* Grain overlay — removes the "flat template" feel from solid colour blocks */
.grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: .04; mix-blend-mode: overlay;
}

/* ---- Cards -------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.section--alt .card { background: var(--surface); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__body > p { max-width: none; }
.card__title { font-size: var(--step-1); }
.card__title a { color: var(--ink); text-decoration: none; }
.card--link:hover .card__title a { color: var(--accent); }
.card__foot { margin-top: auto; padding-top: var(--space-4); }

/* Whole-card click target without nesting interactive elements */
.card--link { position: relative; }
.card--link a::after { content: ""; position: absolute; inset: 0; }

/* ---- Stats -------------------------------------------------------------- */

.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.section--anchor .stat__num { color: var(--accent-tint); }
.stat__label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--anchor .stat__label { color: rgb(from var(--on-anchor) r g b / .75); }

/* ---- Testimonial -------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.quote__text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; max-width: none; }
.quote__cite { display: flex; align-items: center; gap: var(--space-3); font-style: normal; margin-top: auto; }
.quote__avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); object-fit: cover; flex-shrink: 0; }
.quote__name { font-weight: 600; font-size: var(--step--1); }
.quote__meta { font-size: var(--step--1); color: var(--ink-muted); }

.stars { display: inline-flex; gap: 2px; color: var(--accent); }

/* ---- Accordion / FAQ ---------------------------------------------------- */

.accordion { border-top: var(--border-w) solid var(--border); }
.accordion__item { border-bottom: var(--border-w) solid var(--border); }
.accordion__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+";
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__panel { padding-bottom: var(--space-5); color: var(--ink-muted); }

/* ---- Forms -------------------------------------------------------------- */

.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--step--1); font-weight: 600; }
.field .hint { font-size: var(--step--1); color: var(--ink-muted); }
.field .req { color: var(--error); }

.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-muted); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(from var(--accent) r g b / .18);
  outline: none;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: var(--step--1); color: var(--error); }

/* Honeypot — must be visually hidden AND hidden from AT, never display:none
   (some bots detect that). */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status { padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: var(--step--1); }
.form__status[data-state="success"] { background: rgb(from var(--ok) r g b / .12);    color: var(--ok); }
.form__status[data-state="error"]   { background: rgb(from var(--error) r g b / .10); color: var(--error); }

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

.footer {
  background: var(--anchor);
  color: var(--on-anchor);
  padding-block: var(--space-8) var(--space-6);
}
.footer :where(h2, h3, h4) { color: var(--on-anchor); font-size: var(--step-0); }
.footer a { color: rgb(from var(--on-anchor) r g b / .82); text-decoration: none; }
.footer a:hover { color: var(--on-anchor); text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.footer__list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(from var(--on-anchor) r g b / .18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--step--1);
  color: rgb(from var(--on-anchor) r g b / .70);
}

/* ---- Sticky mobile call bar (huge for local service businesses) --------- */

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-header);
  display: grid;
  grid-auto-flow: column;
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -4px 16px rgb(20 32 26 / .10);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.callbar a + a { border-left: 1px solid var(--border); }
.callbar a.is-primary { background: var(--accent); color: var(--on-accent); }
@media (min-width: 900px) { .callbar { display: none; } }
@media (max-width: 899px) { body:has(.callbar) { padding-bottom: 56px; } }

/* ---- Breadcrumbs -------------------------------------------------------- */

.breadcrumb { font-size: var(--step--1); color: var(--ink-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; max-width: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); opacity: .5; }

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

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

.text-center  { text-align: center; }
.text-muted   { color: var(--ink-muted); }
.text-accent  { color: var(--accent); }
.mx-auto      { margin-inline: auto; }
.measure      { max-width: var(--measure); }
.full-bleed   { width: 100vw; margin-inline: calc(50% - 50vw); }
.no-wrap      { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.aspect-16-9 { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.aspect-4-3  { aspect-ratio: 4 / 3;  object-fit: cover; width: 100%; }
.aspect-1-1  { aspect-ratio: 1 / 1;  object-fit: cover; width: 100%; }

/* Lazy-loaded map / embed wrapper */
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); border-radius: var(--radius-lg); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   7. MOTION
   ========================================================================== */

/* Reveal animations are gated behind `.js` on <html>, set by a one-line
   inline script in <head>. WITHOUT that class these rules never apply, so a
   visitor with JS disabled or broken sees the content — never a blank page.
   Never write `[data-reveal] { opacity: 0 }` unscoped. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger children without per-item CSS */
.js [data-reveal-group].is-visible > * { animation: rise var(--dur-slow) var(--ease) backwards; }
.js [data-reveal-group].is-visible > *:nth-child(2) { animation-delay: 70ms; }
.js [data-reveal-group].is-visible > *:nth-child(3) { animation-delay: 140ms; }
.js [data-reveal-group].is-visible > *:nth-child(4) { animation-delay: 210ms; }
.js [data-reveal-group].is-visible > *:nth-child(5) { animation-delay: 280ms; }
.js [data-reveal-group].is-visible > *:nth-child(6) { animation-delay: 350ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   8. PRINT
   ========================================================================== */

@media print {
  .header, .footer, .callbar, .nav, .nav-toggle, .mobile-menu,
  .hero__media, .hero__scrim, .grain, [data-no-print] { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .card, .quote { break-inside: avoid; border: 1px solid #ccc; }
  h1, h2, h3 { break-after: avoid; }
}

/* ==========================================================================
   9. SITE-SPECIFIC LAYER (inherited from the baseline). Tokens only.
      Section 10 (/assets/css/gallery.css) restyles it for Direction A.
   ========================================================================== */

/* ---- Logo — a red rule and a clean wordmark. No badge, no circle. ------- */
.logo {
  display: inline-flex; align-items: center; gap: var(--space-4);
  text-decoration: none; line-height: 1;
}
.logo::before {
  content: ""; display: block; width: 6px; height: 56px;
  background: var(--accent); flex-shrink: 0;
}
.footer .logo::before { height: 48px; }
.logo__text { display: flex; flex-direction: column; gap: 6px; }
.logo__name {
  font-family: var(--font-display);
  font-size: 2.15rem; font-weight: 700; letter-spacing: -0.022em;
  color: var(--ink); white-space: nowrap;
}
.logo__name em { font-style: normal; color: var(--accent); }
.footer .logo__name { color: var(--on-anchor); font-size: 1.7rem; }
.footer .logo__name em { color: var(--accent); }
.logo__sub {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap;
}
.footer .logo__sub { color: rgb(from var(--on-anchor) r g b / .62); }
@media (max-width: 1200px) { .logo__name { font-size: 1.8rem; } }
@media (max-width: 520px)  {
  .logo::before { height: 44px; }
  .logo__name { font-size: 1.45rem; }
  .logo__sub  { font-size: 0.62rem; letter-spacing: 0.17em; }
}
@media (max-width: 380px)  {
  .logo::before { height: 40px; }
  .logo__name { font-size: 1.3rem; }
  .logo__sub  { font-size: 0.56rem; }
}

/* ---- Header layout ------------------------------------------------------- *
 * Wordmark hard left; nav, the professionals link, and the CTA grouped hard
 * right as a single unit. Deliberate asymmetry beats near-symmetry.
 * ------------------------------------------------------------------------- */
:root {
  --header-h: 104px;
  --nav-gap: 1.75rem;   /* every gap in the header uses this — nothing else */
}

.header { border-bottom: 1px solid var(--border); background: rgb(255 255 255 / .94); }
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;   /* wordmark | everything else, right-aligned */
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
}
/* Uniform rhythm: nav items, the professionals link and the CTA are all
   separated by exactly --nav-gap. Mixed gap values were what read as
   "big spaces" between some items and not others. */
.header__end       { gap: var(--nav-gap); }
.header__end .nav__list { gap: var(--nav-gap); }
.header__end .cluster   { gap: var(--nav-gap); }
.header__inner > .logo { justify-self: start; }
/* Nav and the utility group are one right-aligned unit. True optical
   centring is impossible when the two flanks differ in width by 170px —
   it always reads slightly off. Grouping right reads deliberate instead. */
.header__end {
  grid-column: 2; justify-self: end;
  display: flex; align-items: center;
}
.header__end .cluster { flex-wrap: nowrap; }
.header .btn { white-space: nowrap; }

/* ---- Nav ----------------------------------------------------------------- */
.header[data-scrolled] { box-shadow: 0 1px 12px rgb(17 17 19 / .07); }
.nav__link {
  /* inline-block + nowrap: as plain inline elements the multi-word links
     wrapped inside their <li>, inflating some boxes and making the gaps
     look wildly uneven (28px next to 92px). */
  display: inline-block; white-space: nowrap;
  font-size: 0.94rem; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink); border-bottom: 2px solid transparent; padding-block: 6px;
}
.nav__list li { display: flex; }
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* The professional door lives in the right-hand utility group, not the main
   nav — it is a second audience, and inside the centre nav its length threw
   the whole header off balance. */
.nav__link--pro {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.94rem; color: var(--ink-muted); white-space: nowrap;
}
.nav__link--pro::after {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.nav__link--pro:hover { color: var(--accent); }
.nav__link--pro[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }


/* Tweener zone. Keep the CTA — a header phone number is worth real calls —
   but shrink it. It also has to stay present for the 1fr/auto/1fr grid to
   balance: an empty right column lets the logo push the nav off-centre. */
@media (min-width: 900px) and (max-width: 1400px) {
  :root { --nav-gap: 1.25rem; }
  .nav__link, .nav__link--pro { font-size: 0.88rem; }
  .header .btn {
    font-size: 0.86rem; padding: var(--space-2) var(--space-4);
    min-height: 42px;
  }
}
@media (min-width: 900px) and (max-width: 1220px) {
  :root { --nav-gap: 1rem; }
  .logo__sub { display: none; }
  .nav__link, .nav__link--pro { font-size: 0.82rem; }
}
/* Not enough room for both the pro link and the phone button */
@media (min-width: 900px) and (max-width: 1120px) {
  .header .nav__link--pro { display: none; }
}
/* Below the desktop breakpoint the nav is hidden; keep the two remaining
   columns hard against the edges rather than leaving a phantom centre gap. */
@media (max-width: 899px) {
  :root { --header-h: 86px; }
  .header__end { gap: 0; }
  /* Both live in .cluster now — hide the professionals link too, or it
     overflows and pushes the menu toggle off the right edge. Both are in
     the mobile menu. */
  .header .nav__link--pro { display: none; }
}

/* ---- Hero — full-bleed art, content centred over it ---------------------- */
.hero--type {
  position: relative; overflow: hidden;
  background: var(--anchor); color: var(--on-anchor);
  min-height: min(70svh, 640px);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--type::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgb(13 13 15 / .55) 0%, rgb(13 13 15 / .35) 45%, rgb(13 13 15 / .80) 100%);
}
.hero--type > .container { position: relative; z-index: 2; }
.hero__content {
  /* NOT ch here — ch resolves against this element's own font-size (body),
     which collapsed the column to ~290px. Size in px, cap the h1 in ch. */
  max-width: 880px; margin-inline: auto; text-align: center;
}
.hero--type h1 {
  color: var(--on-anchor); max-width: 20ch; margin-inline: auto;
  font-size: clamp(2.6rem, 1.9rem + 3.4vw, 4.3rem);
  letter-spacing: -0.03em; line-height: 1.02;
}
.hero--type .lede {
  color: rgb(from var(--on-anchor) r g b / .88);
  max-width: 54ch; margin-inline: auto;
}
.hero--type .eyebrow { color: #FFFFFF; opacity: .85; }
.hero--type .eyebrow::after {
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--accent); margin: var(--space-4) auto 0;
}
.hero--type .cluster { justify-content: center; }
.hero__cities {
  margin: var(--space-6) auto 0; max-width: 68ch; text-wrap: balance;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.9;
  color: rgb(from var(--on-anchor) r g b / .58);
}
.hero__note {
  margin-top: var(--space-4); font-size: var(--step--1);
  color: rgb(from var(--on-anchor) r g b / .5);
}
@media (max-width: 560px) { .hero__cities { font-size: 0.72rem; letter-spacing: 0.06em; } }
.band { position: relative; overflow: hidden; }
.band__inner { position: relative; z-index: 2; }
.band__media { position: absolute; inset: 0; z-index: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgb(13 13 15 / .55);
}

/* ---- Trust bar ----------------------------------------------------------- */
.trustbar { padding-block: var(--space-6); border-bottom: 1px solid var(--border); background: var(--surface); }
.trustbar .stat { border-left: 2px solid var(--accent); padding-left: var(--space-4); text-align: left; }
.trustbar .stat__num { font-size: var(--step-1); color: var(--ink); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.trustbar .stat__label { text-transform: none; letter-spacing: 0; font-size: var(--step--1); }
.trustbar a { color: var(--accent); }
.bare { list-style: none; padding: 0; margin: 0; max-width: none; }

/* ---- Section variants ---------------------------------------------------- */
.section--head { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-6); }
.section--head h1 { margin-bottom: var(--space-5); }
.section--head.section--anchor h1 { color: var(--on-anchor); }
.section--pro { background: var(--anchor); color: var(--on-anchor); }
.section--pro :where(h2, h3) { color: var(--on-anchor); }
.section--pro p { color: rgb(from var(--on-anchor) r g b / .82); }
.section--pro .eyebrow { color: rgb(from var(--on-anchor) r g b / .75); }
.section--pro .panel {
  background: rgb(255 255 255 / .05);
  border-color: rgb(255 255 255 / .16);
  color: var(--on-anchor);
}
.section--pro .panel__title { color: var(--on-anchor); }
.section--pro .panel__note { color: rgb(from var(--on-anchor) r g b / .6); }
.section--pro .ticks li::before { border-color: var(--accent); }
.section--pro .btn--secondary {
  --btn-fg: var(--on-anchor); border-color: rgb(255 255 255 / .35);
}
.section--pro .btn--secondary:hover {
  --btn-bg: rgb(255 255 255 / .12); --btn-fg: var(--on-anchor);
}

/* ---- Panels -------------------------------------------------------------- */
.panel {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.panel--accent { border-left: 3px solid var(--accent); }
.panel--ok     { border-left: 3px solid var(--ok); }
.panel--warn   { border-left: 3px solid var(--warn); }
.panel__title  { font-size: var(--step-1); margin-bottom: var(--space-4); }
.panel__note   { margin-top: var(--space-4); font-size: var(--step--1); color: var(--ink-muted); }
.panel > p { max-width: none; }
.panel > p + p { margin-top: var(--space-4); }

/* ---- Callouts ------------------------------------------------------------ */
.callout {
  margin: var(--space-7) 0; padding: var(--space-6);
  background: var(--surface-2); border-radius: var(--radius-lg);
  border-left: 4px solid var(--anchor);
}
.callout--accent { background: var(--accent-tint); border-left-color: var(--accent); }
.callout--muted  { border-left-color: var(--border); font-size: var(--step--1); }
.callout--legal  { background: var(--surface); border: 1px solid var(--anchor); border-left-width: 4px; }
.callout__title  { font-size: var(--step-1); margin-bottom: var(--space-4); }
.callout p { max-width: none; }
.callout p + p { margin-top: var(--space-4); }

/* ---- Prose --------------------------------------------------------------- */
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-8); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-6); }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul,
.prose h2 + div, .prose h2 + table { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 0; }
.prose .meta { font-size: var(--step--1); color: var(--ink-muted); }
.small { font-size: var(--step--1); }

/* ---- Tick / cross / numbered lists --------------------------------------- */
.ticks { list-style: none; padding: 0; display: grid; gap: var(--space-3); max-width: none; }
.ticks li { position: relative; padding-left: 1.9em; }
.ticks li::before {
  content: ""; position: absolute; left: .15em; top: .42em;
  width: .7em; height: .38em;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.panel--ok .ticks li::before { border-color: var(--ok); }
.ticks--x li::before {
  content: "\00d7"; border: 0; transform: none;
  left: .2em; top: -.05em; width: auto; height: auto;
  font-size: 1.25em; line-height: 1.25; color: var(--warn);
}

.numbered { counter-reset: n; list-style: none; padding: 0; display: grid; gap: var(--space-5); max-width: none; }
.numbered li { counter-increment: n; position: relative; padding-left: 2.8em; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: -.05em;
  display: grid; place-items: center; width: 1.9em; height: 1.9em;
  background: var(--accent-tint); color: var(--accent-600);
  font-weight: 700; font-size: .85em; border-radius: 50%;
}

/* ---- Steps --------------------------------------------------------------- */
.steps .step h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.step__num {
  display: block; font-family: var(--font-display);
  font-size: var(--step-2); color: var(--accent); line-height: 1;
  margin-bottom: var(--space-3);
}
.step p { max-width: none; color: var(--ink-muted); font-size: var(--step--1); }

/* ---- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--step--1); }
.table caption {
  caption-side: bottom; margin-top: var(--space-3);
  font-size: var(--step--1); color: var(--ink-muted); text-align: left;
}
.table th, .table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.table thead th { background: var(--surface-2); }
.table tbody th { font-weight: 600; }

/* ---- Pull quote ---------------------------------------------------------- */
.pull {
  margin: var(--space-8) 0; padding: var(--space-6) var(--space-7);
  background: var(--anchor); color: var(--on-anchor);
  border-radius: var(--radius-lg);
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35;
}
.pull cite {
  display: block; margin-top: var(--space-4);
  font-family: var(--font-body); font-size: var(--step--1); font-style: normal;
  color: rgb(from var(--on-anchor) r g b / .72);
}

/* ---- Cards / lists ------------------------------------------------------- */
.card--pad { padding: var(--space-6); }
.card--pad > * + * { margin-top: var(--space-4); }
.card--pad p { max-width: none; }

.citylist {
  list-style: none; padding: 0; margin: 0; max-width: none;
  columns: 2; column-gap: var(--space-5);
  font-size: var(--step--1); color: var(--ink-muted);
}
.citylist li { break-inside: avoid; padding: .2em 0; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { padding-block: var(--space-4) 0; }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ---- Footer -------------------------------------------------------------- */
.footer h2 { font-size: var(--step-0); }
.footer__bottom p { max-width: 62ch; }
.footer__bottom a { text-decoration: underline; }

/* ---- Feature image -------------------------------------------------------- */
.feature-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 2px;
}

/* ---- Sharper shape language for red/black/white --------------------------- */
:root { --radius: 2px; --radius-lg: 3px; }
.card { border-radius: var(--radius-lg); }
.panel { border-radius: var(--radius-lg); }
.btn { border-radius: 2px; letter-spacing: 0.005em; }
.pull { border-radius: 2px; }
.callout { border-radius: 2px; }

/* Section heads get a small red rule — ties the system together */
.section__head .eyebrow::after {
  content: ""; display: block; width: 32px; height: 2px;
  background: var(--accent); margin-top: var(--space-3);
}
.section--anchor .eyebrow::after { background: var(--accent); }

/* Dark page-head bands share the centred hero treatment */
.section--head.section--anchor { text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--head.section--anchor .hero__content { max-width: 760px; margin-inline: auto; }
.section--head.section--anchor h1 { max-width: 18ch; margin-inline: auto; }
.section--head.section--anchor .lede { max-width: 56ch; margin-inline: auto; }
.section--head.section--anchor .eyebrow { color: rgb(255 255 255 / .8); }
.section--head.section--anchor .eyebrow::after { margin-inline: auto; }
.section--head.section--anchor .cluster { margin-top: var(--space-6); }
.section--head.section--anchor .lede { margin-bottom: 0; }

/* A page-head band immediately followed by prose double-pads. Pull the
   prose section up so the lede and the first paragraph read as one block. */
.section--head + .section > .container.prose,
.section--head + .section > .container--narrow.prose { padding-top: 0; }
.section--head + .section { padding-top: var(--space-6); }
