/* ============================================================
   Allied Mission Solutions, LLC
   Palette sampled from the logo mark.
   ============================================================ */

:root {
  --navy-900: #0E1534;
  --navy-800: #151E4C;
  --navy-700: #24306C;   /* logo navy */
  --navy-600: #2C3E86;
  --blue-600: #24609C;
  --blue-500: #2484C0;   /* logo mid blue */
  --azure-400: #2EA0D8;  /* logo bright */
  --azure-200: #8FD2F2;

  --steel-700: #3C434E;
  --steel-500: #6A7280;
  --steel-300: #A8B0BC;
  --steel-100: #DCE2EA;

  --paper: #FFFFFF;
  --paper-2: #F4F7FA;
  --rule: #DEE5ED;

  --ink-900: #11161F;
  --ink-700: #2C333E;
  --ink-500: #5A6472;
  --ink-300: #8D96A4;

  --display: "Archivo", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 1240px;
  --narrow: 720px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; font-family:var(--sans); font-size:1.0625rem; line-height:1.68;
  color:var(--ink-700); background:var(--paper); -webkit-font-smoothing:antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color:var(--blue-600); text-underline-offset:3px; }
a:hover { color:var(--azure-400); }

h1,h2,h3 {
  font-family:var(--display); color:var(--navy-900); font-weight:700;
  line-height:1.02; letter-spacing:-0.035em; margin:0 0 .5em;
  text-wrap:balance;
}
h1 { font-size:clamp(2.9rem, 7.4vw, 6rem); }
h2 { font-size:clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size:1.22rem; line-height:1.22; letter-spacing:-0.02em; }
h4 { font-family:var(--sans); font-size:.95rem; font-weight:650; color:var(--navy-800); margin:0 0 .35em; }
p { margin:0 0 1em; }
.lede { font-size:1.18rem; line-height:1.6; color:var(--ink-500); }

/* chevron-marked eyebrow — derived from the logo mark */
.eyebrow {
  font-size:.69rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:var(--blue-500); margin:0 0 1.1rem; display:flex; align-items:center; gap:.6rem;
}
.eyebrow::before {
  content:""; width:11px; height:9px; flex:none; background:currentColor;
  clip-path:polygon(50% 0,100% 100%,76% 100%,50% 48%,24% 100%,0 100%);
}
.eyebrow-c { justify-content:center; }

/* ---------- Layout ---------- */
.wrap { max-width:var(--measure); margin-inline:auto; padding-inline:var(--gutter); }
.wrap-narrow { max-width:var(--narrow); margin-inline:auto; padding-inline:var(--gutter); }
section { padding-block:clamp(4rem,9vw,8rem); }
.tint { background:var(--paper-2); }
.deep { background:var(--navy-900); color:var(--steel-300); }
.deep h1,.deep h2,.deep h3,.deep h4 { color:#fff; }
.deep .eyebrow { color:var(--azure-400); }
.deep .lede { color:var(--steel-300); }
.deep a { color:var(--azure-200); }

.grid { display:grid; gap:clamp(1.5rem,3vw,2.5rem); }
.g2 { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.g3 { grid-template-columns:repeat(auto-fit,minmax(248px,1fr)); }

/* asymmetric split — the default, not a centered column */
.split { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(2rem,6vw,5.5rem); align-items:start; }
.split-r { grid-template-columns:minmax(0,7fr) minmax(0,5fr); }
.split-c { align-items:center; }
@media (max-width:860px){ .split,.split-r { grid-template-columns:1fr; } }

.skip { position:absolute; left:-9999px; background:var(--navy-900); color:#fff; padding:.75rem 1.25rem; z-index:999; }
.skip:focus { left:0; }

/* Sticky header offset so in-page targets land at the top of their section */
html { scroll-padding-top:clamp(72px,10vw,124px); }
[id] { scroll-margin-top:clamp(72px,10vw,124px); }

/* ---------- Header ---------- */
.site-header { position:sticky; top:0; z-index:60; background:rgba(255,255,255,.94); backdrop-filter:blur(12px); border-bottom:1px solid var(--rule); }
.header-inner { display:flex; padding-block:.5rem; align-items:center; justify-content:space-between; gap:1.25rem; min-height:clamp(64px,9vw,112px); }
.brand { display:block; }
.brand img { height:clamp(44px,7.5vw,88px); width:auto; display:block; }

.nav { display:flex; align-items:center; gap:clamp(.7rem,1.8vw,1.6rem); flex-wrap:nowrap; }
.nav a { font-size:clamp(.74rem,1.25vw,.88rem); font-weight:550; color:var(--ink-700); text-decoration:none; padding:.3rem 0; border-bottom:2px solid transparent; white-space:nowrap; }
.nav a:hover { color:var(--blue-600); }
.nav a[aria-current="page"] { color:var(--navy-900); border-bottom-color:var(--azure-400); }
.nav-toggle { display:none; background:none; border:1px solid var(--rule); border-radius:4px; padding:.42rem .6rem; cursor:pointer; color:var(--navy-900); }
@media (max-width:620px){
  .nav-toggle { display:block; }
  .nav { display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0; background:#fff; border-bottom:1px solid var(--rule); padding:.4rem var(--gutter) 1.25rem; }
  .nav.open { display:flex; }
  .nav a { padding:.8rem 0; border-bottom:1px solid var(--rule); }
  .nav .btn { margin-top:.9rem; text-align:center; }
}

/* ---------- Buttons ---------- */
.btn { display:inline-block; font-size:.89rem; font-weight:650; letter-spacing:.02em; text-decoration:none;
  padding:.85rem 1.7rem; border:1.5px solid transparent; cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease; }
.btn-primary { background:var(--blue-600); color:#fff; }
.btn-primary:hover { background:var(--navy-700); color:#fff; }
.btn-azure { background:var(--azure-400); color:var(--navy-900); }
.btn-azure:hover { background:var(--azure-200); color:var(--navy-900); }
.btn-outline { border-color:var(--blue-600); color:var(--blue-600); }
.btn-outline:hover { background:var(--blue-600); color:#fff; }
.btn-ghost { border-color:rgba(143,210,242,.5); color:var(--azure-200); }
.btn-ghost:hover { background:var(--azure-200); color:var(--navy-900); }
.btn-row { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.8rem; }

/* ---------- Hero ---------- */
.hero { position:relative; background:var(--navy-900); color:#fff; overflow:hidden;
  padding-block:clamp(5rem,13vw,10rem); }
.hero::before {
  content:""; position:absolute; inset:0;
  background:url('../assets/graphics/hero-field.svg') right center / cover no-repeat;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, var(--navy-900) 26%, rgba(14,21,52,.72) 52%, rgba(14,21,52,.25) 100%);
}
.hero > * { position:relative; z-index:1; }
.hero h1 { color:#fff; max-width:13ch; margin-bottom:.3em; }
.hero .lede { color:var(--steel-300); max-width:46ch; }
.hero-compact { padding-block:clamp(3.5rem,8vw,6rem); }
.hero-compact h1 { font-size:clamp(2.4rem,5.6vw,4.2rem); max-width:17ch; }
.hero-kicker { display:flex; gap:.55rem; align-items:center; font-size:.7rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--azure-400); margin-bottom:1.5rem; }

/* angled light pattern for tinted sections */
.pat { position:relative; }
.pat::before { content:""; position:absolute; inset:0;
  background:url('../assets/graphics/angle-light.svg') center / cover no-repeat; opacity:.9; pointer-events:none; }
.pat > * { position:relative; z-index:1; }

/* ---------- Figures ---------- */
.figure { position:relative; background:var(--steel-100); overflow:hidden; }
.figure img { width:100%; height:100%; object-fit:cover; }
.r11 { aspect-ratio:1/1; } .r43 { aspect-ratio:4/3; } .r169 { aspect-ratio:16/9; } .r34 { aspect-ratio:3/4; }
/* chevron corner cut, echoing the mark */
.figure-cut { clip-path:polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); }
.figure-edge { box-shadow:-14px 14px 0 0 var(--azure-400); }

.slot { display:grid; place-content:center; text-align:center; padding:1.5rem;
  background:var(--paper-2); border:1.5px dashed var(--blue-500); color:var(--blue-600); }
.slot-k { font-size:.64rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; margin-bottom:.45rem; }
.slot-d { font-size:.83rem; line-height:1.45; max-width:28ch; margin:0 auto; color:var(--ink-500); }

/* ---------- Oversized numerals ---------- */
.bignum { font-family:var(--display); font-size:clamp(3.2rem,7vw,5.5rem); font-weight:700;
  line-height:.85; letter-spacing:-.05em; color:var(--azure-400); display:block; margin-bottom:.5rem; }
.bignum-o { color:transparent; -webkit-text-stroke:1.5px var(--azure-400); }

/* ---------- Cards ---------- */
.card { background:#fff; border:1px solid var(--rule); padding:1.9rem 1.7rem; position:relative; }
.card::before { content:""; position:absolute; top:0; left:0; width:30px; height:3px; background:var(--azure-400); }
.card h3 { margin-bottom:.4rem; }
.card p:last-child { margin-bottom:0; }
.card-dark { background:var(--navy-800); border-color:rgba(143,210,242,.14); color:var(--steel-300); }
.card-dark h3 { color:#fff; }

.eng { background:#fff; border:1px solid var(--rule); display:flex; flex-direction:column; }
.eng-head { padding:1.7rem 1.7rem 1.1rem; border-bottom:1px solid var(--rule); }
.eng-head h3 { margin:.2rem 0 .25rem; }
.eng-meta { font-size:.8rem; color:var(--ink-300); margin:0; letter-spacing:.03em; }
.eng-body { padding:1.3rem 1.7rem 1.75rem; flex:1; }

/* ---------- Lists ---------- */
.ticks { list-style:none; padding:0; margin:0 0 1.2rem; }
.ticks li { position:relative; padding-left:1.4rem; margin-bottom:.55rem; font-size:.95rem; }
.ticks li::before { content:""; position:absolute; left:0; top:.6em; width:9px; height:7px; background:var(--azure-400);
  clip-path:polygon(50% 0,100% 100%,74% 100%,50% 46%,26% 100%,0 100%); }

/* ---------- Facts strip ---------- */
.facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); border-top:1px solid rgba(143,210,242,.2); }
.fact { padding:1.6rem 1.4rem; border-bottom:1px solid rgba(143,210,242,.2); border-right:1px solid rgba(143,210,242,.2); }
.fact:last-child { border-right:none; }
.fact-k { font-size:.64rem; letter-spacing:.17em; text-transform:uppercase; color:var(--azure-400); font-weight:700; margin-bottom:.5rem; }
.fact-v { font-family:var(--display); font-size:1.3rem; font-weight:700; color:#fff; letter-spacing:-.02em; }

/* ---------- Pull quote ---------- */
.pull { font-family:var(--display); font-size:clamp(1.6rem,3.6vw,2.6rem); line-height:1.08; font-weight:700;
  letter-spacing:-.032em; color:var(--navy-900); margin:0; }
.deep .pull { color:#fff; }
.pull-by { font-family:var(--sans); font-size:.82rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-300); margin-top:1.3rem; }
.deep .pull-by { color:var(--steel-500); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x:auto; margin:1.8rem 0; }
table { width:100%; border-collapse:collapse; font-size:.93rem; }
caption { text-align:left; font-size:.8rem; color:var(--ink-300); padding-bottom:.6rem; }
th,td { text-align:left; padding:.8rem .9rem; border-bottom:1px solid var(--rule); }
th { font-size:.66rem; letter-spacing:.15em; text-transform:uppercase; color:var(--blue-600); font-weight:700;
  background:var(--paper-2); border-bottom:1.5px solid var(--azure-400); }
.mono { font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace; font-size:.93em; color:var(--navy-700); font-weight:600; }

.kv { width:100%; font-size:.86rem; }
.kv th { background:none; border:none; text-transform:none; letter-spacing:0; font-size:.78rem; color:var(--ink-300); font-weight:500; padding:.32rem 0; width:40%; }
.kv td { border:none; padding:.32rem 0; color:var(--navy-900); font-weight:550; }

/* ---------- Callout ---------- */
.callout { background:var(--paper-2); border-left:3px solid var(--azure-400); padding:1.3rem 1.5rem; margin:2rem 0; font-size:.94rem; }
.callout p:last-child { margin-bottom:0; }
.callout strong { color:var(--navy-900); }

/* ---------- Forms ---------- */
.form-field { margin-bottom:1.3rem; }
.form-field label { display:block; font-size:.82rem; font-weight:650; color:var(--navy-800); margin-bottom:.38rem; }
.req { color:var(--azure-400); }
.form-field input,.form-field select,.form-field textarea {
  width:100%; font-family:var(--sans); font-size:1rem; color:var(--ink-900);
  padding:.75rem .9rem; border:1px solid var(--rule); background:#fff; border-radius:0; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus {
  outline:none; border-color:var(--azure-400); box-shadow:0 0 0 3px rgba(46,160,216,.16); }
.form-field textarea { min-height:150px; resize:vertical; }
.form-hint { font-size:.8rem; color:var(--ink-300); margin-top:.3rem; }
.hp { position:absolute; left:-9999px; }

/* ---------- Footer ---------- */
.site-footer { background:var(--navy-900); color:var(--steel-300); padding-block:3.75rem 1.9rem; font-size:.9rem; }
.site-footer img.flogo { height:128px; width:auto; margin-bottom:1.3rem; }
.site-footer h4 { color:#fff; font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; margin-bottom:1rem; }
.site-footer a { color:var(--steel-300); text-decoration:none; }
.site-footer a:hover { color:var(--azure-200); }
.footer-grid { display:grid; gap:2.4rem; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.footer-list { list-style:none; padding:0; margin:0; }
.footer-list li { margin-bottom:.5rem; }
.footer-bottom { margin-top:3rem; padding-top:1.4rem; border-top:1px solid rgba(143,210,242,.16);
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; font-size:.79rem; color:var(--steel-500); }

/* ---------- Placeholder ---------- */
.ph { background:rgba(46,160,216,.13); border-bottom:1.5px dotted var(--azure-400);
  padding:.05em .3em; color:var(--blue-600); font-family:ui-monospace,Menlo,monospace; font-size:.88em; }
.deep .ph { color:var(--azure-200); }

/* ---------- Capability sheet ---------- */
.capsheet { background:#fff; max-width:8.5in; margin:0 auto; padding:.7in; border:1px solid var(--rule); font-size:.88rem; line-height:1.52; }
.capsheet h1 { font-size:1.75rem; margin-bottom:.1em; letter-spacing:-.03em; }
.capsheet h2 { font-family:var(--sans); font-size:.7rem; letter-spacing:.17em; text-transform:uppercase; color:var(--blue-600);
  border-bottom:1.5px solid var(--azure-400); padding-bottom:.32rem; margin:1.5rem 0 .8rem; }
.capsheet-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1.5rem;
  border-bottom:2.5px solid var(--navy-700); padding-bottom:1rem; }
.capsheet-cols { display:grid; grid-template-columns:1.35fr 1fr; gap:2.2rem; }
@media (max-width:760px){ .capsheet-cols { grid-template-columns:1fr; } }

/* ---------- Reveal ---------- */
.rv { opacity:0; transform:translateY(18px); transition:opacity .75s cubic-bezier(.2,.6,.2,1),transform .75s cubic-bezier(.2,.6,.2,1); }
.rv.in { opacity:1; transform:none; }

@media print {
  .site-header,.site-footer,.no-print { display:none !important; }
  body { background:#fff; font-size:10.5pt; }
  .capsheet { border:none; padding:0; margin:0; max-width:none; }
  section { padding-block:0; }
  a { color:var(--ink-900); text-decoration:none; }
  .rv { opacity:1 !important; transform:none !important; }
  .ph { background:none; border-bottom:1px dotted #999; }
}
@media (prefers-reduced-motion:reduce){
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; animation:none !important; }
  .rv { opacity:1; transform:none; }
}

/* ---------- Socio-economic designations ---------- */
/* Five marks, five columns — fixed count so the row never orphans the last one */
.desig { display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(.75rem,2.4vw,2rem); align-items:center; }
.desig-item { text-align:center; min-width:0; }
/* Explicit pixel ceiling: a percentage here let the marks overflow the box */
.desig-item img { display:block; margin:0 auto; width:auto; height:auto;
  max-width:100%; max-height:112px; object-fit:contain; }
.deep .desig-item img { filter:brightness(0) invert(1) opacity(.92); }
/* Official program marks keep their own colours */
.desig-official img, .deep .desig-official img {
  filter:none; background:#fff; padding:clamp(3px,.7vw,7px); border-radius:3px;
}
.desig-official.desig-round img { padding:0; border-radius:50%; }
.deep .desig-official img { box-shadow:0 0 0 1px rgba(255,255,255,.18); }
@media (max-width:900px){ .desig-item img { max-height:92px; } }
/* Below five-across, centre the wrap instead of stranding an item left */
@media (max-width:620px) {
  .desig { display:flex; flex-wrap:wrap; justify-content:center; gap:1.5rem 1.25rem; }
  .desig-item { flex:0 1 120px; }
  .desig-item img { max-height:84px; }
}
.desig-note { font-size:.82rem; color:var(--ink-300); margin-top:1.75rem; max-width:62ch; }
.deep .desig-note { color:var(--steel-500); }

/* inline designation chips for the capability sheet */
.chips { display:flex; flex-wrap:wrap; gap:.4rem; margin:0; padding:0; list-style:none; }
.chips li { font-size:.72rem; font-weight:650; letter-spacing:.04em; color:var(--navy-700);
  border:1px solid var(--azure-400); padding:.26rem .55rem; }

/* ---------- Homepage hero: large logo ---------- */
.hero-home { padding-block:clamp(4rem,9vw,7.5rem); }
.hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(2rem,5vw,5rem); align-items:center; }
.hero-home .hero-copy h1 { max-width:11ch; }
.hero-logo { order:2; display:flex; justify-content:center; }
.hero-logo img { width:min(100%,600px); height:auto; filter:drop-shadow(0 18px 42px rgba(14,21,52,.55)); }
.hero-copy { order:1; }
@media (max-width:860px){
  .hero-grid { grid-template-columns:1fr; }
  .hero-logo { order:0; justify-content:flex-start; }
  .hero-logo img { width:min(78%,380px); }
  .hero-copy { order:1; }
}

.nav a.btn { padding:clamp(.5rem,1.1vw,.85rem) clamp(.8rem,1.9vw,1.7rem); border-bottom:1.5px solid transparent; }
.nav a.btn-primary { color:#fff; }
.nav a.btn-primary:hover { color:#fff; background:var(--navy-700); }
