/* ================================================================
   WILLMAN & PARTNERS — Design System
   ================================================================ */

/* --- Custom Properties --- */
:root {
  /* Deep navy carries the page; brass is the single accent.
     The rule is the same one the monochrome palette used — colour appears as
     a small mark, never as a surface behind text — but the dark surfaces are
     navy rather than black, which is what gives the page its depth, and the
     accent is metal, which is what gives it warmth. */
  --ink-900: #0E1B33;
  --ink-950: #0A1426;
  --ink-1000: #060D1A;
  --ink-700: #1E2E4D;
  --ink-050: #EAEEF6;
  /* --accent is navy, not brass: it fills large areas (headline spans, step
     markers, buttons) where a metal tone would look like a highlighter.
     Brass lives in --spark and is used only for small marks. */
  --accent: #0E1B33;
  --accent-light: #41527A;
  --accent-pale: #EAEEF6;
  --accent-deep: #060D1A;
  /* Brass. The logo's ampersand is set in this colour too. */
  --spark: #B08D57;
  --spark-light: #C9A96A;
  --cream: #F5F7FA;
  --white: #FFFFFF;
  --ink: #0E1B33;
  --ink-70: rgba(14,27,51,0.74);
  /* .62 is a contrast floor: below it the 12px labels on the contact page
     drop under 4.5:1 against white. */
  --ink-50: rgba(14,27,51,0.62);
  --border: rgba(14,27,51,0.14);
  --border-light: rgba(255,255,255,0.10);
  /* Licensure-map highlight. Deliberately lighter than --accent, which
     measures 1.50:1 against the --ink-950 band and reads as unhighlighted.
     Kept in sync by hand with the baked <style> in us-licensed-states.svg,
     which is loaded via <img> and so cannot see these tokens. */
  --map-on: #C9A96A;

  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(14,27,51,.07), 0 1px 2px rgba(14,27,51,.05);
  --shadow-md: 0 4px 16px rgba(14,27,51,.09), 0 2px 6px rgba(14,27,51,.06);
  --shadow-lg: 0 12px 40px rgba(14,27,51,.11), 0 4px 12px rgba(14,27,51,.07);
  --shadow-xl: 0 24px 64px rgba(14,27,51,.13), 0 8px 24px rgba(14,27,51,.08);
  --shadow-ink-sm: 0 2px 8px rgba(14,27,51,.16),  0 1px 3px rgba(14,27,51,.09);
  --shadow-ink-md: 0 8px 32px rgba(14,27,51,.22), 0 3px 8px rgba(14,27,51,.11);
  --shadow-accent-sm: 0 2px 8px rgba(14,27,51,.20),0 1px 3px rgba(14,27,51,.12);
  --shadow-accent-md: 0 8px 32px rgba(14,27,51,.26),0 3px 8px rgba(14,27,51,.14);

  --ease-spring: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Signature corner notch — used on buttons, icon badges, and step markers
     so the cut corner reads as an intentional, repeated motif rather than
     a default border-radius. */
  --notch: 10px;
  --notch-sm: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Removes the ~300ms synthetic click delay on touch without disabling
   pinch-zoom. */
a, button, summary, [role="button"] { touch-action: manipulation; }

/* Keyboard focus must be visible on every interactive element, not just
   buttons. Ring is drawn outside the box so it never shifts layout. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
/* On dark sections the navy ring disappears — switch to a light ring. */
.bg-dark a:focus-visible, .bg-deep a:focus-visible, .bg-ink a:focus-visible,
.cta-band a:focus-visible, .footer a:focus-visible,
.card-ink a:focus-visible, .card-dark a:focus-visible {
  outline-color: rgba(255,255,255,.9);
}

/* Long unbroken strings (email addresses, URLs) must reflow rather than
   push the layout wider than the viewport. */
.footer-link, .fi-label, .info-box a { overflow-wrap: anywhere; }

/* Skip link: offscreen until focused, then pinned top-left. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: .75rem 1.25rem;
  background: var(--ink-900);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
p  { line-height: 1.72; }

/* Headings wrap into even lines instead of leaving one orphan word.
   Progressive enhancement — unsupported browsers just wrap normally. */
h1, h2, h3, h4 { text-wrap: balance; }

/* Reading measure: 60–75 characters. Set in ch so it tracks the font
   size rather than assuming a fixed pixel width. */
p, .lead { max-width: 68ch; }
/* Centred blocks keep their own narrower measure and stay centred. */
.section-header p, .section-header .lead, .text-center p, .text-center .lead { margin-inline: auto; }

/* Figures in ordered/step markers use tabular lining numerals so digits
   occupy identical width and never shift the layout. */
.step-num, .step-circle, .stat-num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}
.eyebrow--white { color: rgba(255,255,255,.6); }
.eyebrow--white::before { background: rgba(255,255,255,.4); }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink-70);
}
.lead--white { color: rgba(255,255,255,.62); }

.divider-accent {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
/* Navy-on-blue-black is invisible; on dark surfaces the rule goes light. */
.card-ink .divider-accent,
.bg-ink .divider-accent,
.bg-deep .divider-accent,
.bg-dark .divider-accent,
.cta-band .divider-accent {
  background: rgba(255,255,255,.55);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Section spacing --- */
.section    { padding: 7rem 0; }
.section-sm { padding: 4.5rem 0; }

.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-ink { background: var(--ink-900); }
.bg-dark   { background: var(--ink-1000); }
.bg-deep   { background: var(--ink-950); }

/* --- Section header --- */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4rem;
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { max-width: 540px; margin: 0 auto; }

.section-header--left { text-align: left; margin-left: 0; }
.section-header--left .lead { margin: 0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14,27,51,0.08);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 4px 32px rgba(14,27,51,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-logo { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex; align-items: center; gap: 4px;
  /* Vertical padding brings the hit area to the 24px WCAG 2.2 minimum;
     the underline is offset to stay tight to the text (see ::after). */
  padding: 11px 4px;
  margin: 0 8px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color .2s;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-spring);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Nav CTA */
.nav-cta { display: flex; align-items: center; flex-shrink: 0; }

/* Hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.nav-ham:hover { background: rgba(14,27,51,.05); }
.nav-ham span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
/* Hard guard at the nav breakpoint. The hamburger is display:none above
   900px, so an open menu that survives a resize past it would cover the
   page with its own close control gone — reachable by rotating a tablet
   from portrait to landscape with the menu open. */
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu.open { display: none; }
}

.m-nav-item { border-bottom: 1px solid var(--border); }
.m-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  color: var(--ink-70);
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: color .15s;
}
.m-nav-link:hover, a.m-nav-link:hover { color: var(--accent); }
.m-sub { padding: 0 0 1rem 1rem; display: none; }
.m-sub.open { display: block; }
.m-sub-link {
  display: block;
  padding: 7px 0;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.m-sub-link:hover { color: var(--accent); }
.m-cta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }

/* Nav responsive */
@media (max-width: 1060px) {
  .nav-link { padding: 6px 8px; font-size: .75rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--ink-1000);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  /* Third column is widened because it holds the full email address, which
     is wider than any nav label and otherwise wraps to an orphaned letter. */
  grid-template-columns: 1.6fr 1fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-grid--simple { grid-template-columns: 1.8fr 1fr 1fr; }
/* The alphas below are contrast floors, not taste: white text on the black
   footer needs ~.46 alpha to clear 4.5:1. Don't lower them. */
.footer-logo { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.52); line-height: 1.65; margin-bottom: 1.5rem; max-width: 240px; }
.footer-col-title { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.50); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-link {
  display: inline-flex; align-items: center; min-height: 24px;
  font-size: .875rem; color: rgba(255,255,255,.62); transition: color .15s;
}
/* --accent is near-black, which on this footer would make a hovered link
   disappear. The footer is the one dark surface where the hover has to
   brighten rather than darken. */
.footer-link:hover { color: var(--white); }
/* Non-interactive list (state licensure). Matches .footer-link's colour but
   drops the 24px tap target and hover affordance, since nothing is clickable. */
.footer-links--plain { gap: .5rem; }
.footer-links--plain li { font-size: .875rem; color: rgba(255,255,255,.52); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.50); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
/* Signature button: top-right corner is cut at a fixed angle (the --notch
   motif, echoed in .step-num) and the hover state is a
   fill that sweeps in from the left behind the label, rather than a
   lift + shadow. Label and icon sit in their own stacking layer above
   the sweep so they never get visually swallowed by it. */
.btn {
  --notch-btn: 9px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.5rem;
  clip-path: polygon(0 0, calc(100% - var(--notch-btn)) 0, 100% var(--notch-btn), 100% 100%, 0 100%);
  font-size: .875rem; font-weight: 600;
  letter-spacing: .015em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s ease, border-color .3s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-spring);
  z-index: 0;
}
.btn:hover::before { transform: scaleX(1); }
.btn:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .35s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-lg  { padding: 1rem 2rem; font-size: 1rem; --notch-btn: 12px; }
.btn-sm  { padding: .5rem 1rem; font-size: .75rem; --notch-btn: 6px; }

.btn-primary {
  background: var(--accent-deep); color: var(--white);
}
.btn-primary::before { background: var(--accent); }

/* On blue-black bands a navy button all but disappears (2.1:1 against
   the surface). There the primary action inverts to white-on-ink —
   the highest-contrast, and the more expensive-looking, option. */
.bg-ink .btn-primary,
.bg-deep .btn-primary,
.bg-dark .btn-primary,
.cta-band .btn-primary,
.footer .btn-primary {
  background: var(--white);
  color: var(--ink);
}
.bg-ink .btn-primary::before,
.bg-deep .btn-primary::before,
.bg-dark .btn-primary::before,
.cta-band .btn-primary::before,
.footer .btn-primary::before { background: var(--accent-pale); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-white::before { background: rgba(255,255,255,.14); }
.btn-outline-white:hover { border-color: rgba(255,255,255,.7); }

.btn-outline-accent {
  background: transparent; color: var(--accent-deep);
  border: 1.5px solid rgba(14,27,51,.40);
}
.btn-outline-accent::before { background: var(--accent); }
.btn-outline-accent:hover { color: var(--white); border-color: var(--accent); }

/* Same inversion as .btn-primary: a navy outline on a near-black
   surface is unreadable, so on dark contexts it becomes a white ghost. */
.footer .btn-outline-accent,
.bg-ink .btn-outline-accent,
.bg-deep .btn-outline-accent,
.bg-dark .btn-outline-accent,
.cta-band .btn-outline-accent {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.footer .btn-outline-accent::before,
.bg-ink .btn-outline-accent::before,
.bg-deep .btn-outline-accent::before,
.bg-dark .btn-outline-accent::before,
.cta-band .btn-outline-accent::before { background: rgba(255,255,255,.14); }
.footer .btn-outline-accent:hover,
.bg-ink .btn-outline-accent:hover,
.bg-deep .btn-outline-accent:hover,
.bg-dark .btn-outline-accent:hover,
.cta-band .btn-outline-accent:hover { border-color: rgba(255,255,255,.7); color: var(--white); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  padding-bottom: 5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
}
/* Signature decorative mark: thin-stroke geometric line art (a rotated
   square, an arc, a bracket) instead of the blurred gradient-blob
   "glow" pattern. Positioned per-instance via inline style. */
.hero-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* Below tablet the decorative line-art has no room to sit outside the
   text column, so it crosses the headline instead of framing it. Hide
   it rather than let it cut through copy. */
@media (max-width: 900px) {
  .hero-motif { display: none; }
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14,27,51,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,27,51,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

/* Statement heading left, supporting prose right — fills the measure
   instead of leaving half the row empty. */
.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .mission-split { grid-template-columns: 1fr; gap: 1.75rem; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--accent); font-family: var(--font-accent); font-style: italic; font-weight: 700; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-70);
  line-height: 1.72;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 600; color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--border);
  transition: border-color .25s, color .25s;
}
.hero-textlink:hover { border-color: var(--accent); color: var(--accent-deep); }
.hero-textlink .arrow { transition: transform .3s var(--ease-spring); }
.hero-textlink:hover .arrow { transform: translateX(4px); }

/* Asymmetric hero split — headline on one side, a compact numbered
   spec list on the other, instead of everything centered and stacked. */
.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 2.5rem; } }

/* These four items are a SET, not a sequence, so they carry no ordinal.
   A short accent rule marks each entry instead — it groups without
   implying a first-to-last order the content doesn't have. */
.spec-list { display: flex; flex-direction: column; }
.spec-item {
  padding: 1.1rem 0 1.1rem 1.25rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.spec-item:last-child { border-bottom: 1px solid var(--border); }
.spec-item::before {
  content: '';
  position: absolute;
  left: 0; top: 1.45rem;
  width: 5px; height: 5px;
  background: var(--accent);
}
.spec-label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.spec-note  { font-size: .8125rem; color: var(--ink-50); margin-top: .15rem; }

/* Editorial list — the row-based alternative to a grid of cards.
   No boxes: a hairline rule between rows and a generous indent carry
   the structure. Unordered, so no ordinal marker. */
.editorial-list { display: flex; flex-direction: column; }
.editorial-item {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.editorial-item:last-child { border-bottom: 1px solid var(--border); }
/* Short accent rule sits above each heading as the entry marker. */
.editorial-item > div > h3::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
  margin-bottom: .9rem;
}

/* Page-level hero */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
  position: relative; overflow: hidden;
}
.page-hero--ink { background: var(--ink-900); }
.page-hero--sm { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 3rem; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: var(--ink-50);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  display: inline-flex; align-items: center; min-height: 24px;
  color: var(--ink-50); transition: color .15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }

/* ================================================================
   CARDS
   ================================================================ */
/* Cards get a hairline top rule that draws in from the left on hover,
   instead of lifting off the page — a quieter, more deliberate motion. */
.card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .5s var(--ease-spring);
}
.card:hover { border-color: rgba(14,27,51,.30); box-shadow: var(--shadow-lg); }
.card:hover::before { width: 100%; }

.card-cream  { background: var(--cream); border-color: rgba(14,27,51,.12); }
.card-ink { background: var(--ink-900); border: none; box-shadow: var(--shadow-ink-md); }

/* ================================================================
   FEATURE / CHECK LIST
   ================================================================ */
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item { display: flex; gap: .75rem; align-items: flex-start; }
.fi-check {
  width: 20px; height: 20px;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  position: relative;
}
.fi-check::before {
  content: '';
  width: 9px; height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translate(0.5px, -1px);
}
.fi-check--accent   { background: rgba(14,27,51,.10); color: var(--accent); }
.fi-check--ink { background: rgba(14,27,51,.09);   color: var(--ink-900); }
.fi-check--white  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.fi-label { font-size: .9rem; color: var(--ink-70); line-height: 1.6; }
.fi-label strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; font-size: .875rem; }

/* Dark variant */
.feature-item--dark .fi-label { color: rgba(255,255,255,.62); }
.feature-item--dark .fi-label strong { color: var(--white); }

/* ================================================================
   TRUST / CREDENTIAL STRIP
   ================================================================ */
/* Credentials read as a typeset row of facts divided by hairlines —
   no chips, no boxes, no pictograms. The rule between items is the
   only ornament. */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-badge {
  padding: 0 1.75rem;
  border-left: 1px solid rgba(255,255,255,.14);
}
.trust-badge:first-child { border-left: none; padding-left: 0; }
.trust-badge:last-child  { padding-right: 0; }
.trust-badge-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,.78);
  text-wrap: balance;
}
@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 0; }
  .trust-badge:nth-child(odd) { border-left: none; padding-left: 0; }
}
@media (max-width: 520px) {
  .trust-strip { grid-template-columns: 1fr; gap: 1rem; }
  .trust-badge {
    border-left: none; padding: 0 0 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .trust-badge:last-child { border-bottom: none; padding-bottom: 0; }
}
/* Licensure block: copy + state legend on the left, US map on the right.
   Sits below the badge grid inside the same dark section. */
.licensure {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.licensure-map {
  width: 100%;
  height: auto;
  display: block;
}
.licensure-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
  margin-top: 1.75rem;
}
.licensure-list li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}
/* Marker repeats the map's highlight colour and its notched corner, so the
   list reads as the map's legend rather than as a second, separate claim. */
.licensure-list li::before {
  content: '';
  width: 9px; height: 9px;
  flex-shrink: 0;
  background: var(--map-on);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 0 100%);
}
@media (max-width: 900px) {
  .licensure {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
}
@media (max-width: 420px) {
  .licensure-list { grid-template-columns: 1fr; gap: .625rem; }
}

/* No-script fallbacks. The real nav and footer are injected by
   components.js; these give a reader without script a way to move around
   the site, and give non-rendering crawlers a real internal link graph. */
.nav-fallback, .footer-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 1.5rem;
  font-size: .9375rem;
  background: var(--ink-950);
}
.nav-fallback a, .footer-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: rgba(255,255,255,.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nav-fallback a:first-child { font-weight: 700; text-decoration: none; }
.nav-fallback a:hover, .footer-fallback a:hover { color: var(--white); }

.logo-badge-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ================================================================
   CHALLENGE ITEMS
   ================================================================ */
.challenge-item {
  display: flex; gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  transition: border-top-color .25s;
}
.challenge-item:hover { border-top-color: rgba(255,255,255,.55); }
/* Index numeral, matching the ghost-numeral system used site-wide
   instead of an icon-library pictogram in a tinted chip. */
.ch-text strong { display: block; font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.ch-text span,
.ch-text p   { font-size: .8125rem; color: rgba(255,255,255,.48); line-height: 1.55; }

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
  padding: 6rem 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band--ink  { background: var(--ink-900); }
.cta-band--dark    { background: var(--ink-1000); }

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.process-step { text-align: center; }
.step-num {
  --notch-step: 8px;
  width: 46px; height: 46px;
  clip-path: polygon(0 0, calc(100% - var(--notch-step)) 0, 100% var(--notch-step), 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  margin: 0 auto 1.25rem;
}
.step-num--ink { background: var(--ink-900); color: var(--white); box-shadow: var(--shadow-ink-sm); }
.step-num--accent   { background: var(--accent);   color: var(--white); box-shadow: var(--shadow-accent-sm); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
/* Content settles into place rather than sliding up from below.
   Compositor-only properties (opacity + transform) — an animated
   blur filter forces a repaint of the whole layer on every frame and
   is the single most expensive way to do this. Duration sits at the
   top of the UI-transition range; deceleration easing because the
   element is arriving, not leaving. */
/* Scoped to .js deliberately. Content is VISIBLE by default; the hidden
   starting state only applies once script has confirmed it can run and
   restore it. Hiding by default would mean any script failure — a blocked
   file, a network error, JS switched off — leaves the page blank, which is
   exactly what used to happen here. The inline head script that sets .js
   also removes it again if main.js never reports ready. */
.js .reveal {
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: scale(1); will-change: auto; }
/* 50ms stagger — grouped items should read as one gesture, not a queue. */
.reveal-d1 { transition-delay: .05s; }
.reveal-d2 { transition-delay: .10s; }
.reveal-d3 { transition-delay: .15s; }
.reveal-d4 { transition-delay: .20s; }
.reveal-d5 { transition-delay: .25s; }

/* Thin progress rule fixed to the top edge, filled left→right with
   scroll depth. Reuses the gold token pair instead of a stock
   plugin's default red/blue bar. */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent-pale);
  z-index: 999;
  pointer-events: none;
}
#scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  transition: transform .1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  #scroll-progress::after { transition: none; }
}

/* ================================================================
   GRAIN OVERLAY
   ================================================================ */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-60 { grid-template-columns: 1.5fr 1fr; }
.split-40 { grid-template-columns: 1fr 1.5fr; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  {
  .split, .split-60, .split-40 { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 720px)  { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Lets a heading step down a semantic level (h4 -> h3, etc.) for a
   correct document outline without inheriting the bigger tag default. */
.h-sm { font-size: 1.125rem; letter-spacing: -0.01em; }

/* Visually hidden but present for screen readers / document outline. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-nav { padding-top: var(--nav-height); }

/* ================================================================
   DARK SECTION TEXT — auto-white for bg-dark / bg-deep / bg-ink
   ================================================================
   The global h1-h4 rule sets color:var(--ink) (near black).
   Any section with a dark background needs headings and body text
   to be white. Rather than adding style="" on every element, we
   use descendant selectors here as the single source of truth.
   ================================================================ */

/* --- Headings auto-white in dark containers ---
   NOTE: .page-hero is intentionally excluded — it's a light section now,
   so headings/body text there simply use the default h1-h4/body ink color. */
.bg-dark    h1, .bg-dark    h2, .bg-dark    h3, .bg-dark    h4, .bg-dark    h5,
.bg-deep    h1, .bg-deep    h2, .bg-deep    h3, .bg-deep    h4, .bg-deep    h5,
.bg-ink  h1, .bg-ink  h2, .bg-ink  h3, .bg-ink  h4, .bg-ink  h5,
.page-hero--ink h1, .page-hero--ink h2, .page-hero--ink h3, .page-hero--ink h4,
.cta-band   h1, .cta-band   h2, .cta-band   h3 {
  color: var(--white);
}

/* --- Body text / paragraphs auto-white in dark containers ---
   No child combinator (>) so deeply-nested <p> tags are caught too.
   Exceptions for light-background components are restored below. */
.bg-dark   p,
.bg-deep   p,
.bg-ink p,
.page-hero--ink p {
  color: rgba(255,255,255,0.65);
}

/* Catch section-header and split children that live directly inside dark sections */
.bg-dark   .section-header h2,
.bg-dark   .section-header h3,
.bg-dark   .section-header p,
.bg-deep   .section-header h2,
.bg-deep   .section-header h3,
.bg-deep   .section-header p,
.bg-ink .section-header h2,
.bg-ink .section-header h3,
.bg-ink .section-header p {
  color: var(--white);
}
.bg-dark   .section-header p,
.bg-deep   .section-header p,
.bg-ink .section-header p {
  color: rgba(255,255,255,0.62);
}

/* process-step labels in dark sections */
.bg-dark   .process-step h3, .bg-dark   .process-step p,
.bg-deep   .process-step h3, .bg-deep   .process-step p,
.bg-ink .process-step h3, .bg-ink .process-step p {
  color: rgba(255,255,255,0.7);
}
.bg-dark   .process-step h3,
.bg-deep   .process-step h3,
.bg-ink .process-step h3 { color: var(--white); }

/* --- Restore dark text inside LIGHT-background components ---
   .card and .card-cream use white/cream backgrounds, so their text
   must stay dark even when they're inside a dark section. */
.bg-dark   .card h1, .bg-dark   .card h2, .bg-dark   .card h3, .bg-dark   .card h4,
.bg-dark   .card-cream h1, .bg-dark .card-cream h2, .bg-dark .card-cream h3, .bg-dark .card-cream h4,
.bg-deep   .card h1, .bg-deep   .card h2, .bg-deep   .card h3, .bg-deep   .card h4,
.bg-deep   .card-cream h1, .bg-deep .card-cream h2, .bg-deep .card-cream h3, .bg-deep .card-cream h4,
.bg-ink .card h1, .bg-ink .card h2, .bg-ink .card h3, .bg-ink .card h4,
.bg-ink .card-cream h1, .bg-ink .card-cream h2, .bg-ink .card-cream h3, .bg-ink .card-cream h4 {
  color: var(--ink);
}
.bg-dark   .card p, .bg-dark   .card-cream p,
.bg-deep   .card p, .bg-deep   .card-cream p,
.bg-ink .card p, .bg-ink .card-cream p {
  color: var(--ink-70);
}

/* --- .card-ink and .card-dark always use white text regardless of parent --- */
.card-ink h2, .card-ink h3, .card-ink h4, .card-ink h5 { color: var(--white); }
.card-ink p { color: rgba(255,255,255,0.70); }

/* --- Remove any redundant inline style="color:var(--white)" conflicts ---
   The inline styles set by the agents still win via specificity, which is
   fine — they will simply match the values above. No change needed there. */

/* ================================================================
   BLOG
   ================================================================ */
/* Teaser card on the /blog index. Built on the same hairline-card
   shell as .card (top rule draws in on hover), with its own internal
   layout so the meta row pins to the bottom regardless of excerpt
   length within a row of the grid. */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}
.post-card h3 { margin-bottom: 0.75rem; }
.post-card h3 a {
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s var(--ease-spring);
}
.post-card h3 a:hover { background-size: 100% 1px; }
.post-card p { color: var(--ink-70); font-size: 0.9375rem; flex-grow: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-50);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.post-meta-sep { opacity: 0.5; }

/* Long-form article body. Reused across every post so paragraph
   rhythm, heading scale and link styling stay consistent without
   hand-tuning inline styles per post (as the other page bodies do). */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose p { color: var(--ink-70); }
/* These beat the `> * + *` rule above on specificity (0,1,1 vs 0,1,0),
   so headings get their wider top margin without needing !important. */
.prose h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin-top: 2.5rem;
}
.prose h3 {
  font-size: 1.1875rem;
  margin-top: 2rem;
}
.prose ul, .prose ol { color: var(--ink-70); padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  .section    { padding: 4rem 0; }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  h2 { font-size: 1.75rem; }
}


/* ================================================================
   THE SPARK
   The only blue on the site. Each of these is a small mark — a dash,
   a hairline, a hover reveal — mirroring the ampersand in the logo,
   which is the sole piece of colour in the brand. Keep this list
   short: the restraint is the design. Never use --spark as a fill
   behind text or across a headline.
   ================================================================ */
.eyebrow::before      { background: var(--spark); }
.divider-accent       { background: var(--spark); }
.card::before         { background: var(--spark); }
/* The hero's italic serif line is set in graphite rather than blue: at that
   size colour reads as an advertisement. The typeface change alone carries
   the hierarchy, which is the more expensive-looking move. */
.hero-title .accent   { color: var(--accent-light); }
