/* ====== EDIT HERE — theme tokens ====== */
/*
 * All theme tokens live here. To rebrand the site, edit only this :root block.
 * Every rule elsewhere in this file references these tokens — do NOT hard-code
 * colors, fonts, spacing, shadows, or radii outside of :root.
 */
:root {
  /* Surfaces */
  --color-bg:          #0a0b0d;
  --color-surface:     #141619;
  --color-surface-2:   #1d2024;
  --color-line:        rgba(255,255,255,.08);
  --color-line-strong: rgba(255,255,255,.14);

  /* Text */
  --color-text:        #e8e8ea;
  --color-text-muted:  #a0a3a8;
  --color-text-subtle: #6d7178;

  /* Accent */
  --color-accent:        #c9a265;
  --color-accent-hover:  #dbb779;
  --color-accent-tint:   rgba(201,162,101,.08);
  --color-focus-ring:    rgba(201,162,101,.35);

  /* Derived: dark text on accent surfaces (buttons, pills) */
  --color-on-accent:   #1b140a;

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --fs-hero:      clamp(2.4rem, 5.2vw, 4.6rem);
  --fs-h2:        clamp(1.9rem, 3.6vw, 2.8rem);
  --fs-h3:        1.25rem;
  --fs-body:      1rem;
  --fs-small:     .9rem;
  --fs-mono:      .75rem;

  /* Spacing + layout */
  --space-xs:   6px;
  --space-sm:   12px;
  --space-md:   24px;
  --space-lg:   48px;
  --space-xl:   96px;
  --max-width:  1200px;
  --gutter:     clamp(16px, 4vw, 32px);
  --radius:     20px;
  --radius-sm:  12px;
  --shadow:     0 24px 48px rgba(0,0,0,.38);
}

/* ====== RESET + BASE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: var(--color-accent-hover);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

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

/* ====== TYPOGRAPHY ====== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--color-text);
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-subtle);
}

/* ====== LAYOUT PRIMITIVES ====== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* ====== HEADER + NAV ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--color-line);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  min-width: 0;
}

.brand:hover {
  color: var(--color-text);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  opacity: .8;
  margin-top: 2px;
}

.brand-mark {
  display: inline-flex;
  color: var(--color-text);
  flex: 0 0 auto;
}
.brand-mark svg { display: block; }
.brand:hover .brand-mark { color: var(--color-accent); transition: color .2s ease; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  transition: color 120ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 14px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  color: var(--color-text);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 120ms ease, color 120ms ease;
}

.header-phone:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 120ms ease;
}

.nav-toggle:hover {
  border-color: var(--color-accent);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 160ms ease, top 160ms ease, bottom 160ms ease, opacity 120ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  bottom: -6px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ====== HERO ====== */
.hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero-lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 56ch;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line-strong);
}

.btn-secondary:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ====== SECTIONS ====== */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-line);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 68ch;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-top: 18px;
}

/* Short dashed brass rule above each section head — like a blueprint dimension tick */
.section-head::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0 4px,
    transparent 4px 8px
  );
  opacity: .9;
}

.section-head .mono {
  color: var(--color-accent);
}

.cta-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0;
  max-width: 28ch;
}

/* ====== GRID ====== */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ====== CARDS ====== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  transition: border-color 140ms ease, background-color 140ms ease, transform 160ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.card h3 {
  margin: 0;
  color: var(--color-text);
}

.card p {
  margin: 0;
}

.card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.card-link:hover {
  color: inherit;
}

.card:hover,
a.card:hover,
.card-link:hover {
  border-color: var(--color-line-strong);
  background: var(--color-surface-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.step h3 {
  margin: 0;
}

.step p {
  margin: 0;
}

/* ====== FORMS ====== */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-subtle);
}

.label-full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  background: var(--color-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-hint {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-subtle);
  text-transform: none;
  letter-spacing: 0;
  margin-top: var(--space-sm);
}

/* ====== SERVICE PAGE ====== */
.service-block {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.service-block-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

.service-block h2 {
  margin: 0;
}

.service-block .mono {
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* ====== ABOUT PAGE ====== */
.about-hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  object-fit: cover;           /* in case <img class="about-photo"> is used directly */
  object-position: center top;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.bio {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.bio h3 {
  margin: 0;
}

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand .brand-name {
  color: var(--color-text);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.footer-nav a:hover {
  color: var(--color-accent-hover);
}

.veteran-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text);
  width: fit-content;
}

.veteran-pill::before {
  content: "★";
  color: var(--color-accent);
  font-size: 0.9em;
  letter-spacing: 0;
}

/* Live "SHOP · ONLINE" status pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-line-strong);
  color: var(--color-text-muted);
  width: fit-content;
}
.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42c97a;
  box-shadow: 0 0 0 0 rgba(66, 201, 122, .6);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0  rgba(66, 201, 122, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(66, 201, 122, 0); }
  100% { box-shadow: 0 0 0 0  rgba(66, 201, 122, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-pill::before { animation: none; }
}

/* GPS/coordinate line in footer */
.footer-coord {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
}

.footer-small {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-subtle);
  margin: 0;
}

/* ====== SERVICE AREA (tactical map + base list) ====== */
.service-area-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.service-map {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255,255,255,.025) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.025) 24px 25px),
    var(--color-surface-2);
  padding: 16px;
  color: var(--color-accent);
}
.service-map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.service-map-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: .85;
}
.service-map-corner.tl { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.service-map-corner.tr { top: 6px; right: 6px; border-width: 1px 1px 0 0; }
.service-map-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 1px 1px; }
.service-map-corner.br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

.map-frame { fill: none; stroke: var(--color-line-strong); stroke-width: .6; opacity: .55; }
.map-parallel { stroke: var(--color-line-strong); stroke-width: .5; opacity: .4; fill: none; }
.map-coast { fill: none; stroke: var(--color-line-strong); stroke-width: 1; opacity: .65; }
.map-road { fill: none; stroke: var(--color-line-strong); stroke-linecap: round; stroke-linejoin: round; }
.map-road-motorway  { stroke-width: .7;  opacity: .55; }
.map-road-trunk     { stroke-width: .55; opacity: .38; }
.map-road-primary   { stroke-width: .45; opacity: .28; }
.map-road-secondary { stroke-width: .35; opacity: .2;  }
.map-label { font-family: var(--font-mono); font-size: 7px; fill: var(--color-text-subtle); letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.map-label.is-accent { fill: var(--color-accent); }
.map-pin { fill: var(--color-accent); opacity: .9; }
.map-pin-halo { fill: none; stroke: var(--color-accent); stroke-width: 1; opacity: .35; }
.map-hq { fill: var(--color-accent); stroke: var(--color-bg); stroke-width: 2; }
.map-crosshair { stroke: var(--color-accent); stroke-width: 1; opacity: .85; }
.map-scale { stroke: var(--color-text-subtle); stroke-width: 1; opacity: .7; }
.map-radius { fill: none; stroke: var(--color-accent); stroke-width: 1; stroke-dasharray: 4 3; opacity: .45; }
.map-radius-inner { fill: none; stroke: var(--color-accent); stroke-width: .6; opacity: .22; }

.base-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.base-row {
  display: grid;
  grid-template-columns: 54px 1fr 72px;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px dashed var(--color-line);
}
.base-row:last-child { border-bottom: 0; }
.base-row-head {
  background: var(--color-surface-2);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  border-bottom: 1px solid var(--color-line-strong);
}
.base-code { color: var(--color-accent); letter-spacing: .14em; }
.base-name { color: var(--color-text); letter-spacing: .04em; }
.base-range { color: var(--color-text-subtle); text-align: right; letter-spacing: .1em; font-size: .78rem; }

@media (max-width: 960px) {
  .service-area-grid { grid-template-columns: 1fr; }
  .service-map { aspect-ratio: 16 / 9; }
}

/* ====== WIRE COLOR CODE STRIP ====== */
.wire-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  padding: 10px 0;
  justify-content: center;
}
.wire-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-right: 1px dashed var(--color-line);
}
.wire-chip:last-child { border-right: 0; }
.wire-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--chip, #888);
  border: 1px solid rgba(255,255,255,.1);
  flex: 0 0 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

/* ====== SCHEMATIC INLINE DIVIDERS (resistor, capacitor, inductor) ====== */
.schem-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--space-lg) 0;
  color: var(--color-accent);
  opacity: .55;
}
.schem-divider::before,
.schem-divider::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--color-line-strong);
}
.schem-divider svg {
  height: 24px;
  width: auto;
  color: inherit;
}
.schem-divider-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* ====== CABLE CROSS-SECTION (tiny decorative diagram) ====== */
.cable-xs {
  width: 56px;
  height: 56px;
  color: var(--color-accent);
}
.cable-xs svg { width: 100%; height: 100%; display: block; }
.cable-xs .cable-layer {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: .8;
}
.cable-xs .cable-conductor { fill: currentColor; opacity: .9; }
.cable-xs-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* ====== CONNECTOR FACE ILLUSTRATIONS (services page) ====== */
.connector-face {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 11 / 9;
  padding: 18px;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  position: relative;
  color: var(--color-accent);
  margin-top: 8px;
}
.connector-face::before,
.connector-face::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: .7;
}
.connector-face::before {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}
.connector-face::after {
  bottom: 6px;
  right: 6px;
  border-width: 0 1px 1px 0;
}
.connector-face svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cf-shell  { fill: none; stroke: currentColor; stroke-width: 1; }
.cf-line   { fill: none; stroke: currentColor; stroke-width: 1; }
.cf-line-thin { fill: none; stroke: currentColor; stroke-width: .6; opacity: .55; }
.cf-pin    { fill: currentColor; }
.cf-label  {
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 1.2px;
  fill: var(--color-text-subtle);
  text-transform: uppercase;
}

/* ====== SPEC LIST (datasheet-style rows) ====== */
.spec-list {
  margin: 4px 0 0;
  display: grid;
  gap: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  border-top: 1px dashed var(--color-line);
}
.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-line);
}
.spec-key {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--color-text-subtle);
}
.spec-val {
  color: var(--color-text);
  letter-spacing: .06em;
}
.spec-val .hl { color: var(--color-accent); }

.service-block-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ====== BENCH LOG (test-record printout) ====== */
.bench-log {
  font-family: var(--font-mono);
  font-size: .82rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}
.bench-row {
  display: grid;
  grid-template-columns: 1.3fr .8fr .7fr .5fr .7fr 1fr;
  gap: var(--space-md);
  padding: 14px 20px;
  border-bottom: 1px dashed var(--color-line);
  letter-spacing: .06em;
  color: var(--color-text-muted);
  align-items: center;
}
.bench-row:last-child { border-bottom: 0; }
.bench-row-head {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--color-text-subtle);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-line-strong);
  padding-top: 10px;
  padding-bottom: 10px;
}
.bench-sn {
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: .08em;
}
.bench-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}
.bench-status.pass { color: var(--color-accent); }
.bench-status.pass::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(201,162,101,.7);
  flex: 0 0 6px;
}
.bench-date {
  color: var(--color-text-subtle);
  font-size: .78rem;
}
@media (max-width: 900px) {
  .bench-row-head { display: none; }
  .bench-row {
    grid-template-columns: 1fr 1fr;
    font-size: .75rem;
    padding: 12px 16px;
    gap: 8px;
  }
  .bench-sn { grid-column: span 2; font-size: .85rem; }
  .bench-status { grid-column: span 2; justify-content: flex-start; }
}

/* ====== INSPECTION STAMP ====== */
.inspection-stamp {
  width: 160px;
  height: 160px;
  position: relative;
  color: var(--color-accent);
  flex: 0 0 160px;
}
.inspection-stamp svg { width: 100%; height: 100%; display: block; }
.stamp-frame circle { stroke: currentColor; fill: none; }
.stamp-rotor {
  transform-origin: 80px 80px;
  animation: stamp-rotate 42s linear infinite;
}
.stamp-ring-text {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: currentColor;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.stamp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  fill: currentColor;
  letter-spacing: 2.4px;
}
.stamp-subtitle {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--color-text-muted);
  letter-spacing: 2px;
}
@keyframes stamp-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .stamp-rotor { animation: none; }
}

/* ====== PIN-OUT DIAGRAMS (inside service cards) ====== */
.pinout {
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 14px;
  color: var(--color-accent);
  opacity: .65;
  transition: opacity .2s ease, color .2s ease;
}
.pinout .pinout-body {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.pinout .pinout-pin {
  fill: currentColor;
}
.card:hover .pinout { opacity: 1; }

/* ====== SCROLL PROGRESS BAR ====== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--color-accent) 30%, var(--color-accent-hover) 70%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: .85;
  will-change: transform;
}

/* ====== SCHEMATIC (engineering drawing, left gutter) ======
   A miniature wiring-harness schematic fixed in the left gutter:
   top connector -> wire with right-angle bends -> junction dots (J.01 ... J.04)
   -> ground symbol. Main wire draws in as you scroll. Junctions light up
   when their scroll checkpoint is reached. Hidden below 1200px. */

.schematic {
  position: fixed;
  left: 12px;
  top: 96px;
  width: 112px;
  height: calc(100vh - 120px);
  z-index: 10;
  pointer-events: none;
}
.schematic svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.schem-connector {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: .85;
}
.schem-connector-pin {
  fill: var(--color-accent);
  opacity: .85;
}
.schem-wire-bg {
  fill: none;
  stroke: var(--color-line-strong);
  stroke-width: 1;
  opacity: .4;
}
.schem-wire {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
  will-change: stroke-dashoffset;
}
.schem-junction {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: .7;
  transition: fill 400ms ease, opacity 400ms ease;
}
.schem-junction.is-active {
  fill: var(--color-accent);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(201,162,101,.55));
}
.schem-ground line {
  stroke: var(--color-accent);
  stroke-linecap: round;
  opacity: .75;
}
.schem-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--color-text-subtle);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .75;
}
.schem-label.is-accent { fill: var(--color-accent); opacity: .85; }

@media (max-width: 1200px) {
  .schematic { display: none; }
}

/* ====== Side-rail wire loom ======
   Parallel-strand harness detail rendered on the left edge. All elements
   share the brass palette; monochrome by design (the loom is a blueprint,
   not a Christmas tree). Animation is driven from JS via the .is-hidden
   utility so each feature can be revealed with its own transition. */

.loom-connector { color: var(--color-accent); }
.loom-conn-shell { fill: none; stroke: currentColor; stroke-width: .8; opacity: .85; }
.loom-conn-face  { fill: none; stroke: currentColor; stroke-width: .55; opacity: .55; }
.loom-conn-pin   { fill: currentColor; opacity: .9; }

.loom-strand {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

.loom-tick line { stroke: var(--color-accent); opacity: .75; }

.loom-sleeve line {
  stroke: var(--color-accent);
  stroke-width: .45;
  opacity: .35;
}
.loom-sleeve-edge {
  stroke: var(--color-accent);
  stroke-width: .6;
  opacity: .5;
}

.loom-shrink rect {
  fill: var(--color-accent);
  fill-opacity: .14;
  stroke: var(--color-accent);
  stroke-width: .5;
  opacity: .85;
}

.loom-breakout .loom-strand { stroke-width: 1; opacity: .78; }
.loom-hop {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: .8;
  opacity: .75;
}

.loom-fanout .loom-strand { stroke-width: 1; }
.loom-term-body {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: .9;
  opacity: .85;
}
.loom-term-hole {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: .5;
  opacity: .9;
}
.loom-rail {
  stroke: var(--color-accent);
  stroke-width: .6;
  stroke-dasharray: 2 2;
  opacity: .5;
}

.loom-ground line {
  stroke: var(--color-accent);
  stroke-linecap: round;
  opacity: .8;
}

.loom-pulse {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 2px rgba(201,162,101,.85));
  transition: opacity 120ms ease;
}

.loom-label {
  font-family: var(--font-mono);
  font-size: 5px;
  fill: var(--color-text-subtle);
  letter-spacing: .9px;
  text-transform: uppercase;
  opacity: .6;
}
.loom-label.is-accent { fill: var(--color-accent); opacity: .82; }

/* Scroll-driven assembly: strands control their own draw state via
   inline stroke-dashoffset (no CSS transition — it must track the scroll
   wheel instantly). Non-strand features fade via .is-hidden. */
.schematic .is-hidden { opacity: 0; }
.schematic .loom-tick,
.schematic .loom-sleeve line,
.schematic .loom-sleeve-edge,
.schematic .loom-shrink rect,
.schematic .loom-breakout,
.schematic .loom-hop,
.schematic .loom-fanout line,
.schematic .loom-fanout circle,
.schematic .loom-ground line {
  transition: opacity 400ms ease;
}

/* ====== FILM GRAIN OVERLAY ====== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0; }
}

/* ====== ENGINEERING DRAWING FLOURISHES ======
   Dashed section separators + blueprint corner marks. Precision nods. */

.dashed-rule {
  border: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-line-strong) 0 6px,
    transparent 6px 12px
  );
  margin: var(--space-lg) 0;
}

.dashed-rule-short {
  width: 48px;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0 4px,
    transparent 4px 8px
  );
  display: block;
  margin-bottom: 14px;
}

.pinned-corner-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.pinned-corner-marks > span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: .75;
}
.pinned-corner-marks > span:nth-child(1) { top: 10px;    left: 10px;    border-width: 1px 0 0 1px; }
.pinned-corner-marks > span:nth-child(2) { top: 10px;    right: 10px;   border-width: 1px 1px 0 0; }
.pinned-corner-marks > span:nth-child(3) { bottom: 10px; left: 10px;    border-width: 0 0 1px 1px; }
.pinned-corner-marks > span:nth-child(4) { bottom: 10px; right: 10px;   border-width: 0 1px 1px 0; }

/* ====== PINNED SECTION (sticky image, scrolling steps) ====== */
.pinned-section { padding-top: var(--space-xl); }

.pinned-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
}
.pinned-image-col {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 16px;
}
.pinned-image-stack {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.pinned-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1);
}
.pinned-image.is-active { opacity: 1; }

.pinned-step-indicator {
  display: flex;
  gap: 6px;
  align-items: baseline;
  justify-content: flex-start;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.pinned-step-indicator .pinned-step-index {
  color: var(--color-accent);
  font-weight: 500;
}

.pinned-content-col {
  display: grid;
  gap: 0;
}
.pinned-step {
  min-height: 68vh;
  display: grid;
  align-content: center;
  gap: 14px;
  border-top: 1px dashed var(--color-line-strong);
  padding: var(--space-lg) 0;
}
.pinned-step:first-child {
  border-top: 0;
  padding-top: 0;
}
.pinned-step h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.018em;
  font-weight: 800;
}
.pinned-step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

@media (max-width: 960px) {
  .pinned-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .pinned-image-col {
    position: static;
    max-width: 440px;
    margin: 0 auto;
  }
  .pinned-step {
    min-height: auto;
  }
}

/* ====== HERO AURORA + CURSOR GLOW ====== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-xl) + 32px) 0 var(--space-xl);
}
.hero > .container { position: relative; z-index: 2; }

.hero-aurora {
  position: absolute;
  inset: -20% -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 18% 26%, rgba(201,162,101,.09), transparent 62%),
    radial-gradient(46% 42% at 82% 72%, rgba(201,162,101,.06), transparent 62%);
  filter: blur(14px);
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(-2%, 1%, 0) rotate(0deg); }
  50%  { transform: translate3d(2%, -2%, 0) rotate(.5deg); }
  100% { transform: translate3d(-1%, 2%, 0) rotate(-.4deg); }
}

/* Faint grid overlay on hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 50% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 40%, #000 30%, transparent 80%);
}

/* ====== MARQUEE TICKER ====== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%); width: 200px; }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--color-bg) 0%, transparent 100%); width: 200px; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .82rem;
  white-space: nowrap;
}
.marquee-track span { padding: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-25%, 0, 0); }
}

/* ====== STATS COUNTERS ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}
.stat {
  text-align: center;
  display: grid;
  gap: 10px;
  align-content: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-suffix {
  font-size: .72em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

/* ====== SCROLL REVEAL ======
   Elements start hidden + offset; JS adds .is-visible when they enter view.
   Hidden state is gated on .js-ready on <html> so users without JS still see content.
   Grids get a staggered child reveal.
   prefers-reduced-motion kills all of it. */

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms cubic-bezier(.2,.8,.2,1),
    transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Feature images: subtle scale-in on top of the fade/rise */
html.js-ready .feature-image.reveal {
  transform: translateY(32px) scale(.985);
}
html.js-ready .feature-image.reveal.is-visible {
  transform: none;
}

/* Stagger children of a reveal-group */
html.js-ready .reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms cubic-bezier(.2,.8,.2,1),
    transform 650ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
html.js-ready .reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}
html.js-ready .reveal-group.is-visible > :nth-child(1) { transition-delay:   0ms; }
html.js-ready .reveal-group.is-visible > :nth-child(2) { transition-delay:  90ms; }
html.js-ready .reveal-group.is-visible > :nth-child(3) { transition-delay: 180ms; }
html.js-ready .reveal-group.is-visible > :nth-child(4) { transition-delay: 270ms; }
html.js-ready .reveal-group.is-visible > :nth-child(5) { transition-delay: 360ms; }
html.js-ready .reveal-group.is-visible > :nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal,
  html.js-ready .feature-image.reveal,
  html.js-ready .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ====== FEATURE IMAGES ====== */
.feature-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

/* Blueprint L-brackets at the four corners */
.corner-marks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.corner-marks > span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: .85;
}
.corner-marks > span:nth-child(1) { top: 12px;    left: 12px;    border-width: 1px 0 0 1px; }
.corner-marks > span:nth-child(2) { top: 12px;    right: 12px;   border-width: 1px 1px 0 0; }
.corner-marks > span:nth-child(3) { bottom: 12px; left: 12px;    border-width: 0 0 1px 1px; }
.corner-marks > span:nth-child(4) { bottom: 12px; right: 12px;   border-width: 0 1px 1px 0; }

/* Scan-line sweep on viewport entry */
.scan-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,162,101,.2) 35%,
    rgba(201,162,101,.35) 50%,
    rgba(201,162,101,.2) 65%,
    transparent 100%
  );
  transform: translateX(-200%);
  opacity: 0;
}
html.js-ready .feature-image.is-visible .scan-sweep {
  animation: scan-sweep 1.8s cubic-bezier(.2,.8,.2,1) 0.25s both;
}
@keyframes scan-sweep {
  0%   { transform: translateX(-200%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

/* Figure caption (monospace blueprint-style) */
.figure-caption {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-line-strong);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--color-text-subtle);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.figure-caption .fig-code {
  color: var(--color-accent);
  letter-spacing: .24em;
}
.figure-caption .fig-desc {
  opacity: .78;
}
.figure-caption .fig-meta {
  margin-left: auto;
  opacity: .55;
  font-size: .68rem;
}

/* Wrapper for figure + caption (so reveal applies to the pair) */
.feature-figure {
  margin: 0;
}
.feature-figure .feature-image { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html.js-ready .feature-image.is-visible .scan-sweep { animation: none; }
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-image.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.feature-image.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.image-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ====== UTILITY ====== */
.hidden {
  display: none !important;
}

.stack-gap > * + * {
  margin-top: var(--space-md);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .image-band {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero-photo {
    order: -1;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  .about-photo {
    order: -1;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .service-block-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-open .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    z-index: 60;
    padding: var(--space-xl) var(--gutter);
  }

  .nav-open .site-nav a {
    font-size: 1.35rem;
    color: var(--color-text);
  }

  .nav-open .nav-toggle {
    position: fixed;
    top: var(--space-sm);
    right: var(--gutter);
    z-index: 70;
  }

  .nav-open {
    overflow: hidden;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }
}
