/* =========================================================================
   Allyn J. Raphael, LLC — Site Stylesheet
   One file, cached across every page, on purpose: fewer requests, faster
   repeat visits. Organized in sections — search the ALL-CAPS headers.
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   Palette is derived from the real logo mark (slate) and the navy /
   sky / brass system already used in the client intake tool — extended,
   not reinvented, so anything new still feels like the same company.
   --------------------------------------------------------------------- */
:root{
  /* Brand */
  --navy:        #0A2240;   /* deep navy — dark sections, footer, text-on-paper for headings */
  --navy-2:      #0F2C52;   /* layered navy, gradients / panel-on-panel */
  --navy-3:      #14355F;
  --slate:       #90A0B8;   /* exact logo tone */
  --slate-light: #C9D2E0;   /* tints, hairlines on light bg */
  --slate-dark:  #55647C;   /* text-safe slate on white */
  --sky:         #2C74B8;   /* accessible blue — links, icons on white */
  --sky-bright:  #6FB4EC;   /* light-on-dark blue, matches intake tool accent */
  --brass:       #B9863A;   /* accessible brass — text/icons on white */
  --brass-fill:  #D7A94E;   /* saturated brass — badges, fills, on-dark */
  --brass-light: #F1DFB6;   /* tint — subtle backgrounds */

  /* Neutrals */
  --paper:    #F6F8FB;
  --paper-2:  #EDF1F7;
  --white:    #FFFFFF;
  --ink:      #111B2E;
  --ink-soft: #4B5A72;
  --line:     #DCE3ED;

  /* On dark (navy sections / drawer / footer) */
  --on-navy-ink:  #F5F7FA;
  --on-navy-soft: #AFC0D9;
  --on-navy-line: rgba(255,255,255,.14);
  --on-navy-fill: rgba(255,255,255,.06);

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --fs-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.85rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --fs-h4: 1.2rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --space-section: clamp(3.5rem, 3rem + 3vw, 6.5rem);
  --header-h: 84px;

  /* Shadow (navy-tinted, not generic black) */
  --shadow-sm: 0 2px 10px rgba(10,34,64,.07);
  --shadow-md: 0 12px 30px rgba(10,34,64,.12);
  --shadow-lg: 0 30px 70px rgba(10,34,64,.20);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg{ max-width: 100%; display: block; }
img{ height: auto; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6{ margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; color: var(--navy); }
p{ margin: 0; }
::selection{ background: var(--brass-light); color: var(--navy); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--sky-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy); color: var(--on-navy-ink);
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  font-size: var(--fs-small); font-weight: 600; z-index: 1000;
  transition: top .15s var(--ease);
}
.skip-link:focus{ top: 1rem; }

.visually-hidden{
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */
.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container--narrow{ max-width: var(--container-narrow); }

.section{ padding-block: var(--space-section); }
.section--tight{ padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--alt{ background: var(--paper-2); }
.section--navy{ background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy-ink); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4{ color: var(--on-navy-ink); }

.grid{ display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-5{ grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-5{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4, .grid-5{ grid-template-columns: 1fr; }
}

.stack{ display: flex; flex-direction: column; }
.cluster{ display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.section-head{ max-width: 640px; margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3.25rem); }
.section-head--center{ margin-inline: auto; text-align: center; }
.section-head p{ margin-top: .85rem; color: var(--ink-soft); font-size: var(--fs-lead); }
.section--navy .section-head p{ color: var(--on-navy-soft); }

/* ---------------------------------------------------------------------
   4. TYPE UTILITIES
   --------------------------------------------------------------------- */
.eyebrow{
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 500;
  margin-bottom: .9rem;
}
.section--navy .eyebrow{ color: var(--sky-bright); }
.eyebrow::before{
  content: "";
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--brass-fill);
  transform: rotate(45deg);
  flex: none;
}
.lead{ font-size: var(--fs-lead); color: var(--ink-soft); }
.section--navy .lead{ color: var(--on-navy-soft); }
.text-brass{ color: var(--brass); }
.text-sky{ color: var(--sky); }
.muted{ color: var(--ink-soft); }
.section--navy .muted{ color: var(--on-navy-soft); }

/* ---------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--brass{ background: var(--brass-fill); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--brass:hover{ background: #e0b664; box-shadow: var(--shadow-md); }

.btn--navy{ background: var(--navy); color: var(--on-navy-ink); }
.btn--navy:hover{ background: var(--navy-2); }

.btn--outline{ border-color: var(--slate-light); color: var(--navy); background: var(--white); }
.btn--outline:hover{ border-color: var(--sky); color: var(--sky); }

.btn--outline-on-navy{ border-color: var(--on-navy-line); color: var(--on-navy-ink); }
.btn--outline-on-navy:hover{ border-color: var(--sky-bright); color: var(--sky-bright); }

.btn--ghost{ color: var(--navy); padding-inline: .4rem; }
.btn--ghost:hover{ color: var(--sky); }

.btn--sm{ padding: .6rem 1.15rem; font-size: .85rem; }
.btn--block{ width: 100%; }
.btn svg{ width: 1.05em; height: 1.05em; flex: none; }

/* ---------------------------------------------------------------------
   6. SITE HEADER / NAV
   --------------------------------------------------------------------- */
.site-header{
  position: sticky; top: 0; left: 0; width: 100%; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(246,248,251,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled{ box-shadow: var(--shadow-sm); }
.site-header__inner{ display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.brand{ display: flex; align-items: center; gap: .6rem; flex: none; }
.brand img{ height: 40px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: .35rem; margin-inline: auto; }
.main-nav > ul{ display: flex; align-items: center; gap: .1rem; }
.nav-link{
  padding: .6rem .85rem; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 500; color: var(--navy);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-link:hover, .nav-link.is-active{ color: var(--sky); background: rgba(44,116,184,.08); }
.nav-link svg{ width: 15px; height: 15px; transition: transform .18s var(--ease); }

.nav-item--dropdown{ position: relative; }
.nav-item--dropdown:hover .nav-link svg,
.nav-item--dropdown:focus-within .nav-link svg{ transform: rotate(180deg); }
.nav-dropdown{
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 300px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown{
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a{
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .65rem .7rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--navy);
}
.nav-dropdown a:hover{ background: var(--paper-2); color: var(--sky); }
.nav-dropdown .ic{
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--paper-2); display: grid; place-items: center; color: var(--sky);
}
.nav-dropdown a:hover .ic{ background: var(--slate-light); }
.nav-dropdown .ic svg{ width: 16px; height: 16px; }
.nav-dropdown span small{ display:block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; margin-top: 1px; }

.header-actions{ display: flex; align-items: center; gap: .6rem; flex: none; }
.client-btn{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy); color: var(--navy);
  font-weight: 600; font-size: .88rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.client-btn:hover{ background: var(--navy); color: var(--on-navy-ink); }
.client-btn svg{ width: 16px; height: 16px; }

.nav-toggle{
  display: none; flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; border: 1px solid var(--line);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span{ position: relative; }
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

@media (max-width: 980px){
  .main-nav{
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 1.25rem; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .main-nav.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav > ul{ flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link{ padding: .9rem .5rem; font-size: 1rem; justify-content: space-between; }
  .nav-dropdown{
    position: static; width: auto; transform: none; opacity: 1; visibility: visible;
    pointer-events: none; box-shadow: none; border: none; padding: 0 0 0 .75rem;
    max-height: 0; overflow: hidden; transition: max-height .2s var(--ease);
  }
  .nav-item--dropdown.is-open .nav-dropdown{ max-height: 400px; pointer-events: auto; }
  .nav-item--dropdown.is-open .nav-link svg{ transform: rotate(180deg); }
  .header-actions .btn--brass{ display: none; }
  .nav-toggle{ display: flex; }
  .main-nav .mobile-cta{ display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
}
@media (min-width: 981px){ .mobile-cta{ display: none; } }

/* ---------------------------------------------------------------------
   7. CLIENT DRAWER
   --------------------------------------------------------------------- */
.drawer-overlay{
  position: fixed; inset: 0; background: rgba(10,20,34,.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
  z-index: 900;
}
.drawer-overlay.is-open{ opacity: 1; visibility: visible; }

.drawer{
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 100vw);
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy-ink);
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  z-index: 901;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open{ transform: translateX(0); }

.drawer__head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}
.drawer__title{ display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--on-navy-ink); }
.drawer__title .mark{ width: 30px; height: 30px; }
.drawer__close{
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  display: grid; place-items: center; border: 1px solid var(--on-navy-line);
  color: var(--on-navy-soft); flex: none;
}
.drawer__close:hover{ color: var(--on-navy-ink); border-color: var(--sky-bright); }
.drawer__close svg{ width: 16px; height: 16px; }

.drawer__body{ padding: 1.5rem; display: flex; flex-direction: column; gap: 1.75rem; flex: 1; }

.drawer__intro p{ color: var(--on-navy-soft); font-size: .92rem; margin-top: .35rem; }

.drawer__form{ display: flex; flex-direction: column; gap: .8rem; }
.drawer__form label{ font-size: .82rem; font-weight: 600; color: var(--on-navy-soft); display: block; margin-bottom: .4rem; }
.drawer__input-row{ display: flex; gap: .6rem; }
.drawer__input{
  flex: 1; min-width: 0;
  background: var(--on-navy-fill); border: 1px solid var(--on-navy-line);
  border-radius: var(--radius-sm); color: var(--on-navy-ink);
  padding: .8rem .9rem; font-family: var(--font-mono); font-size: .95rem; letter-spacing: .03em;
}
.drawer__input::placeholder{ color: rgba(175,192,217,.55); font-family: var(--font-body); letter-spacing: normal; }
.drawer__submit{
  flex: none; width: 48px; border-radius: var(--radius-sm);
  background: var(--brass-fill); color: var(--navy); display: grid; place-items: center;
  transition: background .15s var(--ease);
}
.drawer__submit:hover{ background: #e0b664; }
.drawer__submit svg{ width: 18px; height: 18px; }
.drawer__submit[disabled]{ opacity: .55; cursor: default; }
.drawer__msg{
  font-size: .84rem; border-radius: var(--radius-sm); padding: .65rem .8rem;
  display: none;
}
.drawer__msg.is-visible{ display: block; }
.drawer__msg--error{ background: rgba(220,90,80,.15); border: 1px solid rgba(220,90,80,.4); color: #ffb3ab; }
.drawer__msg--success{ background: rgba(87,168,232,.15); border: 1px solid rgba(87,168,232,.4); color: var(--sky-bright); }
.drawer__help{ font-size: .8rem; color: var(--on-navy-soft); }
.drawer__help a{ color: var(--sky-bright); font-weight: 600; }
.drawer__help a:hover{ text-decoration: underline; }

.drawer__divider{ height: 1px; background: var(--on-navy-line); border: none; margin: 0; }

.drawer__section-label{ font-family: var(--font-mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--sky-bright); margin-bottom: .9rem; }

.drawer__contact-list{ display: flex; flex-direction: column; gap: .75rem; }
.drawer__contact-item{ display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; }
.drawer__contact-item .ic{
  flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--on-navy-fill); border: 1px solid var(--on-navy-line);
  display: grid; place-items: center; color: var(--sky-bright);
}
.drawer__contact-item .ic svg{ width: 16px; height: 16px; }
.drawer__contact-item a:hover{ color: var(--sky-bright); }
.drawer__contact-item .label{ display: block; color: var(--on-navy-soft); font-size: .76rem; margin-bottom: 1px; }

.drawer__social{ display: flex; gap: .6rem; }
.drawer__social a{
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  border: 1px solid var(--on-navy-line); display: grid; place-items: center; color: var(--on-navy-soft);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.drawer__social a:hover{ color: var(--sky-bright); border-color: var(--sky-bright); }
.drawer__social svg{ width: 16px; height: 16px; }

.drawer__foot{
  margin-top: auto; padding: 1.25rem 1.5rem; border-top: 1px solid var(--on-navy-line);
  font-size: .82rem; color: var(--on-navy-soft);
}
.drawer__foot a{ color: var(--brass-fill); font-weight: 600; }
.drawer__foot a:hover{ color: var(--sky-bright); }

body.no-scroll{ overflow: hidden; }

/* ---------------------------------------------------------------------
   8. SIGNATURE MARK — cut-circle echo of the logo, used sparingly
   --------------------------------------------------------------------- */
.mark{ position: relative; border-radius: 50%; overflow: hidden; }
.mark::after{
  content: ""; position: absolute; left: -10%; top: -18%; width: 130%; height: 55%;
  background: inherit; filter: brightness(0.001);
}
.cut-shape{
  --cut-color: var(--brass-fill);
  position: relative; border-radius: 50%; background: var(--cut-color);
}
.cut-shape::before{
  content: ""; position: absolute; left: -8%; top: 4%; width: 116%; height: 30%;
  background: var(--paper); transform: rotate(-3deg);
}
.section--navy .cut-shape::before{ background: var(--navy); }

.hero__shape{
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-fill), transparent 72%);
  opacity: .35; filter: blur(2px); pointer-events: none;
}

/* ---------------------------------------------------------------------
   9. HERO
   --------------------------------------------------------------------- */
.hero{ position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy-ink); }
.hero__grid{
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 3vw, 4rem);
  padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  position: relative; z-index: 2;
}
.hero__shape{ width: 620px; height: 620px; top: -220px; left: -180px; z-index: 1; }
.hero h1{ color: var(--on-navy-ink); margin-bottom: 1.1rem; }
.hero .lead{ margin-bottom: 2rem; max-width: 46ch; }
.hero__actions{ display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.75rem; }
.hero__stats{ display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 2vw, 2.75rem); }
.hero__stat{ display: flex; flex-direction: column; gap: .2rem; }
.hero__stat b{ font-family: var(--font-mono); font-size: 1.3rem; color: var(--sky-bright); }
.hero__stat span{ font-size: .78rem; color: var(--on-navy-soft); }

.hero__media{ position: relative; }
.hero__media-frame{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--on-navy-line);
  aspect-ratio: 4 / 4.6;
}
.hero__media-frame img{ width: 100%; height: 100%; object-fit: cover; }
.hero__media-frame::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(10,34,64,0) 55%, rgba(10,34,64,.55) 100%);
}
.hero__badge{
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 2;
  background: rgba(10,34,64,.7); backdrop-filter: blur(10px);
  border: 1px solid var(--on-navy-line); border-radius: var(--radius-md);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem;
  max-width: 78%;
}
.hero__badge .dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--brass-fill); flex: none; box-shadow: 0 0 0 4px rgba(215,169,78,.22); }
.hero__badge span{ font-size: .82rem; color: var(--on-navy-ink); line-height: 1.3; }

@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__media{ order: -1; }
  .hero__media-frame{ aspect-ratio: 16/10; }
}

/* Page hero (non-home, no media grid) */
.page-hero{ position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy-ink); padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); }
.page-hero__shape{ width: 480px; height: 480px; top: -180px; right: -140px; }
.page-hero .container{ position: relative; z-index: 2; }
.page-hero h1{ color: var(--on-navy-ink); max-width: 18ch; margin-bottom: 1rem; }
.page-hero .lead{ max-width: 56ch; }
.breadcrumb{ display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--on-navy-soft); margin-bottom: 1.4rem; font-family: var(--font-mono); }
.breadcrumb a:hover{ color: var(--sky-bright); }

/* ---------------------------------------------------------------------
   10. STAT STRIP
   --------------------------------------------------------------------- */
.stat-strip{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.stat-strip__grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.25rem; }
.stat-strip__item{ text-align: center; }
.stat-strip__item b{ display: block; font-family: var(--font-mono); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); color: var(--navy); }
.stat-strip__item span{ font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 780px){ .stat-strip__grid{ grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------
   11. CARDS — services / plans / articles / tracks / options
   --------------------------------------------------------------------- */
.card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.9rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--slate-light); }

.service-card{ display: flex; flex-direction: column; height: 100%; }
.service-card__icon{
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--sky); display: grid; place-items: center;
  margin-bottom: 1.25rem; position: relative;
}
.service-card__icon svg{ width: 24px; height: 24px; }
.service-card:hover .service-card__icon{ background: var(--brass-light); color: var(--brass); }
.service-card h3{ font-size: 1.15rem; margin-bottom: .55rem; }
.service-card p{ color: var(--ink-soft); font-size: .92rem; flex: 1; }
.service-card .card-link{ margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--sky); }
.service-card .card-link svg{ width: 15px; height: 15px; transition: transform .15s var(--ease); }
.service-card:hover .card-link svg{ transform: translateX(3px); }

/* Plans */
.plan-card{ display: flex; flex-direction: column; position: relative; border-width: 1px; }
.plan-card--featured{ border: 2px solid var(--brass-fill); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.plan-card--featured:hover{ transform: translateY(-10px); }
.plan-card__badge{
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brass-fill); color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: var(--radius-pill); font-family: var(--font-mono); letter-spacing: .04em;
}
.plan-card h3{ font-size: 1.3rem; }
.plan-card__tagline{ color: var(--ink-soft); font-size: .88rem; margin-top: .3rem; margin-bottom: 1.4rem; }
.plan-card__price{ display: flex; align-items: baseline; gap: .4rem; margin-bottom: .2rem; flex-wrap: wrap; }
.plan-card__price .amt{ font-family: var(--font-mono); font-size: 2rem; color: var(--navy); font-weight: 500; }
.plan-card__price .per{ color: var(--ink-soft); font-size: .85rem; }
.plan-card__setup{ font-size: .8rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.plan-card__features{ display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.6rem; flex: 1; }
.plan-card__features li{ display: flex; align-items: flex-start; gap: .6rem; font-size: .89rem; }
.plan-card__features svg{ flex: none; width: 17px; height: 17px; color: var(--brass); margin-top: 2px; }

/* Articles */
.article-card{ display: flex; flex-direction: column; height: 100%; }
.article-card__tag{
  align-self: flex-start; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--sky);
  background: rgba(44,116,184,.09); padding: .3rem .65rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.article-card h3{ font-size: 1.1rem; margin-bottom: .6rem; }
.article-card p{ color: var(--ink-soft); font-size: .9rem; flex: 1; }
.article-card__meta{ display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); font-family: var(--font-mono); }
.article-card__meta .read-more{ color: var(--sky); font-weight: 600; font-family: var(--font-body); }

/* Tracks (Learn) */
.track-card{ display: flex; flex-direction: column; height: 100%; }
.track-card__age{ font-family: var(--font-mono); font-size: .75rem; color: var(--brass); letter-spacing: .04em; margin-bottom: .5rem; }
.track-card h3{ font-size: 1.15rem; margin-bottom: .6rem; }
.track-card p{ color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.1rem; }
.track-card__tags{ display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.track-card__tags span{ font-size: .74rem; background: var(--paper-2); color: var(--ink-soft); padding: .25rem .6rem; border-radius: var(--radius-pill); }

/* Options card (options-style, generic reusable) */
.option-card h3{ font-size: 1.1rem; margin-bottom: .5rem; }
.option-card p{ color: var(--ink-soft); font-size: .9rem; margin-bottom: 1rem; }
.option-card ul{ display:flex; flex-direction:column; gap:.5rem; }
.option-card ul li{ font-size: .87rem; display:flex; gap:.5rem; align-items:flex-start; }
.option-card ul svg{ flex:none; width:15px; height:15px; margin-top:3px; color:var(--sky); }

/* ---------------------------------------------------------------------
   12. PROCESS
   --------------------------------------------------------------------- */
.process-list{ display: flex; flex-direction: column; }
.process-step{
  display: grid; grid-template-columns: 84px 1fr; gap: 1.75rem;
  padding-block: 2.25rem; border-top: 1px solid var(--line);
  position: relative;
}
.process-step:first-child{ border-top: none; padding-top: 0; }
.process-step__marker{
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: var(--on-navy-ink);
  display: grid; place-items: center; position: relative; overflow: hidden;
  font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600;
  flex: none;
}
.process-step__marker::before{
  content: ""; position: absolute; left: -10%; top: 6%; width: 120%; height: 26%;
  background: var(--brass-fill); transform: rotate(-4deg);
}
.process-step h3{ font-size: 1.3rem; margin-bottom: .5rem; }
.process-step p{ color: var(--ink-soft); max-width: 62ch; }
.process-step__meta{ display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.process-step__meta div{ font-size: .82rem; }
.process-step__meta b{ display:block; color: var(--navy); font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;}
.process-step__meta span{ color: var(--ink-soft); }
@media (max-width: 640px){
  .process-step{ grid-template-columns: 52px 1fr; gap: 1rem; }
  .process-step__marker{ width: 44px; height: 44px; font-size: .95rem; }
}

/* ---------------------------------------------------------------------
   13. FORMS
   --------------------------------------------------------------------- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full{ grid-column: 1 / -1; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }

.field label{ display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; }
.field .opt{ font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select{
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: .95rem; transition: border-color .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--sky); }
.field textarea{ resize: vertical; min-height: 130px; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B5A72' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; padding-right: 2.2rem; }

.form-msg{ padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .88rem; display: none; margin-top: 1rem; }
.form-msg.is-visible{ display: block; }
.form-msg--success{ background: rgba(44,116,184,.09); border: 1px solid rgba(44,116,184,.3); color: var(--sky); }
.form-msg--error{ background: rgba(200,70,60,.08); border: 1px solid rgba(200,70,60,.3); color: #b43d31; }

.hp-field{ position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Choice pills (plan-quiz on Plans page) */
.choice-row{ display: flex; flex-wrap: wrap; gap: .55rem; }
.choice-pill{
  padding: .65rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  font-size: .88rem; font-weight: 500; background: var(--white); color: var(--navy);
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.choice-pill:hover{ border-color: var(--sky); }
.choice-pill[aria-checked="true"]{ background: var(--navy); border-color: var(--navy); color: var(--on-navy-ink); }

/* ---------------------------------------------------------------------
   14. FAQ ACCORDION
   --------------------------------------------------------------------- */
.faq-list{ display: flex; flex-direction: column; }
.faq-item{ border-top: 1px solid var(--line); }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.faq-q svg{ flex: none; width: 18px; height: 18px; transition: transform .2s var(--ease); color: var(--sky); }
.faq-item.is-open .faq-q svg{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-a p{ color: var(--ink-soft); padding-bottom: 1.3rem; max-width: 68ch; }

/* ---------------------------------------------------------------------
   15. CTA BAND
   --------------------------------------------------------------------- */
.cta-band{ position: relative; overflow: hidden; }
.cta-band__inner{
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.cta-band h2{ margin-bottom: .5rem; max-width: 24ch; }
.cta-band .lead{ margin-bottom: 0; max-width: 42ch; }
.cta-band__actions{ display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------------- */
.site-footer{ background: var(--navy); color: var(--on-navy-soft); padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.footer__top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--on-navy-line); }
.footer__brand img{ height: 34px; margin-bottom: 1rem; }
.footer__brand p{ font-size: .88rem; max-width: 32ch; margin-bottom: 1.4rem; }
.footer__col h4{ font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--sky-bright); margin-bottom: 1.1rem; font-weight: 500; }
.footer__col ul{ display: flex; flex-direction: column; gap: .65rem; }
.footer__col a{ font-size: .89rem; }
.footer__col a:hover{ color: var(--on-navy-ink); }
.footer__contact li{ display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; }
.footer__contact svg{ flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--sky-bright); }

.footer__newsletter{ display: flex; gap: .5rem; margin-top: .5rem; }
.footer__newsletter input{
  flex: 1; min-width: 0; background: var(--on-navy-fill); border: 1px solid var(--on-navy-line);
  border-radius: var(--radius-sm); color: var(--on-navy-ink); padding: .7rem .85rem; font-size: .85rem;
}
.footer__newsletter input::placeholder{ color: var(--on-navy-soft); }
.footer__newsletter button{ flex: none; }

.footer__bottom{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: .8rem; }
.footer__legal{ display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__legal a:hover{ color: var(--on-navy-ink); }
.social-icons{ display: flex; gap: .6rem; }
.social-icons a{
  width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--on-navy-line);
  display: grid; place-items: center; transition: border-color .15s var(--ease), color .15s var(--ease);
}
.social-icons a:hover{ border-color: var(--sky-bright); color: var(--sky-bright); }
.social-icons svg{ width: 16px; height: 16px; }

@media (max-width: 900px){
  .footer__top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer__top{ grid-template-columns: 1fr; }
  .footer__bottom{ flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   17. SCROLL REVEAL
   --------------------------------------------------------------------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1){ transition-delay: .03s; }
.reveal-group .reveal:nth-child(2){ transition-delay: .09s; }
.reveal-group .reveal:nth-child(3){ transition-delay: .15s; }
.reveal-group .reveal:nth-child(4){ transition-delay: .21s; }
.reveal-group .reveal:nth-child(5){ transition-delay: .27s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   18. MISC / SHARED PAGE PATTERNS
   --------------------------------------------------------------------- */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 3vw, 4rem); align-items: center; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } }

.value-list{ display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.value-list li{ display: flex; gap: .9rem; align-items: flex-start; }
.value-list .ic{ flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--paper-2); color: var(--sky); display: grid; place-items: center; }
.value-list .ic svg{ width: 18px; height: 18px; }
.value-list b{ display: block; color: var(--navy); font-size: .96rem; margin-bottom: 2px; }
.value-list span{ color: var(--ink-soft); font-size: .89rem; }

.tag-row{ display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-row span{ font-size: .78rem; font-weight: 600; padding: .35rem .75rem; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink-soft); }
.tag-row span.is-active{ background: var(--navy); color: var(--on-navy-ink); }

.quote-panel{
  background: var(--navy); color: var(--on-navy-ink); border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.6rem + 2vw, 3rem); position: relative; overflow: hidden;
}
.quote-panel blockquote{ font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.45; margin: 0 0 1.25rem; }
.quote-panel cite{ font-style: normal; font-size: .85rem; color: var(--on-navy-soft); }

.placeholder-note{
  font-size: .82rem; color: var(--ink-soft); background: var(--paper-2);
  border-left: 3px solid var(--brass-fill); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Insight filter */
.insight-filter{ display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.5rem; }
.insight-filter button{
  padding: .55rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.insight-filter button:hover{ border-color: var(--sky); color: var(--sky); }
.insight-filter button.is-active{ background: var(--navy); border-color: var(--navy); color: var(--on-navy-ink); }
.article-card[hidden]{ display: none; }

/* Comparison table (Plans) */
.compare-table{ width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td{ padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .88rem; }
.compare-table thead th{ font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); background: var(--paper-2); }
.compare-table tbody th{ font-weight: 600; color: var(--navy); }
.compare-table td{ color: var(--ink-soft); }
.compare-table td svg, .compare-table th svg{ width: 17px; height: 17px; color: var(--brass); }
.compare-table .col-featured{ background: rgba(215,169,78,.06); }
.table-scroll{ overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Course finder (React mount) container baseline */
#course-finder-root{ min-height: 220px; }
.cf-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.cf-step-label{ font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.cf-options{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: .7rem; }
.cf-option{
  padding: 1rem; border-radius: var(--radius-md); border: 1.5px solid var(--line); text-align: left;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.cf-option:hover{ border-color: var(--sky); }
.cf-option.is-selected{ border-color: var(--navy); background: var(--paper-2); }
.cf-option b{ display: block; color: var(--navy); font-size: .95rem; margin-bottom: 2px; }
.cf-option span{ color: var(--ink-soft); font-size: .82rem; }
.cf-result{ display: flex; gap: 1.25rem; align-items: flex-start; }
.cf-result__icon{ flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--brass-light); color: var(--brass); display: grid; place-items: center; }
.cf-result__icon svg{ width: 24px; height: 24px; }
.cf-back{ font-size: .82rem; color: var(--ink-soft); margin-top: 1.25rem; display: inline-block; }
.cf-back:hover{ color: var(--sky); }

/* Contact page */
.split--form{ align-items: start; }
.contact-form{ max-width: 640px; }
.contact-info-block{
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
}
.contact-info-block h3{ font-size: 1.05rem; margin-bottom: 1.4rem; }
.contact-list a{ color: var(--sky); font-weight: 600; }
.contact-list a:hover{ text-decoration: underline; }
.contact-info-block .social-icons a{ border-color: var(--line); color: var(--ink-soft); }
.contact-info-block .social-icons a:hover{ border-color: var(--sky); color: var(--sky); }

/* Legal pages (Privacy / Terms) — restore readable prose defaults */
.legal-copy{ font-size: .98rem; line-height: 1.75; color: var(--ink); }
.legal-copy h2{ font-size: 1.3rem; color: var(--navy); margin: 2.4rem 0 1rem; }
.legal-copy h2:first-child{ margin-top: 0; }
.legal-copy p{ margin-bottom: 1.2rem; color: var(--ink-soft); }
.legal-copy ul{ list-style: disc; padding-left: 1.3rem; margin-bottom: 1.2rem; }
.legal-copy li{ color: var(--ink-soft); margin-bottom: .5rem; }
.legal-copy a{ color: var(--sky); font-weight: 600; }
.legal-copy a:hover{ text-decoration: underline; }

/* Sitewide print/legibility floor */
@media (max-width: 480px){
  .btn{ font-size: .9rem; padding: .8rem 1.35rem; }
}
