/* Atlas Operations
   Navy and gold, serif display. Matches the A.T.L.A.S deck system.
   Rebuilt 2026-08-25. Polish pass 2026-08-30.
   Fonts load from a <link> in each page head, not an @import,
   so first paint does not wait on a second stylesheet round trip. */

:root {
  color-scheme: dark;
  /* base */
  --navy:       #16244d;
  --navy-deep:  #0f1a3a;
  --navy-panel: #1b2b58;
  --navy-line:  #2b3d6e;

  --cream:      #f5f1e6;
  --ink:        #ffffff;
  --ink-2:      #c8d2e8;
  --muted:      #8fa0c4;

  /* accent, overridden per division */
  --accent:       #e0aa3e;
  --accent-bright:#f0c766;
  --accent-deep:  #b07f22;
  --accent-ink:   #16244d;

  --green:      #2fb45f;

  --maxw: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* division themes */
body.t-labs {
  --accent: #f2c744; --accent-bright: #ffdb72; --accent-deep: #c39a12;
}
body.t-academy {
  --accent: #35b06a; --accent-bright: #5fd28d; --accent-deep: #1f7a47; --accent-ink: #06210f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img, svg { max-width: 100%; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* keyboard focus: gold ring, only on focus-visible so mouse clicks stay quiet */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.section-cream :focus-visible { outline-color: var(--accent-deep); }

/* skip link for keyboard and screen-reader users */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 12px 22px;
}
.skip-link:focus { left: 0; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h1, h2, h3 { text-wrap: balance; }
h3 {
  font-family: var(--sans);
  font-size: 1.12rem; font-weight: 700; color: var(--ink);
  line-height: 1.35; margin: 0 0 .5em;
}
p { margin: 0 0 1.3em; }

.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 68ch; }
.serif-em { font-family: var(--serif); font-style: italic; color: var(--ink-2); }

/* gold rule under headings */
.rule { width: 96px; height: 4px; background: var(--accent); margin: 0 0 26px; }

/* kicker: gold square + letterspaced caps */
.kicker {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--sans); font-weight: 700;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem;
}
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--accent); flex: none; }

/* classification marker */
.classif {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}
.classif::before { content: ""; width: 11px; height: 11px; background: var(--green); flex: none; }

/* ---------- top bar + header ---------- */

.topbar { height: 6px; background: var(--accent); }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 26, 58, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
}
.head-in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 22px;
}
/* real Atlas Ops lockup, inlined so its webfonts resolve */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; width: 215px; height: auto; }
.site-foot .brand svg { width: 230px; }
@media (max-width: 640px) { .brand svg { width: 178px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink-2); font-size: .92rem; white-space: nowrap; padding: 4px 0; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--accent); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 13px 26px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
/* .btn.btn-* keeps these above `.nav a` and `.section-cream a` */
.btn.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
.btn.btn-ghost { border-color: var(--navy-line); color: var(--ink); background: transparent; }
.btn.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.section-cream .btn.btn-ghost { border-color: #c3bba6; color: var(--navy); }
.section-cream .btn.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- sections ---------- */

section { padding: 88px 0; }
.section-cream {
  background: var(--cream); color: #3a4152;
}
.section-cream h1, .section-cream h2 { color: var(--navy); }
.section-cream h3 { color: var(--navy); }
.section-cream .lede { color: #4a5266; }
.section-cream .kicker { color: var(--accent-deep); }
.section-cream .kicker::before { background: var(--accent-deep); }

.section-deep { background: var(--navy-deep); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(760px 380px at 82% -10%, rgba(224, 170, 62, .13), transparent 65%),
    var(--navy-deep);
  position: relative;
  overflow: hidden;
}
/* signature: the logo's graticule, blown up and ghosted behind the hero */
.hero::after {
  content: "";
  position: absolute; z-index: 0;
  width: 720px; height: 720px;
  right: -180px; top: -220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23e0aa3e' stroke-width='0.35'%3E%3Ccircle cx='50' cy='50' r='38'/%3E%3Cline x1='12' y1='50' x2='88' y2='50'/%3E%3Cline x1='50' y1='12' x2='50' y2='88'/%3E%3Cellipse cx='50' cy='50' rx='38' ry='14'/%3E%3Cellipse cx='50' cy='50' rx='38' ry='28'/%3E%3Cellipse cx='50' cy='50' rx='14' ry='38'/%3E%3Cellipse cx='50' cy='50' rx='28' ry='38'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .10;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
/* quiet entrance on load; removed entirely under reduced motion */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .wrap { animation: hero-rise .6s ease-out both; }
.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; margin-bottom: 40px; flex-wrap: wrap;
}
.hero h1 { max-width: 19ch; }
.hero h1 .gold { color: var(--accent); }
.hero .lede { font-size: 1.2rem; }

/* ---------- grid + cards ---------- */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  padding: 30px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card-link h3 { color: var(--ink); }

.section-cream .card { background: var(--navy); border-color: var(--navy); color: var(--ink-2); }
.section-cream .card h3 { color: var(--ink); }

.card .num {
  display: block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; color: var(--accent); margin-bottom: .9rem;
}

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.3em; }
ul.ticks li { position: relative; padding-left: 24px; margin-bottom: .6em; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .74em;
  width: 9px; height: 9px; background: var(--accent);
}

/* ---------- A.T.L.A.S strip ---------- */

.atlas-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 44px; }
.atlas-step { background: var(--navy); padding: 30px 24px 34px; }
.atlas-step .glyph {
  font-family: var(--serif); font-weight: 900; font-size: 4.1rem;
  line-height: .9; color: var(--accent); display: block; margin-bottom: 18px;
}
.atlas-step .bar { width: 100%; height: 1px; background: var(--navy-line); margin-bottom: 16px; }
.atlas-step .name {
  font-weight: 700; font-size: .82rem; letter-spacing: .19em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px;
}
.atlas-step p { font-size: .95rem; margin: 0; color: var(--ink-2); }

/* ---------- steps (M.A.P.S process) ---------- */

.steps { counter-reset: s; display: grid; gap: 2px; margin-top: 40px; }
.step {
  display: grid; grid-template-columns: 78px 1fr; gap: 24px;
  padding: 26px 30px; background: var(--navy-panel);
  align-items: start;
}
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--serif); font-weight: 900; font-size: 2.1rem;
  color: var(--accent); line-height: 1;
}
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; }

/* ---------- metrics ---------- */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.metric { background: var(--navy-panel); padding: 30px 26px; }
.metric b {
  display: block; font-family: var(--serif); font-weight: 900;
  font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.metric span { font-size: .9rem; color: var(--muted); }

/* ---------- case ---------- */

.case { border-left: 5px solid var(--accent); background: var(--navy-panel); padding: 34px 38px; }
.case .hd { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 1.2em; }

/* pull quote */
.pull {
  border-left: 5px solid var(--accent);
  padding: 22px 28px; background: rgba(255,255,255,.03);
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.45;
}

/* ---------- people ---------- */

.person { background: var(--navy-panel); border-top: 3px solid var(--accent); padding: 24px; }
.person b { display: block; color: var(--ink); margin-bottom: .3em; }
.person span { font-size: .91rem; color: var(--muted); }

/* ---------- faq ---------- */

.faq details { border-bottom: 1px solid var(--navy-line); }
.faq details:first-child { border-top: 1px solid var(--navy-line); }
.faq summary {
  cursor: pointer; padding: 22px 0; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 10px; margin: 0; }

/* ---------- cta ---------- */

.cta-band { background: var(--navy-panel); border-left: 5px solid var(--accent); padding: 48px 44px; }

/* ---------- footer ---------- */

.site-foot { background: var(--navy-deep); border-top: 1px solid var(--navy-line); padding: 58px 0 0; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; margin-bottom: 38px; }
.site-foot h4 {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; font-weight: 700;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .55em; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--accent); }
.foot-bar {
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 700;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 0;
}
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */

/* narrow desktop and tablet: nav drops to its own scrollable row */
@media (max-width: 1080px) {
  .head-in { flex-wrap: wrap; gap: 10px; }
  .nav {
    margin-left: 0; width: 100%; gap: 18px;
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn { padding: 9px 18px; }
}

@media (max-width: 1000px) {
  .atlas-strip { grid-template-columns: repeat(2, 1fr); }
  .g4, .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .g2, .g3, .g4, .metrics, .atlas-strip { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .head-in { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .nav {
    margin-left: 0; width: 100%; gap: 16px;
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: .87rem; white-space: nowrap; }
  .nav .btn { padding: 8px 15px; font-size: .84rem; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .cta-band, .case { padding: 30px 24px; }
}

@media (max-width: 640px) {
  .hero::after { width: 440px; height: 440px; right: -160px; top: -140px; opacity: .07; }
}

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

/* ---------- government credibility layer (added 2026-08-31, review build) ----------
   New utility classes only; nothing above this line was changed. */

.eng-label {
  display: block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 1.2rem 0 .3rem;
}
.card .eng-label + p { font-size: .95rem; }

.factrows { border-top: 1px solid var(--navy-line); margin-top: 14px; }
.factrow {
  display: grid; grid-template-columns: 190px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--navy-line);
}
.factrow b {
  font-family: var(--mono); font-weight: 500; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-top: 3px;
}
.factrow span { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 640px) {
  .factrow { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- contact form (added 2026-08-31) ---------- */

.contact-form { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field-full { grid-column: 1 / -1; }
.field label {
  display: block; font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: 0;
  padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none; align-items: center; gap: 9px; margin: 16px 0 0;
  font-family: var(--mono); font-weight: 500; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.form-status.show { display: flex; }
.form-status::before { content: ""; width: 11px; height: 11px; flex: none; background: var(--green); }
.form-status.error::before { background: #d05555; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* footer contracting credentials line (added 2026-08-31) */
.foot-certs {
  font-family: var(--mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 14px 0 0;
}
