/* ==========================================================================
   hex.css - the components introduced by the client's design comps:
   the hexagon photo cluster in the hero, the eyebrow label, the icon strip
   under the hero text, and the light statistics band.
   ========================================================================== */

/* ---------- hexagon photo cluster ----------------------------------------
   The photographs are masked to a transparent hexagon when they are cropped
   out of the comps (see scratchpad/extract.py), so nothing is clipped here.
   That lets each photo keep its own proportions - no face gets stretched to
   fit one shared shape - and lets the outline follow the alpha channel, in
   whatever the current theme's accent happens to be, via stacked
   drop-shadows. Positions and sizes are the comp's own, as percentages of
   the cluster box, so the arrangement holds at any width.
   ------------------------------------------------------------------------ */
.hexfig {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 422 / 446;
  justify-self: center;
}
.hexfig::before {
  /* soft bloom behind the cluster, as in the comps */
  content: "";
  position: absolute;
  inset: -14% -8% -6%;
  background: radial-gradient(58% 52% at 54% 42%, rgba(79, 237, 240, 0.22), transparent 72%);
  pointer-events: none;
}
.hexfig__item {
  position: absolute;
  margin: 0;
  will-change: transform;
}
.hexfig__item img {
  display: block;
  width: 100%;
  height: auto;
  /* 1.5px outline that follows the hexagon's alpha edge */
  filter:
    drop-shadow(1.5px 0 0 var(--cyan)) drop-shadow(-1.5px 0 0 var(--cyan))
    drop-shadow(0 1.5px 0 var(--cyan)) drop-shadow(0 -1.5px 0 var(--cyan));
}
.hexfig__item--a { left: 37.9%; top: 0;     width: 62.1%; z-index: 2; }
.hexfig__item--b { left: 0.9%;  top: 26.9%; width: 45.7%; z-index: 1; }
.hexfig__item--c { left: 37.9%; top: 52.9%; width: 62.1%; z-index: 3; }

/* a slow, offset drift so the cluster is never quite static */
@media (prefers-reduced-motion: no-preference) {
  .hexfig__item { animation: hex-drift 9s ease-in-out infinite; }
  .hexfig__item--b { animation-duration: 11s; animation-delay: -3.5s; }
  .hexfig__item--c { animation-duration: 10s; animation-delay: -6s; }
  @keyframes hex-drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -9px, 0); }
  }
  /* entrance: each hexagon settles into place on load */
  .hexfig__item { animation-play-state: paused; opacity: 0; }
  .hexfig.is-in .hexfig__item { animation-play-state: running; opacity: 1; transition: opacity .7s ease; }
  .hexfig.is-in .hexfig__item--b { transition-delay: .12s; }
  .hexfig.is-in .hexfig__item--c { transition-delay: .24s; }
}

@media (max-width: 959px) {
  .hexfig { max-width: 400px; }
}
@media (max-width: 420px) {
  .hexfig { max-width: 320px; }
}

/* ---------- eyebrow label ------------------------------------------------
   The short accent dash followed by wide-tracked small capitals that opens
   every section in the comps.
   ------------------------------------------------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-text);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--pri);
}
.hero .eyebrow,
.section--navy .eyebrow,
.cta-band .eyebrow { color: var(--cyan); }
.hero .eyebrow::before,
.section--navy .eyebrow::before,
.cta-band .eyebrow::before { background: var(--cyan); }

/* ---------- icon strip under the hero text ------------------------------- */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.hero-strip li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.hero-strip li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-strip svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 560px) {
  .hero-strip li { border-right: 0; margin-right: 0; padding-right: 0; flex: 1 1 46%; }
}

/* ---------- statistics band ---------------------------------------------
   The light band that sits directly beneath the hero in the comps. Numbers
   count up once it scrolls into view (js/counters.js).
   ------------------------------------------------------------------------ */
.statband {
  position: relative;
  z-index: 3;
  background: var(--surf);
  border-block: 1px solid var(--line);
}
.statband__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 0;
  margin: 0;
  padding: clamp(20px, 3vw, 30px) 0;
  list-style: none;
}
.statband__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: clamp(12px, 2.4vw, 28px);
}
.statband__list li + li { border-left: 1px solid var(--line); }
.statband svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--pri);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.statband b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* the one stat that is a word rather than a number: set smaller so it sits on a
   single line and does not shout over the three figures beside it */
.statband b.is-text { font-size: clamp(1.02rem, 1.85vw, 1.28rem); line-height: 1.15; }
.statband span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--mut);
}
/* The comps keep this band light even though every other section on the page is dark,
   which is what makes it read as a band rather than another section. So on the dark
   theme it holds the light palette's own token values - written out literally, because
   the dark theme has redefined those tokens by this point. They are the light theme's
   exact hex values, so switching the site to another palette remaps them with the rest. */
:root[data-theme="dark"] .statband { background: #f4fafa; border-color: #d3e6e6; }
:root[data-theme="dark"] .statband b { color: #06262e; }
:root[data-theme="dark"] .statband span { color: #4a6670; }
:root[data-theme="dark"] .statband svg { stroke: #00706a; }
:root[data-theme="dark"] .statband__list li + li { border-left-color: #d3e6e6; }

@media (max-width: 719px) {
  /* two per row: only the second of each pair keeps a divider */
  .statband__list li:nth-child(odd) { border-left: 0; }
}
@media (min-width: 720px) {
  .statband__list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- CTA band with a photograph -----------------------------------
   The comps run a photograph into the right-hand side of the SBIR band behind a
   diagonal edge. The band keeps its flex row; the padding on the right is what
   holds the heading and button clear of the picture.
   ------------------------------------------------------------------------ */
.cta-band--media::after { display: none; }   /* drop the decorative rings */
.cta-band__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  margin: 0;
  z-index: 0;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.cta-band__media::after {
  /* blend the photograph's left edge into the band */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy-2) 2%, rgba(0, 0, 0, 0) 46%);
}
@media (max-width: 759px) {
  /* stacked: the photograph becomes a strip under the text rather than a side panel */
  .cta-band--media { padding-bottom: 0; }
  .cta-band__media { position: relative; inset: auto; width: auto; margin: 6px -1px -1px; height: 150px; clip-path: none; }
  .cta-band__media::after { background: linear-gradient(to bottom, var(--navy-2), rgba(0, 0, 0, 0) 55%); }
}
@media (min-width: 760px) {
  .cta-band--media { padding-right: 40%; }
  /* the picture narrows the content area, so stop the button wrapping into it */
  .cta-band--media .btn { white-space: nowrap; flex: 0 0 auto; }
}

/* ---------- photographic capability cards --------------------------------
   The comps put a photograph at the top of each capability card, fading into
   the card surface. The card itself is components.css/.cap-card; these rules
   only handle the photograph.
   ------------------------------------------------------------------------ */
.cap-card__img { position: relative; }
/* Fade the foot of the photograph into the card, as in the comps.
   This has to be ::before: components.css already uses .cap-card__img::after for the
   "Video" badge, and a second ::after here would inherit that rule's box and stretch
   the badge across the whole photograph. */
.cap-card__img::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--surf));
  pointer-events: none;
}

/* ---------- contour-line texture on the dark sections ---------------------
   The comps carry the same flowing contour lines used in the hero through the
   sections below it. Drawn on a pseudo-element so its opacity can be set
   independently of the section's own background. */
.section { position: relative; isolation: isolate; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../images/hero-waves.svg) right bottom / cover no-repeat;
  opacity: 0.2;
}
.section--navy::before { opacity: 0.28; }

/* ==========================================================================
   Contact page, as drawn in the client's comp: partnership band, inquiry card,
   location card and the closing collaboration strip.
   ========================================================================== */
.partner {
  background: linear-gradient(90deg, rgba(10, 72, 78, 0.55), rgba(5, 42, 48, 0.4));
  border-block: 1px solid rgba(79, 237, 240, 0.22);
}
.partner__grid { display: grid; gap: 18px 36px; align-items: center; padding-block: clamp(22px, 3vw, 32px); }
.partner__head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.12; }
.partner__text { margin: 0; color: var(--on-dark-mut); font-size: 0.98rem; line-height: 1.55; }
.partner__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.partner__list li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 0.92rem; line-height: 1.25; color: #fff; }
.partner__list svg { width: 38px; height: 38px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
  .partner__grid { grid-template-columns: 0.8fr 1.15fr 1.1fr; }
  .partner__head { padding-right: 36px; border-right: 1px solid rgba(255, 255, 255, 0.18); }
  .partner__text { padding-right: 36px; border-right: 1px solid rgba(255, 255, 255, 0.18); }
  .partner__list li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); }
}

.inq { padding-block: clamp(32px, 5vw, 56px); }
.inq__grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 960px) { .inq__grid { grid-template-columns: 1.15fr 0.85fr; } }

.form-card--comp {
  background: linear-gradient(160deg, rgba(8, 52, 58, 0.55), rgba(3, 26, 31, 0.78));
  border: 1px solid rgba(79, 237, 240, 0.45);
  border-radius: 18px; box-shadow: none;
}
.form-card--comp h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.form-card__sub { margin: 0 0 16px; color: var(--on-dark-mut); }
.form-card--comp .form { gap: 14px; }
.form-card--comp .form-progress { height: 3px; background: rgba(255, 255, 255, 0.1); }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-card--comp .field label { font-size: 0.86rem; font-weight: 600; margin-bottom: 5px; color: #fff; }
.form-card--comp .field label b { color: var(--cyan); }
.form-card--comp .field input:not([type="checkbox"]),
.form-card--comp .field select,
.form-card--comp .field textarea {
  min-height: 42px; padding: 9px 12px; font-size: 0.92rem;
  color: #06262e; background: #cfe0e3; border: 1px solid transparent; border-radius: 6px;
}
.form-card--comp .field textarea { min-height: 112px; }
.form-card--comp .field ::placeholder { color: #4a6670; opacity: 1; }
.form-card--comp .error { min-height: 0; margin: 3px 0 0; font-size: 0.82rem; }
.form-card--comp .error:empty { display: none; }
.form-card--comp .field--check input { accent-color: var(--cyan); background: #cfe0e3; }
.form-card--comp .field--check label { font-size: 0.82rem; color: var(--on-dark-mut); }
.form-foot { display: grid; gap: 12px; align-items: center; }
@media (min-width: 600px) { .form-foot { grid-template-columns: 1fr auto; gap: 20px; } }
.form-card--comp .note { margin: 0; font-size: 0.8rem; color: var(--mut); }

.loc-card {
  position: relative; overflow: hidden; display: flex; align-items: stretch;
  border: 1px solid rgba(79, 237, 240, 0.45); border-radius: 18px; min-height: 360px;
  background: #04242a;
}
.loc-card::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 74%;
  background: url(../images/photos/panel-building.webp) 60% center / cover no-repeat;
}
.loc-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #04242a 34%, rgba(4, 36, 42, 0.82) 48%, rgba(4, 36, 42, 0.35) 70%, rgba(4, 36, 42, 0.05) 100%);
}
.loc-card__body { position: relative; z-index: 1; display: grid; align-content: start; gap: 20px; width: 100%; padding: clamp(20px, 3vw, 30px); }
.loc-row { display: flex; gap: 14px; align-items: flex-start; max-width: 62%; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.loc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.loc-row h3 { margin: 0 0 6px; font-size: 1.28rem; }
.loc-row p { margin: 0; color: #e4f7f7; line-height: 1.55; font-size: 0.96rem; }
.loc-row a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .loc-row a:hover { color: var(--cyan); } }
.loc-ico { flex: none; }
.loc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) {
  .loc-card::before { width: 100%; opacity: 0.35; }
  .loc-card::after { background: linear-gradient(180deg, rgba(4, 36, 42, 0.85), rgba(4, 36, 42, 0.6)); }
  .loc-row { max-width: none; }
}

.cta-strip {
  background:
    radial-gradient(60% 140% at 100% 100%, rgba(79, 237, 240, 0.16), transparent 70%),
    linear-gradient(90deg, rgba(8, 56, 62, 0.5), rgba(4, 34, 40, 0.3));
  border-top: 1px solid rgba(79, 237, 240, 0.22);
}
.cta-strip__in { display: grid; gap: 18px 28px; align-items: center; padding-block: clamp(26px, 4vw, 40px); }
.cta-strip__ico svg { width: 56px; height: 56px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; }
.cta-strip__txt h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cta-strip__txt p { margin: 0; color: var(--on-dark-mut); max-width: 60ch; }
@media (min-width: 900px) { .cta-strip__in { grid-template-columns: auto 1fr auto; } .cta-strip__in .btn { white-space: nowrap; } }

/* ==========================================================================
   Bands and rows from the comps, shared by Home, About and Capabilities:
   icon band, photo band with diagonal edge, hexagon-icon row, project cards,
   numbers band.
   ========================================================================== */
.iconband {
  background: linear-gradient(90deg, rgba(10, 72, 78, 0.5), rgba(5, 42, 48, 0.35));
  border-block: 1px solid rgba(79, 237, 240, 0.2);
}
.iconband__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 0; margin: 0; padding: clamp(16px, 2.4vw, 24px) 0; list-style: none; }
.iconband__list li { display: flex; align-items: center; gap: 14px; padding-inline: clamp(10px, 2vw, 26px); font-weight: 600; line-height: 1.3; color: #fff; font-size: 0.97rem; }
.iconband__list svg, .minis svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .iconband__list li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.16); } }
@media (min-width: 900px) {
  .iconband__list { grid-template-columns: repeat(4, 1fr); }
  .iconband__list li + li { border-left: 1px solid rgba(255, 255, 255, 0.16); }
}

/* photo band: picture on the left behind a diagonal edge, text on the right */
.imgband { position: relative; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--line); }
.imgband__media { margin: 0; height: 220px; }
.imgband__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.imgband__body { position: relative; padding-block: clamp(30px, 5vw, 60px); }
.imgband__body h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.imgband__body p { color: #e4f7f7; }
.imgband .text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--cyan); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cyan); padding-bottom: 2px; }
.imgband .text-link svg { width: 18px; height: 18px; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.minis li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: #fff; }
.minis li + li { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.minis svg { width: 28px; height: 28px; }
@media (max-width: 559px) { .minis { grid-template-columns: 1fr; } .minis li + li { padding-left: 0; border-left: 0; } }
@media (min-width: 860px) {
  .imgband__media { position: absolute; inset: 0 auto 0 0; width: 47%; height: auto; clip-path: polygon(0 0, 100% 0, 71% 100%, 0 100%); }
  .imgband__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(3, 25, 30, 0.55)); }
  .imgband::before {
    content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 47%; background: var(--cyan); pointer-events: none;
    clip-path: polygon(calc(100% - 2px) 0, 100% 0, 71% 100%, calc(71% - 2px) 100%);
  }
  .imgband__body { margin-left: 49%; padding-right: clamp(16px, 3vw, 40px); }
}

/* hexagon-icon row (home capabilities, capabilities technical programs) */
.hexrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 0; margin: 26px 0 0; padding: 0; list-style: none; }
.hexrow li { text-align: center; padding-inline: clamp(8px, 1.4vw, 18px); }
.hexrow a { display: block; color: inherit; text-decoration: none; }
.hexrow h3 { margin: 12px 0 6px; font-size: 1rem; line-height: 1.25; color: #fff; }
.hexrow p { margin: 0 auto; max-width: 22ch; color: var(--on-dark-mut); font-size: 0.86rem; line-height: 1.4; }
.hexico { position: relative; display: inline-block; width: 66px; height: 66px; transition: transform 0.3s; }
@media (hover: hover) and (pointer: fine) { .hexrow a:hover .hexico { transform: translateY(-4px); } }
.hexico__hex { width: 100%; height: 100%; fill: rgba(79, 237, 240, 0.07); stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; }
.hexico__in { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hexrow--plain .hexico__hex { display: none; }
.hexrow--plain .hexico { height: 46px; }
.hexrow--plain .hexico__in { position: static; width: 44px; height: 44px; }
@media (min-width: 640px) { .hexrow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .hexrow { grid-template-columns: repeat(5, 1fr); }
  .hexrow li + li { border-left: 1px solid rgba(255, 255, 255, 0.16); }
}

/* project highlight cards */
.hl-grid { display: grid; gap: 18px; margin-top: 22px; }
.hl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(79, 237, 240, 0.4); border-radius: 14px; background: rgba(4, 36, 42, 0.7); color: inherit; text-decoration: none; transition: transform 0.3s, border-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .hl-card:hover { transform: translateY(-5px); border-color: var(--cyan); } }
.hl-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hl-card__body { position: relative; padding: 14px 58px 18px 18px; }
.hl-card h3 { margin: 0 0 6px; color: #fff; font-size: 1.06rem; }
.hl-card p { margin: 0; color: var(--on-dark-mut); font-size: 0.88rem; line-height: 1.45; }
.hl-card__go { position: absolute; right: 14px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--cyan); border-radius: 50%; color: var(--cyan); }
.hl-card__go svg { width: 16px; height: 16px; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; }
.head-row .text-link { color: var(--cyan); font-weight: 700; text-decoration: none; }
@media (min-width: 760px) { .hl-grid { grid-template-columns: repeat(3, 1fr); } }

/* impact numbers over a mountain ridge */
.numband { position: relative; padding-bottom: clamp(26px, 4vw, 44px); background: linear-gradient(180deg, rgba(3, 25, 30, 0) 0, #03191e 78%), url(../images/photos/band-mountain.webp) top center / 100% auto no-repeat, #03191e; padding-top: clamp(48px, 9vw, 130px); }
.numband__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 0; margin: 14px 0 0; padding: 0; list-style: none; }
.numband__list li { display: flex; align-items: center; gap: 14px; padding-inline: clamp(8px, 2vw, 26px); }
.numband__list svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.numband b { display: block; font: 700 clamp(1.5rem, 3vw, 2rem)/1 var(--font-head); color: #fff; }
.numband span { display: block; margin-top: 4px; color: #e4f7f7; font-size: 0.92rem; line-height: 1.3; }
.numband__list li.is-text span { margin: 0; font-weight: 600; font-size: 1rem; }
@media (max-width: 719px) { .numband__list li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.16); } }
@media (min-width: 720px) { .numband__list { grid-template-columns: repeat(4, 1fr); } .numband__list li + li { border-left: 1px solid rgba(255, 255, 255, 0.16); } }

/* ---------- spacing and page-hero scale, tuned to the comps ---------- */
.section--tight { padding-block: clamp(30px, 4.5vw, 56px); }
.head-row .lead { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--on-dark-mut); }
@media (min-width: 900px) { .head-row .lead { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.22); } }
.hero--page .lead { font-size: clamp(1rem, 1.55vw, 1.14rem); max-width: 48ch; }
@media (min-width: 960px) { .hero--page .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

/* capabilities page: five compact photo cards in a row, as in the comp */
#areas .cap-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { #areas .cap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { #areas .cap-grid { grid-template-columns: repeat(5, 1fr); } }
#areas .cap-card { border-radius: 18px; border: 1px solid rgba(79, 237, 240, 0.45); background: rgba(4, 36, 42, 0.7); overflow: hidden; }
#areas .cap-card__img img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
#areas .cap-card__body { padding: 14px 16px 16px; }
#areas .cap-card h3 { font-size: 1rem; line-height: 1.25; margin-bottom: 6px; }
#areas .cap-card p { font-size: 0.84rem; line-height: 1.4; }
#areas .cap-card { grid-column: auto; }
.hero--page h1 { font-size: clamp(2rem, 3.9vw, 3.15rem); }

/* ---------- header, as in the comps: larger badge, stacked wordmark, plain links ---------- */
.brand img { height: 44px; width: auto; }
.brand__t { display: grid; line-height: 1; font-size: 1.3rem; }
.brand__t small { margin-top: 3px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; color: var(--on-dark-mut); }
/* tighter home hero and a shorter photo band, closer to the comps */
.hero .lead { font-size: clamp(1rem, 1.5vw, 1.14rem); }
.hero:not(.hero--page) .hero-grid { padding-top: clamp(28px, 4.5vw, 56px); }
.imgband__body { padding-block: clamp(24px, 3.6vw, 46px); }
.imgband__body h2 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); }

/* the human-performance tile is wider than the other hexagons, so it takes more of the cluster's width */


/* ==========================================================================
   Round 3: photographic page heroes (About, Capabilities, Contact, Careers),
   one-line headings, category chips on the inquiry form.
   ========================================================================== */
.hero--photo { display: flex; align-items: center; min-height: clamp(420px, 40vw, 600px); background: var(--navy); }
.hero--photo .hero__bg {
  position: absolute; inset: 0 0 0 auto; z-index: 0; width: min(66%, 1000px); height: 100%;
  object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
.hero--photo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 28%; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, var(--navy), rgba(3, 25, 30, 0));
}
.hero--photo .hero-grid { position: relative; z-index: 1; display: block; padding-block: clamp(36px, 5vw, 72px); }
.hero--photo .hero__text { max-width: min(580px, 52%); }
.hero--globe .hero__bg, .hero--neuron .hero__bg { width: min(58%, 880px); }
.hero--photo .hero__bg--right { object-position: right center; }
@media (max-width: 859px) {
  /* phones and small tablets: the picture sits above the text instead of behind it */
  .hero--photo { display: block; min-height: 0; }
  .hero--photo .hero__bg {
    position: relative; inset: auto; display: block; width: 100%; height: clamp(210px, 58vw, 340px); object-fit: cover;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
  }
  .hero--globe .hero__bg, .hero--neuron .hero__bg { width: 100%; }
  .hero--globe .hero__bg { object-fit: contain; }
  .hero--photo::after { display: none; }
  .hero--photo .hero-grid { padding-block: 0 clamp(32px, 8vw, 52px); }
  .hero--photo .hero__text { max-width: none; }
}

/* icon band labels stay on two lines */
@media (min-width: 900px) { .iconband__list span { white-space: nowrap; } }

/* headings that the client wants on a single line, and wide lead paragraphs */
.section-head--wide { max-width: none; }
.section-head--wide .lead { max-width: none; }
@media (min-width: 860px) {
  .h-one { white-space: nowrap; }
  .section-head--wide.is-justify .lead { text-align: justify; }
}
.section-head--wide h2.h-one { font-size: clamp(1.45rem, 3.1vw, 2.5rem); }
.imgband__body h2.h-one { font-size: clamp(1.4rem, 2.35vw, 2rem); }
.lead-wide { max-width: 100ch; margin: 0 0 8px; color: var(--on-dark-mut); }
.cap-foot { max-width: 80ch; margin: 22px auto 0; text-align: center; color: var(--on-dark-mut); font-size: 1rem; line-height: 1.6; }

/* inquiry type: multi-select chips */
.field--areas { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--areas legend { padding: 0; margin-bottom: 8px; font-size: 0.86rem; font-weight: 600; color: #fff; }
.field--areas legend b { color: var(--cyan); }
.field--areas legend .hint { margin-left: 8px; font-weight: 500; color: var(--on-dark-mut); }
.achips { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { position: relative; display: inline-flex; }
.achip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.achip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid rgba(79, 237, 240, 0.35); border-radius: 999px;
  color: #fff; font-size: 0.88rem; font-weight: 600; background: rgba(4, 36, 42, 0.6);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.achip span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 4px; flex: none; transition: background 0.2s; }
.achip input:checked + span { background: var(--cyan); border-color: var(--cyan); color: #04222a; }
.achip input:checked + span::before {
  background: #04222a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3l2.7 2.7L11 4.5' fill='none' stroke='%234fedf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: #04222a;
}
.achip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .achip:hover span { border-color: var(--cyan); } }
.prefill-note { margin: 0 0 12px; padding: 9px 12px; border-left: 3px solid var(--cyan); background: rgba(79, 237, 240, 0.08); border-radius: 0 8px 8px 0; font-size: 0.9rem; color: #e4f7f7; }

/* Capabilities page: bento grid of capability cards (matches the client reference) */
.cap-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; overflow: hidden;
  border: 1px solid rgba(79, 237, 240, 0.28); border-radius: 14px; background: #04222a; color: #fff; text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
@media (hover: hover) and (pointer: fine) { .bcard:hover { border-color: var(--cyan); transform: translateY(-3px); } }
.bcard img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 62%; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.bcard--tall img { height: 74%; }
.bcard__body { position: relative; z-index: 1; padding: 6px 58px 6px 16px; border-left: 3px solid var(--cyan); margin: 0 0 18px 16px; }
.bcard__body h3 { margin: 0 0 5px; font-size: 1.12rem; line-height: 1.2; }
.bcard__body p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: #cfe3e6; }
.bcard__go { position: absolute; right: 16px; bottom: 18px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid #fff; border-radius: 50%; }
.bcard__go svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bcard__go { background: var(--cyan); border-color: var(--cyan); color: #04222a; } }
@media (min-width: 640px) { .cap-bento { grid-template-columns: 1fr 1fr; } .bcard--tall { grid-column: 1 / -1; min-height: 340px; } }
@media (min-width: 960px) {
  .cap-bento { grid-template-columns: 1.05fr 1fr 1fr; grid-auto-rows: 250px; }
  .bcard--tall { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
}

/* ==========================================================================
   SBIR/STTR page: photo hero, five-stage icon band, chevron steps, focus areas
   ========================================================================== */
.hero--sbir .hero__bg { width: min(62%, 940px); object-position: right center; }
.hero--sbir .hero__text { max-width: min(560px, 50%); }
@media (max-width: 859px) { .hero--sbir .hero__bg { width: 100%; } .hero--sbir .hero__text { max-width: none; } }
.iconband__list--five { grid-template-columns: repeat(5, auto); }
@media (max-width: 899px) { .iconband__list--five { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .iconband__list--five span { white-space: nowrap; } }

.sb-head { background: linear-gradient(180deg, #eaf6f6, #d7ecee); color: #06262e; padding-block: clamp(26px, 3.6vw, 44px); }
.sb-head__in { display: grid; gap: 14px; align-items: center; }
.sb-head .eyebrow { color: #00706a; }
.sb-head h2 { margin: 0; color: #06262e; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.sb-head h2 em { color: #008b84; }
.sb-head .lead { margin: 0; color: #25454f; max-width: 60ch; }
@media (min-width: 860px) { .sb-head__in { grid-template-columns: 1fr 1fr; gap: 0; } .sb-head .lead { padding-left: 28px; border-left: 2px solid #06262e; } }

.sb-steps { background: var(--navy); padding-block: 0 clamp(26px, 4vw, 44px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.step { position: relative; display: flex; flex-direction: column; background: rgba(4, 36, 42, 0.7); border: 1px solid rgba(79, 237, 240, 0.25); border-top: 0; }
.step__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.step__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step__go { position: absolute; right: -14px; top: calc(75% * 0.75 - 4px); z-index: 2; width: 32px; height: 32px; display: none; place-items: center; border-radius: 50%; background: var(--cyan); color: #04222a; }
.step__go svg { width: 16px; height: 16px; }
.step__body { padding: 16px 16px 20px; }
.step__body h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.15rem; }
.step__body h3 svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step__body p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--on-dark-mut); }
@media (min-width: 960px) {
  .step { border-top: 0; }
  .step__img { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); aspect-ratio: 5 / 4; }
  .step:first-child .step__img { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
  .step { margin-left: -10px; } .step:first-child { margin-left: 0; }
  .step__go { display: grid; top: 38%; right: -6px; }
  .step:last-child .step__go { display: none; }
}

.focusband { position: relative; background: linear-gradient(180deg, #05303a, #03191f); border-top: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px); overflow: hidden; }
.focusband::before { content: ""; position: absolute; inset: 0; background: url("images/hero-waves.svg") center / cover; opacity: 0.35; pointer-events: none; }
.focusband__in { position: relative; display: grid; gap: 22px; align-items: center; }
.focusband__ico svg { width: 52px; height: 52px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.focusband__txt h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.focusband__txt p { margin: 0; color: var(--on-dark-mut); font-size: 0.95rem; }
.focusband__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.focusband__list li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 0.86rem; font-weight: 600; }
.focusband__list svg { width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 560px) { .focusband__list { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 960px) {
  .focusband__in { grid-template-columns: auto 1fr 1.25fr; gap: 24px; }
  .focusband__list { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* the text layer must not swallow clicks meant for the picture links behind it */
.hero--photo .hero-grid { pointer-events: none; }
.hero--photo .hero__text { pointer-events: auto; }

/* ==========================================================================
   Clickable pictures: the link area follows the hexagon (not its rectangle), so a tap on
   the empty corners or the background never navigates; a small arrow badge marks them.
   ========================================================================== */
.imglink { position: relative; display: block; color: inherit; }
.imglink::before {
  content: ""; position: absolute; z-index: 3; right: 9%; bottom: 8%; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(3, 25, 30, 0.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M8 7h9v9' fill='none' stroke='%234fedf0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border: 1.5px solid rgba(79, 237, 240, 0.75); opacity: 0.9; pointer-events: none; transition: transform 0.25s, background-color 0.25s;
}
.hexfig .imglink { pointer-events: none; }
.hexfig .imglink::after { content: ""; position: absolute; inset: 0; pointer-events: auto; clip-path: polygon(26% 3%, 74% 3%, 97% 50%, 74% 97%, 26% 97%, 3% 50%); cursor: pointer; }
.hexfig .imglink--wide::after { clip-path: polygon(12% 2%, 88% 2%, 98% 50%, 88% 98%, 12% 98%, 2% 50%); }
.hexfig .imglink::before { right: 17%; bottom: 14%; }
.hexfig .imglink--wide::before { right: 13%; bottom: 12%; }
.hexfig .imglink:focus-visible::after { outline: 2px solid #fff; outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .imglink:hover::before { transform: scale(1.12); background-color: var(--cyan); } }
.cta-band__media .imglink::before { right: 14px; bottom: 14px; }
@media (max-width: 640px) { .imglink::before { width: 24px; height: 24px; background-size: 13px; } }
.hexfig__item--b .imglink::before { right: auto; bottom: auto; left: 17%; top: 14%; }

/* ==========================================================================
   About page, round 4: slim photo hero, "Who We Are / Mission / Vision" strip right under it,
   "Experience & Expertise" band, "Impact at a Glance" heading.
   ========================================================================== */
.hero--about { min-height: clamp(300px, 27vw, 400px); }
.hero--about .hero__bg { width: min(54%, 800px); -webkit-mask-image: none; mask-image: none; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero--about .hero__text { max-width: min(600px, 54%); }
.hero--about::after { display: none; }
@media (max-width: 859px) { .hero--about .hero__bg { clip-path: none; width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); } .hero--about .hero__text { max-width: none; } }

.hexico--sm { width: 54px; height: 54px; flex: none; }
.hexico--sm .hexico__in { width: 26px; height: 26px; }
.aboutstrip { background: linear-gradient(180deg, #05303a, #03232b); border-block: 1px solid var(--line); padding-block: clamp(10px, 2vw, 22px); }
.aboutstrip__grid { display: grid; grid-template-columns: 1fr; }
.astrip { display: grid; grid-template-columns: 54px minmax(0, 0.9fr) minmax(0, 1.7fr); column-gap: 14px; align-items: center; padding-block: 16px; }
.astrip + .astrip { border-top: 1px solid var(--line); }
.astrip > div { display: contents; }
.astrip h2 { margin: 0; font-size: clamp(1.1rem, 4.6vw, 1.4rem); line-height: 1.2; }
.astrip p { margin: 0; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.9rem; line-height: 1.5; color: #dcecef; }
@media (min-width: 960px) {
  .aboutstrip__grid { grid-template-columns: repeat(3, 1fr); }
  .astrip { grid-template-columns: 54px 1fr; align-items: start; padding: 22px clamp(12px, 2vw, 28px); }
  .astrip + .astrip { border-top: 0; border-left: 1px solid var(--line); }
  .astrip > div { display: block; }
  .astrip h2 { font-size: 1.35rem; margin-bottom: 8px; }
  .astrip p { padding-left: 0; border-left: 0; }
}

.iconband--expertise .iconband__wrap { display: grid; gap: 14px; align-items: center; }
.iconband__head h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.iconband__head p { margin: 0; color: var(--on-dark-mut); font-size: 0.95rem; }
@media (min-width: 960px) { .iconband--expertise .iconband__wrap { grid-template-columns: minmax(250px, 0.62fr) 2fr; gap: 28px; } }
.numband__h { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
@media (max-width: 639px) {
  .astrip { grid-template-columns: 54px 1fr; row-gap: 10px; }
  .astrip p { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
.iconband--expertise { padding-block: clamp(16px, 2.4vw, 26px); }
@media (min-width: 960px) { .iconband--expertise .iconband__wrap { grid-template-columns: minmax(330px, 0.8fr) 2fr; } }

/* ==========================================================================
   Round 4: mobile chrome (header, back-to-top), centered capability rows
   ========================================================================== */
.site-header { transition: transform 0.28s ease, box-shadow 0.3s; }
@media (max-width: 959px) {
  :root { --header-h: 56px; }
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
  .header-inner { gap: 8px; }
  .brand img { height: 36px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 10px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .site-header.is-hidden { transform: translateY(-100%); }
  .to-top { width: 44px; height: 44px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .to-top::before { inset: 3px; background: rgba(3, 25, 30, 0.92); }
  .to-top svg { width: 19px; height: 19px; }
  .to-top.is-shown { opacity: 0.9; }
  .to-top.is-covered { opacity: 0; pointer-events: none; }
}

/* capability icon rows: wrap and centre every row, so an odd last item sits in the middle */
.hexrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 0; }
.hexrow li { flex: 0 0 50%; max-width: 50%; }
@media (min-width: 640px) { .hexrow li { flex-basis: 33.333%; max-width: 33.333%; } }
@media (min-width: 960px) { .hexrow li { flex-basis: 20%; max-width: 20%; } }
/* one icon size for the stat/number bands */
.numband__list svg { width: 34px; height: 34px; }
.hexrow--plain .hexico__in { width: 40px; height: 40px; }
.hexrow--plain .hexico { height: 42px; }
