/* ==========================================================================
   AmTech HQ — custom.css
   Institutional brand layer on top of Bootstrap 5.3.
   Static site, no build step. Single override stylesheet.

   Design language: "annual report," not "SaaS landing page."
   Restrained, navy/cream/brass, serif headings, generous vertical rhythm.
   No gradients, no glassmorphism, no heavy shadows, no pill buttons.

   Table of contents
   1.  Font imports
   2.  :root — brand tokens (contract vars + extras)
   3.  Bootstrap variable overrides
   4.  Base elements & typography
   5.  Accessibility (skip link, focus-visible)
   6.  Layout helpers (.section / .py-section, containers)
   7.  Navbar
   8.  Buttons
   9.  Cards & .company-card (+ .is-hidden filter utility)
   10. Forms
   11. Tables & #capability-matrix
   12. .stat-counter
   13. .timeline-item (reveal via .is-visible)
   14. .hero (full-bleed navy)
   15. Footer
   16. Misc utilities & responsive tuning
   ========================================================================== */


/* 1. FONT IMPORTS ---------------------------------------------------------- */
/* Google Fonts. display=swap requested so text paints immediately on the
   system fallback and swaps when the web font lands. */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');


/* 2. :root — BRAND TOKENS -------------------------------------------------- */
:root {
  /* --- Contract colors (names + hex MUST stay exactly as specified) --- */
  --navy:  #0A1F3D;   /* primary, institutional, dominant */
  --cream: #F5F1E8;   /* secondary, backgrounds, breathing room */
  --brass: #B8860B;   /* accent, used sparingly, never decoration */
  --ink:   #1A1A1A;   /* body text, near-black not pure black */
  --muted: #6B6B6B;   /* secondary text, warm gray */
  --rule:  #E5E0D8;   /* borders & rules, light warm gray */

  /* --- Extended palette (derived, sensible additions) --- */
  --navy-deep:  #061528;  /* hero overlays, footer, deepest surface */
  --navy-700:   #14304F;  /* hover/active on navy surfaces */
  --cream-deep: #EDE7DA;  /* alternating section bands on cream */
  --white:      #FFFFFF;  /* navbar / card surfaces */
  --brass-soft: #C99A2E;  /* brass hover (lighter, still muted) */
  --ink-soft:   #2C2C2C;  /* slightly lifted ink for large display */
  --rule-strong:#D4CCBE;  /* heavier rule for table heads / dividers */

  /* Muted professional status tones (override Bootstrap brights) */
  --success: #4A6B4F;  /* muted forest, not bright green */
  --warning: #9A7B2E;  /* muted ochre */
  --danger:  #8A3B33;  /* muted brick, not fire-engine red */
  --info:    #3D5A73;  /* muted slate blue */

  /* --- Font stacks --- */
  --serif: 'Source Serif 4', 'Playfair Display', Georgia, Cambria,
           'Times New Roman', Times, serif;
  --sans:  'Inter', 'Source Sans Pro', system-ui, -apple-system,
           'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo,
           Consolas, 'Liberation Mono', monospace;

  /* --- Spacing scale (annual-report rhythm) --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --section-y: 6rem;          /* default vertical padding for major sections */
  --section-y-lg: 7.5rem;     /* hero / marquee feature sections */

  /* --- Radii (square-ish, institutional) --- */
  --radius-sm: 2px;
  --radius:    4px;

  /* --- Borders & elevation --- */
  --border: 1px solid var(--rule);
  --shadow-hover: 0 6px 20px rgba(10, 31, 61, 0.08);  /* subtle, navy-tinted */

  /* --- Motion --- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --transition: 200ms var(--ease);
  --reveal-duration: 600ms;

  /* --- Layout --- */
  --content-max: 1320px;      /* matches Bootstrap container-xl */
  --measure: 68ch;            /* readable line length for prose */
}


/* 3. BOOTSTRAP VARIABLE OVERRIDES ----------------------------------------- */
/* Remap Bootstrap's runtime CSS vars to the brand. This recolors most BS
   components (links, borders, focus, contextual text) without re-authoring. */
:root {
  --bs-primary:        var(--navy);
  --bs-primary-rgb:    10, 31, 61;

  --bs-body-color:     var(--ink);
  --bs-body-color-rgb: 26, 26, 26;
  --bs-body-bg:        var(--cream);
  --bs-body-bg-rgb:    245, 241, 232;
  --bs-body-font-family: var(--sans);
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.65;

  --bs-secondary-color: var(--muted);
  --bs-border-color:    var(--rule);
  --bs-border-radius:        var(--radius);
  --bs-border-radius-sm:     var(--radius-sm);
  --bs-border-radius-lg:     var(--radius);
  --bs-border-radius-xl:     var(--radius);
  --bs-border-radius-pill:   var(--radius);  /* neutralize pills site-wide */

  --bs-link-color:        var(--navy);
  --bs-link-color-rgb:    10, 31, 61;
  --bs-link-hover-color:  var(--brass);
  --bs-link-hover-color-rgb: 184, 134, 11;

  --bs-emphasis-color:    var(--ink);
  --bs-heading-color:     var(--navy);

  --bs-success: var(--success);
  --bs-warning: var(--warning);
  --bs-danger:  var(--danger);
  --bs-info:    var(--info);

  --bs-font-monospace: var(--mono);
}


/* 4. BASE ELEMENTS & TYPOGRAPHY ------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Serif headings, regular/medium weight — institutional brands don't shout. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.display-1, .display-2, .display-3, .display-4 {
  font-weight: 400;          /* the largest sizes go lighter, never bold */
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.2vw, 1.875rem); }
h4, .h4 { font-size: 1.375rem; }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 {
  font-size: 0.8125rem;
  font-family: var(--sans);  /* h6 reads as an eyebrow/label, not a serif head */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin-bottom: 1.15rem; }

.lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Eyebrow / kicker label above section headings */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-sm);
}

a {
  color: var(--navy);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}
a:hover { color: var(--brass); }

/* Constrain prose to a readable measure when opted in. */
.prose,
.measure { max-width: var(--measure); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  opacity: 1;
  margin: var(--space-lg) 0;
}

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

small, .small { color: var(--muted); }

strong, b { font-weight: 600; }

code, kbd, samp, pre { font-family: var(--mono); }


/* 5. ACCESSIBILITY -------------------------------------------------------- */
/* Skip-to-content: visually hidden until focused, then a real navy chip. */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: 2000;
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 150ms var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-sm);
  color: var(--cream);
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* Clear, AA-contrast focus ring on every keyboard-focusable element. */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Don't double-ring elements that draw their own focus treatment. */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: none;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .timeline-item { opacity: 1 !important; transform: none !important; }
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}


/* 6. LAYOUT HELPERS ------------------------------------------------------- */
/* Annual-report vertical rhythm. .section and .py-section are interchangeable. */
.section,
.py-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section--lg { padding-top: var(--section-y-lg); padding-bottom: var(--section-y-lg); }
.section--tight { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Alternating surface bands to structure long pages. */
.section--cream { background-color: var(--cream); }
.section--cream-deep { background-color: var(--cream-deep); }
.section--white { background-color: var(--white); }
.section--navy {
  background-color: var(--navy);
  color: var(--cream);
}
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5 { color: var(--cream); }
.section--navy .eyebrow { color: var(--brass-soft); }
.section--navy a { color: var(--cream); text-decoration-color: rgba(245,241,232,0.4); }
.section--navy a:hover { color: var(--brass-soft); }

/* Section heading block helper. */
.section-head { margin-bottom: var(--space-xl); }
.section-head .lead { margin-top: var(--space-sm); }

/* A thin brass rule used as a restrained section divider. */
.brass-rule {
  width: 48px;
  height: 2px;
  background: var(--brass);
  border: 0;
  opacity: 1;
  margin: var(--space-md) 0;
}
.text-center .brass-rule,
.brass-rule--center { margin-left: auto; margin-right: auto; }


/* 7. NAVBAR --------------------------------------------------------------- */
.navbar {
  background-color: var(--cream);
  border-bottom: 1px solid transparent;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: background-color var(--transition),
              border-color var(--transition),
              box-shadow var(--transition);
}

/* Sticky variant + a subtler border that firms up once the page scrolls.
   JS toggles .is-scrolled on the navbar at scrollY > 0. */
.navbar.sticky-top { z-index: 1030; }
.navbar.is-scrolled {
  background-color: var(--white);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(10, 31, 61, 0.03);
}

.navbar-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand:hover { color: var(--navy); }
.navbar-brand img { height: 40px; width: auto; }

.navbar .nav-link {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.35rem 0.9rem;
  position: relative;
  transition: color var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: var(--navy); }

/* Active / current nav item — a thin brass underline, not a filled pill. */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: var(--navy);
}
.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: -2px;
  height: 2px;
  background: var(--brass);
}

/* Single outline-navy CTA in the bar. */
.navbar .btn { margin-left: 0.5rem; }

.navbar-toggler {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%230A1F3D' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* 8. BUTTONS -------------------------------------------------------------- */
.btn {
  --bs-btn-border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);     /* 2–4px, never pill */
  padding: 0.6rem 1.5rem;
  transition: background-color var(--transition),
              border-color var(--transition),
              color var(--transition),
              transform var(--transition);
}
.btn:active { transform: translateY(1px); }

/* Primary: navy fill, cream text. */
.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-color: var(--cream);
  --bs-btn-hover-bg: var(--navy-700);
  --bs-btn-hover-border-color: var(--navy-700);
  --bs-btn-hover-color: var(--cream);
  --bs-btn-active-bg: var(--navy-deep);
  --bs-btn-active-border-color: var(--navy-deep);
  --bs-btn-active-color: var(--cream);
  --bs-btn-disabled-bg: var(--navy);
  --bs-btn-disabled-border-color: var(--navy);
  --bs-btn-disabled-color: var(--cream);
}

/* Outline-primary: navy outline, fills navy on hover. Secondary CTAs + navbar. */
.btn-outline-primary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-hover-color: var(--cream);
  --bs-btn-active-bg: var(--navy-deep);
  --bs-btn-active-border-color: var(--navy-deep);
  --bs-btn-active-color: var(--cream);
}

/* On navy surfaces, invert the outline to cream so it stays visible. */
.section--navy .btn-outline-primary,
.hero .btn-outline-primary {
  --bs-btn-color: var(--cream);
  --bs-btn-border-color: rgba(245, 241, 232, 0.6);
  --bs-btn-hover-bg: var(--cream);
  --bs-btn-hover-border-color: var(--cream);
  --bs-btn-hover-color: var(--navy);
}

/* Tertiary text link button. */
.btn-link {
  --bs-btn-color: var(--navy);
  --bs-btn-hover-color: var(--brass);
  font-weight: 600;
  padding-left: 0;
  padding-right: 0;
  text-decoration: none;
}
.btn-link::after {
  content: " →";
  transition: margin-left var(--transition);
}
.btn-link:hover::after { margin-left: 0.2rem; }

/* Keyboard focus ring on buttons (brass, AA contrast on both surfaces). */
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--brass);
}
.section--navy .btn:focus-visible,
.hero .btn:focus-visible {
  box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--brass-soft);
}


/* 9. CARDS & .company-card ----------------------------------------------- */
.card {
  background-color: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: none;                /* no shadow by default */
}
.card .card-body { padding: var(--space-md); }
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
}
.card-subtitle { color: var(--muted); font-size: 0.9rem; }

/* The portfolio card. JS filters by the data-* attributes; we only style. */
.company-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: none;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
}
.company-card:hover,
.company-card:focus-within {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-hover);   /* subtle, navy-tinted */
  transform: translateY(-3px);        /* slight lift */
  color: var(--ink);
}

.company-card__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.company-card__sector {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.company-card__tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

/* Meta row: ownership / year / HQ, set in mono for a "data" feel. */
.company-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.company-card__meta dt { font-weight: 500; color: var(--ink); margin: 0; }
.company-card__meta dd { margin: 0; }

/* Ownership chips — flat, square, no rounding, no fill weight. */
.ownership-chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.ownership-chip[data-ownership="Wholly owned"] {
  color: var(--navy); border-color: var(--navy);
}
.ownership-chip[data-ownership="Majority owned"] {
  color: var(--brass); border-color: var(--brass);
}

/* Filter utility: portfolio-filter.js adds .is-hidden to non-matching cards.
   Use display:none so hidden cards drop out of the grid entirely. */
.is-hidden { display: none !important; }

/* "No results" state for the filtered grid. */
.filter-empty {
  display: none;
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}
.filter-empty.is-visible { display: block; }


/* 10. FORMS --------------------------------------------------------------- */
/* Labels above inputs (not floating, not placeholder-only). */
.form-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-text { color: var(--muted); }

.form-control,
.form-select {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);    /* square / 2px */
  padding: 0.7rem 0.9rem;             /* generous */
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--muted); opacity: 0.7; }

/* Navy focus ring. */
.form-control:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.15);
  outline: none;
}

textarea.form-control { min-height: 8rem; line-height: 1.6; }

.form-check-input {
  border-color: var(--rule-strong);
  border-radius: var(--radius-sm);
}
.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}
.form-check-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.15);
}
.form-check-label { color: var(--ink); }

/* Validation states use the muted status tones, not Bootstrap brights. */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--danger);
  background-image: none;
}
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(138, 59, 51, 0.18);
}
.invalid-feedback { color: var(--danger); font-size: 0.85rem; }
.valid-feedback { color: var(--success); }

/* Multi-step acquisition form: a quiet step indicator. */
.form-steps {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.form-steps li {
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rule);
  flex: 1;
}
.form-steps li.is-active {
  color: var(--navy);
  border-bottom-color: var(--brass);
}
.form-steps li.is-complete { color: var(--navy); border-bottom-color: var(--navy); }


/* 11. TABLES & #capability-matrix ---------------------------------------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--rule);
  --bs-table-striped-bg: rgba(10, 31, 61, 0.025);
  --bs-table-striped-color: var(--ink);
  --bs-table-hover-bg: rgba(10, 31, 61, 0.04);
  --bs-table-hover-color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.table > thead {
  border-bottom: 2px solid var(--rule-strong);
}
.table > thead th {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1rem;
  vertical-align: bottom;
}
.table > tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--rule);
}
.table caption {
  caption-side: top;
  color: var(--muted);
  font-size: 0.85rem;
  padding-bottom: 0.75rem;
}

/* Numeric data: right-aligned and in mono. Add .num to cells/headers. */
.table .num,
.table td.num,
.table th.num,
td[data-type="numeric"],
.table .text-end {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.table th.num { font-family: var(--sans); }   /* header label stays sans */

/* --- Capability / shared-services matrix --- */
#capability-matrix {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.9rem;
}
#capability-matrix th,
#capability-matrix td {
  border: 1px solid var(--rule);
  padding: 0.65rem 0.75rem;
  text-align: center;
}
/* First column = company names: left-aligned, sticky for wide matrices. */
#capability-matrix thead th {
  background-color: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
}
#capability-matrix tbody th[scope="row"] {
  text-align: left;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  background-color: var(--white);
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}
#capability-matrix tbody tr:nth-child(even) th[scope="row"] {
  background-color: var(--cream);
}

/* Marked cell: a company consumes / has this capability.
   JS marks cells with .is-marked (or aria-pressed / data-level). */
#capability-matrix td.is-marked,
#capability-matrix td[data-level="full"] {
  background-color: var(--navy);
  color: var(--cream);
}
#capability-matrix td[data-level="partial"] {
  background-color: rgba(10, 31, 61, 0.12);
  color: var(--navy);
}
#capability-matrix td[data-level="none"] { color: var(--rule-strong); }

/* The mark glyph itself (a filled square / check rendered by JS or content). */
#capability-matrix td.is-marked::after,
#capability-matrix td[data-level="full"]::after { content: "●"; }
#capability-matrix td[data-level="partial"]::after { content: "◐"; }

/* Sortable header affordance. */
#capability-matrix th[aria-sort] { cursor: pointer; }
#capability-matrix th[aria-sort]::after { content: " ↕"; opacity: 0.4; }
#capability-matrix th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
#capability-matrix th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }

/* Horizontal scroll wrapper so wide matrices never break layout. */
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* 12. .stat-counter ------------------------------------------------------- */
/* Large mono numerals; JS counts up to data-target on scroll into view. */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-counter {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section--navy .stat-counter,
.hero .stat-counter { color: var(--cream); }

/* Optional brass prefix/suffix unit ($, %, +, M) set smaller than the number. */
.stat-counter .stat-unit {
  font-size: 0.5em;
  color: var(--brass);
  margin: 0 0.05em;
  vertical-align: baseline;
}
.section--navy .stat-counter .stat-unit { color: var(--brass-soft); }

.stat-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.section--navy .stat-label,
.hero .stat-label { color: rgba(245, 241, 232, 0.7); }


/* 13. .timeline-item ------------------------------------------------------ */
/* Vertical timeline: a left rule with node dots. timeline.js adds
   .is-visible (via IntersectionObserver) to fade + rise each item in. */
.timeline {
  position: relative;
  margin: 0;
  padding-left: 2.25rem;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--rule);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
  /* Hidden start state for the reveal. */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-duration) var(--ease),
              transform var(--reveal-duration) var(--ease);
}
.timeline-item:last-child { padding-bottom: 0; }

/* Node dot on the rule. */
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2.25rem + 0.5rem - 5px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 4px var(--cream);
}

/* Revealed state. */
.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item__year {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brass);
  letter-spacing: 0.02em;
}
.timeline-item__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0.2rem 0 0.4rem;
}
.timeline-item__body {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: var(--measure);
  margin: 0;
}
/* Type tag (founding / acquisition / milestone …). */
.timeline-item__type {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.75rem;
}

/* Emphasize founding / acquisition nodes with a filled navy dot. */
.timeline-item[data-type="founding"]::before,
.timeline-item[data-type="acquisition"]::before {
  background: var(--navy);
  border-color: var(--navy);
}


/* 14. .hero — full-bleed navy ------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--navy);
  color: var(--cream);
  padding-top: var(--section-y-lg);
  padding-bottom: var(--section-y-lg);
  overflow: hidden;
}
/* Optional documentary photo backdrop: keep it quiet under a navy wash.
   Set --hero-img inline: style="--hero-img:url(...)". No gradient — a flat
   navy overlay preserves the institutional, restrained feel. */
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
}
.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  opacity: 0.55;
  z-index: 0;
}
.hero > .container,
.hero > .container-xl,
.hero__inner { position: relative; z-index: 1; }

.hero h1,
.hero .display-1, .hero .display-2, .hero .display-3, .hero .display-4 {
  color: var(--cream);
}
.hero .eyebrow { color: var(--brass-soft); }
.hero .lead,
.hero p { color: rgba(245, 241, 232, 0.85); }
.hero .hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero__actions { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); flex-wrap: wrap; }


/* 15. FOOTER ---------------------------------------------- */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(245, 241, 232, 0.8);
  padding-top: var(--section-y);
  padding-bottom: var(--space-lg);
  font-size: 0.92rem;
}
.site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 { color: var(--cream); }
.site-footer a { color: rgba(245, 241, 232, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.site-footer .footer-heading {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: var(--space-sm);
}
.site-footer hr { border-top-color: rgba(245, 241, 232, 0.12); }
.footer-legal {
  color: rgba(245, 241, 232, 0.55);
  font-size: 0.82rem;
}



/* 16. MISC UTILITIES & RESPONSIVE TUNING --------------------------------- */
/* Brand text/background helpers (extend Bootstrap's). */
.text-navy   { color: var(--navy) !important; }
.text-brass  { color: var(--brass) !important; }
.text-muted-warm { color: var(--muted) !important; }
.text-cream  { color: var(--cream) !important; }
.bg-navy     { background-color: var(--navy) !important; color: var(--cream); }
.bg-cream    { background-color: var(--cream) !important; }
.bg-cream-deep { background-color: var(--cream-deep) !important; }
.bg-white-surface { background-color: var(--white) !important; }

.font-serif { font-family: var(--serif) !important; }
.font-sans  { font-family: var(--sans) !important; }
.font-mono  { font-family: var(--mono) !important; }

/* Tabular numerals helper for any inline figure. */
.tnum { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* A quiet, square brass-accented badge (sector tags, etc.). */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
}

/* Pull figures (large mono number inline in prose). */
.figure-lead {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Constrain content blocks to 8 columns of readable measure on desktop. */
@media (min-width: 992px) {
  .content-8 { max-width: 66.66%; }
  .content-8.mx-auto { margin-left: auto; margin-right: auto; }
}

/* Tighten the annual-report rhythm on small screens. */
@media (max-width: 767.98px) {
  :root {
    --section-y: 3.5rem;
    --section-y-lg: 4.5rem;
  }
  .hero__title { max-width: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .navbar .btn { margin-left: 0; margin-top: 0.5rem; width: 100%; }
  .company-card__meta { font-size: 0.72rem; }
}

/* Print: drop chrome, keep the content legible and ink-on-white. */
@media print {
  .navbar, .site-footer, .skip-link, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section--navy { background: #fff !important; color: #000 !important; }
  .hero h1, .section--navy h2, .stat-counter { color: #000 !important; }
  a { text-decoration: underline; }
}


/* 17. SITE COMPONENTS (page/JS/generator classes) ------------------------- */

/* Brand wordmark (nav + footer) */
.brand-mark { font-family: var(--serif); font-weight: 600; letter-spacing: .02em;
  font-size: 1.15rem; color: var(--navy); }
.brand-mark--brass { color: var(--brass); margin-left: .12em; }
.site-footer .brand-mark { color: var(--cream); }
.site-footer .brand-mark--brass { color: var(--brass-soft); }
.footer-brand .brand-mark { font-size: 1.35rem; }

/* Hero internals */
.hero__inner { max-width: 62rem; }
.hero__title { font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem); line-height: 1.08;
  letter-spacing: -.01em; color: var(--cream); margin: .4rem 0 1.1rem; max-width: 20ch; }
.hero__lead { color: rgba(245,241,232,.82); max-width: 46rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* Outline button on dark surfaces */
.btn-outline-on-dark { color: var(--cream); border-color: rgba(245,241,232,.5); }
.btn-outline-on-dark:hover, .btn-outline-on-dark:focus-visible {
  background: var(--cream); color: var(--navy); border-color: var(--cream); }

/* Muted cream text on navy */
.text-cream-muted { color: rgba(245,241,232,.78); }

/* Section header row with trailing CTA */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }

/* Icon atop pillar cards */
.card-ico { font-size: 1.6rem; display: block; margin-bottom: .7rem; }

/* Shared-services list (navy band on home) */
.shared-services-list { margin: 0; }
.shared-services-list li { display: flex; align-items: center; gap: .8rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(245,241,232,.16);
  color: var(--cream); font-size: 1.05rem; }
.shared-services-list li:last-child { border-bottom: 0; }
.shared-services-list li i { color: var(--brass-soft); font-size: 1.2rem; }

/* Portfolio grid (auto-fill; filtered cards collapse via .is-hidden) */
.portfolio-grid { display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* Company-card internals not already styled by base */
.company-card__link { display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit; }
.company-card__top { display: flex; justify-content: space-between; align-items: center;
  gap: .5rem; margin-bottom: .9rem; }
.company-card__cta { margin-top: auto; padding-top: 1rem; color: var(--navy);
  font-weight: 600; font-size: .9rem; }
.company-card__cta i { transition: transform .2s ease; }
.company-card__link:hover .company-card__cta i { transform: translateX(4px); }
.company-card--wide { max-width: none; }

/* Ownership chip — light variant for navy heroes */
.ownership-chip--light { background: rgba(245,241,232,.12); color: var(--cream);
  border-color: rgba(245,241,232,.28); }

/* Sector tag cloud */
.sector-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
a.tag { text-decoration: none; }
a.tag:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* Footer detail */
.footer-blurb { color: rgba(245,241,232,.7); font-size: .92rem; line-height: 1.6; }
.footer-blurb a { color: var(--brass-soft); text-decoration: none; }
.footer-head { color: var(--cream); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(245,241,232,.75); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(245,241,232,.14);
  margin-top: 2.5rem; padding-top: 1.5rem; }

/* Newsroom items */
.news-item { border-bottom: 1px solid var(--rule); }
.news-item__link { display: block; padding: 1.5rem 0; text-decoration: none; color: inherit; }
.news-item--card { border: 1px solid var(--rule); border-radius: 4px; height: 100%;
  background: var(--white); transition: box-shadow .2s ease, transform .2s ease; }
.news-item--card:hover { box-shadow: 0 6px 22px rgba(10,31,61,.08); transform: translateY(-2px); }
.news-item--card .news-item__link { padding: 1.5rem; }
.news-item__meta { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.news-item__date { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.news-item__cat { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; }
.news-item__headline { font-family: var(--serif); font-weight: 500; font-size: 1.3rem;
  line-height: 1.25; margin: 0 0 .5rem; color: var(--navy); }
.news-item__dek { color: var(--muted); margin: 0 0 .5rem; }
.news-item__cta { color: var(--navy); font-weight: 600; font-size: .9rem; }
.news-item__link:hover .news-item__headline { color: var(--brass); }

/* Breadcrumb bar (detail pages) */
.breadcrumb-bar { background: var(--cream-deep); border-bottom: 1px solid var(--rule);
  padding: .85rem 0; font-size: .85rem; }
.breadcrumb-bar a { color: var(--navy); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--brass); }
.breadcrumb-bar span { color: var(--muted); }

/* Company profile hero */
.company-hero { padding: 4.5rem 0 3.5rem; background: var(--navy); color: var(--cream); }
.company-hero .eyebrow a, .sector-link { color: var(--brass-soft); text-decoration: none; }
.company-hero__name { font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; color: var(--cream);
  margin: .3rem 0 .6rem; }
.company-hero__tagline { color: rgba(245,241,232,.82); max-width: 44rem; }
.company-hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

/* Facts sidebar card */
.facts-card { border: 1px solid var(--rule); border-radius: 4px; padding: 1.8rem;
  background: var(--cream); position: sticky; top: 6rem; }
.facts-card__head { font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  margin-bottom: 1.2rem; color: var(--navy); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; margin: 0; }
.facts-grid--full { grid-template-columns: 1fr; margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rule); }
.fact dt { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .2rem; }
.fact dd { font-size: 1rem; color: var(--ink); margin: 0; font-weight: 500; }

/* Shared-services chips on profile */
.ss-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0;
  margin: .8rem 0 0; list-style: none; }
.ss-chip { background: var(--cream-deep); border: 1px solid var(--rule); border-radius: 3px;
  padding: .4rem .8rem; font-size: .85rem; color: var(--navy); }

/* Newsroom article hero */
.article-hero { padding: 3.5rem 0 2rem; }
.article-hero__meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.article-hero__date { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.article-hero__headline { font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; color: var(--navy); }
.article-hero__dek { color: var(--muted); margin-top: .8rem; }
.measure-wide { max-width: 44rem; }

/* Capability matrix table */
.matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.matrix-table th, .matrix-table td { padding: .6rem .7rem;
  border-bottom: 1px solid var(--rule); text-align: center; }
.matrix-rowhead, .matrix-company, .matrix-sector { text-align: left !important; }
.matrix-table thead th { background: var(--navy); color: var(--cream); font-weight: 500;
  font-size: .8rem; position: sticky; top: 0; }
.matrix-company a { color: var(--navy); text-decoration: none; font-weight: 600; }
.matrix-company a:hover { color: var(--brass); }
.matrix-fee { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.matrix-sector { color: var(--muted); font-size: .82rem; }
.cap-cell.is-on { color: var(--success); }
.cap-cell .bi { font-size: 1rem; }
.cap-dash { color: var(--rule-strong); }
.matrix-note { margin-top: 1rem; font-size: .85rem; }

/* Timeline internals not already styled by base */
.timeline-item__text { color: var(--muted); margin: .4rem 0 0; }
.timeline-item__link { font-weight: 600; font-size: .88rem; text-decoration: none;
  color: var(--navy); display: inline-block; margin-top: .5rem; }
.timeline-item__link:hover { color: var(--brass); }

/* Multi-step form (for-founders) */
/* Multi-step application form (for-founders). Note: NOT .form-steps — that
   class is the horizontal step indicator above and must not flex these. */
.application-form fieldset { border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.6rem 1.8rem; margin-bottom: 1.5rem; }
.application-form legend { float: none; width: auto; font-family: var(--serif);
  font-weight: 500; font-size: 1.3rem; color: var(--navy); padding: 0;
  margin-bottom: 1.1rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; }
.application-form .form-label { font-weight: 500; }
.application-form textarea.form-control { min-height: 7rem; }
.form-success { border: 1px solid var(--success); background: #eef2ee; color: var(--success);
  padding: 1.6rem 1.8rem; border-radius: 4px; }
.form-dev-note { font-size: .82rem; color: var(--muted); margin-top: .75rem; }

/* Open-roles table (careers) */
.roles-table td, .roles-table th { vertical-align: middle; }

/* Interior page hero (trims the full-bleed navy hero for non-home pages) */
.hero--page { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* Approach: stage numbers */
.stage-num { font-family: var(--serif); font-size: 2.4rem; line-height: 1;
  display: block; margin-bottom: .4rem; }

/* Approach: before/after compare table (sits on a navy section) */
.section--navy .compare-table { color: var(--cream); --bs-table-bg: transparent;
  --bs-table-color: var(--cream); }
.section--navy .compare-table th, .section--navy .compare-table td {
  border-color: rgba(245,241,232,.18); color: var(--cream); vertical-align: top; }
.compare-table thead th { color: var(--brass-soft); font-weight: 500; }

/* Approach: fee + criteria lists */
.fee-list li, .criteria-list__item { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.fee-list li:last-child, .criteria-list__item:last-child { border-bottom: 0; }
.criteria-list__item { display: flex; gap: .8rem; align-items: flex-start; }

/* About: region footprint list */
.region-list__item { padding: .6rem 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: .6rem; align-items: baseline; }
.region-list__item:last-child { border-bottom: 0; }

/* Leadership grid cards */
.leader-card { background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.8rem; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.leader-card:hover { box-shadow: 0 6px 22px rgba(10,31,61,.08); transform: translateY(-2px); }
.leader-card__photo { width: 84px; height: 84px; border-radius: 4px; background: var(--navy);
  color: var(--cream); font-family: var(--serif); font-size: 1.7rem; display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.1rem; letter-spacing: .02em; }
.leader-card__name { font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  color: var(--navy); margin: 0 0 .2rem; }
.leader-card__title { color: var(--muted); font-size: .92rem; margin: 0 0 .9rem; }
.leader-card__more { font-weight: 600; font-size: .9rem; }
.leader-card__more i { transition: transform .2s ease; }
.leader-card__more:hover i { transform: translateX(4px); }

/* Leadership offcanvas bio */
.leader-bio { width: min(440px, 92vw) !important; }
.leader-bio__photo { width: 96px; height: 96px; border-radius: 4px; background: var(--navy);
  color: var(--cream); font-family: var(--serif); font-size: 2rem; display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.3rem; }
.leader-bio .offcanvas-title { font-family: var(--serif); font-weight: 500; color: var(--navy); }
.leader-bio__priors { color: var(--muted); padding-left: 1.1rem; }
.leader-bio__priors li { margin-bottom: .35rem; }

/* Brand logo image (navbar) */
.navbar-brand { padding-top: .25rem; padding-bottom: .25rem; }
.brand-logo { display: block; }
@media (max-width: 575.98px) { .navbar-brand img.brand-logo { height: 32px; } }
