/* ==========================================================================
   Mobile Forensic Expert Witness — a Law & Forensics litigation resource
   Design system: classic-authoritative legal-tech
   Navy / charcoal / muted blue. Source Serif 4 + Public Sans + IBM Plex Mono.
   ========================================================================== */

:root {
  /* Palette */
  --navy: #16243f;
  --navy-900: #0e1730;
  --navy-700: #1f3357;
  --blue: #3b5b8c;
  --blue-600: #2f4a73;
  --blue-light: #c9d3e0;
  --blue-tint: #eef2f8;
  --paper: #ffffff;
  --bg: #f6f8fb;
  --bg-alt: #eef1f6;
  --ink: #1b2436;
  --ink-soft: #3a4452;
  --muted: #5d6878;
  --muted-2: #6c7689;
  --line: #e2e7f0;
  --line-strong: #cdd6e3;
  --gold: #9a7b3f;            /* sparingly: exhibit/seal accent */
  --danger: #9b2c2c;
  --ok: #1f6b4a;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 60, .06), 0 1px 3px rgba(16, 31, 60, .05);
  --shadow-md: 0 10px 30px -12px rgba(16, 31, 60, .22);
  --shadow-lg: 0 30px 60px -24px rgba(16, 31, 60, .32);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
strong { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--bg { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #d7deea; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Eyebrow / labels (monospace evidence motif) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px; background: var(--blue); opacity: .6;
}
.section--navy .eyebrow { color: var(--blue-light); }
.section--navy .eyebrow::before { background: var(--blue-light); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.section--navy .lede { color: #c4cee0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--navy-900);
  color: #aebbd0;
  font-size: .8rem;
  font-family: var(--mono);
  letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #cdd7e8; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; align-items: center; }
.topbar__left .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 7px; vertical-align: middle; }
@media (max-width: 760px) { .topbar__left span.hide-sm { display: none; } }

.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  border-radius: 3px;
  position: relative;
}
.brand__mark::after { content:""; position:absolute; inset:3px; border:1px solid rgba(255,255,255,.32); border-radius:2px; }
.brand__name { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.06rem; line-height: 1.1; letter-spacing: -.01em; }
.brand__sub { display:block; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: var(--radius);
  color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--blue-tint); color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 700; }

/* dropdown */
.nav-item { position: relative; }
.nav-item > a .caret { font-size: .7em; opacity: .6; margin-left: 4px; }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .16s ease; list-style: none; margin: 0;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { padding: 9px 12px; border-radius: var(--radius); font-size: .9rem; }
.nav-menu a small { display: block; color: var(--muted-2); font-weight: 400; font-size: .78rem; }

/* Services mega menu (Law & Forensics style: category columns) */
.nav-mega { min-width: 660px; padding: 24px 22px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 30px; border-top: 3px solid var(--blue); left: 0; }
.nav-mega__col { display: flex; flex-direction: column; min-width: 0; }
.nav-mega__col + .nav-mega__col { position: relative; }
.nav-mega__head { font-family: var(--mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); padding: 2px 10px 9px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.nav-mega a { display: block; padding: 8px 10px; border-radius: var(--radius); font-size: .9rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.nav-mega a:hover { background: var(--blue-tint); color: var(--navy); box-shadow: inset 2px 0 0 var(--blue); }
.nav-mega__cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px 10px 2px; border-top: 1px solid var(--line); }
.nav-mega__cta span { font-size: .85rem; color: var(--muted); }
.nav-mega__cta .btn { padding: 10px 16px; font-size: .85rem; flex: none; }
.nav-mega__cta .btn:hover { box-shadow: var(--shadow-md); }
@media (max-width: 1160px) { .nav-mega { min-width: 560px; gap: 4px 20px; } }

/* Credibility panel (brand-safe stand-in for firm photo / headshots) */
.cred-panel { position: relative; overflow: hidden; min-height: 360px; border-radius: var(--radius-lg); border: 1px solid #25324f; background: var(--navy-900); color: #dbe3f0; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; box-shadow: var(--shadow-lg); }
.cred-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cred-panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(165deg, rgba(14,23,48,.28) 0%, rgba(14,23,48,.74) 60%, rgba(14,23,48,.93) 100%); }
.cred-panel > *:not(.cred-bg) { position: relative; z-index: 2; }
.cred-seal { width: 62px; height: 62px; color: var(--blue-light); }
.cred-seal .ring { fill: none; stroke: currentColor; opacity: .45; }
.cred-seal .disc { fill: rgba(255,255,255,.04); stroke: currentColor; opacity: .8; }
.cred-seal .check { fill: none; stroke: #7fd0a3; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cred-tag { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.7rem); color: #fff; line-height: 1.14; margin: 0; letter-spacing: -.01em; }
.cred-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cred-points li { position: relative; padding-left: 22px; font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; color: #9fb0cb; }
.cred-points li::before { content: ""; position: absolute; left: 0; top: .42em; width: 7px; height: 7px; background: var(--gold); border-radius: 1px; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .2s; }
.nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* mobile drawer */
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.mobile-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mobile-nav .btn { margin-top: 14px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: .16s ease; text-align: center;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #876b34; color:#fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); background: var(--blue-tint); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink-soft); padding: 9px 14px; }
.btn--ghost:hover { color: var(--navy); }
.btn--light { background:#fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-light); color: var(--navy); }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }
.btn .arrow { transition: transform .16s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #cdd7e8; overflow: hidden; }
.hero::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 78%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: #dbe3f0; font-family: var(--serif); font-style: italic; margin-bottom: 1em; line-height: 1.4; }
.hero__copy { color: #b9c4d8; max-width: 60ch; margin-bottom: 1.8em; }
.hero .btn-row { margin-bottom: 1.8em; }
.hero__assure { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: #8c9bb5; display:flex; gap: 8px; align-items:flex-start; }
@media (max-width: 920px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: .18s ease; display: flex; flex-direction: column; height: 100%;
}
a.card, .card--link { cursor: pointer; }
a.card:hover, .card--link:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__num { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--blue); margin-bottom: 14px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1em; }
.card__link { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.card .arrow { transition: transform .16s; }
a.card:hover .arrow, .card--link:hover .arrow { transform: translateX(3px); }

/* icon chip */
.chip { width: 46px; height: 46px; border-radius: var(--radius); background: var(--blue-tint); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; color: var(--navy); }
.chip svg { width: 22px; height: 22px; }

/* ---------- Evidence motifs ---------- */
/* metadata / artifact panel */
.artifact {
  background: var(--navy-900); color: #c7d2e6; border-radius: var(--radius-lg);
  font-family: var(--mono); font-size: .82rem; line-height: 1.7; overflow: hidden;
  border: 1px solid #25324f; box-shadow: var(--shadow-lg);
}
.artifact__bar { display:flex; align-items:center; gap: 8px; padding: 11px 16px; background: #0a1226; border-bottom: 1px solid #25324f; color: #8ea1c2; font-size: .72rem; letter-spacing: .08em; }
.artifact__bar .d { width: 9px; height: 9px; border-radius: 50%; background: #2a3a5c; }
.artifact__body { padding: 18px 20px; }
.artifact__row { display: grid; grid-template-columns: 132px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #1f2c46; }
.artifact__row:last-child { border-bottom: none; }
.artifact__row .k { color: #6f82a6; }
.artifact__row .v { color: #e4ebf7; }
.artifact__row .v.flag { color: #e8b06b; }
.artifact__row .v.ok { color: #7fd0a3; }

/* chain-of-custody timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content:""; position:absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 26px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__node { position: absolute; left: 8px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); display: grid; place-items: center; }
.timeline__node::after { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline .step-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--blue); }
.timeline h4 { margin: 4px 0 .3em; font-family: var(--serif); }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }

/* exhibit tag */
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: #fff; border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: 3px; }
.tag::before { content:""; width: 7px; height: 7px; background: var(--gold); border-radius: 1px; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border-radius: 3px; background: var(--blue-tint); border: 1px solid var(--line-strong);
}
.checklist li::after { content:""; position:absolute; left: 6px; top: 7px; width: 6px; height: 10px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.checklist--q li::before { background: #fff; }
.checklist--q li::after { content:"?"; border:none; left: 6px; top: 2px; transform:none; font-family: var(--mono); color: var(--blue); font-size: .8rem; font-weight: 600; }

/* feature list with rules */
.deflist { border-top: 1px solid var(--line); margin: 0; }
.deflist > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-family: var(--serif); color: var(--navy); font-size: 1.1rem; font-weight: 600; margin: 0; }
.deflist dd { margin: 0; color: var(--muted); }
@media (max-width: 640px){ .deflist > div { grid-template-columns: 1fr; gap: 6px; } }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li { font-size: .9rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; }
.section--bg .pills li, .section--alt .pills li { background:#fff; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats > div { background: #fff; padding: 26px 22px; }
.stats .n { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.4rem); color: var(--navy); font-weight: 600; line-height: 1; }
.stats .l { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.stats .ph { font-family: var(--mono); font-size: .62rem; color: var(--gold); letter-spacing: .1em; margin-top: 6px; }
@media (max-width: 760px){ .stats { grid-template-columns: repeat(2,1fr); } }

/* placeholder image */
.ph-img {
  position: relative; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(45deg, rgba(59,91,140,.06) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; min-height: 220px; color: var(--muted-2);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; text-align: center; padding: 20px;
}
.ph-img span { max-width: 30ch; }
.ph-img--dark { background-color: #0d1730; border-color: #2a3a5c; color: #6f82a6; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }

/* callout / disclaimer */
.callout { border-left: 3px solid var(--blue); background: var(--blue-tint); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout--warn { border-left-color: var(--gold); background: #faf6ee; }
.callout p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.callout strong { color: var(--navy); }

.disclaimer { font-size: .82rem; color: var(--muted-2); line-height: 1.55; }

/* section heading block */
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-top: .3em; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 880px){ .split, .split--wide-left { grid-template-columns: 1fr; gap: 40px; } }

/* breadcrumb / page hero */
.page-hero { background: var(--navy); color: #c4cee0; position: relative; overflow: hidden; }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(100% 120% at 85% 10%, #000 20%, transparent 75%);
          mask-image: radial-gradient(100% 120% at 85% 10%, #000 20%, transparent 75%);
}
.page-hero__inner { position: relative; padding-block: clamp(48px, 6vw, 80px); max-width: 860px; }
.page-hero h1 { color:#fff; }
.page-hero .lede { color: #c9d3e4; }
.crumb { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: #8c9bb5; margin-bottom: 20px; text-transform: uppercase; }
.crumb a { color: #aebbd0; } .crumb a:hover { color:#fff; }
.crumb span { margin: 0 8px; opacity: .5; }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--navy); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .5em; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 7px; }
.field .req { color: var(--danger); }
.field .hint { font-weight: 400; color: var(--muted-2); font-size: .82rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; transition: .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,91,140,.15); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(155,44,44,.12); }
.field .err { color: var(--danger); font-size: .82rem; margin-top: 6px; display: none; }
.field.show-err .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
@media (max-width: 640px){ .check-grid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--ink-soft); font-weight: 400; cursor: pointer; padding: 4px 0; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display:flex; align-items:center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; font-weight: 500; color: var(--ink-soft); font-size: .9rem; }
.radio-row input { accent-color: var(--navy); }
.radio-row label:has(input:checked) { border-color: var(--navy); background: var(--blue-tint); color: var(--navy); }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px; }
.fieldset > legend { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); padding: 0 8px; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; background: var(--bg); }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-tint); color: var(--navy); }
.dropzone .files { margin-top: 12px; font-family: var(--mono); font-size: .8rem; color: var(--navy); }
.conditional { display: none; }
.conditional.show { display: block; }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.show { display: block; }
.form-success .seal { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue-tint); border: 2px solid var(--blue); display: grid; place-items: center; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0cb; font-size: .92rem; }
.footer-top { padding-block: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px){ .footer-top { grid-template-columns: 1fr; } }
.site-footer h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6f82a6; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b6c4dc; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #8194b3; max-width: 38ch; font-size: .9rem; margin-top: 14px; }
.footer-contact { font-family: var(--mono); font-size: .82rem; color: #b6c4dc; line-height: 2; }
.footer-bottom { border-top: 1px solid #1c2942; padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.footer-bottom p { margin: 0; color: #6f82a6; font-size: .8rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { font-size: .8rem; color: #8194b3; }
.footer-disc { background: #0a1020; }
.footer-disc .container { padding-block: 18px; }
.footer-disc p { margin: 0; font-size: .76rem; color: #97a6c0; line-height: 1.6; }

/* utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.text-center{text-align:center}
.divider { height:1px; background: var(--line); border:0; margin: 0; }
.kbd { font-family: var(--mono); font-size: .9em; background: var(--blue-tint); padding: 1px 6px; border-radius: 3px; color: var(--navy); }
@media (prefers-reduced-motion: reduce){ * { scroll-behavior: auto !important; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ---------- Insights / articles ---------- */
.byline { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: #8c9bb5; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.byline strong { color: #d7deea; font-weight: 600; }
.byline .sep { opacity: .45; }
.page-hero .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #dbe3f0; margin-bottom: 18px; }
.page-hero .tag::before { background: var(--gold); }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 304px; gap: clamp(34px, 5vw, 66px); align-items: start; }
@media (max-width: 940px){ .article-layout { grid-template-columns: 1fr; } }
.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 940px){ .article-aside { position: static; } }

.prose .callout { margin: 1.6em 0; }
.prose .tag { margin: 0 0 .4em; }

.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.aside-card h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.aside-card .checklist li { font-size: .92rem; margin-bottom: 11px; }
.aside-card--cta { background: var(--navy); border-color: var(--navy-700); }
.aside-card--cta h4 { color: var(--blue-light); }
.aside-card--cta h3 { color: #fff; font-size: 1.18rem; margin-bottom: .35em; }
.aside-card--cta p { color: #c4cee0; font-size: .92rem; margin-bottom: 1.1em; }
.aside-card--cta .btn { width: 100%; }

.cites { margin-top: 2.6em; border-top: 1px solid var(--line); padding-top: 1.3em; }
.cites h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.cites ol { font-size: .85rem; color: var(--muted); padding-left: 1.3em; }
.cites li { margin-bottom: .5em; }
.source-note { margin-top: 1.8em; font-size: .85rem; color: var(--muted-2); font-style: italic; }

/* insights index */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .post-cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.post-card h3 { margin-bottom: .4em; }
.post-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }
.post-card .post-meta { margin-top: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted-2); padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.post-card .post-meta .arrow { margin-left: auto; color: var(--navy); transition: transform .16s; }
a.post-card:hover .post-meta .arrow { transform: translateX(3px); }

/* ---------- Accessibility ---------- */
.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; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 8px; top: -52px; z-index: 200; background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 0; color: #fff; }
:where(a, .btn, .card, button, .dropzone, summary):focus-visible { outline: 3px solid #8fb0e6; outline-offset: 2px; }
.nav-links a:focus-visible, .mobile-nav a:focus-visible, .site-footer a:focus-visible, .topbar a:focus-visible { outline-offset: -2px; }
