/* Service Before Self. Geist throughout, one accent, light bands with deep-navy contrast bands.
   Radii: 999px pills, 28px tiles, 18px photo. */
:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --slate: #6e6e73;
  --rule: #d2d2d7;
  --navy: #0b1626;
  --navy-2: #13223a;
  --on-dark: #f5f5f7;
  --on-dark-muted: #8e9bb0;
  --accent: #1f5fd6;
  --accent-hover: #174bb0;
  --accent-ink: #ffffff;
  --radius: 28px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* kept for capability.css */
  --paper: var(--white);
  --alu: #e8e8ed;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem; line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1rem; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.03em; line-height: 1.04; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 50; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 550; font-size: 1.02rem;
  background: var(--accent); color: var(--accent-ink); line-height: 1;
  transition: background-color .2s, transform .2s var(--ease);
}
.pill:hover { background: var(--accent-hover); text-decoration: none; }
.pill:active { transform: scale(.97); }
.pill-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pill-ghost:hover { background: rgba(31, 95, 214, .08); }
.pill-sm { padding: .55rem 1rem; font-size: .88rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 1rem; }
.brand img { height: 2.1rem; width: auto; mix-blend-mode: multiply; }
.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); font-size: .88rem; opacity: .8; }
.nav ul a:hover { opacity: 1; text-decoration: none; }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(3.4rem, 10.5vw, 8.5rem); font-weight: 700; letter-spacing: -0.055em; line-height: .95; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--slate); max-width: 38ch; margin: 1.75rem auto 0; line-height: 1.35; letter-spacing: -0.015em; }
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; justify-content: center; margin-top: 2.25rem; }

/* ID strip: the signature element */
.idstrip {
  margin-top: clamp(3rem, 7vw, 5rem); width: 100%; max-width: 64rem;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--gray); border-radius: 22px; padding: .5rem;
}
.id { padding: 1rem .9rem; text-align: left; border-radius: 16px; position: relative; }
.id + .id::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--rule); }
.id-k { display: block; font-size: .76rem; color: var(--slate); margin-bottom: .3rem; }
.id-v {
  font-family: "Geist Mono", ui-monospace, monospace; font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 550; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums;
}
button.id-v {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-grid;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 550; letter-spacing: .02em; border-radius: 6px;
}
button.id-v > span { grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--ease); }
button.id-v .copied { opacity: 0; transform: translateY(6px); color: var(--accent); font-family: "Geist", sans-serif; letter-spacing: 0; }
button.id-v.done > span:first-child { opacity: 0; transform: translateY(-6px); }
button.id-v.done .copied { opacity: 1; transform: none; }
button.id-v:hover > span:first-child { color: var(--accent); }
button.id-v:focus-visible { outline-offset: 4px; }
.id-hint { font-size: .82rem; color: var(--slate); margin-top: .9rem; }

/* Bands */
.band-gray { background: var(--gray); }
.band-dark { background: var(--navy); color: var(--on-dark); }
.work, .record, .about, .certs, .contact { padding: clamp(5rem, 11vw, 9rem) 0; }
.display { font-size: clamp(2.3rem, 5.4vw, 4.25rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 18ch; }
.display-sm { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1.25rem; }
.muted { color: var(--slate); }
.band-dark .muted { color: var(--on-dark-muted); }

/* Tiles */
.tile { border-radius: var(--radius); padding: clamp(1.75rem, 3.5vw, 3rem); }
.tile h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.5rem; }
.tile-light { background: var(--white); }
.band-gray .tile-light { background: var(--white); }
.tile-dark { background: var(--navy); color: var(--on-dark); }
.tile-dark p { color: var(--on-dark-muted); }
.tile p { color: var(--slate); margin: 0; }
.tile-dark p { color: var(--on-dark-muted); }
.tiles-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.chips { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .45rem .85rem; border-radius: 999px; font-size: .92rem; background: var(--gray); }
.tile-dark .chips li { background: var(--navy-2); color: var(--on-dark); }

/* Record */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.5rem; margin: 0; }
.stat dt {
  font-size: clamp(3rem, 6.4vw, 5.25rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #9fb4d9 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat dd { margin: .9rem 0 0; color: var(--on-dark-muted); font-size: .98rem; max-width: 24ch; }
.fine-dark { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: .85rem; color: var(--on-dark-muted); }

/* About */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.photo { margin: 0; position: sticky; top: 5.5rem; }
.photo img { border-radius: 18px; }
.photo figcaption { font-size: .85rem; color: var(--slate); margin-top: .7rem; }
.lead { font-size: 1.2rem; line-height: 1.5; letter-spacing: -0.012em; }
.timeline { list-style: none; margin: 2.25rem 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 2px; background: var(--rule); border-radius: 2px; }
.timeline::after {
  content: ""; position: absolute; left: 0; top: .4rem; width: 2px; border-radius: 2px; background: var(--accent);
  height: calc((100% - .8rem) * var(--progress, 1));
}
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-bottom: 1.6rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.6rem - 5px); top: .35rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--rule); transition: box-shadow .4s var(--ease), background-color .4s;
}
.timeline li.lit::before { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent); }
.timeline .yr { font-family: "Geist Mono", monospace; font-size: .9rem; color: var(--slate); padding-top: .1rem; }
.timeline strong { font-weight: 600; }
.timeline p { margin: .2rem 0 0; color: var(--slate); font-size: .98rem; }

/* Certifications bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.b-sdvosb { grid-column: span 2; }
.b-dvbe { grid-column: span 2; }
.b-sb { grid-column: span 2; }
.b-sam { grid-column: span 3; }
.b-naics { grid-column: span 3; }
.big { font-size: clamp(2.4rem, 4.4vw, 3.6rem) !important; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--ink) !important; margin-bottom: 1.25rem !important; }
.b-dvbe .big { color: var(--accent) !important; }
.sam-ids { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.sam-ids .id-k { color: var(--on-dark-muted); }
.b-sam button.id-v { color: var(--on-dark); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.b-sam button.id-v .copied { color: #8fb0ff; }
.naics-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.naics-list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--gray); font-size: .95rem; }
.naics-list span { font-family: "Geist Mono", monospace; font-weight: 550; }
.textlink { font-weight: 550; }

/* Contact */
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .display { margin-left: auto; margin-right: auto; }
.mail { font-size: clamp(1.3rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: #8fb0ff; overflow-wrap: anywhere; }
.mail:hover { color: #fff; text-decoration: none; }
.contact-meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: center; margin-top: 1.75rem; color: var(--on-dark-muted); }
.contact-meta a { color: var(--on-dark); }

.footer { background: var(--navy); color: var(--on-dark-muted); font-size: .82rem; border-top: 1px solid var(--navy-2); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer p { margin: 0; }

/* Shared table styles (capability statement) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.naics th { font-family: "Geist Mono", monospace; font-weight: 550; }

/* ---------- Motion (only with JS, only without reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); transition: transform .9s var(--ease); }
  .js .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
  .js .hero-sub, .js .hero-cta, .js .idstrip, .js .id-hint { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .hero-sub { transition-delay: .2s; }
  .js .hero-cta { transition-delay: .3s; }
  .js .idstrip { transition-delay: .4s; }
  .js .id-hint { transition-delay: 1.2s; }
  .js .loaded .hero-title .line > span { transform: none; }
  .js .loaded .hero-sub, .js .loaded .hero-cta, .js .loaded .idstrip, .js .loaded .id-hint { opacity: 1; transform: none; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .stats .stat:nth-child(2) { transition-delay: .08s; }
  .js .stats .stat:nth-child(3) { transition-delay: .16s; }
  .js .stats .stat:nth-child(4) { transition-delay: .24s; }

  .js .grow { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .grow.in { opacity: 1; transform: none; }
  .js .tiles-2 .grow:nth-child(2), .js .bento .grow:nth-child(2) { transition-delay: .1s; }
  .js .bento .grow:nth-child(3) { transition-delay: .2s; }
  .js .bento .grow:nth-child(5) { transition-delay: .1s; }

  .tile { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .idstrip { grid-template-columns: repeat(3, 1fr); }
  .id:nth-child(4)::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-sdvosb, .b-dvbe { grid-column: span 1; }
  .b-sb, .b-sam, .b-naics { grid-column: span 2; }
}
@media (max-width: 760px) {
  .tiles-2, .about-grid { grid-template-columns: 1fr; }
  .photo { position: static; max-width: 28rem; }
}
@media (max-width: 560px) {
  .idstrip { grid-template-columns: 1fr 1fr; }
  .id:nth-child(3)::before, .id:nth-child(5)::before { display: none; }
  .id:nth-child(4)::before { display: block; }
  .id:nth-child(5) { grid-column: span 2; }
  .stats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-sdvosb, .b-dvbe, .b-sb, .b-sam, .b-naics { grid-column: span 1; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- Color layer ---------- */
:root {
  --teal: #0fa38f;
  --teal-deep: #0a5e5a;
  --amber: #f0a733;
  --amber-deep: #b5761a;
}

/* Hero aurora: three soft color fields drifting behind the headline */
.hero { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: -10% -5% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; }
.aurora .a1 { width: 42vw; height: 42vw; max-width: 620px; max-height: 620px; left: 8%; top: 4%; background: radial-gradient(circle, rgba(31,95,214,.55), rgba(31,95,214,0) 70%); }
.aurora .a2 { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; right: 6%; top: 10%; background: radial-gradient(circle, rgba(15,163,143,.5), rgba(15,163,143,0) 70%); }
.aurora .a3 { width: 30vw; height: 30vw; max-width: 440px; max-height: 440px; left: 38%; top: 38%; background: radial-gradient(circle, rgba(240,167,51,.38), rgba(240,167,51,0) 70%); }
.idstrip { background: rgba(245,245,247,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
@media (prefers-reduced-motion: no-preference) {
  .aurora .a1 { animation: drift1 18s ease-in-out infinite alternate; }
  .aurora .a2 { animation: drift2 22s ease-in-out infinite alternate; }
  .aurora .a3 { animation: drift3 16s ease-in-out infinite alternate; }
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vw, 8vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-6vw, -5vh) scale(1.2); } }

/* Work tiles with imagery */
.tile-env, .tile-supply { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile-media { aspect-ratio: 16 / 9; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .js .grow:not(.in) .tile-media img { transform: scale(1.1); } }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-body { padding: clamp(1.75rem, 3.5vw, 3rem); }
.tile-env h3 { color: var(--teal-deep); }
.tile-env .chips li { background: rgba(15,163,143,.1); color: #0a5e5a; }
.tile-supply .chips li { background: rgba(240,167,51,.14); color: #ffd28f; }

/* Record over the flight-path image */
.record { position: relative; overflow: hidden; isolation: isolate; }
.record-bg { position: absolute; inset: 0; z-index: -1; }
.record-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: translateY(var(--parallax, 0px)) scale(1.1); }
.record::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,22,38,.92) 0%, rgba(11,22,38,.55) 60%, rgba(11,22,38,.35) 100%); }
.stat dt { background: linear-gradient(180deg, #ffffff 25%, #8fb0ff 100%); -webkit-background-clip: text; background-clip: text; }
.stat:nth-child(3) dt { background-image: linear-gradient(180deg, #ffffff 25%, #6ee0cf 100%); }
.stat:nth-child(4) dt { background-image: linear-gradient(180deg, #ffffff 25%, #ffc978 100%); }

/* Colored certification tiles */
.tile-blue { background: linear-gradient(150deg, #2a6cf0 0%, #1a46a8 100%); color: #fff; }
.tile-teal { background: linear-gradient(150deg, #14b39c 0%, #0a6e66 100%); color: #fff; }
.tile-amber { background: linear-gradient(150deg, #f7b84e 0%, #d98a1c 100%); color: #2a1a03; }
.tile-blue .big, .tile-teal .big { color: #fff !important; }
.tile-amber .big { color: #2a1a03 !important; }
.tile-blue p, .tile-teal p { color: rgba(255,255,255,.85); }
.tile-amber p { color: rgba(42,26,3,.78); }
.b-dvbe .big { color: #fff !important; }
.tile-blue, .tile-teal, .tile-amber { position: relative; overflow: hidden; }
.tile-blue::after, .tile-teal::after, .tile-amber::after {
  content: ""; position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 65%); pointer-events: none;
}

/* Contact glow */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 70rem; height: 40rem; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(31,95,214,.35), rgba(15,163,143,.12) 55%, rgba(11,22,38,0));
}

.more { display: inline-block; margin-top: 1.5rem; }
.tile-env .more { color: var(--teal-deep); }
.tile-supply .more { color: #ffc978; }
.nav ul a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 900px) { .nav ul { gap: 1.1rem; } }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: var(--on-dark); opacity: .8; }
.footer-links a:hover { opacity: 1; }
.footer-row { align-items: center; }

/* Mobile nav: links move to a second, scrollable row instead of disappearing */
@media (max-width: 760px) {
  .nav-row { flex-wrap: wrap; height: auto; padding-top: .55rem; padding-bottom: .55rem; row-gap: .35rem; }
  .nav nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav ul { display: flex; gap: 1.25rem; white-space: nowrap; padding-right: 2rem; }
  .nav ul a { font-size: .86rem; }
  html { scroll-padding-top: 6rem; }
}
