/* Czar Powered: shared styles.
   Brand source: brand/czar-powered-brand-kit.html and brand/tokens.css. */

:root {
  /* Brand neutrals (brand kit) */
  --czar-black: #100E0E;
  --graphite: #3A3535;   /* brand kit data ramp, step 5 */
  --silver: #D9D9D9;
  --steel: #797979;      /* decorative rules and large text only: 4.4:1 on black and on white */
  --paper: #FFFFFF;
  --ink: #000000;

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Type scale */
  --step-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --step-h2: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
  --step-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --step-lead: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);
  --step-body: 1.125rem;
  --step-small: 0.9375rem;
  --step-label: 0.8125rem;

  /* Space, 8px rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: clamp(5rem, 3rem + 7vw, 9rem);

  --gutter: max(20px, 5vw);
  --max: 1280px;
  --radius-pill: 300px;
  --radius-field: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  color-scheme: dark;
}
a, button, input, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: rgb(217 217 217 / 0.18); }

/* Band tones: each band sets its own ground and the colors every component reads. */
.tone-night { --bg: var(--czar-black); --fg: var(--paper); --body: var(--silver); --rule: #2E2A2A; --btn-bg: var(--paper); --btn-fg: var(--ink); --field: #1B1818; --field-line: #5A5555; }
.tone-dusk  { --bg: var(--graphite); --fg: var(--paper); --body: #ECE9E9; --rule: #565050; --btn-bg: var(--paper); --btn-fg: var(--ink); --field: #2F2B2B; --field-line: #6E6868; }
.tone-dawn  { color-scheme: light; --bg: var(--silver); --fg: var(--czar-black); --body: #241F1F; --rule: #A8A4A4; --btn-bg: var(--ink); --btn-fg: var(--paper); --field: #FFFFFF; --field-line: #8A8585; }
.tone-day   { color-scheme: light; --bg: var(--paper); --fg: var(--czar-black); --body: #2C2828; --rule: #DCD8D8; --btn-bg: var(--ink); --btn-fg: var(--paper); --field: #FFFFFF; --field-line: #8A8585; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rail-h, 0px) + 16px); }
body {
  margin: 0;
  background: var(--czar-black);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--silver); color: var(--czar-black); }
.tone-dawn ::selection, .tone-day ::selection { background: var(--czar-black); color: var(--paper); }
html { scrollbar-color: #5A5555 var(--czar-black); }

[class*="tone-"] { background: var(--bg); color: var(--fg); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
  color: var(--fg);
}
p { margin: 0; color: var(--body); text-wrap: pretty; }
strong { font-weight: 700; color: var(--fg); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg, var(--paper)); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--space-8); position: relative; }
.measure { max-width: 64ch; }
.lead { font-size: var(--step-lead); line-height: 1.5; color: var(--body); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Icons: authored SVG, 1.5 stroke */
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--step-small)/1 var(--font-body);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:hover { background: transparent; color: var(--fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { background: var(--btn-bg); color: var(--btn-fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: var(--step-label); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; color: var(--fg); text-decoration: underline; text-decoration-color: var(--steel);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .icon { transition: transform 200ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: relative; z-index: 40; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: var(--header-h); padding-block: 14px;
}
.brand-link { display: inline-flex; border-radius: 6px; }
.brand-link img { width: clamp(168px, 14vw, 210px); }
.site-nav { display: flex; align-items: center; gap: var(--space-4); }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-size: var(--step-small); font-weight: 600; text-decoration: none; color: var(--fg);
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--steel); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--fg); }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid #5A5555; background: transparent; color: var(--fg);
  font: 600 var(--step-label)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--space-3);
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--czar-black); border-bottom: 1px solid #2E2A2A;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 16px 0; font-size: 1.25rem; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid #2E2A2A; }
  .js .site-nav a[aria-current="page"] { border-bottom-color: #2E2A2A; text-decoration: underline; }
  .js .site-nav .btn { align-self: flex-start; }
  .site-nav { flex-wrap: wrap; gap: var(--space-2); }
}

/* Home hero */
.hero { position: relative; overflow: hidden; padding-top: 0; padding-bottom: 0; }
.hero-media {
  position: absolute; inset: 0 0 0 auto; width: min(58%, 900px);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-media::after {
  /* fade the photo's left edge into the night ground so the copy column reads cleanly */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--czar-black) 0%, rgb(16 14 14 / 0.55) 28%, rgb(16 14 14 / 0) 60%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding-block: clamp(4rem, 2rem + 8vw, 9rem) var(--space-6);
  max-width: 50rem;
  display: grid; gap: var(--space-4);
}
.hero h1 { font-size: var(--step-display); letter-spacing: -0.035em; line-height: 0.98; max-width: 12ch; }
.hero .lead { max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }

/* Path rail (first viewport) */
.rail { position: relative; z-index: 1; padding-bottom: var(--space-5); }
.rail ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3);
}
.rail a {
  display: grid; gap: 6px; text-decoration: none; color: var(--fg);
  padding-top: var(--space-2); border-top: 3px solid var(--stop);
  border-radius: 0;
}
.rail li:nth-child(1) { --stop: var(--graphite); }
.rail li:nth-child(2) { --stop: var(--steel); }
.rail li:nth-child(3) { --stop: var(--silver); }
.rail li:nth-child(4) { --stop: var(--paper); }
.rail .rail-name { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.15; display: flex; gap: 10px; align-items: baseline; }
.rail .rail-num { font-family: var(--font-body); font-size: var(--step-label); font-weight: 600; color: var(--silver); font-variant-numeric: tabular-nums; }
.rail .rail-sub { font-size: var(--step-small); color: var(--silver); line-height: 1.4; }
.rail a:hover .rail-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Statement */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: end; }
.statement h2 { font-size: var(--step-h3); line-height: 1.22; letter-spacing: -0.02em; max-width: 30ch; }
.rwa-word { display: grid; gap: var(--space-3); align-content: end; }
.rwa-word p.rwa {
  font-family: var(--font-display); font-weight: 500; color: var(--fg);
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); line-height: 0.98; letter-spacing: -0.04em;
}
.rwa-word p.rwa span { display: block; }
.rwa-word p.rwa span:nth-child(1) { color: var(--steel); }
.rwa-word p.rwa span:nth-child(2) { color: var(--silver); }

/* Services: engagement path */
.services-head { padding-block: var(--space-7) var(--space-5); display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); flex-wrap: wrap; }
.services-head h2 { font-size: var(--step-h2); }

.stage-bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--czar-black); color: var(--paper);
  border-bottom: 1px solid #2E2A2A;
}
.stage-bar ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stage-bar a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px;
  text-decoration: none; color: #A8A4A4; font-size: var(--step-small); font-weight: 600;
  border-bottom: 3px solid transparent; transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.stage-bar a:hover { color: var(--paper); }
/* The current stage takes its own stop colour, so the bar brightens as the reader moves down the path. */
.stage-bar li:nth-child(1) { --stop: var(--steel); }
.stage-bar li:nth-child(2) { --stop: #A8A4A4; }
.stage-bar li:nth-child(3) { --stop: var(--silver); }
.stage-bar li:nth-child(4) { --stop: var(--paper); }
.stage-bar a[aria-current="step"] { color: var(--paper); border-bottom-color: var(--stop); }
.stage-bar .num { font-variant-numeric: tabular-nums; color: #A8A4A4; font-weight: 600; }
.stage-bar a[aria-current="step"] .num { color: var(--silver); }

.stage { padding-block: var(--space-8); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4) var(--space-6); }
.stage-title { position: sticky; top: calc(52px + var(--space-5)); align-self: start; display: grid; gap: var(--space-2); }
.stage-num {
  font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); line-height: 0.82; letter-spacing: -0.05em; color: var(--fg);
}
.stage-num .of { font-size: var(--step-small); letter-spacing: 0.02em; font-family: var(--font-body); font-weight: 600; color: var(--body); margin-left: 0.5em; vertical-align: top; line-height: 1; }
.stage h2 { font-size: var(--step-h2); }
.stage-sub { margin-top: var(--space-2); font-size: var(--step-lead); line-height: 1.35; color: var(--body); max-width: 24ch; }
.stage-body { display: grid; gap: var(--space-4); }
.stage-body > .lead strong { font-weight: 700; }
.stage-body h3 { font-family: var(--font-body); font-size: var(--step-body); font-weight: 600; letter-spacing: 0; line-height: 1.5; color: var(--body); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { padding-block: var(--space-3); border-bottom: 1px solid var(--rule); color: var(--body); }
.rows--split li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-1) var(--space-4); }
.rows--split li strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }

.pull {
  font-family: var(--font-display); font-weight: 500; color: var(--fg);
  font-size: var(--step-h3); line-height: 1.18; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance;
}

/* The one slanted edge: dusk crossing into dawn */
.slant-top { position: relative; padding-top: calc(var(--space-8) + 5vw); }
.slant-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6vw;
  background: var(--graphite); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.person { display: grid; gap: var(--space-2); margin: 0; }
.person img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 30%; background: var(--silver); }
.person h3 { font-size: 1.625rem; }
.person p { font-size: var(--step-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body); }
.team-grid { align-items: start; }
.person .text-link { margin-top: var(--space-2); min-height: 44px; }
.person-bio .actions { row-gap: 0; }
.person-bio .actions .text-link { margin-top: 0; }
#brian-mohr, #alicia-sanchez { scroll-margin-top: 96px; }
.person-bio { display: grid; gap: var(--space-2); margin-top: var(--space-2); max-width: 64ch; }
.person .person-bio p { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.6; }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.section-head h2 { font-size: var(--step-h2); }

/* Contact close */
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-6); align-items: start; }
.close-grid h2 { font-size: clamp(2rem, 1.45rem + 1.9vw, 3rem); }
.nowrap { white-space: nowrap; }
.close-copy { display: grid; gap: var(--space-3); position: sticky; top: var(--space-5); }

/* Form */
.form { display: grid; gap: var(--space-3); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step-small); font-weight: 600; color: var(--fg); }
.field .req { font-weight: 400; color: var(--body); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--fg);
  background: var(--field); border: 1px solid var(--field-line); border-radius: var(--radius-field);
  padding: 14px 16px; min-height: 52px; caret-color: var(--fg);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--fg); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--body); opacity: 0.8; }
.field [aria-invalid="true"] { border-color: #FF8A80; box-shadow: 0 0 0 1px #FF8A80; }
.tone-day .field [aria-invalid="true"], .tone-dawn .field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.field-error { font-size: var(--step-small); color: #FFB4AB; }
.tone-day .field-error, .tone-dawn .field-error { color: #B3261E; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: center; font-size: var(--step-small); color: var(--fg); cursor: pointer; width: fit-content; }
.check input { width: 22px; height: 22px; accent-color: var(--fg); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.form-status { font-size: var(--step-small); color: var(--body); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #FFB4AB; }
.tone-day .form-status[data-state="error"], .tone-dawn .form-status[data-state="error"] { color: #B3261E; }
.form-success { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.form-success h3 { font-size: var(--step-h3); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: none; }
.btn.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Interior page heads */
.page-head { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--space-7); display: grid; gap: var(--space-4); }
.page-head h1 { font-size: var(--step-display); letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; }

.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-6); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-copy { display: grid; gap: var(--space-3); }
.split-copy h2 { font-size: var(--step-h2); }

/* RWA letter */
.letter { display: grid; gap: var(--space-3); max-width: 68ch; }
.letter h2 { font-size: var(--step-h3); margin-top: var(--space-3); }
.steps { list-style: none; margin: var(--space-2) 0; padding: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-2); padding-block: var(--space-4); border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step); font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; line-height: 0.9;
  letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.375rem; margin-bottom: var(--space-1); }
.steps p + p { margin-top: var(--space-2); }
.signoff { font-family: var(--font-display); font-size: 1.375rem; color: var(--fg); }

/* Footer */
.site-footer { border-top: 1px solid #2E2A2A; padding-block: var(--space-6) var(--space-5); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: end; }
.footer-brand { display: grid; gap: var(--space-2); }
.footer-brand img { width: 56px; }
.footer-brand p { font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: var(--step-small); font-weight: 600; text-decoration: none; color: var(--silver); }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; }
.footer-links { display: grid; gap: var(--space-2); justify-items: end; }
.footer-social a { font-weight: 400; }
.legal { margin-top: var(--space-5); font-size: var(--step-label); color: #A8A4A4; }

/* Responsive */
@media (max-width: 1080px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-title { position: static; grid-template-columns: auto 1fr; align-items: end; gap: var(--space-3); }
  .statement { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .close-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .close-copy { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .hero-media { position: relative; inset: auto; width: auto; height: min(78vw, 460px); margin-inline: calc(var(--gutter) * -1); }
  .hero-media::after { background: linear-gradient(0deg, var(--czar-black) 0%, rgb(16 14 14 / 0) 45%); }
  .hero .wrap { display: flex; flex-direction: column; }
  .hero-copy { padding-block: 0 var(--space-5); margin-top: calc(var(--space-6) * -1); }
  .rail ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .stage-bar a { flex-direction: column; justify-content: center; gap: 2px; font-size: var(--step-label); text-align: center; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .rows--split li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .footer-links { justify-items: start; }
  .band { padding-block: var(--space-6); }
  .stage { padding-block: var(--space-6); }
  .stage-num { font-size: clamp(3.5rem, 2.6rem + 4vw, 4.5rem); }
  .stage-body { gap: var(--space-3); }
  .services-head { padding-block: var(--space-6) var(--space-4); }
}
@media (max-width: 480px) {
  /* Keep all four path stops inside the first phone screen. */
  .hero-media { height: 56vw; }
  .hero-copy { margin-top: calc(var(--space-5) * -1); gap: var(--space-3); padding-bottom: var(--space-4); }
  .actions { gap: 12px; }
  .rail { padding-bottom: var(--space-4); }
  .rail ol { gap: var(--space-2) var(--space-3); }
  .rail .rail-sub { display: none; } /* each stage band repeats its subtitle */
  .rows li { padding-block: var(--space-2); }
}
@media (max-width: 420px) {
  .rail .rail-name { font-size: 1.125rem; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  /* Narrow phones: non-current stages collapse to their number, the current stage shows its name. */
  .stage-bar ol { display: flex; }
  .stage-bar li { flex: 0 0 52px; }
  .stage-bar li:has(a[aria-current="step"]) { flex: 1 1 auto; }
  .stage-bar a { flex-direction: row; justify-content: center; font-size: var(--step-small); }
  .stage-bar li:has(a[aria-current="step"]) a { justify-content: flex-start; padding-left: 12px; }
  .stage-bar a:not([aria-current="step"]) .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .stage-bar .num { font-size: 1rem; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
