/* ============================================================
   JR KEY ADVISORY — STYLESHEET
   Follows brand-guidelines.md v1.0
   Accessibility anchor: 1rem = 22px (html font-size: 137.5%)
   All font-size and spacing expressed in rem — never px on text.
   ============================================================ */


/* ------------------------------------------------------------
   1. FONT IMPORT
   Adobe Fonts (Typekit kit dhw4cjo) is loaded via <link> in HTML.
   Cormorant Garamond (Google Fonts) is the fallback serif, also
   loaded via <link>. No @import needed here.
   ------------------------------------------------------------ */


/* ------------------------------------------------------------
   2. PALETTE & DESIGN TOKENS
   ------------------------------------------------------------ */
:root {

  /* --- Raw palette --- */
  --color-primary:        #0B2545;   /* Deep Ocean Blue */
  --color-accent:         #E8985A;   /* Warm Amber */
  --color-charcoal:       #1F2937;
  --color-gray-500:       #6B7280;
  --color-gray-200:       #E5E7EB;
  --color-off-white:      #FAFAF9;
  --color-white:          #FFFFFF;
  --color-tint-amber:     #FBE8D4;   /* Pale Amber — callouts, stat blocks */
  --color-tint-slate:     #E6ECF3;   /* Slate Mist — quote blocks */

  /* --- Semantic tokens (light mode default) --- */
  --color-surface:        var(--color-white);
  --color-surface-banded: var(--color-off-white);
  --color-surface-inverse:var(--color-primary);
  --color-text:           var(--color-charcoal);
  --color-text-muted:     var(--color-gray-500);
  --color-text-inverse:   var(--color-white);
  --color-border:         var(--color-gray-200);
  --color-accent-bg:      var(--color-accent);
  --color-accent-on:      var(--color-primary);  /* text ON amber */

  /* --- Typography --- */
  --font-serif: 'adobe-caslon-pro', 'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
  --font-sans:  'acumin-pro', 'Inter', -apple-system, BlinkMacSystemFont,
                'Helvetica Neue', Arial, sans-serif;

  --fs-display: 3.25rem;   /* 71.5px */
  --fs-h1:      2.5rem;    /* 55px   */
  --fs-h2:      1.875rem;  /* 41.25px */
  --fs-h3:      1.375rem;  /* 30.25px */
  --fs-lead:    1.25rem;   /* 27.5px */
  --fs-h4:      1.125rem;  /* 24.75px */
  --fs-body:    1rem;      /* 22px — ANCHOR */
  --fs-body-sm: 0.875rem;  /* 19.25px */
  --fs-meta:    0.75rem;   /* 16.5px */
  --fs-eyebrow: 0.75rem;   /* 16.5px */

  --lh-tight:  1.1;   /* Display */
  --lh-snug:   1.2;   /* H1–H2   */
  --lh-medium: 1.35;  /* H3–H4   */
  --lh-normal: 1.6;   /* Body    */
  --lh-meta:   1.5;   /* Meta    */

  --tracking-display: -0.02em;
  --tracking-h1:      -0.015em;
  --tracking-h2:      -0.01em;
  --tracking-eyebrow:  0.12em;

  /* --- Spacing (rem — scales with user font-size) --- */
  --space-1:  0.25rem;   /*  5.5px */
  --space-2:  0.5rem;    /* 11px   */
  --space-3:  0.75rem;   /* 16.5px */
  --space-4:  1rem;      /* 22px   */
  --space-5:  1.5rem;    /* 33px   */
  --space-6:  2rem;      /* 44px   */
  --space-7:  3rem;      /* 66px   */
  --space-8:  4rem;      /* 88px   */
  --space-9:  6rem;      /* 132px  */
  --space-10: 8rem;      /* 176px  */

  /* --- Section padding — 4rem top/bottom is the single standard for all sections --- */
  --section-pad-y:    var(--space-8);   /* 4rem — uniform across all sections */
  --hero-pad-top:     var(--space-8);   /* 4rem */
  --hero-pad-bottom:  var(--space-8);   /* 4rem */

  /* --- Layout (px is correct for container widths) --- */
  --container-nav:     1400px;
  --container-content: 1200px;
  --container-narrow:  65ch;

  --gutter-desktop: 3rem;
  --gutter-mobile:  1.5rem;

  /* --- Components --- */
  --radius-sm: 4px;
  --radius-md: 6px;   /* buttons */
  --radius-lg: 8px;   /* cards   */

  --shadow-card-hover:   0 6px 16px rgba(11, 37, 69, 0.08);
  --shadow-btn-hover:    0 8px 20px rgba(11, 37, 69, 0.18);

  --nav-height: 68px;

  --transition: 180ms ease;
}


/* ------------------------------------------------------------
   3. RESPONSIVE TYPE SCALE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root {
    --fs-display: 2.75rem;
    --fs-h1:      2.125rem;
    --fs-h2:      1.625rem;
    --fs-h3:      1.25rem;
    --fs-lead:    1.125rem;
    --fs-h4:      1.0625rem;
    /* Body, Body-sm, Meta, Eyebrow unchanged */
  }
}

@media (max-width: 768px) {
  :root {
    --fs-display: 2.25rem;
    --fs-h1:      1.875rem;
    --fs-h2:      1.5rem;
    --fs-h3:      1.1875rem;
    --fs-lead:    1.0625rem;
    --fs-h4:      1rem;      /* matches body on mobile */
    /* --section-pad-y already 4rem on desktop — no override needed */
  }
}


/* ------------------------------------------------------------
   4. DARK MODE SEMANTIC TOKENS
   ------------------------------------------------------------ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-surface:         #0B2545;
    --color-surface-banded:  #0F2B52;
    --color-surface-inverse: #FAFAF9;
    --color-text:            #F5F1E9;
    --color-text-muted:      #A8B2C0;
    --color-text-inverse:    #0B2545;
    --color-border:          rgba(255, 255, 255, 0.12);
    --color-accent-bg:       #E8985A;
    --color-accent-on:       #0B2545;
  }
}

[data-theme="dark"] {
  --color-surface:         #0B2545;
  --color-surface-banded:  #0F2B52;
  --color-surface-inverse: #FAFAF9;
  --color-text:            #F5F1E9;
  --color-text-muted:      #A8B2C0;
  --color-text-inverse:    #0B2545;
  --color-border:          rgba(255, 255, 255, 0.12);
  --color-accent-bg:       #E8985A;
  --color-accent-on:       #0B2545;
}

[data-theme="light"] {
  --color-surface:         var(--color-white);
  --color-surface-banded:  var(--color-off-white);
  --color-surface-inverse: var(--color-primary);
  --color-text:            var(--color-charcoal);
  --color-text-muted:      var(--color-gray-500);
  --color-text-inverse:    var(--color-white);
  --color-border:          var(--color-gray-200);
  --color-accent-bg:       var(--color-accent);
  --color-accent-on:       var(--color-primary);
}


/* ------------------------------------------------------------
   5. ACCESSIBILITY — REDUCE MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   6. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility anchor: 1rem = 22px when user default is 16px.
   Using a percentage preserves user font-size preferences. */
html {
  font-size: 137.5%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-surface);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

/* Visible focus state — 2px Warm Amber, 2px offset */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ------------------------------------------------------------
   7. TYPOGRAPHY ELEMENTS
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-primary);
  text-wrap: balance;   /* distribute words evenly across lines; avoids orphan words / lopsided breaks when headings wrap */
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-h1);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-medium);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-medium);
}

/* WCAG 1.4.12: paragraph spacing ≥ 1.5× font-size */
p { margin-bottom: var(--space-5); }
p:last-child { margin-bottom: 0; }

/* Constrain long-form prose to readable line length */
.prose { max-width: var(--container-narrow); }


/* ------------------------------------------------------------
   8. LAYOUT
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-nav);   /* 1400px — matches nav and footer for consistent left/right margins */
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--gutter-mobile); }
}


/* ------------------------------------------------------------
   9. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;   /* allows wrapped labels to breathe; negligible on single-line buttons */
  letter-spacing: 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);   /* 6px per brand guidelines */
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: normal;   /* wrap long labels instead of overflowing the button at narrow widths */
  transition: transform var(--transition),
              box-shadow var(--transition),
              background-color var(--transition),
              border-color var(--transition),
              color var(--transition);
}

/* Large variant — hero / section CTAs */
.btn-lg {
  font-size: var(--fs-h4);
  padding: 1rem 2rem;
}

/* Primary — amber fill, deep blue text */
.btn-primary {
  background-color: var(--color-accent-bg);
  color: var(--color-accent-on);
  border-color: var(--color-accent-bg);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  /* No color flip — lift + shadow only (per §12) */
}

/* Primary alt — navy fill, white text (for amber-background contexts) */
.btn-primary-alt {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary-alt:hover,
.btn-primary-alt:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

/* Secondary — outlined in navy */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Outline — for dark/navy backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}


/* ------------------------------------------------------------
   10. NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* SVG wordmark — constrain height, let width be intrinsic */
.nav-logo img {
  height: 1.5rem;    /* ~33px at 22px base */
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links li a {
  font-size: var(--fs-body-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
/* Explicitly reset :visited so browsers don't apply their default dark-blue/purple */
.nav-links li a:visited        { color: rgba(255, 255, 255, 0.82); }
.nav-links li a:hover,
.nav-links li a:visited:hover  { color: var(--color-white); }

/* CTA pill in nav */
.nav-cta {
  background-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  margin-left: var(--space-3);
  padding: var(--space-2) var(--space-4) !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 1.5rem;   /* 33px */
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ------------------------------------------------------------
   11. HERO  (section 1 — Deep Ocean Blue)
   ------------------------------------------------------------ */
.hero {
  background-color: var(--color-primary);
  padding: var(--section-pad-y) 0;   /* 4rem — same as all sections */
}

.hero-content { max-width: var(--container-narrow); }  /* 65ch — matches §2 and §6 prose width */

/* Decorative amber rule above the headline (per §7.5) */
.hero-rule {
  display: block;
  width: 5rem;     /* 110px ≈ 80px per guidelines; 5rem is proportional at 22px base */
  height: 3px;
  background-color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.hero-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 400;   /* Caslon Display reads best at regular weight */
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.hero-body {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  /* no max-width — inherits hero-content constraint for a consistent right edge */
  margin-bottom: var(--space-4);
}

.hero-subtext {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.70);
  /* no max-width — inherits hero-content constraint */
  margin-bottom: var(--space-5);
}


/* ------------------------------------------------------------
   12. PROBLEM  (section 2 — White)
   Deliberately less padding than the standard section gap —
   the tighter top edge lets the background-color change from
   navy → white read as a scroll cue without heavy whitespace.
   ------------------------------------------------------------ */
.problem {
  background-color: var(--color-surface);
  padding: var(--section-pad-y) 0;   /* 4rem — same as all sections */
}

.problem-content { max-width: var(--container-narrow); }

.problem-content h2 { margin-bottom: var(--space-6); }

.problem-content p {
  font-size: var(--fs-body);
  color: var(--color-text);
}

/* Pull-quote / callout — amber left border */
.problem-callout {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  margin-top: var(--space-7);
  margin-bottom: 0;
  line-height: var(--lh-medium);
}


/* ------------------------------------------------------------
   13. STATS  (section 3 — Pale Amber tint)
   ------------------------------------------------------------ */
.stats {
  background-color: var(--color-tint-amber);
  padding: var(--section-pad-y) 0;
  /* text-align is left (default) — matches all other sections */
}

.stats-label {
  font-size: var(--fs-lead);
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
  /* no max-width — shares right edge with all other section content */
  margin: 0 0 var(--space-6);
  line-height: var(--lh-snug);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);   /* was space-9 */
}

/* Stat card — White surface */
.stat-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: left;
}

.stat-number {
  display: block;
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.stat-text {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.stat-source {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.stats-conclusion {
  font-size: var(--fs-body);
  max-width: var(--container-narrow);   /* matches §4 section-header width */
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

.stats-cta-text {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-h2);
  color: var(--color-primary);
  max-width: var(--container-narrow);   /* matches §4 section-header width */
  margin: 0 0 var(--space-7);
  line-height: var(--lh-snug);
}


/* ------------------------------------------------------------
   14. SERVICES OVERVIEW  (section 4 — Off-White)
   ------------------------------------------------------------ */
.services-overview {
  background-color: var(--color-surface-banded);
  padding: var(--section-pad-y) 0;
}

.section-header {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-7);   /* was space-9 */
}

.section-header h2 { margin-bottom: var(--space-4); }

/* Eyebrow above section H2 — amber, uppercase */
.section-eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-intro {
  font-size: var(--fs-lead);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* Service list — full-width horizontal rows (more editorial than 2-col cards) */
.service-list {
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.service-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  column-gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.service-number {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  padding-top: 0.2em;   /* optically align with h3 cap height */
  margin-bottom: 0;
}

.service-content h3 {
  margin-bottom: var(--space-2);
}

.service-content p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
  max-width: 55ch;
}

.service-price {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  padding-top: 0.2em;   /* optically align with h3 */
  margin-bottom: 0;
}

.services-cta { text-align: left; }


/* ------------------------------------------------------------
   15. WHY JR KEY ADVISORY  (section 5 — Deep Ocean Blue)
   ------------------------------------------------------------ */
.why {
  background-color: var(--color-primary);
  padding: var(--section-pad-y) 0;
}

/* Override heading and intro colors for dark background */
.why .section-header             { max-width: none; }   /* prevent h2 wrapping */
.why .section-header h2         { color: var(--color-white); }
.why .section-intro              { color: rgba(255, 255, 255, 0.65); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);   /* 2rem — was 4rem; columns now ~327px, enough for longest heading */
}

.why-card h3 {
  font-size: var(--fs-body);   /* 1rem = 22px — was 1.125rem; "Vendor-neutral by design." fits ~327px col */
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.why-card p {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}


/* ------------------------------------------------------------
   16. FIRST STEP / BOTTOM CTA  (section 6 — White)
   ------------------------------------------------------------ */
.first-step {
  background-color: var(--color-surface);
  padding: var(--section-pad-y) 0;
}

.first-step-content { max-width: var(--container-narrow); }

.first-step-content h2 { margin-bottom: var(--space-6); }

.first-step-content p {
  font-size: var(--fs-body);
  color: var(--color-text);
}

.first-step-content .btn { margin-top: var(--space-4); }


/* ------------------------------------------------------------
   17. FOOTER  (Deep Ocean Blue — per §7.6)
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-primary);
  padding: var(--space-9) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: var(--space-6);
}

/* Footer wordmark */
.footer-wordmark {
  height: 1.25rem;   /* ~27.5px */
  width: auto;
  margin-bottom: var(--space-3);
}

/* Footer text — brand guidelines §7.6:
   100% white for headings and links; 85% for body; 65% floor for legal/secondary.
   Minimum 65% opacity on #0B2545 background clears WCAG AA at all text sizes. */

.footer-tagline {
  font-size: var(--fs-body-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

.footer-legal {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

.footer-nav-heading {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-white);   /* 100% — it's a heading */
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-nav ul li a {
  font-size: var(--fs-body-sm);
  color: var(--color-white);   /* 100% — links always full white */
}
.footer-nav ul li a:hover { opacity: 0.75; }

.footer-cta-heading {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-white);   /* 100% — heading */
  margin-bottom: var(--space-4);
}

.footer-cta-text {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-5);
}

.footer-bottom p {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.65);   /* 65% floor — meets WCAG AA for meta-size text */
  margin-bottom: 0;
}


/* ------------------------------------------------------------
   18. RESPONSIVE — Tablet (≤900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {

  /* Drop the redundant nav CTA pill on tablet so the bar can't wrap
     (it still appears in the hamburger drawer at ≤640px). */
  .nav-cta { display: none; }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* ------------------------------------------------------------
   19. RESPONSIVE — Mobile (≤640px)
   ------------------------------------------------------------ */
@media (max-width: 640px) {

  /* Shrink the display-serif hero headline so it settles into a clean
     two-line split instead of four choppy ~2-word lines. */
  .hero-headline { font-size: 1.5rem; }

  /* Show hamburger */
  .nav-toggle { display: flex; }

  /* Mobile nav drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) var(--gutter-mobile) var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: var(--space-1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li       { width: 100%; }
  .nav-links li a     { display: block; padding: var(--space-3) var(--space-2); width: 100%; }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: var(--space-3) !important;
    text-align: center !important;
    display: block;
    width: 100%;
  }

  /* Service rows — stack on mobile */
  .service-row {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
  }
  .service-price {
    grid-column: 2;
    grid-row: 2;
    padding-top: var(--space-3);
    padding-bottom: var(--space-2);
  }

  /* Full-width CTAs on mobile */
  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Except footer inline CTA */
  .footer-cta .btn {
    display: inline-block;
    width: auto;
  }

  .footer-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   INNER PAGE STYLES
   ============================================================ */


/* ------------------------------------------------------------
   20. INTERIOR PAGE HERO
   h1 on dark hero background needs white override
   ------------------------------------------------------------ */
.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-5);
}


/* ------------------------------------------------------------
   21. SERVICE DETAIL SECTIONS (services.html)
   ------------------------------------------------------------ */

/* Service detail sections — alternate backgrounds via modifier class */
.svc-section { padding: var(--section-pad-y) 0; }
.svc-section.bg-white    { background-color: var(--color-surface); }
.svc-section.bg-offwhite { background-color: var(--color-surface-banded); }
.svc-section.bg-amber    { background-color: var(--color-tint-amber); }

/* Offset anchored sections so the sticky nav doesn't cover the heading */
.svc-section[id] { scroll-margin-top: calc(var(--nav-height) + var(--space-5)); }

/* Engagements selector — table-style horizontal rows, each a jump link */
.selector-intro {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-6);
}
.selector-intro h2 { margin-bottom: 0; }

.svc-selector { border-top: 1px solid var(--color-border); }

.selector-head,
.selector-row {
  display: grid;
  grid-template-columns: 1.7fr 2fr 1.7fr 0.8fr;
  column-gap: var(--space-5);
  align-items: center;
}

.selector-head {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.selector-row {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background-color 0.15s ease;
}
.selector-row:hover,
.selector-row:focus-visible { background-color: var(--color-white); }

.selector-name {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-primary);
}
.selector-tag {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
}

.selector-for,
.selector-format {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

.selector-price {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* Per-cell labels — shown only when rows stack on small screens */
.selector-label { display: none; }

/* "Back to all engagements" — muted return link under each section CTA */
.back-to-top {
  margin-top: var(--space-5);
  margin-bottom: 0;
  font-size: var(--fs-body-sm);
}
.back-to-top a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: none;
}
.back-to-top a:hover,
.back-to-top a:focus-visible { color: var(--color-primary); }

/* Service header — same narrow width as section-header */
.svc-header {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-6);
}
.svc-header h2 { margin-bottom: var(--space-4); }

/* Prose body within a service section */
.svc-body { max-width: var(--container-narrow); margin-bottom: var(--space-6); }

/* Meta row — For / Format / Investment */
.svc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
  margin-bottom: var(--space-7);
}

.svc-meta-label {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.svc-meta-value {
  font-size: var(--fs-body-sm);
  color: var(--color-text);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

.svc-price {
  font-size: var(--fs-h3) !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
}

/* Sub-sections for when / outputs */
.svc-when, .svc-outputs { max-width: var(--container-narrow); margin-bottom: var(--space-7); }

.svc-sub-label {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Bullet list — amber dot bullets used across services and approach pages */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: 0;
}

.bullet-list li {
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: var(--lh-normal);
  padding-left: var(--space-5);
  position: relative;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.bullet-list.sm li {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

/* Step badge — numbered indicator for series steps */
.step-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.step-badge-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--fs-meta);
  font-weight: 700;
  flex-shrink: 0;
}

.step-badge-label {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Series full-arc pricing callout */
.series-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-top: var(--space-7);
}

.series-callout p {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.series-callout-price {
  flex-shrink: 0;
  text-align: right;
}

.series-callout-price .price-label {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.series-callout-price .price-value {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: var(--tracking-h2);
}

/* Nine readiness dimensions grid (3×3) */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.dimension-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.dimension-card h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.dimension-card p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* Readiness bottom-of-section transition text */
.readiness-bridge {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-7);
}

.readiness-bridge h3 { margin-bottom: var(--space-4); }

.readiness-bridge p { font-size: var(--fs-body); }

/* Compact dimensions list — inline name + description, 2-column */
.svc-dimensions {
  margin-bottom: var(--space-7);
}

.dimensions-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-7);
  margin-bottom: 0;
}

.dimensions-list li {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
}

.dimensions-list strong {
  color: var(--color-primary);
  font-weight: 700;
}


/* ------------------------------------------------------------
   22. APPROACH PAGE (approach.html)
   ------------------------------------------------------------ */

/* Question list — indented questions with amber left accent */
.question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-accent);
  margin: var(--space-6) 0 var(--space-7);
  max-width: var(--container-narrow);
}

.question-list li {
  font-size: var(--fs-lead);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--lh-medium);
}

/* Stat callout — slate-mist background with amber left rule */
.stat-callout {
  background-color: var(--color-tint-slate);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-7) var(--space-8);
  margin: var(--space-7) 0;
  max-width: var(--container-narrow);
}

.stat-callout .callout-number {
  display: block;
  font-size: var(--fs-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
}

.stat-callout p { font-size: var(--fs-body); color: var(--color-text); margin-bottom: 0; }

.stat-callout p + p { margin-top: var(--space-4); }

/* Two-altitude comparison — team vs executive */
.altitude-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin: var(--space-7) 0;
}

.altitude-card {
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
}

.altitude-card.altitude-team     { background-color: var(--color-surface-banded); border: 1px solid var(--color-border); }
.altitude-card.altitude-exec     { background-color: var(--color-primary); }

.altitude-eyebrow {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.altitude-team .altitude-eyebrow  { color: var(--color-text-muted); }
.altitude-exec .altitude-eyebrow  { color: var(--color-accent); }
.altitude-exec h3                  { color: var(--color-white); }
.altitude-exec p                   { color: rgba(255, 255, 255, 0.82); }

.altitude-card p { font-size: var(--fs-body-sm); margin-bottom: 0; }

/* 7 C's grid on navy background */
.seven-cs {
  background-color: var(--color-primary);
  padding: var(--section-pad-y) 0;
}

.seven-cs .section-header h2  { color: var(--color-white); }
.seven-cs .section-intro       { color: rgba(255, 255, 255, 0.65); }

/* 7 C's — full-width horizontal rows (editorial, echoes .service-list) */
.seven-cs-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: var(--space-7);
}

.c-row {
  display: grid;
  grid-template-columns: 2rem 0.7fr 2.3fr;
  column-gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  align-items: baseline;
}

.c-ordinal {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0;
}

.c-name {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
}

.c-desc {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--lh-normal);
  margin-bottom: 0;
  max-width: 60ch;
}


/* ------------------------------------------------------------
   23. ABOUT PAGE (about.html)
   ------------------------------------------------------------ */

/* Two-column layout: photo placeholder + text */
.about-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-9);
  align-items: start;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background-color: var(--color-gray-200);   /* fallback while the image loads */
}

/* What I bring — 2×2 grid of strengths */
.bring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-6);
}

.bring-item {
  border-top: 3px solid var(--color-accent);
  padding-top: var(--space-5);
}

/* Close the 2×2 grid with a matching amber rule beneath the bottom row */
.bring-item:nth-last-child(-n+2) {
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: var(--space-5);
}

.bring-item h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.bring-item p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Personal note — closing reflective band (off-white, keeps the alternation) */
.personal-note {
  background-color: var(--color-surface-banded);
  padding: var(--section-pad-y) 0;
}

.personal-note-content { max-width: var(--container-narrow); }

.personal-note-content h2 { margin-bottom: var(--space-6); }

.personal-note-content p {
  font-size: var(--fs-body);
  color: var(--color-text);
}

.personal-note-content .btn { margin-top: var(--space-4); }


/* ------------------------------------------------------------
   24. INSIGHTS PAGE (insights.html)
   ------------------------------------------------------------ */

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.insight-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.insight-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.insight-topic {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.insight-card h3 {
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.insight-card p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  flex: 1;
  margin-bottom: var(--space-5);
}

.insight-link {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 0;
}

.insight-link::after { content: '→'; }
.insight-link:hover { color: var(--color-accent); }

/* Coming-soon variant */
.insight-card.coming-soon {
  opacity: 0.6;
  cursor: default;
}
.insight-card.coming-soon:hover {
  box-shadow: none;
  transform: none;
}

.coming-soon-badge {
  display: inline-block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background-color: var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 0.2em 0.6em;
  margin-bottom: var(--space-5);
}


/* ------------------------------------------------------------
   25. RESPONSIVE — Inner pages (≤900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .svc-meta        { grid-template-columns: 1fr 1fr; }
  .dimensions-grid { grid-template-columns: 1fr 1fr; }
  .dimensions-list { grid-template-columns: 1fr; }
  .altitude-grid   { grid-template-columns: 1fr; }
  .about-split     { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-photo     { max-width: 280px; }
  .insights-grid   { grid-template-columns: 1fr; }
  .bring-grid      { grid-template-columns: 1fr; }

  /* Single column: only one closing amber rule, at the very bottom */
  .bring-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .bring-item:last-child {
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: var(--space-5);
  }

  .series-callout {
    flex-direction: column;
    align-items: flex-start;
    /* Drop the 4rem desktop side padding — the container gutter already
       insets the box, so this width was being wasted and squeezed the
       paragraph into one-word lines on phones. */
    padding: var(--space-6) var(--space-5);
  }

  .series-callout-price { text-align: left; }

  /* Engagements selector — stack each row into a labeled block */
  .selector-head { display: none; }
  .selector-row {
    grid-template-columns: 1fr;
    row-gap: var(--space-2);
    padding: var(--space-5) var(--space-2);
  }
  .selector-name { margin-bottom: var(--space-1); }
  .selector-label {
    display: inline;
    margin-right: var(--space-2);
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
}

/* ------------------------------------------------------------
   26. RESPONSIVE — Inner pages (≤640px)
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  /* Drop deliberate headline breaks on phones so text wraps naturally */
  .br-desktop { display: none; }

  .svc-meta        { grid-template-columns: 1fr; }
  .dimensions-grid { grid-template-columns: 1fr; }
  .stat-callout    { padding: var(--space-5) var(--space-5); }

  /* 7 C's rows — ordinal beside a stacked name + description */
  .c-row {
    grid-template-columns: 2rem 1fr;
    column-gap: var(--space-5);
    row-gap: var(--space-2);
  }
  .c-name { grid-column: 2; }
  .c-desc { grid-column: 2; }
}
