@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --primary:        #4c3727;
  --primary-dark:   #3a2a1d;
  --primary-light:  #6b4f38;
  --accent:         #4c3727;
  --canvas:         #F7F6F2;
  --surface:        #FFFFFF;
  --ink:            #14181D;
  --ink-mid:        #2e3440;
  --muted:          #5C6068;
  --border:         rgba(20,24,29,0.12);
  --border-brand:   rgba(76,55,39,0.22);
  --sand:           #ede9e1;
  --shadow-sm:      0 2px 8px rgba(20,24,29,0.08);
  --shadow-md:      0 8px 28px rgba(20,24,29,0.12);
  --shadow-lg:      0 18px 48px rgba(20,24,29,0.18);
  --radius:         4px;
  --header-height:  72px;
}
@media (max-width: 900px) {
  :root { --header-height: 60px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Universal image cap */
img { max-width: 100%; height: auto; display: block; }

section img:not(.hero-bg):not([class*="full-bleed"]):not([class*="fullbleed"]) {
  max-height: 640px;
  object-fit: cover;
}

.nav img, header img, .header img, .nav-logo img, .logo img {
  max-height: 44px !important;
  max-width: 200px !important;
  width: auto !important;
  align-self: flex-start !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}
.footer img, footer img {
  max-height: 48px !important;
  max-width: 200px !important;
  width: auto !important;
  align-self: flex-start !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

.hero { position: relative; overflow: hidden; }
.hero-bg, .hero > img:first-of-type {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-inner, .hero > :not(img):not(.hero-bg):not(.hero-overlay):not(.hero-hairline):not(.hero-ribbon) {
  position: relative; z-index: 2;
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.page-header, [class*="page-header"], .about-feature, .about-hero {
  position: relative; overflow: hidden; max-height: 64vh;
}
.page-header > img, [class*="page-header"] > img,
.page-header-bg, .about-feature > img:first-of-type, .about-hero-bg,
.page-header img:first-of-type {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
section > img:first-child:not([class*="logo"]):not(.nav-logo) {
  max-height: 64vh; object-fit: cover;
}
section img:not(.hero-bg):not(.page-header-bg):not([class*="full-bleed"]):not([class*="logo"]) {
  max-height: 720px;
}

[class*="gallery-grid"] > [class*="gallery-tile"],
[class*="gallery-grid"] > a,
[class*="gallery-grid"] > figure {
  grid-column: auto; width: auto; max-width: 100%; height: auto; min-height: 0;
}
[class*="gallery-tile"] { aspect-ratio: 4 / 3; overflow: hidden; }
[class*="gallery-tile"] > img { width: 100%; height: 100%; object-fit: cover; }

h1 a, h2 a, h3 a, .hero-title a, .hero-eyebrow a, .hero-sub a {
  color: inherit; text-decoration: none; border-bottom: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 6vw, 80px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(20px, 2.5vw, 32px); }
h4 { font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; }
h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

p { line-height: 1.7; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 150ms;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Label / mono utility */
.label-mono, .section-eyebrow, .page-header-eyebrow, .credential-card-label,
.step-num, .service-eyebrow, .cta-banner-eyebrow, .info-block-eyebrow,
.info-card-label, .footer-col-title, .registry-index, .service-num,
.crew-card-role, .about-photo-badge-label, .gallery-tile-badge,
.project-card-eyebrow, .timeline-step-label, .text-cta-strip-text span,
.footer-cert-chip, .trust-badge, .marquee-item {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container, .section-inner, .contact-inner, .cta-banner-inner,
.gallery-section-inner, .service-nav-inner, .team-cta-inner,
.text-cta-strip-inner, .footer-inner {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.wide-container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar, .scroll-progress, #progressBar, #scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
  transition: width 60ms linear;
}

/* ============================================================
   SITE HEADER + NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0; z-index: 900;
  background: var(--canvas);
  border-bottom: 1px solid rgba(20,24,29,0.08);
}

.top-nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.nav-logo { flex: 0 0 auto; line-height: 0; }
.nav-logo img { max-height: 44px !important; max-width: 180px !important; }

.nav-pages {
  flex: 1;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0; margin: 0;
  gap: 28px;
  align-items: center;
}
.nav-pages a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms;
}
.nav-pages a:hover { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-pages a[aria-current="page"] { color: var(--primary); border-bottom: 2px solid var(--primary); }

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--canvas);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 150ms, background 150ms;
}
.nav-cta:hover { filter: brightness(0.88); color: var(--canvas); text-decoration: none; }
.nav-cta-icon { width: 18px; height: 18px; }
.nav-cta-label { display: inline; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta-label { display: none; }
  .nav-cta { padding: 10px 12px; }
  .nav-pages {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--canvas);
    padding: 20px clamp(20px, 4vw, 56px) 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(20,24,29,0.08);
    z-index: 800;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .nav-pages.open { display: flex; }
  .nav-pages li { width: 100%; }
  .nav-pages a { display: block; padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   UTILITY BAR (contact.html)
   ============================================================ */
.util-bar {
  background: var(--primary);
  color: var(--canvas);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.util-bar-left, .util-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.util-bar > * { /* inner wrapper */
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.util-bar a { color: var(--canvas); text-decoration: none; }
.util-bar a:hover { text-decoration: underline; color: var(--canvas); }

/* ============================================================
   HERO
   ============================================================ */
#hero.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(20,24,29,0.72) 0%,
    rgba(20,24,29,0.55) 55%,
    rgba(20,24,29,0.38) 100%
  );
}

.hero-hairline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  z-index: 3;
}

.hero-ribbon {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  z-index: 3;
}

.hero-inner {
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 80px) clamp(64px, 9vw, 112px);
  max-width: 860px;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247,246,242,0.72);
  margin-bottom: 16px;
}

.hero-title, .hero-inner h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #F7F6F2;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(247,246,242,0.78);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.hero-trust-chips .trust-chip {
  background: rgba(247,246,242,0.08);
  border: 1px solid rgba(76,55,39,0.5);
  backdrop-filter: blur(4px);
  color: var(--canvas);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .btn-filled, .btn-primary, .btn-submit, .btn-banner-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter 150ms, background 150ms, color 150ms, border-color 150ms;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-filled, .btn-primary, .btn-submit, .btn-banner-primary {
  background: var(--primary);
  color: var(--canvas);
  border-color: var(--primary);
}
.btn-filled:hover, .btn-primary:hover, .btn-submit:hover, .btn-banner-primary:hover {
  filter: brightness(0.88);
  color: var(--canvas);
  text-decoration: none;
}

.btn-ghost, .btn-outline, .btn-ink {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(247,246,242,0.6);
}
.btn-ghost:hover, .btn-outline:hover, .btn-ink:hover {
  background: rgba(247,246,242,0.1);
  border-color: var(--canvas);
  color: var(--canvas);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: var(--canvas);
  border: 2px solid rgba(247,246,242,0.55);
}
.btn-outline-white:hover {
  background: rgba(247,246,242,0.1);
  color: var(--canvas);
  text-decoration: none;
}

.btn-white {
  background: var(--canvas);
  color: var(--primary);
  border-color: var(--canvas);
}
.btn-white:hover { filter: brightness(0.95); text-decoration: none; }

.btn-submit { font-size: 15px; width: 100%; justify-content: center; }
.btn-submit svg { width: 18px; height: 18px; }

.btn-banner-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid rgba(247,246,242,0.55);
  color: var(--canvas);
  text-decoration: none;
  transition: background 150ms;
}
.btn-banner-phone:hover { background: rgba(247,246,242,0.1); color: var(--canvas); text-decoration: none; }
.btn-banner-phone svg { width: 18px; height: 18px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.trust-badge, .trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 6px 12px;
  white-space: nowrap;
}
.trust-badge svg, .trust-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-height: 64px;
  position: relative;
  z-index: 1;
  background: var(--canvas);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.2;
  color: var(--muted);
}
.marquee-dot {
  color: var(--primary);
  font-size: 18px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section, .services, .gallery, .service-areas, .faq,
.about-section, .values-section, .timeline-section,
.crew-section, .credentials-section, .contact {
  padding-top: clamp(80px, 10vh, 128px);
  padding-bottom: clamp(80px, 10vh, 128px);
}

.section-eyebrow {
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.section-title, .section-inner > h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* ============================================================
   SERVICES REGISTRY
   ============================================================ */
.services { background: var(--canvas); }

.services-registry {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-bottom: 56px;
}

.registry-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: background 200ms;
  cursor: pointer;
}
.registry-row:hover { background: rgba(76,55,39,0.04); text-decoration: none; }
.registry-row:hover .registry-name { color: var(--primary); }

.registry-index {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}

.registry-content { display: flex; flex-direction: column; gap: 4px; }
.registry-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 200ms;
}
.registry-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.registry-arrow {
  color: var(--primary);
  font-size: 22px;
  font-weight: 300;
  transition: transform 200ms;
}
.registry-row:hover .registry-arrow { transform: translateX(4px); }

/* Service detail panels */
.service-panels { display: flex; flex-direction: column; gap: 0; }

.service-detail {
  display: none;
  grid-template-columns: 45% 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 4px;
}
.service-detail.active { display: grid; }

.service-detail > img, .service-detail-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  max-height: 480px;
}

.service-detail-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-detail-body h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 8px;
}
.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.service-detail-body p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.service-detail-body a.btn { margin-top: 8px; align-self: flex-start; }

@media (max-width: 760px) {
  .service-detail.active { grid-template-columns: 1fr; }
  .service-detail > img { min-height: 220px; max-height: 260px; }
  .registry-row { grid-template-columns: 40px 1fr auto; gap: 14px; }
  .registry-name { font-size: 18px; }
}

/* ============================================================
   GALLERY (index.html)
   ============================================================ */
.gallery { background: var(--canvas); }

.gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.gallery .gallery-tile {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  text-decoration: none;
}
.gallery .gallery-tile.tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.gallery .gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  filter: grayscale(12%);
  max-height: none;
}
.gallery .gallery-tile:hover img { transform: scale(1.04); }

.gallery-foot { text-align: center; }

@media (max-width: 640px) {
  .gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .gallery-tile.tall { aspect-ratio: 4 / 3; grid-row: span 1; }
}

/* ============================================================
   GALLERY PAGE (gallery.html)
   ============================================================ */
.gallery-section { background: var(--canvas); padding: clamp(64px, 8vh, 112px) 0; }
.gallery-section-inner { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.gallery-section-header { margin-bottom: 40px; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  color: var(--canvas);
  border-color: var(--primary);
}

#galleryGrid.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--sand);
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  filter: grayscale(10%);
  max-height: none;
}
.gallery-tile:hover img { transform: scale(1.05); filter: grayscale(0%); }

.tile-num {
  position: absolute;
  top: 10px; left: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(247,246,242,0.6);
  z-index: 2;
}

.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,24,29,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 300ms;
  z-index: 1;
}
.gallery-tile:hover .gallery-tile-overlay { opacity: 1; }

.gallery-tile-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  z-index: 2;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
}
.gallery-tile:hover .gallery-tile-info { opacity: 1; transform: translateY(0); }

.gallery-tile-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--primary);
  color: var(--canvas);
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
}
.gallery-tile-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.2;
}
.gallery-tile-location {
  font-size: 12px;
  color: rgba(247,246,242,0.7);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.gallery-tile-location svg { width: 12px; height: 12px; }

.gallery-project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
}
.project-card-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 18px; margin-bottom: 8px; }
.project-card-body { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.project-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.project-card-meta svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  #galleryGrid.gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-project-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #galleryGrid.gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.service-areas { background: var(--surface); }

.areas-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.area-chip, .area-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 8px 16px;
  transition: background 150ms, color 150ms;
}
.area-chip:hover, .area-pill:hover {
  background: var(--primary);
  color: var(--canvas);
}

.service-area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--canvas); }
.faq-list { margin-top: 40px; }

details.faq, .faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-list details > summary,
details.faq > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 18px);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  color: var(--ink);
  transition: color 150ms;
}
.faq-list details > summary::-webkit-details-marker,
details.faq > summary::-webkit-details-marker { display: none; }

.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: transform 250ms, color 250ms; }
.faq-list details[open] > summary .faq-chevron,
details.faq[open] > summary .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-list details[open] > summary,
details.faq[open] > summary { color: var(--primary); }

.faq-answer, .faq-list details p {
  padding-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  max-width: 72ch;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--canvas); }

.about-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.about-photo-col { position: relative; }
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  max-height: 600px;
}

.about-photo-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--primary);
  color: var(--canvas);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 120px;
}
.about-photo-badge-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  display: block;
}
.about-photo-badge-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}

.about-text-col { padding-top: 16px; }
.about-headline, .about-text-col h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 20px;
}
.about-body { margin-bottom: 28px; }
.about-body p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.about-chips .trust-chip { background: var(--canvas); }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-badge { right: 16px; }
}

/* ============================================================
   VALUES
   ============================================================ */
.values-section { background: var(--surface); }
.values-header { margin-bottom: 40px; }
.values-header h2 { font-size: clamp(28px, 4vw, 52px); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card-icon { width: 32px; height: 32px; color: var(--primary); margin-bottom: 16px; }
.value-card h3 { font-size: 17px; margin-bottom: 10px; }
.value-card-body { font-size: 14px; color: var(--muted); line-height: 1.65; }

@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section { background: var(--canvas); }
.timeline-header { margin-bottom: 48px; }
.timeline-header h2 { font-size: clamp(28px, 4vw, 52px); }

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-step {
  position: relative;
  padding-top: 52px;
  padding-right: 24px;
  z-index: 1;
}
.timeline-dot {
  position: absolute;
  top: 12px; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--canvas);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-step-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 6px;
}
.timeline-step h3 { font-size: 16px; margin-bottom: 8px; }
.timeline-step-body { font-size: 14px; color: var(--muted); line-height: 1.65; }

@media (max-width: 760px) {
  .timeline-track { grid-template-columns: 1fr 1fr; }
  .timeline-track::before { display: none; }
}
@media (max-width: 480px) {
  .timeline-track { grid-template-columns: 1fr; }
}

/* ============================================================
   CREW
   ============================================================ */
.crew-section { background: var(--surface); }
.crew-header { margin-bottom: 40px; }
.crew-header h2 { font-size: clamp(28px, 4vw, 52px); }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.crew-card {
  background: var(--canvas);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.crew-photo-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
  position: relative;
}
.crew-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  max-height: none;
}
.crew-photo-wrap svg { width: 100%; height: 100%; color: var(--muted); padding: 40px; }

.crew-card-body { padding: 20px; }
.crew-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.crew-card-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.crew-note { font-size: 13px; color: var(--muted); line-height: 1.55; }

@media (max-width: 760px) {
  .crew-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .crew-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CREDENTIALS (the unique move)
   ============================================================ */
.credentials-section { background: var(--surface); }
.credentials-header { margin-bottom: 40px; }
.credentials-header h2 { font-size: clamp(28px, 4vw, 52px); }

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.credential-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow 250ms ease;
}
.credential-card:hover { box-shadow: var(--shadow-sm); }

.credential-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}

.credential-card-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.credential-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TEAM CTA
   ============================================================ */
.team-cta {
  background: var(--primary);
  padding: clamp(64px, 8vh, 96px) 0;
}
.team-cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.team-cta-copy p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247,246,242,0.65);
  margin-bottom: 8px;
}
.team-cta-copy h2 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--canvas);
  line-height: 1.05;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--primary);
  padding: clamp(64px, 8vh, 96px) 0;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.cta-banner-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247,246,242,0.6);
  margin-bottom: 12px;
}
.cta-banner-headline, .cta-banner-text h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--canvas);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-banner-sub {
  color: rgba(247,246,242,0.75);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* CTA form */
.cta-banner-form, .cta-banner-form form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
}
.form-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--ink);
}

@media (max-width: 760px) {
  .cta-banner-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   TEXT CTA STRIP
   ============================================================ */
.text-cta-strip {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 5vh, 64px) 0;
}
.text-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.text-cta-strip-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--ink);
  line-height: 1.1;
}
.text-cta-strip-text span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.text-cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   DIVIDER BAND
   ============================================================ */
.divider-band {
  height: 4px;
  background: var(--primary);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--canvas); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-top: 40px;
}

/* contact.html uses .contact-inner with .contact-form-col + .contact-info-card */
.contact-inner {
  padding-top: clamp(64px, 8vh, 96px);
  padding-bottom: clamp(64px, 8vh, 96px);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid, .contact-inner {
    grid-template-columns: 1fr;
  }
}

.contact-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}
.contact-form-col h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 8px; }
.contact-form-intro { color: var(--muted); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }

/* Forms */
.form-group {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  margin-bottom: 18px;
}
.form-label, label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.form-input, input[type="text"], input[type="email"],
input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,55,39,0.12);
}
.form-textarea, textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Contact info card */
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.info-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 24px;
  display: block;
}
.info-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.info-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.info-block-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-block-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.info-block-value a { color: var(--ink); }
.info-block-value a:hover { color: var(--primary); }
.info-block-sub { font-size: 13px; color: var(--muted); }

.info-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.info-availability-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Simpler contact-info for index.html */
.contact-info { }
.contact-info .info-block h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.info-link-lg {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink);
}
.info-link-sm { font-size: 15px; color: var(--primary); }
.info-link-lg:hover, .info-link-sm:hover { color: var(--primary-dark); }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  min-height: clamp(280px, 40vh, 480px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,24,29,0.72) 0%, rgba(20,24,29,0.48) 100%);
  z-index: 1;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 80px);
}
.page-header-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247,246,242,0.65);
  margin-bottom: 10px;
}
.page-header-title, .page-header-inner h1 {
  font-size: clamp(36px, 6vw, 80px);
  color: var(--canvas);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.page-header-sub {
  color: rgba(247,246,242,0.75);
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.55;
}
.page-header-hairline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  z-index: 3;
}

/* ============================================================
   SERVICE NAV STRIP (services.html)
   ============================================================ */
.service-nav-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  z-index: 800;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-nav-strip::-webkit-scrollbar { display: none; }
.service-nav-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.service-nav-link {
  display: inline-block;
  padding: 16px 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
  flex-shrink: 0;
}
.service-nav-link:hover { color: var(--primary); text-decoration: none; border-bottom-color: var(--primary); }
.service-nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================================
   SERVICE FEATURE (services.html)
   ============================================================ */
.service-feature {
  padding: clamp(64px, 8vh, 96px) 0;
  border-bottom: 1px solid var(--border);
}
.service-feature:nth-child(even) { background: var(--surface); }
.service-feature:nth-child(odd) { background: var(--canvas); }

.service-feature-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.service-feature:nth-child(even) .service-feature-grid { direction: rtl; }
.service-feature:nth-child(even) .service-feature-grid > * { direction: ltr; }

.service-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.service-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(8%);
  max-height: none;
}
.service-index-badge {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  background: var(--primary);
  color: var(--canvas);
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.service-body { padding-top: 8px; }
.service-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-body h2 { font-size: clamp(24px, 3.5vw, 40px); margin-bottom: 16px; }
.service-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.service-features-list {
  list-style: none;
  padding: 0; margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features-list li {
  padding: 8px 12px 8px 28px;
  position: relative;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--border);
}
.service-features-list li::before {
  content: '';
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.emergency-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #dc2626;
  color: white;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.price-badge {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
}
.price-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 8px;
}

@media (max-width: 760px) {
  .service-feature-grid { grid-template-columns: 1fr; }
  .service-feature:nth-child(even) .service-feature-grid { direction: ltr; }
  .service-photo-wrap { aspect-ratio: 16 / 9; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(247,246,242,0.75);
  padding: clamp(60px, 7vh, 96px) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,246,242,0.1);
}

.footer-brand {}
.footer-logo img { filter: brightness(0) invert(1); }
.footer-tagline, .footer-brand > p {
  font-size: 14px;
  color: rgba(247,246,242,0.6);
  line-height: 1.6;
  margin-top: 12px;
  margin-bottom: 16px;
}
.footer-brand-desc { font-size: 14px; color: rgba(247,246,242,0.6); line-height: 1.6; margin-top: 8px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a, .footer-contact-line a { color: rgba(247,246,242,0.75); font-size: 14px; }
.footer-contact a:hover, .footer-contact-line a:hover { color: var(--canvas); }
.footer-contact-line { font-size: 14px; color: rgba(247,246,242,0.6); }
.footer-contact-line a { display: flex; align-items: center; gap: 6px; }
.footer-contact-line svg { width: 14px; height: 14px; }

.footer-col-title, .footer-col h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--canvas);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 14px;
  color: rgba(247,246,242,0.65);
  text-decoration: none;
  transition: color 150ms;
}
.footer-links a:hover { color: var(--canvas); text-decoration: none; }

.footer-hours-item { font-size: 13px; color: rgba(247,246,242,0.6); margin-bottom: 4px; }

.footer-contact-item { margin-bottom: 10px; font-size: 14px; color: rgba(247,246,242,0.65); }
.footer-contact-item a { color: rgba(247,246,242,0.75); }
.footer-contact-item a:hover { color: var(--canvas); }
.footer-contact-item strong { color: var(--canvas); font-weight: 600; }

.footer-cert-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-cert-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.5);
  padding: 4px 0;
  border-bottom: 1px solid rgba(247,246,242,0.07);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy, .footer-copyright {
  font-size: 12px;
  color: rgba(247,246,242,0.4);
}
.footer-badges, .footer-certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-badge, .footer-cert-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247,246,242,0.4);
  border: 1px solid rgba(247,246,242,0.15);
  padding: 4px 8px;
  border-radius: 2px;
}
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { font-size: 12px; color: rgba(247,246,242,0.4); }
.footer-legal-links a:hover { color: rgba(247,246,242,0.75); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MOBILE CALL PILL / STICKY CTA
   ============================================================ */
.mobile-sticky-cta, .mobile-cta, .mobile-cta-pill, .mobile-call-cta {
  display: none;
}
@media (max-width: 900px) {
  .mobile-sticky-cta, .mobile-cta, .mobile-cta-pill, .mobile-call-cta {
    display: flex;
    position: fixed;
    bottom: 18px; right: 18px;
    z-index: 999;
    background: var(--primary);
    color: var(--canvas);
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 18px 40px -10px rgba(0,0,0,0.45);
    transition: filter 150ms;
  }
  .mobile-sticky-cta:hover, .mobile-cta:hover, .mobile-cta-pill:hover, .mobile-call-cta:hover {
    filter: brightness(0.9);
  }
  .mobile-sticky-cta svg, .mobile-cta svg, .mobile-cta-pill svg, .mobile-call-cta svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
  }
  .mobile-sticky-cta > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
  }
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.scale-in {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 600ms ease, transform 600ms ease;
}
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.scale-in.visible { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms; }

/* ============================================================
   MISC SMALL ELEMENTS
   ============================================================ */
/* Ensure unsized SVGs don't blow up */
svg { overflow: visible; }
.faq-chevron { width: 20px; height: 20px; }
.value-card-icon { width: 32px; height: 32px; }
.nav-cta-icon { width: 18px; height: 18px; }

/* heading links */
h1 a, h2 a, h3 a, .hero-title a, .hero-eyebrow a, .hero-sub a {
  color: inherit; text-decoration: none; border-bottom: 0;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 640px) {
  .hero-inner { padding: 40px 24px 72px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .trust-strip-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

@media (max-width: 900px) {
  .cta-banner-inner { grid-template-columns: 1fr; padding: 0 clamp(20px, 4vw, 40px); }
  .team-cta-inner { flex-direction: column; }
}


/* === Validator patches (auto-applied) === */
/* validator patch: grid children without placement → span full row */
.registry-index { grid-column: 1 / -1; }
.registry-content { grid-column: 1 / -1; }
.registry-arrow { grid-column: 1 / -1; }
.service-detail-img { grid-column: 1 / -1; }
.service-detail-body { grid-column: 1 / -1; }
.footer-brand { grid-column: 1 / -1; }
.footer-col { grid-column: 1 / -1; }
.service-photo-wrap { grid-column: 1 / -1; }
.service-body { grid-column: 1 / -1; }
.gallery-tile { grid-column: 1 / -1; }
.project-card { grid-column: 1 / -1; }
.cta-banner-text { grid-column: 1 / -1; }
.cta-banner-actions { grid-column: 1 / -1; }
.form-group { grid-column: 1 / -1; }
/* validator patch: never hide a wrapper that contains a heading */
.service-detail { display: block !important; }
/* validator patch: hero must never crop its headline */
#hero, .hero { overflow: visible !important; }
:where(#hero, .hero) { padding-top: max(var(--header-height, 72px), 72px); }
