/* ==========================================================================
   NIERMAN LAW, LLC — "The Route Map to Residency"
   Complete stylesheet: tokens, base, components, pages, motion, responsive
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --slate: #3C4858;
  --slate-2: #4A5A73;
  --blue: #1183D1;
  --blue-text: #0B6BA8;
  --navy: #232E3E;
  --gold: #D98E2B;
  --gold-soft: #E7B064;
  --paper: #F7F5F0;
  --paper-2: #EFEAE0;
  --paper-3: #E7E0D2;
  --cream: #F4EFE6;
  --ink: #151515;
  --muted: #5C6675;
  --line: rgba(60, 72, 88, 0.15);
  --line-strong: rgba(60, 72, 88, 0.28);
  --line-cream: rgba(244, 239, 230, 0.18);
  --font-head: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 4px;
  --header-h: 72px;
  --maxw: 1200px;
  --shadow: 0 22px 46px -28px rgba(35, 46, 62, 0.42);
  --shadow-soft: 0 10px 26px -18px rgba(35, 46, 62, 0.35);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%233C4858' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M-40 60c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 110c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 162c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 216c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 270c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 326c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 382c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 438c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3C/g%3E%3C/svg%3E");
  --contour-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%23F4EFE6' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M-40 60c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 110c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 162c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 216c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 270c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 326c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 382c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3Cpath d='M-40 438c80-55 160-55 240 0s160 55 240 0 120-45 160-10'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { color: var(--slate); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--slate);
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { max-width: 68ch; }
strong { font-weight: 600; }
::selection { background: rgba(217, 142, 43, 0.35); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 500;
  background: var(--navy); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--cream); }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, 1360px); margin-inline: auto; }
.section { padding-block: clamp(3.6rem, 7.5vw, 6.6rem); position: relative; }
.section-sm { padding-block: clamp(2.6rem, 5vw, 4.4rem); }
.paper-2 { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head h2 { margin-top: 0.7rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.06rem; }
.contoured { background-image: var(--contour); background-size: 480px 480px; }
.divider-route {
  height: 1px; border: 0; max-width: var(--maxw); margin-inline: auto;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 12px 1px; opacity: 0.7;
}

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-text);
  line-height: 1.4;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: currentColor; flex: none;
}
.kicker.gold { color: var(--gold); }
.kicker.light { color: var(--cream); }
.kicker.light::before { background: var(--gold); }
.lead { font-size: 1.14rem; line-height: 1.7; color: var(--slate-2); }
.mono { font-family: var(--font-mono); }
.mono-label {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.link-route {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--blue-text); position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.2s ease;
  padding-bottom: 2px;
}
.link-route::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-route:hover { color: var(--slate); background-size: 100% 1px; }
.link-route:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.5rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em; line-height: 1.2; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.btn-primary { background: var(--slate); color: var(--cream); }
.btn-primary:hover { background: var(--navy); color: var(--cream); border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: #fff; color: var(--navy); border-color: var(--gold); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #241a0b; }
.btn-gold:hover { background: var(--gold-soft); color: #241a0b; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--slate); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(244, 239, 230, 0.5); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--cream); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0.6rem 1.05rem; font-size: 0.86rem; }
.btn-lg { min-height: 54px; padding: 1rem 1.9rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(247, 245, 240, 0.97);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.site-header.is-scrolled {
  background: var(--navy);
  border-bottom-color: rgba(217, 142, 43, 0.45);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.6);
}
.header-inner {
  width: min(100% - 2.5rem, 1360px); margin-inline: auto;
  min-height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.4rem;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-plate {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--navy); border-radius: var(--radius);
  padding: 0.34rem 0.75rem 0.34rem 0.4rem;
  border: 1px solid rgba(244, 239, 230, 0.14);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.site-header.is-scrolled .brand-plate { background: transparent; border-color: transparent; padding-left: 0.35rem; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--cream); letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 0.5rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-soft);
  margin-top: 0.28rem;
}
.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav a {
  display: inline-flex; align-items: baseline; gap: 0.32rem;
  font-size: 0.9rem; font-weight: 600; color: var(--slate);
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.primary-nav a:hover { color: var(--blue-text); border-bottom-color: var(--gold); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-num { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500; color: var(--blue); letter-spacing: 0.04em; }
.site-header.is-scrolled .primary-nav a { color: var(--cream); }
.site-header.is-scrolled .primary-nav a:hover { color: var(--gold-soft); }
.site-header.is-scrolled .nav-num { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  display: none; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--slate); padding: 0.55rem 0.85rem; border: 1px solid rgba(217, 142, 43, 0.55);
  border-radius: var(--radius); transition: border-color 0.2s ease, color 0.2s ease;
}
.header-phone:hover { border-color: var(--gold); color: var(--blue-text); }
.site-header.is-scrolled .header-phone { color: var(--cream); border-color: rgba(244, 239, 230, 0.35); }
.site-header.is-scrolled .header-phone:hover { border-color: var(--gold); color: var(--gold-soft); }
.site-header.is-scrolled .btn-primary { background: var(--gold); color: #241a0b; border-color: var(--gold); }
.site-header.is-scrolled .btn-primary:hover { background: var(--gold-soft); color: #241a0b; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: transparent; flex: none;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--slate); transition: background-color 0.16s ease; }
.menu-toggle span:nth-child(2) { width: 14px; margin-left: 8px; }
.site-header.is-scrolled .menu-toggle { border-color: rgba(244, 239, 230, 0.4); }
.site-header.is-scrolled .menu-toggle span { background: var(--cream); }

/* ---------- Mobile overlay menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--navy); color: var(--cream);
  background-image: var(--contour-light); background-size: 480px 480px;
  transform: translateX(102%); visibility: hidden;
  transition: transform 0.42s var(--ease), visibility 0s linear 0.42s;
  display: flex; flex-direction: column; padding: 1rem 1.25rem 2rem;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; transition: transform 0.42s var(--ease), visibility 0s; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-cream); }
.mobile-menu-brand { font-family: var(--font-head); font-size: 1rem; color: var(--cream); }
.mobile-menu-brand span { display: block; font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em; color: var(--gold-soft); text-transform: uppercase; margin-top: 0.25rem; }
.menu-close {
  width: 44px; height: 44px; border: 1px solid rgba(244, 239, 230, 0.4);
  border-radius: var(--radius); display: grid; place-items: center; color: var(--cream);
}
.menu-close svg { width: 20px; height: 20px; }
.mobile-nav { margin-top: 2.2rem; position: relative; }
.mobile-nav::before {
  content: ""; position: absolute; left: 21px; top: 18px; bottom: 40px;
  border-left: 2px dashed rgba(217, 142, 43, 0.5);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.95rem 0.4rem 0.95rem 0;
  color: var(--cream); font-family: var(--font-head); font-size: 1.3rem;
  opacity: 0; transform: translateX(14px);
}
.mobile-menu.is-open .mobile-nav a { animation: menuIn 0.4s var(--ease) forwards; }
.mobile-menu.is-open .mobile-nav li:nth-child(1) a { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-nav li:nth-child(2) a { animation-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav li:nth-child(3) a { animation-delay: 0.22s; }
.mobile-menu.is-open .mobile-nav li:nth-child(4) a { animation-delay: 0.28s; }
.mobile-menu.is-open .mobile-nav li:nth-child(5) a { animation-delay: 0.34s; }
.mobile-menu.is-open .mobile-nav li:nth-child(6) a { animation-delay: 0.4s; }
.mobile-nav .waypoint-num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold);
  width: 44px; height: 44px; border: 1px solid rgba(217, 142, 43, 0.55);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); flex: none; margin-top: -0.55rem;
}
.mobile-nav a:hover { color: var(--gold-soft); }
.mobile-menu-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.9rem; }
.mobile-menu-foot .btn { width: 100%; }
.mobile-contact-line { font-family: var(--font-mono); font-size: 0.82rem; color: var(--cream); display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-cream); padding-top: 1rem; flex-wrap: wrap; }
.mobile-contact-line a { color: var(--gold-soft); }

/* ---------- Hero: home ---------- */
.hero-home {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; isolation: isolate; color: var(--cream);
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: -20px; z-index: -3;
  background-image: url("images/hero_home.webp");
  background-size: cover; background-position: center 45%;
  will-change: transform;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(23, 31, 43, 0.94) 0%, rgba(28, 38, 52, 0.8) 38%, rgba(35, 46, 62, 0.32) 66%, rgba(35, 46, 62, 0.12) 100%),
              linear-gradient(0deg, rgba(23, 31, 43, 0.72) 0%, transparent 42%, rgba(23, 31, 43, 0.15) 100%);
}
.hero-machine { position: absolute; inset: 0; z-index: -1; opacity: 0.6; background-image: var(--contour-light); background-size: 480px 480px; }
.hero-inner { padding-top: clamp(4rem, 12vh, 8rem); padding-bottom: clamp(7rem, 15vh, 10rem); }
.hero-copy { max-width: 690px; }
.hero-copy .kicker { color: var(--gold-soft); }
.hero-copy .kicker::before { background: var(--gold); }
.hero-copy h1 {
  color: var(--cream); margin: 1.2rem 0 1.35rem;
  font-size: clamp(2.45rem, 6.4vw, 4.7rem); line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-copy h1 em { font-style: normal; color: var(--gold-soft); }
.split .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split .line > span { display: block; transform: translateY(112%); animation: lineRise 1s var(--ease) forwards; }
.split .line:nth-child(2) > span { animation-delay: 0.12s; }
.split .line:nth-child(3) > span { animation-delay: 0.24s; }
.split .line:nth-child(4) > span { animation-delay: 0.36s; }
.hero-sub { max-width: 48ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.68; color: rgba(244, 239, 230, 0.9); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-route { position: absolute; left: 0; right: 0; bottom: 54px; height: 34%; max-height: 260px; z-index: -1; opacity: 0.9; pointer-events: none; clip-path: inset(0 100% 0 0); animation: routeSweep 1.8s 0.4s var(--ease) forwards; }
.hero-route svg { width: 100%; height: 100%; overflow: visible; }
.hero-route .route-path { stroke: var(--gold-soft); stroke-width: 2; fill: none; stroke-dasharray: 7 8; opacity: 0.85; }
.hero-route .route-under { stroke: rgba(244, 239, 230, 0.3); stroke-width: 1; fill: none; }
.hero-route .wp { opacity: 0; animation: wpPop 0.55s var(--ease) forwards; }
.hero-route .wp circle { fill: var(--paper); stroke: var(--gold); stroke-width: 2.5; }
.hero-route .wp.terminal circle { fill: var(--gold); stroke: var(--paper); }
.hero-route .wp text { fill: var(--cream); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; }
.hero-route .wp:nth-of-type(1) { animation-delay: 0.75s; }
.hero-route .wp:nth-of-type(2) { animation-delay: 1.15s; }
.hero-route .wp:nth-of-type(3) { animation-delay: 1.55s; }
.hero-route .wp:nth-of-type(4) { animation-delay: 1.95s; }
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem max(1.25rem, calc((100vw - var(--maxw)) / 2));
  border-top: 1px solid rgba(244, 239, 230, 0.2);
  background: rgba(23, 31, 43, 0.55); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(244, 239, 230, 0.85);
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(217, 142, 43, 0.25); flex: none; }
.ticker-label { margin-left: auto; color: rgba(244, 239, 230, 0.6); }

/* ---------- Page heroes ---------- */
.page-hero {
  position: relative; padding-block: clamp(3.5rem, 9vw, 6.4rem);
  background: var(--paper); overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--contour); background-size: 480px 480px; opacity: 0.9;
}
.page-hero .kicker { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); max-width: 15ch; }
.page-hero .lead { margin-top: 1.2rem; max-width: 56ch; }
.page-hero.has-image { color: var(--cream); min-height: 62vh; display: flex; align-items: center; background: var(--navy); }
.page-hero.has-image::before { background-image: var(--contour-light); }
.page-hero.has-image h1, .page-hero.has-image .kicker { color: var(--cream); }
.page-hero.has-image .lead { color: rgba(244, 239, 230, 0.9); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero.has-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(23, 31, 43, 0.93), rgba(35, 46, 62, 0.62) 55%, rgba(35, 46, 62, 0.25));
}
.page-hero .hero-route-mini { position: absolute; right: -4%; bottom: -10%; width: 46%; opacity: 0.5; z-index: -1; pointer-events: none; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 4.5vw, 3.4rem); position: relative; overflow: hidden; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; position: relative; }
.trust-grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 10px 1px; display: none;
}
.stat { position: relative; }
.stat-num { font-family: var(--font-mono); font-size: clamp(2.1rem, 4.6vw, 3rem); font-weight: 500; line-height: 1; color: var(--slate); letter-spacing: -0.03em; }
.stat-num .plus { color: var(--gold); }
.stat-name { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.65rem; }
.stat-elev { display: block; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--blue-text); margin-top: 0.2rem; }
.stat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--gold); position: absolute; top: 14px; left: 0; display: none; }
.credential { border-top: 1px solid var(--line); padding-top: 1.4rem; grid-column: 1 / -1; }
.credential .compass-ico { width: 40px; height: 40px; color: var(--blue); margin-bottom: 0.8rem; }
.credential h3 { font-size: 1.15rem; }
.credential p { font-size: 0.94rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Value pillars ---------- */
.pillars { display: grid; gap: 1.4rem; position: relative; }
.pillars::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 20%; bottom: 10%;
  border-left: 2px dashed rgba(17, 131, 209, 0.3); display: none;
}
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem); position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.pillar:hover, .pillar:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.pillar-index { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-text); }
.pillar-ico { width: 42px; height: 42px; color: var(--slate); }
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }
.pillar::after { content: ""; position: absolute; left: 2rem; right: 2rem; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity 0.3s ease; }
.pillar:hover::after { opacity: 1; }

/* ---------- Routes overview map ---------- */
.routes-layout { display: grid; gap: 2rem; }
.route-map-wrap { position: relative; }
.route-map { width: 100%; height: auto; display: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; }
.route-map .rm-route { transition: opacity 0.3s ease; }
.route-map .rm-path { fill: none; stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; transition: stroke-width 0.25s ease; }
.route-map .rm-route[data-route="1"] .rm-path { stroke: var(--blue); }
.route-map .rm-route[data-route="2"] .rm-path { stroke: var(--gold); }
.route-map .rm-route[data-route="3"] .rm-path { stroke: var(--gold); }
.route-map .rm-route[data-route="4"] .rm-path { stroke: var(--blue); }
.route-map .rm-route[data-route="5"] .rm-path { stroke: var(--blue); }
.route-map .rm-route[data-route="6"] .rm-path { stroke: var(--slate-2); }
.route-map .rm-station { fill: var(--paper); stroke-width: 2; }
.route-map .rm-route[data-route="1"] .rm-station { stroke: var(--blue); }
.route-map .rm-route[data-route="2"] .rm-station, .route-map .rm-route[data-route="3"] .rm-station { stroke: var(--gold); }
.route-map .rm-route[data-route="4"] .rm-station, .route-map .rm-route[data-route="5"] .rm-station { stroke: var(--blue); }
.route-map .rm-route[data-route="6"] .rm-station { stroke: var(--slate-2); }
.route-map .rm-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; fill: var(--slate); }
.route-map .rm-label.sub { fill: var(--muted); font-size: 9px; }
.route-map .rm-terminal-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.5; }
.route-map .rm-terminal { fill: var(--gold); }
.route-map .rm-terminal-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--slate); letter-spacing: 0.08em; }
.route-map.has-active .rm-route:not(.is-active) { opacity: 0.28; }
.route-map .rm-route.is-active .rm-path { stroke-width: 3.2; }
.route-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.route-item { border-bottom: 1px solid var(--line); }
.route-btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 0.35rem 0.9rem;
  align-items: baseline; text-align: left; padding: 1rem 0.25rem; color: var(--slate);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.route-btn:hover { background: rgba(239, 234, 224, 0.6); }
.route-code { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--blue-text); }
.route-name { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; }
.route-chips { grid-column: 2; font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.04em; color: var(--muted); }
.route-plus { grid-row: 1 / 3; grid-column: 3; align-self: center; width: 20px; height: 20px; position: relative; }
.route-plus::before, .route-plus::after { content: ""; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.route-plus::before { width: 12px; height: 2px; }
.route-plus::after { width: 2px; height: 12px; }
.route-item.is-active .route-plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.route-panel { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.route-panel-inner { padding: 0 0.25rem 1.4rem; }
.route-panel p { font-size: 0.94rem; color: var(--muted); max-width: 46ch; }
.route-panel .link-route { margin-top: 0.8rem; font-size: 0.9rem; }

/* ---------- Spotlight (night) ---------- */
.night { background: var(--navy); color: var(--cream); position: relative; isolation: isolate; overflow: hidden; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--contour-light); background-size: 480px 480px; }
.night h1, .night h2, .night h3, .night h4 { color: var(--cream); }
.night p { color: rgba(244, 239, 230, 0.86); }
.dawn-edge { position: relative; }
.dawn-edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; z-index: 2;
  background: linear-gradient(90deg, var(--navy) 0%, var(--slate) 30%, var(--gold) 68%, rgba(247, 245, 240, 0.9) 100%);
  opacity: 0.85;
}
.spotlight-grid { display: grid; gap: 2.6rem; align-items: center; }
.spotlight-copy .kicker { color: var(--gold); }
.spotlight-copy h2 { margin: 1rem 0 1.3rem; font-size: clamp(1.9rem, 4vw, 3rem); }
.spotlight-copy p + p { margin-top: 1rem; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; margin: 1.7rem 0 2rem; }
.proof-list li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); display: flex; align-items: center; gap: 0.6rem; }
.proof-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.doc-frame { position: relative; border: 1px solid rgba(244, 239, 230, 0.2); background: rgba(244, 239, 230, 0.04); border-radius: var(--radius); padding: 0.55rem; }
.doc-frame img { width: 100%; border-radius: 2px; }
.doc-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0.4rem 0.2rem; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.night .doc-caption { color: rgba(244, 239, 230, 0.65); }
.spotlight-media { position: relative; }
.spotlight-media .stamp { position: absolute; top: -22px; right: -16px; z-index: 2; }

/* ---------- Stamp badge ---------- */
.stamp {
  --stamp-color: var(--gold);
  width: 112px; height: 112px; border-radius: 50%;
  border: 2px solid var(--stamp-color); color: var(--stamp-color);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.14em; line-height: 1.45; text-transform: uppercase;
  transform: rotate(-6deg); background: rgba(217, 142, 43, 0.08);
  position: relative; padding: 0.5rem;
}
.stamp::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--stamp-color); border-radius: 50%; opacity: 0.7; }
.stamp::after { content: ""; position: absolute; inset: 12px; border: 1px dashed var(--stamp-color); border-radius: 50%; opacity: 0.4; }
.stamp span { position: relative; z-index: 1; display: block; }
.stamp .stamp-small { font-size: 0.48rem; letter-spacing: 0.18em; opacity: 0.85; }
.stamp.animate-in { animation: stampSettle 0.6s var(--ease) both; }
.stamp-inline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.54rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(217, 142, 43, 0.6); border-radius: 2px;
  padding: 0.24rem 0.45rem; transform: rotate(-1.5deg); white-space: nowrap;
}

/* ---------- Journey timeline ---------- */
.timeline-h { position: relative; display: grid; gap: 1.6rem; margin-top: 1rem; }
.timeline-h::before {
  content: ""; position: absolute; left: 17px; top: 10px; bottom: 30px;
  border-left: 2px dashed rgba(17, 131, 209, 0.45);
}
.waypoint { position: relative; padding-left: 3.3rem; }
.wp-dot {
  position: absolute; left: 6px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.52rem; font-weight: 500; color: var(--slate);
  z-index: 1;
}
.waypoint:last-child .wp-dot { box-shadow: 0 0 0 0 rgba(217, 142, 43, 0.5); animation: terminalPulse 2.6s infinite; }
.wp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease; }
.wp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.wp-step { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); }
.wp-card h3 { margin: 0.45rem 0 0.5rem; font-size: 1.15rem; }
.wp-card p { font-size: 0.94rem; color: var(--muted); }
.wp-card .link-route { font-size: 0.84rem; margin-top: 0.7rem; }

/* ---------- About teaser split ---------- */
.split-media-text { display: grid; gap: 2.6rem; align-items: center; }
.photo-frame { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.55rem; background: var(--paper); }
.photo-frame::before { content: ""; position: absolute; top: -7px; right: -7px; width: 34px; height: 34px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.photo-frame img { width: 100%; border-radius: 2px; }
.photo-frame.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.photo-frame.wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.attr-ledger { margin: 1.8rem 0; }
.attr-ledger .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.62rem 0; border-bottom: 1px dashed var(--line-strong); font-size: 0.9rem; }
.attr-ledger dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.attr-ledger dd { text-align: right; color: var(--slate); font-weight: 600; }

/* ---------- Incident rows ---------- */
.folder-block { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.folder-tab { display: inline-block; background: var(--paper-3); border-bottom: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); padding: 0.45rem 1rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.incident-row { padding: 1.4rem clamp(1.2rem, 3vw, 2rem); border-bottom: 1px dashed var(--line-strong); display: grid; gap: 0.55rem; }
.incident-row:last-child { border-bottom: 0; }
.incident-file { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); }
.incident-row h3 { font-size: 1.12rem; }
.incident-row p { font-size: 0.94rem; color: var(--muted); max-width: 74ch; }
.incident-response { display: flex; gap: 0.55rem; align-items: baseline; font-size: 0.92rem; color: var(--slate); }
.incident-response .arrow { color: var(--gold); font-weight: 700; transition: transform 0.25s var(--ease); display: inline-block; }
.incident-row:hover .incident-response .arrow { transform: translateX(8px); }
.incident-response b { font-weight: 600; }
.folder-note { padding: 1.1rem clamp(1.2rem, 3vw, 2rem); background: var(--paper-2); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--slate); }

/* ---------- Commitments ---------- */
.commitments { display: grid; gap: 2rem; }
.seal { width: 82px; height: 82px; color: var(--gold); flex: none; }
.commitment-list { border-top: 1px solid var(--line); }
.commitment-row { display: grid; gap: 0.25rem; padding: 1.25rem 0; border-bottom: 1px dashed var(--line-strong); }
.commitment-num { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; color: var(--blue-text); }
.commitment-row dt { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--slate); }
.commitment-row dd { font-size: 0.95rem; color: var(--muted); max-width: 72ch; }

/* ---------- Field notes ---------- */
.notes-band { background: var(--paper-2); }
.notes-grid { display: grid; gap: 1.5rem; align-items: start; }
.field-note {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: relative; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.field-note:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow); border-color: var(--line-strong); }
.note-tab {
  position: absolute; top: -10px; left: 1.4rem; background: var(--gold); color: #241a0b;
  font-family: var(--font-mono); font-size: 0.52rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.22rem 0.55rem; border-radius: 2px;
}
.note-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); }
.field-note h3 { margin: 0.7rem 0 0.65rem; font-size: 1.18rem; }
.field-note p { font-size: 0.93rem; color: var(--muted); }
.note-meta { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field-note .link-route { margin-top: 1rem; font-size: 0.88rem; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
  padding: 1.15rem 0.2rem; color: var(--slate); font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; line-height: 1.4;
}
.acc-trigger:hover { color: var(--blue-text); }
.acc-num { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--blue-text); flex: none; }
.acc-plus { margin-left: auto; width: 22px; height: 22px; position: relative; flex: none; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.acc-plus::before { width: 13px; height: 2px; }
.acc-plus::after { width: 2px; height: 13px; }
.acc-trigger[aria-expanded="true"] .acc-plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 0.32s var(--ease); }
.acc-inner { padding: 0 0.2rem 1.35rem 2.6rem; }
.acc-inner p { font-size: 0.95rem; color: var(--muted); }
.acc-inner p + p { margin-top: 0.7rem; }

/* ---------- CTA bands ---------- */
.cta-band {
  position: relative; isolation: isolate; color: var(--cream);
  padding-block: clamp(4.5rem, 10vw, 8rem); text-align: center; overflow: hidden;
  background: var(--navy);
}
.cta-bg { position: absolute; inset: 0; z-index: -2; background: url("images/cta_horizon.webp") center / cover no-repeat; background-color: var(--navy); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 31, 43, 0.62) 0%, rgba(23, 31, 43, 0.45) 45%, rgba(23, 31, 43, 0.72) 100%);
}
.cta-band h2 { color: var(--cream); font-size: clamp(2rem, 4.6vw, 3.5rem); margin: 0.9rem auto 0.9rem; max-width: 22ch; }
.cta-band p { color: rgba(244, 239, 230, 0.9); margin-inline: auto; max-width: 54ch; }
.cta-band .btn-row { justify-content: center; margin-top: 1.9rem; }
.cta-email { display: inline-block; margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--cream); border-bottom: 1px solid rgba(244, 239, 230, 0.4); padding-bottom: 2px; }
.cta-email:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.cta-band .kicker { color: var(--gold-soft); }
.cta-band .kicker::before { background: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(244, 239, 230, 0.78); position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--contour-light); background-size: 480px 480px; opacity: 0.55; }
.footer-main { padding-block: clamp(3rem, 6vw, 4.4rem); display: grid; gap: 2.4rem; }
.footer-brand .brand-plate { background: transparent; border-color: transparent; padding-left: 0; }
.footer-tagline { margin-top: 1rem; font-size: 0.94rem; color: rgba(244, 239, 230, 0.75); max-width: 30ch; }
.footer-coords { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(244, 239, 230, 0.6); margin-top: 1.1rem; text-transform: uppercase; }
.footer-aila { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--gold-soft); margin-top: 0.6rem; text-transform: uppercase; }
.social-row { display: flex; gap: 0.35rem; margin-top: 1.4rem; flex-wrap: wrap; }
.social-row a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(244, 239, 230, 0.18); border-radius: var(--radius); color: var(--cream); transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.social-row a:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }
.compass-btn { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; color: rgba(244, 239, 230, 0.6); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; min-height: 44px; padding: 0; }
.compass-btn svg { width: 30px; height: 30px; transition: transform 0.8s var(--ease); }
.compass-btn.is-spun svg { transform: rotate(360deg); }
.compass-reveal { display: none; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--gold-soft); margin-top: 0.4rem; max-width: 28ch; line-height: 1.6; }
.compass-reveal.is-on { display: block; }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(244, 239, 230, 0.82); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.7; color: rgba(244, 239, 230, 0.82); }
.footer-col address a { font-family: var(--font-mono); font-size: 0.8rem; }
.footer-directions { display: inline-flex; gap: 0.35rem; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); border-bottom: 1px solid rgba(217, 142, 43, 0.4); }
.footer-bottom { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(217, 142, 43, 0.85), transparent) 1; padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244, 239, 230, 0.55); }
.footer-bottom p { max-width: none; }

/* ---------- Progress rail ---------- */
.rail { display: none; position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 80; }
.rail-track { width: 2px; height: 190px; background: rgba(60, 72, 88, 0.18); position: relative; margin-inline: auto; }
.rail-fill { position: absolute; top: 0; left: 0; width: 100%; height: var(--rail-fill, 0%); background: linear-gradient(180deg, var(--blue), var(--gold)); transition: height 0.15s linear; }
.rail-dots { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 190px; width: 12px; }
.rail-dot { position: absolute; left: 50%; transform: translate(-50%, -50%); width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--slate-2); transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rail-dot.is-active { background: var(--gold); border-color: var(--gold); transform: translate(-50%, -50%) scale(1.5); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--navy); border-top: 1px solid rgba(217, 142, 43, 0.4);
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  display: flex; gap: 0.6rem; transform: translateY(110%);
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s; box-shadow: 0 -8px 30px -18px rgba(0, 0, 0, 0.7);
  visibility: hidden;
}
.mobile-cta.is-shown { transform: translateY(0); visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }
.mobile-cta .btn { flex: 1; min-height: 46px; font-size: 0.86rem; padding: 0.55rem 0.7rem; }
.mobile-cta .call-btn { flex: 0 0 52px; display: grid; place-items: center; border: 1px solid rgba(244, 239, 230, 0.4); border-radius: var(--radius); color: var(--cream); }
.mobile-cta .call-btn svg { width: 20px; height: 20px; }

/* ---------- Page-specific: About ---------- */
.story-timeline { position: relative; margin-top: 1.5rem; }
.story-timeline::before { content: ""; position: absolute; left: 20px; top: 12px; bottom: 12px; border-left: 2px dashed rgba(17, 131, 209, 0.4); }
.story-station { position: relative; padding-left: 3.5rem; padding-bottom: 2rem; }
.story-station:last-child { padding-bottom: 0; }
.story-station .wp-dot { left: 9px; top: 2px; }
.story-station h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.story-station p { font-size: 0.95rem; color: var(--muted); }
.story-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); }
.spec-columns { display: grid; gap: 2rem; }
.spec-block { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; background: var(--paper-2); padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line-strong); }
.spec-head h3 { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.spec-head span { font-family: var(--font-mono); font-size: 0.56rem; color: var(--muted); }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.68rem 1.1rem; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--muted); }
.spec-row dd { font-weight: 600; text-align: right; }
.principles { max-width: 720px; margin-inline: auto; }
.principle { padding: 1.8rem 0; border-bottom: 1px solid var(--line-cream); display: grid; gap: 0.6rem; }
.principle:last-child { border-bottom: 0; }
.principle-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--gold); }
.principle h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.principle p { color: rgba(244, 239, 230, 0.82); max-width: 58ch; }
.serve-grid { display: grid; gap: 1.2rem; }
.serve-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease); }
.serve-panel:hover { border-color: rgba(17, 131, 209, 0.55); box-shadow: 0 0 0 1px rgba(17, 131, 209, 0.18), var(--shadow-soft); transform: translateY(-3px); }
.serve-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); }
.serve-panel h3 { margin: 0.55rem 0 0.5rem; font-size: 1.15rem; }
.serve-panel p { font-size: 0.93rem; color: var(--muted); }
.quote-feature { position: relative; isolation: isolate; background: var(--navy); color: var(--cream); overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem); }
.quote-feature .quote-bg { position: absolute; inset: 0; z-index: -2; background: url("images/cincinnati_dawn.webp") center / cover; opacity: 0.5; }
.quote-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 31, 43, 0.75), rgba(23, 31, 43, 0.88)); }
.pull-quote { max-width: 820px; margin-inline: auto; text-align: center; }
.pull-quote blockquote p { font-family: var(--font-head); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.35; color: var(--cream); font-weight: 700; }
.pull-quote blockquote p::before { content: "“"; color: var(--gold); }
.pull-quote blockquote p::after { content: "”"; color: var(--gold); }
.pull-quote cite { display: block; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.66rem; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.quote-support { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-cream); max-width: 620px; margin-inline: auto; text-align: center; }
.quote-support p { color: rgba(244, 239, 230, 0.8); font-size: 0.95rem; }
.personal-note {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: clamp(1.6rem, 4vw, 2.8rem); max-width: 760px; margin-inline: auto;
  transform: rotate(-0.5deg); box-shadow: var(--shadow-soft); position: relative;
}
.personal-note::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(217, 142, 43, 0.22); }
.personal-note h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.personal-note p { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.8; color: var(--slate); }
.personal-note .signature { margin-top: 1.3rem; font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--slate); }

/* ---------- Page-specific: Services ---------- */
.mini-map { margin-top: 1rem; width: 100%; max-width: 430px; height: auto; opacity: 0.9; }
.mini-map .mm-path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 6; }
.mini-map .mm-path.gold { stroke: var(--gold); }
.mini-map .mm-dot { fill: var(--paper); stroke: var(--gold); stroke-width: 2; }
.mini-map .mm-terminal { fill: var(--gold); }
.routes-index { border-top: 1px solid var(--line-strong); }
.index-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.35rem 1rem; align-items: baseline; padding: 1.05rem 0.2rem; border-bottom: 1px dashed var(--line-strong); color: var(--slate); transition: background-color 0.2s ease, padding-left 0.2s ease; }
.index-row:hover { background: var(--paper-2); padding-left: 0.6rem; }
.index-code { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--blue-text); }
.index-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.index-chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chip { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.04em; border: 1px solid var(--line-strong); padding: 0.12rem 0.4rem; border-radius: 2px; color: var(--muted); }
.index-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--gold); font-size: 1.1rem; transition: transform 0.25s var(--ease); }
.index-row:hover .index-arrow { transform: translateX(5px); }
.eb-ladder { border-top: 1px solid var(--line-strong); }
.eb-row { display: grid; gap: 1.2rem; padding: 1.6rem 0; border-bottom: 1px dashed var(--line-strong); align-items: center; }
.eb-code { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; color: var(--blue-text); }
.eb-main h3 { font-size: 1.18rem; margin-bottom: 0.35rem; }
.eb-main p { font-size: 0.92rem; color: var(--muted); max-width: 56ch; }
.eb-stamp { margin-top: 0.7rem; }
.eb-meter { display: grid; gap: 0.35rem; }
.meter-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.meter-track { height: 6px; background: rgba(60, 72, 88, 0.12); border-radius: 3px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--slate-2), var(--blue)); border-radius: 3px; transition: width 1.2s var(--ease); }
.meter-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.is-visible .meter-fill { width: var(--fill, 40%); }
.eb-note { font-family: var(--font-mono); font-size: 0.58rem; color: var(--muted); }
.self-cards { display: grid; gap: 1.4rem; margin-bottom: 2.4rem; }
.self-card { background: rgba(244, 239, 230, 0.06); border: 1px solid rgba(244, 239, 230, 0.2); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.self-card:hover { transform: rotate(-0.6deg) translateY(-3px); border-color: var(--gold); }
.self-card .mono-label { color: var(--gold-soft); }
.self-card h3 { margin: 0.5rem 0 0.6rem; }
.self-card p { font-size: 0.94rem; }
.self-card .self-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.self-meta span { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(244, 239, 230, 0.28); padding: 0.18rem 0.45rem; color: var(--cream); }
.check-list { display: grid; gap: 0.6rem; margin-top: 1rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.92rem; color: rgba(244, 239, 230, 0.86); }
.check-list li::before { content: "✓"; color: var(--gold); font-weight: 700; flex: none; }
.scroll-strip { display: flex; gap: 1rem; overflow-x: auto; padding: 0.4rem 0.2rem 1.2rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.scroll-strip .route-card { flex: 0 0 300px; scroll-snap-align: start; }
.route-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.route-card .rc-code { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; color: var(--blue-text); }
.route-card h3 { margin: 0.55rem 0 0.55rem; font-size: 1.12rem; }
.route-card p { font-size: 0.9rem; color: var(--muted); }
.route-card .rc-note { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--slate); border-top: 1px dashed var(--line); }
.route-card .rc-note a { color: var(--blue-text); }
.strip-hint { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.healthcare-split { display: grid; gap: 2.2rem; align-items: center; }
.healthcare-points { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.healthcare-points li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.92rem; color: var(--muted); }
.healthcare-points li b { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--blue-text); white-space: nowrap; }
.employer-grid { display: grid; gap: 1.4rem; }
.employer-col { padding: 1.5rem; border-top: 2px solid var(--slate); background: var(--paper); }
.employer-col .mono-label { color: var(--blue-text); }
.employer-col h3 { margin: 0.5rem 0 0.6rem; font-size: 1.12rem; }
.employer-col p { font-size: 0.92rem; color: var(--muted); }
.ledger-acc { border-top: 1px solid var(--line-strong); }
.mini-steps { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.mini-step { display: flex; gap: 1rem; align-items: flex-start; }
.mini-step-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; color: var(--slate); flex: none; background: var(--paper); }
.mini-step h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.mini-step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Page-specific: Process ---------- */
.process-pin { position: relative; background: var(--paper); }
.pin-wrap { position: relative; height: 300vh; }
.pin-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.pin-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; width: 100%; }
.pin-map { position: relative; height: 78vh; max-height: 640px; }
.pin-map svg { width: 100%; height: 100%; overflow: visible; }
.pin-route-base { fill: none; stroke: rgba(60, 72, 88, 0.16); stroke-width: 2; }
.pin-route-draw { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pin-map .map-dot { fill: var(--paper); stroke: var(--slate-2); stroke-width: 2; transition: fill 0.3s ease, stroke 0.3s ease, r 0.3s ease; }
.pin-map .map-dot.is-active { fill: var(--gold); stroke: var(--gold); }
.pin-map .map-terminal { fill: var(--paper); stroke: var(--gold); stroke-width: 3; }
.pin-map .map-terminal.is-complete { fill: var(--gold); }
.pin-map .map-mono { font-family: var(--font-mono); font-size: 8px; fill: var(--muted); letter-spacing: 0.08em; }
.pin-map .arrival-stamp { opacity: 0; transform: rotate(-12deg) scale(1.3); transform-origin: center; transition: opacity 0.4s ease, transform 0.4s var(--ease); }
.pin-map .arrival-stamp.is-shown { opacity: 1; transform: rotate(-6deg) scale(1); }
.station-list { display: flex; flex-direction: column; gap: 0.85rem; max-width: 560px; }
.station { border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: var(--radius); background: var(--paper); padding: 0.95rem 1.15rem; opacity: 0.42; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease; }
.station.is-active { opacity: 1; transform: translateY(0); border-left-color: var(--gold); box-shadow: var(--shadow-soft); }
.station .station-step { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); }
.station h3 { font-size: 1.05rem; margin: 0.25rem 0 0.3rem; }
.station p { font-size: 0.88rem; color: var(--muted); }
.stage-band { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.stage-band.alt { background: var(--paper-2); }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.2rem; margin-bottom: 1.4rem; }
.stage-head .mono-label { color: var(--gold); }
.stage-head h3 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
.stage-body { display: grid; gap: 1.4rem; }
.stage-body p { font-size: 0.98rem; color: var(--muted); }
.stage-body ul { display: grid; gap: 0.5rem; }
.stage-body li { font-size: 0.94rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.stage-body li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.caution-chip { display: inline-flex; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; border: 1px solid rgba(217, 142, 43, 0.5); border-radius: 2px; padding: 0.6rem 0.75rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; line-height: 1.5; color: var(--slate); background: rgba(217, 142, 43, 0.06); }
.caution-chip b { color: var(--gold); flex: none; }
.status-board { border-top: 1px solid var(--line-cream); margin-top: 1.8rem; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line-cream); }
.status-cat { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--cream); }
.status-pill { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(17, 131, 209, 0.6); color: #9FD0F2; padding: 0.2rem 0.55rem; border-radius: 2px; text-align: center; }
.status-pill.gold { border-color: rgba(217, 142, 43, 0.6); color: var(--gold-soft); }
.status-pill.long { border-color: rgba(244, 239, 230, 0.3); color: rgba(244, 239, 230, 0.75); }
.status-note { grid-column: 1 / -1; font-size: 0.76rem; color: rgba(244, 239, 230, 0.6); }
.rfe-split { display: grid; gap: 2.4rem; align-items: center; }
.rfe-map { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 1rem; }
.rfe-map svg { width: 100%; height: auto; }
.detour-path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 6 6; }
.rfe-base { fill: none; stroke: var(--blue); stroke-width: 2; }
.rfe-dot { fill: var(--paper); stroke: var(--slate-2); stroke-width: 2; }
.rfe-label { font-family: var(--font-mono); font-size: 9px; fill: var(--slate); letter-spacing: 0.08em; }
.checklist-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); overflow: hidden; max-width: 860px; margin-inline: auto; }
.checklist-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; background: var(--paper-3); border-bottom: 1px solid var(--line-strong); padding: 0.8rem 1.2rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; }
.checklist-cols { display: grid; gap: 1.6rem; padding: 1.5rem 1.2rem; }
.checklist-col h3 { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 0.8rem; }
.checklist-col ul { display: grid; gap: 0.55rem; }
.checklist-col li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--slate-2); }
.check-box { width: 16px; height: 16px; border: 1px solid var(--slate-2); border-radius: 2px; flex: none; margin-top: 0.22em; position: relative; }
.check-box::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 0.8rem; opacity: 0; transform: scale(0.5); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.is-visible .check-box::after { opacity: 1; transform: scale(1); }
.log-entries { border-left: 2px dashed rgba(17, 131, 209, 0.4); margin-left: 0.4rem; padding-left: 1.4rem; display: grid; gap: 1.6rem; }
.log-entry .log-time { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.log-entry h3 { font-size: 1.05rem; margin: 0.3rem 0; }
.log-entry p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Page-specific: Resources ---------- */
.resources-hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.guide-layout { display: grid; gap: 2rem; }
.toc { align-self: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.2rem; }
.toc h2 { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.8rem; }
.toc ol { display: flex; flex-direction: column; gap: 0.15rem; }
.toc a { display: block; font-size: 0.8rem; color: var(--muted); padding: 0.35rem 0.5rem; border-left: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.toc a:hover { color: var(--blue-text); background: var(--paper-2); }
.toc a.is-active { color: var(--slate); border-left-color: var(--gold); background: var(--paper-2); font-weight: 600; }
.article-body { max-width: 74ch; }
.article-body h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 1rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.8rem 0 0.6rem; }
.article-body p { margin-bottom: 1rem; color: var(--slate-2); }
.article-body > section { padding-top: 0.8rem; margin-bottom: 2.2rem; scroll-margin-top: 100px; }
.article-body ul { display: grid; gap: 0.55rem; margin: 0.8rem 0 1.2rem; }
.article-body ul li { padding-left: 1.15rem; position: relative; color: var(--slate-2); font-size: 0.96rem; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.article-callout { border-left: 3px solid var(--gold); background: var(--paper-2); padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.95rem; }
.article-callout p { margin: 0; }
.guide-hero { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.guide-hero .mono-label { color: var(--blue-text); }
.guide-hero h2 { margin: 0.5rem 0 0.6rem; }
.guide-hero .guide-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.note-row { display: grid; gap: 1.4rem; }
.note-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.note-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.note-card .note-tag { color: var(--blue-text); }
.note-card h3 { margin: 0.55rem 0 0.7rem; }
.note-card ul { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.note-card li { font-size: 0.9rem; color: var(--muted); padding-left: 1rem; position: relative; }
.note-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.glossary-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.4rem; }
.glossary-filter { display: grid; gap: 0.35rem; min-width: 240px; }
.glossary-filter label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.glossary-filter input { font-family: var(--font-body); font-size: 0.95rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--slate); }
.glossary-filter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 131, 209, 0.15); }
.glossary-list { border-top: 1px solid var(--line-strong); }
.glossary-row { display: grid; gap: 0.2rem; padding: 0.9rem 0.3rem; border-bottom: 1px dashed var(--line-strong); transition: background-color 0.2s ease; }
.glossary-row:hover { background: var(--paper-2); }
.glossary-row dt { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; color: var(--blue-text); text-transform: uppercase; }
.glossary-row dd { font-size: 0.92rem; color: var(--muted); }
.glossary-count { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.7rem; }
.path-cards { display: grid; gap: 1.2rem; }
.path-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.path-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.path-card .path-q { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--slate); }
.path-card p { font-size: 0.9rem; color: var(--muted); margin: 0.55rem 0 1rem; }
.path-card .link-route { margin-top: auto; font-size: 0.86rem; }
.disclaimer-note { border: 1px solid rgba(17, 131, 209, 0.4); border-radius: var(--radius); background: rgba(17, 131, 209, 0.05); padding: 1rem 1.2rem; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.7; letter-spacing: 0.03em; color: var(--slate); }
.disclaimer-note strong { color: var(--blue-text); }

/* ---------- Page-specific: Contact ---------- */
.contact-hero { min-height: 54vh; }
.intake-wrap { display: flex; justify-content: center; }
.intake-card { width: 100%; max-width: 660px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.manila-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; background: var(--paper-3); border-bottom: 1px solid var(--line-strong); padding: 0.8rem 1.4rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.manila-strip span { color: var(--muted); }
.intake-form { padding: clamp(1.4rem, 4vw, 2.2rem); }
.intake-form .form-intro { font-size: 0.96rem; color: var(--muted); margin-bottom: 1.6rem; }
.field { position: relative; margin-bottom: 1.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--slate);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 1.15rem 0.9rem 0.5rem; min-height: 56px; appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 130px; resize: vertical; padding-top: 1.35rem; }
.field label {
  position: absolute; left: 0.95rem; top: 1rem; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  pointer-events: none; transition: transform 0.2s var(--ease), font-size 0.2s ease, color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 131, 209, 0.15); }
.field input:focus + label, .field textarea:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field.has-value label, .field select + label {
  transform: translateY(-0.55rem); font-size: 0.52rem; color: var(--blue-text);
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field select:invalid { color: var(--muted); }
.field-error { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: #A23B25; margin-top: 0.35rem; min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #A23B25; box-shadow: 0 0 0 3px rgba(162, 59, 37, 0.12); }
.field.is-invalid { animation: fieldShake 0.3s ease; }
.consent-field { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.2rem 0 1.5rem; }
.consent-field input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--slate); flex: none; }
.consent-field label { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.consent-field .field-error { margin-top: 0.3rem; }
.form-submit { width: 100%; }
.form-note { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; color: var(--muted); text-align: center; margin-top: 0.8rem; text-transform: uppercase; }
.form-success { padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.form-success .stamp { margin: 0 auto 1.5rem; width: 128px; height: 128px; }
.form-success h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); margin-inline: auto; max-width: 44ch; }
.form-success .btn { margin-top: 1.5rem; }
.form-success:focus { outline: none; }
.channels { display: grid; gap: 1.1rem; }
.channel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); min-height: 100%; }
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.channel svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 0.9rem; }
.channel .mono-label { color: var(--blue-text); }
.channel h3 { font-size: 1.08rem; margin: 0.4rem 0 0.3rem; }
.channel a { font-weight: 600; }
.channel p { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.location-split { display: grid; gap: 2.2rem; align-items: center; }
.address-block address { font-style: normal; font-size: 1.05rem; line-height: 1.8; color: var(--slate); }
.address-ledger { margin-top: 1.3rem; }
.address-ledger .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line-strong); font-size: 0.9rem; }
.address-ledger dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.address-ledger dd { text-align: right; }
.map-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; position: relative; }
.map-card svg { width: 100%; height: auto; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.map-legend a { color: var(--blue-text); }
.next-steps { display: grid; gap: 1.4rem; margin-top: 1.4rem; }
.next-step { position: relative; padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.next-step .mono-label { color: var(--gold); }
.next-step h3 { font-size: 1.08rem; margin: 0.4rem 0 0.3rem; }
.next-step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- FAQ split, small utilities ---------- */
.faq-layout { display: grid; gap: 2rem; }
.faq-intro p { margin-top: 1rem; color: var(--muted); }
.faq-intro .link-route { margin-top: 1.4rem; }
.stat-num .plus { color: var(--gold); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.pill-row .chip { color: var(--cream); border-color: rgba(244, 239, 230, 0.3); }
.guide-lead { font-size: 1.08rem; color: var(--slate-2); }
.mini-hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.band-head { max-width: 720px; margin-bottom: 2rem; }
.band-head h2 { margin-top: 0.7rem; }
.band-head p { margin-top: 0.8rem; }

/* ---------- Flash / utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-scale { transform: scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.stamp.reveal { opacity: 0; transform: rotate(-12deg) scale(1.25); }
.stamp.reveal.is-visible { opacity: 1; transform: rotate(-6deg) scale(1); }

@keyframes lineRise { to { transform: translateY(0); } }
@keyframes routeSweep { to { clip-path: inset(0 0 0 0); } }
@keyframes wpPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menuIn { to { opacity: 1; transform: translateX(0); } }
@keyframes stampSettle { from { opacity: 0; transform: rotate(-12deg) scale(1.3); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes terminalPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 142, 43, 0.45); } 50% { box-shadow: 0 0 0 10px rgba(217, 142, 43, 0); } }
@keyframes fieldShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Tablet (≥768) ---------- */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .header-inner { gap: 1rem; }
  .primary-nav { display: block; }
  .primary-nav ul { gap: 0.85rem; }
  .primary-nav a { font-size: 0.82rem; }
  .nav-num { display: none; }
  .header-phone { display: none; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 0.98rem; }
  .brand-sub { font-size: 0.46rem; }
  .hero-home { min-height: 88vh; }
  .hero-route { bottom: 60px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.6rem; }
  .credential { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2rem; border-top: 1px dashed var(--line-strong); }
  .credential .compass-ico { margin: 0; flex: none; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
  .pillar:nth-child(2) { margin-top: 34px; }
  .pillar:nth-child(3) { margin-top: 68px; }
  .timeline-h { grid-template-columns: repeat(2, 1fr); }
  .timeline-h::before { display: none; }
  .waypoint { padding-left: 0; padding-top: 2.5rem; }
  .waypoint .wp-dot { left: 0; top: 0; }
  .waypoint::before { content: ""; position: absolute; left: 10px; right: -1.6rem; top: 11px; border-top: 2px dashed rgba(17, 131, 209, 0.4); }
  .waypoint:nth-child(2)::before { right: auto; left: 10px; width: 0; }
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid .field-note:nth-child(2) { margin-top: 26px; }
  .notes-grid .field-note:nth-child(3) { margin-top: 0; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .serve-panel:nth-child(2) { margin-top: 24px; }
  .serve-panel:nth-child(3) { margin-top: -8px; }
  .self-cards { grid-template-columns: repeat(2, 1fr); }
  .spec-columns { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .channel:nth-child(2) { margin-top: 24px; }
  .channel:nth-child(3) { margin-top: 48px; }
  .next-steps { grid-template-columns: repeat(3, 1fr); }
  .employer-grid { grid-template-columns: repeat(3, 1fr); }
  .stage-body { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-wrap: nowrap; }
  .social-row svg { width: 19px; height: 19px; }
}

/* ---------- Desktop (≥1024) ---------- */
@media (min-width: 1024px) {
  .primary-nav ul { gap: 1.35rem; }
  .primary-nav a { font-size: 0.9rem; }
  .nav-num { display: inline; }
  .header-phone { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .header-inner { gap: 1.9rem; }
  .hero-inner { padding-top: 6rem; }
  .hero-copy h1 { font-size: clamp(3rem, 5.4vw, 4.65rem); }
  .trust-grid { grid-template-columns: repeat(3, 1fr) 1.35fr; align-items: center; }
  .trust-grid::before { display: block; }
  .stat-dot { display: block; }
  .stat { padding-left: 1.4rem; }
  .credential { grid-column: auto; border-top: 0; border-left: 1px dashed var(--line-strong); padding: 0.3rem 0 0.3rem 1.6rem; display: block; }
  .credential .compass-ico { width: 34px; height: 34px; margin-bottom: 0.6rem; }
  .pillars::before { display: block; }
  .routes-layout { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
  .route-map { display: block; }
  .spotlight-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
  .split-media-text { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-media-text.reverse .split-media { order: 2; }
  .timeline-h { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; }
  .waypoint { padding-left: 0; padding-right: 1rem; }
  .waypoint::before { content: ""; position: absolute; left: 12px; right: 0; top: 12px; border-top: 2px dashed rgba(17, 131, 209, 0.4); }
  .waypoint:last-child::before { display: none; }
  .waypoint .wp-card { margin-top: 1.6rem; height: calc(100% - 1.6rem); }
  .waypoint .wp-dot { left: 0; top: 0; }
  .notes-grid { grid-template-columns: repeat(3, 1fr); }
  .notes-grid .field-note:nth-child(2) { margin-top: 34px; }
  .notes-grid .field-note:nth-child(3) { margin-top: 0; }
  .commitments { grid-template-columns: 160px 1fr; gap: 3rem; align-items: start; }
  .serve-grid { grid-template-columns: 1.05fr 0.95fr; gap: 1.4rem; }
  .serve-panel:nth-child(2) { margin-top: 36px; }
  .serve-panel:nth-child(3) { margin-top: -10px; }
  .serve-panel:nth-child(4) { margin-top: 26px; }
  .self-cards { grid-template-columns: 1fr 1fr; }
  .eb-row { grid-template-columns: 90px 1fr 240px; gap: 1.8rem; }
  .healthcare-split { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .channels { gap: 1.4rem; }
  .location-split { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
  .guide-layout { grid-template-columns: 250px 1fr; gap: 3.4rem; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 20px); }
  .note-row { grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
  .note-row .note-card:nth-child(2) { margin-top: 28px; }
  .path-cards { grid-template-columns: repeat(3, 1fr); }
  .resources-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
  .story-timeline::before { left: 50%; }
  .story-station { width: 50%; padding-left: 0; padding-right: 2.6rem; text-align: right; }
  .story-station:nth-child(even) { margin-left: 50%; padding-left: 2.6rem; padding-right: 0; text-align: left; }
  .story-station .wp-dot { left: auto; right: -12px; top: 2px; }
  .story-station:nth-child(even) .wp-dot { left: -12px; right: auto; }
  .checklist-cols { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .footer-main { grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr; gap: 2.4rem; }
  .page-hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.9rem); }
  .mobile-cta { display: none; }
}

/* ---------- Wide rail (≥1280) ---------- */
@media (min-width: 1280px) {
  .rail { display: block; }
  .header-inner, .wrap-wide { width: min(100% - 4rem, 1360px); }
}

/* ---------- Process pin: unpinned on small screens ---------- */
@media (max-width: 899px) {
  .pin-wrap { height: auto; }
  .pin-stage { position: static; height: auto; padding-block: 0.5rem 2rem; overflow: visible; }
  .pin-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .pin-map { display: none; }
  .station { opacity: 1; transform: none; border-left-color: rgba(217, 142, 43, 0.4); }
}

/* ---------- Mobile-only footer order & CTA ---------- */
@media (max-width: 767px) {
  .footer-main { display: flex; flex-direction: column; }
  .footer-brand { order: 4; }
  .footer-col[aria-label="Routes"] { order: 2; }
  .footer-col[aria-label="Firm"] { order: 3; }
  .footer-main > div.footer-col { order: 1; }
}
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .split .line > span { transform: none !important; }
  .hero-route { clip-path: none !important; }
  .hero-route .wp { opacity: 1 !important; }
  .pin-wrap { height: auto !important; }
  .pin-stage { position: static !important; height: auto !important; padding-block: 2rem; }
  .pin-map { height: auto; }
  .station { opacity: 1 !important; transform: none !important; }
  .meter-fill { transition: none !important; }
}
