/* RIC Data Center Flanges: site stylesheet
   Layout concept: an engineering datasheet. A readable content column (about 70ch)
   beside a sticky spec rail on wide screens, full-bleed photo bands from the
   Umbergaon works, and the loop map as the site's signature diagram. */

@font-face { font-family: "Saira Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* colour */
  --paper: #f2f5f8;          /* page ground, cool grey with a blue bias */
  --surface: #ffffff;        /* cards, header */
  --surface-2: #e8eef3;      /* table stripes, quiet panels */
  --ink: #0d1b2a;            /* body text */
  --ink-2: #3a4a5c;          /* secondary text */
  --ink-3: #5f7184;          /* captions, meta */
  --line: #d3dce4;           /* hairlines */
  --brand: #005094;          /* RIC blue, from the logo */
  --brand-strong: #003c70;   /* hover, pressed */
  --link: #005094;
  --cold: #0a7fa3;           /* supply side, technology cooling loop */
  --hot: #b5521c;            /* return side, forging */
  --on-brand: #ffffff;
  --focus: #e3a21a;
  --band: #0f2236;           /* dark photo band ground */
  --on-band: #e9f0f6;

  /* type */
  --font-display: "Saira Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.9vw, 3.35rem);

  /* space */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --measure: 70ch;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b131b;
    --surface: #111c27;
    --surface-2: #172532;
    --ink: #e6edf4;
    --ink-2: #b6c3cf;
    --ink-3: #8899a9;
    --line: #243443;
    --brand: #2f7fc6;
    --brand-strong: #4a95d8;
    --link: #7db8ec;
    --cold: #4cc0de;
    --hot: #f0894a;
    --on-brand: #ffffff;
    --band: #07101a;
    --on-band: #e6edf4;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: var(--gutter); top: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mono, code, .val { font-family: var(--font-mono); font-weight: 500; font-size: 0.92em; }
.tnum { font-variant-numeric: tabular-nums; }
small, .small { font-size: var(--step--1); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand picture, .brand img { width: 168px; height: auto; }
.brand .lockup { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 12px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: var(--radius); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"], .nav a.is-section { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1.2; padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.nav .btn { margin-left: 8px; padding: 10px 16px; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--on-brand); box-shadow: none; }

.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu .panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter); display: grid; gap: 2px; box-shadow: 0 12px 24px rgb(0 0 0 / 0.08); }
.menu .panel a { padding: 12px 8px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu .panel .btn { margin-top: 10px; border-bottom: 0; color: var(--on-brand); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand .lockup { display: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--step--1); color: var(--ink-3); padding-block: 18px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-3); }

/* ---------- page head ---------- */
.page-head { padding-block: 22px 34px; display: grid; gap: 16px; }
.page-head .lede { margin-top: 2px; }
.page-head .meta { font-size: var(--step--1); color: var(--ink-3); }

/* ---------- hero (home) ---------- */
.hero { padding-block: 34px 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem); }
.hero .lede { margin-top: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero figure { margin: 0; }
.hero figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.hero figcaption { margin-top: 8px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

figcaption, .caption { font-size: var(--step--1); color: var(--ink-3); line-height: 1.45; }

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof li { padding: 16px 18px; border-left: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.15; }
.proof span { font-size: 0.86rem; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 980px) {
  .proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .proof li:nth-child(-n+2) { border-top: 0; }
  .proof li:last-child { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section + .section { padding-top: 8px; }
.section-head { display: grid; gap: 10px; margin-bottom: 26px; max-width: 74ch; }
.section-head p { color: var(--ink-2); }
.band { background: var(--band); color: var(--on-band); }
.band h2, .band h3 { color: var(--on-band); }
.band .section-head p, .band p { color: color-mix(in srgb, var(--on-band) 82%, transparent); }
.band a { color: #9fd0f5; }
.band .eyebrow { color: color-mix(in srgb, var(--on-band) 65%, transparent); }

/* ---------- article layout with spec rail ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-bottom: 56px; }
.doc.no-rail { grid-template-columns: minmax(0, 1fr); }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 18px; }
@media (max-width: 1080px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail { position: static; order: -1; }
}

.prose { max-width: var(--measure); min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose strong { font-weight: 600; }
.prose .answer { font-size: var(--step-1); line-height: 1.5; color: var(--ink); border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }

/* spec card */
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spec h2 { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px 10px; border-bottom: 1px solid var(--line); margin: 0; }
.spec dl { margin: 0; padding: 4px 16px 10px; display: grid; }
.spec dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.spec dl > div:last-child { border-bottom: 0; }
.spec dt { font-size: 0.84rem; color: var(--ink-3); }
.spec dd { margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: 0.86rem; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.spec .spec-cta { padding: 0 16px 16px; display: grid; gap: 8px; }
.spec .spec-cta .btn { width: 100%; }
.spec .spec-cta p { font-size: 0.84rem; color: var(--ink-3); }

.toc { background: transparent; border-left: 2px solid var(--line); padding: 4px 0 4px 14px; }
.toc h2 { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35; display: block; }
.toc a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 1080px) { .toc { display: none; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose .table-wrap { margin-top: 1.3em; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; caption-side: top; padding: 12px 14px 0; font-size: var(--step--1); color: var(--ink-3); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; font-size: 0.84rem; color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td .val, td code { white-space: nowrap; }

/* ---------- callouts ---------- */
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cold); padding: 14px 16px; border-radius: var(--radius); }
.note.warn { border-left-color: var(--hot); }
.note > * + * { margin-top: 0.5em; }
.note strong:first-child { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; }
a.card:hover { border-color: var(--brand); color: var(--ink); }
a.card:hover h3 { color: var(--brand); }
.card h3 { font-size: 1.22rem; }
.card p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.5; }
.card .kv { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }
.card.has-img { padding: 0; overflow: hidden; }
.card.has-img .card-body { padding: 14px 18px 16px; display: grid; gap: 8px; }
.card.has-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ---------- loop map (signature) ---------- */
.loopmap { position: relative; }
.loop-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.86rem; color: var(--ink-3); margin-bottom: 18px; }
.loop-legend span { display: inline-flex; align-items: center; gap: 8px; }
.loop-legend i { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--cold); }
.loop-legend i.r { border-top-color: var(--hot); border-top-style: dashed; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.station { position: relative; padding: 0 12px; min-width: 0; display: flex; flex-direction: column; }
.station .node { position: relative; height: 54px; }
.station .node::before, .station .node::after { content: ""; position: absolute; left: 0; right: 0; height: 0; }
.station .node::before { top: 18px; border-top: 3px solid var(--cold); }
.station .node::after { top: 34px; border-top: 3px dashed var(--hot); }
.station:first-child .node::before, .station:first-child .node::after { left: 50%; }
.station:last-child .node::before, .station:last-child .node::after { right: 50%; }
.station .node b { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; color: var(--brand); z-index: 1; }
.station .loop-tag { display: block; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; min-height: 2.6em; }
.station a.st { flex: 1; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); }
.station a.st .fl { margin-top: auto; }
.station a.st:hover { border-color: var(--brand); }
.station a.st:hover h3 { color: var(--brand); }
.station h3 { font-size: 1.12rem; }
.station p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.station .fl { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); line-height: 1.55; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.band .station a.st { background: color-mix(in srgb, var(--band) 70%, #1b3550); border-color: #2a4560; color: var(--on-band); }
.band .station h3 { color: var(--on-band); }
.band .station p { color: color-mix(in srgb, var(--on-band) 80%, transparent); }
.band .station .fl { color: var(--on-band); border-top-color: #35506b; }
.band .station .node b { background: var(--band); border-color: #6fb3ea; color: #a9d4f6; }
.band .loop-legend, .band .station .loop-tag { color: color-mix(in srgb, var(--on-band) 66%, transparent); }
@media (max-width: 980px) {
  .stations { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .station { padding: 0 0 0 64px; }
  .station .node { position: absolute; left: 0; top: 0; bottom: 0; width: 54px; height: auto; }
  .station .node::before, .station .node::after { left: auto; right: auto; top: 0; bottom: 0; width: 0; height: auto; border-top: 0; }
  .station .node::before { left: 18px; border-left: 3px solid var(--cold); }
  .station .node::after { left: 32px; border-left: 3px dashed var(--hot); }
  .station:first-child .node::before, .station:first-child .node::after { top: 26px; left: auto; }
  .station:first-child .node::before { left: 18px; }
  .station:first-child .node::after { left: 32px; }
  .station:last-child .node::before, .station:last-child .node::after { bottom: calc(100% - 26px); right: auto; }
  .station .node b { left: 4px; top: 4px; transform: none; }
  .station .loop-tag { text-align: left; min-height: 0; margin-top: 0; padding-top: 14px; }
  .station a.st { margin: 8px 0 22px; }
}

/* ---------- photo grid ---------- */
.photos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.photos figure { margin: 0; min-width: 0; }
.photos img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; border-radius: var(--radius); }
.photos .w8 img { aspect-ratio: 8 / 5; }
.photos .tall img { aspect-ratio: 4 / 5; }
.photos .w6 { grid-column: span 6; }
.photos .w4 { grid-column: span 4; }
.photos .w8 { grid-column: span 8; }
.photos .w3 { grid-column: span 3; }
.photos figcaption { margin-top: 6px; }
.band .photos figcaption { color: color-mix(in srgb, var(--on-band) 70%, transparent); }
@media (max-width: 860px) { .photos .w6, .photos .w4, .photos .w8, .photos .w3 { grid-column: span 12; } .photos .w8 img, .photos .tall img { aspect-ratio: 3 / 2; } }

/* ---------- facts list ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.facts dt { font-size: 0.84rem; color: var(--ink-3); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.band .facts, .band .facts > div { border-color: #2a4560; }
.band .facts dt { color: color-mix(in srgb, var(--on-band) 66%, transparent); }

/* ---------- two-col split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--cold); border-bottom: 2px solid var(--cold); transform: rotate(-45deg); }

/* ---------- RFQ band ---------- */
.rfq-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rfq-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-block: 48px; align-items: center; }
.rfq-band ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.rfq-band .contact-lines { display: grid; gap: 10px; }
.rfq-band .contact-lines .btn { justify-self: start; }
@media (max-width: 900px) { .rfq-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .form .row { grid-template-columns: minmax(0, 1fr); } .form { padding: 18px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.84rem; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-width: 0;
}
textarea { min-height: 150px; resize: vertical; font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.94rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: var(--paper); cursor: pointer; }
.choices input { accent-color: var(--brand); }
input[type="file"] { font: inherit; font-size: 0.92rem; max-width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.form-status.err { border-left: 3px solid var(--hot); }
.form-status.ok { border-left: 3px solid var(--cold); }
.req { color: var(--hot); }

/* ---------- certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.cert { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: start; }
.cert img { width: 96px; border: 1px solid var(--line); }
.cert h3 { font-size: 1.08rem; }
.cert p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.cert .val { font-size: 0.8rem; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.person { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; object-position: 50% 30%; }
.person figcaption { padding: 12px 16px 14px; color: var(--ink-2); }
.person figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.12rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.faq h3 { font-size: 1.15rem; }
.faq p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--on-band); margin-top: 0; }
.site-footer .wrap { padding-block: 44px 28px; display: grid; gap: 34px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-band) 62%, transparent); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--on-band); text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { text-decoration: underline; color: #ffffff; }
.site-footer address { font-style: normal; font-size: 0.92rem; line-height: 1.6; color: color-mix(in srgb, var(--on-band) 82%, transparent); }
.site-footer .foot-logo { width: 190px; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid #22384f; padding-top: 18px; font-size: 0.84rem; color: color-mix(in srgb, var(--on-band) 60%, transparent); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer .legal a { font-size: 0.84rem; color: inherit; }

/* ---------- misc ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: 0.76rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.related { padding-block: 8px 56px; }
.related h2 { font-size: var(--step-2); margin-bottom: 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.center-404 { padding-block: 80px; display: grid; gap: 16px; max-width: 60ch; }
.copy { display: inline-flex; align-items: center; gap: 8px; }
.copy button { font: inherit; font-size: 0.82rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .rfq-band, .rail .spec-cta, .menu, .related { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { grid-template-columns: 1fr; }
}
