/* ==========================================================================
   HIGH TICKET SALES INSTITUTE — shared stylesheet
   --------------------------------------------------------------------------
   This one file styles every page of the site. It implements the two-layer
   brand from the positioning document:

     · The INSTITUTE layer  — gravitas. Paper backgrounds, navy text, brass
       rules. Used on trust surfaces (Employers, credential talk, the footer).
       In HTML: <section class="theme-paper">

     · The PLATFORM layer   — performance energy. Dark navy fields, light
       text, motion. Used on marketing surfaces (heroes, pillars, CTAs).
       In HTML: <section class="theme-dark">

   Plain-English map of this file:
     1. Brand tokens (colors, spacing, type sizes)
     2. Self-hosted fonts (Spectral + IBM Plex Sans, from the brand kit)
     3. Base/reset rules
     4. Typography helpers (eyebrows, display headings, leads)
     5. Buttons
     6. Header + navigation (including the mobile menu)
     7. Section layouts and reusable blocks (pillars, journey, facts,
        seven-beat spine, dimension cards, FAQ, forms, CTA band)
     8. Footer
     9. Motion (scroll-reveal, hero waveform) + reduced-motion fallback
    10. Responsive adjustments
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. BRAND TOKENS — the palette and scale everything else uses.
   Colors come straight from the brand guidelines. Brass is an accent only:
   rules, eyebrows, numerals, buttons — never a large background fill.
   -------------------------------------------------------------------------- */
:root {
  /* Core palette */
  --navy:        #10243B;   /* Institute Navy — primary */
  --boardroom:   #0B1930;   /* Boardroom — dark fields */
  --brass:       #A9894B;   /* Credential Brass — accent */
  --brass-light: #D8BF8A;   /* Brass Light — accent on dark */
  --paper:       #F5F1E7;   /* Transcript Paper — light fields */
  --mist:        #ADB9C8;   /* Mist — secondary text on dark */
  --slate:       #5E6E82;   /* Slate — secondary text on light */

  /* Hairlines (thin 1px rules used everywhere) */
  --line-on-dark:  rgba(216, 191, 138, 0.22);
  --line-on-paper: rgba(16, 36, 59, 0.16);

  /* Type families */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale — grows smoothly from phone to desktop */
  --fs-hero:    clamp(2.6rem, 1.2rem + 6.2vw, 5.6rem);
  --fs-display: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  --fs-title:   clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  --fs-lead:    clamp(1.075rem, 1rem + 0.45vw, 1.3rem);
  --fs-body:    1.0rem;
  --fs-small:   0.875rem;

  /* Layout */
  --container:  1160px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --sect-pad:   clamp(4.5rem, 4rem + 6vw, 8.5rem);

  /* Header height (used to pad heroes so text clears the fixed nav) */
  --header-h: 76px;
}


/* --------------------------------------------------------------------------
   2. FONTS — self-hosted from the HTSI brand kit for speed and reliability.
   Spectral = display/editorial voice. IBM Plex Sans = labels, UI, body.
   -------------------------------------------------------------------------- */
@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-Light.woff2") format("woff2");    font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-Regular.woff2") format("woff2");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-Medium.woff2") format("woff2");   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/Plex400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/Plex500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/Plex600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }


/* --------------------------------------------------------------------------
   3. BASE — resets and page-wide defaults.
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--navy);
  background: var(--boardroom); /* dark by default; light sections override */
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--brass); color: var(--boardroom); }

/* Visible keyboard focus, brand-colored */
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

/* Skip link for keyboard users — hidden until focused */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brass); color: var(--boardroom);
  padding: 0.6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A slightly narrower measure for long-form reading blocks */
.container--narrow { max-width: 820px; }


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */

/* Eyebrow — letterspaced Plex caps, the brand's "engraving" register.
   Used above nearly every heading, usually with a brass rule beside it. */
.eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
}
.theme-dark .eyebrow { color: var(--brass-light); }
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: currentColor;
  opacity: 0.9;
  flex: none;
}
.eyebrow--bare::before { display: none; } /* eyebrow without the rule */

/* Display headings — Spectral, tight leading, generous but disciplined */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }

.hero-title   { font-size: var(--fs-hero); letter-spacing: -0.015em; }
.display      { font-size: var(--fs-display); letter-spacing: -0.01em; }
.title        { font-size: var(--fs-title); line-height: 1.2; }

/* Lead paragraph — Spectral Light, the editorial voice */
.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.6;
  margin: 1.4rem 0 0;
}

/* Secondary text colors per layer */
.theme-dark  { background: var(--boardroom); color: var(--paper); }
.theme-dark  .muted { color: var(--mist); }
.theme-navy  { background: var(--navy); color: var(--paper); }
.theme-navy  .muted { color: var(--mist); }
.theme-paper { background: var(--paper); color: var(--navy); }
.theme-paper .muted { color: var(--slate); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* Brass numeral — the oversized serif number used on pillars & components */
.numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem);
  line-height: 1;
  color: var(--brass);
}
.theme-dark .numeral { color: var(--brass-light); }


/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.9rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — brass. The enrollment button. */
.btn--primary {
  background: var(--brass);
  color: var(--boardroom);
}
.btn--primary:hover {
  background: var(--brass-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Ghost — hairline outline, adapts to the layer it sits on */
.btn--ghost { background: transparent; }
.theme-dark .btn--ghost, .theme-navy .btn--ghost, .site-header .btn--ghost {
  color: var(--paper); border-color: var(--line-on-dark);
}
.theme-dark .btn--ghost:hover, .theme-navy .btn--ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }
.theme-paper .btn--ghost { color: var(--navy); border-color: var(--line-on-paper); }
.theme-paper .btn--ghost:hover { border-color: var(--brass); color: var(--brass); }

/* Text link with a long-dash arrow */
.btn-text {
  display: inline-block;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  color: var(--brass);
  transition: color 0.15s ease;
}
.theme-dark .btn-text, .theme-navy .btn-text { color: var(--brass-light); }
.btn-text::after { content: "\2009\2192"; transition: transform 0.2s ease; display: inline-block; }
.btn-text:hover::after { transform: translateX(4px); }

/* Row of buttons under a hero or CTA */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }


/* --------------------------------------------------------------------------
   6. HEADER + NAVIGATION
   Fixed bar; transparent over the dark hero, solid once you scroll
   (JS toggles .is-scrolled on <body>).
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
body.is-scrolled .site-header,
body.nav-open .site-header {
  background: rgba(11, 25, 48, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-on-dark);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.site-header__logo { flex: none; display: block; }
.site-header__logo img { height: 40px; width: auto; }

/* Desktop nav links */
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.15s ease;
  padding: 0.35rem 0;
}
.site-nav a:not(.btn):hover { color: var(--paper); }
.site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
}
.site-nav .btn { padding: 0.65rem 1.3rem; font-size: 0.875rem; }

/* Compact enroll button that stays visible in the bar on phones */
.site-header__cta-mobile { display: none; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem 0.2rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--paper);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* --------------------------------------------------------------------------
   7. SECTIONS + REUSABLE BLOCKS
   -------------------------------------------------------------------------- */
.section { padding-block: var(--sect-pad); }
.section--hairline-top    { border-top: 1px solid var(--line-on-dark); }
.theme-paper.section--hairline-top { border-top-color: var(--line-on-paper); }

/* Centered section intro (eyebrow + heading + lead) */
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(4rem, 3rem + 7vw, 9rem));
  padding-bottom: clamp(4.5rem, 4rem + 5vw, 8rem);
  overflow: hidden;
}
/* Soft brass glow behind hero text — pure decoration */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 22% 18%, rgba(169, 137, 75, 0.16), transparent 65%),
    radial-gradient(45% 45% at 85% 80%, rgba(16, 36, 59, 0.9), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero .lead { max-width: 640px; }

/* "Learn. Train. Prove. Launch." — the journey line under the hero title */
.journey-line {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.4em 1.1rem;
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem);
  color: var(--brass-light);
}
.journey-line span { display: inline-block; }

/* Animated hairline waveform — evokes the live-voice call. Decorative only. */
.waveform { margin-top: clamp(3rem, 2rem + 4vw, 5rem); opacity: 0.85; }
.waveform svg { width: 100%; height: 90px; display: block; }
.waveform path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  opacity: 0.9;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-line 3.2s ease-out forwards;
}
.waveform path + path { stroke: var(--line-on-dark); animation-delay: 0.35s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.waveform figcaption {
  margin-top: 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
}

/* ---- FACT STRIP — a row of key facts with hairline dividers ---- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-block: 1px solid var(--line-on-dark);
}
.theme-paper .fact-strip { border-color: var(--line-on-paper); }
.fact-strip > div {
  padding: 1.6rem 1.4rem;
  border-left: 1px solid var(--line-on-dark);
}
.theme-paper .fact-strip > div { border-color: var(--line-on-paper); }
.fact-strip > div:first-child { border-left: 0; }
.fact-strip dt {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 0.45rem;
}
.theme-paper .fact-strip dt { color: var(--slate); }
.fact-strip dd {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: 1.25rem; line-height: 1.3;
}

/* ---- PILLARS — the five-pillar case, editorial rows with big numerals ---- */
.pillar {
  display: grid;
  grid-template-columns: minmax(70px, 130px) 1fr;
  gap: clamp(1.2rem, 3vw, 3.5rem);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  border-top: 1px solid var(--line-on-dark);
}
.theme-paper .pillar { border-top-color: var(--line-on-paper); }
.pillar:last-of-type { border-bottom: 1px solid var(--line-on-dark); }
.theme-paper .pillar:last-of-type { border-bottom-color: var(--line-on-paper); }
.pillar h3 { font-size: var(--fs-title); margin-bottom: 0.7rem; }
.pillar p { max-width: 62ch; }
.pillar .muted { margin-bottom: 0; }

/* ---- CARD GRID — six dimensions, journey steps, component cards ---- */
.card-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  border: 1px solid var(--line-on-dark);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
  background: rgba(245, 241, 231, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(216, 191, 138, 0.55); transform: translateY(-3px); }
.theme-paper .card {
  border-color: var(--line-on-paper);
  background: rgba(255, 255, 255, 0.45);
}
.theme-paper .card:hover { border-color: var(--brass); }
.card .numeral { font-size: 1.9rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---- SEVEN-BEAT SPINE — the call model, one connected line of beats ---- */
.beats { counter-reset: beat; display: grid; gap: 0; }
.beat {
  counter-increment: beat;
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.4rem 0 1.6rem;
}
/* vertical connecting line */
.beat::before {
  content: "";
  position: absolute; left: 21px; top: 0; bottom: 0;
  width: 1px; background: var(--line-on-paper);
}
.theme-dark .beat::before, .theme-navy .beat::before { background: var(--line-on-dark); }
.beat:first-child::before { top: 1.4rem; }
.beat:last-child::before { bottom: auto; height: 1.4rem; }
/* numbered node on the line */
.beat__num {
  position: relative; z-index: 1;
  width: 43px; height: 43px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  color: var(--brass);
}
.beat__num::after { content: counter(beat); }
.theme-dark .beat__num, .theme-navy .beat__num { background: var(--boardroom); color: var(--brass-light); border-color: var(--brass); }
.beat h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.beat p { max-width: 60ch; margin: 0; }

/* ---- COMPONENT BLOCKS — the seven program components, roomy rows ---- */
.component {
  display: grid;
  grid-template-columns: minmax(70px, 120px) 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding-block: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  border-top: 1px solid var(--line-on-paper);
}
.component:last-of-type { border-bottom: 1px solid var(--line-on-paper); }
.component h3 { font-size: var(--fs-title); margin-bottom: 0.7rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; }
.component p { max-width: 66ch; }

/* "Launching soon" pill — for parts of the system that aren't live yet */
.tag-soon {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 100px;
  padding: 0.28rem 0.7rem;
  position: relative; top: -2px;
}
.theme-dark .tag-soon, .theme-navy .tag-soon { color: var(--brass-light); border-color: var(--brass); }

/* ---- BLOCKQUOTE — big Spectral pull-lines from the lexicon ---- */
.pull {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.3;
  margin: 0;
}
.pull strong, .pull em { font-style: normal; font-weight: 500; color: var(--brass-light); }
.theme-paper .pull strong, .theme-paper .pull em { color: var(--brass); }

/* ---- FAQ — styled <details> so it works with zero JS ---- */
.faq details {
  border-top: 1px solid var(--line-on-paper);
  padding: 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line-on-paper); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans); font-weight: 400; font-size: 1.4rem;
  color: var(--brass); line-height: 1;
  transition: transform 0.2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.6rem; max-width: 68ch; }

/* ---- CTA BAND — the closing enrollment section on every page ---- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(55% 70% at 50% 110%, rgba(169, 137, 75, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-band > .container { position: relative; }
.cta-band .btn-row { justify-content: center; }
.cta-band .display { max-width: 16em; margin-inline: auto; }

/* ---- FORMS (Connect page) ---- */
.form-grid { display: grid; gap: 1.2rem; }
.form-grid label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.45rem;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-on-paper);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--brass);
}
.form-grid textarea { resize: vertical; min-height: 150px; }
.form-row-2 { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }

/* ---- SEAL — the Institute mark used on trust surfaces ---- */
.seal-block { display: flex; justify-content: center; }
.seal-block img { width: clamp(120px, 18vw, 170px); border-radius: 50%; }

/* Two-column split used on several pages: text beside a card/figure */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}


/* --------------------------------------------------------------------------
   8. FOOTER — Institute layer. Dark, formal, seal-anchored.
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--boardroom);
  color: var(--mist);
  border-top: 1px solid var(--line-on-dark);
  padding: clamp(3.5rem, 3rem + 3vw, 6rem) 0 2.5rem;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3.5rem;
}
.site-footer__brand img { height: 44px; width: auto; margin-bottom: 1.2rem; }
.site-footer__brand p { max-width: 42ch; }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--mist); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--paper); }
.site-footer__legal {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate);
}
.site-footer__legal p { margin: 0; }


/* --------------------------------------------------------------------------
   9. MOTION — scroll reveal. JS adds .is-visible when a .reveal element
   enters the viewport. Anyone with "reduce motion" set gets no animation.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger helpers — add to siblings for a cascading entrance */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .waveform path { animation: none; stroke-dashoffset: 0; }
  .btn, .card { transition: none; }
}


/* --------------------------------------------------------------------------
   10. RESPONSIVE — phone and tablet adjustments.
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  /* Mobile navigation: the link list becomes a full-width dropdown panel;
     a compact Enroll button stays visible in the bar itself. */
  .nav-toggle { display: block; }
  .site-header__cta-mobile {
    display: inline-block;
    margin-left: auto; margin-right: 1rem;
    padding: 0.55rem 1rem; font-size: 0.8rem;
  }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 25, 48, 0.98);
    border-bottom: 1px solid var(--line-on-dark);
    padding: 0.5rem var(--gutter) 1.5rem;
    /* hidden until body.nav-open */
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  body.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav a:not(.btn) {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(216, 191, 138, 0.12);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .site-nav .btn { margin-top: 1.2rem; }

  .pillar { grid-template-columns: 1fr; gap: 0.4rem; }
  .component { grid-template-columns: 1fr; gap: 0.4rem; }
  .component .numeral, .pillar .numeral { font-size: 2rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .site-header__logo img { height: 32px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .fact-strip > div { border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .theme-paper .fact-strip > div { border-top-color: var(--line-on-paper); }
  .fact-strip > div:first-child { border-top: 0; }
  .btn-row .btn { flex: 1 1 100%; }
}
