/* ============================================================================
   Mount Dev Solutions — "The Ascent Grid"
   Single stylesheet. Design tokens first, then base, layout, components.

   Palette is drawn from the logo: navy + a single amber accent.
   CONTRAST RULE: --amber (#E9A103) is 2.3:1 on white and MUST NOT be used for
   text on light backgrounds. On light, use --amber-ink (5.4:1). On navy, amber
   text is fine (7.3:1). Amber on light is for fills, rules and borders only.
   ========================================================================= */

/* ---------------------------------------------------------------- fonts -- */
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/jakarta-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/jakarta-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  /* brand */
  --navy-900: #051838;
  --navy-800: #061e44;
  --navy-700: #07224f;   /* primary, taken from the logo */
  --navy-600: #0a2b63;
  --navy-500: #0d3573;
  --amber: #e9a103;      /* accent, taken from the logo */
  --amber-600: #cf8e02;
  --amber-ink: #8a5d00;  /* the only amber permitted as text on light */

  /* neutrals */
  --paper: #faf8f4;
  --paper-alt: #f2eee7;
  --white: #ffffff;
  --ink: #16191f;
  --ink-muted: #5a5f66;
  --line: #e4dfd6;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c4d6;
  --line-navy: rgba(255, 255, 255, 0.14);

  /* status */
  --success: #0f7b52;
  --success-bg: #e7f4ee;
  --danger: #b3261e;
  --danger-bg: #fdeceb;

  /* type */
  --font-display: 'Jakarta', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.55rem + 4.2vw, 4.25rem);
  --fs-h1: clamp(2.15rem, 1.6rem + 2.6vw, 3.35rem);
  --fs-h2: clamp(1.8rem, 1.45rem + 1.7vw, 2.65rem);
  --fs-h3: clamp(1.2rem, 1.11rem + 0.45vw, 1.45rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 2.6rem + 5.4vw, 7.5rem);
  --max-w: 1200px;
  --max-prose: 68ch;

  /* Contextual text colours. Components reference these rather than the raw
     tokens, so a block placed on navy recolours its body copy, icons and
     accents in one step. Light values are the default; dark surfaces below
     override the same three names. */
  --c-ink: var(--ink);
  --c-muted: var(--ink-muted);
  --c-accent: var(--amber-ink);   /* amber that is legible as text here */

  --radius: 10px;
  --radius-lg: 16px;
  --ring: 0 0 0 3px rgba(233, 161, 3, 0.45);
  --shadow: 0 12px 32px -16px rgba(7, 34, 79, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ----------------------------------------------------------- typography -- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;          /* Jakarta reads lighter than Space Grotesk at 700 */
  line-height: 1.12;
  letter-spacing: -0.03em;   /* Jakarta is a touch wider; pull it in */
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: var(--max-prose);
}

.prose > * + * { margin-block-start: 1.15em; }
.prose { max-width: var(--max-prose); color: var(--c-muted); }
.prose strong { color: var(--c-ink); font-weight: 600; }

/* ------------------------------------------------- light / dark contexts --
   Any surface that paints itself navy re-points the contextual colours.
   Any surface that paints itself light points them back. Nesting therefore
   works in both directions (a white card inside a navy band reads correctly). */
.section--navy,
.hero,
.page-hero,
.hero__panel,
.panel--navy,
.section--navy .card,
.site-footer {
  --c-ink: var(--on-navy);
  --c-muted: var(--on-navy-muted);
  --c-accent: var(--amber);       /* 7.3:1 on navy — safe as text here */
}

.card,
.panel,
.stats-strip,
.role,
.empty-state {
  --c-ink: var(--ink);
  --c-muted: var(--ink-muted);
  --c-accent: var(--amber-ink);
}
/* …but a card that sits on a navy band is itself navy, so it flips back.
   Declared after the reset above so it wins on equal specificity grounds. */
.section--navy .card,
.panel--navy {
  --c-ink: var(--on-navy);
  --c-muted: var(--on-navy-muted);
  --c-accent: var(--amber);
}

/* --------------------------------------------------------------- layout -- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 900px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 3.5vw, 4.5rem); }

/* Dark band. Carries the logo arch as a large, very low contrast watermark. */
.section--navy {
  position: relative;
  background: var(--navy-700);
  color: var(--on-navy);
  overflow: hidden;
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--on-navy); }

.section--navy::after {
  content: '';
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 3rem);
  width: min(380px, 34%);
  aspect-ratio: 592 / 344;
  background: url('../img/logo-mark.png') no-repeat center / contain;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

/* Two navy sections in a row read as one continuous band, so their two
   watermarks stack up in the same corner. Only the last of a run keeps one.
   Affects /why-choose-us/ (Trusted by + CTA) and /services/ (Why both + CTA). */
.section--navy:has(+ .section--navy)::after { content: none; }

.section--paper-alt { background: var(--paper-alt); }

/* Two sections of the same colour in a row read as one continuous band, so the
   doubled section padding at the join leaves a dead gap in the middle of it.
   Collapse the join: the second drops its top padding and the first trims its
   bottom. Applies to the paper-alt run (Why-us -> Testimonials) and the navy
   run (Why both together -> CTA on /services/, and the CTA on other pages). */
.section--paper-alt + .section--paper-alt,
.section--navy + .section--navy { padding-block-start: 0; }
.section--paper-alt:has(+ .section--paper-alt),
.section--navy:has(+ .section--navy) { padding-block-end: clamp(2rem, 1.4rem + 2vw, 3rem); }

.stack > * + * { margin-block-start: var(--stack-gap, 1rem); }

/* Section header: numbered eyebrow + heading + optional lead.
   Intros run the full container width rather than wrapping early at a 68ch
   measure — the client asked for this repeatedly, so it is the default here
   rather than an opt-in modifier that the next section would forget. The
   .section-head--wide class is kept as a harmless no-op in case any markup
   still carries it. */
.section-head { max-width: none; margin-block-end: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.section-head .lead { max-width: none; }
.page-hero .lead { max-width: none; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head > * + * { margin-block-start: 1rem; }

/* No trailing rule: the client asked for it gone, so the eyebrow is now just
   the numbered label ("01. Who we are?"). */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.section-head--center .eyebrow { text-align: center; }

/* --------------------------------------------------------------- header -- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-700);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header[data-scrolled='true'] { box-shadow: 0 6px 24px -18px rgba(7, 34, 79, 0.5); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

/* Brand lockup. The wordmark baked into logo.png is only 15% of its height,
   so at a 44px header it would render around 7px tall. The symbol is paired
   with live text instead — crisper, scalable, and selectable. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img { width: auto; height: 38px; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy-700);
  white-space: nowrap;
}
.brand__name span { display: block; font-weight: 500; color: var(--ink-muted); }

@media (max-width: 400px) {
  .brand img { height: 32px; }
  .brand__name { font-size: 0.9rem; }
}

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.75rem); }

.nav a {
  position: relative;
  padding: 0.5rem 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--navy-700); }
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--navy-700); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy-700);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 1.5rem var(--gutter) 3rem;
  background: var(--navy-700);
  color: var(--on-navy);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav[data-open='true'] { display: flex; }
.mobile-nav a {
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--on-navy);
  text-decoration: none;
  border-block-end: 1px solid var(--line-navy);
}
.mobile-nav a[aria-current='page'] { color: var(--amber); }
.mobile-nav .btn { margin-block-start: 1.75rem; }
.mobile-nav__meta {
  margin-block-start: auto;
  padding-block-start: 2rem;
  font-size: var(--fs-sm);
  color: var(--on-navy-muted);
}
.mobile-nav__meta a { display: inline; padding: 0; font-family: var(--font-body); font-size: inherit; font-weight: 500; border: 0; }

body[data-menu-open='true'] { overflow: hidden; }

@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--navy-900);
  --btn-bd: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { --btn-bg: var(--amber-600); --btn-bd: var(--amber-600); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--outline:hover { --btn-bg: var(--navy-700); --btn-fg: var(--white); --btn-bd: var(--navy-700); }

/* on dark bands */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-bd: var(--white); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--amber-ink); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--amber); }
.section--navy .link-arrow:hover { color: var(--white); }

/* ---------------------------------------------------------------- cards -- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.card p { color: var(--c-muted); }
.card:hover { border-color: var(--amber); transform: translateY(-4px); box-shadow: var(--shadow); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--navy-700);
  background: var(--paper-alt);
  border-radius: 12px;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--amber); color: var(--navy-900); }

.card .link-arrow { margin-block-start: auto; padding-block-start: 0.5rem; }

/* Card variant used on navy bands */
.section--navy .card {
  background: var(--navy-600);
  border-color: var(--line-navy);
}
.section--navy .card__icon { background: rgba(255, 255, 255, 0.09); color: var(--amber); }

/* Numbered card (process steps, differentiators) */
.card--numbered { position: relative; }
.card__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
}

/* ------------------------------------------------------------ checklist -- */
.checklist { display: grid; gap: 0.85rem; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--c-muted);
}
.checklist svg { width: 22px; height: 22px; margin-block-start: 0.2rem; color: var(--c-accent); }
.checklist strong { color: var(--c-ink); font-weight: 600; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
  background: var(--navy-700);
  color: var(--on-navy);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 88% 12%, rgba(233, 161, 3, 0.16), transparent 62%),
    radial-gradient(70% 90% at 6% 96%, rgba(13, 53, 115, 0.75), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 { color: var(--on-navy); margin-block: 1.25rem 1.25rem; }
.hero h1 .accent {
  color: var(--amber);
  /* underline drawn as a background so it never clips descenders */
  background: linear-gradient(var(--amber), var(--amber)) no-repeat left 100% / 100% 4px;
  padding-block-end: 4px;
}
.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 56ch;
  margin-block-end: 2rem;
}

/* Hero side panel — replaces the old decorative "dashboard" that was
   display:none below 768px. This is real content and shows at every width. */
.hero__panel {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-navy);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__panel h2 {
  font-size: var(--fs-h3);
  color: var(--c-ink);
  margin-block-end: 0.5rem;
}
.hero__panel > p { color: var(--c-muted); font-size: var(--fs-sm); margin-block-end: 1.5rem; }
.hero__panel .checklist { padding-block-start: 1.5rem; margin-block-start: 1.5rem; border-block-start: 1px solid var(--line-navy); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.hero__stats div { display: flex; flex-direction: column; }

.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-accent);
}
/* Count-up: main.js swaps in the animated value, so reserve the final width
   with the real text to stop the row jittering as digits change. */
.stat-figure[data-count] { font-variant-numeric: tabular-nums; }

.stat-label {
  margin-block-start: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Light-band stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stats-strip > div { display: flex; flex-direction: column; }
.stats-strip .stat-figure { color: var(--navy-700); }

/* ------------------------------------------------------------ page hero -- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 2.2rem + 3.4vw, 5.25rem);
  background: var(--navy-700);
  color: var(--on-navy);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 100% at 92% 0%, rgba(233, 161, 3, 0.14), transparent 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--on-navy); margin-block: 1rem 1.15rem; }

/* The global `* { margin: 0 }` reset leaves the breadcrumb sitting on top of
   the eyebrow beneath it, so the gap is restored explicitly here. */
.breadcrumb {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--on-navy-muted);
  margin-block-end: 1.5rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb a { color: var(--on-navy-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-inline-start: 0.5rem; opacity: 0.5; }
.breadcrumb [aria-current='page'] { color: var(--on-navy); }

/* --------------------------------------------------------- trust strip -- */
.trust { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-block-end: 1px solid var(--line); }
.trust__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-block-end: 1.5rem;
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 1rem + 2.5vw, 3.5rem);
}
.trust__list li {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
  font-weight: 600;
  color: var(--navy-700);
  opacity: 0.72;
  transition: opacity 0.2s var(--ease);
}
.trust__list li:hover { opacity: 1; }

/* ---------------------------------------------------- client logo marquee --
   Horizontal, right-to-left, seamless. The track holds two identical sets and
   shifts by exactly -50%, so the seam never shows. Pauses on hover and on
   keyboard focus; under prefers-reduced-motion it stops and the row simply
   scrolls by hand instead. */
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logoScroll var(--dur, 42s) linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }

.logo-marquee__set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
  padding-inline-end: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
}
.logo-marquee__set li { display: flex; align-items: center; }

/* Every file is the same canvas height and optically area-matched, so one
   height here keeps the row balanced without per-logo tuning. */
.logo-marquee img {
  height: clamp(42px, 3.4vw, 56px);
  width: auto;
  /* Shown in the clients' own brand colours — the client asked for their
     logos, not a decorative grey row. A slight dim keeps the strip from
     competing with the hero; hover brings it fully up. */
  opacity: 0.9;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.logo-marquee li:hover img { opacity: 1; transform: translateY(-2px); }

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-marquee__track { animation: none; }
  .logo-marquee__set--dup { display: none; }
}

/* --------------------------------------------------------- split blocks -- */
.split {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse > :first-child { order: 2; }
}

.panel {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel--navy { background: var(--navy-700); color: var(--on-navy); border-color: transparent; }
.panel--navy h2, .panel--navy h3 { color: var(--on-navy); }
.panel--navy p { color: var(--c-muted); }

.panel__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1rem;
}
.panel__title svg { width: 26px; height: 26px; color: var(--c-accent); flex-shrink: 0; }

/* Definition-style rows (service detail pages) */
.deflist { display: grid; gap: 1.75rem; }
.deflist > div { padding-block-end: 1.75rem; border-block-end: 1px solid var(--line); }
.deflist > div:last-child { padding-block-end: 0; border-block-end: 0; }
.deflist dt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-block-end: 0.6rem;
}
.deflist dt svg { width: 24px; height: 24px; color: var(--c-accent); flex-shrink: 0; }
.deflist dd { margin: 0; color: var(--c-muted); }

/* ------------------------------------------------------------ lifecycle --
   The employee lifecycle panel on /about/. Built as real markup with inline
   SVG icons rather than one flat image, so the labels stay selectable, scale
   with the reader's font size and reflow on a phone. The connector is drawn
   with a pseudo-element between the icon circles, so it can never drift out of
   step with the text beside it. */
.lifecycle {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.lifecycle__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-block-end: 1.5rem;
}
.lifecycle__list { display: grid; }
.lifecycle__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding-block-end: 1.6rem;
}
.lifecycle__step:last-child { padding-block-end: 0; }
/* the run of track between one icon and the next */
.lifecycle__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(var(--amber), rgba(233, 161, 3, 0.22));
}
.lifecycle__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--amber);
}
.lifecycle__icon svg { width: 21px; height: 21px; }
.lifecycle__step h3 {
  font-size: 1.05rem;
  margin-block: 0.55rem 0.3rem;
}
.lifecycle__step p { font-size: var(--fs-sm); color: var(--ink-muted); }

.lifecycle__loop {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-block-start: 1.5rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.lifecycle__loop svg { width: 18px; height: 18px; flex-shrink: 0; margin-block-start: 0.18rem; color: var(--amber-ink); }

/* -------------------------------------------------------------- founder -- */
.founder {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .founder { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.founder__photo {
  position: relative;
  max-width: 420px;
  width: 100%;
}
.founder__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;   /* keeps the face in frame when cropped */
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.founder__name { margin-block-end: 0.25rem; }
.founder__role {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-block-end: 1.5rem;
}
.founder__bio > * + * { margin-block-start: 1.1em; }
.founder__bio { color: var(--c-muted); max-width: 60ch; }
.founder__bio strong { color: var(--c-ink); font-weight: 600; }

.founder__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-block-start: 1.75rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}
.founder__meta div { display: flex; flex-direction: column; }
.founder__meta dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.founder__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-700);
}

/* --------------------------------------------------------- testimonials -- */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  padding: 0.85rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.reviews-badge__g { width: 26px; height: 26px; flex-shrink: 0; }
.reviews-badge__score {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reviews-badge__count {
  padding-inline-start: 1.15rem;
  border-inline-start: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.reviews-badge__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--navy-700);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  transition: background-color 0.2s var(--ease);
}
.reviews-badge:hover .reviews-badge__cta { background: var(--navy-500); }
.reviews-badge__cta svg { width: 15px; height: 15px; }

@media (max-width: 520px) {
  .reviews-badge { border-radius: var(--radius-lg); justify-content: center; }
  .reviews-badge__count { padding-inline-start: 0; border-inline-start: 0; }
}

/* Stars. Amber as a fill, never as text — see the contrast rule at the top. */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; color: var(--amber); }

/* Scrolling testimonial columns. Three marquees at different speeds and
   directions, masked top and bottom. Hovering or keyboard-focusing a column
   pauses it so the reviews can actually be read.

   Below 900px and under prefers-reduced-motion the whole thing degrades to a
   plain static grid showing every review — no animation, no clipping. */
.marquees {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marquee {
  position: relative;
  height: clamp(520px, 62vh, 720px);
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* No gap on the track: each card carries its own bottom margin instead, so the
   two stacked sets are exactly equal and a -50% shift loops seamlessly. */
.marquee__track { animation: marqueeUp var(--dur, 30s) linear infinite; will-change: transform; }
.marquee--down .marquee__track { animation-name: marqueeDown; }
.marquee__set > li { margin-block-end: 1.15rem; }

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marqueeUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes marqueeDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.review {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.review:hover { border-color: var(--amber); box-shadow: var(--shadow); }

.review .stars { align-self: flex-start; margin-block-end: 0.85rem; }

.review__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.review__text q { quotes: none; }
/* Highlighted phrase. Amber tint as a background only — the text on top stays
   --ink, so this never trips the amber-on-light contrast rule. */
.review__text mark {
  background: rgba(233, 161, 3, 0.3);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 3px;
}

.review__person {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.7rem;
  align-items: center;
  margin-block-start: 1rem;
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--line);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}
.review__avatar--alt { background: var(--navy-500); }
.review__avatar--amber { background: var(--amber); color: var(--navy-900); }
.review__name { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.review__meta { font-size: var(--fs-xs); color: var(--ink-muted); margin-block-start: 1px; }

@media (max-width: 900px) {
  .marquees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .marquees { grid-template-columns: 1fr; }
}

/* Static fallback — every review visible, nothing moving or clipped. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .marquee { height: auto; overflow: visible; -webkit-mask: none; mask: none; }
  .marquee__track { animation: none; }
  .marquee__set--dup { display: none; }
}

/* ------------------------------------------------------------- process -- */
.steps { counter-reset: step; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
/* Five steps need five tracks, otherwise the last one orphans onto its own row. */
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step { position: relative; padding-block-start: 1.75rem; border-block-start: 2px solid var(--line-navy); }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: -0.9rem;
  left: 0;
  padding-inline-end: 0.75rem;
  background: var(--navy-700);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.step h3 { font-size: 1.15rem; margin-block-end: 0.5rem; }
.step p { font-size: var(--fs-sm); color: var(--c-muted); }

/* ----------------------------------------------------------------- FAQ -- */
.faq { display: grid; gap: 0; max-width: var(--max-prose); }
.faq details {
  border-block-end: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 14px;
  height: 14px;
  border-inline-end: 2px solid var(--c-accent);
  border-block-end: 2px solid var(--c-accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details[open] summary { color: var(--navy-700); }
.faq p { padding-block-end: 1.35rem; color: var(--c-muted); }

/* ----------------------------------------------------------------- CTA -- */
.cta-band { text-align: center; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { margin-block-end: 1rem; }
.cta-band .lead { margin-inline: auto; margin-block-end: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- forms -- */
.form { display: grid; gap: 1.35rem; }
.form-row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field .req { color: var(--c-accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: var(--fs-body);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }

/* While the unchosen placeholder is selected, the select should read as
   placeholder text like the inputs beside it, not as a real answer. */
.field select:has(option[value=""]:checked) { color: var(--ink-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: var(--ring);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--danger); }

/* Honeypot — hidden from users and assistive tech, visible to naive bots. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  display: none;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.form-status[data-state='error'],
.form-status[data-state='success'] { display: flex; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-block-start: 0.15rem; }
.form-status[data-state='success'] { background: var(--success-bg); color: var(--success); border: 1px solid currentColor; }
.form-status[data-state='error'] { background: var(--danger-bg); color: var(--danger); border: 1px solid currentColor; }
.form-status a { color: inherit; font-weight: 600; }

/* -------------------------------------------------------------- contact -- */
.contact-list { display: grid; gap: 1.25rem; }
.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
}
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--paper-alt);
  border-radius: 12px;
  color: var(--navy-700);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-block-end: 0.2rem; }
.contact-item p, .contact-item a { color: var(--c-muted); font-size: var(--fs-sm); }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--amber-ink); text-decoration: underline; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 340px; border: 0; }

/* -------------------------------------------------------------- careers -- */
.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.role h3 { font-size: 1.15rem; }
.role__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-block-start: 0.35rem; font-size: var(--fs-sm); color: var(--c-muted); }

.empty-state {
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty-state h3 { margin-block-end: 0.75rem; }
.empty-state p { color: var(--c-muted); max-width: 52ch; margin-inline: auto; margin-block-end: 1.5rem; }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem) 2rem;
  background: var(--navy-900);
  color: var(--on-navy-muted);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: auto; }
}

.site-footer .brand { margin-block-end: 1.25rem; }
.site-footer .brand img { height: 42px; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__name span { color: var(--on-navy-muted); }
.site-footer h2 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-block-end: 1.1rem;
}
.site-footer p { max-width: 40ch; }
.site-footer ul { display: grid; gap: 0.7rem; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }

/* Get-in-touch column: labelled groups, each line led by an icon. The icon is
   a flex sibling rather than a list marker so a wrapped address stays aligned
   with the text above it instead of sliding under the icon. */
.footer-contact { gap: 1.35rem; }
.footer-contact__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-block-end: 0.5rem;
}
.footer-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-contact__row + .footer-contact__row { margin-block-start: 0.45rem; }
.footer-contact__row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-block-start: 0.28rem;
  color: var(--amber);
}
.footer-contact__row a { text-decoration: none; }
.footer-contact__row a:hover { color: var(--amber); text-decoration: underline; }
/* max-width on .site-footer p would squeeze these rows; they set their own. */
.site-footer .footer-contact p { max-width: none; }

.site-footer ul.social {
  display: flex;
  gap: 0.75rem;
  margin-block-start: 1.5rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-navy);
  border-radius: 10px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social li { display: block; }
.social svg { width: 20px; height: 20px; }
.social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-900); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--line-navy);
  font-size: var(--fs-xs);
}

/* ------------------------------------------------------------ 404 / misc -- */
.centered-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding-block: var(--section-y);
}
.centered-page .btn-row { justify-content: center; }
.big-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.04em;
}

/* ------------------------------------------------------------ utilities -- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-block-start: 0; }
.mt-3 { margin-block-start: 2rem; }
.mb-3 { margin-block-end: 2rem; }

/* --------------------------------------------------------------- motion --
   Reveal-on-scroll. The starting state is scoped to .js on <html>, which the
   inline script in each page's head adds and the main.js onerror takes back
   off. Without that gate, scripting being off — or main.js simply failing to
   download — would leave most of every page permanently at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@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;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- print -- */
@media print {
  .site-header, .mobile-nav, .site-footer, .btn, .map-embed { display: none !important; }
  body { background: #fff; color: #000; }
  .section--navy, .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .section--navy *, .hero *, .page-hero * { color: #000 !important; }
}
