/* Power Testing: homepage styles
   Tokens → base → components → sections → motion. No build step. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("/case-studies/concepts/_assets/19f8ec3200550a11859c7e52.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/case-studies/concepts/_assets/a76f53ca6612e7b3828eec23.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/case-studies/concepts/_assets/ad4580d8cb4b5f627c2d1845.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
/* Metric-matched fallbacks so text doesn't jump when the web fonts arrive */
@font-face {
  font-family: "Instrument Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 102.5%;
  ascent-override: 94.7%;
  descent-override: 24.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 700;
  size-adjust: 75.6%;
  ascent-override: 128.4%;
  descent-override: 33.1%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --midnight: #00163d;
  --navy: #002d69;
  --volt: #003dfd;
  --volt-light: #7fa3ff;
  --signal: #d63a00;
  --signal-hover: #b83200;
  --signal-bright: #ff4f12;
  --signal-text: #ff8a5c;
  --pass: #0a7a55;
  --pass-bg: #e3f4ec;

  --paper: #f3f5f9;
  --white: #fff;
  --ink: #0b1b33;
  --steel: #4a5872;
  --mist: #aab8d4;
  --line: #d9dfea;
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #d6def0;

  --font-sans: "Instrument Sans", "Instrument Fallback", Arial, sans-serif;
  --font-display: "Instrument Sans", "Instrument Display Fallback", "Arial Narrow", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 84px;
  --header-h-compact: 68px;
  --shadow-1: 0 1px 2px rgba(0, 22, 61, 0.06), 0 8px 24px rgba(0, 22, 61, 0.08);
  --shadow-2: 0 2px 6px rgba(0, 22, 61, 0.08), 0 24px 60px rgba(0, 22, 61, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: var(--volt);

  --iso-lines:
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(210deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 20px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--volt); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--volt); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.hero, .section--dark, .section--navy, .section--volt, .site-footer, .mobile-menu { --focus: #fff; }
.quote-form, .safety-card, .contact-card--plan, .selector-inner, .test-card { --focus: var(--volt); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.fill { fill: currentColor; stroke: none; }
.icon-flip { transform: scaleX(-1); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--midnight); color: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.section--volt { background: var(--volt); color: #fff; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 64px;
  align-items: end;
}
.section-head--split .section-lede { margin-bottom: 4px; }
.section-foot { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- Type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  color: var(--volt);
}
.kicker .rule { width: 32px; height: 2px; background: currentColor; flex: none; }
.kicker--light { color: var(--volt-light); }
.kicker--signal { color: var(--signal-text); }

h2 {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 680;
  font-size: clamp(2.15rem, 4.3vw, 3.55rem);
  line-height: 1.02;
  color: inherit;
}
.section--paper h2, .section:not(.section--dark):not(.section--navy):not(.section--volt) h2 { color: var(--navy); }
h3 { font-size: 1.3rem; font-weight: 620; line-height: 1.2; }
.display {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.05rem, 7.2vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.003em;
}
.lede { font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.55; }
.section-lede { font-size: 1.125rem; color: var(--steel); max-width: 44em; }
.accent { color: var(--volt-light); }
.accent-volt { color: var(--volt); display: block; }
.accent-signal { color: var(--signal-text); display: block; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 640; font-size: 1rem; line-height: 1.1; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.btn:hover .icon:not(.icon-flip) { transform: translateX(3px); }
.btn-primary, .btn-signal { background: var(--signal); color: #fff; }
.btn-primary:hover, .btn-signal:hover { background: var(--signal-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 15px 26px; font-size: 1.0625rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-text { background: none; color: var(--navy); padding-inline: 6px; border: 0; }
.btn-text:hover { color: var(--volt); }
.btn-block { width: 100%; }

.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal-bright); flex: none;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 18, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 79, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 18, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-compact { box-shadow: 0 8px 28px -14px rgba(0, 22, 61, 0.3); }
.header-inner {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.is-compact .header-inner { height: var(--header-h-compact); }

.brand {
  position: relative; z-index: 2; flex: none; align-self: flex-start;
  margin-left: -16px; padding: 14px 16px 16px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  transition: padding 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 22px 34px -22px rgba(0, 8, 30, 0.55);
}
.brand img { height: 104px; width: auto; transition: height 0.3s var(--ease); }
.is-compact .brand { padding: 8px 16px; box-shadow: none; }
.is-compact .brand img { height: 52px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(14px, 1.7vw, 28px); }
.primary-nav a {
  position: relative; display: block; padding: 8px 0;
  color: var(--ink); text-decoration: none; font-weight: 580; font-size: 0.98rem;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--volt); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.header-phone-icon {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
}
.header-phone-icon .icon { width: 20px; height: 20px; }
.header-phone-icon .live-dot { position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border: 2px solid #fff; }
.header-phone-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone-text small {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--steel);
}
.header-phone-text strong { font-size: 1.08rem; font-weight: 680; letter-spacing: 0.01em; }
.header-phone:hover strong { color: var(--volt); }

.menu-toggle, .menu-close {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
}
.menu-toggle .icon, .menu-close .icon { width: 24px; height: 24px; }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 899px) {
  :root { --header-h: 72px; --header-h-compact: 64px; }
  .brand, .is-compact .brand { align-self: center; padding: 8px 12px 8px 16px; box-shadow: none; }
  .brand img { height: 50px; }
  .is-compact .brand img { height: 44px; }
}
@media (max-width: 640px) {
  .header-phone-text, .header-cta { display: none; }
  .header-actions { gap: 10px; }
  .header-phone-icon { width: 48px; height: 48px; background: var(--signal); color: #fff; }
  .header-phone-icon .live-dot { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--midnight); color: #fff; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-logo { height: 58px; width: auto; }
.menu-close { display: inline-flex; background: transparent; color: #fff; border-color: var(--line-dark); }
.mobile-menu-links { margin: 28px 0; border-top: 1px solid var(--line-dark); }
.mobile-menu-links a {
  display: block; padding: 15px 0; border-bottom: 1px solid var(--line-dark);
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 650; font-size: 1.65rem;
}
.mobile-menu-actions { display: grid; gap: 12px; margin-top: auto; }
.mobile-menu-note { margin: 4px 0 0; text-align: center; color: var(--mist); font-size: 0.95rem; }
.mobile-menu-note a { color: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 5vw, 64px);
  background: var(--midnight); color: #fff;
}
@media (min-width: 900px) { .hero { padding-top: 120px; } }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 80% 28%, rgba(0, 61, 253, 0.42), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(0, 61, 253, 0.2), transparent 70%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--iso-lines);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-copy { max-width: 680px; }
.display .line { display: block; }
.trace { width: min(100%, 520px); height: 34px; margin: 20px 0 26px; overflow: visible; }
.trace path {
  fill: none; stroke: var(--volt-light); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.hero .lede { color: var(--on-dark); max-width: 35em; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--mist); font-size: 0.95rem; }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances .icon { width: 18px; height: 18px; color: var(--volt-light); stroke-width: 2.2; }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 19 / 20;
  background: #0a2350;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(205deg, transparent 45%, rgba(0, 22, 61, 0.6));
}

.test-card {
  position: absolute; left: clamp(-56px, -3.5vw, -16px); bottom: 26px;
  width: min(340px, 84%);
  padding: 16px 18px 14px;
  background: #fff; color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 34px 60px -20px rgba(0, 8, 30, 0.65), 0 0 0 1px rgba(0, 22, 61, 0.06);
  font-size: 0.88rem;
}
.test-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 650; color: var(--navy);
}
.test-rows li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.test-rows .tick {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pass-bg); color: var(--pass);
}
.test-rows .tick .icon { width: 13px; height: 13px; stroke-width: 2.8; }
.test-rows .pass {
  margin-left: auto;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--pass);
}
.test-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; }
.stamp {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--pass); border-radius: 4px;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--pass);
  transform: rotate(-3deg);
}

.seal {
  position: absolute; top: -34px; right: -10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: #fff; color: var(--navy);
  box-shadow: 0 22px 44px -18px rgba(0, 8, 30, 0.6);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal text {
  font-family: var(--font-mono); font-size: 9.4px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; fill: var(--navy);
}
.seal-num {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700;
  font-size: 2.9rem; line-height: 0.85; margin-top: 2px;
}
.seal-sub {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--volt);
}

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 7vw, 88px) 0 0;
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 28px 24px 0; border-right: 1px solid var(--line-dark); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat dt {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat dt small { font-size: 0.42em; font-weight: 650; color: var(--volt-light); letter-spacing: 0.02em; }
.stat dt small.tight { margin-left: -4px; font-size: 0.62em; }
.stat dd { margin: 10px 0 0; max-width: 24ch; color: var(--mist); font-size: 0.95rem; line-height: 1.45; }

.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 52px; }
.clients > .clients-list { flex: 1 1 420px; }
.clients-label {
  flex: none; margin: 0;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mist);
}
.clients-viewport { overflow: hidden; flex: 1 1 420px; min-width: 0; }
.clients-list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.clients-list li {
  display: flex; align-items: center; gap: 28px;
  font-stretch: 88%; font-weight: 640; font-size: 1.08rem; white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}
.js .clients-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.js .clients-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.js .clients-track .clients-list { flex-wrap: nowrap; padding-right: 28px; }
.clients:hover .clients-track { animation-play-state: paused; }
.clients-list li::after { content: ""; width: 5px; height: 5px; background: var(--volt-light); opacity: 0.6; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Selector ---------- */
.selector { position: relative; z-index: 5; background: linear-gradient(var(--midnight) 50%, var(--paper) 50%); }
.selector-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px;
  padding: 22px 26px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.selector-title {
  flex: none; margin: 0;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 680; font-size: 1.4rem;
  color: var(--navy);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy);
  font-weight: 590; font-size: 0.95rem; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--volt); color: var(--volt); background: #f2f5ff; }
.chip--alert { border-color: rgba(214, 58, 0, 0.35); background: #fff4ef; color: var(--signal-hover); }
.chip--alert:hover { border-color: var(--signal); background: var(--signal); color: #fff; }
#services { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- Services ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar {
  display: flex; flex-direction: column;
  padding: 0 28px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.pillar:hover { box-shadow: var(--shadow-2); }
.pillar-art {
  display: grid; place-items: center;
  margin: 0 -28px 24px; padding: 22px 24px 14px;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(150deg, rgba(0, 45, 105, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(210deg, rgba(0, 45, 105, 0.05) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #edf1fb, #f8faff);
  border-bottom: 1px solid var(--line);
}
.pillar-art img { width: min(100%, 300px); height: auto; transition: transform 0.5s var(--ease); }
.pillar:hover .pillar-art img { transform: translateY(-4px); }
.pillar-num {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt);
}
.pillar-num span {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid currentColor; border-radius: 4px; font-weight: 600;
}
.pillar h3 {
  margin-bottom: 12px;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 680; font-size: 1.7rem;
  color: var(--navy);
}
.pillar > p:not(.pillar-num) { color: var(--steel); font-size: 1rem; }
.service-list { margin: 6px 0 24px; border-top: 1px solid var(--line); }
.service-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 570; font-size: 0.98rem;
}
.service-list a .icon { width: 18px; height: 18px; color: var(--volt); transition: transform 0.2s var(--ease); }
.service-list a:hover { color: var(--volt); }
.service-list a:hover .icon { transform: translateX(4px); }
.link-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  color: var(--signal); font-weight: 660; text-decoration: none;
}
.link-cta .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-cta:hover { text-decoration: underline; }
.link-cta:hover .icon { transform: translateX(3px); }

@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .pillars { grid-template-rows: repeat(6, auto); }
    .pillar { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .pillar .link-cta { align-self: end; justify-self: start; }
  }
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 42px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); font-weight: 590; font-size: 0.93rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project[hidden] { display: none; }
.project-link {
  position: relative; isolation: isolate; display: block; height: 100%; min-height: 460px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--midnight); color: #fff; text-decoration: none;
}
.project-link img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.project-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 22, 61, 0.97) 0%, rgba(0, 22, 61, 0.88) 40%, rgba(0, 22, 61, 0.2) 72%, rgba(0, 22, 61, 0.05) 100%);
}
.project-link:hover img { transform: scale(1.045); }
.project-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.project-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #c9d5f0;
}
.tag { padding: 3px 8px; border-radius: 3px; background: var(--volt); color: #fff; font-weight: 600; }
.project h3 {
  margin-bottom: 8px;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 680; font-size: 1.55rem;
}
.project-body > p:not(.project-meta) { margin-bottom: 14px; color: var(--on-dark); font-size: 0.95rem; line-height: 1.5; }
.project-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; font-size: 0.93rem; }
.project-more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.project-link:hover .project-more .icon { transform: translateX(4px); }
.project-stats { display: none; }

@media (min-width: 1024px) {
  .project--feature { grid-column: span 2; }
  .project--feature .project-link { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .project--feature .project-link::before { display: none; }
  .project--feature .project-link img { position: relative; z-index: 0; height: 100%; min-height: 460px; }
  .project--feature .project-body {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(24px, 3vw, 40px);
    background:
      radial-gradient(70% 60% at 100% 0%, rgba(0, 61, 253, 0.35), transparent 70%),
      var(--midnight);
  }
  .project--feature h3 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
  .project--feature .project-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
    margin: 6px 0 24px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  }
  .project-stats dt {
    font-family: var(--font-display); font-stretch: 75%; font-weight: 700;
    font-size: 2.1rem; line-height: 1; color: var(--volt-light);
  }
  .project-stats dd { margin: 4px 0 0; color: var(--mist); font-size: 0.86rem; }
}

/* ---------- Emergency ---------- */
.emergency { overflow: hidden; isolation: isolate; }
.emergency-bg { position: absolute; inset: 0; z-index: -1; }
.emergency-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.emergency-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--midnight) 25%, rgba(0, 22, 61, 0.78) 62%, rgba(0, 22, 61, 0.92));
}
.emergency-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.emergency h2 { margin-bottom: 22px; font-stretch: 78%; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.emergency .lede { max-width: 36em; margin-bottom: 30px; color: var(--on-dark); }
.emergency-phone {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 14px 28px 14px 14px; border-radius: 14px;
  background: var(--signal); color: #fff; text-decoration: none;
  box-shadow: 0 24px 50px -22px rgba(255, 79, 18, 0.75);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.emergency-phone:hover { background: var(--signal-hover); transform: translateY(-2px); }
.emergency-phone-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}
.emergency-phone-icon .icon { width: 28px; height: 28px; }
.emergency-phone small {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.emergency-phone strong {
  display: block; font-family: var(--font-display); font-stretch: 78%; font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.02; letter-spacing: 0.01em;
}
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 48px;
}
.timeline::before {
  content: ""; position: absolute; left: 20px; right: 0; top: 19px; height: 2px;
  background: linear-gradient(90deg, var(--signal-bright), rgba(255, 79, 18, 0.1));
}
.timeline li { position: relative; }
.timeline-step {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  background: var(--midnight); border: 2px solid var(--signal-bright);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
}
.timeline h3 { margin-bottom: 6px; font-size: 1.12rem; }
.timeline p { margin: 0; color: var(--mist); font-size: 0.93rem; line-height: 1.5; }

.safety-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink);
  border-top: 6px solid var(--signal-bright);
  box-shadow: var(--shadow-2);
}
.safety-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 8px; background: #fff1ea; color: var(--signal);
}
.safety-icon .icon { width: 24px; height: 24px; }
.safety-card h3 { margin-bottom: 14px; font-family: var(--font-display); font-stretch: 80%; font-size: 1.65rem; color: var(--navy); }
.safety-list { counter-reset: s; display: grid; gap: 10px; margin-bottom: 24px; }
.safety-list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 0.98rem; line-height: 1.45; }
.safety-list li::before {
  content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
}
.safety-quotes { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.safety-quotes blockquote p { margin: 0 0 4px; font-weight: 560; font-size: 0.98rem; line-height: 1.45; }
.safety-quotes figcaption {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel);
}

/* ---------- Outage cost ---------- */
.cost-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.cost-copy h2 { margin-bottom: 18px; }
.cost-proof {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; padding: 18px 20px;
  background: #fff; border-left: 3px solid var(--volt); border-radius: 0 10px 10px 0;
}
.cost-proof .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--volt); }
.cost-proof p { margin: 0; }
.calc {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(24px, 3vw, 36px); border-radius: 16px;
  background: var(--midnight); color: #fff;
  box-shadow: var(--shadow-2);
}
.calc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--iso-lines), radial-gradient(70% 60% at 100% 0%, rgba(0, 61, 253, 0.35), transparent 70%);
}
.calc-title {
  margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt-light);
}
.calc-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-bottom: 16px; }
.calc-field label { color: var(--on-dark); font-size: 0.97rem; }
.calc-field output { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] {
  grid-column: 1 / -1; width: 100%; height: 30px; margin: 0;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
  --pct: 50%;
}
.calc-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--volt-light) var(--pct), rgba(255, 255, 255, 0.18) var(--pct));
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 5px solid var(--volt);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.calc-field input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.calc-field input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--volt-light); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--volt);
}
.calc-field input[type="range"]:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.calc-result {
  margin: 24px 0 20px; padding: 20px 22px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark);
}
.calc-result-label {
  margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist);
}
.calc-result-value {
  margin-bottom: 8px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700;
  font-size: clamp(2.9rem, 6vw, 4.3rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.calc-result-note { margin: 0; color: var(--mist); font-size: 0.92rem; }
.calc-fine { margin: 12px 0 0; text-align: center; color: var(--mist); font-size: 0.8rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.about-media { position: relative; padding-bottom: 150px; }
@media (min-width: 1024px) { .about-media { position: sticky; top: calc(var(--header-h-compact) + 32px); } }
.about-photo--team img { width: 100%; border-radius: var(--radius-lg); }
.about-photo--hq {
  position: absolute; right: -20px; bottom: 0; width: 64%;
  padding: 8px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.about-photo--hq img { border-radius: 8px; }
.about-photo--hq figcaption {
  padding: 9px 4px 2px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel);
}
.about-badge {
  position: absolute; left: -18px; top: 26px; width: 200px;
  padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-2);
}
.about-badge p { margin: 6px 0 0; color: var(--steel); font-size: 0.78rem; line-height: 1.35; }
.about-copy .section-lede a { color: var(--volt); font-weight: 600; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; margin: 40px 0; }
.reason-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 8px; background: #eef2ff; color: var(--volt);
}
.reason-icon .icon { width: 24px; height: 24px; }
.reasons h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.18rem; }
.reasons p { margin: 0; color: var(--steel); font-size: 0.97rem; }
.pt-quote { margin-bottom: 28px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--paper); border-left: 4px solid var(--volt); }
.pt-quote blockquote p {
  margin: 0;
  font-family: var(--font-display); font-stretch: 86%; font-weight: 620; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3;
  color: var(--navy);
}
.pt-quote em { font-style: normal; color: var(--volt); }
.pt-quote figcaption {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel);
}
.about-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.about-links a {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px;
  border-bottom: 2px solid var(--volt); color: var(--navy); font-weight: 640; text-decoration: none;
}
.about-links a .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.about-links a:hover { color: var(--volt); }
.about-links a:hover .icon { transform: translateX(3px); }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; isolation: isolate; }
.testimonials::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--iso-lines), radial-gradient(60% 70% at 100% 0%, rgba(0, 61, 253, 0.45), transparent 70%);
}
.big-quote { max-width: 1060px; margin-bottom: clamp(40px, 6vw, 64px); }
.big-quote p {
  margin: 0;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 650;
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.01em;
}
.big-quote mark { background: none; color: var(--volt-light); box-shadow: inset 0 -0.1em 0 rgba(127, 163, 255, 0.4); }
.big-quote figcaption {
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist);
}
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testimonial-grid figure {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; height: 100%;
  padding: 26px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.13);
}
.testimonial-grid blockquote p { margin: 0; color: #e6ecf8; font-size: 1.04rem; line-height: 1.55; }
.testimonial-grid figcaption {
  display: flex; flex-direction: column; gap: 3px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--mist); font-size: 0.88rem; line-height: 1.4;
}
.testimonial-grid figcaption strong { color: #fff; font-weight: 640; }
.section-foot--light a {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px;
  border-bottom: 2px solid var(--volt-light); color: #fff; font-weight: 640; text-decoration: none;
}
.section-foot--light a .icon { width: 16px; height: 16px; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--volt) 0 10px, transparent 10px 18px); opacity: 0.45;
}
.step-node {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px; border-radius: 12px;
  background: var(--navy); color: #fff;
  box-shadow: 0 0 0 8px var(--paper);
}
.step-node .icon { width: 26px; height: 26px; }
.step-num {
  margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt);
}
.step h3 { margin-bottom: 10px; font-family: var(--font-display); font-stretch: 82%; font-size: 1.5rem; color: var(--navy); }
.step p { color: var(--steel); font-size: 0.98rem; }
.step .step-check {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 4px 10px; border-radius: 999px;
  background: var(--pass-bg); color: var(--pass);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.step-check .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- Accreditations ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.acc {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acc:hover { border-color: #b9c7e6; box-shadow: var(--shadow-1); }
.acc[hidden] { display: none; }
.acc-logo { display: flex; align-items: center; height: 64px; margin-bottom: 10px; }
.acc-logo img { width: auto; height: auto; max-width: 124px; max-height: 60px; object-fit: contain; }
.acc strong { color: var(--navy); font-weight: 650; font-size: 0.98rem; line-height: 1.25; }
.acc > span:last-child { color: var(--steel); font-size: 0.85rem; line-height: 1.35; }
.acc-more { display: none; justify-content: center; margin-top: 16px; }
.acc-more[hidden] { display: none; }
.acc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin-top: 36px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--paper);
}
.acc-cta p { margin: 0; max-width: 42em; }

/* ---------- Quote form ---------- */
.quote { overflow: hidden; isolation: isolate; }
.quote::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--iso-lines), radial-gradient(55% 60% at 0% 0%, rgba(0, 61, 253, 0.4), transparent 70%);
}
.quote-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 80px); align-items: start;
}
.quote h2 { margin-bottom: 18px; font-stretch: 80%; }
.quote h2 .accent { display: block; }
.quote .lede { margin-bottom: 28px; color: var(--on-dark); }
.scope-summary {
  margin-bottom: 26px; padding: 18px 20px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark);
}
.scope-summary-title {
  margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt-light);
}
.scope-summary dl { display: grid; gap: 8px; margin: 0; }
.scope-summary dl div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; font-size: 0.93rem; }
.scope-summary dt { color: var(--mist); }
.scope-summary dd { margin: 0; color: #fff; }
.quote-alt p { margin: 0 0 6px; color: var(--mist); }
.quote-alt a { color: #fff; font-weight: 620; }

.quote-form {
  padding: clamp(22px, 3.4vw, 40px); border-radius: 16px;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
}
.form-progress { display: none; gap: 8px; margin-bottom: 28px; }
.js .form-progress { display: flex; }
.form-progress li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 4px solid var(--line);
  color: var(--steel); font-size: 0.86rem; font-weight: 610;
}
.form-progress li span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); font-family: var(--font-mono); font-size: 0.72rem;
}
.form-progress li[aria-current="step"], .form-progress li.is-done { border-top-color: var(--volt); color: var(--navy); }
.form-progress li[aria-current="step"] span { background: var(--volt); color: #fff; }
.form-progress li.is-done span { background: var(--navy); color: #fff; }
.form-step { min-width: 0; margin: 0 0 8px; padding: 0; border: 0; }
.js .form-step[hidden] { display: none; }
.step-legend {
  padding: 0; margin-bottom: 6px;
  font-family: var(--font-display); font-stretch: 80%; font-weight: 680; font-size: 1.75rem; line-height: 1.1;
  color: var(--navy);
}
.step-legend:focus { outline: none; }
.field-hint { margin-bottom: 16px; color: var(--steel); font-size: 0.93rem; }
.check-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.check-chip, .segmented label { position: relative; }
.check-chip input, .segmented input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.check-chip span, .segmented span {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-weight: 570; font-size: 0.94rem; line-height: 1.25;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.check-chip span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid #9aa8c2; background: #fff center / 12px no-repeat;
}
.check-chip:hover span, .segmented label:hover span { border-color: #9aa8c2; }
.check-chip input:checked + span { border-color: var(--volt); background: #f0f4ff; color: var(--navy); }
.check-chip input:checked + span::before {
  border-color: var(--volt);
  background-color: var(--volt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.check-chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.segmented input[value^="Emergency"]:checked + span { background: var(--signal); border-color: var(--signal); }
.field { margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 610; font-size: 0.96rem; }
.check-chips + .field-error { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"],
.quote-form input[type="number"], .quote-form select, .quote-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #c5cfe0; border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quote-form textarea { min-height: 112px; resize: vertical; }
.quote-form select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002D69' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible {
  outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(0, 61, 253, 0.25);
}
.quote-form [aria-invalid="true"] { border-color: #c62828 !important; }
.quote-form ::placeholder { color: #8391ab; }
.field-error { margin: 6px 0 0; color: #b3261e; font-size: 0.87rem; font-weight: 580; }
.optional { margin-left: 6px; color: var(--steel); font-weight: 400; font-size: 0.85rem; }
.steppers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stepper label { display: block; margin-bottom: 8px; font-weight: 610; font-size: 0.93rem; }
.stepper-control { display: flex; align-items: stretch; border: 1.5px solid #c5cfe0; border-radius: 8px; overflow: hidden; }
.stepper-control button {
  display: grid; place-items: center; flex: none; width: 46px; border: 0;
  background: var(--paper); color: var(--navy);
}
.stepper-control button:hover { background: #e3e9f5; }
.stepper-control button:focus-visible { outline-offset: -3px; }
.quote-form .stepper-control input {
  min-height: 48px; border: 0; border-radius: 0; text-align: center;
  font-family: var(--font-mono); font-weight: 600; -moz-appearance: textfield;
}
.quote-form .stepper-control input:focus-visible { box-shadow: inset 0 0 0 3px rgba(0, 61, 253, 0.35); }
.stepper-control input::-webkit-outer-spin-button, .stepper-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.emergency-prompt {
  display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 20px; padding: 16px;
  border: 1.5px solid #ffb999; border-radius: 10px; background: #fff1ea;
}
.emergency-prompt[hidden] { display: none; }
.emergency-prompt > .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--signal); }
.emergency-prompt p { margin: 0 0 12px; }
.form-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line);
}
.form-nav [data-next], .form-nav [data-back] { display: none; }
.js .form-nav [data-next], .js .form-nav [data-back] { display: inline-flex; }
.form-nav > :only-child, .form-nav [data-next]:first-child, .form-nav [data-submit]:first-child { margin-left: auto; }
.form-privacy { color: var(--steel); font-size: 0.86rem; }
.form-error { padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #8c1d18; font-size: 0.93rem; }
.form-error[hidden] { display: none; }
[data-submit][aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
@media (min-width: 1024px) { .faq-head { position: sticky; top: calc(var(--header-h-compact) + 32px); } }
.faq-head h2 { margin-bottom: 16px; }
.faq-contact a { font-weight: 620; }
.faq-list details { border-bottom: 1px solid #cdd6e6; }
.faq-list details:first-child { border-top: 1px solid #cdd6e6; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  color: var(--navy); font-weight: 630; font-size: 1.13rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002D69' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq-list summary:hover { color: var(--volt); }
.faq-list details[open] summary::after {
  transform: rotate(45deg); border-color: var(--navy);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.faq-body { padding: 0 52px 24px 0; color: var(--steel); }
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--iso-lines), radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%);
}
.contact-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center; }
.contact-head h2 {
  margin-bottom: 14px;
  font-stretch: 76%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 0.95;
}
.contact .lede { margin: 0; color: #e3eaff; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1060px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 34px);
  border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(0, 10, 40, 0.6);
}
.contact-card--emergency { background: var(--midnight); color: #fff; transition: transform 0.25s var(--ease); }
.contact-card--emergency:hover { transform: translateY(-3px); }
.contact-card-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel);
}
.contact-card--emergency .contact-card-label { color: var(--signal-text); }
.contact-card-big {
  font-family: var(--font-display); font-stretch: 76%; font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.7rem); line-height: 1; letter-spacing: 0.005em;
}
.contact-card-big--sm { font-stretch: 82%; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.1; color: var(--navy); }
.contact-card-note { color: var(--mist); }
.contact-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: auto; padding-top: 8px; }
.contact-email { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 610; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1060px; margin: 36px auto 0; }
.office { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.office-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 660; }
.office-name .icon { width: 20px; height: 20px; }
.office address { margin-bottom: 8px; color: #e3eaff; font-style: normal; }
.office p:last-child { margin: 0; }
.office a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 28px; background: var(--midnight); color: var(--mist); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 22px; }
.footer-line { margin-bottom: 10px; color: #fff; font-family: var(--font-display); font-stretch: 80%; font-weight: 660; font-size: 1.45rem; }
.footer-brand > p:not(.footer-line) { max-width: 34ch; }
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt-light);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #e6ecf8; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact li { display: flex; flex-direction: column; }
.footer-contact span { color: var(--mist); font-size: 0.8rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--volt); border-color: var(--volt); }
.socials .icon { width: 20px; height: 20px; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem;
}
.footer-legal p { margin: 0; max-width: 78ch; }
.footer-legal a { color: #e6ecf8; }
.footer-legal-links { display: flex; gap: 20px; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -12px rgba(0, 22, 61, 0.25);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border-radius: 8px; color: #fff; font-weight: 650; text-decoration: none;
}
.action-bar .icon { width: 18px; height: 18px; }
.action-bar-call { background: var(--signal); }
.action-bar-quote { background: var(--navy); }

/* ---------- Simple pages (thank-you, 404) ---------- */
.simple-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--midnight); }
.site-header--simple .header-actions { margin-left: auto; }
.simple-main {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1; display: flex; align-items: center;
  padding: clamp(80px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); color: #fff;
}
.simple-main > .container { width: 100%; }
.simple-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.simple-copy .display { margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5.2rem); }
.simple-copy .lede { max-width: 34em; margin-bottom: 28px; color: var(--on-dark); }
.simple-grid .test-card { position: relative; left: auto; right: auto; bottom: auto; justify-self: end; width: 100%; max-width: 380px; }
.tick--pending { background: var(--paper) !important; color: var(--steel) !important; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; }
.pass--next { color: var(--volt) !important; }
.urgent-note { margin: 0 0 28px; padding: 20px; border: 1.5px solid rgba(255, 79, 18, 0.55); border-radius: var(--radius-lg); background: rgba(255, 79, 18, 0.12); }
.urgent-note[hidden] { display: none; }
.lockoff-art { justify-self: center; width: min(100%, 380px); padding: 28px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); }
.simple-footer { padding: 20px 0 28px; border-top: 1px solid var(--line-dark); background: var(--midnight); color: var(--mist); font-size: 0.9rem; }
.simple-footer p { margin: 0; }
.simple-footer a { color: #fff; }
@media (max-width: 860px) {
  .simple-grid { grid-template-columns: 1fr; }
  .simple-grid .test-card, .lockoff-art { justify-self: start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1079px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 620px; margin-top: 12px; margin-left: auto; margin-right: 8px; }
  .test-card { left: -8px; }
}
@media (max-width: 1023px) {
  .pillars { grid-template-columns: 1fr; max-width: 680px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency-grid, .cost-grid, .about-grid, .quote-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .quote-grid .scope-summary { display: none; }
  .quote-intro { max-width: 720px; }
  .quote-alt { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .quote-alt p:first-child { flex-basis: 100%; }
  .quote-form { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .section-head--split { grid-template-columns: 1fr; }
  .action-bar { display: grid; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 20px 24px 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; padding-left: 20px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .clients { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 36px; }
  .clients-viewport, .clients > .clients-list { flex: none; width: 100%; }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(var(--signal-bright), rgba(255, 79, 18, 0.12)); }
  .timeline li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
  .timeline-step { margin: 0; }
  .offices { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .project-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    scrollbar-width: none;
  }
  .project-grid::-webkit-scrollbar { display: none; }
  .project { flex: 0 0 86%; scroll-snap-align: center; }
  .project-link { min-height: 470px; }
  .testimonial-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-grid li { flex: 0 0 86%; scroll-snap-align: center; }
  .reasons { grid-template-columns: 1fr; gap: 26px; }
  .steppers { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .selector-inner { padding: 18px; }
  .seal { width: 104px; height: 104px; top: -22px; right: -4px; }
  .seal text { font-size: 9px; }
  .seal-num { font-size: 2.3rem; }
  .about-media { padding-bottom: 110px; }
  .about-photo--hq { right: -8px; width: 70%; }
  .about-badge { left: -6px; top: 14px; width: 168px; }
  .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .acc { padding: 14px; }
  .acc-logo { height: 54px; }
  .acc-logo img { max-height: 50px; max-width: 110px; }
  .faq-body { padding-right: 0; }
  .chip { padding: 9px 13px; font-size: 0.9rem; }
  .check-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .check-chip span { width: 100%; height: 100%; padding: 9px 10px; font-size: 0.88rem; }
  .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented span { width: 100%; justify-content: center; text-align: center; font-size: 0.9rem; }
  .pillar-art { aspect-ratio: 2 / 1; padding-block: 14px 8px; }
  .pillar-art img { width: min(100%, 250px); }
  .js .acc-grid.is-collapsed > .acc:nth-child(n + 7) { display: none; }
  .acc-more { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .emergency-phone { width: 100%; padding-right: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .test-card { width: min(300px, 84%); left: auto; right: -6px; bottom: 14px; font-size: 0.84rem; }
  .hero-photo img { object-position: 30% 50%; }
}

@media (max-width: 1023px) and (min-width: 720px) {
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .test-rows li { opacity: 0; transform: translateX(-6px); }
.js .test-card.is-run .test-rows li { animation: row-in 0.45s var(--ease) forwards; animation-delay: calc(var(--i) * 260ms + 500ms); }
.js .test-card .stamp { opacity: 0; transform: rotate(-3deg) scale(1.6); }
.js .test-card.is-run .stamp { animation: stamp-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; animation-delay: 2s; }
.js .seal svg { animation: spin 60s linear infinite; }
@keyframes row-in { to { opacity: 1; transform: none; } }
@keyframes stamp-in { to { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

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