/* ==========================================================================
   JL Earthworks & Design LLC — Production Design System
   v3.0 / English-only, Tulsa-area focused, real photography
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #1A1A1A;
  --ink-2: #232323;
  --ink-3: #2E2E2E;

  --yellow: #F5A623;          /* brand accent — backgrounds, hover on dark */
  --yellow-dark: #E0941A;     /* hover/active state */
  --yellow-soft: #FFF4DC;     /* soft tint backgrounds */
  --amber-text: #A06912;      /* AA-compliant deep amber for text on light bgs (4.64:1) */
  --orange: #F47C2A;
  --red-flame: #E63E1E;

  --steel: #5C6773;
  --steel-soft: #E8ECEF;
  --panel: #F6F2EE;
  --warm-panel: #FAF4ED;
  --white: #FFFFFF;
  --rule: #D8D5D0;

  /* Modern corporate type stack — Fraunces (display) pairs with Inter (body).
     Fraunces is a variable serif with optical size; reads as established but modern.
     Inter Tight gives body a more confident, slightly condensed feel. */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1280px;
  --gutter: 24px;
  --radius-card: 14px;
  --radius-btn: 8px;
  --radius-img: 12px;

  --section-pad: 96px;
  --section-pad-md: 72px;
  --section-pad-sm: 48px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(26,26,26,0.10);
  --shadow-lg: 0 24px 48px rgba(26,26,26,0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 116px;
}

@media (max-width: 960px) {
  :root {
    --section-pad: 64px;
    --section-pad-md: 48px;
    --section-pad-sm: 32px;
    --gutter: 18px;
    --header-h: 64px;
  }
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 12px 20px; z-index: 9999;
  border-radius: 0 0 6px 0; font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Focus visibility — WCAG 2.1 AA ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
.nav a:focus-visible, .has-sub .submenu a:focus-visible, .mobile-menu a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}
.proj-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
/* Form fields already have their own focus state (border + shadow) */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .4em;
  letter-spacing: -0.02em;
  line-height: 1.08;
  /* Fraunces optical size for large display */
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h1 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 600;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-weight: 600;
}
h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-weight: 600;
}
h4 {
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 600;
}
p { margin: 0 0 1em; }
.lead {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  /* Ink on light backgrounds for WCAG AA contrast. Brand yellow accent on the rule only. */
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px;
  background: var(--yellow); transform: translateY(-50%);
}
.eyebrow.no-rule { padding-left: 0; }
.eyebrow.no-rule::before { display: none; }
/* On dark backgrounds, eyebrow text is WHITE for maximum readability over photos.
   The yellow accent is reserved for the small rule only. Footer keeps yellow eyebrow on solid ink. */
.hero .eyebrow {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 4px rgba(0,0,0,0.5);
}
.bg-ink .eyebrow,
.dark-cta .eyebrow,
.site-footer .eyebrow { color: var(--yellow); }


/* ---------- 4. Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--section-pad) 0; }
section.tight { padding: var(--section-pad-md) 0; }
section.snug { padding: var(--section-pad-sm) 0; }
.bg-panel { background: var(--panel); }
.bg-steel-soft { background: var(--steel-soft); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--white); }
.bg-red, .bg-yellow { background: var(--yellow); color: var(--white); }
.bg-yellow-soft { background: var(--yellow-soft); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 700px) and (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-48 { gap: 48px; }

.center { text-align: center; }
.mw-680 { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.bar-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); max-width: var(--container); margin: 0 auto;
  color: var(--ink);
}
.bar-top .logo-wrap {
  display: flex; align-items: center; gap: 14px;
  flex: 0 0 auto;
}
.bar-top .logo-wrap img { height: 66px; width: auto; display: block; }
.bar-top .right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.phone-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; letter-spacing: 0.04em;
  color: var(--ink); text-transform: uppercase;
  transition: color .2s var(--ease);
}
.phone-link:hover { color: var(--yellow-dark); }
.phone-link .ring-icon { display: inline-block; transition: transform .25s var(--ease); }
.phone-link:hover .ring-icon { animation: ring 0.6s ease; }
@keyframes ring {
  0% { transform: rotate(0); }
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

.bar-bottom {
  background: var(--ink);
  color: var(--white);
}
.nav {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
}
.nav ul {
  display: flex; gap: 32px; list-style: none; padding: 0; margin: 0;
  align-items: center;
}
.nav a {
  display: inline-block; padding: 16px 0; position: relative;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.1em;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 12px; height: 2px; width: 0;
  background: var(--yellow); transition: width .25s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--yellow); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .nav ul { gap: 22px; }
  .nav a { font-size: 12px; padding: 14px 0; }
}
@media (max-width: 960px) {
  .bar-top { padding: 10px var(--gutter); gap: 10px; }
  .bar-top .logo-wrap img { height: 48px; }
  .bar-top .right { gap: 8px; }
  .bar-top .right .phone-link span.label { display: none; }
  .bar-top .right .btn-sm { display: none; }
  .nav ul { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--white);
  }
  .bar-bottom { display: none; }
  .mobile-menu {
    position: fixed; inset: 0; background: var(--ink); color: var(--white);
    z-index: 999; padding: 80px 24px 80px; transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); display: block; }
  .mobile-menu nav a {
    display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--white); font-family: var(--font-display); font-size: 22px; letter-spacing: 0.04em;
  }
  .mobile-menu .close-btn {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; color: var(--white); font-size: 28px;
  }
  .mobile-menu .mm-cta { margin-top: 24px; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em;
  transition: all .18s var(--ease);
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); box-shadow: 0 8px 18px rgba(245,166,35,0.30); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-page { min-height: 56vh; }
.hero .bg-layer {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
/* Stronger, darker overlay so text is always readable, regardless of photo brightness */
.hero .bg-layer::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.65) 0%, rgba(26,26,26,0.55) 30%, rgba(26,26,26,0.92) 100%),
    linear-gradient(90deg, rgba(26,26,26,0.60) 0%, rgba(26,26,26,0.20) 60%);
  z-index: -1;
}
.hero .container { position: relative; padding-top: 112px; padding-bottom: 72px; width: 100%; }

/* Hero typography — every piece readable on any photo */
.hero h1 { color: var(--white); max-width: 22ch; text-shadow: 0 2px 30px rgba(0,0,0,0.45); }
.hero p.lead { color: var(--white); max-width: 58ch; margin-top: 16px; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,0.55); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Eyebrow on dark hero: bolder, larger, with yellow rule + white label — high contrast */
.hero .eyebrow {
  font-size: 16px;
  letter-spacing: 0.28em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
  padding-left: 68px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.80), 0 0 2px rgba(0,0,0,0.4);
}
.hero .eyebrow::before {
  width: 52px; height: 4px;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}
.hero .eyebrow.no-rule { padding-left: 0; }
.hero .eyebrow.no-rule::before { display: none; }

.hero .corner-tag {
  position: absolute; top: 28px; right: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--white);
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 14px; background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.hero .corner-tag .dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(245,166,35,0.30); animation: pulse 2.4s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,166,35,0.20); }
  50% { box-shadow: 0 0 0 10px rgba(245,166,35,0); }
}

/* Stacked headline (dramatic two-word emphasis pattern) */
.hero h1.hero-stacked {
  font-size: clamp(56px, 9vw, 124px);
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 100%;
  margin-bottom: 28px;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.hero h1.hero-stacked .line {
  display: inline-block;
  color: var(--white);
}
.hero h1.hero-stacked .line.accent { color: var(--yellow); }
@media (max-width: 760px) {
  .hero h1.hero-stacked { font-size: clamp(44px, 13vw, 68px); }
}

/* Hero background images — real client photography */
.hero[data-bg="about"] .bg-layer { background-image: url('/assets/img/heroes/about-hero.jpg'); }
.hero[data-bg="services"] .bg-layer { background-image: url('/assets/img/heroes/services-hero.jpg'); }
.hero[data-bg="site-development"] .bg-layer { background-image: url('/assets/img/heroes/site-dev-hero.jpg'); }
.hero[data-bg="utilities"] .bg-layer { background-image: url('/assets/img/heroes/utilities-hero.jpg'); }
.hero[data-bg="sewer"] .bg-layer { background-image: url('/assets/img/heroes/sewer-hero.jpg'); }
.hero[data-bg="gps"] .bg-layer { background-image: url('/assets/img/heroes/gps-hero.jpg'); }
.hero[data-bg="tech"] .bg-layer { background-image: url('/assets/img/heroes/tech-hero.jpg'); }
.hero[data-bg="projects"] .bg-layer { background-image: url('/assets/img/heroes/projects-hero.jpg'); }
.hero[data-bg="safety"] .bg-layer { background-image: url('/assets/img/heroes/safety-hero.jpg'); }
.hero[data-bg="service-area"] .bg-layer { background-image: url('/assets/img/heroes/service-area-hero.jpg'); }
.hero[data-bg="faq"] .bg-layer { background-image: url('/assets/img/heroes/faq-hero.jpg'); }
.hero[data-bg="contact"] .bg-layer { background-image: url('/assets/img/heroes/contact-hero.jpg'); }
.hero[data-bg="careers"] .bg-layer { background-image: url('/assets/img/heroes/careers-hero.jpg'); }
.hero[data-bg="accessibility"] .bg-layer { background-image: url('/assets/img/heroes/accessibility-hero.jpg'); }
.hero[data-bg="privacy"] .bg-layer { background-image: url('/assets/img/heroes/privacy-hero.jpg'); }
.hero[data-bg="terms"] .bg-layer { background-image: url('/assets/img/heroes/terms-hero.jpg'); }
.hero[data-bg="notfound"] .bg-layer { background-image: url('/assets/img/heroes/notfound-hero.jpg'); }
.hero[data-bg="thanks"] .bg-layer { background-image: url('/assets/img/heroes/thanks-hero.jpg'); }

/* ---------- 8. Two-arm scan tiles (homepage feature) ---------- */
.scan-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: -64px; position: relative; z-index: 5; box-shadow: var(--shadow-lg); border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.scan-tile {
  padding: 40px 32px; background: var(--white);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: background .25s var(--ease);
}
.scan-tile + .scan-tile { border-left: 1px solid var(--steel-soft); }
.scan-tile:hover { background: var(--panel); }
.scan-tile .tag { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--amber-text); text-transform: uppercase; }
.scan-tile h3 { margin-bottom: 6px; }
.scan-tile p { color: var(--steel); margin: 0; font-size: 15px; }
.scan-tile .more { margin-top: 14px; padding-top: 12px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.scan-tile .more::after { content: "→"; transition: transform .25s var(--ease); display: inline-block; }
.scan-tile:hover .more::after { transform: translateX(4px); }
@media (max-width: 960px) {
  .scan-tiles { grid-template-columns: 1fr; margin-top: -32px; }
  .scan-tile + .scan-tile { border-left: 0; border-top: 1px solid var(--steel-soft); }
  .scan-tile { padding: 28px 22px; }
}

/* ---------- 9. Trust strip ---------- */
.trust-strip {
  background: var(--ink); color: var(--yellow);
  padding: 22px var(--gutter);
}
.trust-strip ul {
  display: flex; flex-wrap: wrap; gap: 0; justify-content: center; align-items: center;
  list-style: none; padding: 0; margin: 0; max-width: var(--container); margin-left: auto; margin-right: auto;
}
.trust-strip li {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em;
  padding: 6px 28px; position: relative; text-transform: uppercase;
}
.trust-strip li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--yellow); opacity: .55;
}
@media (max-width: 760px) {
  .trust-strip li { padding: 6px 12px; font-size: 11px; }
  .trust-strip li + li::before { display: none; }
}

/* ---------- 10. Featured project (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split.right { grid-template-columns: 1fr 1.05fr; }
.split img, .split .img-frame { border-radius: var(--radius-img); overflow: hidden; }
.split .img-frame { position: relative; aspect-ratio: 4/3; background: var(--steel-soft); }
.split .img-frame img { width: 100%; height: 100%; object-fit: cover; }
.split .img-frame .badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--yellow); color: var(--ink); padding: 6px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; border-radius: 6px;
}
.split .body { padding: 8px 0; }
@media (max-width: 960px) { .split, .split.right { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 11. Stats ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 48px 32px; background: var(--panel); border-radius: var(--radius-card); }
.stat { text-align: left; }
.stat .num {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink);
  letter-spacing: 0.02em; display: block;
}
.stat .num .yellow { color: var(--yellow); }
.stat .label { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--steel); margin-top: 10px; display: block; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 28px 18px; } }

/* ---------- 12. Service cards ---------- */
.svc-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.svc-grid > * { flex: 1 1 calc(33.333% - 16px); min-width: 280px; }
@media (max-width: 960px) { .svc-grid { gap: 16px; } .svc-grid > * { flex-basis: calc(50% - 8px); } }
@media (max-width: 600px) { .svc-grid > * { flex-basis: 100%; min-width: 0; } }

.svc-card {
  background: var(--white); border-radius: var(--radius-card); padding: 28px;
  border: 1px solid var(--steel-soft); position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column; gap: 12px; min-height: 240px;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--yellow); transition: width .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { width: 100%; }
.svc-card .ico { width: 48px; height: 48px; display: grid; place-items: center; background: var(--yellow-soft); border-radius: 10px; color: var(--ink); }
.svc-card h3 { margin: 0; font-size: 22px; }
.svc-card p { color: var(--steel); margin: 0; }
.svc-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.svc-card .more::after { content: "→"; transition: transform .25s var(--ease); }
.svc-card:hover .more::after { transform: translateX(4px); }

/* Card with photo on top */
.svc-card.photo {
  padding: 0;
  border: 1px solid var(--steel-soft);
}
.svc-card.photo .photo-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.svc-card.photo .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card.photo:hover .photo-wrap img { transform: scale(1.04); }
.svc-card.photo .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.svc-card.photo .body h3 { margin: 0; font-size: 20px; }
.svc-card.photo .body p { color: var(--steel); margin: 0; font-size: 15px; }

/* ---------- 13. CTA bands ---------- */
.cta-band {
  background: var(--yellow); color: var(--ink);
  padding: 40px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-radius: var(--radius-card);
}
.cta-band h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); }
.cta-band p { margin: 0; color: var(--ink); }
.cta-band .btn-outline { border-color: var(--ink); }

.dark-cta {
  background: var(--ink); color: var(--white); text-align: center; padding: var(--section-pad) var(--gutter);
  position: relative; overflow: hidden;
}
.dark-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(245,166,35,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,166,35,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.dark-cta h2 { font-size: clamp(34px, 5vw, 64px); color: var(--white); margin: 0 0 14px; line-height: 1.05; }
.dark-cta p { color: rgba(255,255,255,0.78); max-width: 60ch; margin: 0 auto 26px; }
.dark-cta .btn { font-size: 14px; padding: 16px 28px; }

/* ---------- 14. Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  background: var(--panel); border-radius: var(--radius-card); padding: 30px;
  position: relative; display: flex; flex-direction: column; gap: 16px;
  border-left: 4px solid var(--yellow);
}
.t-card .quote {
  font-family: var(--font-display); font-size: 80px; line-height: 0.6; color: var(--yellow);
  position: absolute; top: 20px; right: 24px; opacity: 0.55;
}
.t-card blockquote { font-style: italic; color: var(--ink); margin: 0; font-size: 15px; line-height: 1.6; }
.t-card .who { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--rule); }
.t-card .who .name { font-weight: 700; font-size: 14px; }
.t-card .who .role { color: var(--steel); font-size: 13px; }

/* ---------- 15. Project cards ---------- */
.proj-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.proj-grid > * { flex: 0 1 calc(33.333% - 13px); min-width: 280px; }
@media (max-width: 960px) { .proj-grid { gap: 14px; } .proj-grid > * { flex-basis: calc(50% - 8px); } }
@media (max-width: 600px) { .proj-grid > * { flex-basis: 100%; min-width: 0; } }

/* Project index groups (Oklahoma / New York) */
.proj-group + .proj-group { margin-top: 48px; }
.proj-group-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
.proj-group-head h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); margin: 0; letter-spacing: 0.01em; }
.proj-group-head .group-note { color: var(--steel); font-size: 14px; }

.proj-card {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  aspect-ratio: 4/5; background: var(--ink);
  cursor: pointer;
  isolation: isolate;
  display: block;
}
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0) 30%, rgba(26,26,26,0.92) 100%);
  z-index: 1;
}
.proj-card:hover img { transform: scale(1.04); }
.proj-card .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--yellow); color: var(--ink); padding: 6px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; border-radius: 6px;
}
.proj-card .meta {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: var(--white);
}
.proj-card .meta h4 { color: var(--white); margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.proj-card .meta .caption { font-size: 13px; color: rgba(255,255,255,0.78); }
.proj-card .meta .underline { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); position: relative; }
.proj-card .meta .underline::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--yellow); transition: width .25s var(--ease); }
.proj-card:hover .meta .underline::after { width: 100%; }

/* Project case study detail */
.case-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; } }
.case-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.case-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.case-meta {
  background: var(--panel); border-radius: var(--radius-card); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.case-meta dl { margin: 0; }
.case-meta dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.case-meta dd { margin: 0 0 14px; font-size: 15px; }

/* ---------- 16. Process strip ---------- */
.process { display: flex; flex-wrap: wrap; gap: 20px; counter-reset: pstep; }
.process > * { flex: 1 1 calc(25% - 15px); min-width: 200px; }
@media (max-width: 960px) { .process > * { flex-basis: calc(50% - 10px); } }
@media (max-width: 600px) { .process > * { flex-basis: 100%; min-width: 0; } }
.proc-step {
  position: relative; padding: 28px 22px; background: var(--white); border: 1px solid var(--steel-soft); border-radius: var(--radius-card);
  display: flex; flex-direction: column; gap: 10px;
}
.proc-step::before {
  counter-increment: pstep; content: "0" counter(pstep);
  font-family: var(--font-display); font-size: 56px; color: var(--yellow);
  line-height: 1; position: absolute; top: -20px; left: 18px;
  background: var(--white); padding: 0 8px;
}
.proc-step h4 { margin: 6px 0 4px; }
.proc-step p { color: var(--steel); margin: 0; font-size: 15px; }

/* ---------- 17. Timeline ---------- */
.timeline { position: relative; padding-left: 64px; }
.timeline::before {
  content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: var(--yellow);
}
.tl-item {
  position: relative; margin-bottom: 44px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -44px; top: 14px; width: 16px; height: 16px;
  background: var(--yellow); border: 4px solid var(--white); border-radius: 50%;
  box-shadow: 0 0 0 1px var(--yellow);
}
.tl-item .yr { font-family: var(--font-display); font-size: 30px; color: var(--ink); letter-spacing: 0.04em; line-height: 1; margin-bottom: 6px; }
.tl-item h4 { margin: 0 0 6px; font-size: 20px; }
.tl-item p { margin: 0; color: var(--steel); }
@media (max-width: 600px) {
  .timeline { padding-left: 36px; }
  .timeline::before { left: 14px; }
  .tl-item::before { left: -28px; }
}

/* ---------- 18. Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; position: relative; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.field label .req { color: var(--amber-text); font-weight: 700; }
.field input, .field select, .field textarea {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-btn);
  padding: 12px 14px; font-size: 16px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,166,35,0.20);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0;
  cursor: pointer; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 8px;
  transition: all .15s var(--ease);
}
.radio-group label:hover { border-color: var(--yellow); }
.radio-group input[type="radio"] { accent-color: var(--yellow); }
.radio-group input[type="radio"]:checked + span { color: var(--ink); }
.radio-group label:has(input:checked) { background: var(--yellow-soft); border-color: var(--yellow); }

/* ---------- 19. FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0; font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px); letter-spacing: 0.02em;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  cursor: pointer;
}
.faq-q .ico {
  flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.faq-item.open .faq-q .ico { background: var(--yellow); border-color: var(--yellow); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  color: var(--steel); font-size: 16px; line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a .inner { padding: 0 0 22px; }

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--white);
  padding: 64px var(--gutter) 0;
  position: relative;
}
.foot-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-grid h5 {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.18em; color: var(--yellow);
  text-transform: uppercase; margin: 0 0 16px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 5px 0; }
.foot-grid a { color: rgba(255,255,255,0.78); transition: color .15s var(--ease); font-size: 14px; }
.foot-grid a:hover { color: var(--yellow); }
.foot-grid .logo-block img { height: 64px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.foot-grid .logo-block p { color: rgba(255,255,255,0.62); font-size: 14px; max-width: 32ch; }
.foot-bottom {
  max-width: var(--container); margin: 48px auto 0;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.foot-bottom a { color: rgba(255,255,255,0.7); }

/* ---------- 21. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- 22. Misc / utilities ---------- */
.divider-yellow { width: 56px; height: 4px; background: var(--yellow); margin: 0 0 20px; border-radius: 2px; }
.kicker { color: var(--yellow); font-weight: 700; }
.section-head { display: flex; flex-direction: column; gap: 6px; max-width: 64ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.checks li {
  position: relative; padding-left: 30px;
  color: var(--ink);
}
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  background: var(--yellow); border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='4'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
ul.checks.ink li::before { background-color: var(--ink); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='4'><polyline points='5 12 10 17 19 7'/></svg>"); }

ul.checks.light li { color: var(--white); }

/* Inline mega-menu (services dropdown) */
.has-sub { position: relative; }
.has-sub > .submenu {
  position: absolute; left: -16px; top: 100%; min-width: 280px; padding: 14px;
  background: var(--white); border: 1px solid var(--steel-soft); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  list-style: none; display: grid; gap: 2px; z-index: 50;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.has-sub .submenu a {
  padding: 10px 14px; border-radius: 8px; display: block; font-size: 13px; letter-spacing: 0.06em; color: var(--ink);
}
.has-sub .submenu a:hover { background: var(--panel); color: var(--ink); }
.has-sub .submenu a::after { display: none; }

/* Equipment list */
.eq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .eq-list { grid-template-columns: 1fr; } }
.eq-row {
  display: grid; grid-template-columns: 1fr 1.4fr 1.6fr; gap: 20px; padding: 16px 14px;
  border-bottom: 1px solid var(--rule); align-items: baseline;
  font-size: 14px;
}
.eq-row .name { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em; }
.eq-row .cap { color: var(--steel); }
.eq-row .use { color: var(--ink); font-size: 13px; }
@media (max-width: 760px) {
  .eq-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}

.big-counter { font-family: var(--font-display); font-size: clamp(64px, 12vw, 180px); line-height: 0.9; color: var(--ink); letter-spacing: 0.01em; }

/* Service area map */
.area-map {
  background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'><rect width='800' height='500' fill='%231A1A1A'/><g stroke='%23F5A623' stroke-width='1' fill='none' opacity='0.30'><path d='M0,260 Q100,240 200,260 T400,250 T600,250 T800,250'/><path d='M0,160 Q200,200 400,170 T800,180'/><path d='M0,360 Q150,340 300,360 T600,350 T800,360'/></g><g><circle cx='400' cy='250' r='14' fill='%23F5A623'/><circle cx='400' cy='250' r='28' fill='none' stroke='%23F5A623' stroke-width='2' opacity='0.6'/><circle cx='400' cy='250' r='90' fill='none' stroke='%23F5A623' stroke-width='1' stroke-dasharray='4 6'/><circle cx='400' cy='250' r='180' fill='none' stroke='%23F5A623' stroke-width='1' stroke-dasharray='2 8' opacity='0.6'/></g><g fill='%23ffffff' font-family='Inter, sans-serif' font-size='12' opacity='0.7'><text x='420' y='248'>GLENPOOL — TULSA AREA HQ</text><text x='460' y='168'>EXTENDED SERVICE</text><text x='500' y='450'>NORTHEASTERN OKLAHOMA</text></g></svg>") center/cover no-repeat;
  border-radius: var(--radius-card);
  aspect-ratio: 8/5;
  position: relative;
}

/* Visually hidden */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Inline submit spinner */
.dot-loader {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: dot-spin .7s linear infinite;
}
@keyframes dot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dot-loader { animation: none; opacity: 0.6; } }

/* Section dividers */
.section-rule { width: 100%; height: 1px; background: var(--rule); margin: 0; }

/* ---------- Stats row (corporate credibility) ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}
.stat-card {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat-card:last-child { border-right: 0; }
.stat-card .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.stat-card .stat-num::before {
  content: ""; display: inline-block; width: 6px; height: 24px;
  background: var(--yellow); margin-right: 14px; vertical-align: -3px;
  border-radius: 2px;
}
.stat-card .stat-lbl {
  font-size: 13px; font-weight: 500;
  color: var(--steel); line-height: 1.4;
  max-width: 28ch;
}
@media (max-width: 960px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-bottom: 1px solid var(--rule); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(3), .stat-card:nth-child(4) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-card { border-right: 0; }
  .stat-card:not(:last-child) { border-bottom: 1px solid var(--rule); }
}

/* ---------- Capabilities mosaic (asymmetric photo grid) ---------- */
.mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  grid-template-areas:
    "a a b"
    "c d e";
}
.mosaic-tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  isolation: isolate;
  background: var(--ink);
}
.mosaic-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.mosaic-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0) 40%, rgba(26,26,26,0.92) 100%);
  z-index: 1;
}
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  color: var(--white);
}
.mosaic-cap .cat {
  display: inline-block;
  font-family: var(--font-body); font-size: 11px;
  font-weight: 700; letter-spacing: 0.16em;
  color: var(--yellow); text-transform: uppercase;
  margin-bottom: 4px;
}
.mosaic-cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
@media (max-width: 960px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
    grid-template-areas:
      "a a"
      "b c"
      "d e";
  }
}
@media (max-width: 540px) {
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
    grid-template-areas: "a" "b" "c" "d" "e";
  }
}

/* ---------- Affiliations row ---------- */
.affiliations-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  align-items: center;
}
.aff-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 4px;
}
.aff-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  flex-shrink: 0;
}
.aff-lbl {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 2px;
}
.aff-val {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--ink); line-height: 1.2;
}
@media (max-width: 960px) {
  .affiliations-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .affiliations-row { grid-template-columns: 1fr; }
}

/* ---------- Mission block — large pull quote ---------- */
.mission-block {
  background: var(--white);
  position: relative;
  padding: var(--section-pad) 0;
}
.mission-block::before {
  content: ""; position: absolute; left: 50%; top: 64px;
  transform: translateX(-50%);
  width: 80px; height: 80px;
  background: var(--yellow-soft);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
}
.mission-quote {
  position: relative; z-index: 1;
  margin: 0; padding: 0;
}
.mission-quote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 24px;
  position: relative;
}
.mission-quote p::before {
  content: "\201C";
  position: absolute;
  left: -36px; top: -20px;
  font-family: var(--font-display);
  font-size: 96px; line-height: 1;
  color: var(--yellow);
  opacity: 0.55;
}
.mission-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel);
  font-style: normal;
}

/* Reach out CTA band — soft elevated card */
.reach-out-band {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.reach-out-band h3 {
  margin: 0; font-size: clamp(24px, 2.6vw, 32px);
}
@media (max-width: 760px) {
  .reach-out-band { padding: 24px; justify-content: center; text-align: center; }
}

/* ---------- Services 3-column grid (home page — clean corporate) ---------- */
.svc-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.svc-grid-3 > .svc-cell {
  flex: 1 1 calc(33.333% - 15px);
  min-width: 280px;
}
.svc-cell {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(26,26,26,0.12);
  border-color: transparent;
}
.svc-cell-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--ink);
}
.svc-cell-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.svc-cell:hover .svc-cell-photo img { transform: scale(1.04); }
.svc-cell-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.svc-cell-num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber-text);
  text-transform: uppercase;
}
.svc-cell h3 {
  font-size: clamp(20px, 1.5vw, 22px);
  margin: 2px 0 4px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.svc-cell p {
  color: var(--steel);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.svc-cell-more {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-cell:hover .svc-cell-more { color: var(--amber-text); }
@media (max-width: 960px) {
  .svc-grid-3 { gap: 16px; }
  .svc-grid-3 > .svc-cell { flex-basis: calc(50% - 8px); }
}
@media (max-width: 600px) {
  .svc-grid-3 { gap: 14px; }
  .svc-grid-3 > .svc-cell { flex-basis: 100%; min-width: 0; }
}

/* ---------- Contact grid (form + sidebar) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Hero motto (replaces stacked Integrity. Excellence.) ---------- */
.hero h1.hero-motto {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.005em;
  line-height: 1.06;
  font-size: clamp(40px, 6.4vw, 84px);
  margin: 0 0 18px;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero h1.hero-motto .line { display: inline-block; }

/* ---------- Services list (horizontal rows) ---------- */
.services-section { padding: var(--section-pad) 0; }
.services-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
  margin: 0;
}
.services-lead {
  margin: 0;
  color: var(--steel);
  max-width: 64ch;
}
@media (max-width: 760px) {
  .services-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .services-title { font-size: clamp(48px, 14vw, 72px); }
}

.svc-list { display: flex; flex-direction: column; gap: 0; }
.svc-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .25s var(--ease), background .25s var(--ease);
  color: inherit;
  text-decoration: none;
}
.svc-row:first-child { border-top: 1px solid var(--rule); }
.svc-row:hover { padding-left: 12px; background: rgba(255,255,255,0.5); }
.svc-row .svc-photo {
  width: 200px; height: 130px; overflow: hidden; border-radius: 10px;
  flex-shrink: 0;
}
.svc-row .svc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.svc-row:hover .svc-photo img { transform: scale(1.05); }
.svc-row .svc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svc-row .svc-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.svc-row .svc-body p {
  font-size: 16px;
  color: var(--steel);
  margin: 0;
  max-width: 56ch;
}
.svc-row .svc-body .more {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 760px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }
  .svc-row .svc-photo { width: 100%; height: 180px; }
}

/* ==================== CINEMATIC HERO (rotating video + stills) ==================== */
.hero-cinema { min-height: 92vh; min-height: 92svh; }
.hc-stage { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; overflow: hidden; }
.hc-slide.is-active { opacity: 1; }
.hc-slide img, .hc-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Ken Burns motion on stills — only while the slide is active */
@media (prefers-reduced-motion: no-preference) {
  .hc-slide[data-kb="in"].is-active img    { animation: kb-in 9s linear forwards; }
  .hc-slide[data-kb="out"].is-active img   { animation: kb-out 9s linear forwards; }
  .hc-slide[data-kb="drift"].is-active img { animation: kb-drift 10s linear forwards; }
}
@keyframes kb-in    { from { transform: scale(1.0); }  to { transform: scale(1.09); } }
@keyframes kb-out   { from { transform: scale(1.1); }  to { transform: scale(1.0); } }
@keyframes kb-drift { from { transform: scale(1.07) translateX(-1.6%); } to { transform: scale(1.07) translateX(1.6%); } }
.hc-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.52) 0%, rgba(26,26,26,0.30) 42%, rgba(26,26,26,0.92) 100%),
    linear-gradient(90deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.08) 65%);
}
/* Slide progress bars */
.hc-progress {
  position: absolute; left: 0; bottom: 26px; z-index: 2;
  display: flex; gap: 10px; padding: 0 var(--gutter);
}
.hc-progress button {
  width: 54px; height: 4px; border-radius: 2px; border: 0; padding: 0;
  background: rgba(255,255,255,0.30); overflow: hidden; position: relative; cursor: pointer;
}
.hc-progress button::after {
  content: ""; position: absolute; inset: 0; background: var(--yellow);
  transform: scaleX(0); transform-origin: left center;
}
.hc-progress button.is-active::after { animation: hc-fill var(--hc-dur, 7s) linear forwards; }
.hc-progress button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@keyframes hc-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hc-slide { transition: none; }
  .hc-progress button.is-active::after { animation: none; transform: scaleX(1); }
}
/* Scroll cue */
.hc-cue {
  position: absolute; right: var(--gutter); bottom: 18px; z-index: 2;
  color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.hc-cue .stick { width: 1px; height: 34px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .hc-cue .stick::after {
    content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
    background: var(--yellow); animation: cue-drop 1.8s ease-in-out infinite;
  }
}
@keyframes cue-drop { 0% { top: -40%; } 70%, 100% { top: 110%; } }
@media (max-width: 760px) { .hc-cue { display: none; } }

/* ==================== MARQUEE CAPABILITY BAND ==================== */
.marquee {
  background: var(--ink); color: var(--white);
  overflow: hidden; padding: 18px 0; border-bottom: 3px solid var(--yellow);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content; white-space: nowrap;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em;
}
.marquee-track .dot-sep { color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-roll 30s linear infinite; }
}
@keyframes marquee-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==================== INNER-PAGE HERO MOTION ==================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-page .bg-layer { animation: kb-page 16s ease-out forwards; }
}
@keyframes kb-page { from { transform: scale(1.07); } to { transform: scale(1.0); } }

/* ==================== REVEAL SYSTEM UPGRADES ==================== */
.reveal-stagger > * { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 450ms; }
.img-frame, .proj-card, .svc-cell { will-change: transform; }
.proj-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(26,26,26,0.22); }


/* ==================== PROJECT REGION TABS ==================== */
.proj-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--rule); margin-bottom: 20px; }
.proj-tab {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 27px); letter-spacing: 0.01em;
  color: var(--steel); padding: 10px 22px 14px; position: relative; margin-bottom: -2px;
  transition: color .25s var(--ease);
}
.proj-tab:hover { color: var(--ink); }
.proj-tab.is-active { color: var(--ink); }
.proj-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow);
}
.proj-tab:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tab-note { color: var(--steel); font-size: 14px; margin: 0 0 18px; }
/* ==================== BRAND STRIP (technology) ==================== */
.brand-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px;
  padding: 22px var(--gutter); background: var(--ink); border-bottom: 3px solid var(--yellow);
  font-family: var(--font-display); font-size: clamp(16px, 2.2vw, 22px); letter-spacing: 0.14em;
  color: var(--white);
}
.brand-strip .dot-sep { color: var(--yellow); }
/* ==================== MOBILE MENU: VERTICAL CENTERING + SERVICES ACCORDION ==================== */
@media (max-width: 960px) {
  .mobile-menu.open { display: flex; flex-direction: column; overflow-y: auto; }
  .mobile-menu nav { margin-top: auto; }
  .mobile-menu .mm-cta { margin-bottom: auto; margin-top: 20px; }
}
.mm-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; cursor: pointer;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--white); font-family: var(--font-display); font-size: 22px; letter-spacing: 0.04em;
  text-align: left;
}
.mm-chev {
  width: 10px; height: 10px; margin-right: 6px; flex: 0 0 auto;
  border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.mm-group.open .mm-chev { transform: rotate(225deg); }
.mm-sub { overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }
.mm-group.open .mm-sub { max-height: 340px; }
.mobile-menu nav .mm-sub a { font-size: 17px; padding: 12px 0 12px 18px; color: rgba(255,255,255,0.85); }
@media (prefers-reduced-motion: reduce) { .mm-sub, .mm-chev { transition: none; } }
/* ==================== RESPONSIVE MEDIA CORRECTNESS ==================== */
/* Focal-point hooks for hero slides (default center unchanged) */
.hc-slide img, .hc-slide video { object-position: var(--focus, 50% 50%); }
.hc-slide[data-focus="left"]  { --focus: 30% 50%; }
.hc-slide[data-focus="right"] { --focus: 70% 50%; }
.hc-slide[data-focus="low"]   { --focus: 50% 65%; }

/* Short landscape phones: compact hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-cinema { min-height: 100svh; }
  .hero .container { padding-top: 56px; padding-bottom: 48px; }
  .hero h1.hero-motto { font-size: clamp(28px, 9vh, 44px); max-width: 24ch; }
  .hero p.lead { margin-top: 8px; }
  .hero .cta-row { margin-top: 16px; }
  .hc-progress { bottom: 12px; }
}

/* Progress bars + scroll cue align to the content container on wide screens */
.hc-progress {
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--container);
}
.hc-cue { right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }

/* Bigger invisible tap pads on the slide bars */
.hc-progress button { overflow: visible; }
.hc-progress button::after { border-radius: 2px; }
.hc-progress button::before { content: ""; position: absolute; inset: -14px -5px; }

/* 21/9 case strips become 16/9 on phones (beats the inline style) */
@media (max-width: 600px) {
  .case-photos img[style*="21/9"] { aspect-ratio: 16/9 !important; }
  .svc-cell-photo { height: auto; aspect-ratio: 16/9; }
  .brand-strip .dot-sep { display: none; }
  .brand-strip { gap: 10px 22px; }
}
/* Stack case photos on small phones */
@media (max-width: 480px) {
  .case-photos { grid-template-columns: 1fr; gap: 10px; }
  .case-photos img { grid-column: auto !important; aspect-ratio: 16/9 !important; }
}
.proj-tabs { flex-wrap: wrap; }
iframe { max-width: 100%; }
@media (max-width: 960px) { .proj-grid > * { min-width: 264px; } }

/* ==================== FROSTED STICKY HEADER ==================== */
.site-header { transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.bar-top .logo-wrap img { transition: height .35s var(--ease); }
.site-header.scrolled {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(26,26,26,0.10);
  box-shadow: 0 12px 32px -20px rgba(26,26,26,0.30);
}
.site-header.scrolled .bar-top { padding-top: 8px; padding-bottom: 8px; }
.site-header.scrolled .logo-wrap img { height: 54px; }
@media (max-width: 960px) { .site-header.scrolled .logo-wrap img { height: 44px; } }

/* ==================== MASKED LINE REVEAL ==================== */
.mask-lines .line {
  display: block; overflow: hidden;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.mask-lines .line-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform .9s cubic-bezier(.85,0,.15,1);
  will-change: transform;
}
.mask-lines.in .line-inner { transform: translateY(0); }
.mask-lines.in .line:nth-child(2) .line-inner { transition-delay: .12s; }
.mask-lines.in .line:nth-child(3) .line-inner { transition-delay: .24s; }
.hero h1.hero-motto.mask-lines .line { display: block; }
@media (prefers-reduced-motion: reduce) {
  .mask-lines .line-inner { transform: none !important; transition: none !important; }
}

/* ==================== SCROLL PROGRESS HAIRLINE ==================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left center;
  z-index: 1000;
  pointer-events: none;
}

/* ==================== BUTTON FILL SWIPE ==================== */
.btn-primary {
  color: var(--ink); border-color: var(--yellow);
  background-color: var(--yellow);
  background-image: linear-gradient(110deg, var(--yellow-dark) 0%, var(--yellow-dark) 50%, var(--yellow) 50.5%, var(--yellow) 100%);
  background-size: 230% 100%; background-position: 100% 0;
  transition: background-position .5s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-primary:hover { background-position: 0 0; box-shadow: 0 8px 18px rgba(245,166,35,0.30); transform: translateY(-2px); }
.btn-outline, .btn-outline-light {
  background-image: linear-gradient(110deg, var(--yellow) 0%, var(--yellow) 50%, transparent 50.5%, transparent 100%);
  background-size: 230% 100%; background-position: 100% 0;
  transition: background-position .5s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-outline:hover { background-position: 0 0; color: var(--ink); border-color: var(--yellow); }
.btn-outline-light:hover { background-position: 0 0; color: var(--ink); border-color: var(--yellow); }
.btn:hover .arrow { transform: translateX(6px); }

/* ==================== PROCESS GHOST NUMERALS ==================== */
.proc-step { overflow: hidden; }
.proc-step::before {
  background: none !important; padding: 0 !important;
  position: absolute; top: -26px; right: 8px;
  font-family: var(--font-display);
  font-size: clamp(96px, 10vw, 128px); font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,166,35,0.60);
  pointer-events: none; z-index: 0;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .proc-step::before { color: var(--yellow-soft); }
}
.proc-step > * { position: relative; z-index: 1; }

/* ==================== STATS BAND NUMERALS ==================== */
.stat-card .stat-num {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(54px, 6.5vw, 92px);
  line-height: 0.95; letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 14px;
}
.stat-card .stat-num::before { display: none; }
.stat-card { position: relative; padding: 40px 32px 56px; }
.stat-card::after {
  content: ""; position: absolute; left: 32px; bottom: 28px;
  width: 28px; height: 3px; background: var(--yellow); border-radius: 2px;
}
.stat-card .stat-lbl {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); line-height: 1.6; max-width: 24ch;
}

/* ==================== IMAGE SETTLE ON REVEAL ==================== */
@media (prefers-reduced-motion: no-preference) {
  .img-frame.reveal img {
    transform: scale(1.08);
    transition: transform 1.2s var(--ease);
  }
  .img-frame.reveal.in img { transform: scale(1); }
  .case-photos img {
    opacity: 0; transform: translateY(16px) scale(0.97);
    transition: opacity .7s var(--ease), transform .9s var(--ease);
  }
  .case-photos img:nth-child(2) { transition-delay: .09s; }
  .case-photos img:nth-child(3) { transition-delay: .18s; }
  .case-photos.in img { opacity: 1; transform: none; }
}

/* ==================== MISSION PULL QUOTE ==================== */
.mission-quote { position: relative; z-index: 1; margin: 0; padding: 0; }
.mission-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "opsz" 144;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.38; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 28px;
}
.mission-quote p::before {
  content: "\201C";
  display: block; position: static;
  font-style: normal;
  font-size: clamp(88px, 10vw, 136px);
  line-height: .55; height: .5em;
  color: var(--yellow); opacity: 1;
  margin: 0 auto 20px;
}
.mission-quote cite {
  display: block; font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel); font-style: normal;
}

/* ==================== UNDERLINE GROW ==================== */
main p a:not(.btn), .faq-a a,
.foot-grid a:not(.btn), .foot-bottom a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .15s var(--ease);
  padding-bottom: 1px;
}
main p a:not(.btn):hover, .faq-a a:hover,
.foot-grid a:not(.btn):hover, .foot-bottom a:hover {
  background-size: 100% 1px;
}
main p a:not(.btn) { color: var(--amber-text); font-weight: 600; }

/* ==================== PREMIUM EXTRAS ==================== */
h1, h2, h3, .mission-quote p { text-wrap: balance; }
html { scrollbar-color: var(--steel) var(--panel); scrollbar-width: thin; }
.mobile-menu { scrollbar-color: var(--steel) var(--ink); }
.caption, .tl-item .yr, .eq-row, .proj-group-head .group-note,
.case-meta dd, .phone-link, .foot-bottom {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ==================== HERO PAUSE CONTROL (WCAG 2.2.2) ==================== */
.hc-pause {
  width: 28px; height: 28px; flex: 0 0 auto; margin-right: 12px;
  border: 1.5px solid rgba(255,255,255,0.55); border-radius: 50%;
  background: rgba(26,26,26,0.35); color: var(--white);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; font-size: 11px; line-height: 1;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  align-self: center;
}
.hc-pause:hover { border-color: var(--yellow); background: rgba(26,26,26,0.6); }
.hc-pause:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ==================== LEADERSHIP PORTRAITS ==================== */
.leader-photo {
  width: min(240px, 62%);
  aspect-ratio: 4/5;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 14px 30px -18px rgba(26,26,26,0.35);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .leader-photo { width: min(220px, 70%); } }
/* ==================== INTERNSHIPS BAND (careers) ==================== */
.internship { padding: var(--section-pad, 96px) 0; }
.internship-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: start;
}
.internship h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; margin: 12px 0 0; }
.internship-body .lead { color: var(--white); margin-top: 0; }
.internship-body p { color: rgba(255,255,255,0.78); }
.internship-body .btn { margin-top: 12px; }
@media (max-width: 860px) { .internship-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ==================== CAD / MODEL TILES (Victory Park) ==================== */
.case-photos img.cad-tile {
  object-fit: contain; background: #0c0c0c; aspect-ratio: 4/3;
  padding: 10px; box-sizing: border-box;
}
@media (max-width: 480px) { .case-photos img.cad-tile { aspect-ratio: 4/5 !important; } }

/* SERVICES display word: never clip at mid widths */
@media (min-width: 761px) and (max-width: 1100px) {
  .services-title { font-size: clamp(56px, 8vw, 92px); }
}
/* ==================== TECHNOLOGY PHOTO ROW (portrait jobsite photos) ==================== */
.tech-row img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 12px; display: block;
}
@media (max-width: 600px) { .tech-row img { aspect-ratio: 4/3; } }
/* keep the three technology photos on one row from tablet up */
@media (min-width: 601px) { .grid-3.tech-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ==================== FEATURED PROJECT CARD (full-row, desktop) ==================== */
@media (min-width: 601px) and (max-width: 960px) {
  .proj-grid > .proj-card--featured { flex-basis: 100%; aspect-ratio: 16/9; }
  .proj-card--featured img { object-fit: contain; object-position: 82% 50%; padding: 14px 0; background: #0c0c0c; }
  .proj-card--featured::after { background: linear-gradient(90deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.5) 45%, rgba(12,12,12,0) 70%); }
}
@media (min-width: 961px) {
  .proj-grid > .proj-card--featured { flex-basis: 100%; aspect-ratio: 21/9; }
  .proj-card--featured img { object-fit: contain; object-position: 78% 50%; padding: 18px 0; background: #0c0c0c; }
  .proj-card--featured::after { background: linear-gradient(90deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.55) 38%, rgba(12,12,12,0) 62%); }
  .proj-card--featured .meta h4 { font-size: clamp(30px, 3vw, 44px); }
}