/* =====================================================================
   ProFlo Exterior Cleaning – styles.css
   Implements the Phase 3 design system (03-design/design-system.md).
   Tokens, type scale, colour, motif (Flow Channel) and components are
   taken verbatim from that document. Vanilla CSS, no build step.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens (consolidated :root from design-system §9)
   --------------------------------------------------------------------- */
:root {
  /* ---------- Type families ---------- */
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Asap", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  /* ---------- Type scale ---------- */
  --fs-display: clamp(2.75rem, 1.6rem + 5.6vw, 4.75rem);
  --fs-h1:      clamp(2.25rem, 1.5rem + 3.4vw, 3.5rem);
  --fs-h2:      clamp(1.875rem, 1.4rem + 2.1vw, 2.5rem);
  --fs-h3:      clamp(1.4rem, 1.15rem + 1.1vw, 1.75rem);
  --fs-h4:      clamp(1.2rem, 1.08rem + 0.55vw, 1.375rem);
  --fs-h5:      1.125rem;
  --fs-h6:      1rem;
  --fs-lead:    clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small:   0.875rem;
  --fs-xs:      0.75rem;
  --fs-overline:0.8125rem;

  --lh-display: 0.92; --lh-tight: 1.0; --lh-heading: 1.1; --lh-snug: 1.3; --lh-body: 1.65; --lh-lead: 1.5;
  --ls-display: -0.02em; --ls-h1: -0.015em; --ls-h2: -0.01em; --ls-tight: -0.005em;
  --ls-normal: 0; --ls-label: 0.01em; --ls-overline: 0.18em;

  /* ---------- Colour scale ---------- */
  --slate-900: #13212B; --slate-800: #1E3340; --slate-700: #2B4554; --slate-500: #5A6B73;
  --cyan-500:  #15A8C4; --cyan-700:  #0E7E94; --cyan-050:  #E3F2F5;
  --canvas:    #F6F4EF; --white: #FFFFFF; --concrete: #ECE9E2; --concrete-line: #D8D3C8;
  --ink-900:   #16242C; --ink-700: #3C4A52; --ink-500: #6B7780;
  --caution:   #D9772B; --success: #2E8B57; --error: #C0392B;

  /* ---------- Semantic aliases ---------- */
  --bg: var(--canvas);
  --surface: var(--white);
  --surface-alt: var(--concrete);
  --surface-dark: var(--slate-900);
  --surface-dark-raised: var(--slate-800);
  --ink: var(--ink-900);
  --ink-soft: var(--ink-700);
  --muted: var(--ink-500);
  --ink-on-dark: #EAF1F3;
  --muted-on-dark: var(--slate-500);
  --accent: var(--cyan-500);
  --accent-ink: var(--cyan-700);
  --accent-tint: var(--cyan-050);
  --line: var(--concrete-line);
  --line-strong: #B9B3A6;
  --line-on-dark: var(--slate-700);
  --focus-ring: var(--cyan-500);

  /* ---------- Spacing ---------- */
  --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(var(--space-7), 4vw + 1rem, var(--space-9));
  --gutter: clamp(var(--space-4), 3vw, var(--space-6));
  --content-max: 1200px; --wide-max: 1440px; --measure: 68ch;

  /* ---------- Borders / shadow ---------- */
  --radius: 0;
  --border: 1px solid var(--line);
  --border-strong: 2px solid var(--ink-900);
  --border-dark: 1px solid var(--line-on-dark);
  --border-accent: 2px solid var(--accent);
  --shadow-1: 0 1px 0 rgba(19, 33, 43, 0.06), 0 2px 4px rgba(19, 33, 43, 0.06);
  --shadow-2: 0 2px 0 rgba(19, 33, 43, 0.10), 0 6px 14px rgba(19, 33, 43, 0.10);
  --shadow-inset-line: inset 0 -3px 0 var(--accent);

  /* ---------- Motion ---------- */
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------
   2. Reset + base (hard corners enforced globally)
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }
/* Belt-and-braces: force flat corners even on third-party widgets. */
* { border-radius: var(--radius) !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight);   letter-spacing: var(--ls-h1); font-weight: var(--fw-black); text-transform: uppercase; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight);   letter-spacing: var(--ls-h2); font-weight: var(--fw-bold);  text-transform: uppercase; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: var(--ls-tight); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); letter-spacing: var(--ls-normal); font-weight: var(--fw-semibold); }

h5, h6 { font-family: var(--font-body); font-weight: var(--fw-bold); margin: 0 0 var(--space-2); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-snug); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-snug); letter-spacing: var(--ls-label); }

p { margin: 0 0 var(--space-4); max-width: 68ch; }

.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-soft); max-width: 60ch; }

.overline {
  font-family: var(--font-display);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: var(--lh-tight);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
small, .small { font-size: var(--fs-small); line-height: var(--lh-snug); }
.xs { font-size: var(--fs-xs); color: var(--muted); }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

/* Utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   3. Layout primitives (design-system §4.2)
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--wide-max); }
.container--prose { max-width: 70ch; }

.section { padding-block: var(--section-y); }
.section--dark { background: var(--surface-dark); color: var(--ink-on-dark); }
.section--alt  { background: var(--surface-alt); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--ink-on-dark); }
.section--dark a { color: var(--accent); }

.section-head { margin-bottom: var(--space-7); max-width: 56ch; }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head .lead { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .flow-mark { margin-inline: auto; }
.section-head--center .overline { justify-content: center; }

.stack > * + * { margin-top: var(--space-4); }
.cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-row--center { justify-content: center; }

/* ---------------------------------------------------------------------
   4. Signature motif – Flow Channel (design-system §5.3)
   --------------------------------------------------------------------- */
.flow-divider {
  --fc-h: 4px;
  --fc-step: 14px;
  position: relative;
  height: calc(var(--fc-h) + var(--fc-step));
  width: 100%;
  margin-block: var(--space-6);
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 52% var(--fc-h) no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 52% var(--fc-h) no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) calc(50% - 2px) top / 4px 100% no-repeat;
}
.flow-divider::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 30% var(--fc-h) no-repeat;
}
.section--dark .flow-divider { --line-strong: var(--slate-700); }

.flow-mark {
  display: block;
  width: 56px; height: 4px;
  background: var(--accent);
  margin-bottom: var(--space-4);
  position: relative;
}
.flow-mark::after {
  content: "";
  position: absolute;
  right: -10px; bottom: 0;
  width: 10px; height: 12px;
  border-left: 4px solid var(--accent);
}

.rule { border: 0; height: 2px; background: var(--line-strong); margin-block: var(--space-7); }
.section--dark .rule { background: var(--slate-700); }

/* ---------------------------------------------------------------------
   5. Buttons (design-system §6.1)
   --------------------------------------------------------------------- */
.btn {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--accent); color: var(--slate-900); border-color: var(--accent); }
.btn--primary:hover { background: var(--cyan-700); border-color: var(--cyan-700); color: var(--white); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink-900); }
.btn--secondary:hover { background: var(--ink-900); color: var(--canvas); }

.section--dark .btn--secondary { color: var(--ink-on-dark); border-color: var(--ink-on-dark); }
.section--dark .btn--secondary:hover { background: var(--ink-on-dark); color: var(--slate-900); }

.btn--call { background: var(--accent); color: var(--slate-900); border-color: var(--accent); }
.btn--call:hover { background: var(--cyan-700); color: var(--white); border-color: var(--cyan-700); }

.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   6. Header / navigation (design-system §6.2)
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--slate-900); color: var(--white);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-5); min-height: 44px;
  display: inline-flex; align-items: center; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease);
}
/* Condense-on-scroll: trimmed padding + stronger shadow once scrolled. */
.site-header[data-scrolled="true"] { box-shadow: var(--shadow-2); }
.site-header[data-scrolled="true"] .nav { min-height: 60px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav__logo img { height: 40px; width: auto; }

.nav__list {
  display: flex; align-items: center; gap: var(--space-5);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 var(--space-1);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 14px;
  height: 3px; width: 0; background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--accent-ink); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent; border: 2px solid var(--ink-900);
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-900);
}
.nav__toggle:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__panel { display: none; }
.callbar { display: none; }

/* ---------------------------------------------------------------------
   7. Hero + before/after slider (design-system §6.3)
   --------------------------------------------------------------------- */
.hero {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
  align-items: stretch;
}
.hero__copy { padding: var(--section-y) var(--gutter); align-self: center; max-width: 40rem; margin-left: auto; }
.hero__copy .overline { color: var(--accent); }
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--white);
  margin: var(--space-3) 0 var(--space-4);
}
.hero__title .accent { color: var(--accent); }
.hero__sub { font-size: var(--fs-lead); color: var(--ink-on-dark); line-height: var(--lh-lead); margin-bottom: var(--space-6); max-width: 44ch; }
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__note { margin-top: var(--space-5); margin-bottom: 0; color: var(--muted-on-dark); font-size: var(--fs-small); display: inline-flex; align-items: center; gap: var(--space-2); }

.ba {
  position: relative; overflow: hidden;
  min-height: 460px; height: 100%;
  --pos: 50%;
  background: var(--slate-800);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 4px; background: var(--accent);
  transform: translateX(-2px);
  pointer-events: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  background: var(--accent); border: 2px solid var(--slate-900);
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; transform: translate(-50%, -50%);
  border-left: 3px solid var(--slate-900); border-right: 3px solid var(--slate-900);
}
.ba__label {
  position: absolute; bottom: var(--space-4);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: var(--fs-small); font-weight: var(--fw-semibold);
  background: var(--slate-900); color: var(--white);
  padding: var(--space-1) var(--space-3); z-index: 2;
}
.ba__label--before { left: var(--space-4); }
.ba__label--after  { right: var(--space-4); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range:focus-visible { opacity: 0.001; outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; }
.ba__range::-moz-range-thumb { width: 48px; height: 100%; border: 0; background: transparent; }

/* ---------------------------------------------------------------------
   8. Trust bar (design-system §6.4)
   --------------------------------------------------------------------- */
.trustbar {
  background: var(--slate-800);
  color: var(--ink-on-dark);
  border-top: var(--border-dark);
}
.trustbar__list {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  justify-content: center; align-items: center;
  padding-block: var(--space-4); list-style: none; margin: 0;
}
.trustbar__item {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-small);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.trustbar__item::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }

/* ---------------------------------------------------------------------
   9. Cards (design-system §6.5)
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: var(--border);
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 3px; width: 64px; background: var(--accent);
  transition: width var(--dur) var(--ease); z-index: 1;
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card:hover::before, .card:focus-within::before { width: 100%; }

.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h3); line-height: var(--lh-heading); margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--ink-soft); font-size: var(--fs-body); margin: 0; }
.card__more {
  margin-top: auto; font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small);
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: var(--space-2);
  transition: gap var(--dur) var(--ease);
}
.card:hover .card__more { gap: var(--space-3); }

.card-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   10. Filter chips (design-system §6.6)
   --------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small);
  min-height: 44px; padding: 0 var(--space-4);
  display: inline-flex; align-items: center;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--line-strong); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink-900); }
.chip[aria-pressed="true"] { background: var(--slate-900); color: var(--white); border-color: var(--slate-900); box-shadow: var(--shadow-inset-line); }
.chip:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   11. Gallery grid + figures
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-6);
}
@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gfig {
  margin: 0; position: relative; border: var(--border); background: var(--surface);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gfig:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.gfig__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.gfig__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gfig:hover .gfig__media img { transform: scale(1.04); }
.gfig figcaption {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small);
  color: var(--ink-soft); padding: var(--space-3) var(--space-4);
  border-top: 3px solid var(--accent);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
}
.gfig figcaption .tag { color: var(--accent-ink); }
.gfig.is-hidden { display: none; }

/* ---------------------------------------------------------------------
   12. Logo wall (design-system §6.8) – real client logos
   --------------------------------------------------------------------- */
.logowall {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
}
.logowall__item {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: var(--space-3);
  background: var(--white); border: var(--border);
}
.section--dark .logowall__item { background: var(--slate-800); border-color: var(--line-on-dark); }
.logowall img {
  width: 100%; height: auto; max-height: 48px; object-fit: contain;
  filter: grayscale(1); opacity: 0.78;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.section--dark .logowall img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.7; }
.logowall__item:hover img { filter: grayscale(0); opacity: 1; }
.section--dark .logowall__item:hover img { filter: none; opacity: 1; background: var(--white); }
@media (max-width: 1080px) { .logowall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px)  { .logowall { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------
   13. Quote / proof card (design-system §6.8)
   --------------------------------------------------------------------- */
.quote {
  background: var(--surface); border: var(--border);
  border-left: 4px solid var(--accent);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.quote__text { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); margin: 0; }
.quote__cite { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small); color: var(--muted); font-style: normal; }
.quote__cite strong { color: var(--ink); }

/* ---------------------------------------------------------------------
   14. Stat blocks (design-system §6.11)
   --------------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat__num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-h1); line-height: 0.9; color: var(--accent-ink); }
.section--dark .stat__num { color: var(--accent); }
.stat__label { font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.section--dark .stat__label { color: var(--muted-on-dark); }

/* ---------------------------------------------------------------------
   15. Feature / split blocks (about snippet, service detail, process)
   --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--media-right .split__media { order: 2; }
.split__media { position: relative; border: var(--border); background: var(--concrete); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 4px; width: 80px; background: var(--accent); z-index: 1;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .split--media-right .split__media { order: 0; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: var(--border); border-top: 3px solid var(--accent); padding: var(--space-6); position: relative; }
.step__num {
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-h2);
  line-height: 1; color: var(--accent-ink); display: block; margin-bottom: var(--space-3);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { margin: 0; }

/* Feature list with flow-channel ticks instead of mid-2010s checkmarks */
.feature-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.feature-list li {
  position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3);
  color: var(--ink-soft);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 16px; height: 4px; background: var(--accent);
}
.feature-list li::after {
  content: ""; position: absolute; left: 16px; top: 0.55em;
  width: 4px; height: 12px; background: var(--accent);
}
.section--dark .feature-list li { color: var(--ink-on-dark); }

/* Service detail row */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; padding-block: var(--space-7); border-bottom: var(--border); }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail--reverse .service-detail__media { order: 2; }
.service-detail__media { border: var(--border); overflow: hidden; background: var(--concrete); position: relative; }
.service-detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-detail__media::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 80px; background: var(--accent); z-index: 1; }
.service-detail h2 { margin-bottom: var(--space-4); }
@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; gap: var(--space-5); }
  .service-detail--reverse .service-detail__media { order: 0; }
}

/* Page header band */
.page-head { background: var(--slate-900); color: var(--ink-on-dark); padding-block: var(--space-9) var(--space-8); position: relative; }
.page-head::after { content: ""; position: absolute; bottom: 0; left: 0; height: 4px; width: 120px; background: var(--accent); }
.page-head .overline { color: var(--accent); }
.page-head h1 { color: var(--white); margin: var(--space-3) 0 var(--space-4); }
.page-head .lead { color: var(--ink-on-dark); margin: 0; }
.breadcrumb { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted-on-dark); }

/* Timeline (about) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 var(--space-6) var(--space-6); }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; background: var(--accent); border: 2px solid var(--canvas); }
.timeline__year { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-h4); color: var(--accent-ink); display: block; line-height: 1; margin-bottom: var(--space-2); }
.timeline li:last-child { padding-bottom: 0; }

/* ---------------------------------------------------------------------
   16. CTA band
   --------------------------------------------------------------------- */
.ctaband { background: var(--slate-900); color: var(--ink-on-dark); }
.ctaband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.ctaband h2 { color: var(--white); margin-bottom: var(--space-2); }
.ctaband p { color: var(--ink-on-dark); margin: 0; }
.ctaband .cta-row { flex: none; }

/* ---------------------------------------------------------------------
   17. Forms (design-system §6.10)
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

.form { display: flex; flex-direction: column; gap: var(--space-5); max-width: 40rem; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--fs-small);
  color: var(--ink);
}
.field .req { color: var(--error); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--ink); background: var(--white);
  border: 2px solid var(--line-strong);
  min-height: 48px; padding: var(--space-3) var(--space-4);
  width: 100%;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-700); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 2px; border-color: var(--accent);
}
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--error); }
.field__msg { font-size: var(--fs-small); color: var(--error); }
.field__hint { font-size: var(--fs-small); color: var(--muted); }
.form__success { border-left: 4px solid var(--success); background: var(--surface); padding: var(--space-5); margin-bottom: var(--space-5); }
.form__success h3 { margin-bottom: var(--space-2); }
.form__success[hidden] { display: none; }

/* Contact info panel */
.info-card { background: var(--surface); border: var(--border); border-top: 3px solid var(--accent); padding: var(--space-6); }
.info-card + .info-card { margin-top: var(--space-5); }
.info-card h3 { margin-bottom: var(--space-4); }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.info-list dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--space-1); }
.info-list dd { margin: 0; font-size: var(--fs-body); }
.info-list dd a { color: var(--accent-ink); text-decoration: none; }
.info-list dd a:hover { text-decoration: underline; }
.map-embed { width: 100%; border: var(--border); background: var(--concrete); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------------------------------------------------------------------
   18. Footer (design-system §6.9)
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  border-top: 4px solid var(--accent);
  padding-block: var(--space-8) var(--space-6);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.footer__brand img { height: 44px; width: auto; margin-bottom: var(--space-4); }
.footer__brand p { color: var(--muted-on-dark); font-size: var(--fs-small); max-width: 34ch; }
.footer__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-h6); color: var(--white); margin-bottom: var(--space-4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__list a { color: var(--ink-on-dark); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer__list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.footer__list--meta a, .footer__meta { color: var(--muted-on-dark); font-size: var(--fs-small); }
.footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  color: var(--muted-on-dark); font-size: var(--fs-xs);
}
.footer__bottom a { color: var(--muted-on-dark); }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   19. Scroll-reveal (single, user-agnostic, disabled under reduced-motion)
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* If JS is off, never hide content. */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   20. Responsive: nav collapse + sticky call bar (design-system §6.2, §8)
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav__list, .nav__actions .btn--quote, .nav__actions .btn--call { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__panel {
    display: flex;
    position: fixed; inset: 72px 0 0 0; z-index: 95;
    background: var(--white);
    padding: var(--space-6) var(--gutter);
    flex-direction: column; gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
  }
  .nav__panel[data-open="true"] { transform: translateX(0); }
  .nav__panel .nav__link { font-size: 1.5rem; min-height: 56px; border-bottom: var(--border); width: 100%; }
  .nav__panel .nav__link::after { display: none; }
  .nav__panel .btn { width: 100%; margin-top: var(--space-4); }

  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    border-top: 2px solid var(--accent);
  }
  .callbar .btn { flex: 1; min-height: 52px; border-radius: 0; }
  body { padding-bottom: 52px; }

  .hero { grid-template-columns: 1fr; }
  .hero__copy { margin-left: 0; }
  .ba { min-height: 320px; order: -1; }

  .ctaband__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   21. Focus-visible (global) + reduced motion + print (design-system §7)
   --------------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

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

@media print {
  .site-header, .site-footer, .callbar, .nav, .hero__cta, .btn, .chips, .ctaband { display: none !important; }
  body { color: #000; background: #fff; padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .card, .quote, .gfig { box-shadow: none; border: 1px solid #999; }
}
