/* ===================== TOKENS ===================== */
/* Brand values (palette, fonts) live in /assets/brand/dplaw/brand.css, which
   every page loads first. The component rules below read only these
   semantic aliases, so re-theming never needs edits in this file. */
:root {
  --navy: var(--brand-primary);
  --navy-deep: var(--brand-primary-deep);
  --accent: var(--brand-accent);
  --accent-soft: var(--text-on-dark);    /* soft text on navy panels */
  --accent-on-dark: var(--brand-accent-on-dark); /* bronze on navy panels */
  --secondary: var(--brand-secondary);   /* decorative grey: markers, large italic */
  --ink: var(--text-strong);
  --muted: var(--text-body);             /* body copy */
  --line: var(--hairline);
  --bg: var(--surface-page);
  --bg-soft: var(--surface-alt);
  --bg-tint: var(--surface-tint);        /* icon badges, chips, callouts */
  --accent-wash: rgba(var(--brand-accent-rgb), 0.05);
  --accent-border: rgba(var(--brand-accent-rgb), 0.20);
  --radius: 6px;
  --radius-lg: 10px;
  --btn-radius: 3px;
  --shadow-sm: 0 1px 2px rgba(var(--brand-primary-rgb), 0.05), 0 4px 16px rgba(var(--brand-primary-rgb), 0.04);
  --shadow-md: 0 8px 30px rgba(var(--brand-primary-rgb), 0.10);
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --maxw: 1120px;
  --maxw-prose: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-prose { max-width: var(--maxw-prose); }
.mt-32 { margin-top: 32px; }
.pt-24 { padding-top: 24px; }
.lead-left { margin: 14px 0 0; text-align: left; max-width: 720px; font-size: 18px; color: var(--muted); }
.card-title { font-size: 22px; margin-bottom: 6px; }
.card-sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.fine-print { color: var(--muted); margin: 18px 0 0; font-size: 13px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--navy); margin: 0; }
a { color: var(--navy); text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Visible keyboard focus. Later component rules (e.g. .ask-input) may replace
   the outline with their own focus treatment. */
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:where(.site-footer, .chat-cta, .cta-band, .contact-panel-dark) :where(a, button):focus-visible { outline-color: #fff; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em;
  border: none; border-radius: var(--btn-radius); padding: 14px 26px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(var(--brand-primary-rgb), 0.28); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section-center .btn-row, .hero .btn-row { justify-content: center; }

/* ===================== HEADER (injected) ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--surface-page-rgb), 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; column-gap: 20px;
}
/* Brand: the official DP Law logo (as supplied). The hub name stays in the
   link's accessible name via a visually hidden span. */
.brand { position: relative; display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { display: block; height: 52px; width: auto; }
.main-nav { display: flex; gap: 20px; justify-self: center; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.mobile-nav-cta, .nav-backdrop { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; padding: 0;
  color: var(--navy); transition: background .2s ease;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle-lines { position: relative; display: block; width: 22px; height: 16px; }
.nav-toggle-lines span {
  position: absolute; left: 0; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transform-origin: center; transition: top .25s ease, opacity .18s ease, transform .25s ease;
}
.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 7px; }
.nav-toggle-lines span:nth-child(3) { top: 14px; }
.header-inner > .btn-primary { justify-self: end; white-space: nowrap; }

/* ===================== HERO ===================== */
/* Calm, static backdrop: a faint navy wash over the soft surface, no motion. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 480px at 50% -12%, rgba(var(--brand-primary-rgb), 0.06), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 72%);
  padding: 96px 0 68px; text-align: center;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
.eyebrow::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); border-radius: 1px; margin: 0 0 14px; }
.hero .eyebrow::before, .section-center .eyebrow::before { margin-left: auto; margin-right: auto; }
.eyebrow-light { color: var(--accent-on-dark); }
.eyebrow-light::before { background: var(--accent-on-dark); }
.hero-title { font-size: clamp(38px, 6vw, 62px); font-weight: 500; letter-spacing: -0.02em; }
.accent { color: var(--accent); font-style: italic; }
.hero-sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 620px; margin: 22px auto 0; }
.hero .hero-inner > * {
  opacity: 0;
  animation: hero-arrive .72s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero .hero-inner > *:nth-child(1) { animation-delay: .06s; }
.hero .hero-inner > *:nth-child(2) { animation-delay: .14s; }
.hero .hero-inner > *:nth-child(3) { animation-delay: .22s; }
.hero .hero-inner > *:nth-child(4) { animation-delay: .30s; }
.hero .hero-inner > *:nth-child(5) { animation-delay: .38s; }
.hero .hero-inner > *:nth-child(6) { animation-delay: .46s; }
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== ASK BOX ===================== */
.ask-box {
  margin: 40px auto 0; max-width: 680px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 14px; text-align: left;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ask-box.placeholder-changing { border-color: rgba(var(--brand-accent-rgb), .28); box-shadow: 0 10px 34px rgba(var(--brand-primary-rgb), .11), 0 0 0 3px rgba(var(--brand-accent-rgb), .05); }
/* The hero ask-box uses the shared one-time entrance (hero-arrive, from the
   .hero-inner rule) and a smooth box-shadow transition on focus. Focus must not
   touch `animation`, or losing focus would replay the entrance ("refresh"). */
.hero .ask-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 14px 42px rgba(var(--brand-primary-rgb), .16), 0 0 0 4px rgba(var(--brand-accent-rgb), .10);
}
.ask-box--inline { box-shadow: var(--shadow-sm); margin: 28px 0 0; }
.ask-form { display: flex; align-items: flex-end; gap: 10px; }
.ask-input {
  flex: 1; border: none; outline: none; resize: none;
  font-family: var(--sans); font-size: 18px; line-height: 1.5; padding: 12px 14px;
  color: var(--ink); background: transparent; max-height: 160px; overflow-y: hidden;
}
.ask-input::placeholder { color: var(--text-subtle); opacity: 1; transition: opacity .19s ease, color .19s ease; }
.ask-input.placeholder-out::placeholder { opacity: 0; color: var(--accent); }
.ask-submit { flex-shrink: 0; padding: 13px 22px; }
.ask-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 6px 4px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
  border-radius: var(--btn-radius); padding: 8px 14px; font-size: 13.5px; font-family: var(--sans);
  cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--navy); background: #fff; }

.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 30px; padding: 0; margin: 36px 0 0; font-size: 14px; color: var(--muted);
}
.trust-strip li { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip [data-icon], .trust-strip .ic { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.trust-strip--start { justify-content: flex-start; margin-top: 18px; }

/* ===================== HERO LIVE DEMO ===================== */
/* A looping, self-typing sample of a grounded, cited answer, nested inside the
   ask-box so the box both asks and answers. It proves the assistant is an
   advisor, not a toy bot. Decorative (aria-hidden); collapses on input focus. */
.ask-demo { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ask-demo[hidden] { display: none; }
.ask-demo-head { display: flex; align-items: center; gap: 8px; margin: 0 6px 11px; }
.hero-demo-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), .10);
}
.ask-demo-label { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--text-subtle); }
.hero-demo-thread {
  display: flex; flex-direction: column; gap: 10px; min-height: 134px; padding: 0 6px;
  transition: opacity .4s ease;
}
.hero-demo-thread.is-fading { opacity: 0; }
.hd-msg { font-size: 14.5px; line-height: 1.55; max-width: 92%; padding: 10px 14px; border-radius: 14px; }
.hd-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.hd-ai {
  align-self: flex-start; background: #fff; border: 1px solid rgba(var(--brand-accent-rgb), .22);
  border-top-left-radius: 4px; box-shadow: 0 8px 26px rgba(var(--brand-primary-rgb), .07); color: var(--ink);
}
.hd-ai strong { color: var(--navy); font-weight: 600; }
.hd-cite {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: super;
  min-width: 15px; height: 15px; padding: 0 4px; margin: 0 1px; border-radius: 8px; line-height: 1;
  font-size: 9.5px; font-weight: 700; color: var(--navy);
  background: rgba(var(--brand-accent-rgb), .16); border: 1px solid rgba(var(--brand-accent-rgb), .4);
}
.hd-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: text-bottom;
  background: var(--accent); border-radius: 1px; animation: caret-blink 1s steps(2, start) infinite;
}
.hd-source {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted);
}
.hd-source .src-num { width: 16px; height: 16px; font-size: 9.5px; }
.hd-typing { display: inline-flex; gap: 4px; align-items: center; }
.hd-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); animation: typing-pulse 1.15s infinite ease-in-out; }
.hd-typing span:nth-child(2) { animation-delay: .15s; }
.hd-typing span:nth-child(3) { animation-delay: .3s; }

/* ===================== ICON SYSTEM ===================== */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ic svg { width: 100%; height: 100%; display: block; }
.icon-badge {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--bg-tint);
}
.icon-badge svg { width: 25px; height: 25px; }

/* ===================== SECTIONS ===================== */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-center { text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.section-title-light { color: #fff; }
.section-lead { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 640px; }

/* ===================== LANDING PAGE SECTION TRANSITIONS ===================== */
.landing-main > .section { position: relative; }
.landing-main > .section-soft {
  background:
    linear-gradient(180deg, rgba(var(--surface-page-rgb), .7), transparent 54px),
    var(--bg-soft);
}
.landing-main > .section-soft + .section:not(.cta-band) {
  background:
    linear-gradient(180deg, var(--bg-soft), rgba(var(--surface-alt-rgb), 0) 54px),
    var(--bg);
}
.landing-main [data-section-reveal] > .container {
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
.landing-main [data-section-reveal].section-pending > .container {
  opacity: 0;
  transform: translateY(24px);
}
.landing-main [data-section-reveal].section-visible > .container {
  opacity: 1;
  transform: translateY(0);
}
.landing-main [data-section-reveal] .step,
.landing-main [data-section-reveal] .route-card,
.landing-main [data-section-reveal] .vert-card,
.landing-main [data-section-reveal] .process-card,
.landing-main [data-section-reveal] .why-item,
.landing-main [data-section-reveal] .faq details {
  transition:
    opacity .58s cubic-bezier(.22, 1, .36, 1),
    translate .58s cubic-bezier(.22, 1, .36, 1),
    box-shadow .2s ease,
    border-color .2s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.landing-main [data-section-reveal].section-pending .step,
.landing-main [data-section-reveal].section-pending .route-card,
.landing-main [data-section-reveal].section-pending .vert-card,
.landing-main [data-section-reveal].section-pending .process-card,
.landing-main [data-section-reveal].section-pending .why-item,
.landing-main [data-section-reveal].section-pending .faq details {
  opacity: 0;
  translate: 0 16px;
}
.landing-main [data-section-reveal].section-visible .step,
.landing-main [data-section-reveal].section-visible .route-card,
.landing-main [data-section-reveal].section-visible .vert-card,
.landing-main [data-section-reveal].section-visible .process-card,
.landing-main [data-section-reveal].section-visible .why-item,
.landing-main [data-section-reveal].section-visible .faq details {
  opacity: 1;
  translate: 0 0;
}

/* ===================== ROUTE CARDS GRID ===================== */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
.route-card {
  display: block; background: var(--surface-card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.route-card .rc-icon {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--bg-tint);
}
.route-card .rc-icon svg { width: 24px; height: 24px; }
.route-card:hover .rc-icon { border-color: var(--accent-soft); }
.route-card h3 { font-size: 20px; margin: 14px 0 8px; }
.route-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.route-card .rc-more { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 12px; display: inline-block; }

/* ===================== VERTICAL CARDS ===================== */
.vert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vert-card { background: var(--surface-card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.vert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vert-icon {
  width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--bg-tint); margin-bottom: 18px;
}
.vert-icon svg { width: 30px; height: 30px; }
.vert-card h2 { font-size: 26px; margin-bottom: 10px; }
.vert-card > p { color: var(--muted); margin: 0 0 18px; }
.vert-list { list-style: none; padding: 0; margin: 0 0 22px; }
.vert-list li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.vert-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.link-arrow { color: var(--navy); font-weight: 600; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===================== STEPS ===================== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 48px 0 0; text-align: left; }
.step { background: var(--surface-card); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: var(--accent-on-dark); font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ===================== COMPARISON TABLE ===================== */
/* position: relative keeps absolutely positioned descendants (e.g. .visually-hidden
   labels) inside the scroll box, so wide tables never widen the page on mobile. */
.table-wrap { position: relative; margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
table.compare th, table.compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
table.compare thead th { background: var(--navy); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--navy); }
table.compare a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== FAQ ACCORDION ===================== */
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; color: var(--accent); font-weight: 400; transition: transform .28s cubic-bezier(.22, 1, .36, 1); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq-body { padding: 0 0 22px; color: var(--muted); max-width: 680px; will-change: opacity, transform; }

/* ===================== WHY GRID ===================== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; text-align: left; }
.why-item { padding: 28px; border-left: 3px solid var(--accent); background: var(--bg-tint); border-radius: 0 var(--radius) var(--radius) 0; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { color: var(--muted); margin: 0; font-size: 15px; }

/* ===================== ARTICLE / ROUTE GUIDE ===================== */
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span { color: var(--text-subtle); }
.article-head { padding: 18px 0 8px; }
.article-head h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; max-width: 800px; }
.article-meta { font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; background: var(--bg-tint); border: 1px solid var(--accent-border); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--btn-radius); }
.prose { max-width: var(--maxw-prose); padding: 18px 0 72px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; margin: 28px 0 6px; }
.prose p { color: var(--muted); margin: 12px 0; }
.prose a, .faq-body a, .section-lead a { text-decoration: underline; text-underline-offset: 2px; }
.prose .answer { font-size: 17px; color: var(--ink); font-weight: 500; margin: 8px 0 12px; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; margin: 12px 0; }
.prose li { margin: 7px 0; }
article .prose > ol { list-style: none; counter-reset: guide-step; padding-left: 0; margin: 20px 0; }
article .prose > ol > li { counter-increment: guide-step; position: relative; margin: 0; padding: 0 0 22px 42px; border-left: 1px solid var(--accent-border); }
article .prose > ol > li:last-child { border-left-color: transparent; padding-bottom: 0; }
article .prose > ol > li::before {
  content: counter(guide-step); position: absolute; left: -15px; top: -2px;
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--navy); color: var(--accent-on-dark); font-size: 12px; font-weight: 700;
}
.prose .figure-callout { background: var(--bg-tint); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 20px 0; }
.prose .figure-callout strong { color: var(--navy); }
.note-box { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 24px 0; font-size: 14px; color: var(--ink); }
.note-box a { text-decoration: underline; text-underline-offset: 2px; }
.cost-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.cost-table th, .cost-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cost-table th { background: var(--bg-soft); font-family: var(--sans); font-weight: 600; color: var(--navy); }
.sibling-links { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.sibling-links h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-family: var(--sans); margin-bottom: 14px; }
.sibling-links .pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sibling-links .pills a { border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--navy); transition: border-color .15s; }
.sibling-links .pills a:hover { border-color: var(--accent); }

/* ===================== CONTEXTUAL CHAT CTA ===================== */
.chat-cta { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: var(--radius-lg); padding: 36px; margin: 44px 0 0; text-align: left; }
.chat-cta h3 { color: #fff; font-size: 24px; }
.chat-cta p { color: rgba(255,255,255,0.78); margin: 10px 0 20px; }
.chat-cta .ask-box { margin: 0; max-width: none; }
.chat-cta .chat-cta-alt { margin: 16px 0 0; font-size: 14.5px; }
.chat-cta-alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== CAPTURE / LEAD FORM ===================== */
.capture-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.capture-copy p { color: var(--muted); font-size: 17px; }
.capture-points { list-style: none; padding: 0; margin: 22px 0 0; }
.capture-points li { padding: 6px 0; color: var(--ink); font-weight: 500; }
.capture-form { background: var(--surface-card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 600; color: var(--navy); }
.capture-form input, .capture-form textarea, .capture-form select {
  font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; resize: vertical; background: #fff;
}
.capture-form input:focus, .capture-form textarea:focus, .capture-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), 0.18); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 20px; line-height: 1.5; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.consent a { text-decoration: underline; }
.form-status { font-size: 14px; margin: 14px 0 0; text-align: center; min-height: 1em; }
.form-status.ok { color: #1c7c43; font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }

/* ===================== PARTNERS BAND ===================== */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); position: relative; }
/* signature utilities */
.section-rule { height: 4px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); }
.accent-rule { width: 28px; height: 2px; background: var(--accent); border-radius: 1px; }
.row-premium { background: var(--accent-wash); }
.cta-band-inner { max-width: 720px; }
.cta-band-lead { color: rgba(255,255,255,0.78); font-size: 18px; margin: 16px 0 28px; }

/* ===================== CHAT PAGE ===================== */
.chat-page {
  position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 72px);
  overflow: hidden; background:
    radial-gradient(700px 360px at 50% 0%, rgba(var(--brand-primary-rgb), .06), transparent 68%),
    var(--bg-soft);
}
/* flex:1 + min-height:0 lets the thread scroll inside the fixed page height once
   a chat is active. In the welcome state the page only has a min-height, so the
   area grows with its content and the whole page scrolls if ever needed — no
   nested scrollbar. */
.chat-scroll { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 0 8px; }
.chat-page-active { height: calc(100vh - 72px); min-height: 560px; }
.chat-page-active .chat-scroll { padding-bottom: 22px; }
.chat-presence {
  max-width: 760px; margin: 0 auto 12px; padding: 0 24px; display: flex; align-items: center; gap: 8px;
  color: var(--text-subtle); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.chat-presence-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), .10);
}
/* AI disclosure shown at the start of every chat. It sits outside the welcome
   panel, so it stays at the top of the thread once a conversation begins. */
.chat-ai-notice {
  width: calc(100% - 48px); max-width: 712px; margin: 0 auto 16px; padding: 12px 16px;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-card); border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-size: 13.5px; line-height: 1.55;
}
.chat-ai-notice [data-icon], .chat-ai-notice .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--navy); flex-shrink: 0; }
.chat-ai-notice p { margin: 0; }
.chat-ai-notice strong { color: var(--navy); }
/* Welcome / empty state — a premium first impression that collapses the moment
   the conversation starts (activateChat sets [hidden]). */
.chat-welcome {
  max-width: 720px; margin: 0 auto; padding: 4px 24px 0; text-align: center;
  animation: message-arrive .45s ease-out both;
}
.chat-welcome[hidden] { display: none; }
.chat-welcome-title { font-size: clamp(24px, 4vw, 33px); letter-spacing: -.02em; margin: 0; }
.chat-welcome-sub { max-width: 520px; margin: 9px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.chat-welcome-sub a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.chat-cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px auto 0; max-width: 600px; text-align: left; }
.chat-cap {
  background: rgba(255,255,255,.72); border: 1px solid rgba(var(--brand-accent-rgb), .22);
  border-radius: 13px; padding: 13px 16px; box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), .06);
}
.chat-cap-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 14.5px;
}
.chat-cap-head [data-icon], .chat-cap-head .ic { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.chat-cap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.chat-cap li { position: relative; padding-left: 14px; font-size: 13px; color: var(--muted); }
.chat-cap li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.chat-thread { max-width: 760px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 18px; }
.msg-row { display: flex; flex-direction: column; width: 100%; }
.msg-row:last-child { animation: message-arrive .32s ease-out both; }
.msg-row-ai { flex-direction: row; align-items: flex-start; gap: 12px; }
.msg-row-user { align-items: flex-end; }
.msg-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: var(--accent-soft);
  box-shadow: 0 6px 18px rgba(var(--brand-primary-rgb), .18), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.msg-avatar svg { width: 17px; height: 17px; display: block; }
.msg-stack { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: calc(100% - 46px); }
.msg { max-width: 80%; padding: 14px 18px; border-radius: 18px; font-size: 15.5px; line-height: 1.6; }
.msg-row-ai .msg { max-width: 100%; }
.msg-ai {
  background: rgba(255,255,255,.96); border: 1px solid rgba(var(--brand-accent-rgb), .22);
  border-top-left-radius: 6px; align-self: flex-start;
  box-shadow: 0 12px 38px rgba(var(--brand-primary-rgb), .09); white-space: normal;
}
.msg-ai p { margin: 0 0 10px; }
.msg-ai p:last-child { margin-bottom: 0; }
.msg-stream-text > :last-child { margin-bottom: 0; }
.msg-ai ul, .msg-ai ol { margin: 8px 0 10px; padding-left: 20px; }
.msg-ai li { margin: 4px 0; }
.msg-ai li::marker { color: var(--accent); }
.msg-ai strong { color: var(--navy); font-weight: 600; }
.msg-ai code { background: var(--bg-tint); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.msg-ai a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(var(--brand-accent-rgb), .55); text-underline-offset: 2px; }
sup.cite { line-height: 0; }
sup.cite a {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: super;
  min-width: 16px; height: 16px; padding: 0 4px; margin: 0 1px; border-radius: 8px;
  font-size: 10px; font-weight: 700; text-decoration: none;
  color: var(--navy); background: rgba(var(--brand-accent-rgb), .16); border: 1px solid rgba(var(--brand-accent-rgb), .4);
  transition: background .15s, border-color .15s, color .15s;
}
sup.cite a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.msg-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom;
  background: var(--accent); border-radius: 1px; animation: caret-blink 1s steps(2, start) infinite;
}
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.msg-user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.msg-error { color: #8f2d24; border-color: rgba(143,45,36,.25); }
.msg-sources { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; white-space: normal; }
.msg-sources span { color: var(--text-subtle); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.msg-sources a { color: var(--navy); font-size: 12px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--brand-accent-rgb), .55); text-underline-offset: 2px; }
.msg-source-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.msg-source-link:hover { text-decoration: underline; text-decoration-color: rgba(var(--brand-accent-rgb), .55); text-underline-offset: 2px; }
.src-num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--navy); color: var(--accent-on-dark); font-size: 10px; font-weight: 700; }
.msg-label { margin-top: 5px; padding: 0 5px; color: var(--text-subtle); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.msg-typing { display: inline-flex; align-items: center; gap: 5px; min-width: 64px; min-height: 48px; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); animation: typing-pulse 1.15s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing-pulse { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes message-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-quick-prompts { max-width: 600px; margin: 16px auto 0; padding: 0 24px; }
.chat-quick-prompts[hidden] { display: none; }
.chat-quick-prompts p { margin: 0 0 10px; color: var(--text-subtle); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.chat-quick-prompts > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-quick-prompts button {
  border: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--muted);
  border-radius: var(--btn-radius); padding: 9px 13px; font: 500 12.5px/1.35 var(--sans); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.chat-quick-prompts button:hover { border-color: var(--accent); color: var(--navy); background: #fff; }
.ask-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.chat-disclaimer { position: relative; z-index: 2; order: 3; text-align: center; font-size: 12px; color: var(--muted); padding: 8px 24px 14px; }
.chat-disclaimer a { text-decoration: underline; text-underline-offset: 2px; }
.chat-composer { position: relative; z-index: 2; order: 2; background: transparent; padding: 14px 0 4px; }
.chat-composer .ask-box {
  margin: 0 auto; border: 1px solid rgba(var(--brand-accent-rgb), .22);
  border-radius: 14px; box-shadow: 0 14px 44px rgba(var(--brand-primary-rgb), .11); padding: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.chat-composer .ask-box:focus-within {
  border-color: var(--accent); box-shadow: 0 18px 50px rgba(var(--brand-primary-rgb), .15), 0 0 0 4px rgba(var(--brand-accent-rgb), .09);
  transform: translateY(-2px);
}
.chat-composer .ask-input { font-size: 16px; }
.chat-composer .ask-submit { min-width: 96px; }
.chat-lead-form { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.chat-lead-form input { font-family: var(--sans); font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.chat-lead-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), 0.18); }

/* ===================== PROCESS PAGE ===================== */
.process-cards { list-style: none; padding: 0; margin: 48px auto 0; max-width: 980px; display: flex; flex-direction: column; gap: 22px; }
.process-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; text-align: left;
  background: var(--surface-card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm);
}
.process-kicker, .process-card-detail > span {
  display: block; margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.process-card h3 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 12px; }
.process-card p { color: var(--muted); margin: 0; }
.process-card-detail { padding-left: 28px; border-left: 1px solid var(--line); }
.process-card-detail > span { color: var(--text-subtle); }
.process-card-detail ul { list-style: none; padding: 0; margin: 0; }
.process-card-detail li { position: relative; padding: 7px 0 7px 22px; color: var(--ink); font-size: 14.5px; }
.process-card-detail li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===================== CONTACT ===================== */
.contact-page { background: var(--bg-soft); }
.contact-split { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.15fr); min-height: calc(100vh - 72px); }
.contact-panel { padding: clamp(48px, 7vw, 92px); }
.contact-panel-dark {
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  color: #fff; background:
    radial-gradient(650px 420px at 25% 15%, rgba(255, 255, 255, .06), transparent 62%),
    linear-gradient(145deg, var(--navy), var(--navy-deep));
}
.contact-panel-dark h1 { color: #fff; font-size: clamp(40px, 5vw, 66px); letter-spacing: -.025em; max-width: 560px; }
.contact-intro { max-width: 520px; margin: 22px 0 0; color: rgba(255,255,255,.74); font-size: 17px; }
.contact-company span, .contact-option-label { display: block; color: var(--accent-on-dark); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-company strong { display: block; margin-top: 8px; color: #fff; font-size: 17px; }
.contact-company p { margin: 5px 0 0; color: rgba(255,255,255,.6); font-size: 14px; }
.contact-panel-light { display: flex; align-items: center; background: #fff; }
.contact-options { width: 100%; max-width: 650px; margin: 0 auto; }
.contact-option {
  display: block; padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .18s, border-color .18s;
}
a.contact-option:hover { padding-left: 8px; border-color: var(--accent); }
.contact-option-featured {
  margin-bottom: 12px; padding: 30px; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-soft); box-shadow: var(--shadow-sm);
}
.contact-option-featured h2 { margin: 7px 0 10px; font-size: 28px; }
.contact-option-featured p { margin: 0 0 20px; color: var(--muted); }
.contact-option-label { color: var(--accent); }
.contact-option strong { display: block; margin-top: 5px; color: var(--navy); font-size: clamp(16px, 2vw, 20px); }
.contact-option-arrow { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.contact-legal-note { margin: 22px 0 0; color: var(--text-subtle); font-size: 12.5px; }

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 520px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 20px 22px; z-index: 100;
}
.cookie-banner p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 14px; }
.cookie-hidden { display: none !important; }

/* ===================== FOOTER (injected) ===================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.74); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-col h5 { color: var(--accent-on-dark); font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.74); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-brand { max-width: 300px; font-size: 14px; line-height: 1.6; }
.footer-wordmark { display: inline-block; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; }
.footer-firm { margin: 14px 0 0; }
.footer-firm strong { color: #fff; font-weight: 600; }
.footer-address { margin: 8px 0 0; font-style: normal; }
.footer-contact { margin: 10px 0 0; }
.footer-contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; }
.footer-contact a:hover { text-decoration-color: #fff; }
.disclaimer-strip { padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.74); }
.disclaimer-strip p { margin: 0 0 10px; max-width: 820px; }
.copyright { margin-top: 8px; }

/* ===================== RESPONSIVE ===================== */
/* The header switches to the menu button below the width its full row needs
   (keep in sync with NAV_BREAKPOINT in site.js). */
@media (max-width: 960px) {
  .header-inner { display: flex; justify-content: space-between; gap: 16px; }
  body.nav-open { overflow: hidden; }
  .site-header { background: rgba(var(--surface-page-rgb), .97); }
  .header-inner { position: relative; z-index: 53; }
  .main-nav {
    display: flex; position: fixed; z-index: 52; top: 72px; left: 50%; width: 100vw;
    flex-direction: column; gap: 0; max-height: calc(100svh - 72px); overflow-y: auto;
    padding: 12px 24px 26px; background: var(--bg); /* solid: translucent panels let the hero ghost through */
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 44px rgba(var(--brand-primary-deep-rgb), .12);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -14px);
    transition: opacity .24s ease, transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .32s;
  }
  .main-nav a {
    width: 100%; padding: 15px 2px; border-bottom: 1px solid var(--line);
    color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 600;
    opacity: 0; transform: translateY(-6px);
    transition: color .15s ease, opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
  }
  .main-nav a.active { color: var(--navy); text-decoration: none; box-shadow: inset 3px 0 0 var(--navy); padding-left: 12px; }
  .main-nav .mobile-nav-cta {
    display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 16px;
    border: 0; border-radius: var(--btn-radius); background: var(--navy); color: #fff;
    font-family: var(--sans); font-size: 15px; font-weight: 600;
  }
  .nav-backdrop {
    display: block; position: fixed; z-index: 51; inset: 72px 0 0;
    background: rgba(var(--brand-primary-deep-rgb), .28); opacity: 0; visibility: hidden; pointer-events: none;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    transition: opacity .25s ease, visibility 0s linear .32s;
  }
  .site-header.nav-open .main-nav,
  .site-header.nav-open .nav-backdrop {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .site-header.nav-open .nav-backdrop { transform: none; }
  .site-header.nav-open .main-nav a { opacity: 1; transform: translateY(0); }
  .site-header.nav-open .main-nav a:nth-child(1) { transition-delay: .04s; }
  .site-header.nav-open .main-nav a:nth-child(2) { transition-delay: .07s; }
  .site-header.nav-open .main-nav a:nth-child(3) { transition-delay: .10s; }
  .site-header.nav-open .main-nav a:nth-child(4) { transition-delay: .13s; }
  .site-header.nav-open .main-nav a:nth-child(5) { transition-delay: .16s; }
  .site-header.nav-open .main-nav a:nth-child(6) { transition-delay: .19s; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 54; }
  .site-header.nav-open .nav-toggle-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .site-header.nav-open .nav-toggle-lines span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
  .site-header.nav-open .nav-toggle-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .header-inner .btn-primary { display: none; }
}

@media (max-width: 860px) {
  .vert-grid, .steps, .why-grid, .capture-inner, .route-grid, .process-card, .contact-split { grid-template-columns: 1fr; }
  .process-card-detail { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .contact-split { min-height: auto; }
  .contact-panel { padding: 48px 24px; }
  .prose { padding-bottom: 56px; }
  .hero { padding: 72px 0 52px; }
  .ask-form { flex-direction: column; align-items: stretch; }
  .ask-submit { width: 100%; }
  .hero .ask-box { margin-top: 34px; padding: 14px; }
  .hero .ask-input {
    width: 100%; min-height: 68px; padding: 12px 14px;
    font-size: 19px; line-height: 1.45;
  }
  .hero .ask-submit { min-height: 48px; }
  /* Phones: the chat always fills the screen below the header, with the
     welcome content scrolling above a pinned composer, so the input is
     visible on arrival instead of below the welcome panel. */
  .chat-page, .chat-page-active { height: calc(100vh - 72px); height: calc(100svh - 72px); min-height: 0; }
  .chat-scroll { max-height: none; padding-top: 18px; }
  .chat-ai-notice { padding: 10px 14px; font-size: 13px; }
  .chat-composer { padding-top: 8px; }
  .chat-composer .ask-box { border-radius: 10px; }
  .chat-cap-grid { grid-template-columns: 1fr; gap: 10px; max-width: 420px; }
  .chat-welcome { margin-top: 0; }
}

@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .brand-logo { height: 46px; }
  .hero { padding-top: 68px; }
  .hero-title { font-size: clamp(36px, 11vw, 46px); }
  .hero-sub { font-size: 17px; line-height: 1.55; }
  .hero .ask-input { font-size: 19px; min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dot, .msg-row:last-child, .msg-caret, .hero .ask-box, .chat-welcome { animation: none; }
  .ask-input::placeholder { transition: none; }
  .hero .hero-inner > * { opacity: 1; transform: none; animation: none; }
  .main-nav, .main-nav a, .nav-backdrop, .nav-toggle-lines span, .faq summary::after { transition: none; }
  .landing-main [data-section-reveal] > .container,
  .landing-main [data-section-reveal] .step,
  .landing-main [data-section-reveal] .route-card,
  .landing-main [data-section-reveal] .vert-card,
  .landing-main [data-section-reveal] .process-card,
  .landing-main [data-section-reveal] .why-item,
  .landing-main [data-section-reveal] .faq details {
    opacity: 1;
    transform: none;
    translate: none;
    transition: none;
  }
}
