/* =============================================================
   biostatisticsexpert.com — shared design system
   Lei Li, Ph.D. — Biostatistics Expert Witness
   Authoritative, academic, restrained. Navy + brass/gold.
   Light ("Chambers") + Dark ("Eclipse") themes via tokens.
   ============================================================= */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="light"] {
  --bg:        #fbfaf7;
  --bg-2:      #f4f0e8;
  --bg-3:      #ece6d9;
  --band:      #0e2647;      /* deep navy band background */
  --band-2:    #0a1d38;
  --surface:   #ffffff;
  --surface-2: #fbfaf7;

  --ink:       #14233b;      /* headings */
  --ink-body:  #2b3a4f;      /* body copy */
  --ink-soft:  #4c5a70;
  --ink-mut:   #6c7890;
  --on-band:       #eef3fb;  /* text on navy band */
  --on-band-soft:  #b9c6da;

  --line:    #e6dfd0;
  --line-2:  #d6cdba;
  --line-band: rgba(255,255,255,0.12);

  --navy:    #0e2647;
  --navy-deep:#0a1d38;
  --gold:    #9c7c3f;        /* text-contrast gold (on light) */
  --gold-bright:#c2a25f;
  --link:    #1f4f86;
  --link-hover:#143864;

  /* primary CTA adapts per theme */
  --cta-bg:   #0e2647;
  --cta-ink:  #ffffff;
  --cta-bg-hover:#143462;

  --eyebrow:  #9c7c3f;

  --chip-bg:    #ffffff;
  --chip-border:#ded5c2;
  --chip-ink:   #2b3a4f;

  --input-bg:     #ffffff;
  --input-border: #cabfa6;
  --input-border-2:#bfb59c;
  --input-focus:  #0e2647;
  --input-ring:   rgba(14,38,71,0.14);

  --ok-bg:   #ecf6ee;
  --ok-ink:  #1f7a43;
  --ok-border:#bfe3c9;
  --err-ink: #b42323;
  --err-border:#e6b4b4;

  --shadow-sm: 0 1px 2px rgba(16,28,48,0.05), 0 1px 3px rgba(16,28,48,0.07);
  --shadow-md: 0 6px 16px -8px rgba(16,28,48,0.18), 0 2px 6px -2px rgba(16,28,48,0.10);
  --shadow-lg: 0 28px 60px -28px rgba(14,38,71,0.32), 0 10px 24px -12px rgba(16,28,48,0.16);

  --nav-bg:  rgba(251,250,247,0.85);
  --footer-bg: #0a1d38;

  --radius:   14px;
  --radius-sm:10px;
  --radius-lg:20px;
  --maxw:     1140px;
  --maxw-prose: 720px;
  --nav-h:    68px;
}

[data-theme="dark"] {
  --bg:        #0a1626;
  --bg-2:      #0e1d31;
  --bg-3:      #12243c;
  --band:      #0c1f38;
  --band-2:    #081526;
  --surface:   #102239;
  --surface-2: #0e1d31;

  --ink:       #eef3fb;
  --ink-body:  #cdd7e6;
  --ink-soft:  #a9b6c9;
  --ink-mut:   #8593a8;
  --on-band:       #eef3fb;
  --on-band-soft:  #b9c6da;

  --line:    rgba(255,255,255,0.10);
  --line-2:  rgba(255,255,255,0.18);
  --line-band: rgba(255,255,255,0.12);

  --navy:    #0e2647;
  --navy-deep:#0a1d38;
  --gold:    #cba86a;
  --gold-bright:#d8bd80;
  --link:    #8fb6e8;
  --link-hover:#b3d0f2;

  --cta-bg:   #cba86a;       /* gold primary in dark */
  --cta-ink:  #0a1626;
  --cta-bg-hover:#d8bd80;

  --eyebrow:  #cba86a;

  --chip-bg:    rgba(255,255,255,0.04);
  --chip-border:rgba(255,255,255,0.14);
  --chip-ink:   #cdd7e6;

  --input-bg:     #0c1c30;
  --input-border: rgba(255,255,255,0.18);
  --input-border-2:rgba(255,255,255,0.28);
  --input-focus:  #cba86a;
  --input-ring:   rgba(203,168,106,0.22);

  --ok-bg:   rgba(31,122,67,0.14);
  --ok-ink:  #7fd49a;
  --ok-border:rgba(127,212,154,0.35);
  --err-ink: #f0a0a0;
  --err-border:rgba(240,160,160,0.4);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px -10px rgba(0,0,0,0.55);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,0.7);

  --nav-bg:  rgba(10,22,38,0.82);
  --footer-bg: #081526;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.05rem, 1.4rem + 2.7vw, 3.35rem); letter-spacing: -0.018em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0.3rem 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cta-bg); color: var(--cta-ink); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.25rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--alt { background: var(--bg-2); }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--eyebrow); margin: 0 0 0.85rem;
}
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); font-size: 1.075rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.6; }
.center { text-align: center; }
.section-head.center { margin-inline: auto; }
.muted { color: var(--ink-mut); }
.small { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.98rem; font-weight: 600; line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all 0.16s ease;
}
.btn--primary { background: var(--cta-bg); color: var(--cta-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--cta-bg-hover); color: var(--cta-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--ink); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.btn--on-band { background: var(--gold-bright); color: #0a1626; }
.btn--on-band:hover { background: #d8bd80; color: #0a1626; transform: translateY(-1px); }
.btn--ghost-band { background: transparent; color: var(--on-band); border-color: var(--line-band); }
.btn--ghost-band:hover { border-color: var(--gold-bright); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.25rem; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: "Source Serif 4", serif; font-weight: 700; font-size: 1.04rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mut); font-weight: 600; white-space: nowrap; }
.nav-links .nav-cta-mobile { display: none; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.93rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; transition: all 0.14s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--line-2); color: var(--ink-soft); cursor: pointer; transition: all 0.14s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-cta { }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-cta.btn { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
    background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.75rem clamp(1.1rem,4vw,2rem) 1.25rem;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform 0.22s ease; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.8rem 0.6rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta-mobile { display: block; }
  .nav-links .nav-cta-mobile a { margin-top: 0.7rem; padding: 0.85rem; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand svg { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .hero-sub { font-size: 1.16rem; color: var(--ink-soft); line-height: 1.6; max-width: 38ch; margin-bottom: 1.5rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.trust-strip li {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 500; color: var(--chip-ink);
  background: var(--chip-bg); border: 1px solid var(--chip-border); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.trust-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.hero-contact { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.hero-contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hero-contact a:hover { color: var(--link-hover); }

.headshot-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--band);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 4 / 5;
}
.headshot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 320px; }
  .hero .hero-sub { max-width: none; }
}

/* ---------- Navy band (differentiator / CTA bands) ---------- */
.band { background: var(--band); color: var(--on-band); position: relative; }
.band h1, .band h2, .band h3, .band h4 { color: #fff; }
.band p { color: var(--on-band-soft); }
.band .eyebrow { color: var(--gold-bright); }
.band a { color: #fff; }
.band .lead, .band .small, .band .muted { color: var(--on-band-soft); }
/* contact aside on a navy band */
.band .contact-line { border-bottom-color: var(--line-band); }
.band .contact-aside .cl-label { color: var(--on-band-soft); }
.band .contact-aside .cl-value { color: #fff; }
.band .contact-aside .ci { background: rgba(255,255,255,0.06); color: var(--gold-bright); border-color: var(--line-band); }
.band .breadcrumb { color: var(--on-band-soft); }
.band .breadcrumb a { color: var(--on-band-soft); }
.band .breadcrumb a:hover { color: #fff; }
.band-note { font-size: 0.85rem; color: var(--on-band-soft); border-top: 1px solid var(--line-band); margin-top: 1.75rem; padding-top: 1.25rem; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem 2rem; margin-top: 1.5rem; }
.value-item { }
.value-item .vi-num { font-family: "Source Serif 4", serif; font-size: 1.1rem; color: var(--gold-bright); font-weight: 700; }
.value-item h3 { color: #fff; font-size: 1.08rem; margin: 0.35rem 0 0.4rem; }
.value-item p { color: var(--on-band-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
a.card.card--link h3 { transition: color 0.14s ease; }
a.card.card--link:hover h3 { color: var(--gold); }
.card h3 { font-family: "Inter", sans-serif; font-weight: 650; font-size: 1.08rem; color: var(--ink); margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.card-ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 0.95rem;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface)); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
}
.card-ic svg { width: 22px; height: 22px; }
.card-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }

/* feature list (checkmark bullets) */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 1.7rem; margin: 0.55rem 0; color: var(--ink-body); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px;
  background: var(--gold); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat;
}
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"); }

/* two-track services */
.track { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.track .track-tag { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); padding: 0.25rem 0.6rem; border-radius: 6px; margin-bottom: 0.85rem; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--chip-ink); background: var(--chip-bg); border: 1px solid var(--chip-border); border-radius: 999px; padding: 0.4rem 0.85rem; }
.band .chip { color: var(--on-band); background: rgba(255,255,255,0.05); border-color: var(--line-band); }

/* callout / quote */
.callout {
  background: var(--bg-2); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem; font-size: 1.1rem; color: var(--ink-body); line-height: 1.6;
}
.callout--quote { font-family: "Source Serif 4", serif; font-style: italic; }

/* representative matters */
.matter { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--surface); }
.matter .matter-tag { font-size: 0.78rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.matter h3 { font-family: "Inter", sans-serif; font-size: 1.05rem; margin: 0.3rem 0 0.5rem; }
.matter p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.confidential { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; font-weight: 600; color: var(--ink-mut); margin-top: 0.7rem; }

/* about summary */
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(1.75rem,4vw,3rem); align-items: start; }
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-body); display: flex; gap: 0.65rem; }
.cred-list li:last-child { border-bottom: none; }
.cred-list .cl-year { color: var(--gold); font-weight: 600; flex: none; min-width: 4.5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 800px){ .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: "Source Serif 4", serif; font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.3rem; top: 1.4rem; width: 14px; height: 14px;
  background: var(--gold); -webkit-mask: var(--plus) center/contain no-repeat; mask: var(--plus) center/contain no-repeat; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
:root { --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v14h-2z'/%3E%3Cpath fill='black' d='M5 11h14v2H5z'/%3E%3C/svg%3E"); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.15rem; margin: 0; max-width: 70ch; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem,4vw,3rem); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .contact-line { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.contact-aside .contact-line:last-child { border-bottom: none; }
.contact-aside .ci { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); color: var(--gold); border: 1px solid color-mix(in srgb,var(--gold) 26%, transparent); }
.contact-aside .ci svg { width: 19px; height: 19px; }
.contact-aside .cl-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mut); font-weight: 600; }
.contact-aside .cl-value { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-aside .cl-value:hover { color: var(--link-hover); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.97rem; color: var(--ink); background: var(--input-bg);
  border: 1.5px solid var(--input-border-2); border-radius: 9px; padding: 0.7rem 0.85rem; transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--input-focus); box-shadow: 0 0 0 3px var(--input-ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.83rem; color: var(--ink-mut); line-height: 1.5; background: var(--bg-2); border-radius: 9px; padding: 0.8rem 0.9rem; margin: 0.25rem 0 1.1rem; }
.form-note a { color: var(--link); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; border-radius: 9px; padding: 0.85rem 1rem; font-size: 0.93rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-border); }
.form-status.err { background: color-mix(in srgb, var(--err-ink) 10%, transparent); color: var(--err-ink); border: 1px solid var(--err-border); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin: 0.5rem auto 1.75rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-mut); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--link-hover); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.6; }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { max-width: 65ch; color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- Prose (articles, legal) ---------- */
.prose { max-width: var(--maxw-prose); margin-inline: auto; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-family: "Source Serif 4", serif; font-size: 1.25rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-body); }
.prose a { color: var(--link); }
.prose blockquote { margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.25rem; border-left: 3px solid var(--gold); color: var(--ink-soft); font-style: italic; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--bg-2); padding: 0.12em 0.4em; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5rem 0; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.88rem; color: var(--ink-mut); margin-bottom: 0.5rem; }
.article-meta .cat { color: var(--gold); font-weight: 600; }
.article-disclaimer { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; color: var(--ink-mut); line-height: 1.6; }

/* article cards (hub) */
.article-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.article-card .cat { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; margin-bottom: 0.55rem; }
.article-card h3 { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-bottom: 0.5rem; }
.article-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.article-card .read-more { color: var(--link); font-weight: 600; font-size: 0.9rem; margin-top: 0.85rem; }
.coming-soon { opacity: 0.72; }
.coming-soon .read-more { color: var(--ink-mut); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.cat-pills .chip { background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b9c6da; padding-block: 3rem 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: 0.9rem; color: #94a3bb; margin-top: 0.85rem; max-width: 34ch; }
.footer-col h4 { font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8aa; color: #8a99b3; font-weight: 700; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.5rem 0; }
.footer-col a { color: #b9c6da; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-contact .small { color: #94a3bb; font-weight: 400; }
.footer-disclaimer { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #8597af; line-height: 1.6; }
.footer-bottom { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #8597af; }
.footer-bottom a { color: #b9c6da; text-decoration: none; }
.footer-bottom .footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* utility */
.stack-sm > * + * { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.grid-gap-lg { gap: 1.5rem; }
.nowrap { white-space: nowrap; }
