/* ==========================================================================
   Water Damage West Covina — California statewide water damage response
   Design direction: thermal-imaging vocabulary. The page begins saturated and
   cold (moisture) and dries to warm daylight as you scroll. Cyan reads as
   water present; amber reads as structure dry.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Depth — cold, wet, submerged */
  --abyss:  #050D14;
  --deep:   #0A1D2C;
  --tide:   #103247;
  --steel:  #24657D;

  /* Signal */
  --vapor:  #6FD3EC;   /* moisture present */
  --vapor-dim: #3E9DB8;
  --amber:  #FFB02E;   /* structure dry / primary CTA */
  --alert:  #BC2A08;   /* emergency banner — 6.05:1 with white text */
  --alert-dot: #FF4F2B; /* decorative pulse only, never behind text */

  /* Dry ground — the cities section */
  --dry:    #EEF3F4;
  --dry-2:  #FFFFFF;
  --ink:    #071219;
  --ink-60: #4A5C66;
  --hair:   #CBD8DC;

  --on-dark:    #EAF4F7;
  --on-dark-60: #9FBAC6;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale — 12 14 16 18 21 28 38 52 72 */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.375rem;
  --t-3xl: 3.25rem;
  --t-4xl: 4.5rem;

  /* Rhythm — 4px base */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --shell: 1240px;
  /* Fluid page gutter. Big display type needs more breathing room than a
     flat 24px, and this keeps the hero off the viewport edge. */
  --gutter: clamp(24px, 3.4vw, 56px);
  --radius: 3px;

  /* Motion tokens — shared rhythm */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --d-fast: 140ms;
  --d-mid:  320ms;
  --d-slow: 620ms;

  /* z-scale */
  --z-rail: 20;
  --z-head: 40;
  --z-callbar: 45;
  --z-top: 100;
}

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

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* room for the fixed mobile call bar */
  padding-bottom: env(safe-area-inset-bottom);
}

img, canvas, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

/* --- Focus: never removed, always legible on both grounds ---------------- */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-light :focus-visible { outline-color: #0A5C7A; }

.skip {
  position: absolute; left: var(--s4); top: -100px;
  z-index: var(--z-top);
  background: var(--amber); color: var(--ink);
  padding: var(--s3) var(--s5);
  font: 600 var(--t-sm)/1 var(--body);
  border-radius: var(--radius);
  transition: top var(--d-fast) var(--e-out);
}
.skip:focus { top: var(--s4); }

.shell {
  width: 100%;
  /* Gutter added on top of --shell, so desktop content width stays 1240px
     and the gutter only bites once the viewport gets narrower than that. */
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* --- Small shared parts ------------------------------------------------- */
.eyebrow {
  font: 500 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vapor);
  display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor; opacity: 0.6; flex: none;
}
.on-light .eyebrow { color: #0A5C7A; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: 0 var(--s6);
  font: 700 var(--t-base)/1 var(--body);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--d-fast) var(--e-out),
              color var(--d-fast) var(--e-out),
              transform var(--d-fast) var(--e-out),
              border-color var(--d-fast) var(--e-out);
}
.btn:active { transform: scale(0.975); }

.btn-call {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 176, 46, 0.5);
}
.btn-call:hover { background: #FFC358; }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(111, 211, 236, 0.42);
}
.btn-ghost:hover {
  border-color: var(--vapor);
  background: rgba(111, 211, 236, 0.08);
}

/* ==========================================================================
   Moisture rail — the signature. A fixed readout on the left that falls from
   100% to 0% as you scroll, mirroring a real moisture meter on a drying job.
   ========================================================================== */
.rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-rail);
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--d-slow) var(--e-out);
}
.rail.is-live { opacity: 1; }

.rail-label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-60);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.rail-track {
  position: relative;
  width: 3px; height: 168px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.rail-fill {
  position: absolute; inset: auto 0 0 0;
  height: 100%;
  background: linear-gradient(to top, var(--vapor), var(--vapor-dim));
  transform-origin: bottom;
  will-change: transform;
}
.rail-num {
  font: 600 var(--t-xs)/1 var(--mono);
  color: var(--vapor);
  font-variant-numeric: tabular-nums;
  min-width: 4ch; text-align: center;
}
.rail.is-dry .rail-fill { background: var(--amber); }
.rail.is-dry .rail-num  { color: var(--amber); }

/* ==========================================================================
   Header
   ========================================================================== */
.bar-alert {
  background: var(--alert);
  color: #fff;
  text-align: center;
  padding: var(--s2) var(--s4);
  font: 600 var(--t-xs)/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.head {
  position: sticky; top: 0;
  z-index: var(--z-head);
  background: rgba(5, 13, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(111, 211, 236, 0.14);
}
.head-in {
  display: flex; align-items: center; gap: var(--s5);
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: var(--s3);
  text-decoration: none; margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font: 800 var(--t-md)/1 var(--display);
  letter-spacing: -0.02em;
  font-stretch: 108%;
}
.brand-name span { color: var(--vapor); font-weight: 500; }

.nav { display: flex; gap: var(--s6); }
.nav a {
  font: 500 var(--t-sm)/1 var(--body);
  color: var(--on-dark-60);
  text-decoration: none;
  padding: var(--s3) 0;
  position: relative;
  transition: color var(--d-fast) var(--e-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--vapor);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-mid) var(--e-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-call {
  display: flex; align-items: center; gap: var(--s3);
  text-decoration: none;
  font: 800 var(--t-md)/1 var(--mono);
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.head-call:hover { color: var(--vapor); }
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--alert-dot); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 79, 43, 0.75);
  animation: pulse 2.2s var(--e-out) infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 11px rgba(255, 79, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 43, 0); }
}

/* ==========================================================================
   Hero — WebGL water beneath, type above
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* Interior of a flooded home sits behind the shader, so the animated water
   reads as the flood rising through an actual room rather than open sea. The
   asset is pre-graded to the site palette (duotone toward --abyss) — doing it
   in the file rather than with a CSS filter avoids a per-frame GPU cost on a
   full-viewport layer. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -3;
  background-image: url("assets/images/hero-room.jpg");
  background-image: image-set(
    url("assets/images/hero-room.webp") type("image/webp"),
    url("assets/images/hero-room.jpg") type("image/jpeg"));
  background-size: cover;
  /* Holds the technician and drying equipment in frame as the viewport crops */
  background-position: 64% 62%;
  background-repeat: no-repeat;
  pointer-events: none;
}
#water {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
/* Scrim sits above the canvas as well as the photo — it is what keeps the
   headline at 7:1 over a photograph. Three layers: a dark left column for the
   text, a top-left pool for the eyebrow, and top/bottom falloff. Verified
   against the composited pixels, not eyeballed. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(92% 66% at 5% 16%, rgba(5,13,20,0.92) 0%, rgba(5,13,20,0.48) 48%, transparent 80%),
    linear-gradient(98deg,
      rgba(5,13,20,0.93) 0%, rgba(5,13,20,0.90) 42%,
      rgba(5,13,20,0.63) 58%, rgba(5,13,20,0.18) 74%, rgba(5,13,20,0.03) 100%),
    linear-gradient(to bottom,
      rgba(5,13,20,0.40) 0%, rgba(5,13,20,0.05) 26%,
      rgba(5,13,20,0.14) 70%, rgba(5,13,20,0.80) 100%);
  pointer-events: none;
}

/* padding-block, not the padding shorthand: the shorthand would reset the
   inline padding .shell sets and push the h1 onto the viewport edge. */
.hero-in { padding-block: var(--s10) var(--s9); }
.hero h1 {
  font-size: clamp(2.75rem, 8.2vw, var(--t-4xl));
  font-stretch: 112%;
  margin: var(--s5) 0 0;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--vapor);
  display: block;
  font-stretch: 84%;
  font-weight: 500;
  font-size: 0.56em;
  letter-spacing: -0.01em;
  margin-top: var(--s3);
}
.hero-copy {
  margin-top: var(--s5);
  max-width: 46ch;
  color: var(--on-dark-60);
  font-size: var(--t-md);
}
.hero-copy strong { color: var(--on-dark); font-weight: 600; }
.hero-acts {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  margin-top: var(--s6);
}

/* Live clock readout — grounds the "we answer now" claim */
.clock {
  display: inline-flex; align-items: baseline; gap: var(--s3);
  margin-top: var(--s6);
  font: 500 var(--t-xs)/1 var(--mono);
  color: var(--on-dark-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.clock b {
  font-weight: 700; color: var(--vapor);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: var(--s6);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark-60);
}
.scroll-cue i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--vapor), transparent);
  animation: drip 2.4s var(--e-out) infinite;
}
@keyframes drip {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ==========================================================================
   Readout strip — hard numbers, mono, tabular
   ========================================================================== */
.strip {
  background: var(--deep);
  border-block: 1px solid rgba(111, 211, 236, 0.14);
  position: relative; z-index: 1;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(111, 211, 236, 0.14);
}
.stat {
  background: var(--deep);
  padding: var(--s6) var(--s5);
}
.stat-n {
  font: 800 var(--t-2xl)/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--vapor);
}
.stat-n small {
  font-size: 0.42em; font-weight: 600;
  color: var(--on-dark-60); margin-left: 2px;
  letter-spacing: 0;
}
.stat-k {
  display: block; margin-top: var(--s2);
  font: 500 var(--t-xs)/1.5 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-60);
}

/* ==========================================================================
   Section frame
   ========================================================================== */
.sec { padding: var(--s10) 0; position: relative; }
.sec-head { max-width: 62ch; margin-bottom: var(--s8); }
.sec-head h2 {
  font-size: clamp(2rem, 4.6vw, var(--t-3xl));
  font-stretch: 106%;
  margin: var(--s4) 0 0;
}
.sec-head p {
  margin-top: var(--s4);
  color: var(--on-dark-60);
  max-width: 58ch;
}
.on-light .sec-head p { color: var(--ink-60); }

/* --- Services: ten lines of work, the flagship one given its own row -----
   Cards carry real depth (pointer tilt + layered translateZ) and a reading bar
   that fills across the top on hover. Water-side work is cyan, fire/smoke and
   the rebuild are amber — same wet/dry logic as the rest of the site. */
.services { background: var(--tide); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  perspective: 1100px;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(158deg, rgba(255,255,255,0.085), rgba(255,255,255,0.018));
  border: 1px solid rgba(111, 211, 236, 0.22);
  border-radius: var(--radius);
  padding: var(--s6) var(--s5) var(--s5);
  transform-style: preserve-3d;
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(0);
  transition: transform var(--d-mid) var(--e-out),
              border-color var(--d-mid) var(--e-out),
              background var(--d-mid) var(--e-out),
              box-shadow var(--d-mid) var(--e-out);
  will-change: transform;
}
/* Reading bar. Sits inside the border box, so no overflow clip is needed —
   and no clip means transform-style: preserve-3d keeps working. */
.svc::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--vapor), rgba(111, 211, 236, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d-slow) var(--e-out);
}
.svc:hover::before { transform: scaleX(1); }
.svc:hover {
  border-color: rgba(111, 211, 236, 0.62);
  background: linear-gradient(158deg, rgba(111, 211, 236, 0.14), rgba(255,255,255,0.02));
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.8);
}
/* Touch devices never hover, so hold the accent open rather than hide it */
@media (hover: none) {
  .svc::before { transform: scaleX(1); }
}

.svc-n {
  position: absolute; top: var(--s5); right: var(--s5);
  font: 700 var(--t-sm)/1 var(--mono);
  letter-spacing: 0.04em;
  color: rgba(111, 211, 236, 0.45);
  transform: translateZ(26px);
  transition: color var(--d-mid) var(--e-out);
}
.svc:hover .svc-n { color: var(--vapor); }

.svc-ico-wrap {
  width: 50px; height: 50px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(111, 211, 236, 0.3);
  border-radius: 2px;
  background: rgba(111, 211, 236, 0.08);
  transform: translateZ(34px);
  transition: border-color var(--d-mid) var(--e-out),
              background var(--d-mid) var(--e-out);
}
.svc:hover .svc-ico-wrap {
  border-color: rgba(111, 211, 236, 0.7);
  background: rgba(111, 211, 236, 0.17);
}
.svc-ico { width: 26px; height: 26px; color: var(--vapor); }

.svc h3 {
  font-size: var(--t-lg);
  margin: var(--s5) 0 var(--s3);
  padding-right: var(--s6);
  text-wrap: balance;
  transform: translateZ(22px);
}
.svc p {
  font-size: var(--t-sm);
  color: var(--on-dark-60);
  transform: translateZ(12px);
  /* Grows to fill the card so the meta rule lands on the same baseline right
     across a row, however long the individual descriptions run. */
  flex: 1 1 auto;
}
/* Pushed to the bottom edge so the meta rules line up across a row even when
   the descriptions run to different lengths. */
.svc-meta {
  display: block;
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid rgba(111, 211, 236, 0.16);
  font: 500 var(--t-xs)/1.5 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vapor);
  transform: translateZ(10px);
}
.svc-tag {
  align-self: start;
  margin-bottom: var(--s4);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
  transform: translateZ(28px);
}

/* Fire, smoke and reconstruction are the dry side of the work */
.svc.is-dry { border-color: rgba(255, 176, 46, 0.26); }
.svc.is-dry::before {
  background: linear-gradient(90deg, var(--amber), rgba(255, 176, 46, 0));
}
.svc.is-dry .svc-ico { color: var(--amber); }
.svc.is-dry .svc-ico-wrap {
  border-color: rgba(255, 176, 46, 0.32);
  background: rgba(255, 176, 46, 0.09);
}
.svc.is-dry .svc-n { color: rgba(255, 176, 46, 0.5); }
.svc.is-dry .svc-meta {
  color: var(--amber);
  border-top-color: rgba(255, 176, 46, 0.2);
}
.svc.is-dry:hover {
  border-color: rgba(255, 176, 46, 0.6);
  background: linear-gradient(158deg, rgba(255, 176, 46, 0.11), rgba(255,255,255,0.02));
}
.svc.is-dry:hover .svc-n { color: var(--amber); }
.svc.is-dry:hover .svc-ico-wrap {
  border-color: rgba(255, 176, 46, 0.72);
  background: rgba(255, 176, 46, 0.18);
}

/* Flagship card — full row, spec sheet on the right */
.svc-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--s7);
  align-items: start;
  padding: var(--s7) var(--s6);
  border-color: rgba(255, 176, 46, 0.3);
  background:
    radial-gradient(122% 148% at 0% 0%, rgba(111, 211, 236, 0.15), transparent 58%),
    linear-gradient(158deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.svc-lead > div { display: flex; flex-direction: column; min-width: 0; }
.svc-lead::before {
  transform: scaleX(1);
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--vapor) 46%, rgba(111,211,236,0) 100%);
}
.svc-lead .svc-ico-wrap { width: 58px; height: 58px; }
.svc-lead .svc-ico { width: 30px; height: 30px; }
.svc-lead h3 {
  font-size: clamp(1.6rem, 3.2vw, var(--t-2xl));
  padding-right: 0;
  max-width: 22ch;
}
.svc-lead p { font-size: var(--t-md); max-width: 56ch; }
.svc-lead:hover {
  border-color: rgba(255, 176, 46, 0.55);
  background:
    radial-gradient(122% 148% at 0% 0%, rgba(111, 211, 236, 0.22), transparent 58%),
    linear-gradient(158deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
}

.svc-spec { margin: 0; transform: translateZ(16px); }
.svc-spec > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s3) 0;
  border-top: 1px solid rgba(111, 211, 236, 0.16);
}
.svc-spec > div:last-child { border-bottom: 1px solid rgba(111, 211, 236, 0.16); }
.svc-spec dt {
  font: 700 var(--t-xs)/1.5 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vapor);
}
.svc-spec dd { margin: 0; font-size: var(--t-sm); color: var(--on-dark-60); }

/* --- Process: numbered because drying genuinely is a sequence ------------ */
.process { background: var(--deep); }
.steps {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  counter-reset: step;
  perspective: 1400px;
}
.step {
  position: relative;
  counter-increment: step;
  padding: var(--s6) var(--s5);
  background: rgba(255, 255, 255, 0.035);
  border-top: 2px solid var(--vapor);
  border-radius: 0 0 var(--radius) var(--radius);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 800 var(--t-xl)/1 var(--display);
  color: var(--vapor);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s4);
  opacity: 0.9;
}
.step:nth-child(4) { border-top-color: var(--amber); }
.step:nth-child(4)::before { color: var(--amber); }
.step h3 { font-size: var(--t-md); margin-bottom: var(--s2); }
.step p { font-size: var(--t-sm); color: var(--on-dark-60); }
.step-when {
  display: block; margin-top: var(--s4);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(111, 211, 236, 0.14);
  padding: var(--s2) var(--s3);
  border-radius: 2px;
  width: fit-content;
}

/* --- Scroll reveal ------------------------------------------------------
   Uses the individual `translate` / `rotate` properties rather than
   `transform`, so a card's own pointer-tilt transform still composes with the
   reveal instead of one cancelling the other. `opacity` carries the reveal on
   its own if a browser lacks the individual properties. */
.rise {
  opacity: 0;
  translate: 0 44px;
  rotate: x -16deg;
  transition:
    opacity var(--d-slow) var(--e-out),
    translate var(--d-slow) var(--e-out),
    rotate var(--d-slow) var(--e-out);
  transition-delay: var(--d, 0ms);
}
.rise.is-in {
  opacity: 1;
  translate: 0 0;
  rotate: x 0deg;
}

/* The reveal rotates about X, so its container needs the vanishing point. */
.sec > .shell { perspective: 1300px; }

/* ==========================================================================
   Cities — the structure is dry here, so the ground turns to daylight
   ========================================================================== */
.cities {
  background: var(--dry);
  color: var(--ink);
}
.cities h2, .cities h3 { color: var(--ink); }

.map-wrap {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--dry-2);
  padding: var(--s5);
  margin-bottom: var(--s7);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s7);
  align-items: center;
}
.map-svg { width: 100%; height: auto; }
.map-note h3 { font-size: var(--t-xl); margin-bottom: var(--s4); }
.map-note p { color: var(--ink-60); font-size: var(--t-sm); }
.map-legend {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  margin-top: var(--s5);
  font: 500 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-60);
}
.map-legend span { display: flex; align-items: center; gap: var(--s2); }
.map-legend i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #0A5C7A; flex: none;
}
.map-legend .is-hub i { background: var(--amber); }

/* Find controls */
.finder {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: flex-end;
  margin-bottom: var(--s5);
}
.field { flex: 1 1 320px; }
.field label {
  display: block;
  font: 600 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: var(--s2);
}
.field-in { position: relative; }
.field-in svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-60);
  pointer-events: none;
}
#city-search {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s5) 0 42px;
  font: 400 var(--t-base)/1 var(--body);
  color: var(--ink);
  background: var(--dry-2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
#city-search::placeholder { color: var(--ink-60); }
#city-search:focus-visible { border-color: #0A5C7A; }
.field-hint {
  margin-top: var(--s2);
  font-size: var(--t-xs);
  color: var(--ink-60);
}

.count {
  font: 600 var(--t-sm)/1 var(--mono);
  color: var(--ink-60);
  font-variant-numeric: tabular-nums;
  padding-bottom: var(--s3);
}
.count b { color: var(--ink); }

/* A–Z jump. Real buttons, 44px targets. */
.alpha {
  display: flex; flex-wrap: wrap; gap: var(--s1);
  padding: var(--s3) 0 var(--s6);
  border-bottom: 1px solid var(--hair);
  margin-bottom: var(--s6);
}
.alpha button {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 var(--t-sm)/1 var(--mono);
  color: var(--ink-60);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--d-fast) var(--e-out),
              color var(--d-fast) var(--e-out),
              border-color var(--d-fast) var(--e-out);
}
.alpha button:hover:not(:disabled) {
  background: var(--dry-2); color: var(--ink);
  border-color: var(--hair);
}
.alpha button[aria-pressed="true"] {
  background: #0A5C7A; color: #fff; border-color: #0A5C7A;
}
.alpha button:disabled { opacity: 0.32; cursor: not-allowed; }

/* City grid */
.city-groups { display: grid; gap: var(--s7); }
.city-group[hidden] { display: none; }
.city-letter {
  display: flex; align-items: center; gap: var(--s4);
  font: 800 var(--t-lg)/1 var(--display);
  color: var(--ink);
  margin-bottom: var(--s4);
}
.city-letter::after {
  content: ""; flex: 1; height: 1px; background: var(--hair);
}
.city-letter em {
  font-style: normal;
  font: 500 var(--t-xs)/1 var(--mono);
  color: var(--ink-60);
  font-variant-numeric: tabular-nums;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--s3);
  perspective: 900px;
}
.city {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 56px;
  padding: var(--s3) var(--s4);
  background: var(--dry-2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 500;
  overflow-wrap: anywhere;
  transform-style: preserve-3d;
  transition:
    transform var(--d-mid) var(--e-out),
    translate var(--d-mid) var(--e-out),
    box-shadow var(--d-mid) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    opacity var(--d-mid) var(--e-out);
}
/* Author `display:flex` above outranks the UA rule for [hidden], so restate it. */
.city[hidden] { display: none; }
.city::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: #2A94B5;
  transition: transform var(--d-fast) var(--e-out);
}
.city.is-hub::before { background: var(--amber); }
.city:hover {
  transform: translate3d(0, -3px, 26px);
  box-shadow: 0 14px 30px -12px rgba(7, 18, 25, 0.35);
  border-color: #0A5C7A;
}
.city:hover::before { transform: scale(1.5); }
.city-arrow {
  margin-left: auto; flex: none;
  width: 14px; height: 14px;
  color: var(--ink-60);
  opacity: 0; transform: translateX(-5px);
  transition: opacity var(--d-fast) var(--e-out),
              transform var(--d-fast) var(--e-out);
}
.city:hover .city-arrow, .city:focus-visible .city-arrow {
  opacity: 1; transform: translateX(0);
}
/* Staggered entrance. `translate` (not `transform`) so the hover lift survives. */
.city.pend  { opacity: 0; translate: 0 12px; }
.city.shown { opacity: 1; translate: 0 0; }

.no-hits {
  padding: var(--s8) var(--s5);
  text-align: center;
  border: 1px dashed var(--hair);
  border-radius: var(--radius);
  background: var(--dry-2);
}
.no-hits h3 { font-size: var(--t-md); margin-bottom: var(--s2); }
.no-hits p { color: var(--ink-60); font-size: var(--t-sm); }
.no-hits a { color: #0A5C7A; font-weight: 600; }

/* ==========================================================================
   Close
   ========================================================================== */
.close {
  background: var(--abyss);
  text-align: center;
  padding: var(--s10) 0;
}
.close h2 {
  font-size: clamp(2rem, 5.4vw, var(--t-3xl));
  max-width: 26ch; margin-inline: auto;
}
.close p {
  color: var(--on-dark-60);
  max-width: 50ch; margin: var(--s5) auto 0;
}
.close-acts {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  justify-content: center; margin-top: var(--s7);
}
.close-fine {
  margin-top: var(--s6);
  font: 500 var(--t-xs)/1.6 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-dark-60);
}

.foot {
  background: var(--abyss);
  border-top: 1px solid rgba(111, 211, 236, 0.14);
  padding: var(--s8) 0 var(--s7);
  font-size: var(--t-sm);
  color: var(--on-dark-60);
}
.foot-in {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  justify-content: space-between; align-items: center;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--vapor); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s5); }

/* Mobile-only fixed call bar */
.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-callbar);
  background: var(--amber);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px;
  font: 800 var(--t-md)/1 var(--body);
  color: var(--ink);
  text-decoration: none;
  touch-action: manipulation;
}

.sec-more {
  margin-top: var(--s6);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5);
}
.sec-more p { font-size: var(--t-sm); color: var(--on-dark-60); margin: 0; }
.on-light .sec-more p { color: var(--ink-60); }

/* Marks content the site owner still has to supply. Deliberately loud — it
   must be impossible to ship a placeholder by accident. */
.ph-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #6B4400; background: #FFDF9E;
  border: 1px solid #C98A12; border-radius: 2px;
  padding: 5px 7px;
}

/* ==========================================================================
   About — who turns up, and the numbers behind the promise
   ========================================================================== */
.about { background: var(--deep); }
.about-in {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: var(--s8);
  align-items: start;
}
.about-copy p { color: var(--on-dark-60); max-width: 58ch; }
.about-copy p + p { margin-top: var(--s4); }
.about-copy strong { color: var(--on-dark); font-weight: 600; }

.about-list {
  list-style: none; padding: 0;
  margin: var(--s6) 0 0;
  display: grid; gap: var(--s4);
}
.about-list li {
  position: relative; padding-left: var(--s6);
  font-size: var(--t-sm); color: var(--on-dark);
}
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 13px; height: 13px;
  border: 2px solid var(--amber);
  border-radius: 50%;
}
.about-list b { color: var(--vapor); font-weight: 600; }

.about-panel {
  border: 1px solid rgba(111, 211, 236, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: var(--s6);
}
.about-panel h3 { font-size: var(--t-lg); }
.about-panel > p {
  margin-top: var(--s3);
  font-size: var(--t-sm); color: var(--on-dark-60);
}
.figs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s5) var(--s4);
  margin-top: var(--s6);
}
.fig-n {
  font: 900 clamp(1.9rem, 4vw, 2.6rem)/0.9 var(--display);
  font-stretch: 108%;
  color: var(--vapor);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.fig-n small {
  font-size: 0.4em; font-weight: 700; font-stretch: 100%;
  margin-left: 3px; color: var(--vapor-dim);
}
.fig-k {
  display: block; margin-top: var(--s2);
  font: 500 var(--t-xs)/1.45 var(--mono);
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--on-dark-60);
}
.about-panel .btn { width: 100%; margin-top: var(--s6); }

/* ==========================================================================
   Difference — six reasons, each one a thing you could check
   ========================================================================== */
.diff { background: var(--abyss); }
.diff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: var(--s4);
}
.dif {
  padding: var(--s6) var(--s5);
  border: 1px solid rgba(111, 211, 236, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(162deg, rgba(36, 101, 125, 0.24), rgba(255, 255, 255, 0.015) 68%);
  transition: border-color var(--d-mid) var(--e-out);
}
.dif:hover { border-color: rgba(111, 211, 236, 0.5); }
.dif-ico {
  width: 30px; height: 30px;
  color: var(--amber);
}
.dif h3 { font-size: var(--t-md); margin: var(--s4) 0 var(--s2); }
.dif p { font-size: var(--t-sm); color: var(--on-dark-60); }

/* ==========================================================================
   Before / after — placeholder frames until real job photos land
   ========================================================================== */
.gallery { background: var(--dry); color: var(--ink); }
.shots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: var(--s5);
}
.shot {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--dry-2);
  overflow: hidden;
}
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; }
.shot-fig {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  /* Hatch reads unmistakably as "no photo here yet" */
  background:
    repeating-linear-gradient(135deg,
      #E3EBED 0 9px, #D6E1E4 9px 18px);
  border-right: 1px solid var(--hair);
}
.shot-fig:last-child { border-right: 0; }
.shot-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-fig figcaption {
  position: absolute; inset: auto auto var(--s3) var(--s3);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dry-2);
  background: rgba(7, 18, 25, 0.82);
  padding: 5px 7px; border-radius: 2px;
}
.shot-fig.is-after figcaption { background: #7A4F00; }
.shot-slot {
  font: 500 var(--t-xs)/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: #5C6E75; text-align: center;
  padding: 0 var(--s4);
}
.shot-body { padding: var(--s5); }
.shot-body h3 { font-size: var(--t-md); }
.shot-body p {
  margin-top: var(--s2);
  font-size: var(--t-sm); color: var(--ink-60);
}
.shot-meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  margin-top: var(--s4);
  font: 500 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #0A5C7A;
}

/* ==========================================================================
   Testimonials — structure now, real reviews pasted in later
   ========================================================================== */
.quotes { background: var(--dry-2); color: var(--ink); }
.quote-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(298px, 1fr));
  gap: var(--s5);
}
.quote {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6) var(--s5);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--dry);
}
.stars { display: flex; gap: 3px; color: #B57500; }
.stars svg { width: 16px; height: 16px; }
.quote blockquote {
  margin: 0;
  font-size: var(--t-md); line-height: 1.62;
}
.quote-by {
  margin-top: auto;
  font: 500 var(--t-xs)/1.5 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-60);
}
.quote-by b { display: block; color: var(--ink); font-weight: 700; }

/* ==========================================================================
   FAQ — native details/summary, so it works before any JS runs
   ========================================================================== */
.faq { background: var(--dry); color: var(--ink); }
.faq-in {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--s8);
  align-items: start;
}
.faq-aside h2 { font-size: clamp(1.75rem, 4vw, var(--t-2xl)); }
.faq-aside p {
  margin-top: var(--s4);
  color: var(--ink-60); max-width: 40ch;
}
.faq-aside .btn { margin-top: var(--s5); }

.faq-list { display: grid; gap: var(--s3); }
.q {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--dry-2);
  transition: border-color var(--d-fast) var(--e-out);
}
.q:hover { border-color: var(--steel); }
.q[open] { border-color: var(--steel); }
.q summary {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font: 700 var(--t-md)/1.45 var(--body);
  color: var(--ink);
}
.q summary::-webkit-details-marker { display: none; }
.q summary::marker { content: ""; }
.q summary:focus-visible { outline: 3px solid var(--steel); outline-offset: -3px; }

/* Plus that becomes a minus — cheaper and calmer than a rotating chevron */
.q-mark { position: relative; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.q-mark::before,
.q-mark::after {
  content: ""; position: absolute;
  background: var(--steel); border-radius: 1px;
  transition: rotate var(--d-mid) var(--e-out), opacity var(--d-mid) var(--e-out);
}
.q-mark::before { left: 2px; right: 2px; top: 9px; height: 2px; }
.q-mark::after { top: 2px; bottom: 2px; left: 9px; width: 2px; }
.q[open] .q-mark::after { rotate: 90deg; opacity: 0; }

.q-a { padding: 0 var(--s5) var(--s5); }
.q-a p { color: var(--ink-60); max-width: 70ch; }
.q-a p + p { margin-top: var(--s3); }
.q-a a { color: #0A5C7A; font-weight: 600; }
.q-a ul { margin: var(--s3) 0 0; padding-left: var(--s5); color: var(--ink-60); }
.q-a li + li { margin-top: var(--s2); }

/* ==========================================================================
   Blog / resources
   ========================================================================== */
.blog { background: var(--dry-2); color: var(--ink); }
.posts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(298px, 1fr));
  gap: var(--s5);
}
.post {
  display: flex; flex-direction: column;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--dry);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color var(--d-mid) var(--e-out),
              translate var(--d-mid) var(--e-out);
}
.post:hover { border-color: var(--steel); translate: 0 -3px; }
.post-thumb {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 130% at 20% 0%, #1B4C63 0%, #0A1D2C 70%);
  color: var(--vapor-dim);
  border-bottom: 1px solid var(--hair);
}
.post-thumb svg { width: 40px; height: 40px; }
.post-body {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5); flex: 1;
}
.post-meta {
  font: 500 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #0A5C7A;
}
.post h3 { font-size: var(--t-lg); }
.post p { font-size: var(--t-sm); color: var(--ink-60); }
.post-more {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: auto;
  font-weight: 700; font-size: var(--t-sm);
  color: #0A5C7A;
}
.post-more svg { width: 16px; height: 16px; }
.post:hover .post-more svg { translate: 4px 0; }
.post-more svg { transition: translate var(--d-mid) var(--e-out); }

/* ==========================================================================
   Footer — full sitemap, because 761 city pages need a way in
   ========================================================================== */
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.15fr;
  gap: var(--s6) var(--s5);
}
.foot-brand .brand { margin-bottom: var(--s4); }
.foot-brand p { max-width: 36ch; }
.foot-col h3 {
  font: 700 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: var(--s4);
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.foot-col a { font-size: var(--t-sm); }
.foot-call {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-top: var(--s4);
  font: 800 var(--t-lg)/1 var(--display);
  color: var(--vapor);
  text-decoration: none;
  min-height: 44px;
}
.foot-call:hover { color: var(--dry-2); text-decoration: none; }
.foot-call svg { width: 20px; height: 20px; }
.foot-note { margin-top: var(--s3); font-size: var(--t-xs); }
.foot-bar {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  justify-content: space-between; align-items: center;
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid rgba(111, 211, 236, 0.14);
  font-size: var(--t-xs);
}
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Below this the centred shell runs out of side margin, and the fixed rail
   would sit on top of the text once it fades in. */
@media (max-width: 1380px) {
  .rail { display: none; }
}

@media (max-width: 1180px) {
  .foot-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --s9: 64px; --s10: 80px; }
  .nav { display: none; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { grid-template-columns: 1fr; gap: var(--s5); }
  .about-in, .faq-in { grid-template-columns: 1fr; gap: var(--s6); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-lead { grid-template-columns: 1fr; gap: var(--s6); padding: var(--s6) var(--s5); }
  .foot-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: 84px; }
  .callbar { display: block; }
  .head-call span { display: none; }
  .hero { min-height: 92svh; }
  .hero-in { padding-block: var(--s8) var(--s9); }
  /* Single-column copy spans the full width here, so the left-column wash is
     replaced by an even one and the frame pans off the bright window wall. */
  .hero::before {
    background-position: 38% 66%;
    /* 1024px asset is plenty behind a scrim this heavy — saves ~88 KB on cellular */
    background-image: url("assets/images/hero-room-sm.jpg");
    background-image: image-set(
      url("assets/images/hero-room-sm.webp") type("image/webp"),
      url("assets/images/hero-room-sm.jpg") type("image/jpeg"));
  }
  .hero::after {
    background:
      radial-gradient(120% 58% at 20% 12%, rgba(5,13,20,0.94) 0%, rgba(5,13,20,0.62) 52%, transparent 84%),
      linear-gradient(to bottom,
        rgba(5,13,20,0.72) 0%, rgba(5,13,20,0.58) 34%,
        rgba(5,13,20,0.66) 72%, rgba(5,13,20,0.93) 100%);
  }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-spec > div { grid-template-columns: 1fr; gap: var(--s1); }
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .alpha { gap: 2px; }
  .alpha button { min-width: 40px; }
  .scroll-cue { display: none; }
  .finder { align-items: stretch; }
  .count { padding-bottom: 0; }
  .figs { gap: var(--s5) var(--s3); }
  .q summary { padding: var(--s4); font-size: var(--t-sm); }
  .q-a { padding: 0 var(--s4) var(--s4); }
  .foot-top { grid-template-columns: 1fr; gap: var(--s6); }
  .foot-bar { gap: var(--s3); }
}

/* Landscape phones: don't let the hero swallow the viewport */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-in { padding-block: var(--s8); }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Reduced motion — hold every final state, kill ambient loops
   ========================================================================== */
@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;
    transition-delay: 0ms !important;
  }
  /* These animate via the individual translate/rotate properties, so reset
     those — not `transform` — or the reveal never lands and content stays
     invisible for anyone who prefers reduced motion. */
  .rise, .city.pend, .city.shown {
    opacity: 1 !important;
    translate: none !important;
    rotate: none !important;
  }
  .svc { transform: none !important; }
  /* Hold the reading bar open — with transitions off it would never fill */
  .svc::before { transform: scaleX(1) !important; }
  .post:hover { translate: none !important; }
  .post-more svg { translate: none !important; }
  .city:hover { transform: none; }
  .scroll-cue i { animation: none; opacity: 1; }
}

@media (prefers-contrast: more) {
  /* Drop the photograph entirely rather than try to out-scrim it */
  .hero::before { display: none; }
  .hero-copy, .sec-head p, .svc p, .svc-spec dd, .step p,
  .about-copy p, .dif p, .about-panel > p { color: var(--on-dark); }
  .q-a p, .post p, .shot-body p, .faq-aside p, .quote-by { color: var(--ink); }
  .city { border-color: var(--ink-60); }
}

/* ==========================================================================
   Article pages — guides and legal. Long-form reading on a light ground.
   Appended after the responsive block, so its own queries sit inside here.
   ========================================================================== */
.art-hero {
  background:
    radial-gradient(108% 80% at 82% 2%, rgba(36, 101, 125, 0.5) 0%, transparent 62%),
    var(--abyss);
  padding: var(--s9) 0 var(--s8);
  border-bottom: 1px solid rgba(111, 211, 236, 0.14);
}
.art-hero h1 {
  font-size: clamp(2rem, 5.2vw, var(--t-2xl));
  font-stretch: 108%;
  max-width: 26ch;
  margin-top: var(--s4);
}
.art-meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  margin-top: var(--s5);
  font: 500 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--on-dark-60);
}
.art-lede { margin-top: var(--s5); max-width: 62ch; color: var(--on-dark); }

.art-wrap { background: var(--dry); color: var(--ink); padding: var(--s9) 0; }
.art-in {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px;
  gap: var(--s8); align-items: start;
}

.article { max-width: 68ch; }
.article > * + * { margin-top: var(--s5); }
.article h2 {
  font-size: clamp(1.4rem, 3.2vw, var(--t-xl));
  color: var(--ink);
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--hair);
}
.article h3 { font-size: var(--t-lg); color: var(--ink); margin-top: var(--s6); }
.article p { color: #2E3F48; }
.article strong { color: var(--ink); font-weight: 700; }
.article a { color: #0A5C7A; font-weight: 600; }
.article ul, .article ol { padding-left: var(--s6); color: #2E3F48; }
.article li + li { margin-top: var(--s3); }
.article li::marker { color: var(--steel); }
.article hr { border: 0; border-top: 1px solid var(--hair); margin: var(--s7) 0; }

/* Pull-out for the one line in a section that matters most */
.article .note {
  border-left: 3px solid var(--amber);
  background: var(--dry-2);
  padding: var(--s5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article .note p { margin: 0; }
.article .note p + p { margin-top: var(--s3); }
.article .note b { color: var(--ink); }

/* Ordered checklist where each step is a heading of its own */
.article .ol-steps { list-style: none; padding: 0; counter-reset: st; }
.article .ol-steps > li {
  position: relative;
  padding-left: var(--s8);
  counter-increment: st;
}
.article .ol-steps > li + li { margin-top: var(--s5); }
.article .ol-steps > li::before {
  content: counter(st);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font: 800 var(--t-sm)/1 var(--mono);
  color: var(--dry-2); background: var(--steel);
  border-radius: 2px;
}
.article .ol-steps h3 { margin-top: 0; font-size: var(--t-md); }

.art-side { position: sticky; top: 86px; display: grid; gap: var(--s5); }
.art-card {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--dry-2);
  padding: var(--s5);
}
.art-card h2 {
  font: 700 var(--t-xs)/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: var(--s4);
}
.art-card p { font-size: var(--t-sm); color: var(--ink-60); }
.art-card .btn { width: 100%; }
.art-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.art-toc a {
  font-size: var(--t-sm); color: #0A5C7A;
  text-decoration: none; font-weight: 600;
}
.art-toc a:hover { text-decoration: underline; }
.art-more { display: grid; gap: var(--s3); }
.art-more a { font-size: var(--t-sm); font-weight: 600; color: #0A5C7A; }

@media (max-width: 980px) {
  .art-in { grid-template-columns: 1fr; gap: var(--s7); }
  .art-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
  .art-hero { padding: var(--s8) 0 var(--s7); }
  .article .ol-steps > li { padding-left: var(--s7); }
}
@media (prefers-contrast: more) {
  .article p, .article ul, .article ol { color: var(--ink); }
}
