/* ==========================================================================
   Millrace Acquisitions — site stylesheet
   Visual language: architectural blueprint / drafting sheet
   ========================================================================== */

:root {
  --bp-950: #061a2e;
  --bp-900: #0a2540;
  --bp-850: #0c2e50;
  --bp-800: #0f3a63;
  --bp-700: #164c80;
  --bp-600: #1f62a3;
  --line: rgba(173, 216, 255, 0.55);
  --line-soft: rgba(173, 216, 255, 0.16);
  --line-faint: rgba(173, 216, 255, 0.07);
  --cyan: #9fd8ff;
  --paper: #f4f1e8;
  --paper-2: #ebe6d6;
  --paper-line: rgba(15, 58, 99, 0.09);
  --paper-line-strong: rgba(15, 58, 99, 0.18);
  --ink: #0f2238;
  --ink-2: #3a4c61;
  --ink-3: #526174;
  --accent: #f26b2a;
  --accent-dark: #a8411a;
  --white: #ffffff;
  --radius: 2px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bp-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1.1em; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--white); padding: 8px 12px; }

/* ---------- surfaces ---------- */
.blueprint {
  background-color: var(--bp-900);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: #e6f2ff;
}
.blueprint h1, .blueprint h2, .blueprint h3, .blueprint h4 { color: var(--white); }
.blueprint a { color: var(--cyan); }
.blueprint a:hover { color: var(--white); }
.vellum {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(48px, 6vw, 72px) 0; }

/* ---------- annotation labels ---------- */
.label {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.label::after { content: ""; flex: 0 0 64px; height: 1px; background: currentColor; opacity: .6; }
.blueprint .label { color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }
.blueprint .lede { color: #c8def3; }
.note { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.blueprint .note { color: var(--cyan); opacity: .8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 22px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  border-radius: var(--radius);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary { background: #b8481c; border-color: #b8481c; color: var(--white); }
.btn.primary:hover { background: #963815; border-color: #963815; color: var(--white); }
.blueprint .btn { color: var(--white); border-color: rgba(255,255,255,.7); }
.blueprint .btn:hover { background: var(--white); color: var(--bp-900); }
.blueprint .btn.primary { color: var(--white); border-color: #b8481c; }
.blueprint .btn.primary:hover { background: #963815; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- utility strip + header ---------- */
.strip {
  background: var(--bp-950); color: #8fb4d6; font-family: var(--f-mono);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.strip a { color: #cfe5fa; text-decoration: underline; text-underline-offset: 3px; }
.strip .hide-sm { opacity: .85; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 37, 64, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wm-1 { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .14em; }
.brand .wm-2 { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .42em; color: var(--cyan); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a.nl, .nav button.nl {
  display: block; padding: 10px 10px; color: #dbe9f7; text-decoration: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer;
}
.nav a.nl:hover, .nav button.nl:hover, .nav a.nl[aria-current="page"], .nav .active > .nl { color: var(--white); }
.nav a.nl[aria-current="page"], .nav .active > .nl { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .dd {
  position: absolute; top: 100%; left: 0; min-width: 290px; list-style: none; margin: 0; padding: 10px 0;
  background: var(--bp-900); border: 1px solid var(--line-soft); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: none;
}
.nav li:hover > .dd, .nav li:focus-within > .dd, .nav li.open > .dd { display: block; }
.nav .dd a { display: flex; gap: 12px; padding: 10px 18px; color: #dbe9f7; text-decoration: none; font-size: .95rem; }
.nav .dd a:hover { background: var(--bp-800); color: var(--white); }
.nav .dd .code { font-family: var(--f-mono); font-size: .72rem; color: var(--accent); padding-top: 3px; width: 38px; }
.nav .cta { margin-left: 10px; padding: 11px 16px; font-size: .74rem; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--white); padding: 8px 12px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; cursor: pointer; }

@media (max-width: 1220px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--bp-900); flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 40px; overflow-y: auto; display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a.nl, .nav button.nl { padding: 14px 4px; font-size: .9rem; border-bottom: 1px solid var(--line-faint); width: 100%; text-align: left; }
  .nav a.nl[aria-current="page"], .nav .active > .nl { box-shadow: none; color: var(--accent); }
  .nav .dd { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .nav .cta { margin: 20px 0 0; justify-content: center; }
  .strip .hide-sm { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.22rem; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px 24px; margin-top: 38px; padding-top: 22px; border-top: 1px dashed var(--line); }
.hero-meta div { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.hero-meta strong { display: block; font-family: var(--f-head); font-size: 2rem; letter-spacing: .02em; color: var(--white); font-weight: 600; }

/* detail view frame — photo presented like a drawing callout */
.detail { position: relative; padding: 26px; }
.detail .frame { position: relative; border: 1px solid var(--line); padding: 10px; }
.detail .frame img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.detail .frame.wide img { aspect-ratio: 3/2; }
.detail .tick { position: absolute; width: 18px; height: 18px; border-color: var(--accent); border-style: solid; }
.detail .tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.detail .tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.detail .bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.detail .br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.detail .dim-h, .detail .dim-v { position: absolute; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; color: var(--cyan); }
.detail .dim-h { left: 36px; right: 36px; top: 0; height: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.detail .dim-h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.detail .dim-h span { position: relative; background: var(--bp-900); padding: 0 8px; }
.detail .dim-v { top: 36px; bottom: 36px; right: 0; width: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.detail .dim-v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--line); }
.detail .dim-v span { position: relative; background: var(--bp-900); padding: 8px 0; writing-mode: vertical-rl; }
.vellum .detail .dim-h span, .vellum .detail .dim-v span, .paper .detail .dim-h span, .paper .detail .dim-v span { background: var(--paper); }
.vellum .detail .dim-h, .vellum .detail .dim-v, .paper .detail .dim-h, .paper .detail .dim-v { color: var(--bp-700); }
.vellum .detail .frame, .paper .detail .frame { border-color: var(--paper-line-strong); }
.vellum .detail .dim-h, .vellum .detail .dim-v, .vellum .detail .dim-h::before, .vellum .detail .dim-v::before,
.paper .detail .dim-h, .paper .detail .dim-v, .paper .detail .dim-h::before, .paper .detail .dim-v::before { border-color: rgba(22,76,128,.45); }
.callout {
  position: absolute; left: -6px; bottom: 54px; max-width: 250px;
  background: var(--paper); color: var(--ink); padding: 14px 16px; border-left: 3px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .9rem; line-height: 1.45;
}
.callout .note { display: block; margin-bottom: 4px; color: var(--accent-dark); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .detail .frame img { aspect-ratio: 4/3; }
  .callout { position: relative; left: auto; bottom: auto; margin-top: -30px; margin-left: 16px; }
}

/* ---------- page header with title block ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-soft); }
.page-head-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: end; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-head .lede { margin-bottom: 0; }
.crumbs { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.crumbs a { color: var(--cyan); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.titleblock { border: 1px solid var(--line); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #cfe3f7; }
.titleblock .tb-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-soft); }
.titleblock .tb-row:last-child { border-bottom: 0; }
.titleblock .tb-cell { padding: 8px 10px; border-right: 1px solid var(--line-soft); }
.titleblock .tb-cell:last-child { border-right: 0; }
.titleblock .tb-cell.full { grid-column: 1 / -1; }
.titleblock small { display: block; color: #7fa6cb; font-size: .62rem; margin-bottom: 2px; }
.titleblock b { font-weight: 500; color: var(--white); font-size: .78rem; }
.titleblock .tb-logo { display: flex; align-items: center; gap: 10px; }
.titleblock .tb-logo svg { width: 28px; height: 28px; }
.page-hero-img { height: clamp(220px, 30vw, 400px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.25), rgba(10,37,64,.0) 40%, rgba(10,37,64,.55));
}
.page-hero-img .tag {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 18px; font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: rgba(10,37,64,.75); padding: 6px 10px; border: 1px solid var(--line);
}
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } .titleblock { max-width: 420px; } }

/* ---------- layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split-60 { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .split, .split-60 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; max-width: 18em; }
.section-head p { max-width: 34em; margin: 0; color: var(--ink-2); }
.blueprint .section-head p { color: #c8def3; }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--paper-line-strong); padding: 28px;
  display: flex; flex-direction: column;
}
.card::before, .card::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--accent); }
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .note { margin-bottom: 10px; }
.blueprint .card { background: rgba(6, 26, 46, .55); border-color: var(--line-soft); }
.blueprint .card p { color: #c2d8ee; }

.spec-card { text-decoration: none; color: var(--ink); padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.spec-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,37,64,.16); color: var(--ink); }
.spec-card .img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.spec-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.spec-card:hover .img img { transform: scale(1.04); }
.spec-card .img .code {
  position: absolute; top: 12px; left: 12px; background: var(--bp-900); color: var(--white); font-family: var(--f-mono);
  font-size: .7rem; letter-spacing: .12em; padding: 4px 8px;
}
.spec-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.spec-card .body p { flex: 1; }
.spec-card .more { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- stats (dimension lines) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat { padding: 34px 24px; border-right: 1px dashed var(--line-soft); position: relative; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-head); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--white); }
.stat .num sup { font-size: .45em; color: var(--accent); margin-left: 2px; }
.stat .dim { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; color: var(--accent); }
.stat .dim::before, .stat .dim::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.stat .dim i { width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
.stat p { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #a9c6e2; margin: 0; }
.vellum .stats, .paper .stats { border-color: var(--paper-line-strong); }
.vellum .stat, .paper .stat { border-color: var(--paper-line-strong); }
.vellum .stat .num, .paper .stat .num { color: var(--bp-900); }
.vellum .stat p, .paper .stat p { color: var(--ink-3); }
.vellum .stat .dim::before, .vellum .stat .dim::after, .paper .stat .dim::before, .paper .stat .dim::after { background: var(--paper-line-strong); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px dashed var(--line-soft); } }

/* ---------- process / method ---------- */
.race { position: relative; margin-top: 12px; }
.race-channel { height: 28px; position: relative; margin: 0 0 32px; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); overflow: hidden; }
.race-channel::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(159,216,255,.55) 22px 34px, transparent 34px 56px);
  mask: linear-gradient(transparent 46%, #000 46% 54%, transparent 54%);
  -webkit-mask: linear-gradient(transparent 46%, #000 46% 54%, transparent 54%);
  animation: flow 2.4s linear infinite;
}
@keyframes flow { to { transform: translateX(56px); } }
@media (prefers-reduced-motion: reduce) { .race-channel::before { animation: none; } html { scroll-behavior: auto; } }
.race-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.race-step { padding: 0 20px 0 0; position: relative; }
.race-step .stage { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.race-step h3 { font-size: 1.8rem; text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 8px; }
.race-step p { font-size: .95rem; color: #c2d8ee; }
.race-step .node { position: absolute; top: -48px; left: 0; width: 14px; height: 14px; border: 2px solid var(--accent); background: var(--bp-900); border-radius: 50%; }
.race-step .ico { width: 46px; height: 46px; color: var(--cyan); margin-bottom: 10px; }
@media (max-width: 960px) {
  .race-channel { display: none; }
  .race-steps { grid-template-columns: 1fr; gap: 28px; border-left: 1.5px solid var(--line); padding-left: 26px; }
  .race-step .node { top: 6px; left: -34px; }
}

/* method page — stage sheets */
.sheet { border: 1px solid var(--paper-line-strong); background: var(--white); margin-bottom: 40px; display: grid; grid-template-columns: 260px 1fr; }
.sheet-side { background: var(--bp-900); color: var(--white); padding: 30px 26px; position: relative; }
.sheet-side .num { font-family: var(--f-head); font-size: 5.4rem; line-height: .9; font-weight: 600; color: var(--accent); }
.sheet-side h3 { font-size: 2.1rem; text-transform: uppercase; margin: 10px 0 6px; color: var(--white); }
.sheet-side .note { color: var(--cyan); }
.sheet-side svg { width: 72px; height: 72px; color: var(--cyan); margin-top: 24px; }
.sheet-main { padding: 32px 36px; }
.sheet-main h4 { margin-top: 20px; color: var(--bp-700); }
.sheet-main ul { padding-left: 1.1em; margin: 0 0 1em; }
.sheet-main li { margin-bottom: .35em; color: var(--ink-2); }
.deliverable { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--bp-600); background: rgba(31,98,163,.05); font-size: .95rem; }
.deliverable .note { color: var(--bp-700); white-space: nowrap; }
@media (max-width: 820px) { .sheet { grid-template-columns: 1fr; } .sheet-side svg { display: none; } }

/* ---------- lists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--paper-line-strong); color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.blueprint .checks li { border-color: var(--line-soft); color: #d4e6f7; }
.legend { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.legend li { counter-increment: lg; display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--paper-line-strong); }
.legend li::before { content: counter(lg, decimal-leading-zero); font-family: var(--f-mono); font-size: .82rem; color: var(--accent-dark); border: 1px solid currentColor; height: 30px; display: grid; place-items: center; }
.legend b { display: block; font-family: var(--f-head); font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; }
.legend span { color: var(--ink-2); font-size: .97rem; }
.blueprint .legend li { border-color: var(--line-soft); }
.blueprint .legend span { color: #c2d8ee; }
.blueprint .legend li::before { color: var(--accent); }

/* ---------- spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); }
.spec-table td { color: var(--ink); }
.spec-table a { color: var(--bp-700); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--paper-line-strong); vertical-align: top; }
.spec-table th { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); width: 38%; background: var(--paper); }
.spec-table caption { text-align: left; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; background: var(--bp-900); color: var(--white); }
.table-scroll { overflow-x: auto; }

/* ---------- tombstones ---------- */
.tombstone { background: var(--white); border: 1px solid var(--paper-line-strong); padding: 26px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; position: relative; }
.tombstone .tag { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.tombstone .who { font-family: var(--f-head); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.tombstone .via { font-size: .82rem; color: var(--ink-3); font-style: italic; }
.tombstone .what { font-size: .93rem; color: var(--ink-2); }
.tombstone hr { border: 0; border-top: 1px dashed var(--paper-line-strong); width: 60%; margin: 6px auto; }
.tombstone .yr { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .1em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--paper-line-strong); background: var(--white); color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--bp-900); border-color: var(--bp-900); color: var(--white); }

/* ---------- quote ---------- */
.quote { position: relative; padding: 40px 0 0; }
.quote blockquote { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.2; }
.quote blockquote::before { content: "“"; position: absolute; top: -18px; left: -6px; font-size: 7rem; color: var(--accent); line-height: 1; font-family: Georgia, serif; }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.blueprint .quote cite { color: var(--cyan); }

/* ---------- team ---------- */
.person { background: var(--white); border: 1px solid var(--paper-line-strong); }
.person .ph { aspect-ratio: 1/1; overflow: hidden; background: var(--bp-900); position: relative; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; opacity: .95; transition: filter .3s, opacity .3s; }
.person:hover .ph img { filter: grayscale(0); mix-blend-mode: normal; opacity: 1; }
.person .ph .loc { position: absolute; bottom: 10px; left: 10px; background: rgba(10,37,64,.85); color: var(--white); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; padding: 4px 8px; text-transform: uppercase; }
.person .info { padding: 18px 20px 22px; }
.person h3 { font-size: 1.45rem; margin-bottom: 2px; }
.person .role { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.person p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .split { align-items: stretch; }
.cta-box { border: 1px solid var(--line); padding: 32px; position: relative; display: flex; flex-direction: column; }
.cta-box h3 { font-size: 2rem; text-transform: uppercase; }
.cta-box p { color: #c2d8ee; flex: 1; }
.cta-box .note { margin-bottom: 8px; }

/* ---------- forms ---------- */
.form-shell { background: var(--white); border: 1px solid var(--paper-line-strong); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--paper-line-strong); }
.tabs button {
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 20px 16px;
  background: var(--paper); border: 0; border-right: 1px solid var(--paper-line-strong); color: var(--ink-2); cursor: pointer; text-align: left;
}
.tabs button:last-child { border-right: 0; }
.tabs button b { display: block; font-family: var(--f-head); font-size: 1.4rem; letter-spacing: .02em; text-transform: none; color: var(--ink); font-weight: 600; margin-top: 2px; }
.tabs button[aria-selected="true"] { background: var(--white); box-shadow: inset 0 3px 0 var(--accent); }
.form-panel { padding: clamp(22px, 4vw, 40px); }
.form-panel[hidden] { display: none; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c5ccd4; background: #fbfaf6; color: var(--ink); border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bp-600); outline-offset: 0; border-color: var(--bp-600); background: var(--white); }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .93rem; color: var(--ink); border: 1px solid #c5ccd4; padding: 8px 12px; cursor: pointer; background: #fbfaf6; }
.chips input { width: auto; accent-color: var(--accent); }
.chips label:has(input:checked) { border-color: var(--bp-700); background: rgba(31,98,163,.08); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--paper-line-strong); }
.form-foot .note { max-width: 36em; text-transform: none; letter-spacing: .02em; font-size: .78rem; }
.form-success { display: none; padding: 32px; border: 1px dashed var(--bp-600); background: rgba(31,98,163,.05); }
.form-success.show { display: block; }
.form-success h3 { text-transform: uppercase; }
.hp { position: absolute; left: -9999px; }
.side-box { border: 1px solid var(--paper-line-strong); background: var(--white); padding: 26px; margin-bottom: 24px; }
.side-box h4, .side-box .sbh { color: var(--bp-700); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.side-box p { font-size: .95rem; color: var(--ink-2); }
.office { padding: 14px 0; border-top: 1px dashed var(--paper-line-strong); font-size: .93rem; }
.office b { font-family: var(--f-head); font-size: 1.2rem; letter-spacing: .03em; display: block; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--paper-line-strong); padding: 0; }
.faq details:last-child { border-bottom: 1px solid var(--paper-line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-family: var(--f-head); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--f-mono); font-size: 1.6rem; color: var(--accent-dark); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 52em; }
.faq-group { margin-bottom: 56px; }
.faq-group > .label { margin-bottom: 8px; }

/* ---------- articles ---------- */
.post-card { text-decoration: none; color: var(--ink); }
.post-card:hover { color: var(--ink); }
.post-card .img { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--paper-line-strong); }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .img img { transform: scale(1.04); }
.post-card h3 { font-size: 1.6rem; }
.post-card:hover h3 { color: var(--bp-700); }
.post-card p { color: var(--ink-2); font-size: .97rem; }
.prose { max-width: 46em; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #26384c; font-size: 1.07rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--f-head); font-size: 1.6rem; line-height: 1.25; color: var(--ink); }
.prose .fig { margin: 2em 0; }
.prose .fig img { width: 100%; border: 1px solid var(--paper-line-strong); }
.prose .fig figcaption { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--ink-3); margin-top: 8px; text-transform: uppercase; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.byline div { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #c2d8ee; }
.byline b { display: block; color: var(--white); font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 0; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer h4, .site-footer h2.fh { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfe3f7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { color: #a9c6e2; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-tb { border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8fb4d6; }
.foot-tb > div { padding: 14px 14px; border-right: 1px solid var(--line-soft); }
.foot-tb > div:first-child { padding-left: 0; }
.foot-tb > div:last-child { border-right: 0; }
.foot-tb small { display: block; color: #7fa6cb; font-size: .6rem; margin-bottom: 3px; }
.foot-legal { border-top: 1px solid var(--line-soft); padding: 18px 0 26px; font-size: .78rem; color: #7fa6cb; line-height: 1.6; }
.foot-legal a { color: #a9c6e2; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-tb { grid-template-columns: 1fr 1fr; } .foot-tb > div { border-bottom: 1px solid var(--line-soft); padding-left: 0; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.img-frame { position: relative; border: 1px solid var(--paper-line-strong); padding: 10px; background: var(--white); }
.img-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.img-frame .cap { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 2px 0; display: flex; justify-content: space-between; }
.blueprint .img-frame { background: transparent; border-color: var(--line); }
.blueprint .img-frame .cap { color: var(--cyan); }
.pill { display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; padding: 4px 10px; margin: 0 6px 8px 0; color: var(--bp-700); }
.blueprint .pill { color: var(--cyan); }
.divider-dim { display: flex; align-items: center; gap: 12px; margin: 0 0 40px; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .12em; }
.divider-dim::before, .divider-dim::after { content: ""; flex: 1; height: 1px; background: var(--paper-line-strong); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; }
.kv dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.kv dd { margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.legal h2 { font-size: 1.7rem; margin-top: 1.8em; }
.e404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.e404 .big { font-family: var(--f-head); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--accent); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.faq-group h2.label { font-size: .78rem; }
