/* =========================================================
   ProDims — Industrial bold + tech dashboard
   ========================================================= */

:root {
  --accent-h: 18;          /* OKLCH hue — red-leaning, tweakable */
  --accent-c: 0.19;
  --accent-l: 0.52;
  --accent: oklch(var(--accent-l) var(--accent-c) var(--accent-h));
  --accent-soft: oklch(0.58 0.16 var(--accent-h));
  --accent-dim: oklch(0.28 0.08 var(--accent-h) / 0.35);
  --accent-glow: oklch(0.62 0.2 var(--accent-h) / 0.18);

  /* DARK palette */
  --bg: oklch(0.14 0.005 30);
  --bg-1: oklch(0.17 0.006 30);
  --bg-2: oklch(0.21 0.008 30);
  --bg-3: oklch(0.26 0.008 30);
  --bg-soft: oklch(0.17 0.006 30);
  --line: oklch(0.32 0.008 30);
  --line-soft: oklch(0.26 0.008 30);
  --fg: oklch(0.97 0.005 80);
  --fg-dim: oklch(0.78 0.005 80);
  --fg-mute: oklch(0.58 0.008 80);

  --grid-rgb: 255 255 255;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;

  --step: 16px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
}

:root[data-theme="light"] {
  --bg: oklch(0.985 0.003 80);
  --bg-1: oklch(0.97 0.004 80);
  --bg-2: oklch(0.94 0.005 80);
  --bg-3: oklch(0.9 0.006 80);
  --bg-soft: oklch(0.965 0.004 80);
  --line: oklch(0.86 0.005 80);
  --line-soft: oklch(0.92 0.004 80);
  --fg: oklch(0.15 0.008 60);
  --fg-dim: oklch(0.35 0.006 60);
  --fg-mute: oklch(0.52 0.006 60);
  --grid-rgb: 0 0 0;
  --accent-dim: oklch(0.88 0.05 var(--accent-h) / 0.6);
  --accent-glow: oklch(0.7 0.15 var(--accent-h) / 0.12);
}

* { box-sizing: border-box; letter-spacing: 0 !important; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
:root[data-theme="light"] { color-scheme: light; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

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

/* ------- Layout helpers ------- */
.container {
  width: min(100%, 1400px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}
.container--wide { width: min(100%, 1560px); }
.container--narrow { width: min(100%, 1100px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.container--read { width: min(100%, 760px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }

/* ------- Type ------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { display: none; }
.eyebrow--nodash::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-size: 5.75rem;
  line-height: 0.95;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-xl {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-lg {
  font-family: var(--font-display);
  font-size: 2.125rem;
  line-height: 1.1;
  font-weight: 600;
  margin: 0;
}
.h-md {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
}

.text-serif-accent {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--accent-soft);
}

.mono { font-family: var(--font-mono); }
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.accent { color: var(--accent-soft); }

p { margin: 0 0 1em; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--fg-dim); background: var(--bg-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn--primary:hover { background: oklch(0.46 var(--accent-c) var(--accent-h)); border-color: oklch(0.46 var(--accent-c) var(--accent-h)); }
.btn--ghost { border-color: transparent; color: var(--fg-dim); }
.btn--ghost:hover { color: var(--fg); background: var(--bg-2); }
.btn--sm { padding: 9px 14px; font-size: 12px; }

.arrow-icon {
  width: 14px; height: 14px;
  transition: transform 180ms ease;
}
.icon--back { transform: rotate(180deg); }
.btn:hover .arrow-icon { transform: translate(2px, -2px); }

/* Shared navigation and content affordances. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; color: #fff; background: var(--accent); clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }
.footer__action { display: block; padding: 0; border: 0; background: none; font-size: 14px; color: var(--fg-dim); cursor: pointer; text-align: left; }
.footer__action:hover { color: var(--accent); }
.selected-work .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.selected-work .project-card { grid-column: auto; min-height: 0; border: 0; border-radius: 0; overflow: visible; }
.selected-work .project-card__img { flex: none; aspect-ratio: 3 / 2; min-height: 0; border-radius: 4px; }
.selected-work .project-card:hover .project-card__img { transform: none; }
.selected-work .project-card__body { padding: 16px 0 20px; border-top: 0; border-bottom: 1px solid var(--line); }
.selected-work .project-card__title { min-height: 2.5em; font-size: 19px; line-height: 1.3; text-wrap: pretty; }
.selected-work .project-card:hover .project-card__title { color: var(--accent); }
.contact-band .h-xl { max-width: 20ch; }

/* ------- Grid textures (disabled — page wallpaper felt template-coded) ------- */
.blueprint,
.blueprint-fine {
  background-image: none;
}

/* ========================= NAV ========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg), transparent 10%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 18px;
}
.logo__mark {
  width: 180px;
  display: flex;
  align-items: center;
  position: relative;
}
.official-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 14px;
  color: var(--fg-dim);
  transition: all 160ms ease;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}
.nav__link:hover { color: var(--fg); background: var(--bg-2); }
.nav__link.is-active {
  color: var(--fg);
  background: var(--bg-2);
}
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  place-items: center;
  cursor: pointer;
}

.live-pill {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.live-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ========================= HERO ========================= */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { display: none; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 6.5rem;
  line-height: 0.93;
  font-weight: 600;
  margin: 0 0 32px;
}
.hero__title .accent-red { color: var(--accent-soft); }
.hero__title .italic {
  font-family: inherit;
  font-style: normal;
  color: var(--accent-soft);
  font-weight: 400;
  letter-spacing: 0;
}
.hero__lede {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
  overflow: hidden;
}
.hero__ticker-inner {
  display: flex;
  gap: 56px;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero__ticker-inner span { display: inline-flex; align-items: center; gap: 10px; }
.hero__ticker-inner span::before {
  content: "·"; color: var(--fg-mute); font-size: 11px; margin-right: 4px;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* The first viewport leads with a real project, with copy over open sky. */
.hero--photographic { padding: 0; }
.hero__scene { position: relative; isolation: isolate; height: min(700px, calc(100svh - 170px)); min-height: 500px; background: #d6e3eb; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; z-index: -2; }
.hero__scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #ffffffde, #ffffff80 35%, transparent 66%, #10191875); }
.hero__content { padding-top: 36px; color: #171717; }
.hero--photographic .hero__meta { margin: 0 0 20px; font-size: 12px; font-weight: 500; }
.hero--photographic .hero__title { max-width: 960px; font-size: 60px; line-height: 1.06; font-weight: 600; margin: 0; text-wrap: initial; }
.hero--photographic .hero__lede { margin: 20px 0 24px; max-width: 52ch; font-size: 17px; line-height: 1.5; color: #292d2e; }
.hero--photographic .hero__cta { align-items: center; gap: 24px; }
.hero__services-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding-block: 12px; border-bottom: 1px solid #17171760; }
.hero__services-link:hover { color: var(--accent); border-color: var(--accent); }
.hero__caption { position: absolute; inset: auto 0 24px; color: #fff; }
.hero__caption a { display: inline-flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; text-shadow: 0 1px 4px #0008; }
.hero__caption a > span:last-child { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 400; }
.hero__clients { border-bottom: 1px solid var(--line); background: var(--bg); }
.hero__clients-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding-block: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.hero__clients-label { color: var(--fg-mute); font-size: 11px; font-weight: 400; }

/* ---------- Hero takeoff→estimate→schedule demo ---------- */
.hero-demo {
  display: grid;
  gap: 12px;
  font-family: var(--font-sans);
}
.hero-demo__top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 12px;
}
.hero-demo__drawing,
.hero-demo__ledger,
.hero-demo__schedule {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.hero-demo__stage-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-demo__step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  background: var(--accent-dim);
  border: 1px solid var(--accent-soft);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.hero-demo__step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.hero-demo__step-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-top: 2px;
}
.hero-demo__canvas {
  height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 60%, var(--bg) 0%, var(--bg-1) 70%);
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  color: var(--fg);
}
.hero-demo__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.hero-demo__ledger-body {
  display: flex;
  flex-direction: column;
  height: 220px;
}
.hero-demo__ledger-head,
.hero-demo__row {
  display: grid;
  grid-template-columns: 60px 1.6fr 0.9fr 0.7fr 0.8fr;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.hero-demo__ledger-head {
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-demo__ledger-rows {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-demo__row {
  padding: 6px 8px;
  border-bottom: 1px dashed var(--line-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 400ms ease, transform 400ms ease, background 160ms ease;
  color: var(--fg-dim);
}
.hero-demo__row.is-in {
  opacity: 1;
  transform: translateX(0);
}
.hero-demo__row.is-hover {
  background: var(--bg-2);
  color: var(--fg);
}
.hero-demo__row-code { color: var(--accent-soft); }
.hero-demo__row-name { color: var(--fg); font-family: var(--font-sans); font-size: 12px; }
.hero-demo__row-qty em { color: var(--fg-mute); font-style: normal; font-size: 9px; letter-spacing: 0.08em; }
.hero-demo__row-total { text-align: right; color: var(--fg); font-weight: 500; }
.hero-demo__row-rate { color: var(--fg-dim); }

.hero-demo__ledger-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-demo__ledger-total-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-soft);
  text-transform: none;
}

/* Gantt */
.hero-demo__schedule-legend {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-demo__schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend-sw--crit { background: var(--accent); }
.legend-sw--norm { background: var(--fg-dim); }
.legend-sw--float { background: transparent; border: 1px dashed var(--fg-mute); }

.hero-demo__gantt {
  position: relative;
  padding-top: 22px;
}
.hero-demo__gantt-axis {
  position: absolute;
  top: 2px; left: 138px; right: 0;
  height: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-demo__gantt-axis span {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}
.hero-demo__gantt-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  align-items: center;
  height: 22px;
  position: relative;
}
.hero-demo__gantt-row:hover,
.hero-demo__gantt-row.is-hover { background: var(--bg-2); }
.hero-demo__gantt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: var(--font-sans);
}
.hero-demo__gantt-id {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-mute);
}
.hero-demo__gantt-track {
  position: relative;
  height: 100%;
}
.hero-demo__gantt-bar {
  position: absolute;
  top: 4px; bottom: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 180ms ease;
}
.hero-demo__gantt-row.is-hover .hero-demo__gantt-bar { transform: scaleY(1.2); }
.hero-demo__gantt-bar.is-crit {
  background: var(--accent-dim);
  border-color: var(--accent-soft);
}
.hero-demo__gantt-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--fg-dim);
  transition: width 280ms ease;
}
.hero-demo__gantt-bar.is-crit .hero-demo__gantt-bar-fill { background: var(--accent); }
.hero-demo__gantt-bar-label {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg);
  mix-blend-mode: difference;
  letter-spacing: 0.04em;
}
.hero-demo__gantt-dep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---------- Hero dashboard (legacy, kept for fullbleed variant swap) ---------- */
.dash {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgb(var(--grid-rgb) / 0.04) inset,
    0 30px 60px -30px rgb(0 0 0 / 0.5);
}
:root[data-theme="light"] .dash {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 1px 2px rgb(0 0 0 / 0.04),
    0 30px 60px -30px rgb(0 0 0 / 0.15);
}
.dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.dash__head-title {
  display: flex; align-items: center; gap: 10px; color: var(--fg-dim);
}
.dash__dots { display: inline-flex; gap: 5px; }
.dash__dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg-3);
}

.dash__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.dash__card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.dash__card--span2 { grid-column: 1 / -1; }
.dash__card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.dash__card-value {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 600;
}
.dash__card-value .unit {
  font-size: 13px;
  color: var(--fg-mute);
  font-weight: 400;
  margin-left: 4px;
}
.dash__card-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: oklch(0.72 0.14 145);
  margin-top: 4px;
}
.dash__card-delta.neg { color: oklch(0.7 0.16 28); }

.schedule {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  gap: 10px 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.schedule__label { color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule__bar {
  position: relative;
  height: 8px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
}
.schedule__bar-fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--accent-soft);
  border-radius: 4px;
}
.schedule__bar-fill.planned {
  background: repeating-linear-gradient(45deg, var(--bg-3), var(--bg-3) 4px, transparent 4px, transparent 8px);
  border: 1px solid var(--line);
}
.schedule__pct { text-align: right; color: var(--fg-dim); }

.sparkline { height: 48px; width: 100%; margin-top: 8px; }

.inspections {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.inspections__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.status-dot.ok { background: oklch(0.65 0.18 145); }
.status-dot.warn { background: oklch(0.78 0.16 78); }
.status-dot.fail { background: oklch(0.6 0.22 28); }
.status-dot.pending { background: oklch(0.6 0.04 80); }

/* ========================= SECTION ========================= */
.section {
  padding: clamp(72px, 9vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 90px) 0; }
.section--bg { background: var(--bg-1); }
.section--dark { background: oklch(0.09 0.005 30); color: oklch(0.97 0.005 80); }
.section--dark .dim { color: oklch(0.82 0.006 80); }
.section--dark .section__head-body { color: oklch(0.84 0.006 80); }
.section--dark .mono-label { color: oklch(0.72 0.01 80); }
.section--dark .cert__org { color: oklch(0.74 0.005 80); }
.section--dark .cert__code { color: oklch(0.72 0.13 var(--accent-h)); }

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head-title { max-width: 22ch; }
.section__head-body {
  max-width: 58ch;
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.55;
  justify-self: end;
}

/* ========================= SERVICES ========================= */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.services__card {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px 16px;
  border-top: 1px solid var(--line);
  min-height: 232px;
  position: relative;
  transition: background 200ms ease;
}
.services__card:hover .services__card-title { color: var(--accent); }
.services__card > div:first-child { grid-column: 1; grid-row: 1 / 4; }
.services__card-title, .services__card-desc, .services__card-footer { grid-column: 2; }
.services__card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}
.services__card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}
.services__card-desc {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.services__card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.services__card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none;
  border-radius: 0;
  color: var(--accent-soft);
}

/* ========================= STATS ========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.stat {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 5.25rem;
  line-height: 0.95;
  font-weight: 600;
  margin: 0 0 4px;
}
.stat__value .unit {
  font-size: 0.35em;
  color: var(--accent-soft);
  vertical-align: super;
  margin-left: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.stat__desc {
  color: var(--fg-dim);
  font-size: 14px;
  max-width: 28ch;
  line-height: 1.5;
}
.stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 2px;
  background: var(--accent);
}

/* ========================= FEATURED PROJECT ========================= */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-1);
}
.featured__image {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.featured__image::after {
  display: none;
}
.featured__image-tag {
  display: none;
}
.featured__body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.featured__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.05;
  font-weight: 600;
  margin: 12px 0 16px;
}
.featured__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
.featured__meta-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.featured__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 4px;
}
.featured__meta-value {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}

/* ========================= PROJECT GRID ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 180ms ease;
  min-height: 280px;
}
.project-card:hover { border-color: var(--fg-mute); }
.project-card--wide { grid-column: span 8; min-height: 380px; }
.project-card--sm   { grid-column: span 4; min-height: 280px; }
.project-card--md   { grid-column: span 6; min-height: 340px; }
.project-card--lg   { grid-column: span 7; min-height: 420px; }
.project-card--lg-small { grid-column: span 5; min-height: 420px; }
.project-card__img {
  flex: 1 1 auto;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  transition: transform 400ms ease;
}
.project-card:hover .project-card__img { transform: scale(1.02); }
.project-card__overlay { display: none; }
.project-card__body {
  flex: 0 0 auto;
  padding: 18px 20px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--fg);
}
.project-card__sector {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0 0 8px;
  text-wrap: balance;
  color: var(--fg);
}
.project-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.project-card__pill-stat { display: none; }
.project-card__pill-stat strong { display: none; }

/* ========================= ABOUT STORY (page landing) ========================= */
.about-storyband {
  background: var(--bg);
  color: var(--fg);
  padding: 56px 0 72px;
}
.about-storyband__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-storyband__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.about-storyband__mark {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.about-storyband__mark-num {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 10vw, 8rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.about-storyband__mark-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  padding-bottom: 8px;
}
.about-storyband__lineage {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.about-storyband__node {
  position: relative;
  padding: 0 0 22px 22px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.about-storyband__node:last-child { padding-bottom: 0; }
.about-storyband__node.is-in {
  opacity: 1;
  transform: none;
}
.about-storyband__node::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
}
.about-storyband__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.about-storyband__note {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-dim);
  max-width: 28ch;
}
.about-storyband__main {
  padding-top: 4px;
}
.about-story__leads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 6.8em;
}
.about-story__lead {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--fg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.about-story__lead.is-in {
  opacity: 1;
  transform: none;
}
.about-story__dots {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--fg-mute);
  opacity: 0;
  transition: opacity 280ms ease;
}
.about-story__dots.is-in { opacity: 1; }
.about-story__copy {
  margin-top: 24px;
  max-width: 58ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms ease, transform 450ms ease;
}
.about-story__copy.is-in {
  opacity: 1;
  transform: none;
}
.about-story__bridge {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
}
.about-story__quote { min-height: 9em; }
.about-story__quote p {
  margin: 0 0 1.15em;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  white-space: pre-wrap;
}
.about-story__quote p:last-child { margin-bottom: 0; }
.about-story__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--fg);
  animation: about-caret 1s steps(1) infinite;
}

/* Project detail typed brief (same caret rhythm as About story) */
.project-story {
  padding: clamp(48px, 7vw, 80px) 0;
}
.project-story__label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 8px;
  background: oklch(0.94 0.005 80 / 0.85);
  border: 1px solid oklch(0.88 0.006 80 / 0.95);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.project-story__quote {
  max-width: min(92ch, 100%);
  min-height: 4.5em;
}
.project-story__quote p {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.65;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  white-space: pre-wrap;
}
@media (prefers-reduced-motion: reduce) {
  .project-story .about-story__caret { display: none; }
}

/* Project detail — more projects slider */
.project-rail__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.project-rail__row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: center;
}
.project-rail__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0 0 3px;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.project-rail__btn:hover:not(:disabled) {
  background: var(--bg-soft);
  border-color: var(--fg-mute);
}
.project-rail__btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.project-rail__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 4px;
}
.project-rail__track::-webkit-scrollbar { display: none; }
.project-rail__card {
  flex: 0 0 calc((100% - 16px) / 2);
  scroll-snap-align: start;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  transition: border-color 160ms ease;
}
.project-rail__card:hover {
  border-color: var(--fg-mute);
}
.project-rail__thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.project-rail__meta {
  padding: 16px 18px 18px;
}
.project-rail__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 700px) {
  .project-rail__row {
    grid-template-columns: 34px 1fr 34px;
    gap: 8px;
  }
  .project-rail__btn {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .project-rail__card {
    flex: 0 0 100%;
  }
  .project-rail__thumb {
    height: 140px;
  }
}
@keyframes about-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.about-story__by {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  opacity: 0;
  transition: opacity 400ms ease;
}
.about-story__by.is-in { opacity: 1; }

@media (max-width: 960px) {
  .about-storyband__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-storyband__mark-num { font-size: 5rem; }
  .about-storyband__note { max-width: none; }
  .about-story__leads { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .about-storyband__node,
  .about-story__lead,
  .about-story__dots,
  .about-story__copy,
  .about-story__by {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about-story__caret { display: none; }
}

/* ========================= HQ SPLIT (scroll offices) ========================= */
@keyframes hq-rainfall { from { background-position: 0 0; } to { background-position: -140px 900px; } }
@keyframes hq-drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes hq-shimmer {
  0%, 100% { opacity: 0.18; transform: translateY(0); }
  50% { opacity: 0.42; transform: translateY(-6px); }
}
@keyframes hq-pulseRing {
  0% { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes hq-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hq-split {
  --hq-bg: #F3F2F0;
  --hq-ink: #141412;
  --hq-mute: #6B6862;
  --hq-line: #E0DEDA;
  --hq-red: #B0102B;
  color: var(--hq-ink);
  font-family: var(--font-display);
  background: var(--hq-bg);
}
.hq-track {
  position: relative;
  height: 600vh;
}
.hq-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--hq-bg);
  --p: 0;
  --split: 0;
  --par: 0;
  --info: 0;
  --card: 0;
  --seam: 0;
}
.hq-panel {
  position: absolute;
  top: 0;
  width: 50.05%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
}
.hq-panel--left {
  left: 0;
  background: linear-gradient(#F3F8F4, #E3EFE6);
  transform: translateX(calc((var(--split) - 1) * 100%));
}
.hq-panel--right {
  right: 0;
  background: linear-gradient(#FAF3F3, #F1E3E5);
  transform: translateX(calc((1 - var(--split)) * 100%));
}
.hq-panel__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hq-panel__art--far { transform: translateY(calc(var(--par) * -14px)) scale(1.02); }
.hq-panel__art--mid { transform: translateY(calc(var(--par) * -46px)); }
.hq-panel__art--near { transform: translateY(calc(var(--par) * -92px)); }
.hq-panel--right .hq-panel__art--far { transform: translateY(calc(var(--par) * -12px)); }
.hq-panel--right .hq-panel__art--mid { transform: translateY(calc(var(--par) * -44px)); }
.hq-panel--right .hq-panel__art--near { transform: translateY(calc(var(--par) * -90px)); }

.hq-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc(0.55 * var(--par));
  background-image: repeating-linear-gradient(104deg, rgba(26,77,50,0) 0 7px, rgba(26,77,50,.14) 7px 8px);
  animation: hq-rainfall 1.1s linear infinite;
}
.hq-mist {
  position: absolute;
  left: 0; right: 0;
  bottom: 24%;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(243,248,244,.85), transparent);
  animation: hq-drift 14s ease-in-out infinite alternate;
}
.hq-heat {
  position: absolute;
  left: 0; right: 0;
  bottom: 26%;
  height: 16%;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(176,16,43,.16) 0 2px, transparent 2px 12px);
  animation: hq-shimmer 3.6s ease-in-out infinite;
}
.hq-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  pointer-events: none;
}
.hq-panel--left .hq-fade {
  background: linear-gradient(transparent, rgba(243,248,244,.42) 34%, rgba(243,248,244,.86));
}
.hq-panel--right .hq-fade {
  background: linear-gradient(transparent, rgba(250,243,243,.42) 34%, rgba(250,243,243,.86));
}

.hq-panel__content {
  position: absolute;
  inset: 0;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  z-index: 2;
}
.hq-panel--right .hq-panel__content {
  align-items: flex-end;
  text-align: right;
}
.hq-info {
  opacity: var(--info);
  transform: translateY(calc((1 - var(--info)) * 42px));
}
.hq-info__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em !important;
  color: var(--hq-red);
  text-transform: uppercase;
}
.hq-info__city {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em !important;
  line-height: 1;
  margin-top: 14px;
}
.hq-info__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em !important;
  color: #3D3B37;
  margin-top: 16px;
  text-transform: uppercase;
}
.hq-card {
  opacity: var(--card);
  transform: translateY(calc((1 - var(--card)) * 26px));
  background: rgba(246,250,247,.88);
  border: 1px solid #CBE3D2;
  border-radius: 6px;
  padding: 22px 24px;
  max-width: 520px;
  backdrop-filter: blur(4px);
}
.hq-panel--right .hq-card {
  background: rgba(250,246,246,.92);
  border-color: #E3CBCE;
}
.hq-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em !important;
  color: var(--hq-mute);
  text-transform: uppercase;
}
.hq-card__focus {
  font-size: 16px;
  margin-top: 8px;
  color: #23231F;
}
.hq-card__rule {
  height: 1px;
  background: #D6E9DC;
  margin: 18px 0;
}
.hq-panel--right .hq-card__rule { background: #E9D6D8; }
.hq-card__stats {
  display: flex;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #3D3B37;
}
.hq-panel--right .hq-card__stats { justify-content: flex-end; }

.hq-divide {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--hq-red);
  transform: translateX(-0.5px) scaleY(var(--split));
  transform-origin: 50% 50%;
  z-index: 6;
}
.hq-seam {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  opacity: var(--seam);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hq-seam__line {
  width: 1px;
  height: 56px;
  background: var(--hq-red);
  opacity: 0.4;
}
.hq-seam__badge {
  background: var(--hq-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em !important;
  padding: 8px 12px;
  border-radius: 3px;
  white-space: nowrap;
}

.hq-intro {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  pointer-events: none;
  opacity: calc(1 - var(--split));
  transform: scale(calc(1 - var(--split) * 0.12));
}
.hq-intro__pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}
.hq-intro__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--hq-red);
  border-radius: 50%;
  animation: hq-pulseRing 3s ease-out infinite;
}
.hq-intro__ring:nth-child(2) { animation-delay: 1.5s; }
.hq-intro__dot {
  width: 12px;
  height: 12px;
  background: var(--hq-red);
  border-radius: 50%;
  animation: hq-bob 4s ease-in-out infinite;
}
.hq-intro__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em !important;
  color: var(--hq-mute);
  text-transform: uppercase;
}
.hq-intro__title {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.04em !important;
  line-height: 0.94;
  text-align: center;
}
.hq-intro__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em !important;
  color: var(--hq-red);
  text-transform: uppercase;
}
.hq-chip {
  position: absolute;
  top: 26px;
  left: 0; right: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  opacity: var(--split);
}
.hq-chip span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em !important;
  color: var(--hq-mute);
  background: rgba(250,249,247,.8);
  border: 1px solid var(--hq-line);
  border-radius: 999px;
  padding: 9px 18px;
  text-transform: uppercase;
}
.hq-progress {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
}
.hq-progress__track {
  width: 180px;
  height: 2px;
  background: #D9D6D1;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.hq-progress__fill {
  position: absolute;
  inset: 0;
  background: var(--hq-red);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
}

.hq-together {
  border-top: 1px solid var(--hq-line);
  background: #FAF9F7;
  padding: clamp(56px, 9vw, 140px) clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hq-together__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em !important;
  color: var(--hq-mute);
  text-transform: uppercase;
}
.hq-together__title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em !important;
  line-height: 1.02;
  margin-top: 18px;
  max-width: 14ch;
}
.hq-together__body {
  font-size: 18px;
  line-height: 1.6;
  color: #3D3B37;
  max-width: 52ch;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .hq-track { height: 480vh; }
  .hq-card__stats { flex-wrap: wrap; gap: 12px 20px; }
  .hq-intro__title { font-size: clamp(36px, 11vw, 56px); }
  .hq-seam__badge { font-size: 10px; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-track { height: auto; }
  .hq-stage {
    position: relative;
    height: auto;
    min-height: 100vh;
    --split: 1;
    --par: 1;
    --info: 1;
    --card: 1;
    --seam: 1;
    --p: 1;
  }
  .hq-panel--left,
  .hq-panel--right { position: relative; width: 100%; transform: none; }
  .hq-stage { display: flex; flex-direction: column; }
  .hq-intro,
  .hq-divide,
  .hq-seam,
  .hq-chip,
  .hq-progress,
  .hq-rain,
  .hq-mist,
  .hq-heat { display: none; }
  .hq-info, .hq-card { opacity: 1; transform: none; }
}

/* ========================= CERTS ========================= */
.certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cert {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  text-transform: uppercase;
}
.cert__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.cert__org {
  color: var(--fg-dim);
  font-size: 13px;
}

/* ========================= FOOTER ========================= */
.footer {
  border-top: 1px solid var(--line);
  background: oklch(0.08 0.005 30);
  color: oklch(0.85 0.005 80);
  padding: clamp(56px, 7vw, 96px) 0 28px;
}
:root[data-theme="light"] .footer {
  background: oklch(0.96 0.004 80);
  color: var(--fg);
  border-color: var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: inherit;
  opacity: 0.75;
  transition: opacity 160ms ease;
}
.footer__col a:hover { opacity: 1; color: var(--accent-soft); }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 12rem;
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0 0 30px;
  color: var(--fg);
  border-top: 1px solid var(--line);
  padding-top: 30px;
  text-wrap: nowrap;
  overflow: hidden;
}
:root[data-theme="light"] .footer__wordmark { color: oklch(0.2 0.008 60); border-top-color: oklch(0.85 0.005 80); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-top: 20px;
}

/* ========================= PROJECTS PAGE ========================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 3px;
  align-items: center;
}
.filters__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0 14px;
  white-space: nowrap;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--fg-dim);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.filter-chip:hover { color: var(--fg); background: var(--bg-2); }
.filter-chip.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.filter-chip__count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}

/* US Map v2 — interactive */
.usmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.usmap__filters {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  min-width: 0;
}
.usmap__stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #151413;
  overflow: hidden;
  height: 660px;
  min-width: 0;
}
.usmap__canvas { position: relative; min-height: 0; overflow: hidden; }
.usmap__toolbar, .usmap__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #cdc8c5;
  font-family: var(--font-mono);
  font-size: 11px;
}
.usmap__toolbar { border-bottom: 1px solid #35312f; }
.usmap__footer { border-top: 1px solid #35312f; flex-wrap: wrap; }
.usmap__footer span { display: inline-flex; align-items: center; gap: 7px; }
.usmap__footer i { width: 7px; height: 7px; border: 2px solid #ef7181; border-radius: 50%; }
.usmap__footer span:last-child { margin-left: auto; }
.usmap__regions { display: flex; gap: 2px; }
.usmap__regions button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  color: #cdc8c5;
  padding: 8px 12px;
  font: 12px var(--font-sans);
  cursor: pointer;
}
.usmap__regions button:hover { background: #302b29; }
.usmap__regions button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.usmap__zoom-level { font-variant-numeric: tabular-nums; width: 6ch; text-align: right; }
.usmap button:focus-visible, .usmap input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.usmap__pin:focus-visible { outline: none; }
.usmap__pin:focus-visible > circle { stroke: #fff; stroke-width: 2px; }
.usmap__svg:focus-visible { outline: 2px solid #c7d7d1; outline-offset: -4px; }
.usmap__location-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg-soft);
}
.usmap__location-filter button { display: grid; place-items: center; border: 0; background: transparent; color: inherit; width: 28px; height: 28px; cursor: pointer; }
.usmap__clear-filters { display: block; margin: 14px auto 0; background: transparent; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; }
.usmap__side > * { flex-shrink: 0; }
.usmap__side > .usmap__list { flex-shrink: 1; }
.usmap__filters .usmap__chip {
  background: transparent;
  color: var(--fg-dim);
  border-color: var(--line);
}
.usmap__filters .usmap__chip:hover { background: var(--bg-soft); border-color: var(--fg-mute); }
.usmap__filters .usmap__chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.usmap__card, .usmap__filters, .usmap__row { letter-spacing: 0; }
.usmap__state-label {
  fill: #bdccc4;
  font-family: var(--font-mono);
  pointer-events: none;
}
.project-map { width: 100%; height: 100%; background: #181615; isolation: isolate; z-index: 0; font-family: var(--font-sans); }
.project-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(1.12) contrast(0.95) sepia(0.1); }
.project-map .leaflet-control-attribution { background: #151413e8; color: #bdb7b4; font: 10px var(--font-sans); padding: 3px 6px; }
.project-map .leaflet-control-attribution a { color: #e3dcda; }
.project-map .leaflet-control-scale-line { background: #151413d9; color: #e3dcda; border-color: #a29b96; text-shadow: none; font: 10px var(--font-mono); }
.project-map .leaflet-tooltip { border: 1px solid #51423f; background: #1c1817; color: #f9f5f3; box-shadow: 0 4px 16px #0005; }
.project-map .leaflet-tooltip-top:before { border-top-color: #51423f; }
.project-map__office-label { font: 9px var(--font-mono); padding: 3px 6px; }
.project-map__office span { display: block; width: 12px; height: 12px; margin: 2px; background: var(--accent); border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 0 0 3px #171313b3; }
.project-map__marker { display: grid; place-items: center; background: none; border: 0; }
.project-map__marker-face { width: 12px; height: 12px; border: 2px solid #f4edeb; border-radius: 50%; background: var(--pin-color); box-shadow: 0 0 0 4px #191514aa, 0 2px 8px #0008; transition: box-shadow 160ms, background 160ms; }
.project-map__marker.is-selected .project-map__marker-face,
.project-map__marker.is-hovered .project-map__marker-face { box-shadow: 0 0 0 4px #bd1f4266, 0 0 0 6px #fff4; border-color: #fff; }
.project-map__marker:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }
.project-map__tooltip { max-width: 240px; white-space: normal; padding: 10px 12px; }
.project-map__tooltip strong { display: block; font-size: 12px; line-height: 1.35; }
.project-map__tooltip span { display: block; color: #c1b6b0; font: 10px var(--font-mono); margin-top: 6px; }
.project-map__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.project-map__facts > div { min-width: 0; }
.project-map__facts > div:last-child { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.project-map__facts dt { color: var(--fg-mute); font: 10px var(--font-sans); }
.project-map__facts dd { margin: 2px 0 0; color: var(--fg); font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.project-map__facts > div:last-child dd { margin: 0; font-size: 11px; font-weight: 400; }
.project-map__error { position: absolute; top: 16px; left: 16px; right: 16px; padding: 12px; border: 1px solid #79605c; border-radius: 4px; background: #201917; color: #fff; font-size: 12px; z-index: 10; }
.project-map__error button { margin-left: 12px; color: #fff; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.usmap__canvas .usmap__ctrl { bottom: 38px; }
.usmap__svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.usmap__svg:active { cursor: grabbing; }
.usmap__state { transition: fill 160ms ease, stroke 160ms ease; }
.usmap__state:hover { fill: #526b65; stroke: #cbdad2; }
.usmap__state.is-active:hover { fill: #68877c; }

.usmap__pin { transition: opacity 140ms ease; }
.usmap__pin.is-dim { opacity: 0.45; }

.usmap__legend {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  z-index: 4;
}
.usmap__legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  pointer-events: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.usmap__legend-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.usmap__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 140ms ease;
}
.usmap__chip:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }
.usmap__chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.usmap__chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.usmap__chip-count {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 2px;
  padding-left: 6px;
  border-left: 1px solid currentColor;
}
.usmap__chip.is-on .usmap__chip-count { opacity: 0.85; }

.usmap__ctrl {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 4px;
  z-index: 4;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.usmap__ctrl button {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 5px;
  transition: all 140ms ease;
}
.usmap__ctrl button:hover { background: rgba(255,255,255,0.1); color: white; }
.usmap__ctrl button { display: grid; place-items: center; }
.usmap__ctrl button:disabled { opacity: 0.3; cursor: default; }

.usmap__hint {
  position: absolute;
  bottom: 18px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(12, 16, 22, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

.usmap__card {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 272px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 188px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 4px 16px #0004;
  color: var(--fg);
  pointer-events: auto;
}
.usmap__card-img {
  height: 112px;
  background-size: cover;
  background-position: center;
  background-color: oklch(0.22 0.012 30);
  position: relative;
}
.usmap__card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.28));
}
.usmap__card-badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #171413e8;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 4px 6px;
  border-radius: 3px;
  color: white;
  z-index: 1;
  box-shadow: none;
}
.usmap__card-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--card-sector); }
.usmap__card-body { padding: 12px 14px; }
.usmap__card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--fg-mute); font: 10px var(--font-sans); }
.usmap__card-sector { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-dim); }
.usmap__card-sector::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--card-sector); }
.usmap__card-close { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #ffffff45; border-radius: 4px; background: #151413d9; color: #fff; cursor: pointer; }
.usmap__card-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-mute);
}
.usmap__card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 7px 0 5px;
  color: var(--fg);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.usmap__card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-dim);
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.usmap__card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.usmap__card-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.usmap__card-stats span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: oklch(0.5 0.015 40);
}
.usmap__card-stats strong {
  font-size: 12.5px;
  font-weight: 600;
  color: oklch(0.22 0.02 40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usmap__card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--accent);
  font: 600 12px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}
.usmap__card-cta > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--accent); color: #fff; }
.usmap__card-cta:hover { background: var(--accent-soft); }
.usmap__card-cta:focus-visible, .usmap__card-close:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

/* Sidebar */
.usmap__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 16px;
  height: 660px;
  min-width: 0;
}
.usmap__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg-mute);
}
.usmap__search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 13px;
  font-family: var(--font-sans);
}
.usmap__search input::placeholder { color: var(--fg-mute); }
.usmap__search-clear {
  background: transparent;
  border: none;
  color: var(--fg-mute);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.usmap__side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.usmap__list {
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}
.usmap__list::-webkit-scrollbar, .usmap__card::-webkit-scrollbar { width: 8px; }
.usmap__list::-webkit-scrollbar-track, .usmap__card::-webkit-scrollbar-track { background: var(--bg-soft); }
.usmap__list::-webkit-scrollbar-thumb, .usmap__card::-webkit-scrollbar-thumb { background: #918884; border: 2px solid var(--bg-soft); border-radius: 4px; }
.usmap__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 140ms ease;
  width: 100%;
  flex-shrink: 0;
}
.usmap__row:hover, .usmap__row.is-hover {
  background: var(--bg);
  border-color: var(--line-soft);
}
.usmap__row.is-on {
  background: var(--bg);
  border-color: var(--accent-soft);
}
.usmap__row-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
}
.usmap__row-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usmap__row-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usmap__row-sect {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  flex: none;
}

/* Project list (projects page) */
.project-table {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: 64px 2fr 1.2fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 160ms ease;
  font-size: 14px;
}
.project-row:hover { background: var(--bg-1); }
.project-row__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
.project-row__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}
.project-row__sub {
  font-size: 13px;
  color: var(--fg-mute);
  margin-top: 4px;
}
.project-row__cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project-row__go {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-dim);
  transition: all 180ms ease;
}
.project-row:hover .project-row__go {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: var(--accent-dim);
}

/* Sector strip */
.sector-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.sector-strip__item {
  background: var(--bg);
  padding: 24px 18px;
  text-align: left;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}
.sector-strip__item:hover { background: var(--bg-1); }
.sector-strip__item.is-active {
  background: var(--fg);
  color: var(--bg);
}
.sector-strip__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.sector-strip__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}
.sector-strip__icon {
  width: 24px; height: 24px;
  opacity: 0.7;
}

/* =========== Tweaks panel =========== */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  z-index: 100;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.4);
  font-family: var(--font-sans);
}
.tweaks__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks__row { margin-bottom: 14px; }
.tweaks__row:last-child { margin-bottom: 0; }
.tweaks__label {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 6px;
  display: block;
}
.tweaks__opts {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  padding: 3px;
  border-radius: 8px;
}
.tweaks__opt {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--fg-dim);
  font-family: inherit;
  transition: all 140ms ease;
  text-transform: capitalize;
}
.tweaks__opt.is-active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}
.tweaks__slider {
  width: 100%;
  accent-color: var(--accent);
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured__image { min-height: 360px; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .section__head-body { justify-self: start; }
  .map { grid-template-columns: 1fr; }
  .usmap { grid-template-columns: 1fr; }
  .usmap__side { height: 620px; border-left: 0; border-top: 1px solid var(--line); }
  .usmap__stage { height: 560px; }
  .sector-strip { grid-template-columns: repeat(4, 1fr); }
  .projects-grid > * { grid-column: span 12 !important; }
  .project-row { grid-template-columns: 48px 2fr 1fr auto; gap: 16px; }
  .project-row__cell:nth-of-type(1), .project-row__cell:nth-of-type(2) { display: none; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sector-strip { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}

/* Insights index: isolated editorial layout. */
.insights-breadcrumb .container { padding-inline: clamp(20px, 4vw, 56px) !important; }
.insights-masthead { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; padding-top: 44px; padding-bottom: 34px; position: relative; }
.insights-masthead::after { content: ""; position: absolute; bottom: 0; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); height: 1px; background: var(--line); transform-origin: left; animation: insights-rule 800ms cubic-bezier(.2,.7,.2,1) both; }
.insights-masthead h1 { margin: 0; font: 600 64px/1.08 var(--font-display); letter-spacing: 0; }
.insights-masthead h1 span { color: var(--accent); }
.insights-masthead__intro { max-width: 43ch; justify-self: end; padding-bottom: 2px; }
.insights-masthead__intro p { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.insights-masthead__intro > span { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }
.insights-journal { padding-top: 36px; padding-bottom: 72px; }
.insights-topics { margin-bottom: 28px; }
.insights-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "image heading" "image body"; grid-template-rows: auto 1fr; gap: 0 52px; align-items: start; }
.insights-lead__heading { grid-area: heading; min-width: 0; }
.insights-lead__visual { grid-area: image; display: block; min-width: 0; }
.insights-lead__image { position: relative; aspect-ratio: 2896 / 1440; overflow: hidden; background: #101819; border-radius: 4px; }
.insights-lead__image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 800ms cubic-bezier(.2,.7,.2,1); }
.insights-lead__visual:hover img, .insights-lead__visual:focus-visible img { transform: scale(1.025); }
.insights-lead__caption { display: flex; justify-content: space-between; padding-top: 12px; color: var(--fg-mute); font: 10px/1.5 var(--font-mono); text-transform: uppercase; }
.insights-lead__body { grid-area: body; padding-top: 4px; min-width: 0; }
.insights-lead__meta { display: flex; gap: 18px; align-items: center; font: 11px/1.5 var(--font-mono); color: var(--fg-mute); }
.insights-lead__meta > span:first-child { color: var(--accent); }
.insights-lead h2 { font: 500 32px/1.2 var(--font-display); letter-spacing: 0; text-wrap: pretty; margin: 18px 0; }
.insights-lead h2 a { transition: color 200ms; }
.insights-lead h2 a:hover { color: var(--accent); }
.insights-lead__description { color: var(--fg-dim); font-size: 14px; line-height: 1.65; margin: 0; max-width: 58ch; }
.insights-lead__byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.insights-lead__initials { display: grid; place-items: center; width: 36px; height: 36px; background: var(--bg-2); border-radius: 50%; color: var(--accent); font: 11px var(--font-mono); }
.insights-lead__byline > div { display: flex; flex-direction: column; gap: 4px; }
.insights-lead__byline strong { font-size: 13px; font-weight: 500; }
.insights-lead__byline > div > span { font-size: 11px; color: var(--fg-mute); }
.insights-read { display: inline-flex; align-items: center; gap: 18px; padding: 12px 0; margin-top: 22px; border-bottom: 1px solid var(--accent); font-size: 14px; font-weight: 500; }
.insights-read svg { color: var(--accent); transition: transform 250ms; }
.insights-read:hover svg { transform: translate(3px,-3px); }
.insights-more { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line); }
.insights-more img { width: 100%; aspect-ratio: 1.6; object-fit: cover; margin-bottom: 18px; }
.insights-more h2 { font-size: 23px; line-height: 1.3; margin-block: 16px; }
.insights-more p { font-size: 14px; line-height: 1.6; color: var(--fg-dim); }
.insights-masthead > div, .insights-lead__heading, .insights-lead__visual, .insights-lead__body { animation: insights-enter 700ms cubic-bezier(.2,.7,.2,1) both; }
.insights-masthead > div:last-child { animation-delay: 70ms; }
.insights-lead__visual { animation-delay: 120ms; }
.insights-lead__body { animation-delay: 200ms; }
.insights-lead__heading { animation-delay: 140ms; }
@keyframes insights-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes insights-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1100px) {
  .insights-lead { column-gap: 32px; }
  .insights-lead h2 { font-size: 28px; }
}
@media (max-width: 800px) {
  .insights-masthead { padding-top: 30px; gap: 24px; }
  .insights-masthead h1 { font-size: 48px; }
  .insights-lead { grid-template-columns: 1fr; grid-template-areas: "heading" "image" "body"; grid-template-rows: auto; gap: 24px; }
  .insights-lead h2 { margin-bottom: 0; }
  .insights-lead__body { max-width: 64ch; }
  .insights-more { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .insights-masthead { grid-template-columns: 1fr; gap: 20px; padding-bottom: 26px; }
  .insights-masthead__intro { justify-self: start; }
  .insights-masthead h1 { font-size: 44px; }
  .insights-masthead__intro p { font-size: 18px; }
  .insights-masthead::after { left: 20px; right: 20px; }
  .insights-journal { padding-top: 24px; padding-bottom: 44px; }
  .insights-lead { gap: 20px; }
  .insights-lead h2 { font-size: 27px; margin-top: 14px; }
  .insights-more { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .insights-masthead > div, .insights-masthead::after, .insights-lead__heading, .insights-lead__visual, .insights-lead__body { animation: none; }
  .insights-lead__image img, .insights-read svg { transition: none; transform: none !important; translate: none !important; }
}
/* ------- Insights cards (hover) ------- */
.insight-featured { transition: transform .25s ease, box-shadow .25s ease; }
.insight-featured:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -32px rgba(0,0,0,0.45); }
.insight-card { transition: background .2s ease; }
.insight-card:hover { background: var(--bg-soft) !important; }
.insight-card:hover h3 { color: var(--accent); }

/* ------- Insight detail page ------- */
.ins-meta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ins-title {
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  margin-bottom: 24px;
}
.ins-deck {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--fg-mute);
  font-weight: 400;
  text-wrap: pretty;
  margin-bottom: 36px;
}
.ins-byline {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ins-byline__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex: 0 0 auto;
}
.ins-byline__name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }

.ins-body { font-size: 17px; line-height: 1.7; color: var(--fg); }
.ins-body p, .ins-body ul, .ins-body h2, .ins-body aside, .ins-body .ins-stats { margin: 0; }
.ins-lede {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg);
  text-wrap: pretty;
  margin-bottom: 36px !important;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.ins-h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 48px !important;
  margin-bottom: 18px !important;
  text-wrap: balance;
}
.ins-p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 22px !important;
  text-wrap: pretty;
}
.ins-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ins-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
}
.ins-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.ins-callout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  margin: 36px 0 !important;
  padding: 28px 28px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.ins-callout__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}
.ins-callout__text {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: pretty;
  color: var(--fg);
}
.ins-stats {
  display: flex;
  flex-direction: column;
  margin: 36px 0 !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ins-stats__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ins-stats__row:last-child { border-bottom: 0; }
.ins-stats__label { font-size: 14px; color: var(--fg-mute); }
.ins-stats__v {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.ins-stats__since {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
  min-width: 110px;
  text-align: right;
}

.ins-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 36px;
}
.ins-end__rule { flex: 1; height: 1px; background: var(--line); }
.ins-end__mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-mute); }

.ins-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .ins-callout { grid-template-columns: 1fr; gap: 12px; }
  .ins-stats__row { grid-template-columns: 1fr auto; }
  .ins-stats__since { grid-column: 1 / -1; text-align: left; }
}

/* ============================================================
   Proposal modal
   ============================================================ */
.pm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pm-fade .25s ease;
}
@keyframes pm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pm-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.pm-shell {
  width: min(100%, 1180px);
  height: min(92vh, 820px);
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.55);
  animation: pm-rise .3s cubic-bezier(.2, .9, .3, 1);
}

/* Left rail */
.pm-rail {
  background: oklch(0.16 0.012 30);
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pm-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
}
.pm-rail__top, .pm-rail__bottom, .pm-steps { position: relative; }
.pm-rail__mark {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.pm-steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pm-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: all .2s ease;
}
.pm-step.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.pm-step.is-done { color: rgba(255, 255, 255, 0.85); }
.pm-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.02);
}
.pm-step.is-active .pm-step__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pm-step.is-done .pm-step__num {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--accent);
}
.pm-step__label { font-weight: 500; letter-spacing: 0; }

.pm-rail__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right body */
.pm-body {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pm-body__head {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.pm-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
  transition: all .15s ease;
}
.pm-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.pm-body__progress {
  display: flex;
  gap: 4px;
  padding: 12px 40px 0;
  flex: 0 0 auto;
}
.pm-tick {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  transition: background .25s ease;
}
.pm-tick.is-on { background: var(--accent); }

.pm-form {
  padding: 32px 40px 24px;
  overflow-y: auto;
  flex: 1;
}

.pm-step__h {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 8px;
  text-wrap: balance;
}
.pm-step__sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 28px;
}

.pm-field { display: flex; flex-direction: column; margin-bottom: 24px; }
.pm-field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.pm-field__hint { color: var(--accent); font-weight: 500; letter-spacing: 0.08em; }

.pm-input {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.pm-input::placeholder { color: var(--fg-mute); }
.pm-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pm-textarea { resize: vertical; min-height: 90px; }

.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--fg);
  cursor: pointer;
  transition: all .15s ease;
}
.pm-chip:hover { border-color: var(--fg-mute); }
.pm-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: all .15s ease;
}
.pm-chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.pm-chip.is-on .pm-chip__dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.pm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.pm-grid-2 .pm-field { margin-bottom: 0; }

.pm-summary {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pm-summary__rows {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-summary__rows > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  font-size: 14px;
  align-items: baseline;
}
.pm-summary__rows span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.pm-summary__rows strong { font-weight: 500; color: var(--fg); }
.pm-error {
  flex-basis: 100%;
  color: oklch(0.62 0.22 28);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.pm-body__foot {
  padding: 18px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  background: var(--bg);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg-mute);
}
.btn--ghost:hover { color: var(--fg); }

.pm-success {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  overflow-y: auto;
}
.pm-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-success__meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  width: 100%;
}

@media (max-width: 1180px) {
  .nav__cta .live-pill { display: none; }
}

@media (max-width: 880px) {
  .pm-shell { grid-template-columns: 1fr; height: min(96vh, 900px); }
  .pm-rail { padding: 24px; }
  .pm-rail__top h2 { font-size: 22px; }
  .pm-steps { flex-direction: row; flex-wrap: wrap; margin-top: 18px; }
  .pm-step { padding: 8px 12px; font-size: 13px; }
  .pm-rail__bottom { display: none; }
  .pm-body__head, .pm-form, .pm-body__foot, .pm-body__progress { padding-left: 22px; padding-right: 22px; }
  .pm-grid-2 { grid-template-columns: 1fr; }
  .pm-success__meta { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 1100px) {
  .h-display { font-size: 4rem; }
  .h-xl { font-size: 3rem; }
  .h-lg { font-size: 1.875rem; }
  .hero__title { font-size: 4.25rem; }
  .stat__value { font-size: 4rem; }
  .featured__title { font-size: 2rem; }
  .hero-demo__top { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
  }
  .nav__mobile-toggle { display: grid; grid-column: 3; grid-row: 1; }
  .nav__links {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line-soft);
  }
  .nav__links.is-open { display: flex; }
  .nav__link { border: 1px solid var(--line); background: var(--bg); }
  .nav__cta {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }
  .nav__cta .live-pill { display: none; }
  .section > .container > div[style*="grid-template-columns"],
  .section > .container--wide > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .project-row,
  .project-row[style*="grid-template-columns"] {
    grid-template-columns: 42px 1fr auto !important;
    gap: 12px !important;
  }
  .project-row__cell { display: none; }
  .usmap__filters { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
  .usmap__stage { height: 440px; }
  .usmap__card { top: 10px; right: 10px; width: 250px; max-height: calc(100% - 182px); }
  .usmap__card-img { height: 96px; }
  .usmap__card-title { font-size: 15px; }
  .usmap__svg { height: 100%; }
  .usmap__regions button { padding: 8px; }
  .usmap__zoom-level { display: none; }
  .usmap__toolbar, .usmap__footer { padding: 10px; }
}

@media (max-width: 640px) {
  .h-display { font-size: 2.375rem; line-height: 1.1; }
  .h-xl { font-size: 2rem; line-height: 1.15; }
  .h-lg { font-size: 1.625rem; }
  .hero__title { font-size: 3rem; line-height: 1; }
  .hero__lede, .section__head-body { font-size: 16px; }
  .stat__value { font-size: 3.25rem; }
  .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .nav__cta .btn { width: auto; padding-inline: 12px; }
  .hero-demo__ledger-head,
  .hero-demo__row {
    grid-template-columns: 52px 1fr 54px;
  }
  .hero-demo__ledger-head span:nth-child(4),
  .hero-demo__ledger-head span:nth-child(5),
  .hero-demo__row-rate,
  .hero-demo__row-total {
    display: none;
  }
  .hero-demo__schedule-legend { display: none; }
  .hero-demo__gantt-axis { left: 96px; }
  .hero-demo__gantt-row { grid-template-columns: 88px 1fr; }
  .hero-demo__gantt-label { font-size: 11px; }
  .filters { border-radius: 8px; align-items: stretch; }
  .filter-chip { flex: 1 1 auto; justify-content: center; }
  .pm-body__foot { flex-wrap: wrap; }
  .pm-error { text-align: left; }
}

/* Homepage refinements are scoped so other pages retain their own design. */
.home-page .h-display { font-size: 4rem; line-height: 1.08; }
.home-page .h-xl { font-size: 2.75rem; line-height: 1.12; }
.home-page .section { padding: 88px 0; }
.home-page .section--tight { padding: 64px 0; }
.home-page .section__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 40px; }
.home-page .section__head-title { min-width: 0; max-width: 100%; }
.home-page .section__head-title .h-xl { max-width: 22ch; }
@media (max-width: 1100px) {
  .home-page .h-xl { font-size: 2.5rem; }
  .selected-work .projects-grid > .project-card { grid-column: auto !important; }
}
@media (max-width: 880px) {
  .home-page .section__head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-page .h-display { font-size: 2.75rem; }
  .home-page .h-xl { font-size: 2rem; }
}

@media (min-width: 881px) {
  .nav__link { border-radius: 0; padding-inline: 10px; border-bottom: 2px solid transparent; }
  .nav__link.is-active { background: none; border-bottom-color: var(--accent); }
}
@media (max-width: 1100px) {
  .selected-work .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--photographic .hero__title { font-size: 52px; }
}
@media (max-width: 880px) {
  .hero__clients-inner { justify-content: flex-start; column-gap: 24px; row-gap: 8px; }
  .hero__clients-label { width: 100%; }
}
@media (max-width: 640px) {
  .home-page .section { padding-block: 56px; }
  .home-page .section--tight { padding-block: 40px; }
  .home-page .section__head { gap: 20px; margin-bottom: 28px; }
  .services { gap: 0; }
  .services__card { min-height: 0; padding-block: 24px; }
  .selected-work .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__scene { height: calc(100svh - 180px); min-height: 480px; }
  .hero__content { padding-top: 28px; }
  .hero--photographic .hero__meta { font-size: 11px; margin-bottom: 16px; }
  .hero--photographic .hero__title { font-size: 36px; line-height: 1.1; }
  .hero--photographic .hero__lede { font-size: 15px; margin: 16px 0 18px; max-width: 36ch; }
  .hero--photographic .hero__cta { gap: 16px; }
  .hero--photographic .btn { width: auto; padding: 12px 16px; font-size: 13px; }
  .hero__services-link { font-size: 13px; padding: 10px 12px; border: 1px solid #17171725; background: #fffffff0; border-radius: 3px; }
  .hero__photo { object-position: 67% 60%; }
  .hero__caption { bottom: 18px; }
  .hero__clients-inner { min-height: 0; font-size: 11px; }
  .nav__cta .btn { font-size: 11px; white-space: nowrap; }
  .logo__mark { width: 150px; }
}
@media (max-width: 380px) {
  .logo__mark { width: 118px; }
  .nav__inner { gap: 8px; }
  .nav__cta .btn { padding: 9px 8px; font-size: 10px; gap: 6px; }
  .hero--photographic .hero__title { font-size: 32px; }
  .hero__scene { min-height: 440px; }
  .hero--photographic .hero__cta { gap: 12px; }
  .hero--photographic .btn { padding: 10px 12px; font-size: 12px; }
  .hero__services-link { font-size: 12px; gap: 6px; padding-inline: 10px; }
}
@media (max-height: 740px) and (min-width: 641px) {
  .hero__scene { min-height: 420px; }
  .hero__content { padding-top: 24px; }
  .hero--photographic .hero__title { font-size: 44px; }
  .hero--photographic .hero__meta { margin-bottom: 12px; }
  .hero--photographic .hero__lede { margin: 14px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }}
