/* Self-hosted fonts (SIL Open Font License 1.1), Latin subset. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/IBMPlexMono-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/PublicSans-400-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/SourceSerif4-italic-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/SourceSerif4-normal-500-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Colors. Buttons use dark text on the gold accent: white on #B8862B is only 3.2:1. */
:root {
  --navy: #13233A;
  --bg: #FFFFFF;
  --band: #F6F4EF;
  --surface: #FFFFFF;
  --accent: #B8862B;
  --accent-hover: #A7781F;
  --accent-ink: #14202E;
  --text: #1E2833;
  --muted: #59636F;
  --rule: #DCE0E5;
  --link: #1F4A7A;
  --focus: #1F4A7A;
  --error: #B42318;
  --ok: #2E7D50;
  --ph-bg: #FFF2B8;
  --ph-ink: #6B5200;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0B1626;
    --bg: #12181F;
    --band: #182029;
    --surface: #182029;
    --accent: #D4A24C;
    --accent-hover: #E0B263;
    --accent-ink: #14202E;
    --text: #E6E9ED;
    --muted: #A3ACB7;
    --rule: #2C3642;
    --link: #9CC3EE;
    --focus: #9CC3EE;
    --error: #FF9B8F;
    --ok: #6CC08F;
    --ph-bg: #4A3B0A;
    --ph-ink: #FFE08A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Elements hidden by script (e.g. filtered code rows) stay hidden even when a rule sets their display. */
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--text); margin: 0; letter-spacing: -0.005em; }
h3 { font: 600 1.05rem/1.35 var(--sans); color: var(--text); margin: 0; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); line-height: 1.2; }
code, .mono-input { font-family: var(--mono); font-size: 0.92em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro { color: var(--muted); max-width: 62ch; margin: 10px 0 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border-radius: 4px; border: 1px solid transparent; font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.text-link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 2px solid var(--accent); }
.bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: block; line-height: 0; margin-right: auto; }
.logo { height: 38px; width: auto; }
.logo-print { display: none; }
.nav ul { list-style: none; margin: 0; padding: 4px 20px 12px; display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 2px solid var(--accent); }
.nav ul.open { display: block; }
.nav a { color: #D6DDE6; text-decoration: none; font-size: 0.95rem; }
.nav li a { display: block; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.nav a:hover, .nav a[aria-current="true"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.btn-header { min-height: 38px; padding: 7px 14px; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: #fff; }

/* Hero */
.hero { padding: 40px 0 44px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.12; max-width: 18ch; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 54ch; margin: 18px 0 10px; }
.status-line { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.response { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
.id-block { border-left: 1px solid var(--rule); padding: 2px 0 2px 24px; }
.id-block h2 { font: 600 0.95rem var(--sans); margin-bottom: 6px; }
.id-block dl { margin: 0; }
.id-block dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.id-block dt { color: var(--muted); font-size: 0.9rem; }
.id-block dd { margin: 0; text-align: right; font-weight: 600; }
.verify { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; font-size: 0.9rem; }
.ext { margin-left: 3px; font-size: 0.85em; }
.as-of { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); }
.ident { display: inline-flex; align-items: center; gap: 4px; }
.ident code { font-size: 0.98rem; font-weight: 500; user-select: all; }
.copy { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; background: none; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer; }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy:hover { color: var(--text); background: var(--band); }
.copy.done { color: var(--ok); }

/* Sections */
section { padding: 52px 0; }
section.band { background: var(--band); }

/* What we do: three columns with thin dividers */
.services { display: grid; margin-top: 28px; }
.service { padding: 20px 0; border-top: 1px solid var(--rule); }
.service h3 { font: 600 1.35rem var(--serif); margin-bottom: 10px; }
.service ul { margin: 0 0 14px; padding-left: 1.15em; }
.service li { margin: 4px 0; }
.service li::marker { color: var(--muted); }
.service-meta { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.codes-inline { font-family: var(--mono); font-size: 0.82rem; }

/* About */
.about { display: grid; gap: 28px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 3px; }
.note { font: 400 1.14rem/1.65 var(--serif); margin-top: 14px; max-width: 60ch; }
.note p { margin: 0 0 14px; }
.signature { margin: 6px 0 0; font-weight: 600; }
.signature span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }

/* Codes */
.filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; margin: 0 0 12px; font-size: 0.95rem; }
.filters-label { color: var(--muted); }
.filter { font: inherit; background: none; border: 0; padding: 6px 0; color: var(--link); cursor: pointer; border-bottom: 2px solid transparent; }
.filter[aria-pressed="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
table.codes { width: 100%; border-collapse: collapse; }
.codes thead { display: none; }
.codes tr { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.codes td { padding: 0; }
.c-code code { font-weight: 500; user-select: all; }
.c-type { justify-self: end; color: var(--muted); font-size: 0.85rem; }
.c-desc { grid-column: 1 / -1; }
.c-line { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
.primary { font-style: normal; color: var(--muted); font-size: 0.9em; }

/* Plain definition lists (How we work, plans) */
.plain-list { margin: 22px 0 0; }
.plain-list div { padding: 16px 0; border-top: 1px solid var(--rule); }
.plain-list dt { font-weight: 600; }
.plain-list dd { margin: 4px 0 0; color: var(--text); }
.plain-list dd p { margin: 0; }
table.mini { border-collapse: collapse; width: 100%; max-width: 520px; font-size: 0.95rem; }
.mini th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 16px 4px 0; vertical-align: top; }
.mini td { padding: 4px 0; font-weight: 600; }

/* Teaming */
.teaming { display: grid; gap: 24px; }
.teaming .intro { margin-bottom: 20px; }
.teaming-list { margin: 0; padding-left: 1.15em; }
.teaming-list li { margin: 0 0 12px; }

/* People and past work: plain rows */
.rows { margin-top: 18px; }
.row { display: grid; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--rule); }
.row h3 { font-size: 1.08rem; }
.row-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.row-body p { margin: 0 0 6px; }
.result strong { font-weight: 600; }

/* Company information */
.company { display: grid; margin: 18px 0 0; }
.company div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.company dt { color: var(--muted); }
.company dd { margin: 0; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
.contact-info > p { color: var(--muted); margin: 10px 0 20px; max-width: 44ch; }
.poc { margin: 0; }
.poc div { padding: 10px 0; border-top: 1px solid var(--rule); }
.poc dt { color: var(--muted); font-size: 0.9rem; }
.poc dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.buying { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--text); }
.buying h3 { margin-bottom: 6px; }
.buying p { margin: 0 0 10px; }
.rfq { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 22px; }
.fields { display: grid; gap: 16px; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 44px; font: 400 1rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid #8C96A1; border-radius: 3px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 132px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="file"] { min-height: 0; padding: 8px; border-style: dashed; cursor: pointer; }
.hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.file-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.file-list:empty { display: none; }
.file-list li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 3px 3px 10px; border: 1px solid var(--rule); border-radius: 4px; font-size: 0.88rem; }
.file-list .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.file-list .fsize { color: var(--muted); font-size: 0.8rem; }
.file-list button { width: 28px; height: 28px; border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.file-list button:hover { background: var(--band); color: var(--text); }
.btn-submit { width: 100%; margin-top: 20px; }
.form-status { font-size: 0.95rem; margin: 12px 0 0; min-height: 1.4em; }
.form-banner { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid; }
.form-banner.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.form-banner.err { border-color: var(--error); background: color-mix(in srgb, var(--error) 10%, var(--surface)); }
.form-success { border-left: 4px solid var(--ok); }
.form-success h3 { font: 600 1.5rem var(--serif); margin-bottom: 8px; }
.form-success p { margin: 0 0 18px; }
.form-success .ref { font-family: var(--mono); }
.privacy { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer, back to top */
.site-footer { background: var(--navy); color: #B9C3D0; font-size: 0.88rem; padding: 22px 0 28px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-ids code { color: #fff; font-size: 0.9em; user-select: all; }
.sep { margin: 0 8px; opacity: 0.5; }
.foot-print { color: #D6DDE6; margin-left: auto; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; padding: 9px 14px; border-radius: 4px; background: var(--surface); color: var(--text); border: 1px solid var(--rule); box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-size: 0.88rem; font-weight: 600; text-decoration: none; }

/* ── Wider screens ── */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .nav ul { padding-left: 28px; padding-right: 28px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .btn-submit { width: auto; min-width: 160px; }
  .company { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .codes thead { display: table-header-group; }
  .codes tr { display: table-row; padding: 0; }
  .codes th, .codes td { display: table-cell; padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
  .codes thead th { border-top: 0; border-bottom: 2px solid var(--text); font-size: 0.9rem; color: var(--muted); font-weight: 600; }
  .c-type, .c-line { font-size: 0.92rem; }
  .plain-list.wide-terms div { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; }
  .plain-list.wide-terms dd { margin: 0; }
  .row { grid-template-columns: 16rem 1fr; }
  .about { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; }
  .about.no-photo { grid-template-columns: 1fr; max-width: 860px; }
}
@media (min-width: 960px) {
  :root { --header-h: 68px; }
  .logo { height: 44px; }
  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 64px; align-items: start; }
  section { padding: 72px 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .service { padding: 4px 28px 0; border-top: 0; border-left: 1px solid var(--rule); }
  .service:first-child { padding-left: 0; border-left: 0; }
  .teaming { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; }
  .rfq { padding: 28px; }
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .nav ul { display: flex; gap: 24px; position: static; background: none; padding: 0; border: 0; }
  .nav li a { display: inline; padding: 0; border: 0; white-space: nowrap; }
  .nav { margin-right: 10px; }
}

/* Print: a short capability statement on white */
@media print {
  @page { size: letter; margin: 0.5in; }
  :root { --bg: #fff; --band: #fff; --surface: #fff; --text: #1E2833; --muted: #59636F; --rule: #DCE0E5; color-scheme: light; }
  body { font-size: 9.5pt; line-height: 1.4; }
  .site-header { position: static; background: none; border-bottom: 2px solid #1E2833; }
  .logo { display: none; }
  .logo-print { display: block; height: 40pt; width: auto; }
  .nav, .menu-btn, .btn, .actions, .filters, .copy, .rfq, .form-success, .foot-print, .response, .intro, .skip, .to-top, .about-photo, .verify, .buying { display: none !important; }
  .hero, section { padding: 10pt 0; border: 0; break-inside: avoid; }
  .hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20pt; }
  .hero h1 { font-size: 20pt; }
  h2 { font-size: 13pt; }
  .services { display: grid; grid-template-columns: repeat(3, 1fr); }
  .service { padding: 0 8pt; border-top: 0; border-left: 1px solid #DCE0E5; }
  .service:first-child { border-left: 0; padding-left: 0; }
  .codes thead { display: table-header-group; }
  .codes tr { display: table-row; }
  .codes td, .codes th { display: table-cell; padding: 2pt 6pt 2pt 0; border-top: 1px solid #DCE0E5; font-size: 8.5pt; }
  .company { grid-template-columns: 1fr 1fr; column-gap: 20pt; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { background: none; color: #59636F; }
  .foot-ids code { color: #1E2833; }
  a { color: inherit; text-decoration: none; }
}
