/* ==========================================================
   ABOUT PAGE (pageCss: about)
   Text comes from src/_data/company.json and site.json.
   ========================================================== */
/* ---------- Intro: large emblem beside the blurb ----------
   The intro is as wide as the sections below it, so the emblem's right
   edge lines up with the right edge of the stats. Hidden on phones.
   B and bar at full strength, thin outline, a slightly darker diamond
   behind. (A muted, low-opacity version was tried and looked washed out.) */
.page-intro--emblem { max-width: 68rem; }
.emblem--about { display: none; }

@media (min-width: 40em) {
  .page-intro--emblem {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 3rem;
  }
  .emblem--about {
    display: block;
    width: clamp(8rem, 4rem + 8vw, 11rem);
  }
}

.emblem--about .emblem__b { fill: var(--text); }
.emblem--about .emblem__diamond {
  fill: var(--surface);
  stroke: var(--emblem-line);
  stroke-width: 1.3;
}

.about-section { max-width: 68rem; }
.about-section + .about-section { margin-top: clamp(3.5rem, 8vw, 6rem); }

/* ---------- Principal: text + numbers ---------- */
.principal {
  display: grid;
  gap: 2.5rem 4rem;
}
@media (min-width: 56em) {
  .principal { grid-template-columns: 3fr 2fr; align-items: start; }
}
.page .principal__text p { max-width: 60ch; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;        /* number above its label, label read second */
  padding-top: 0.75rem;
  border-top: 4px solid var(--rail-end);
}
.stats dd {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats dt {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ---------- Qualifications: three columns ---------- */
.quals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
}
.quals h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.quals ul { list-style: none; }
.quals li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.quals .num {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.limits li { display: flex; justify-content: space-between; gap: 1rem; }
.limits .num { display: inline; white-space: nowrap; text-align: right; }

/* ---------- Representative experience table ---------- */
.xp-wrap { overflow-x: auto; }

.xp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.xp thead th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 1rem 0.6rem 0;
  border-bottom: 2px solid var(--rail-end);
}
.xp tbody th,
.xp td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.xp tbody th { font-weight: 600; width: 26%; }
.xp td { color: var(--text-muted); }
.xp .xp__value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.xp td:last-child { padding-right: 0; }

/* Phones: each project becomes a stacked block */
@media (max-width: 47.99em) {
  .xp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .xp, .xp tbody, .xp tr, .xp th, .xp td { display: block; width: auto; }
  .xp tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .xp tbody th, .xp td { padding: 0.15rem 0; border: 0; }
  .xp tbody th { width: auto; margin-bottom: 0.3rem; }
  .xp .xp__value { text-align: left; }
  .xp td[data-label="Location"],
  .xp td[data-label="Value"] { display: inline; }
  .xp td[data-label="Location"]::after { content: "  ·  "; white-space: pre; }
  .xp td[data-label="Scope"] { margin-top: 0.4rem; }
}

/* ---------- Government contracting ---------- */
.gov {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.gov__ids { display: grid; gap: 0.6rem; }
.gov__ids div { display: flex; gap: 1rem; align-items: baseline; }
.gov__ids dt { min-width: 4rem; font-weight: 700; }
.gov__ids dd { font-variant-numeric: tabular-nums; }
.gov__note { margin-left: 0.5rem; font-size: 0.8125rem; color: var(--text-muted); }
.page .gov p { margin-bottom: 0; }
