/* ============================================================
   JB Diagnostics & Programming — spec preview
   Dark technical editorial. Red + graphite. Grotesque + mono.
   ============================================================ */

:root {
  /* palette */
  --bg:        #0A0A0C;
  --ink:       #0E0E10;
  --surface:   #141419;
  --surface-2: #1B1B22;
  --line:      rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);

  --red:       #E11B22;
  --red-bright:#FF2E36;
  --red-deep:  #B4141A;

  --paper:     #F3F4F6;
  --paper-2:   #E7E9ED;
  --ink-text:  #16161A;
  --ink-muted: #55555F;

  --text:      #ECECEF;
  --muted:     #9C9CA6;
  --steel:     #C8CDD4;

  /* type */
  --sans: "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", "Roboto Mono", monospace;

  --step--1: clamp(.78rem, .74rem + .18vw, .86rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.35rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4:  clamp(2.7rem, 1.8rem + 4.4vw, 5.4rem);

  /* space */
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --sec-y:  clamp(3.5rem, 7vw, 7rem);
  --maxw: 1240px;

  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- shared type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.15rem;
}
.kicker-ink { color: var(--red-deep); }
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(225,27,34,.18);
  flex: none;
}

.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--steel);
  max-width: 46ch;
}
.body { color: var(--muted); max-width: 58ch; }
.section-light .body { color: var(--ink-muted); }
.section-light .lede { color: #2C2C34; }

/* ---------- buttons ---------- */
.btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -.01em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(225,27,34,.7);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255,255,255,.28); color: var(--text);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-ghost { padding: .55rem 1rem; border: 1px solid var(--line); color: var(--text); font-size: var(--step--1); }
.btn-ghost:hover { border-color: var(--red); }
.section-light .btn-outline { border-color: rgba(0,0,0,.25); color: var(--ink-text); }
.section-light .btn-outline:hover { border-color: var(--ink-text); background: rgba(0,0,0,.04); }
.btn-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 3px rgba(225,27,34,.22);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  font-family: var(--sans);
  font-weight: 800;
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  background: var(--red);
  padding: .28em .34em .24em;
  border-radius: 8px;
}
.brand-word {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  gap: .18em;
}
.brand-line-1 { color: #fff; font-weight: 700; letter-spacing: .2em; }

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
  position: relative;
  padding: .3rem 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { flex: none; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: min(92vh, 820px);
  padding-block: clamp(6rem, 12vw, 9rem) var(--sec-y);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
  filter: grayscale(1) contrast(1.22) brightness(.66);
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,12,.58) 0%, rgba(10,10,12,.34) 34%, rgba(10,10,12,.82) 78%, rgba(10,10,12,.98) 100%),
    linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.34) 55%, rgba(10,10,12,0) 100%),
    radial-gradient(120% 90% at 88% 12%, rgba(225,27,34,.34) 0%, rgba(225,27,34,0) 55%);
}
/* technical grid overlay — reads as a diagnostic instrument HUD */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 100% at 78% 20%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 100% at 78% 20%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; max-width: 940px; min-width: 0; }
/* HUD corner brackets framing the hero content */
.hero-frame { position: absolute; z-index: 1; width: 34px; height: 34px; pointer-events: none; opacity: .55; }
.hero-frame::before, .hero-frame::after {
  content: ""; position: absolute; background: rgba(255,255,255,.6);
}
.hero-frame::before { width: 34px; height: 2px; }
.hero-frame::after { width: 2px; height: 34px; }
.hero-frame.tl { top: clamp(5.4rem, 11vw, 8rem); left: var(--gutter); }
.hero-frame.tl::before { top: 0; left: 0; }
.hero-frame.tl::after { top: 0; left: 0; }
.hero-frame.br { bottom: clamp(2rem, 4vw, 3rem); right: var(--gutter); }
.hero-frame.br::before { bottom: 0; right: 0; }
.hero-frame.br::after { bottom: 0; right: 0; }
@media (max-width: 640px) { .hero-frame { display: none; } }
.hero-title {
  font-weight: 800;
  font-size: var(--step-4);
  line-height: .98;
  letter-spacing: -.03em;
  margin: .3rem 0 1.5rem;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 2px 34px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.35);
}
.hero-title .ln-break { display: inline; }
.hero-sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--steel);
  max-width: 54ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: 2rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.stat { position: relative; padding-left: 1.1rem; }
.stat::before {
  content: ""; position: absolute; left: 0; top: .15rem; bottom: .15rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--red-bright), rgba(225,27,34,.15));
}
.stat dt {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.stat dd {
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -.02em;
}

/* ============================================================
   CREDENTIAL MARQUEE
   ============================================================ */
.creds {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid rgba(0,0,0,.15);
  padding-block: 1.05rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.creds-track {
  display: flex; width: max-content;
  animation: marquee 34s linear infinite;
}
.creds:hover .creds-track { animation-play-state: paused; }
.creds-list {
  display: flex; align-items: center; gap: 2.2rem;
  padding-inline: 1.1rem;
  list-style: none;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
}
.creds-list .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.7);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .creds-track { animation: none; flex-wrap: wrap; width: auto; }
  .creds-list:nth-child(2) { display: none; }
  .creds-list { flex-wrap: wrap; }
}

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.section-light {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(225,27,34,.04) 0%, rgba(225,27,34,0) 42%),
    linear-gradient(180deg, #F5F6F8 0%, #E9EBEF 100%);
  color: var(--ink-text);
}
.section-light .section-title { color: var(--ink-text); }
.section-light .kicker { color: var(--red-deep); }

.about, .services, .capabilities, .serve, .contact { padding-block: var(--sec-y); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.section-intro { color: var(--muted); margin-top: 1.1rem; max-width: 56ch; }
.section-light .section-intro { color: var(--ink-muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
}
/* registration ticks — makes the portrait feel framed, not dropped in */
.about-media::before, .about-media::after {
  content: ""; position: absolute; width: 22px; height: 22px; z-index: 2;
  border: 2px solid var(--red); pointer-events: none;
}
.about-media::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.about-media::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }
.about-badge {
  position: absolute; right: clamp(-.5rem, -1vw, -1.5rem); bottom: clamp(1rem, 3vw, 2rem);
  background: var(--ink); color: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px -20px rgba(0,0,0,.5);
  display: grid; gap: .1rem;
  max-width: 62%;
}
.about-badge-num { font-weight: 800; font-size: var(--step-1); color: var(--red-bright); letter-spacing: -.02em; }
.about-badge-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

.about-copy .section-title { margin-block: .2rem 1.3rem; }
.about-copy .body { margin-top: 1.1rem; }

.pillars { list-style: none; margin-top: 2rem; display: grid; gap: .2rem; }
.pillars li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0,0,0,.12);
}
.pillars li:last-child { border-bottom: 1px solid rgba(0,0,0,.12); }
.pillar-k { font-family: var(--mono); font-size: var(--step--1); color: var(--red); font-weight: 700; flex: none; }
.pillar-t { font-weight: 600; color: var(--ink-text); }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background-color .4s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--red);
  transition: width .5s var(--ease);
}
.svc-card:hover { border-color: rgba(255,255,255,.24); transform: translateY(-4px); background: var(--surface-2); }
.svc-card:hover::before { width: 100%; }

.svc-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.svc-feature-media { position: relative; overflow: hidden; min-height: 260px; }
.svc-feature-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  transition: transform .8s var(--ease);
}
.svc-feature:hover .svc-feature-media img { transform: scale(1.05); }
.svc-feature-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,10,12,0) 55%, rgba(20,20,25,.95) 100%),
              linear-gradient(0deg, rgba(225,27,34,.14), rgba(225,27,34,.14));
  mix-blend-mode: normal;
}
.svc-fig {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
  background: rgba(10,10,12,.55); border: 1px solid rgba(255,255,255,.16);
  padding: .34rem .6rem; border-radius: 6px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.svc-feature-body { padding: clamp(1.8rem, 3.4vw, 3rem); align-self: center; }

.svc-index {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .14em;
  color: var(--red);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}
.svc-title {
  font-weight: 800; font-size: var(--step-2); letter-spacing: -.02em;
  line-height: 1.12; margin-bottom: .85rem;
}
.svc-text { color: var(--muted); }
.svc-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.4rem;
}
.svc-tags li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .38rem .8rem;
}

/* ============================================================
   CAPABILITIES / SPEC SHEET
   ============================================================ */
.capabilities {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(225,27,34,.10) 0%, rgba(225,27,34,0) 46%),
    var(--ink);
  border-block: 1px solid var(--line-soft);
}
/* faint oscilloscope trace running under the spec sheet */
.capabilities::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: -1;
  background: no-repeat center bottom / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='130' viewBox='0 0 1200 130' preserveAspectRatio='none'%3E%3Cpath d='M0 90 L210 90 L236 90 L252 34 L268 118 L286 90 L470 90 L492 60 L512 96 L532 90 L520 90 L740 90 L764 30 L778 120 L798 90 L980 90 L1002 62 L1020 100 L1040 90 L1200 90' fill='none' stroke='%23E11B22' stroke-width='2' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.cap-copy .body { margin-block: 1.2rem 2rem; }
.spec-list { list-style: none; display: grid; gap: 0; }
.spec-list li {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left .35s var(--ease), color .35s var(--ease);
}
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.spec-list li:hover { padding-left: .6rem; }
.spec-num {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--red); font-weight: 700; flex: none;
}
.spec-name { font-weight: 600; font-size: var(--step-1); letter-spacing: -.01em; }

/* ============================================================
   WHO WE SERVE
   ============================================================ */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.serve-card {
  background: #fff;
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.serve-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0,0,0,.28); }
.serve-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.serve-card h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; color: var(--ink-text); }
.serve-card p { color: var(--ink-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(225,27,34,.12) 0%, rgba(225,27,34,0) 50%),
    var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.contact-copy .section-title { margin-block: .2rem 1.2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  display: grid; gap: .45rem;
  transition: border-color .35s var(--ease);
}
.info-card:hover { border-color: rgba(255,255,255,.24); }
.info-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.info-v { font-weight: 600; color: var(--text); line-height: 1.4; }
.info-v-mail { word-break: break-word; font-size: var(--step--1); }
a.info-v { transition: color .25s var(--ease); }
a.info-v:hover { color: var(--red-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.brand-mark-lg { font-size: 2.4rem; display: inline-block; }
.footer-tag { color: var(--muted); margin-top: 1.1rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.footer-col { display: grid; gap: .6rem; align-content: start; }
.footer-h {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--steel); margin-bottom: .35rem;
}
.footer-col a, .footer-plain { color: var(--muted); font-size: var(--step--1); }
.footer-col a { transition: color .25s var(--ease); width: fit-content; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}

/* spec footer (mandatory) */
.spec-footer {
  background: #050506;
  color: #6f6f78;
  text-align: center;
  font-size: .82rem;
  line-height: 1.6;
  padding: 1.6rem var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.spec-footer a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
.spec-footer a:hover { color: #fff; }

/* ============================================================
   REVEAL ANIMATION (progressive enhancement)
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-media img { transform: none; }
  .btn, .svc-card, .serve-card { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature-media { min-height: 240px; }
  .cap-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* forced line breaks would overflow a phone; let the headline wrap naturally */
  .hero-title .ln-break { display: none; }
  .hero-title {
    font-size: clamp(2.1rem, 1.05rem + 6vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -.02em;
  }
  .hero-sub { font-size: var(--step-0); }
}

@media (max-width: 560px) {
  .hero { min-height: auto; }
  .header-inner { gap: .6rem; min-height: 62px; }
  /* keep the phone number readable and un-clipped on small screens */
  .header-cta { font-size: .78rem; padding: .5rem .8rem; gap: .45rem; }
  .brand-word { display: none; }
  .hero-inner { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-stats { gap: 1.4rem 1.8rem; }
  .stat { min-width: 40%; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; justify-content: center; }
  .header-cta { width: auto; }
  .footer-base { flex-direction: column; }
}
