/* ============================================================
   Fraza Inspection — site-wide stylesheet
   Brand palette preserved: rust #9B1700, navy #102B4D / #0C1F38
   ============================================================ */

:root {
  --ink: #14181f;
  --ink-2: #2a2f38;
  --muted: #6b6f78;
  --muted-2: #8d8f95;
  --rule: #e3e0d8;
  --rule-2: #d1cdc1;
  --paper: #f6f4ef;
  --paper-2: #ece8de;
  --white: #ffffff;
  --navy: #102B4D;
  --navy-2: #0C1F38;
  --navy-soft: #1a3a66;
  --rust: #9B1700;
  --rust-2: #7a1200;
  --rust-soft: #b73118;
  --ok: #2a6b3a;

  --sans: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 80px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.no-dash::before { display: none; }
.eyebrow.on-dark { color: rgba(255,255,255,0.65); }

.section-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
.section-h em { font-style: italic; color: var(--rust); font-weight: 400; }
.section-h.on-dark { color: #fff; }
.section-h.on-dark em { color: var(--rust-soft); }

/* ============================================================
   NAV — site-wide
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #122d52 0%, #0c1f38 100%);
  border-bottom: 1px solid var(--rust);
  color: rgba(255,255,255,0.92);
}
.topbar.is-scrolled {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.nav {
  display: flex; align-items: center; gap: 12px;
  height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
}
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: none;
}
@media (max-width: 600px) {
  .brand-logo { height: 44px; }
}
.brand-icon {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px; height: 34px;
  background: var(--navy-2);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px; bottom: -4px;
  width: 10px; height: 10px;
  background: var(--rust);
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex; flex-direction: column;
  line-height: 1.15;
}
.brand-name span {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: none;
  font-style: italic;
  font-family: var(--serif);
}
.brand-on-dark .brand-name { color: #fff; }
.brand-on-dark .brand-name span { color: rgba(255,255,255,0.65); }

.nav-spacer { flex: 1; }
.nav-links {
  display: none;
  gap: 6px;
  align-items: center;
}
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  padding: 10px 12px;
  border-radius: 2px;
  transition: color 0.15s;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-link:hover, .nav-link.is-active { color: var(--rust-soft); }
.nav-link .caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  margin-left: 2px;
  opacity: 0.6;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rust);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 18px 48px rgba(12,31,56,0.12);
}
.nav-dropdown.is-open { display: flex; }
.nav-dropdown a {
  display: flex; flex-direction: column;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--paper); color: var(--rust); }
.nav-dropdown a .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}

.nav-cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--rust);
  background: var(--rust);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s;
}
.nav-cta:hover { background: var(--rust-2); border-color: var(--rust-2); }
.nav-cta .arr { display: inline-block; transition: transform 0.2s; }
.nav-cta:hover .arr { transform: translateX(3px); }

/* mobile menu trigger */
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  margin-left: auto;
}
@media (min-width: 980px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 55;
  padding: 24px var(--pad) 48px;
  display: none;
  overflow-y: auto;
  border-top: 1px solid var(--rule);
}
.mobile-sheet.is-open { display: block; }
.mobile-sheet .ms-group { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.mobile-sheet .ms-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mobile-sheet .ms-link {
  display: block;
  padding: 8px 0;
  font-size: 18px;
  font-family: var(--serif);
  color: var(--ink);
}
.mobile-sheet .ms-link:hover, .mobile-sheet .ms-link.is-active { color: var(--rust); }
@media (min-width: 980px) { .mobile-sheet { display: none !important; } }

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}
.btn-rust { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-2); border-color: var(--rust-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: #fff; color: var(--navy-2); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy-2); border-color: var(--navy-2); }
.btn-ghost-dark:hover { background: var(--navy-2); color: #fff; }
.btn-dark { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.btn-dark:hover { background: var(--rust); border-color: var(--rust); }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   PAGE — full-bleed HERO (used on index)
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.55);
  z-index: -2;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 8% 50%, rgba(12,31,56,0.85) 0%, rgba(12,31,56,0.55) 35%, rgba(12,31,56,0.15) 70%, rgba(12,31,56,0.05) 100%),
    linear-gradient(180deg, rgba(12,31,56,0.55) 0%, rgba(12,31,56,0.0) 30%, rgba(12,31,56,0.65) 100%);
}
.hero-inner {
  position: relative;
  padding-top: clamp(64px, 10vh, 120px);
  padding-bottom: clamp(48px, 8vh, 96px);
  min-height: 86vh;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 56px;
}
.hero-top { display: flex; flex-direction: column; gap: 28px; max-width: 980px; }
.hero-eyebrow { color: rgba(255,255,255,0.75); }
.hero-eyebrow .dot { display: inline-block; width: 6px; height: 6px; background: var(--rust); margin: 0 12px 1px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--rust-soft); font-weight: 400; }
.hero-title .rule { display: inline-block; width: 0.55em; height: 0.08em; background: var(--rust); vertical-align: middle; margin: 0 0.2em; }
.hero-sub {
  max-width: 640px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 1000px) { .hero-bottom { grid-template-columns: 1.4fr 1fr; } }
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.18);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
@media (min-width: 720px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: rgba(12,31,56,0.55);
  backdrop-filter: blur(6px);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi-num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.kpi-num sup { color: var(--rust-soft); font-size: 0.55em; vertical-align: super; }
.kpi-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.sectors { display: flex; flex-direction: column; gap: 12px; }
.sectors-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.sector-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

/* ============================================================
   PAGE HEADER — used on sub-pages (compact)
   ============================================================ */
.page-header {
  position: relative;
  background: var(--navy-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(60px, 10vh, 100px);
}
.page-header-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.78) brightness(0.45);
  z-index: -2;
}
.page-header-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,31,56,0.85) 0%, rgba(12,31,56,0.45) 50%, rgba(12,31,56,0.85) 100%);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.breadcrumb a:hover { border-color: currentColor; color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.page-title em { font-style: italic; color: var(--rust-soft); }
.page-sub {
  margin-top: 24px;
  max-width: 620px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

/* ============================================================
   SECTIONS / PROSE
   ============================================================ */
section { padding-top: clamp(80px, 10vh, 140px); padding-bottom: clamp(80px, 10vh, 140px); }
section.tight { padding-top: clamp(60px, 8vh, 100px); padding-bottom: clamp(60px, 8vh, 100px); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}
.section-head .lead { color: var(--ink-2); font-size: 16px; max-width: 52ch; line-height: 1.65; }
.section-head.on-dark .lead { color: rgba(255,255,255,0.75); }

.prose { color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 64ch; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.015em; line-height: 1.15; margin: 1.8em 0 0.5em; color: var(--ink); }
.prose h4 { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); margin: 1.8em 0 0.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }

.dropcap p:first-child::first-letter,
.prose.dropcap p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  float: left;
  line-height: 0.9;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--rust);
  font-style: italic;
}

/* Side-by-side prose + media */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 980px) {
  .split-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .split-grid.media-first { grid-template-columns: 1fr 1.05fr; }
}
.split-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ============================================================
   SERVICES bento grid
   ============================================================ */
.services { background: var(--white); border-top: 1px solid var(--rule); }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 820px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--white);
  padding: 0;
  display: flex; flex-direction: column;
  transition: background 0.2s;
}
.svc-card:hover { background: var(--paper); }
.svc-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  filter: saturate(0.9) contrast(1.02);
}
.svc-card:hover .svc-img-wrap img { transform: scale(1.04); }
.svc-num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: #fff; background: rgba(12,31,56,0.78); padding: 4px 9px;
}
.svc-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.svc-title { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin: 0; color: var(--navy-2); }
.svc-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin: 0; }
.svc-link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--rule);
}
.svc-link .arr { transition: transform 0.2s ease; }
.svc-card:hover .svc-link .arr { transform: translateX(4px); }

/* About meta-grid */
.about-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.about-meta-cell { background: var(--paper); padding: 18px 20px; display:flex; flex-direction:column; gap:6px; }
.about-meta-cell .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.about-meta-cell .v { font-size: 14px; color: var(--ink); }

/* ============================================================
   CONTRIBUTIONS tabs + cards
   ============================================================ */
.contrib { background: var(--paper); border-top: 1px solid var(--rule); }
.contrib-head { margin-bottom: 32px; }

.tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.tabs-scroll { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--rust); border-bottom-color: var(--rust); }
.tab .tab-count {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  padding: 2px 6px;
  background: var(--paper-2);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.tab.is-active .tab-count { background: rgba(155,23,0,0.1); color: var(--rust); }
.tab .tab-num { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-right: 2px; letter-spacing: 0.06em; opacity: 0.7; }
.tab.is-active .tab-num { color: var(--rust); opacity: 1; }

.panel-wrap { padding-top: 36px; }
.panel { display: none; }
.panel.is-active { display: block; }

.panel-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
  align-items: end;
}
@media (min-width: 800px) { .panel-header { grid-template-columns: 1fr auto; } }
.panel-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy-2);
}
.panel-title em { color: var(--rust); }

.proj-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
  overflow: hidden;
}
@media (min-width: 980px) { .proj-card { grid-template-columns: 1.05fr 1.2fr; } }
.proj-info { padding: 28px 30px; display: flex; flex-direction: column; gap: 18px; }
.proj-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex; align-items: center; gap: 8px;
}
.proj-tag::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.proj-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.proj-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.proj-meta-cell { background: var(--white); padding: 12px 14px; }
.proj-meta-cell .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.proj-meta-cell .v { font-size: 13px; color: var(--ink); }
.proj-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.proj-desc strong { color: var(--ink); font-weight: 600; }

.proj-gallery {
  background: var(--paper-2);
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.proj-gallery.g-1 { grid-template-columns: 1fr; }
.proj-gallery.g-2 { grid-template-columns: 1fr 1fr; }
.proj-gallery.g-3 { grid-template-columns: 1fr 1fr 1fr; }
.proj-gallery.g-4 { grid-template-columns: 1fr 1fr; }
.proj-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-2);
  cursor: zoom-in;
  position: relative;
  border: 0; padding: 0;
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.3s;
  filter: saturate(0.95);
}
.proj-thumb:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1.04); }
.proj-thumb::after {
  content: "↗";
  position: absolute; top: 8px; right: 10px;
  font-family: var(--mono);
  font-size: 16px;
  color: #fff;
  background: rgba(12,31,56,0.7);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.18s;
}
.proj-thumb:hover::after { opacity: 1; }

/* ============================================================
   CERTIFICATIONS strip
   ============================================================ */
.certs { background: var(--navy-2); color: #fff; border-top: 1px solid var(--navy-soft); }
.certs .lead { color: rgba(255,255,255,0.7); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 700px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(5, 1fr); } }
.cert-card {
  background: var(--navy-2);
  padding: 28px 22px 26px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 240px;
  transition: background 0.2s;
}
.cert-card:hover { background: #0a182d; }
.cert-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: rgba(255,255,255,0.45); }
.cert-logo { height: 56px; display: flex; align-items: center; justify-content: flex-start; }
.cert-logo img { max-height: 100%; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.cert-name { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.cert-desc { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.7); margin: 0 0 auto; }
.cert-desc span { display: block; }
.cert-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-soft);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper); border-top: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.contact-lead { color: var(--ink-2); font-size: 16px; max-width: 44ch; margin-top: 18px; line-height: 1.65; }
.contact-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.contact-cards { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.contact-card {
  background: var(--paper);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 16px;
  transition: background 0.18s;
}
.contact-card:hover { background: #fff; }
.contact-card .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); }
.contact-card .v { font-size: 15px; color: var(--ink); line-height: 1.55; }
.contact-card .v a { border-bottom: 1px solid var(--rule-2); }
.contact-card .v a:hover { color: var(--rust); border-color: currentColor; }

/* ============================================================
   CARD FORM — Jotform-style one-question-per-card flow
   ============================================================ */
.cardform {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

/* Progress bar at top */
.cf-progress {
  position: relative;
  height: 4px;
  background: var(--paper-2);
}
.cf-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--rust);
  transition: width 0.4s cubic-bezier(0.2, 0.65, 0.3, 1);
  width: 0%;
}

/* Stage holds cards — grows to fit the active step */
.cf-stage {
  position: relative;
  padding: 48px 56px 36px;
  min-height: 380px;
}
@media (max-width: 700px) {
  .cf-stage { padding: 36px 28px 24px; }
}

/* Each step lives in the normal flow but only the active one renders */
.cf-step { display: none; }
.cf-step.is-active {
  display: block;
  animation: cf-step-in 0.42s cubic-bezier(0.2, 0.65, 0.3, 1);
}
@keyframes cf-step-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Step header */
.cf-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.cf-step-num .arr-down {
  width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  font-size: 10px;
  color: var(--muted);
}
.cf-step-q {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 500;
  text-wrap: balance;
}
.cf-step-q .req { color: var(--rust); font-style: italic; font-size: 0.75em; vertical-align: super; margin-left: 4px; }
.cf-step-help {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 50ch;
}

/* Inputs — large, line-style for premium feel */
.cf-step .cf-input,
.cf-step .cf-textarea,
.cf-step .cf-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.cf-step .cf-input::placeholder,
.cf-step .cf-textarea::placeholder { color: var(--muted-2); }
.cf-step .cf-input:focus,
.cf-step .cf-textarea:focus,
.cf-step .cf-select:focus { border-bottom-color: var(--rust); }
.cf-step .cf-textarea { resize: vertical; min-height: 100px; }
.cf-step .cf-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 10px) center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; cursor: pointer; }

/* Choice cards — radio-like buttons */
.cf-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cf-choice {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px 20px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 14px;
  transition: all 0.18s ease;
  font-family: var(--sans);
  text-align: left;
  font-size: 15px;
  color: var(--ink);
}
.cf-choice:hover {
  border-color: var(--rust);
  background: var(--white);
  transform: translateX(2px);
}
.cf-choice .key {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: all 0.18s ease;
}
.cf-choice:hover .key { background: var(--rust); color: #fff; border-color: var(--rust); }
.cf-choice.is-selected { border-color: var(--rust); background: var(--white); }
.cf-choice.is-selected .key { background: var(--rust); color: #fff; border-color: var(--rust); }
.cf-choice .lbl { font-weight: 500; }
.cf-choice .sub { font-size: 13px; color: var(--muted); margin-top: 2px; display: block; }

/* Action row */
.cf-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cf-next {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--rust);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.18s ease, transform 0.18s ease;
}
.cf-next:hover { background: var(--rust-2); }
.cf-next:disabled { background: var(--rule-2); cursor: not-allowed; }
.cf-next .arr { display: inline-block; transition: transform 0.18s; }
.cf-next:hover:not(:disabled) .arr { transform: translateX(3px); }
.cf-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.cf-hint kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
}
.cf-skip {
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s;
}
.cf-skip:hover { color: var(--rust); }

/* Footer with step pager */
.cf-foot {
  border-top: 1px solid var(--rule);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--paper);
}
.cf-foot-arrows { display: flex; gap: 6px; }
.cf-foot-arrows button {
  width: 28px; height: 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 14px;
  transition: all 0.15s;
}
.cf-foot-arrows button:hover:not(:disabled) { background: var(--rust); color: #fff; border-color: var(--rust); }
.cf-foot-arrows button:disabled { opacity: 0.4; cursor: not-allowed; }
.cf-foot-count strong { color: var(--rust); font-weight: 500; }

/* SUCCESS state */
.cf-success {
  padding: 60px 56px;
  text-align: center;
  display: none;
}
.cf-success.is-visible { display: block; animation: panel-in 0.4s cubic-bezier(0.2, 0.65, 0.3, 1); }
.cf-success-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  display: grid; place-items: center;
  font-size: 24px;
  margin: 0 auto 24px;
}
.cf-success h3 {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: -0.015em; margin: 0 0 12px; color: var(--ink);
}
.cf-success h3 em { color: var(--rust); }
.cf-success p { color: var(--ink-2); font-size: 15.5px; max-width: 46ch; margin: 0 auto 24px; line-height: 1.65; }
@media (max-width: 700px) { .cf-success { padding: 48px 28px; } }

/* ============================================================
   TESTIMONIES — premium client quote section
   ============================================================ */
.testi-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 32px;
}
@media (min-width: 880px) {
  .testi-featured { grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 48px; align-items: center; }
}
.testi-cert-frame {
  background: var(--paper-2);
  padding: 18px;
  border: 1px solid var(--rule-2);
  box-shadow: 0 14px 32px rgba(12,31,56,0.10);
  position: relative;
  overflow: hidden;
}
.testi-cert-frame img { width: 100%; height: auto; display: block; }
.testi-cert-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 6px 10px;
  border: 1px solid var(--rust);
  margin-bottom: 18px;
}
.testi-featured-body h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
}
.testi-featured-body h3 em { color: var(--rust); }
.testi-featured-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) { .testi-grid { grid-template-columns: 1fr 1fr; } }

.testi-card {
  background: var(--white);
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.2s ease;
}
.testi-card:hover { background: var(--paper); }
.testi-quote-mark {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 0.6;
  color: var(--rust);
  opacity: 0.18;
  font-style: italic;
  height: 28px;
  pointer-events: none;
}
.testi-quote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.testi-quote em { font-style: italic; color: var(--rust); }
.testi-meta {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: start;
}
.testi-author {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.testi-title {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.testi-company {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 6px;
}
.testi-date {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  white-space: nowrap;
}

/* Trust band — company names strip */
.trust-band {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.trust-band-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: center;
}
.trust-band-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}
.trust-band-company {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  opacity: 0.78;
}

/* Inline testimonial quote (for use on other pages) */
.inline-testi {
  background: var(--navy-2);
  color: #fff;
  padding: clamp(48px, 8vh, 96px) 0;
  position: relative;
  border-top: 1px solid var(--navy-soft);
  border-bottom: 1px solid var(--navy-soft);
}
.inline-testi-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.inline-testi-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.inline-testi-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--rust);
  opacity: 0.9;
}
.inline-testi-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}
.inline-testi-quote em { font-style: italic; color: var(--rust-soft); }
.inline-testi-meta {
  display: inline-flex; flex-direction: column; gap: 4px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
}
.inline-testi-meta .name { font-weight: 700; }
.inline-testi-meta .company { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-soft); margin-top: 4px; }

/* ============================================================
   FOOTER (sitemap)
   ============================================================ */
.foot {
  background: var(--navy-2);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.foot a { color: rgba(255,255,255,0.7); transition: color 0.18s; }
.foot a:hover { color: #fff; }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-brand .brand-name, .foot-brand .brand-name span { color: #fff; }
.foot-brand .brand-mark { background: #fff; color: var(--navy-2); }
.foot-brand .brand-icon { width: 64px; height: 64px; }
.foot-brand .brand-name { font-size: 17px; letter-spacing: 0.06em; }
.foot-brand .brand-name span { font-size: 13px; margin-top: 2px; }
.foot-blurb { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 32ch; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: all 0.18s;
}
.foot-social a svg { display: block; }
.foot-social a:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lbx {
  position: fixed; inset: 0;
  background: rgba(8,14,28,0.92);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 5vh 4vw;
  backdrop-filter: blur(6px);
}
.lbx.is-open { display: flex; }
.lbx-stage { position: relative; max-width: 1200px; width: 100%; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lbx-img { max-width: 100%; max-height: 78vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: #000; }
.lbx-meta {
  position: absolute; bottom: -44px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.lbx-cap { color: rgba(255,255,255,0.85); text-transform: uppercase; }
.lbx-counter { color: rgba(255,255,255,0.55); }
.lbx-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 22px;
  display: grid; place-items: center;
  transition: all 0.18s;
}
.lbx-btn:hover { background: var(--rust); border-color: var(--rust); }
.lbx-prev { left: -68px; }
.lbx-next { right: -68px; }
.lbx-close {
  position: absolute; top: -52px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 18px;
  display: grid; place-items: center;
  transition: all 0.18s;
}
.lbx-close:hover { background: var(--rust); border-color: var(--rust); }
@media (max-width: 800px) {
  .lbx-prev { left: 8px; }
  .lbx-next { right: 8px; }
  .lbx-close { top: 12px; right: 12px; }
  .lbx-meta { position: static; margin-top: 14px; }
}

/* ============================================================
   INSPECTION GALLERY — equipment grid (50 cards)
   ============================================================ */
.eq-search {
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.eq-search input {
  flex: 1;
  min-width: 280px;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  outline: none;
  transition: border-color 0.15s;
}
.eq-search input:focus { border-color: var(--rust); }
.eq-search-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eq-search-meta strong { color: var(--rust); font-weight: 500; }

.eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.eq-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: background 0.18s;
}
.eq-card:hover { background: var(--paper); }
.eq-card .eq-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-2);
  position: relative;
}
.eq-card .eq-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
  filter: saturate(0.85);
}
.eq-card:hover .eq-img img { transform: scale(1.05); filter: saturate(1); }
.eq-card .eq-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,31,56,0.0) 50%, rgba(12,31,56,0.6) 100%);
  pointer-events: none;
}
.eq-card .eq-name {
  position: relative;
  padding: 16px 18px 18px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--rule);
}
.eq-card:hover .eq-name { color: var(--rust); }
.eq-card .eq-arr {
  font-family: var(--mono);
  color: var(--muted);
  transition: transform 0.2s, color 0.15s;
}
.eq-card:hover .eq-arr { color: var(--rust); transform: translateX(3px); }
.eq-card.is-hidden { display: none; }

/* ============================================================
   INDUSTRIES — large image cards
   ============================================================ */
.ind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 820px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
.ind-card {
  background: var(--white);
  display: flex; flex-direction: column;
  transition: background 0.2s;
}
.ind-card:hover { background: var(--paper); }
.ind-card .ind-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.ind-card .ind-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; filter: saturate(0.85) contrast(1.02); }
.ind-card:hover .ind-img img { transform: scale(1.04); }
.ind-card .ind-num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: #fff;
  background: rgba(12,31,56,0.78);
  padding: 4px 9px;
}
.ind-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ind-title { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; line-height: 1.1; margin: 0; color: var(--navy-2); }
.ind-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin: 0; }

/* ============================================================
   CHECKLIST — used on equipment pages
   ============================================================ */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 780px) { .checklist { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
.checklist-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 20px 0;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.checklist-item .ci-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 3px;
}
.checklist-item .ci-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* Equipment detail — project blocks */
.detail-section { background: var(--paper); border-top: 1px solid var(--rule); }
.detail-proj {
  background: var(--white);
  border: 1px solid var(--rule);
  margin-bottom: 28px;
  overflow: hidden;
}
.detail-proj-head {
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: var(--navy-2);
  color: #fff;
}
@media (min-width: 800px) { .detail-proj-head { grid-template-columns: 1fr auto; align-items: center; gap: 20px; } }
.detail-proj-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.detail-proj-name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.15; margin: 4px 0 0; color: #fff; }
.detail-proj-date { font-family: var(--mono); font-size: 12px; color: var(--rust-soft); letter-spacing: 0.04em; white-space: nowrap; }
.detail-item {
  padding: 24px 28px;
  border-top: 1px solid var(--rule);
}
.detail-item:first-of-type { border-top: 0; }
.detail-item-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 10px;
}
.detail-item p { margin: 0 0 0.8em; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.detail-item p strong { color: var(--ink); font-weight: 600; }
.detail-gallery {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.detail-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-2);
  cursor: zoom-in;
  position: relative;
  border: 0; padding: 0;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.detail-thumb:hover img { transform: scale(1.05); }

/* ============================================================
   404 / coming-soon
   ============================================================ */
.center-pad {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px var(--pad);
}
.center-pad-inner { max-width: 540px; }
.center-pad .big {
  font-family: var(--serif);
  font-size: clamp(60px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--rust);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   MOTION — premium-feel animation layer
   Uses transforms + opacity only (GPU-accelerated).
   Respects prefers-reduced-motion.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05s !important;
  }
  html.motion-ready .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Scroll-reveal: hidden only when JS marks the page motion-ready --- */
html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.motion-ready .reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* --- Hero entrance — staggered fade-up on load --- */
html.motion-ready .hero-top > *,
html.motion-ready .hero-bottom > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.85s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}
html.motion-ready .hero-top > *:nth-child(1) { animation-delay: 0.10s; }
html.motion-ready .hero-top > *:nth-child(2) { animation-delay: 0.22s; }
html.motion-ready .hero-top > *:nth-child(3) { animation-delay: 0.40s; }
html.motion-ready .hero-top > *:nth-child(4) { animation-delay: 0.55s; }
html.motion-ready .hero-bottom > *:nth-child(1) { animation-delay: 0.70s; }
html.motion-ready .hero-bottom > *:nth-child(2) { animation-delay: 0.85s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* --- Ken-Burns on hero background photo --- */
html.motion-ready .hero-photo {
  animation: ken-burns 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ken-burns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1.5%, -1%); }
}

/* --- Sub-page header — gentle fade in on load --- */
html.motion-ready .page-title,
html.motion-ready .page-sub,
html.motion-ready .breadcrumb {
  opacity: 0;
  transform: translateY(14px);
  animation: page-header-in 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}
html.motion-ready .breadcrumb { animation-delay: 0.05s; }
html.motion-ready .page-title { animation-delay: 0.15s; }
html.motion-ready .page-sub   { animation-delay: 0.30s; }
@keyframes page-header-in { to { opacity: 1; transform: none; } }

/* --- Card hover lift — premium elevation cue --- */
.svc-card,
.eq-card,
.ind-card,
.cert-card,
.proj-card,
.contact-card {
  transition:
    background 0.2s ease,
    transform 0.4s cubic-bezier(0.2, 0.65, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.svc-card:hover,
.eq-card:hover,
.ind-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12, 31, 56, 0.08);
}
.contact-card:hover { transform: translateX(2px); }

/* --- Cert card hover — gentle background brighten only (no lift to keep grid aligned) --- */
.cert-card { transition: background 0.25s ease; }

/* --- Brand mark — subtle hover on logo --- */
.brand-logo,
.brand-icon {
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.brand:hover .brand-logo,
.brand:hover .brand-icon { opacity: 0.85; }

/* --- Contribution tab panel — fade between --- */
.panel.is-active {
  animation: panel-in 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* --- Nav dropdown — soft drop --- */
.nav-dropdown {
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  transform-origin: top center;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.65, 0.3, 1),
    visibility 0s linear 0.22s;
  pointer-events: none;
}
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.65, 0.3, 1),
    visibility 0s linear 0s;
  pointer-events: auto;
}

/* --- Lightbox — fade overlay + scale-in image --- */
.lbx {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s,
    backdrop-filter 0.25s ease;
}
.lbx.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s linear 0s, backdrop-filter 0.25s ease;
}
.lbx-img {
  transform: scale(0.96);
  transition: transform 0.32s cubic-bezier(0.2, 0.65, 0.3, 1);
  will-change: transform;
}
.lbx.is-open .lbx-img { transform: scale(1); }

/* --- Topbar — subtle shadow when scrolled --- */
.topbar {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.topbar.is-scrolled {
  box-shadow: 0 6px 22px rgba(12, 31, 56, 0.06);
}

/* --- Buttons — refined arrow easing already present, reinforce focus visibility --- */
.btn:focus-visible,
.nav-cta:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
