/* ============================================================
   Teklabs Digital. Site stylesheet
   Tokens lifted from design-system-v4
   ============================================================ */

@import url('fonts.css');

:root {
  color-scheme: light;
  /* Brand colors (immutable) */
  --brand-navy: #053768;
  --brand-indigo: #3D51C9;
  --brand-sky: #4F7BD9;
  --brand-green: #6EB883;
  --brand-mint: #A1D8B1;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* Type scale */
  --fs-display: clamp(44px, 6.4vw, 84px);
  --fs-h1: clamp(34px, 4.6vw, 56px);
  --fs-h2: clamp(28px, 3.4vw, 42px);
  --fs-h3: clamp(20px, 2vw, 26px);
  --fs-h4: 17px;
  --fs-body-lg: 18px;
  --fs-body: 15px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-mono: 13px;

  --lh-tight: 1.05;
  --lh-snug: 1.15;
  --lh-base: 1.55;
  --lh-loose: 1.7;

  --tracking-tight: -0.025em;
  --tracking-snug: -0.01em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.16em;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 440ms;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --gutter: clamp(20px, 4vw, 56px);

  /* z */
  --z-nav: 50;
  --z-drawer: 70;
  --z-modal: 100;

  /* Light theme tokens (the Teklabs site is light-default) */
  --bg: #FAFBFC;
  --bg-elevated: #FFFFFF;
  --bg-sunken: #F1F3F7;
  --bg-tint: #ECEFF4;
  --bg-navy: var(--brand-navy);
  --bg-navy-deep: #042A52;

  --fg: #0B1A2E;
  --fg-muted: #2C3645;
  --fg-subtle: #5B6675;
  --fg-faint: #8A95A3;
  --fg-onnavy: #FFFFFF;
  --fg-onnavy-muted: rgba(255,255,255,0.78);
  --fg-onnavy-subtle: rgba(255,255,255,0.58);

  --border: #E2E6EC;
  --border-strong: #C7CED9;
  --border-subtle: #EDEFF3;
  --border-onnavy: rgba(255,255,255,0.16);
  --border-onnavy-strong: rgba(255,255,255,0.32);

  --accent: var(--brand-navy);
  --accent-hover: #062A52;
  --accent-fg: #FFFFFF;

  --link: #1F4FB0;
  --link-hover: var(--brand-navy);

  --highlight: var(--brand-green);
  --highlight-tint: rgba(110,184,131,0.16);

  --shadow-1: 0 1px 2px rgba(11,26,46,0.04), 0 0 0 1px rgba(11,26,46,0.04);
  --shadow-2: 0 2px 4px rgba(11,26,46,0.05), 0 1px 2px rgba(11,26,46,0.04);
  --shadow-3: 0 6px 16px -4px rgba(11,26,46,0.10), 0 2px 4px rgba(11,26,46,0.05);
  --shadow-4: 0 16px 32px -8px rgba(11,26,46,0.14), 0 4px 8px rgba(11,26,46,0.06);
  --shadow-focus: 0 0 0 3px rgba(79,123,217,0.30);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

::selection { background: var(--brand-mint); color: var(--brand-navy); }

/* ============================================================
   Type
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins'; color: var(--fg); margin: 0; letter-spacing: var(--tracking-tight); font-weight: 600; }

.t-display { font-size: var(--fs-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }

/* Shared hero headline, used across all top-of-page hero h1s.
   Page-specific classes (.hero-headline, .ab-hero-headline, etc) extend this
   only with size/max-width tweaks; spacing + tracking stay consistent. */
.t-hero-headline {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--brand-navy);
  text-wrap: balance;
  margin: 0;
}
.t-h1 { font-size: var(--fs-h1); font-weight: 600; line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); }
.t-h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.022em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: var(--tracking-snug); }
.t-h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.4; }

.t-lede { font-size: var(--fs-body-lg); line-height: var(--lh-loose); color: var(--fg-muted); }
.t-body { font-size: var(--fs-body); color: var(--fg-muted); line-height: var(--lh-base); }
.t-caption { font-size: var(--fs-caption); color: var(--fg-subtle); }

.t-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-eyebrow::before {
  content: '⟢';
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 600;
}
.t-eyebrow.on-navy { color: var(--brand-mint); }
.t-eyebrow.on-navy::before { color: var(--brand-mint); }

.t-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-mono); }

p { margin: 0; text-wrap: pretty; }

.text-balance { text-wrap: balance; }

/* ============================================================
   Layout
   ============================================================ */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 144px) 0;
  position: relative;
}
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  max-width: 720px;
}
.section-head .num {
  /* eyebrow handled by .t-eyebrow */
}

.section-divider { height: 1px; background: var(--border); margin: 0; }

/* Surfaces */
.bg-paper { background: var(--bg); }
.bg-elevated { background: var(--bg-elevated); }
.bg-sunken { background: var(--bg-sunken); }
.bg-navy { background: var(--brand-navy); color: var(--fg-onnavy); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--fg-onnavy); }
.bg-navy .t-body, .bg-navy .t-lede { color: var(--fg-onnavy-muted); }
.bg-navy .t-caption { color: var(--fg-onnavy-subtle); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: #062A52; }

.btn-primary-onnavy { background: #fff; color: var(--brand-navy); }
.btn-primary-onnavy:hover { background: var(--brand-mint); }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand-navy); background: var(--bg-elevated); }

.btn-ghost { background: transparent; color: var(--fg); padding: 14px 0; }
.btn-ghost:hover { color: var(--brand-navy); }

.btn-link {
  background: transparent;
  color: var(--brand-navy);
  padding: 0;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  border-radius: 0;
}
.btn-link:hover { color: var(--brand-indigo); }
.btn-link::after {
  content: '';
  display: block;
  height: 1px;
  background: currentColor;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
  margin-top: 4px;
  opacity: 0.4;
}
.btn-link:hover::after { opacity: 1; }

.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-brand img { height: 26px; width: auto; max-width: none; flex-shrink: 0; }

.nav-links {
  display: none;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--brand-navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-green);
  border-radius: var(--radius-pill);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
@media (max-width: 639px) {
  .nav-actions .btn-primary { padding: 7px 11px; font-size: 12px; }
  .nav-actions .btn-primary .arrow { display: none; }
}

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--fg);
}
@media (min-width: 1024px) { .nav-burger { display: none; } }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgba(11,26,46,0.4);
  display: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.drawer.open { display: block; opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 88vw);
  background: var(--bg-elevated);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-left: 1px solid var(--border);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.drawer-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-2);
  color: var(--fg);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-links a:hover { color: var(--brand-navy); }
.drawer-links a .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-faint);
  font-weight: 400;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background:
    linear-gradient(90deg, rgba(44,54,69,0.45) 0%, rgba(44,54,69,0.30) 100%),
    var(--brand-navy);
  color: var(--fg-onnavy);
  padding: var(--space-24) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161,216,177,0.3), transparent);
}

.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-onnavy);
}
/* Desktop: full 4-column layout */
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); } }

.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 380px; }
.footer-brand p { color: var(--fg-onnavy-muted); font-size: 14px; line-height: 1.6; }

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.footer-wordmark img {
  display: block;
  height: 40px;
  width: auto;
}
/* legacy text-wordmark fallbacks (kept for safety) */
.footer-wordmark .wm-tek { font-weight: 700; color: #fff; }
.footer-wordmark .wm-chev {
  color: var(--brand-mint);
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 0.04em;
  transform: translateY(-0.02em);
  display: inline-block;
}
.footer-wordmark .wm-labs { font-weight: 400; color: #fff; }
.footer-wordmark .wm-digital {
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-onnavy-muted);
  letter-spacing: 0.02em;
  margin-left: 6px;
  align-self: flex-end;
  padding-bottom: 3px;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-mint);
  margin-bottom: var(--space-5);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: var(--fg-onnavy-muted);
  font-size: 14px;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--brand-mint); }

.footer-bottom {
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--fg-onnavy-subtle);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-legal a { color: var(--fg-onnavy-muted); transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--brand-mint); }

/* Footer responsive, compact mobile/tablet layout
   Default mobile is single-column with 48px gaps which leaves the footer
   sprawling. Tighten on phones (<560px) and use a 2-col grid for the link
   columns. Tablet (560-767px) gets a 3-col with brand spanning the top. */
.footer-brands { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.footer-brands a { display: flex; flex-direction: column; gap: 6px; color: var(--fg-onnavy-muted); align-items: flex-start; }
.footer-brands a:hover { color: var(--brand-mint); }
.footer-brands img { height: 30px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer-brands .brands-meta { font-size: 12px; color: var(--fg-onnavy-subtle); letter-spacing: 0.02em; }

/* Tablet (768-1023px): compact 4-column layout
   Brand block on the left (smaller), three narrow columns to the right
   for The work / The business / Our brands. Logos hard-capped so they
   don't stretch out the column. */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1.2fr 0.9fr 0.8fr 1.1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-10);
  }
  .footer-brand { gap: var(--space-3); max-width: none; }
  .footer-brand p { font-size: 13px; line-height: 1.55; }
  .footer-wordmark img { height: 32px; }
  .footer-brands { flex-direction: column; gap: var(--space-4); align-items: flex-start; }
  .footer-brands a { align-items: flex-start; }
  .footer-brands img { height: 22px !important; max-width: 170px !important; width: auto !important; object-fit: contain; }
  .footer-brands .brands-meta { font-size: 11px; line-height: 1.4; }
  .footer-col h4 { margin-bottom: var(--space-3); font-size: 10px; }
  .footer-col ul { gap: var(--space-2); }
  .footer-col a { font-size: 13px; }
  .site-footer { padding-top: var(--space-16); padding-bottom: var(--space-10); }
}

/* Mobile (≤767px): brand spans the top; The work + The business in 2 cols;
   Our brands spans the bottom with logos hard-capped. */
@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-6);
    padding-bottom: var(--space-10);
  }
  .footer-brand { grid-column: 1 / -1; max-width: none; gap: var(--space-3); }
  .footer-brand p { font-size: 13px; line-height: 1.55; }
  .footer-wordmark img { height: 32px; }
  .footer-brands-col { grid-column: 1 / -1; }
  .footer-brands { flex-direction: column; gap: var(--space-8); align-items: flex-start; }
  .footer-brands a { align-items: flex-start; }
  .footer-brands img { height: 24px !important; max-width: 180px !important; width: auto !important; object-fit: contain; }
  .footer-brands .brands-meta { font-size: 11px; }
  .footer-col h4 { margin-bottom: var(--space-3); font-size: 10px; }
  .footer-col ul { gap: var(--space-2); }
  .footer-col a { font-size: 13px; }
  .footer-bottom { padding-top: var(--space-5); font-size: 11px; gap: var(--space-4); align-items: center; text-align: center; }
  .footer-legal { justify-content: center; }
  .site-footer { padding-top: var(--space-12); padding-bottom: var(--space-8); }
}

/* ============================================================
   Image placeholders
   ============================================================ */
.img-placeholder {
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(135deg, rgba(5,55,104,0.06) 0%, rgba(61,81,201,0.06) 50%, rgba(110,184,131,0.06) 100%),
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 18px,
      rgba(5,55,104,0.04) 18px,
      rgba(5,55,104,0.04) 19px);
}
.img-placeholder.on-navy {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-onnavy);
  background-image:
    linear-gradient(135deg, rgba(161,216,177,0.06) 0%, rgba(79,123,217,0.06) 100%),
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 18px,
      rgba(255,255,255,0.04) 18px,
      rgba(255,255,255,0.04) 19px);
}
.img-placeholder .meta {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-subtle);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--bg-elevated);
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}
.img-placeholder.on-navy .meta {
  color: var(--brand-mint);
  background: rgba(5,55,104,0.7);
  border-color: var(--border-onnavy);
}
.img-placeholder .center-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-faint);
  text-align: center;
  letter-spacing: 0.06em;
  padding: 0 var(--space-6);
  text-transform: uppercase;
}
.img-placeholder.on-navy .center-id { color: rgba(255,255,255,0.4); }

.img-16x9 { aspect-ratio: 16 / 9; }
.img-3x2 { aspect-ratio: 3 / 2; }
.img-4x5 { aspect-ratio: 4 / 5; }
.img-1x1 { aspect-ratio: 1 / 1; }

/* Real images (responsive picture element). Mirrors .img-placeholder footprint. */
.img-real {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-sunken);
}
.img-real.on-navy { border-color: var(--border-onnavy); background: rgba(255,255,255,0.04); }
.img-real img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Per-image focal points so wide aspect crops don't lose heads. */
.hero-image-band .img-real img { object-position: center 28%; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ============================================================
   Pills / tags
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--bg-tint);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.pill-status {
  background: rgba(110,184,131,0.16);
  color: #1F5A36;
  border-color: transparent;
}
.pill-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(110,184,131,0.3);
}
.pill-onnavy {
  background: rgba(161,216,177,0.14);
  color: var(--brand-mint);
  border-color: rgba(161,216,177,0.3);
}

/* ============================================================
   Helpers
   ============================================================ */
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.col { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-8 > * + * { margin-top: var(--space-8); }

.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.scroll-reveal.visible { opacity: 1; transform: none; }
.scroll-reveal.delay-1 { transition-delay: 80ms; }
.scroll-reveal.delay-2 { transition-delay: 160ms; }
.scroll-reveal.delay-3 { transition-delay: 240ms; }

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

/* Prevent layout shift on font load */
.font-loading body { visibility: hidden; }

/* ---------- Closing CTA (shared across pages, including contact's variant) ---------- */
.closing-section {
  background: var(--bg);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(110,184,131,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(79,123,217,0.06), transparent 60%);
  pointer-events: none;
}
.closing-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: stretch;
}
@media (min-width: 1024px) { .closing-inner { grid-template-columns: 1.3fr 1fr; gap: var(--space-12); } }
.closing-headline {
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--brand-navy);
  text-wrap: balance;
}
.closing-summary {
  color: var(--fg-muted);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  max-width: 52ch;
  margin-top: var(--space-6);
}
.closing-summary b { color: var(--brand-navy); font-weight: 600; }
.closing-cta-block {
  background: var(--brand-navy);
  color: var(--fg-onnavy);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
}
.closing-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 100%, rgba(161,216,177,0.18), transparent 60%);
  pointer-events: none;
}
.closing-cta-eyebrow {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-mint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.closing-cta-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-mint);
}
.closing-cta-block h3 {
  position: relative;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}
.closing-cta-block .btn { position: relative; align-self: flex-start; }
.closing-footnote {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-onnavy-subtle);
  line-height: 1.7;
  letter-spacing: 0.02em;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-onnavy);
  max-width: 44ch;
}
