/* Prestigia Group — site styles
   Layout concept: a dark "operations console" shell (navy, steel, signal blue from the logo's
   compass) for heroes and framing bands, alternating with bright paper bands for reading.
   Red is a restrained signal color: small markers only. */
:root {
  --ink: #020f24;          /* deepest navy, page shell */
  --navy: #04193a;         /* dark bands */
  --navy-2: #082a57;       /* raised surfaces on dark */
  --line-d: rgba(150, 180, 230, 0.16);
  --steel: #9fb0c9;        /* secondary text on dark */
  --frost: #e8eef8;        /* primary text on dark */
  --paper: #f3f6fa;        /* light bands */
  --paper-2: #e5ebf3;      /* light raised / rules */
  --slate: #44546d;        /* secondary text on light */
  --graphite: #032a5a;     /* primary text on light */
  --line-l: #d3dce8;
  --blue: #3db0fa;         /* logo sky blue, for dark bands */
  --cobalt: #0a5aa8;       /* deeper sky blue, readable on light bands */
  --red: #da203a;          /* logo red: small markers only */
  --ok: #33d69f;

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

  --wrap: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --r: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; }
.skip:focus { left: 12px; }

.wrap { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--red); flex: none; }
.light .eyebrow { color: var(--cobalt); }
.mono { font-family: var(--f-mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(2, 15, 36, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-d);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--steel); border-radius: var(--r); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--frost); background: rgba(61, 176, 250, 0.08); }
.nav-links a[aria-current="page"] { color: var(--frost); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-cta { margin-left: 10px; }
.nav-links .nav-cta a.btn-primary { color: #fff; padding: 10px 16px; }
.nav-links .nav-cta a.btn-primary:hover { background: #22a0f0; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-d); color: var(--frost);
  border-radius: var(--r); padding: 9px 12px; font: 500 14px var(--f-mono); letter-spacing: .08em; cursor: pointer;
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-d);
    padding: 8px var(--gutter-r) 20px var(--gutter);
  }
  .nav-links:not(.open) { display: none; }
  .nav-links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-d); border-radius: 0; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .brand img { height: 42px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r);
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 0 0 rgba(61,176,250,.0), 0 8px 24px -10px rgba(61,176,250,.8); }
.btn-primary:hover { background: #22a0f0; box-shadow: 0 0 0 4px rgba(61,176,250,.18), 0 8px 24px -10px rgba(61,176,250,.9); }
.btn-ghost { border-color: rgba(159,176,201,.4); color: var(--frost); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(61,176,250,.08); }
.light .btn-ghost { color: var(--graphite); border-color: #b9c5d6; background: #fff; }
.light .btn-ghost:hover { border-color: var(--cobalt); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- bands ---------- */
.band { padding-block: 104px; position: relative; }
.band.tight { padding-block: 72px; }
.dark { background: var(--navy); color: var(--frost); }
.ink { background: var(--ink); color: var(--frost); }
.light { background: var(--paper); color: var(--graphite); color-scheme: light; }
.white { background: #fff; color: var(--graphite); color-scheme: light; }
.grid-bg {
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.section-head p { font-size: 18.5px; color: var(--steel); max-width: 64ch; }
.light .section-head p, .white .section-head p { color: var(--slate); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.split-head .section-head { margin-bottom: 0; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 78% 40%, rgba(10,90,168,.28), transparent 60%), var(--ink); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,180,230,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,180,230,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 88px 64px; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 750; font-stretch: 118%; letter-spacing: -0.02em; }
.slogan {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: clamp(16px, 1.7vw, 20px);
  letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, var(--blue) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-left: 16px; border-left: 2px solid var(--red);
}
.lede { font-size: 19px; color: var(--steel); max-width: 58ch; }
.light .lede, .white .lede { color: var(--slate); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 1.15 / 1; width: 100%; max-width: 100%; min-width: 0; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-tag {
  position: absolute; font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
  padding: 6px 9px; border: 1px solid var(--line-d); background: rgba(2,15,36,.7); border-radius: 2px;
}
.hv-tag b { display: block; color: var(--frost); font-weight: 500; }
.hv-tag.l { left: 0; top: 26%; }
.hv-tag.r { right: 0; top: 26%; text-align: right; }
.hv-tag.c { left: 50%; top: 4%; transform: translateX(-50%); text-align: center; white-space: nowrap; }

.status-strip { position: relative; border-top: 1px solid var(--line-d); background: rgba(4,25,58,.65); }
.status-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-block: 18px; font: 500 13px var(--f-mono); letter-spacing: .06em; color: var(--steel); }
.status-strip span b { color: var(--frost); font-weight: 500; margin-left: 6px; }
.status-strip .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 0 rgba(51,214,159,.6); animation: ping 2.4s infinite; vertical-align: 1px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(51,214,159,.55); } 70% { box-shadow: 0 0 0 9px rgba(51,214,159,0); } 100% { box-shadow: 0 0 0 0 rgba(51,214,159,0); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 56px 32px; gap: 20px; }
  .hero-visual { aspect-ratio: 1.35 / 1; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line-d); }
.page-hero .ph-img { position: absolute; inset: 0; }
.page-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.9) contrast(1.05); }
.page-hero .ph-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(2,15,36,.92) 38%, rgba(2,15,36,.45) 75%, rgba(2,15,36,.3) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 40%); }
.page-hero .wrap { position: relative; display: grid; gap: 22px; padding-block: 96px 80px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 750; max-width: 18ch; }
.page-hero .lede { max-width: 60ch; }
.crumbs { font: 500 12.5px var(--f-mono); letter-spacing: .1em; color: var(--steel); text-transform: uppercase; }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--frost); }
@media (max-width: 700px) { .page-hero .ph-img img { opacity: .28; } .page-hero .wrap { padding-block: 64px 56px; } }

/* ---------- HUD frame (corner brackets) ---------- */
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2; }
.hud::before { top: -1px; left: -1px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); }
.hud::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue); }

/* ---------- division cards ---------- */
.divisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.division {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--navy-2);
  border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--frost);
  transition: border-color .25s, transform .25s;
}
.division:hover { border-color: rgba(61,176,250,.55); transform: translateY(-3px); }
.division .media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.division .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.division:hover .media img { transform: scale(1.04); }
.division .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,25,58,0) 40%, rgba(8,42,87,1) 100%); }
.division .media .tag { position: absolute; left: 22px; top: 20px; z-index: 1; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(2,15,36,.75); padding: 7px 10px; border: 1px solid var(--line-d); }
.division .body { padding: 6px 30px 32px; display: grid; gap: 18px; align-content: start; }
.division h3 { font-size: 30px; font-weight: 700; }
.division p { color: var(--steel); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--blue); }
.light .ticks li::before, .white .ticks li::before { background: var(--cobalt); }
.more { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-top: 6px; }
.light .more, .white .more { color: var(--cobalt); }
@media (max-width: 860px) { .divisions { grid-template-columns: minmax(0, 1fr); } .division .body { padding: 4px 22px 26px; } }

/* ---------- process rail ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; overflow: hidden; padding-bottom: 4px; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-l); }
.process::after { content: ""; position: absolute; top: 22px; left: 0; width: 120px; height: 3px; background: linear-gradient(90deg, transparent, var(--cobalt), transparent); animation: travel 5.5s linear infinite; }
@keyframes travel { from { left: -120px; } to { left: 100%; } }
.process li { position: relative; padding: 0 28px 0 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.process .num {
  position: relative; z-index: 1; width: 47px; height: 47px; display: grid; place-items: center;
  font: 500 15px var(--f-mono); color: var(--cobalt); background: var(--paper); border: 1px solid var(--cobalt); border-radius: 50%;
}
.process h3 { font-size: 21px; font-weight: 700; margin-top: 8px; }
.process p { color: var(--slate); font-size: 16px; }
.process .stage { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.white .process .num { background: #fff; }
@media (max-width: 900px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .process::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { display: none; }
  .process li { grid-template-columns: 47px minmax(0, 1fr); column-gap: 20px; padding: 0; }
  .process li > :not(.num) { grid-column: 2; }
  .process .num { grid-row: 1 / span 3; }
  .process h3 { margin-top: 0; }
}

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.feature { background: var(--navy); padding: 34px 30px; display: grid; gap: 14px; align-content: start; min-width: 0; transition: background .25s; }
.feature:hover { background: #07224a; }
.feature .ic { width: 40px; height: 40px; color: var(--blue); }
.feature h3 { font-size: 20px; font-weight: 700; }
.feature p { color: var(--steel); font-size: 16px; }
.light .features, .white .features { background: var(--line-l); border-color: var(--line-l); }
.light .feature, .white .feature { background: #fff; }
.light .feature:hover, .white .feature:hover { background: #f9fbfe; }
.light .feature p, .white .feature p { color: var(--slate); }
.light .feature .ic, .white .feature .ic { color: var(--cobalt); }
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features, .features.two { grid-template-columns: minmax(0, 1fr); } .feature { padding: 28px 22px; } }

/* ---------- capability rows (division pages) ---------- */
.caps { display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.cap { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding-block: 34px; border-bottom: 1px solid var(--line-l); align-items: start; }
.cap .code { font: 500 13px var(--f-mono); color: var(--cobalt); letter-spacing: .08em; padding-top: 6px; }
.cap h3 { font-size: 25px; font-weight: 700; }
.cap p { color: var(--slate); }
.cap .ticks { margin-top: 14px; color: var(--graphite); font-size: 16px; }
@media (max-width: 860px) { .cap { grid-template-columns: minmax(0, 1fr); gap: 10px; } .cap .code { padding: 0; } }

/* ---------- media split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split .media-frame { border-radius: var(--r); overflow: visible; }
.split .media-frame img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split .text { display: grid; gap: 20px; min-width: 0; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.split .text > p { color: var(--steel); font-size: 17.5px; }
.light .split .text > p, .white .split .text > p { color: var(--slate); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split.rev > :first-child { order: 0; } }

/* ---------- callout ---------- */
.callout { border: 1px solid var(--line-d); border-left: 3px solid var(--blue); background: rgba(61,176,250,.06); padding: 24px 26px; border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 8px; }
.callout h3 { font-size: 18px; font-weight: 700; font-stretch: 105%; }
.callout p { color: var(--steel); font-size: 16px; }
.light .callout, .white .callout { border-color: var(--line-l); border-left-color: var(--cobalt); background: #fff; }
.light .callout p, .white .callout p { color: var(--slate); }

/* ---------- data table / matrix ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-l); border-radius: var(--r); background: #fff; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.matrix th, .matrix td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-l); vertical-align: top; }
.matrix thead th { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); background: var(--paper); }
.matrix tbody th { font-weight: 600; color: var(--graphite); width: 30%; }
.matrix td { color: var(--slate); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.pill.lead { background: rgba(10,90,168,.1); color: var(--cobalt); border: 1px solid rgba(10,90,168,.35); }
.pill.input { background: var(--paper); color: var(--slate); border: 1px solid var(--line-l); }
.pill.joint { background: rgba(218,32,58,.07); color: #b4232b; border: 1px solid rgba(218,32,58,.3); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.fact { background: var(--navy); padding: 22px 24px; display: grid; gap: 6px; min-width: 0; }
.fact dt { font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.fact dd { margin: 0; font: 500 19px var(--f-mono); color: var(--frost); overflow-wrap: anywhere; }
.fact dd.txt { font-family: var(--f-body); font-size: 17px; }
.light .facts { background: var(--line-l); border-color: var(--line-l); }
.light .fact { background: #fff; }
.light .fact dt { color: var(--slate); }
.light .fact dd { color: var(--graphite); }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.leader { border: 1px solid var(--line-l); background: #fff; border-radius: var(--r); padding: 32px; display: grid; gap: 14px; align-content: start; }
.leader .role { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.leader h3 { font-size: 26px; font-weight: 700; }
.leader p { color: var(--slate); }
.leader .creds { display: flex; gap: 8px; flex-wrap: wrap; }
.leader .creds span { font: 500 12px var(--f-mono); padding: 4px 9px; border: 1px solid var(--line-l); color: var(--graphite); border-radius: 2px; }
@media (max-width: 800px) { .leaders { grid-template-columns: minmax(0, 1fr); } .leader { padding: 26px 22px; } }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(800px 400px at 15% 0%, rgba(10,90,168,.35), transparent 70%), var(--navy); border-top: 1px solid var(--line-d); }
.cta-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cta-card { border: 1px solid var(--line-d); background: rgba(2,15,36,.5); border-radius: var(--r); padding: 36px; display: grid; gap: 16px; align-content: start; }
.cta-card h3 { font-size: 28px; font-weight: 700; }
.cta-card p { color: var(--steel); }
.cta-card .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 800px) { .cta-pair { grid-template-columns: minmax(0, 1fr); } .cta-card { padding: 28px 22px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: flex; gap: 0; border: 1px solid var(--line-l); border-radius: var(--r); padding: 4px; background: #fff; margin-bottom: 26px; width: fit-content; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 11px 18px; font: 600 15px var(--f-body); color: var(--slate); border-radius: 3px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--graphite); color: #fff; }
.form-card { background: #fff; border: 1px solid var(--line-l); border-radius: var(--r); padding: 34px; }
.form-card h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.form-card .sub { color: var(--slate); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--graphite); }
.field label .opt { font-weight: 400; color: var(--slate); }
.field label .req { color: var(--red); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--f-body); color: var(--graphite); background: var(--paper);
  border: 1px solid var(--line-l); border-radius: var(--r); padding: 12px 13px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 3px rgba(10,90,168,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-note { font-size: 14px; color: var(--slate); }
.form-status { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--cobalt); background: var(--paper); color: var(--graphite); font-size: 15.5px; }
.form-status.err { border-left-color: var(--red); }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 26px 18px; } .tab { padding: 10px 12px; font-size: 14px; } }
.side { display: grid; gap: 20px; }
.side-card { background: var(--navy); color: var(--frost); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; color-scheme: dark; }
.side-card h3 { font-size: 20px; font-weight: 700; }
.kv { display: grid; gap: 4px; }
.kv .k { font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.kv .v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; overflow-wrap: anywhere; }
.kv .v a { text-decoration: none; }
.kv .v a:hover { text-decoration: underline; }
.copy { background: transparent; border: 1px solid var(--line-d); color: var(--steel); font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; cursor: pointer; }
.copy:hover { color: var(--frost); border-color: var(--blue); }

/* ---------- prose ---------- */
.prose { max-width: 70ch; display: grid; gap: 18px; color: var(--slate); }
.prose h2 { font-size: 24px; color: var(--graphite); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--cobalt); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-d); color: var(--steel); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand img { width: 190px; }
.foot-brand .s { font-family: var(--f-display); font-stretch: 120%; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--frost); }
.foot-col h4 { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--frost); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--frost); }
.foot-col .m { font-family: var(--f-mono); font-size: 14px; overflow-wrap: anywhere; }
.foot-base { border-top: 1px solid var(--line-d); }
.foot-base .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 22px; font-size: 13.5px; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: var(--frost); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- misc ---------- */
.mt-l { margin-top: 56px; }
.stack { display: grid; gap: 22px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role-card { border: 1px solid var(--line-d); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; background: var(--navy-2); align-content: start; }
.role-card .k { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.role-card h3 { font-size: 21px; font-weight: 700; }
.role-card p { color: var(--steel); font-size: 16px; }
@media (max-width: 900px) { .roles { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* vertical steps */
.steps-v { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.steps-v::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: var(--line-l); }
.steps-v li { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 18px; align-items: start; position: relative; }
.steps-v .num { width: 47px; height: 47px; display: grid; place-items: center; font: 500 15px var(--f-mono); color: var(--cobalt); background: #fff; border: 1px solid var(--cobalt); border-radius: 50%; }
.steps-v h3 { font-size: 19px; font-weight: 700; margin-top: 4px; }
.steps-v p { color: var(--slate); font-size: 16px; }
.h2-md { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }

@media (max-width: 700px) {
  .table-scroll { border: 0; background: transparent; overflow: visible; }
  table.matrix { min-width: 0; }
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tr { background: #fff; border: 1px solid var(--line-l); border-radius: var(--r); margin-bottom: 12px; padding: 6px 0; }
  .matrix tbody th { width: 100%; border-bottom: 1px solid var(--line-l); padding: 12px 16px; }
  .matrix td { border-bottom: 0; padding: 10px 16px; }
  .matrix td::before { content: attr(data-label); display: block; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
}

.nav-login { margin-left: 6px; }
.nav-login .btn { gap: 7px; }
@media (max-width: 980px) { .nav-login { margin: 10px 0 0; } .nav-login .btn { width: 100%; justify-content: center; } }

.call-big { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: clamp(32px, 4vw, 44px); color: var(--graphite); margin: 18px 0 14px; letter-spacing: .01em; }
[data-noforms] .sub + .sub { margin-top: 0; }
