/* AdaptX Corporation — site stylesheet
   Typography: Bricolage Grotesque (display, UI) + Source Serif 4 (reading copy), self-hosted.
   Palette: paper / vellum / navy / ink / signal blue. */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SourceSerif";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SourceSerif";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f7f4;
  --paper-2: #efefea;
  --vellum: #e7eef3;
  --vellum-2: #d7e2ea;
  --line: #cdd8df;
  --line-strong: #9fb2bf;
  --steel: #5b7181;
  --navy: #023a51;
  --navy-2: #06465f;
  --navy-deep: #02293a;
  --ink: #0b2230;
  --blue: #2075ff;
  --blue-soft: #d9e7ff;
  --white: #ffffff;

  --sans: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --serif: "SourceSerif", Georgia, "Times New Roman", serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --rail: 220px;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .sans { font-family: var(--sans); font-feature-settings: "ss01", "kern"; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--blue); }
strong { font-weight: 600; }
em { font-style: italic; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
img, svg { max-width: 100%; height: auto; }
address { font-style: normal; }
::selection { background: var(--blue-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 8px; }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--steel); max-width: 58ch; }
.lede strong { color: var(--ink); font-weight: 500; }
.small { font-size: 15px; }
.muted { color: var(--steel); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 15.5px; letter-spacing: -0.005em;
  padding: 12px 18px; border-radius: var(--r-s); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; line-height: 1.1;
  transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease);
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: #1a63d8; border-color: #1a63d8; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: var(--vellum); border-color: var(--vellum); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn.outline-light:hover { border-color: #fff; }
.btn .x { width: 10px; height: 10px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* The X mark (brand glyph) used as a bullet / marker */
.xmark { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; }
.xmark path { fill: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.hdr { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 26px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > li { list-style: none; position: relative; }
.nav { padding: 0; margin: 0 0 0 10px; }
.nav-btn, .nav-link {
  font-family: var(--sans); font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: var(--r-s);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1;
}
.nav-btn:hover, .nav-link:hover, .nav-btn[aria-expanded="true"] { background: var(--paper-2); }
.nav-btn svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 18px 40px -20px rgba(2,58,81,.35);
  padding: 10px; display: none; z-index: 60;
}
.menu.is-open { display: block; animation: menu-in .18s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: none; } }
.menu.wide { min-width: 860px; display: none; grid-template-columns: 1fr 1fr 1fr; gap: 6px 16px; }
.menu.wide.is-open { display: grid; }
.menu-group { padding: 6px 8px 4px; }
.menu-group h5 { font-size: 13px; color: var(--steel); font-weight: 500; margin: 0 0 6px 10px; letter-spacing: 0; }
.menu a { display: block; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 500; }
.menu a small { display: block; font-family: var(--serif); font-weight: 400; color: var(--steel); font-size: 14px; line-height: 1.35; margin-top: 1px; }
.menu a:hover { background: var(--vellum); }
.menu a .new { font-style: normal; font-size: 11px; color: var(--blue); margin-left: 8px; vertical-align: 2px; font-weight: 600; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-phone { font-family: var(--sans); font-size: 15px; color: var(--steel); text-decoration: none; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.hdr-phone:hover { color: var(--ink); }
.hdr-login { font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: var(--r-s); }
.hdr-login:hover { background: var(--paper-2); }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-s); width: 42px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - 72px); overflow-y: auto; }
.drawer.is-open { display: block; }
.drawer .wrap { padding-top: 10px; padding-bottom: 22px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { font-family: var(--sans); font-weight: 500; font-size: 17px; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--steel); font-size: 20px; }
.drawer details[open] summary::after { content: "–"; }
.drawer .dl { padding: 0 0 12px; display: grid; gap: 2px; }
.drawer .dl a { text-decoration: none; font-family: var(--sans); font-size: 15.5px; padding: 8px 0 8px 14px; color: var(--ink); border-left: 2px solid var(--line); }
.drawer .dl a:hover { border-left-color: var(--blue); }
.drawer .dl h5 { margin: 10px 0 2px 14px; font-size: 13px; color: var(--steel); font-weight: 500; }
.drawer > .wrap > a.plain { display: block; font-family: var(--sans); font-weight: 500; font-size: 17px; padding: 14px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer .drawer-cta { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; }

@media (max-width: 1080px) {
  .hdr-phone { display: none; }
}
@media (max-width: 920px) {
  .nav, .hdr-login, .hdr .btn { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section.tight { padding: clamp(40px, 5vw, 72px) 0; }
.section + .section { padding-top: 0; }
.section.dark, .section.vellum, .section.navy { padding-top: clamp(64px, 8vw, 120px); }
.section.dark + .section, .section.vellum + .section, .section.navy + .section { padding-top: clamp(64px, 8vw, 120px); }
.section.vellum { background: var(--vellum); }
.section.navy { background: var(--navy); color: #e8f0f5; }
.section.navy h1, .section.navy h2, .section.navy h3, .section.navy h4 { color: #fff; }
.section.navy p { color: #d6e2ea; }
.section.navy a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.section.navy a:hover { text-decoration-color: #fff; }
.section.navy .lede { color: #b9ccd8; }
.section.navy .muted { color: #9fb8c7; }

/* Spec-sheet layout: left rail + content */
.sheet { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.rail { position: sticky; top: 92px; }
.rail .label { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--steel); display: flex; align-items: center; gap: 10px; margin: 0; }
.rail .label .xmark { width: 9px; height: 9px; }
.navy .rail .label { color: #9fb8c7; }
.rail .label + p { margin-top: 10px; font-size: 15px; color: var(--steel); }
.sheet .head { margin-bottom: clamp(28px, 4vw, 48px); }
.sheet .head h2 { max-width: 20ch; }
.sheet .head .lede { margin-top: 10px; }
@media (max-width: 860px) {
  .sheet { grid-template-columns: 1fr; gap: 20px; }
  .rail { position: static; }
}

/* Row lists (services, capabilities) */
.rows { border-top: 1px solid var(--line); }
.navy .rows { border-top-color: rgba(255,255,255,.18); }
.row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,2fr); gap: 12px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.navy .row { border-bottom-color: rgba(255,255,255,.18); }
.row h3 { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.row h3 .xmark { width: 10px; height: 10px; opacity: 0; transition: opacity .2s, transform .25s var(--ease); transform: translateX(-4px); }
a.row:hover h3 .xmark { opacity: 1; transform: none; }
.row p { margin: 0; color: var(--steel); font-size: 16.5px; }
.navy .row p { color: #c9d8e2; }
.row .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--sans); font-size: 14px; color: var(--navy); }
.navy .row .tags { color: #b9ccd8; }
.row .tags span::before { content: "× "; color: var(--blue); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Two column prose */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.cols h4 { margin-bottom: .35em; }
.cols p { font-size: 16.5px; color: var(--steel); }
.navy .cols p { color: #c9d8e2; }
.cols .item { padding-top: 16px; border-top: 1px solid var(--line); }
.navy .cols .item { border-top-color: rgba(255,255,255,.18); }

/* Figures (numbers as data, in a table-like strip) */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.fig { padding: 22px 20px 22px 0; border-right: 1px solid var(--line); }
.fig:last-child { border-right: 0; }
.fig + .fig { padding-left: 20px; }
.fig b { display: block; font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.fig span { display: block; margin-top: 8px; font-size: 15px; color: var(--steel); }
.navy .figures { border-color: rgba(255,255,255,.3); }
.navy .fig { border-right-color: rgba(255,255,255,.18); }
.navy .fig b { color: #fff; } .navy .fig span { color: #b9ccd8; }
@media (max-width: 640px) { .fig { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; } .fig:last-child { border-bottom: 0; } }

/* Ordered process (true sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); position: relative; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--sans); font-size: 14px; color: var(--blue); font-weight: 600; display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h4 { margin-bottom: .4em; }
.step p { font-size: 15.5px; color: var(--steel); }

/* Product panels (deliberately unequal) */
.panels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.panel { grid-column: span 6; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 3vw, 40px); text-decoration: none; color: inherit; display: flex; flex-direction: column; min-height: 300px; position: relative; overflow: hidden; }
.panel:hover { border-color: var(--line-strong); }
.panel.lg { grid-column: span 7; background: var(--navy); border-color: var(--navy); color: #e8f0f5; }
.panel.lg h3, .panel.lg h2 { color: #fff; } .panel.lg p { color: #c9d8e2; }
.panel.md { grid-column: span 5; }
.panel.sm { grid-column: span 4; min-height: 240px; }
.panel h3 { margin: 0 0 8px; }
.panel .kind { font-family: var(--sans); font-size: 14px; color: var(--steel); margin-bottom: 18px; }
.panel.lg .kind { color: #9fb8c7; }
.panel p { color: var(--steel); font-size: 16px; }
.panel .go { margin-top: auto; padding-top: 24px; font-family: var(--sans); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.panel.lg .go { color: #fff; }
.panel .go .xmark { transition: transform .25s var(--ease); }
.panel:hover .go .xmark { transform: rotate(90deg); }
.panel.plain { background: #fff; border-color: var(--line); color: inherit; }
.panel.plain h3 { color: var(--ink); } .panel.plain .kind { color: var(--steel); } .panel.plain p { color: var(--steel); } .panel.plain .go { color: var(--navy); }
.panel .wm { position: absolute; right: -20px; bottom: -30px; width: 180px; height: 180px; opacity: .08; pointer-events: none; }
.panel.lg .wm path { fill: #fff; }
@media (max-width: 860px) { .panel, .panel.lg, .panel.md, .panel.sm { grid-column: span 12; min-height: 0; } }

/* Pull quote */
.quote { border-left: 2px solid var(--blue); padding-left: 24px; max-width: 60ch; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: var(--ink); }
.quote footer { font-family: var(--sans); font-size: 15px; color: var(--steel); margin-top: 12px; font-style: normal; }
.navy .quote p { color: #fff; } .navy .quote footer { color: #9fb8c7; }

/* Simple list w/ x bullets */
.xlist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.xlist li { padding-left: 22px; position: relative; margin-bottom: .5em; }
.xlist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'><path fill='%232075ff' d='M29.8 22.8 46.3 45.9H33l-9.9-13.8-9.9 13.8H0l16.5-22.8L0 0h13.4l9.8 13.7L33.1 0h13.2z'/></svg>") no-repeat center / contain; }

/* Page hero (interior pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.page-hero .crumb { font-family: var(--sans); font-size: 15px; color: var(--steel); margin-bottom: 22px; display: flex; gap: 10px; align-items: center; }
.page-hero .crumb a { color: var(--steel); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--ink); }
.page-hero .crumb .xmark { width: 8px; height: 8px; opacity: .7; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 18px; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.page-hero.split .aside { font-size: 15.5px; color: var(--steel); border-left: 1px solid var(--line); padding-left: 24px; }
.page-hero.split .aside dt { font-family: var(--sans); font-weight: 500; color: var(--ink); font-size: 14px; }
.page-hero.split .aside dd { margin: 2px 0 12px; }
@media (max-width: 860px) { .page-hero.split { grid-template-columns: 1fr; } .page-hero.split .aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; } }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } .hero h1 { max-width: 14ch; } }

/* The run panel: an agent working through a job */
.run { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(2,58,81,.35); }
.run-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 14px; }
.run-title { font-weight: 500; color: var(--ink); }
.run-title em { font-style: normal; color: var(--steel); font-weight: 400; margin-left: 6px; }
.run-state { color: var(--steel); display: inline-flex; align-items: center; gap: 8px; }
.run-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
.run.is-done .run-state::before { background: #1f9d55; animation: none; }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.run-steps { list-style: none; margin: 0; padding: 8px 0; }
.rs { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 12px 18px; opacity: .38; transition: opacity .4s; }
.rs.active, .rs.done { opacity: 1; }
.rs .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); margin-top: 4px; position: relative; transition: border-color .3s, background .3s; }
.rs.active .dot { border-color: var(--blue); }
.rs.active .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); animation: pulse 1s ease-in-out infinite; }
.rs.done .dot { background: var(--navy); border-color: var(--navy); }
.rs.done .dot::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.rs.flag .dot { background: var(--blue); border-color: var(--blue); }
.rs .rt b { display: block; font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink); line-height: 1.3; }
.rs .rt small { display: block; font-family: var(--serif); font-size: 14px; color: var(--steel); margin-top: 2px; }
.rs .rtime { font-family: var(--sans); font-size: 12.5px; color: var(--steel); font-variant-numeric: tabular-nums; margin-top: 3px; min-width: 3ch; text-align: right; }
.run-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--paper); font-family: var(--sans); font-size: 13px; color: var(--steel); }
@media (prefers-reduced-motion: reduce) { .run-state::before, .rs.active .dot::after { animation: none; } }

/* Layered stack */
.stack { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); position: relative; }
.layer:nth-child(1) { margin-left: 0; } .layer:nth-child(2) { margin-left: 2%; } .layer:nth-child(3) { margin-left: 4%; } .layer:nth-child(4) { margin-left: 6%; } .layer:nth-child(5) { margin-left: 8%; }
.layer::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--blue); border-radius: 0 2px 2px 0; opacity: .9; }
.layer:nth-child(2)::before { opacity: .75; } .layer:nth-child(3)::before { opacity: .6; } .layer:nth-child(4)::before { opacity: .45; } .layer:nth-child(5)::before { opacity: .3; }
.layer h4 { margin: 0; font-size: 17px; }
.layer p { margin: 0; font-size: 15.5px; color: var(--steel); max-width: none; }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; margin-left: 0 !important; } }

/* Industries strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .strip { grid-template-columns: 1fr; } }
.strip a { display: block; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 17px; }
.strip a small { display: block; font-family: var(--serif); font-weight: 400; color: var(--steel); font-size: 14.5px; margin-top: 4px; }
.strip a:hover { background: #fff; }

/* CTA block */
.cta { background: var(--ink); color: #e8f0f5; border-radius: var(--r-l); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #b9ccd8; }
.cta .btn-row { justify-content: flex-start; }
.cta .wm { position: absolute; right: -40px; top: -60px; width: 320px; height: 320px; opacity: .07; pointer-events: none; }
.cta .wm path { fill: #fff; }
.cta .contact-lines { font-family: var(--sans); font-size: 15px; color: #b9ccd8; margin-top: 18px; display: grid; gap: 4px; }
.cta .contact-lines a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9d8e2; margin-top: clamp(40px, 6vw, 80px); }
.ft-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: clamp(48px, 6vw, 80px) 0 40px; }
.ft-top h5 { color: #fff; font-size: 14.5px; font-weight: 500; margin: 0 0 14px; }
.ft-top ul { list-style: none; padding: 0; margin: 0; }
.ft-top li { margin-bottom: 8px; }
.ft-top a { color: #c9d8e2; text-decoration: none; font-family: var(--sans); font-size: 15px; }
.ft-top a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.ft-brand svg { height: 28px; width: auto; display: block; margin-bottom: 18px; }
.ft-brand p { font-size: 15px; color: #9fb8c7; max-width: 32ch; }
.ft-brand address { font-family: var(--sans); font-size: 14.5px; color: #c9d8e2; line-height: 1.5; margin-top: 16px; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-family: var(--sans); font-size: 13.5px; color: #8aa3b3; }
.ft-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.ft-bottom a { color: #8aa3b3; text-decoration: none; }
.ft-bottom a:hover { color: #fff; }
@media (max-width: 960px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: span 2; } }
@media (max-width: 520px) { .ft-top { gap: 28px 20px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--sans); font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--serif); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 11px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field .hint { font-size: 14px; color: var(--steel); margin-top: 6px; }
.field.radio { display: flex; gap: 20px; align-items: center; }
.field.radio label { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-weight: 400; font-family: var(--serif); font-size: 16px; }
.form-note { font-size: 14.5px; color: var(--steel); }
.form-status { font-family: var(--sans); font-size: 15px; padding: 12px 14px; border-radius: var(--r-s); display: none; }
.form-status.ok { display: block; background: #e3f3e8; color: #1b5e34; }
.form-status.err { display: block; background: #fdeaea; color: #8a1c1c; }
.hp { position: absolute; left: -9999px; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-side dl { margin: 0; }
.contact-side dt { font-family: var(--sans); font-weight: 500; font-size: 14.5px; color: var(--steel); margin-top: 22px; }
.contact-side dt:first-child { margin-top: 0; }
.contact-side dd { margin: 4px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Office cards (plain, bordered) */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.office { border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; background: #fff; }
.office h3 { font-size: 20px; margin-bottom: 4px; }
.office .role { font-family: var(--sans); color: var(--steel); font-size: 14px; margin-bottom: 14px; }
.office address { font-size: 16px; line-height: 1.5; }

/* Jobs list */
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.job h3 { margin: 0; font-size: 20px; }
.job .loc { color: var(--steel); font-family: var(--sans); font-size: 15px; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }

/* Press kit table */
.files { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.files th { text-align: left; font-weight: 500; color: var(--steel); padding: 10px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.files td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.files td.prev { width: 160px; }
.files td.prev span { display: inline-block; padding: 12px 16px; border-radius: var(--r-s); border: 1px solid var(--line); }
.files td.prev span.dk { background: var(--navy); border-color: var(--navy); }
.files td.prev svg { height: 20px; width: auto; display: block; }
.files td.act { text-align: right; white-space: nowrap; }
.files td.act a { font-weight: 500; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 140px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; font-family: var(--sans); font-size: 13.5px; }
.swatch i { display: block; height: 64px; }
.swatch b { display: block; padding: 8px 10px 0; font-weight: 500; }
.swatch span { display: block; padding: 0 10px 10px; color: var(--steel); }

/* Prose pages (legal, values) */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 2.2em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose p, .prose li { font-size: 17px; }
.prose .doc-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; text-decoration: none; margin: 24px 0; font-family: var(--sans); }
.prose .doc-link b { font-weight: 500; display: block; }
.prose .doc-link small { color: var(--steel); }
.prose .doc-link svg { flex: none; width: 22px; height: 22px; }
.revised { font-family: var(--sans); font-size: 14px; color: var(--steel); margin-bottom: 28px; }

/* Sitemap page */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.sitemap-cols h3 { font-size: 17px; margin-bottom: 10px; }
.sitemap-cols ul { list-style: none; padding: 0; margin: 0; }
.sitemap-cols li { margin-bottom: 6px; font-family: var(--sans); font-size: 15px; }

/* Status / notice */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--blue); background: #fff; padding: 16px 18px; border-radius: var(--r-s); font-size: 16px; max-width: 70ch; }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; }
.nf h1 { max-width: 14ch; }

/* Utilities */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.maxw { max-width: 64ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pricing { font-family: var(--sans); font-size: 15px; color: var(--steel); }
.pricing b { color: var(--ink); font-weight: 500; font-size: 18px; }
