/* Silver Ghost LLC — site styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ghost: #0e1828;      /* page background: deep navy */
  --plate: #13233a;      /* alternate band, a step lighter */
  --ink: #0b1420;        /* brand navy (capability statement header) */
  --ink-soft: #1e3a5f;   /* brand band blue */
  --blue: #224b89;       /* logo blue */
  --sky: #8fb2ee;        /* logo blue, lightened for text and rules on navy */
  --text: #e8edf3;       /* body text */
  --steel: #a2b2c4;      /* secondary text */
  --rule: #283b53;       /* hairlines, borders */
  --tag: #f4c430;        /* serviceable-tag yellow: actions */
  --tag-deep: #e0b021;
  --on-ink: #e3e9f0;
  --on-ink-soft: #b3c0cf;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  background: var(--ghost);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--tag);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--tag); }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { color: #fff; }
.tag-band :focus-visible, .plate :focus-visible { outline-color: var(--ink); }
.tag-band h2 { color: var(--ink); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0; max-width: 62ch; }
p + p { margin-top: 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--tag); color: var(--ink);
  padding: 0.75rem 1rem; font-weight: 600; z-index: 200;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink); color: #fff; border-bottom: 4px solid var(--ink-soft);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header .wrap { transition: min-height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.site-header .brand, .site-header .brand img { transition: height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), padding 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.site-header.is-stuck { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.75); border-bottom-width: 2px; }
.site-header.is-stuck .wrap { min-height: 3.9rem; }
.site-header.is-stuck .brand { padding-block: 0.5rem; }
.site-header.is-stuck .brand img { height: 2.2rem; }
[id] { scroll-margin-top: 5.5rem; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; min-height: 5rem; flex-wrap: wrap;
}
.site-header :focus-visible { outline-color: var(--tag); }
.brand {
  display: inline-flex; align-items: center; gap: 0.85rem;
  text-decoration: none; padding-block: 0.75rem;
}
.brand img { height: 2.75rem; width: auto; flex: none; border-radius: 2px; }
.brand-name {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1; color: #fff;
}
.brand-name small {
  font-family: var(--body); font-stretch: normal; font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--on-ink-soft);
  margin-left: 0.35rem;
}

.nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--on-ink);
  padding: 0.55rem 0.8rem; border-radius: 4px;
}
.nav a:hover { background: #1a2a3d; color: #fff; }
.nav a { position: relative; }
.nav a[aria-current="page"] { color: #fff; }
.nav-ind { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.15rem; height: 2px; background: var(--tag); view-transition-name: nav-ind; }
.nav a.btn { margin-left: 0.5rem; color: var(--ink); padding: 0.7rem 1.1rem; }
.nav a.btn:hover { background: var(--tag-deep); color: var(--ink); }

.nav-toggle {
  display: none;
  font: 500 0.98rem var(--body); color: #fff;
  background: none; border: 1px solid #3b4d62; border-radius: 4px;
  padding: 0.6rem 0.95rem; cursor: pointer;
}

@media (max-width: 54rem) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 0.85rem 0.25rem; border-top: 1px solid #22344a; border-radius: 0; }
  .js .nav a[aria-current="page"] { font-weight: 600; }
  .js .nav-ind { display: none; }
  .js .nav a.btn { margin: 0.75rem 0 0; border-top: 0; padding: 0.9rem 1.15rem; text-align: center; border-radius: 4px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 1rem/1.2 var(--body);
  padding: 0.85rem 1.25rem; border-radius: 4px;
  border: 1px solid transparent;
  background: var(--tag); color: var(--ink);
}
.btn:hover { background: var(--tag-deep); }
.btn-line { background: transparent; border-color: var(--text); color: var(--text); }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(118deg, #f2f5f8 0%, #e1e6ec 50%, #d2d9e1 100%);
  border-bottom: 1px solid var(--rule);
}
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.hero .lead { margin-top: 1.5rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--on-ink); max-width: 54ch; }

.page-head { background: var(--ink); border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-block: clamp(2.75rem, 7vw, 5rem); }
.page-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); }
.page-head .lead { margin-top: 1.25rem; }

@media (max-width: 58rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Split head: navy text panel beside a photograph ---------- */

.head-split {
  background: var(--ink); color: #fff;
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--wrap) / 2 - var(--gutter)))
    minmax(0, calc(var(--wrap) / 2 - var(--gutter)))
    minmax(var(--gutter), 1fr);
}
.head-split .head-text {
  grid-column: 2; align-self: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
}
.head-split.is-page .head-text { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.head-split .head-photo { grid-column: 3 / 5; position: relative; min-height: 21rem; overflow: hidden; }
.head-split .head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.head-split .head-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(11, 20, 32, 0.35) 14%, rgba(11, 20, 32, 0) 34%);
}
.head-split h1 { color: #fff; }
.head-split.is-page h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.head-split.is-home h1 { font-size: clamp(2.2rem, 3.9vw, 2.9rem); }
.head-split.is-home .head-text { padding-right: clamp(1rem, 2.5vw, 2rem); }
.head-split .lead { color: var(--on-ink); margin-top: 1.25rem; }
.head-split .btn-line { border-color: #fff; color: #fff; }
.head-split .btn-line:hover { background: #fff; color: var(--ink); }
.head-split :focus-visible { outline-color: var(--tag); }
.head-codes { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin: 2rem 0 0; font-size: 0.9rem; color: var(--on-ink-soft); }
.head-codes div { display: flex; gap: 0.5rem; align-items: baseline; }
.head-codes dd { margin: 0; font-family: var(--mono); color: #fff; letter-spacing: 0.03em; }
@media (max-width: 56rem) {
  .head-split { grid-template-columns: minmax(0, 1fr); }
  .head-split .head-photo { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; }
  .head-split .head-photo::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(11, 20, 32, 0) 30%); }
  .head-split .head-text, .head-split.is-page .head-text { grid-column: 1; padding-inline: var(--gutter); padding-block: 1.75rem 2.75rem; }
}

.promise-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.promise-list li { padding: 1.35rem 0; border-top: 1px solid var(--rule); }
.promise-list p { margin-top: 0.5rem; color: var(--steel); font-size: 1rem; }

.with-photo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.with-photo figure { margin: 0; }
.with-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; border-radius: 4px; }
.rows.stacked > div { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 0; }
@media (max-width: 52rem) { .with-photo { grid-template-columns: minmax(0, 1fr); } .with-photo img { aspect-ratio: 16 / 9; } }

/* ---------- Identification plate ---------- */

.plate {
  --steel: #46566a; --rule: #b9c3ce; color: var(--ink);
  position: relative;
  padding: 2.1rem 1.75rem 1.6rem;
  border: 1px solid #a3adb6;
  border-radius: 7px;
  background:
    radial-gradient(circle at 14px 14px, #8e99a3 0 2.5px, #c9d0d6 3px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #8e99a3 0 2.5px, #c9d0d6 3px 4px, transparent 4.5px),
    radial-gradient(circle at 14px calc(100% - 14px), #8e99a3 0 2.5px, #c9d0d6 3px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #8e99a3 0 2.5px, #c9d0d6 3px 4px, transparent 4.5px),
    linear-gradient(168deg, #fbfcfc 0%, #e9edf0 46%, #f4f6f7 62%, #e2e7ea 100%);
  box-shadow: inset 0 1px 0 #fff, 0 26px 50px -24px rgba(0, 0, 0, 0.85);
}
.plate-title {
  font: 700 0.95rem/1.2 var(--display); font-stretch: 125%;
  letter-spacing: 0; margin: 0 0 0.9rem; max-width: none;
}
.plate dl { margin: 0; }
.plate dl > div {
  display: grid; grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem; align-items: baseline;
  padding: 0.7rem 0; border-top: 1px solid var(--rule);
}
@media (max-width: 34rem) {
  .plate { padding-inline: 1.25rem; }
  .plate dl > div { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.6rem; }
  .code-row { flex-wrap: nowrap; }
  .copy { min-width: 0; }
}
.plate dt { font-size: 0.85rem; font-weight: 500; color: var(--steel); }
.plate dd { margin: 0; font-weight: 500; line-height: 1.4; }
.plate dd .note { display: block; font-size: 0.85rem; font-weight: 400; color: var(--steel); margin-top: 0.15rem; }
.code {
  font: 500 1.08rem/1.3 var(--mono);
  letter-spacing: 0.03em;
}
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.copy {
  font: 500 0.8rem/1 var(--body); color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.4rem 0.6rem; cursor: pointer; min-width: 4.2rem;
}
.copy:hover { border-color: var(--ink); }
.copy.is-done { background: var(--ink); color: #fff; border-color: var(--ink); }
html:not(.js) .copy { display: none; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.band-plate { background: var(--plate); border-block: 1px solid var(--rule); }
.band-ink { background: var(--ink-soft); color: var(--on-ink); }
.band-ink h2, .band-ink h3 { color: #fff; }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--steel); }
.band-ink .section-head p { color: var(--on-ink-soft); }

/* Three plain commitments */
.promises {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; list-style: none; margin: 0; padding: 0;
}
.promises li { padding: 0.25rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--rule); }
.promises li:first-child { padding-left: 0; border-left: 0; }
.promises p { margin-top: 0.6rem; color: var(--steel); font-size: 1rem; }
@media (max-width: 48rem) {
  .promises { grid-template-columns: minmax(0, 1fr); }
  .promises li { padding: 1.25rem 0; border-left: 0; border-top: 1px solid var(--rule); }
  .promises li:first-child { border-top: 0; padding-top: 0; }
}

/* How a request moves: a real sequence, so it is numbered */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem);
}
.steps li { counter-increment: step; border-top: 2px solid var(--tag); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: block; font: 800 2.6rem/1 var(--display); font-stretch: 125%;
  color: var(--tag); margin-bottom: 0.9rem;
}
.steps p { margin-top: 0.6rem; color: var(--on-ink-soft); font-size: 1rem; }
@media (max-width: 58rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Two-column split: heading left, content right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split > :first-child p { margin-top: 1rem; color: var(--steel); }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }

.ruled { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(1.5rem, 4vw, 3rem); }
.ruled li {
  break-inside: avoid; padding: 0.85rem 0; border-top: 1px solid var(--rule);
  font-weight: 500;
}
@media (max-width: 34rem) { .ruled { columns: 1; } }

/* Definition rows: term left, explanation right */
.rows { margin: 0; }
.rows > div {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem 0; border-top: 1px solid var(--rule);
}
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows dt { font: 700 1.2rem/1.2 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.rows dd { margin: 0; color: var(--on-ink-soft); max-width: 60ch; }
@media (max-width: 44rem) { .rows > div { grid-template-columns: minmax(0, 1fr); } }

.quote {
  margin: 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--sky);
  font: 600 clamp(1.3rem, 2.6vw, 1.9rem)/1.3 var(--display); font-stretch: 112%;
  letter-spacing: -0.01em; max-width: 30ch;
}
.quote cite { display: block; margin-top: 1rem; font: 400 0.95rem var(--body); color: var(--steel); font-style: normal; }

.stack > * + * { margin-top: 1em; }
.prose p { color: var(--on-ink); }
.prose h2 { margin-bottom: 1.25rem; }

.naics { list-style: none; margin: 0; padding: 0; }
.naics li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.naics .code { color: var(--sky); }
.naics em { font-style: normal; color: var(--steel); font-size: 0.9rem; }

.ruled.one { columns: 1; }
.cap-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cap-grid h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 1rem; }
.cap-grid section + section, .cap-grid .plate + section { margin-top: 2.75rem; }
.cap-grid .note-box { background: var(--plate); border-left: 4px solid var(--sky); padding: 1.15rem 1.25rem; color: var(--on-ink); }
@media (max-width: 58rem) { .cap-grid { grid-template-columns: minmax(0, 1fr); } }
.plain { margin: 0; color: var(--on-ink-soft); }
.plain strong { display: block; color: #fff; font: 700 1.15rem/1.3 var(--display); font-stretch: 125%; }

/* ---------- Tag band (call to action) ---------- */

.tag-band { background: var(--tag); color: var(--ink); }
.tag-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap; padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.tag-band h2 { display: flex; align-items: center; gap: 1.1rem; }
.tag-band h2::before {
  /* the punched eyelet on a parts tag */
  content: ""; flex: none; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--ghost); box-shadow: inset 0 0 0 0.18em var(--ink);
}
.tag-band p { margin-top: 0.6rem; }

/* ---------- Form ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 58rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
.form fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
.form legend {
  font: 700 1.2rem/1.2 var(--display); font-stretch: 125%; letter-spacing: -0.01em;
  padding: 0; margin-bottom: 1rem; width: 100%;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.7rem;
}
.form fieldset + fieldset { margin-top: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field label span { font-weight: 400; color: var(--steel); }
.field .hint { font-size: 0.88rem; color: var(--steel); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--body); color: var(--text);
  background: var(--plate); border: 1px solid #6b87a8; border-radius: 4px;
  padding: 0.75rem 0.8rem; width: 100%; min-height: 3rem;
}
.field input.mono, .field textarea.mono { font-family: var(--mono); }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--tag); outline-offset: 1px; border-color: var(--tag);
}
.check { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: flex-start; }
.check label { flex: 1 1 0; min-width: 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--tag); flex: none; }
.check label { font-weight: 500; }
.check label span { display: block; font-weight: 400; color: var(--steel); font-size: 0.92rem; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-foot p { font-size: 0.92rem; color: var(--steel); max-width: 40ch; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 34rem) {
  .form, .form fieldset { grid-template-columns: minmax(0, 1fr); }
}

.side-block + .side-block { margin-top: 2rem; }
.side-block h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.side-block p, .side-block li { color: var(--on-ink-soft); }
.side-block ul { margin: 0; padding-left: 1.1rem; }
.side-block li + li { margin-top: 0.35rem; }
.email { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-ink-soft); font-size: 0.95rem; border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand-name { color: #fff; }
.site-footer p { margin-top: 0.75rem; max-width: 38ch; }
.site-footer h2 { font: 600 0.95rem/1.2 var(--body); font-stretch: normal; letter-spacing: 0; color: #fff; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { color: var(--on-ink); }
.foot-codes { margin: 0; }
.foot-codes > div { display: flex; gap: 0.75rem; padding: 0.3rem 0; }
.foot-codes dt { width: 3.6rem; flex: none; }
.foot-codes dd { margin: 0; font-family: var(--mono); color: var(--on-ink); letter-spacing: 0.03em; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #22344a;
  display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; font-size: 0.88rem;
}
.foot-base p { margin: 0; max-width: none; }
.site-footer .foot-note { margin-top: 0.9rem; max-width: none; font-size: 0.8rem; color: #8a99aa; }

/* ---------- RFQ: controlled-information warning, errors, document checkboxes ---------- */

.cui-warning {
  grid-column: 1 / -1;
  background: var(--plate); border: 1px solid #6b87a8; border-left: 5px solid var(--tag);
  border-radius: 4px; padding: 1.2rem 1.35rem 1.3rem;
}
.cui-warning .cui-title {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font: 800 1.15rem/1.25 var(--display); font-stretch: 125%; letter-spacing: -0.01em; color: #fff;
}
.cui-mark {
  flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: -0.1rem;
  border-radius: 50%; background: var(--tag); color: var(--ink); font: 800 1rem/1 var(--display);
}
.cui-warning p { margin-top: 0.75rem; font-size: 0.98rem; color: var(--on-ink); max-width: none; }
.cui-warning strong { color: #fff; }

.form-note { grid-column: 1 / -1; font-size: 0.92rem; color: var(--steel); }

.error-summary {
  grid-column: 1 / -1;
  border: 2px solid #ff9b9b; border-radius: 4px; background: #2b1622; padding: 1rem 1.25rem;
}
.error-summary:focus-visible { outline-offset: 3px; }
.error-summary h2 { font: 700 1.1rem/1.3 var(--display); font-stretch: 125%; letter-spacing: -0.01em; color: #fff; }
.error-summary ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.error-summary li + li { margin-top: 0.3rem; }
.error-summary a { color: #ffc9c9; font-weight: 500; }
.field-error { color: #ffb3b3; font-size: 0.92rem; font-weight: 600; }
.check .field-error { flex-basis: 100%; padding-left: 2rem; }
.field [aria-invalid="true"] { border-color: #ff9b9b; border-width: 2px; }

.form fieldset.sub { display: block; grid-column: 1 / -1; margin: 0; }
.form fieldset.sub legend {
  font: 500 0.95rem/1.3 var(--body); font-stretch: normal; letter-spacing: 0;
  border: 0; padding: 0; margin-bottom: 0.6rem;
}
.form fieldset.sub legend span { font-weight: 400; color: var(--steel); }
.check-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.check-row .check label { font-weight: 400; }

.form-foot p strong { color: var(--text); }
.side-note { margin-top: 0.75rem; font-size: 0.92rem; }
.more-link { margin-top: 1rem; }
.more-link a { color: var(--sky); font-weight: 500; }

/* ---------- Footer disclaimer ---------- */

.site-footer .foot-disclaimer { margin-top: 1.25rem; color: var(--on-ink-soft); line-height: 1.55; }
.site-footer .foot-disclaimer strong { color: var(--on-ink); }

/* ---------- Text pages: compliance, accessibility ---------- */

.legal { max-width: 46rem; }
.legal > * + * { margin-top: 1rem; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2.75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--on-ink); }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.45rem; }
.legal a { color: var(--sky); }
.legal .updated { color: var(--steel); font-size: 0.95rem; }
.legal .callout { background: var(--plate); border-left: 4px solid var(--sky); padding: 1.1rem 1.25rem; }
.legal .cl { font-family: var(--mono); font-size: 0.88em; color: var(--steel); margin-right: 0.35rem; }
.legal .caps strong { font-weight: 600; letter-spacing: 0.01em; }
.toc { background: var(--plate); border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.35rem 1.25rem; }
.toc-title { font-weight: 600; color: #fff; }
.toc ol { margin: 0.6rem 0 0; padding-left: 1.6rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.toc li + li { margin-top: 0.3rem; }
@media (max-width: 40rem) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem 0.7rem 0; border-top: 1px solid var(--rule); color: var(--on-ink); }
.legal th { color: #fff; font-weight: 600; border-top: 0; padding-top: 0; }
.legal td:first-child { width: 45%; }

.foot-legal ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1rem; }
.site-footer .foot-legal li + li { margin-top: 0; }
.foot-legal a { font-size: 0.88rem; }
.foot-legal a[aria-current="page"] { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Message pages (thanks, 404) ---------- */

.message .wrap { padding-block: clamp(4rem, 12vw, 9rem); }
.message .lead { margin-top: 1.25rem; }

/* ---------- Motion ---------- */

html { scroll-behavior: smooth; }

/* Page-to-page: the header stays put, the underline slides to the new tab,
   and the page content fades through. Browsers without support just load normally. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out 0.18s ease-in both; }
::view-transition-new(page) { animation: page-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
::view-transition-group(nav-ind) { animation-duration: 0.38s; animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
/* On load: the photograph settles into place */
.head-photo img { animation: settle 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes settle { from { transform: scale(1.07); } }
.head-photo img.pos-home { object-position: 0% 60%; }
.head-photo img.pos-about { object-position: 50% 60%; }
.head-photo img.pos-services { object-position: 50% 55%; }
.head-photo img.pos-caps { object-position: 40% 50%; }

/* Switching page from partway down: the old view sinks and fades while the new page
   comes in from above, so the move to the top and the change of page happen together. */
html.sg-up main { view-transition-name: none; }
html.sg-up::view-transition-old(root) { animation: up-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.sg-up::view-transition-new(root) { animation: up-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes up-out { to { opacity: 0; transform: translateY(140px); } }
@keyframes up-in { from { opacity: 0; transform: translateY(-140px); } }
/* browsers without page transitions still get the arrival from above */
html.sg-up:not(.vt) main { animation: up-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.sg-up:not(.vt) .head-text > * { animation: none; }

/* Startup screen: shown once per visit, on the first page opened. It is only ever
   displayed when the script in the page head turns it on, and it removes itself. */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: #fff;
  animation: intro-lift 0.75s cubic-bezier(0.7, 0, 0.2, 1) 1.55s forwards;
}
.intro-inner { display: grid; justify-items: center; gap: 1.1rem; padding: var(--gutter); animation: intro-fade 0.35s ease 1.4s forwards; }
.intro-inner img { height: 4.75rem; width: auto; border-radius: 3px; animation: intro-mark 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro-name {
  font: 800 clamp(1.6rem, 5vw, 2.4rem)/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em;
  animation: intro-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
.intro-line {
  width: min(16rem, 60vw); height: 2px; background: var(--tag); transform-origin: left center;
  animation: intro-draw 0.9s cubic-bezier(0.5, 0, 0.2, 1) 0.4s both;
}
.intro-sub { font: 500 0.9rem/1 var(--body); color: var(--on-ink-soft); letter-spacing: 0.02em; animation: intro-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
@keyframes intro-mark { from { opacity: 0; transform: scale(0.8); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes intro-draw { from { transform: scaleX(0); } }
@keyframes intro-fade { to { opacity: 0; transform: translateY(-14px); } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
/* hold the page's own entrance until the screen lifts */
html.intro .head-text > *, html.intro .page-head .wrap > *, html.intro .message .wrap > * { animation-delay: 1.75s !important; }
html.intro .head-text > :nth-child(2), html.intro .page-head .wrap > :nth-child(2), html.intro .message .wrap > :nth-child(2) { animation-delay: 1.84s !important; }
html.intro .head-text > :nth-child(3), html.intro .message .wrap > :nth-child(3) { animation-delay: 1.93s !important; }
html.intro .head-text > :nth-child(4) { animation-delay: 2.02s !important; }
html.intro .head-photo img { animation-delay: 1.5s, 0s; }

/* On load: heading, intro and actions arrive in order (skipped when a page transition is already running) */
html.js:not(.vt) .head-text > *,
html.js:not(.vt) .page-head .wrap > *,
html.js:not(.vt) .message .wrap > * { animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.js:not(.vt) .head-text > :nth-child(2), html.js:not(.vt) .page-head .wrap > :nth-child(2), html.js:not(.vt) .message .wrap > :nth-child(2) { animation-delay: 0.09s; }
html.js:not(.vt) .head-text > :nth-child(3), html.js:not(.vt) .message .wrap > :nth-child(3) { animation-delay: 0.18s; }
html.js:not(.vt) .head-text > :nth-child(4), html.js:not(.vt) .message .wrap > :nth-child(4) { animation-delay: 0.27s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* On scroll: the header photograph drifts a little slower than the page */
@keyframes drift { from { translate: 0 -3%; } to { translate: 0 5%; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 56.01rem) {
    .head-split .head-photo img {
      inset: -8% 0; height: 116%;
      animation: settle 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both, drift linear both;
      animation-timeline: auto, scroll(root block);
      animation-range: normal, 0px 90vh;
    }
  }
}

/* On scroll: blocks rise into place as they enter the screen. The script adds
   .reveal only to things below the first screen, so nothing is hidden without it. */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.plate.reveal { transform: translateY(30px) scale(0.975); }
.plate.reveal.is-in { transform: none; }

/* the photo wipes open from the left */
.with-photo figure { overflow: hidden; border-radius: 4px; }
.with-photo figure.reveal { opacity: 1; transform: none; }
.with-photo figure.reveal img { clip-path: inset(0 100% 0 0); transform: scale(1.1); transition: clip-path 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms), transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
.with-photo figure.reveal.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* the process steps: the rule draws across, then the number and text follow */
.steps li { border-top: 0; background: linear-gradient(var(--tag), var(--tag)) left top / 100% 2px no-repeat; }
.steps li.reveal { opacity: 1; transform: none; background-size: 0% 2px; transition: background-size 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) var(--d, 0ms); }
.steps li.reveal.is-in { background-size: 100% 2px; }
.steps li.reveal > *, .steps li.reveal::before {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease calc(var(--d, 0ms) + 0.25s), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--d, 0ms) + 0.25s);
}
.steps li.reveal.is-in > *, .steps li.reveal.is-in::before { opacity: 1; transform: none; }

/* Responses to the pointer */
.btn { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(11, 20, 32, 0.6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.nav a, .copy, .nav-toggle { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.field input, .field select, .field textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9db4cf; }
.site-footer a, .side-block a, .plain a { transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.rows dt { transition: color 0.2s ease; }
.rows > div:hover dt { color: var(--sky); }
.js .nav.is-open { animation: menu-in 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print: the Capabilities page doubles as a capability statement ---------- */

@media print {
  @page { margin: 14mm; }
  :root { color-scheme: light; --text: #000; --steel: #333; --rule: #999; --on-ink: #000; --on-ink-soft: #222; --sky: #224b89; --ghost: #fff; --plate: #fff; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  h2, .plain strong, .band-ink h2, .band-ink h3 { color: #000 !important; }
  .site-header .nav, .nav-toggle, .tag-band, .copy, .btn-row, .skip, .foot-grid > :nth-child(2) { display: none !important; }
  .site-header, .hero, .page-head, .head-split, .band-plate, .band-ink, .site-footer { background: #fff !important; color: #000 !important; border: 0; }
  .head-photo, .foot-note, .intro-screen { display: none !important; }
  .site-header { position: static; }
  .reveal, .reveal > *, .steps li.reveal::before { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .head-split { display: block; }
  .head-split h1, .head-split .lead { color: #000 !important; }
  .head-split .head-text { padding: 0 0 4mm; }
  .band-ink h2, .band-ink h3, .site-footer h2, .site-footer .brand-name, .site-footer a, .foot-codes dd { color: #000 !important; }
  .section, .page-head .wrap, .site-footer .wrap { padding-block: 6mm; }
  .plate { box-shadow: none; background: #fff; }
  h1 { font-size: 22pt; } h2 { font-size: 15pt; }
  a { text-decoration: none; }
}
