/* Dependable Private Security. Hand-built 2026-11-05 (Val). The old site's brand, modernised.
   Palette from the brand kit; type: Jost (the brand face), self-hosted. One signature: the battlement edge
   taken from the shield logo, on the hero bottoms and the footer top. Everything else stays quiet. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #161616;
  --coal: #202020;
  --red: #c90f10;
  --red-deep: #a10c0d;
  --signal: #ff000e;
  --steel: #e6e6e6;
  --paper: #ffffff;
  --ink: #1c1c1c;
  --text: #444444;
  --muted: #6b6b6b;
  --line: #d4d4d4;
  --on-dark: #f2f2f2;
  --on-dark-muted: #b9b9b9;

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --merlon: 2.5rem;
  --crenel: 1.25rem;
  --notch: .75rem;
  --radius: .375rem;
  --header-h: 4.5rem;
  /* motion: critically damped, no overshoot (a calm settle, not a bounce) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

img, video, iframe { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.kicker { color: var(--red); font-weight: 600; font-size: 1.05rem; margin-bottom: .35em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 52rem; }
section { padding-block: var(--space); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; } }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.sec-head p { font-size: 1.15rem; color: var(--muted); }

.band-steel { background: var(--steel); }
.band-night { background: var(--night); color: var(--on-dark-muted); }
.band-night h2, .band-night h3, .band-night .lede { color: var(--on-dark); }
.band-night .kicker { color: #ff5a5f; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 2.9rem; padding: .7rem 1.4rem; border-radius: var(--radius);
  font: 600 1rem/1.1 "Jost", system-ui, sans-serif; letter-spacing: .01em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.band-night .btn-line { border-color: var(--on-dark); color: var(--on-dark); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.link { font-weight: 600; }

/* ---------------------------------------------------------------- header (a translucent layer over the content) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 22, .9);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 3px solid var(--red);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: block; flex: none; }
.brand img { width: 11rem; height: auto; }
@media (min-width: 60em) { .brand img { width: 13rem; } }

.site-nav a { color: var(--on-dark); text-decoration: none; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .55rem .2rem; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.actions { display: flex; align-items: center; gap: 1rem; }
.phone { font-weight: 600; white-space: nowrap; }
.phone:hover { color: #fff; }

.menu-toggle, .sub-toggle { background: none; border: 0; color: var(--on-dark); cursor: pointer; }
.menu-toggle { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--radius); }
.burger, .burger::before, .burger::after { display: block; width: 1.4rem; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* phones: the 24-hour number stays in the bar, one tap to call (the nav's copy is inside the closed menu) */
.bar-call {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; min-height: 2.75rem; padding: 0 .75rem;
  color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.35); border-radius: 99px;
}
.bar-call:hover { color: #fff; border-color: #fff; }
.bar-call:active { transform: scale(.97); }
.bar-call svg { color: var(--signal); flex: none; }
@media (max-width: 23.99em) { .bar-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .bar-call { padding: 0; width: 2.75rem; justify-content: center; } }
@media (max-width: 25em) { .brand img { width: 9.5rem; } .bar { gap: .5rem; } }
@media (min-width: 60em) { .bar-call { display: none; } }

/* phone first: the menu is a panel under the bar */
@media (max-width: 59.99em) {
  /* the panel slides down from under the bar and back up the same way; a CSS transition reverses from wherever it
     is, so a second tap mid-move turns it round smoothly. Closed it stays display: none (out of the tab order, and no
     compositing layer: a closed panel kept as a transparent layer darkened the desktop header after a resize across
     the breakpoint). @starting-style gives the opening frame; display flips at the end of the closing move. */
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--night); padding: 1rem var(--gutter) 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; border-bottom: 3px solid var(--red);
    opacity: 0; transform: translateY(-.75rem);
    transition: opacity .2s ease, transform .32s var(--ease-out), display .32s allow-discrete; }
  .site-nav.open { display: block; opacity: 1; transform: none; }
  @starting-style { .site-nav.open { opacity: 0; transform: translateY(-.75rem); } }
  .menu > li { border-bottom: 1px solid #2e2e2e; }
  .menu a { padding: .8rem 0; font-size: 1.1rem; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle { width: 2.75rem; }
  .sub-toggle span { display: block; width: .6rem; height: .6rem; margin: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg); }
  .sub { display: none; grid-column: 1 / -1; list-style: none; margin: 0 0 .5rem; padding-left: 1rem; }
  .sub.open { display: block; animation: sub-in .28s var(--ease-out) both; }
  .actions { flex-wrap: wrap; margin-top: 1.25rem; }
  /* without JavaScript the menu is shown open by assets/nojs.css (loaded in <noscript>), so pages with JavaScript
     never paint an open menu that then collapses (a cold-load layout shift on phones) */
}
@media (min-width: 60em) {
  .menu-toggle, .sub-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2rem; }
  .menu { display: flex; gap: 1.5rem; }
  .has-sub { position: relative; }
  .sub {
    position: absolute; left: -1rem; top: 100%; min-width: 15rem; list-style: none; margin: 0; padding: .5rem 0;
    background: var(--night); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.35);
    opacity: 0; visibility: hidden; transform: translateY(-.25rem); transform-origin: top left;
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  }
  .sub a { padding: .55rem 1rem; }
  .sub a:hover { background: var(--coal); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* ---------------------------------------------------------------- the battlement edge (from the logo's shield) */
.hero, .page-hero {
  --edge: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--notch)) no-repeat,
          repeating-linear-gradient(90deg, #000 0 var(--merlon), transparent var(--merlon) calc(var(--merlon) + var(--crenel))) 0 100% / 100% var(--notch) no-repeat;
  -webkit-mask: var(--edge); mask: var(--edge);
}
.site-footer {
  --edge: linear-gradient(#000 0 0) 0 100% / 100% calc(100% - var(--notch)) no-repeat,
          repeating-linear-gradient(90deg, #000 0 var(--merlon), transparent var(--merlon) calc(var(--merlon) + var(--crenel))) 0 0 / 100% var(--notch) no-repeat;
  -webkit-mask: var(--edge); mask: var(--edge);
}

/* when the last band is already dark (Home's "Who Are We?"), the edge would read as a stray dashed line:
   use the header's red rule as the seam instead (Petra audit, finding 11) */
main:has(> section.band-night:last-child) + .site-footer { -webkit-mask: none; mask: none; border-top: 3px solid var(--red); padding-top: calc(var(--space) * .8); }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--on-dark); min-height: min(88svh, 52rem); display: grid; align-items: end; padding-block: 0 calc(var(--space) + var(--notch)); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22,22,22,.88) 0%, rgba(22,22,22,.6) 45%, rgba(22,22,22,.15) 100%), linear-gradient(0deg, rgba(22,22,22,.7), transparent 45%); }
.hero-inner { padding-top: 6rem; }
.hero h1 { color: #fff; font-size: clamp(3rem, 9vw, 7rem); max-width: 10ch; margin-bottom: .3em; }
.hero .lede { color: var(--on-dark); font-size: clamp(1.2rem, 2.2vw, 1.6rem); max-width: 30ch; }
.video-toggle { margin-top: 2rem; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--on-dark-muted); font: 500 .85rem "Jost", sans-serif; padding: .35rem .8rem; border-radius: 99px; cursor: pointer; }
.video-toggle:hover { color: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- inner page hero */
.page-hero { position: relative; isolation: isolate; background: var(--night); color: var(--on-dark); padding-block: clamp(4rem, 9vw, 7rem) calc(clamp(3rem, 6vw, 4.5rem) + var(--notch)); overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .lede { color: var(--on-dark-muted); margin: 0; }
.page-hero.has-img .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22,22,22,.94) 0%, rgba(22,22,22,.75) 55%, rgba(22,22,22,.45) 100%); }
.page-hero.has-img .lede { color: var(--on-dark); }
/* phones: the text runs the full width, so the scrim is even rather than fading to the right */
@media (max-width: 59.99em) { .page-hero.has-img::before { background: rgba(22,22,22,.82); } }
/* tablets and open foldables held upright (34-60em): a full-width band only ~220px tall showed a strip of a portrait
   photo (chins, torsos). Give the photo room and set the text on the darker lower part, so heads stay in frame. */
@media (min-width: 34em) and (max-width: 59.99em) {
  .page-hero.has-img { min-height: clamp(22rem, 58vw, 32rem); display: flex; flex-direction: column; justify-content: flex-end; }
  .page-hero.has-img::before { background: linear-gradient(0deg, rgba(22,22,22,.94) 0%, rgba(22,22,22,.8) 42%, rgba(22,22,22,.35) 100%); }
}
/* wide screens: a portrait photo stretched over 1440px zoomed in to eyes and a nose. It becomes a panel on the right
   that fades into the dark field; the text sits on solid night on the left. */
@media (min-width: 60em) {
  .page-hero.has-img .hero-img { left: auto; width: 48%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
  .page-hero.has-img::before { background: linear-gradient(90deg, rgba(22,22,22,.9) 0%, rgba(22,22,22,.55) 50%, rgba(22,22,22,.2) 100%); }
}
.crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; font-size: .95rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin: 0 .55em; color: #7a7a7a; }
.crumbs a { color: var(--on-dark); }

/* ---------------------------------------------------------------- values */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.value-list img { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; object-fit: contain; } /* the icon files are not square */
.value-list h3 { margin-bottom: .35em; }
.value-list p { color: var(--muted); font-size: 1rem; }

/* Home's first "Our Services" block (the five values) reads as an introduction, quieter than the service cards
   below it; on phones the icon sits beside its text instead of above it (Petra audit, findings 7 and 13) */
.values h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
@media (max-width: 34.99em) {
  .value-list { gap: 1.5rem; }
  .value-list li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: start; }
  .value-list img { width: 3rem; height: 3rem; margin: .1rem 0 0; grid-row: span 2; }
  .value-list h3 { margin-bottom: .2em; }
  .value-list p { margin: 0; }
}
@media (min-width: 35em) and (max-width: 59.99em) { .value-list { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- stats */
.stat-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
/* the red line is a layer over a faint track so it can draw in; the percentage fills to its value (99.1 %) */
.stat-list li { position: relative; border-top: 3px solid rgba(255,255,255,.14); padding-top: 1.25rem; }
.stat-list li::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--red); transform-origin: left center; }
.stat-list li.pct::before { right: .9%; }
.num { position: relative; display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.stat-list h3 { font-size: 1.15rem; }
@media (max-width: 47.99em) {
  .stat-list { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .num { font-size: clamp(2.2rem, 10vw, 3rem); }
  .stat-list h3 { font-size: 1rem; }
  .stat-list p { font-size: .9rem; }
}
.stat-list p { font-size: .98rem; }

/* ---------------------------------------------------------------- meters (progress) */
.meters { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.meters li { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center; }
.meter-label { font-weight: 500; color: var(--ink); }
.meter-val { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; } /* on the label's line */
.meter { grid-column: 1 / -1; height: .5rem; background: var(--line); border-radius: 99px; position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; background: var(--red); border-radius: inherit; transform-origin: left center; }
.p90::after { width: 90%; } .p72::after { width: 72%; } .p53::after { width: 53%; } .p40::after { width: 40%; }
.p36::after { width: 36%; } .p32::after { width: 32%; } .p28::after { width: 28%; } .p23::after { width: 23%; }
.band-steel .meter { background: #c9c9c9; }
.pie img { width: 100%; }
/* Projects By Structure: meters in two columns on wide screens, the pie charts (one wide image with its own legend)
   full width beneath, large enough to read the legend (Petra audit, finding 9) */
@media (min-width: 48em) { .structure .meters { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 1.1rem 3rem; } } /* ranked order reads down each column */
.pie-parts { display: none; }
@media (max-width: 39.99em) {
  .pie-whole { display: none; }
  .pie-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; align-items: center; justify-items: center; }
  .pie-parts img { width: 100%; max-width: 11rem; }
  .pie-parts .pie-legend { grid-column: 1 / -1; max-width: 16rem; }
}
@media (min-width: 60em) {
  .structure .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .structure .pie { max-width: 56rem; }
}

/* ---------------------------------------------------------------- about */
.pillars { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.pillars li { font-weight: 700; color: var(--ink); letter-spacing: .02em; padding: .55rem 1rem; border-left: 4px solid var(--red); background: var(--paper); }
.band-steel .pillars li { background: var(--paper); }
.about figure img, .who figure img { width: 100%; }

/* ---------------------------------------------------------------- services (home) */
.svc-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
@media (min-width: 60em) {
  .svc-grid { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 2; }
  .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
  .svc:nth-child(4) .svc-img, .svc:nth-child(5) .svc-img { aspect-ratio: 16 / 9; }
}
.svc { display: flex; flex-direction: column; }
.svc-img { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--steel); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .6s var(--ease-out); }
.svc-body { padding-top: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 a { color: var(--ink); text-decoration: none; }
.svc-body h3 a:hover { color: var(--red); }
.svc-body p { font-size: 1rem; flex: 1; }
.svc-body .btn { align-self: flex-start; }

/* ---------------------------------------------------------------- locations */
.loc-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.loc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.1rem; }
@media (max-width: 39.99em) {
  .svc-img { aspect-ratio: 16 / 10; }
  .loc img { aspect-ratio: 2 / 1; }
  .svc-grid, .loc-grid { gap: 2.25rem; }
}
.loc p { font-size: 1rem; }

/* ---------------------------------------------------------------- why / industries / ticks */
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; font-weight: 500; color: var(--ink); }
.band-night .ticks li { color: var(--on-dark); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red); }
.ticks li::after { content: ""; position: absolute; left: .4rem; top: .5em; width: .32rem; height: .58rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bbb { width: 9rem; margin-top: 2rem; }
.why .split { align-items: start; }
@media (min-width: 60em) { .why .split { grid-template-columns: 1fr 2fr; } }
/* the three source lists (13, 13, 11) side by side; on phones one balanced two-column flow, same order */
.industries ul { list-style: none; margin: 0; padding: 0; }
.industries li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; break-inside: avoid; }
@media (min-width: 40em) { .industries { display: grid; gap: 0 2rem; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 39.99em) {
  .industries { columns: 2; column-gap: 1.25rem; }
  .industries li { font-size: .95rem; line-height: 1.35; padding: .5rem 0; }
}

/* ---------------------------------------------------------------- clients */
.clients { padding-block: calc(var(--space) * .75); }
.clients h2 { text-align: center; }
.clients .rating { text-align: center; margin: .5rem auto 0; color: var(--text); }
.clients .rating a { display: inline-block; padding-block: .35rem; }
.logos { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem 4rem; }
.logos img { width: auto; height: 3rem; max-width: 10rem; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------------------------------------------------------------- lists on service and about pages */
.feature-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li { position: relative; padding-left: calc(1.25rem + 3px); color: var(--text); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform-origin: center top; }
.feature-list strong { color: var(--ink); font-weight: 600; }
.band-night .feature-list li { color: var(--on-dark-muted); }
.band-night .feature-list strong { color: #fff; }
@media (min-width: 48em) { .providers .feature-list { grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; } }
.tall img { width: 100%; max-height: 40rem; object-fit: cover; border-radius: var(--radius); }

/* services page rows */
.svc-row { display: grid; gap: 1.5rem 3rem; align-items: center; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.svc-row:first-child { padding-top: 0; }
.svc-row:last-child { border-bottom: 0; }
.svc-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 12%; border-radius: var(--radius); }
.svc-row h2 a { color: var(--ink); text-decoration: none; }
.svc-row h2 a:hover { color: var(--red); }
@media (min-width: 52em) {
  .svc-row { grid-template-columns: 2fr 3fr; }
  /* even rows put the photo on the right: mirror the columns too, so every photo gets the same 2fr width */
  .svc-row:nth-child(even) { grid-template-columns: 3fr 2fr; }
  .svc-row:nth-child(even) figure { order: 2; }
}

/* ---------------------------------------------------------------- quote, forms */
.quote-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 60em) { .quote-grid { grid-template-columns: 2fr 3fr; } }
.dispatch { font-weight: 600; color: var(--ink); }
.dispatch a { white-space: nowrap; }
.form .grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40em) { .form .grid { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.form-body { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #bdbdbd; border-radius: var(--radius); padding: .7rem .8rem; min-height: 2.9rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.checks { border: 0; padding: 0; margin: 0; }
.checks .check { display: inline-flex; align-items: center; gap: .45rem; margin: .25rem 1.25rem .25rem 0; font-weight: 400; color: var(--text); }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--red); }
.form .btn { margin-top: 1.25rem; }
.form-body[disabled] { opacity: .55; }
.form-body[disabled] .btn { cursor: not-allowed; }
.form-note {
  background: var(--paper); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem; color: var(--ink); max-width: none; font-size: 1.125rem; line-height: 2.1;
}
.band-night .form-note { background: var(--coal); color: var(--on-dark); }
/* the notice's two links are the actions while the forms are off: full-size targets inside the sentence */
.form-note .act {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .2rem .9rem; margin: .15rem 0;
  border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 600; line-height: 1.2;
  text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
@media (max-width: 39.99em) {
  .form-note { padding: 1rem 1.1rem; font-size: 1.0625rem; }
  .form-note .act { padding: .2rem .7rem; }
}
.form-note .glue { white-space: nowrap; } /* keeps the closing full stop on the button's line */
.form-note .glue .act { white-space: normal; }
.form-note .act-call { background: var(--red); border-color: var(--red); color: #fff; white-space: nowrap; }
.form-note .act:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.form-note .act:active { transform: scale(.97); }
.form[hidden] { display: none; }
.band-steel .form-note { background: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }

/* ---------------------------------------------------------------- contact */
.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card { background: var(--steel); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .15rem 0; }
.f-dl { margin: 0; }
.f-dl dt { font-weight: 600; color: inherit; margin-top: .55rem; }
.f-dl dt:first-child { margin-top: 0; }
.f-dl dd { margin: 0; }
.f-dl a { overflow-wrap: normal; } /* addresses wrap only after the @ (<wbr> in the markup), never mid-word */
address { font-style: normal; }
.map { padding: 0; }
.map iframe { width: 100%; height: clamp(18rem, 40vw, 28rem); border: 0; filter: grayscale(.35); }
/* click-to-load: the placeholder holds the map's exact height, so loading it moves nothing */
.map-frame { background: var(--steel); }
.map-placeholder {
  height: clamp(18rem, 40vw, 28rem); display: grid; place-content: center; justify-items: center; gap: 1rem;
  color: var(--red);
  background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}
.map-addr { margin-block: 1rem 1.5rem; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: calc(var(--space) * .8 + var(--notch)) 0 0; font-size: .98rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .01em; margin-bottom: 1rem; }
.site-footer h3 { color: var(--on-dark); font-size: .98rem; margin: 0 0 .25rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.f-about { grid-column: 1 / -1; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 60em) { .f-about { grid-template-columns: 16rem 1fr; } }
.f-about img { width: 14rem; }
.f-about p { margin: 0; max-width: 60ch; }
.social { margin-top: .75rem !important; }
.social a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links li { padding: .2rem 0; }
.f-legal { border-top: 1px solid #2e2e2e; margin-top: 3rem; padding-block: 1.5rem; font-size: .9rem; }
.f-legal p { margin: 0; }

/* ---------------------------------------------------------------- preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text: #222; --muted: #333; --on-dark-muted: #e6e6e6; }
  .logos img { filter: none; opacity: 1; }
}
@media print {
  .site-header, .hero-video, .video-toggle, .map, .form { display: none !important; }
  .hero, .page-hero, .site-footer { -webkit-mask: none; mask: none; background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}

/* ---------------------------------------------------------------- testimonials */
.reviews h3.src { margin: 2.5rem 0 1.25rem; font-size: 1.3rem; }
.review-list { list-style: none; margin: 0; padding: 0; columns: 20rem; column-gap: 2rem; }
.review { break-inside: avoid; margin: 0 0 2rem; padding: 1.4rem 1.5rem; background: var(--steel); border-radius: var(--radius); border-top: 3px solid var(--red); }
.review blockquote { margin: 0 0 1rem; color: var(--ink); }
.review blockquote p { margin: 0 0 .6em; }
.review-meta { margin: 0; font-size: .95rem; color: #555; } /* 5.97:1 on the steel card; --muted was 4.27:1 */
.review-meta cite { font-style: normal; font-weight: 600; color: var(--ink); }
.stars { color: var(--red); letter-spacing: .1em; margin-right: .6rem; }
.review { position: relative; }
.review-more { margin: -.25rem 0 .9rem; }
.review-more a { font-weight: 600; }
.review .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.review.is-cut:hover { box-shadow: 0 0 0 2px var(--red); }
.review .stretch:focus-visible { outline: none; }
.review.is-cut:focus-within { box-shadow: 0 0 0 3px var(--signal); }

/* ---------------------------------------------------------------- focal points (build.py FOCUS)
   object-position for cover-cropped photos, one class per image, so faces and vehicles stay in frame from thin
   hero bands to near-square cards. Last in the file so it wins over the component defaults (same specificity). */
img.fp-8 { object-position: 50% 8%; }
img.fp-15 { object-position: 50% 15%; }
img.fp-33 { object-position: 50% 33%; }
img.fp-47 { object-position: 50% 47%; }
img.fp-62 { object-position: 50% 62%; }
/* upright tablets: the hero text sits on the lower part, so the two faces (at 40 %) go higher in the frame */
@media (min-width: 34em) and (max-width: 59.99em) { .page-hero img.fp-33 { object-position: 50% 52%; } }

/* ---------------------------------------------------------------- motion (Pablo, via Peter, 2026-11-05: "it desperately
   needs pro motion"). Transform and opacity only, so it runs on the compositor at 120 Hz and never moves layout (CLS 0).
   All of it is inside no-preference: with reduced motion the site is exactly as before. No library, no inline script. */
/* the fade is over in the first 30 % of the rise: words are readable almost as soon as they appear, then settle */
@keyframes rise { 0% { opacity: 0; transform: translateY(1.75rem); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.2; } }
@keyframes sub-in { from { opacity: 0; transform: translateY(-.4rem); } to { opacity: 1; transform: none; } }

.num-run { position: absolute; inset: 0; color: #fff; }
.num.is-counting { color: transparent; }

@media screen and (prefers-reduced-motion: no-preference) {
  /* hero: one orchestrated entrance on arrival (title, line, buttons in turn); the photo settles behind it.
     The photo animates scale only, never opacity, so it paints at once (it is the page's largest paint). */
  .hero-inner > *, .page-hero .wrap > * { animation: hero-in .9s var(--ease-out) both; }
  .hero-inner > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
  .hero-inner > :nth-child(n+4) { animation-delay: .24s; }
  /* the photo is drawn 12 % larger so it can drift with the scroll without showing an edge */
  .hero-video, .page-hero .hero-img { scale: 1.12; animation: settle 1.8s var(--ease-out) both; }

  /* phone menu: the rows follow the panel in, one after another */
  .site-nav.open .menu > li, .site-nav.open .actions { animation: sub-in .36s var(--ease-out) both; }
  .site-nav.open .menu > li:nth-child(2) { animation-delay: .03s; }
  .site-nav.open .menu > li:nth-child(3) { animation-delay: .06s; }
  .site-nav.open .menu > li:nth-child(4) { animation-delay: .09s; }
  .site-nav.open .menu > li:nth-child(5) { animation-delay: .12s; }
  .site-nav.open .actions { animation-delay: .15s; }

  /* buttons and cards: an immediate press, a quiet lift on hover where there is a pointer */
  .btn:active, .bar-call:active { transform: scale(.97); transition-duration: .06s; }
  @media (hover: hover) {
    .btn-red:hover, .btn-line:hover, .btn-ghost:hover { transform: translateY(-1px); }
    .svc:hover .svc-img img { transform: scale(1.04); }
  }

  /* sections: each block rises into place as it scrolls into view, tied to the scroll position itself (the browser
     runs it, no script). Blocks already on screen are drawn finished; browsers without scroll timelines get
     site.js's fallback, or simply the page as it is. */
  @supports (animation-timeline: view()) {
    :where(main > section:not(.hero, .page-hero, .map) > .wrap) > :not(.value-list, .stat-list, .svc-grid, .loc-grid, .review-list, .logos),
    .value-list > li, .stat-list > li, .svc-grid > .svc, .loc-grid > .loc, .review-list > li, .logos > li {
      animation: rise linear both; animation-timing-function: cubic-bezier(.33, .7, .4, 1);
      animation-timeline: view(); animation-range: entry 0% entry 15rem;
    }
    /* items side by side in one row arrive a beat apart */
    :is(.value-list, .stat-list, .svc-grid, .loc-grid, .review-list, .logos) > :nth-child(even) { animation-range: entry 2.5rem entry 17.5rem; }
    .split > :nth-child(2) { animation-range: entry 2.5rem entry 17.5rem; }
  }
  /* the fallback (site.js, only where scroll timelines are missing): the same rise, played once on entry */
  .will-rise { opacity: 0; transform: translateY(1.75rem); }
  .will-rise.risen { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease-out); }
}

/* ---------------------------------------------------------------- scroll effects and drawn figures (Pablo, via Peter,
   2026-11-05: "Like the graphs animating as you scroll or page effects while scrolling. I want to modernize the entire
   page."). Scrolling stays native: every effect reads the scroll position, none moves it. Only figures already on the
   site are drawn. Reduced motion: none of this runs, and the page is the static version. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes sweep { from { --sweep: 0deg; } }
@keyframes wipe { from { --wipe: 0%; } }
@keyframes pop { from { opacity: 0; transform: scale(.55); } }
@keyframes drift { to { translate: 0 5%; } }
@keyframes hero-exit { to { opacity: .1; translate: 0 -3rem; } }
@keyframes hero-lift { to { translate: 0 -3rem; } }
@keyframes recede { to { scale: .95; translate: 0 -2rem; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes lift { from { transform: translateY(2.25rem); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(.75rem); } }

@media screen and (prefers-reduced-motion: no-preference) {
  /* page to page: a short cross-fade, the header held still (browsers without cross-document view transitions
     simply load the next page) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }

  @supports (animation-timeline: view()) {
    /* reading progress: a thin light line growing along the header's red rule */
    .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: rgba(255,255,255,.85);
      transform-origin: left center; animation: grow-x linear both; animation-timeline: scroll(root); }

    /* heroes: the photo drifts slower than the page, the words lift and fade as you leave */
    .hero-video, .page-hero .hero-img { animation: settle 1.8s var(--ease-out) both, drift linear both;
      animation-timeline: auto, scroll(root); animation-range: normal, 0 90vh; }
    .hero-inner { animation: hero-exit linear both; animation-timeline: scroll(root); animation-range: 15vh 75vh; }
    /* inner pages can be short: their hero words only lift (no fade) and only while they themselves leave the top, so
       a page that stops scrolling with the hero in view never rests on part-faded text (Val, 2026-11-05) */
    .page-hero .wrap { animation: hero-lift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }

    /* Projects By Structure: each bar fills to its value in turn */
    .meters { view-timeline: --meters block; }
    .meter::after { animation: grow-x linear both; animation-timing-function: var(--ease-move); animation-timeline: --meters; animation-range: cover 6% cover 34%; }
    .meters li:nth-child(2) .meter::after { animation-range: cover 9% cover 37%; }
    .meters li:nth-child(3) .meter::after { animation-range: cover 12% cover 40%; }
    .meters li:nth-child(4) .meter::after { animation-range: cover 15% cover 43%; }
    .meters li:nth-child(5) .meter::after { animation-range: cover 18% cover 46%; }
    .meters li:nth-child(6) .meter::after { animation-range: cover 21% cover 49%; }
    .meters li:nth-child(7) .meter::after { animation-range: cover 24% cover 52%; }
    .meters li:nth-child(8) .meter::after { animation-range: cover 27% cover 55%; }
    .meter-val { animation: fade linear both; animation-timeline: --meters; animation-range: cover 20% cover 45%; }

    /* the pie charts sweep open around the circle; the wide chart-and-legend image wipes in left to right */
    .pie { view-timeline: --pie block; }
    .pie-parts img:not(.pie-legend) { -webkit-mask-image: conic-gradient(#000 var(--sweep), transparent 0); mask-image: conic-gradient(#000 var(--sweep), transparent 0);
      animation: sweep linear both; animation-timing-function: var(--ease-move); animation-timeline: --pie; animation-range: cover 8% cover 42%; }
    .pie-parts img:not(.pie-legend):nth-child(2) { animation-range: cover 14% cover 48%; }
    .pie-whole img, .pie-parts .pie-legend { -webkit-mask-image: linear-gradient(90deg, #000 var(--wipe), transparent calc(var(--wipe) + 8%)); mask-image: linear-gradient(90deg, #000 var(--wipe), transparent calc(var(--wipe) + 8%));
      animation: wipe linear both; animation-timing-function: var(--ease-move); animation-timeline: --pie; animation-range: cover 8% cover 45%; }

    /* stats: the red line under each figure draws across (the percentage to its value) while the number counts */
    .stat-list { view-timeline: --stats block; }
    .stat-list li::before { animation: grow-x linear both; animation-timing-function: var(--ease-move); animation-timeline: --stats; animation-range: cover 10% cover 38%; }
    .stat-list li:nth-child(2)::before { animation-range: cover 13% cover 41%; }
    .stat-list li:nth-child(3)::before { animation-range: cover 16% cover 44%; }
    .stat-list li:nth-child(4)::before { animation-range: cover 19% cover 47%; }

    /* service lists: the red rule beside each line draws down; value icons arrive with their card */
    .feature-list li { view-timeline: --fl block; }
    .feature-list li::before { animation: grow-y linear both; animation-timeline: --fl; animation-range: entry 0% entry 100%; }
    .value-list img { animation: pop linear both; animation-timing-function: var(--ease-move); animation-timeline: view(); animation-range: entry 20% entry 100%; }

    /* review cards rise without the fade: a card straddling the fold at load would otherwise be part-transparent,
       and contrast checkers read its text as unreadable */
    .review-list > li { animation-name: lift; }
    /* cards in rows of three arrive a beat apart */
    :is(.svc-grid, .loc-grid, .value-list) > :nth-child(3n+2) { animation-range: entry 2.5rem entry 17.5rem; }
    :is(.svc-grid, .loc-grid, .value-list) > :nth-child(3n) { animation-range: entry 5rem entry 20rem; }

    /* Home, wide and tall screens: the stats band holds in place and the next section slides over it */
    @media (min-width: 60em) and (min-height: 50em) {
      main { timeline-scope: --curtain; }
      .stats { position: sticky; top: calc(var(--header-h) + 3px); z-index: 0; animation: recede linear both; animation-timeline: --curtain; animation-range: entry 0% entry 100%; }
      .stats ~ section { position: relative; z-index: 1; }
      .stats ~ section:not(.band-steel, .band-night) { background: var(--paper); }
      .stats + section { view-timeline: --curtain block; box-shadow: 0 -1.5rem 3rem rgba(0,0,0,.18); }
      /* the band stops moving once it holds, and so would its own timeline: draw the lines while it scrolls in */
      .stat-list li::before { animation-range: entry 0% entry 70%; }
      .stat-list li:nth-child(2)::before { animation-range: entry 10% entry 80%; }
      .stat-list li:nth-child(3)::before { animation-range: entry 20% entry 90%; }
      .stat-list li:nth-child(4)::before { animation-range: entry 30% entry 100%; }
    }
  }

  /* the fallback for browsers without scroll timelines (site.js adds will-draw to figures still below the fold) */
  .will-draw .meter::after, .will-draw.stat-list > li::before { transform: scaleX(0); }
  .will-draw.feature-list > li::before { transform: scaleY(0); }
  .will-draw.pie img { opacity: 0; transform: scale(.92); }
  .will-draw.drawn .meter::after, .will-draw.drawn.stat-list > li::before, .will-draw.drawn.feature-list > li::before { transform: none; transition: transform 1.1s var(--ease-out); }
  .will-draw.drawn.pie img { opacity: 1; transform: none; transition: opacity .8s ease, transform 1.1s var(--ease-out); }
  .will-draw.drawn > li:nth-child(2) .meter::after, .will-draw.drawn > li:nth-child(2)::before { transition-delay: .08s; }
  .will-draw.drawn > li:nth-child(3) .meter::after, .will-draw.drawn > li:nth-child(3)::before { transition-delay: .16s; }
  .will-draw.drawn > li:nth-child(4) .meter::after, .will-draw.drawn > li:nth-child(4)::before { transition-delay: .24s; }
  .will-draw.drawn > li:nth-child(n+5) .meter::after, .will-draw.drawn > li:nth-child(n+5)::before { transition-delay: .32s; }
}
