/* NxGen Process Group — site styles */
:root {
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #17212D;
  --steel: #4B5A6B;
  --rule: #D3D9E1;
  --signal: #E2A300;
  --signal-ink: #5C4300;
  --link: #0D5C6E;
  --step-1: #DCE2EA;
  --step-2: #C3CCD8;
  --step-3: #E2A300;
  --step-4: #8E9CAE;
  --step-5: #5F7088;
  --head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: block; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.55rem; line-height: 1; display: block; }
.brand-tag { font-size: 0.82rem; color: var(--steel); display: block; margin-top: 4px; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* Hero with maturity staircase */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; }
.hero p.lede { font-size: 1.18rem; color: var(--steel); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 6px; height: 300px; }
.stairs li { display: flex; flex-direction: column; justify-content: flex-start; padding: 10px 10px 12px; color: var(--ink); font-size: 0.82rem; line-height: 1.25; }
.stairs li b { font-family: var(--head); font-size: 1.6rem; font-weight: 700; display: block; line-height: 1; margin-bottom: 4px; }
.stairs li:nth-child(1) { height: 26%; background: var(--step-1); }
.stairs li:nth-child(2) { height: 42%; background: var(--step-2); }
.stairs li:nth-child(3) { height: 60%; background: var(--step-3); color: #241A00; }
.stairs li:nth-child(4) { height: 78%; background: var(--step-4); color: #fff; }
.stairs li:nth-child(5) { height: 100%; background: var(--step-5); color: #fff; }
.stairs-caption { font-size: 0.85rem; color: var(--steel); margin-top: 10px; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--body); text-decoration: none; padding: 12px 20px; border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--link); border-color: var(--link); color: #fff; }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.page-head { padding: 48px 0 24px; }
.page-head p { font-size: 1.12rem; color: var(--steel); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.agencies { list-style: none; padding: 0; margin: 1.2em 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.agencies li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--head); font-size: 1.2rem; font-weight: 600; }
.agencies li:nth-child(odd) { padding-right: 16px; }

.seals { display: block; width: 100%; height: auto; margin: 4px 0 8px; }

.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 16px 0 16px 18px; border-left: 3px solid var(--rule); margin-bottom: 10px; max-width: var(--measure); }
.news li.highlight { border-left-color: var(--signal); }
.news li p { margin: 0; }

/* Services */
.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 2px; background: linear-gradient(var(--ink), var(--ink)) 20px 0 / calc(100% - 40px) 2px no-repeat; }
.service-group { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.service-group ul { margin: 0; padding-left: 1.1em; }
.service-group li { margin-bottom: 6px; }

/* People */
.person { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--rule); }
.person .role { color: var(--steel); font-size: 0.98rem; margin: 0; }
.person ul { margin: 0; padding-left: 1.1em; max-width: var(--measure); }
.person li { margin-bottom: 10px; }

/* Careers */
.roles { columns: 2; column-gap: 40px; padding-left: 1.2em; margin: 0 0 1.5em; }
.roles li { margin-bottom: 8px; break-inside: avoid; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-ways dt { font-weight: 600; margin-top: 18px; }
.contact-ways dd { margin: 4px 0 0; font-size: 1.15rem; }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form .req { color: var(--steel); font-weight: 400; }
form input, form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #9AA7B6; background: var(--surface); color: var(--ink); border-radius: 0; }
form textarea { min-height: 160px; resize: vertical; }
form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; margin-bottom: 20px; border-left: 4px solid var(--signal); background: var(--surface); }
.notice.error { border-left-color: #B3261E; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 44px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #C9D2DD; margin: 6px 0 0; }
.cta-band .btn { border-color: var(--signal); background: var(--signal); color: #241A00; }
.cta-band .btn:hover { background: #fff; border-color: #fff; }

/* Footer */
.site-footer { padding: 32px 0 40px; font-size: 0.92rem; color: var(--steel); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero .wrap, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stairs { height: 220px; }
  .stairs li { padding: 8px 6px; font-size: 0.72rem; }
  .stairs li b { font-size: 1.25rem; }
  .service-groups { grid-template-columns: 1fr; }
  .service-group { padding-right: 0; }
  .person { grid-template-columns: 1fr; gap: 12px; }
  .roles { columns: 1; }
}
@media (max-width: 480px) {
  .agencies { grid-template-columns: 1fr; }
  .agencies li:nth-child(odd) { padding-right: 0; }
  .stairs li span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
