/* Layout: corporate, restrained. White header with page tabs; a navy hero carrying an
   infrastructure diagram; inner pages open with a quiet grey title band. 76rem measure. */
:root {
  --navy: #0f2742;         /* hero, footer, headings accent */
  --navy-2: #163556;
  --ink: #13233a;          /* headings */
  --text: #3a4a5f;         /* body */
  --muted: #687789;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;       /* alternate bands */
  --line: #dde3ea;
  --blue: #1d64c4;         /* links, buttons */
  --blue-dark: #154d99;
  --on-dark: #e8eef6;
  --on-dark-muted: #9fb0c5;
  --ok: #1a7f4b;
  --err: #b4232a;

  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --h1: clamp(2.1rem, 4.6vw, 3.25rem);
  --h2: clamp(1.7rem, 3vw, 2.25rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0a1a2d; --navy-2: #0f2440;
    --ink: #eaf0f7; --text: #c0ccda; --muted: #8e9cb0;
    --bg: #0d1724; --bg-alt: #111e2f; --line: #22324a;
    --blue: #6aa1f0; --blue-dark: #8ab6f5; --ok: #4cc488; --err: #ff7b81;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #0a1a2d; --navy-2: #0f2440;
  --ink: #eaf0f7; --text: #c0ccda; --muted: #8e9cb0;
  --bg: #0d1724; --bg-alt: #111e2f; --line: #22324a;
  --blue: #6aa1f0; --blue-dark: #8ab6f5; --ok: #4cc488; --err: #ff7b81;
  color-scheme: dark;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 20px; }
.kicker { font: 600 0.95rem/1.3 var(--display); color: var(--blue); }

/* Top bar */
.topbar { background: var(--navy); color: var(--on-dark-muted); font-size: 0.85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 8px; }
.topbar span { display: inline-flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar b { color: var(--on-dark); font-weight: 500; }

/* Header + page tabs */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgb(15 39 66 / 0.03); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name strong { font: 800 1.15rem/1 var(--display); letter-spacing: 0.04em; }
.brand-name small { font: 500 0.7rem/1.3 var(--body); letter-spacing: 0.06em; color: var(--muted); margin-top: 3px; }
.tabs { display: flex; align-self: stretch; list-style: none; margin: 0; padding: 0; }
.tabs a { display: flex; align-items: center; height: 100%; padding: 0 13px; color: var(--ink); text-decoration: none; font: 500 0.97rem/1 var(--body); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--blue); }
.tabs a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 4px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: 600 0.97rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.outline { background: transparent; color: var(--blue); }
.btn.outline:hover { background: var(--bg-alt); }
.btn.on-dark { background: #fff; border-color: #fff; color: #0f2742; }
.btn.on-dark-outline { background: transparent; border-color: rgb(255 255 255 / 0.5); color: #fff; }
.btn.on-dark-outline:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; padding: 9px 14px; font: 600 0.92rem var(--body); cursor: pointer; }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; min-height: 0; padding-block: 12px; }
  .tabs { display: none; width: 100%; flex-direction: column; padding-block: 6px; }
  .tabs.open { display: flex; }
  .tabs a { padding: 11px 0 11px 12px; border-bottom: 0; border-left: 3px solid transparent; }
  .tabs a[aria-current="page"] { border-left-color: var(--blue); }
  .nav .header-cta { display: none; }
}

/* Views */
.view[hidden] { display: none !important; }
.section { padding-block: 88px; }
.section.alt { background: var(--bg-alt); }
.intro { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 48px; }
.intro p { font-size: 1.1rem; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 44px; }
.head-row .intro { margin-bottom: 0; }
.more-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link::after { content: " ›"; }
.more-link:hover { text-decoration: underline; }

/* Home hero */
.hero { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 84px; }
.hero .wrap > * { min-width: 0; }
.hero .kicker { color: #8db8f2; }
.hero h1 { color: #fff; font-size: var(--h1); font-weight: 800; letter-spacing: -0.015em; margin-top: 14px; }
.hero p.lede { margin-top: 22px; font-size: 1.15rem; color: var(--on-dark); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.diagram { width: 100%; height: auto; display: block; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 56px; gap: 40px; } }

/* Figures */
.figures { border-bottom: 1px solid var(--line); }
.figures .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures div.fig { padding: 32px 24px; border-left: 1px solid var(--line); min-width: 0; }
.figures div.fig:first-child { border-left: 0; padding-left: 0; }
.figures strong { display: block; font: 800 2.3rem/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .figures .wrap { grid-template-columns: 1fr 1fr; } .figures div.fig { padding: 22px 16px; } .figures div.fig:nth-child(odd) { border-left: 0; padding-left: 0; } .figures div.fig:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.split p + p { margin-top: 16px; }
.lead { font-size: 1.22rem; color: var(--ink); line-height: 1.6; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Services list (home) */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 48px 1fr 1.4fr auto; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.svc-row > * { min-width: 0; }
.svc-row svg { width: 34px; height: 34px; color: var(--blue); }
.svc-row h3 { font-size: 1.2rem; }
.svc-row .go { color: var(--blue); font-weight: 600; white-space: nowrap; }
.svc-row:hover h3 { color: var(--blue); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 40px 1fr; gap: 6px 18px; align-items: start; } .svc-row svg { grid-row: span 3; width: 30px; height: 30px; } }

/* Case cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--navy-2); display: grid; gap: 12px; align-content: start; padding: 28px; min-width: 0; }
.section.alt .case { background: var(--bg); }
.case[hidden] { display: none; }
.case .sector { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.case h3 { font-size: 1.25rem; }
.case .result { font: 700 1.05rem/1.4 var(--display); color: var(--blue); }
.case dl { margin: 8px 0 0; display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.case dt { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.case dd { margin: 2px 0 0; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } }

/* Tech grid */
.tech { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tech div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 20px; min-width: 0; background: var(--bg); }
.tech strong { display: block; color: var(--ink); font: 700 1rem/1.3 var(--display); }
.tech span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 900px) { .tech { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tech { grid-template-columns: 1fr 1fr; } }

/* Sector strip */
.sectors { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.sectors li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 500; background: var(--bg); }

/* CTA band */
.cta { background: var(--navy); color: var(--on-dark); padding-block: 64px; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: #fff; max-width: 28ch; }
.cta p { margin-top: 10px; color: var(--on-dark-muted); }

/* Inner page title band */
.page-title { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 52px 48px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.page-title h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -0.015em; max-width: 24ch; }
.page-title p { margin-top: 16px; max-width: 46rem; font-size: 1.12rem; }

/* In-page tabs */
.tablist { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; margin-bottom: 44px; }
.tablist button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 15px 20px; font: 600 1rem/1.2 var(--body); color: var(--muted); cursor: pointer; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabpanel[hidden] { display: none; }
.svc-detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.svc-detail > * { min-width: 0; }
.svc-detail h2 { margin-bottom: 16px; }
.svc-detail .lead { margin-bottom: 8px; }
.svc-detail h3 { font-size: 1.05rem; margin: 28px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.side-box { border: 1px solid var(--line); background: var(--bg-alt); padding: 28px; display: grid; gap: 18px; align-content: start; }
.side-box h3 { margin: 0; font-size: 1.05rem; }
.side-box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.side-box hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
@media (max-width: 900px) { .svc-detail { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }

/* Steps and three-up columns */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 36px; list-style: none; padding: 0; margin: 0; }
.cols > * { min-width: 0; display: grid; gap: 10px; align-content: start; }
.cols.steps { counter-reset: s; }
.cols.steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid var(--line); }
.cols.steps li::before { content: "Step " counter(s); font-weight: 600; font-size: 0.9rem; color: var(--blue); }
.cols.ruled > * { padding-top: 20px; border-top: 3px solid var(--navy-2); }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ind { border: 1px solid var(--line); padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; background: var(--bg); }
.ind ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } }

/* Facts / values */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.certs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.certs li { border: 1px solid var(--line); padding: 10px 16px; font-weight: 600; color: var(--ink); background: var(--bg); }

/* Accordions (careers, FAQ) */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 700 1.1rem/1.35 var(--display); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 400 1.5rem/1 var(--body); color: var(--blue); flex: none; }
.acc details[open] summary::after { content: "–"; }
.acc summary small { font: 400 0.9rem/1 var(--body); color: var(--muted); margin-left: auto; }
.acc .acc-body { padding: 0 0 22px; display: grid; gap: 12px; }
.acc ul { margin: 0; padding-left: 1.1em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; }
.contact-grid > * { min-width: 0; }
.contact-info { display: grid; gap: 24px; align-content: start; }
.contact-info h3 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-info p { color: var(--ink); }
.email { user-select: all; }
form { display: grid; gap: 18px; border: 1px solid var(--line); padding: 32px; background: var(--bg); }
form h2 { font-size: 1.4rem; }
.field { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row > * { min-width: 0; }
label { font-weight: 600; color: var(--ink); font-size: 0.93rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid #c5cfdb; border-radius: 4px; padding: 11px 12px; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(input, select, textarea) { border-color: var(--line); } }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--err); }
.small { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid, .row { grid-template-columns: 1fr; gap: 36px; } .row { gap: 18px; } form { padding: 22px; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: 60px 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--on-dark-muted); }
.site-footer h4 { margin: 0 0 16px; font: 700 0.95rem/1 var(--display); color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hero .diagram { display: none; } }
.cta + .site-footer, .cta ~ .site-footer { border-top: 1px solid rgb(255 255 255 / 0.1); }
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.1); }

/* Specialist solutions feature */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { background: var(--navy); color: var(--on-dark); padding: 36px; display: grid; gap: 16px; align-content: start; min-width: 0; border-top: 4px solid #5e9cf0; }
.feature svg { width: 40px; height: 40px; color: #8db8f2; }
.feature h3 { color: #fff; font-size: 1.45rem; }
.feature .ticks li::before { border-color: #8db8f2; }
.feature .more-link { color: #8db8f2; margin-top: 6px; }
.ticks.one { grid-template-columns: 1fr; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 26px; } }
