/* ==========================================================================
   pages.css - sections that belong to one page: hero, capability
   detail rows, SBIR split layout, About, Contact, Privacy
   ========================================================================== */

/* ---------- hero (home) and page hero (inner pages) ---------- */
/* The comps build the hero out of three layers: a teal glow sitting behind the hexagon
   cluster, a vignette that deepens the edges and the foot of the section, and a sweep of
   flowing contour lines across the lower left. The glow and vignette are gradients here;
   the contour lines are images/hero-waves.svg, drawn in the accent color. The black
   vignette is deliberately not a palette color, so it works for any theme. */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(64% 56% at 74% 36%, rgba(79, 237, 240, 0.17), transparent 68%),
    radial-gradient(100% 82% at 22% 118%, rgba(0, 0, 0, 0.5), transparent 64%),
    radial-gradient(60% 60% at 2% 4%, rgba(0, 0, 0, 0.38), transparent 70%),
    var(--navy);
}
.hero__waves {
  position: absolute; inset: auto 0 0; height: min(78%, 620px);
  width: 100%; object-fit: cover; object-position: left bottom;
  pointer-events: none; opacity: 0.85;
}
/* The node network stays - it was asked for - but sits back now that the contour lines
   carry the hero, so the two do not read as competing graphics. */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.hero-grid {
  position: relative; display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
  padding-block: clamp(40px, 7vw, 88px) clamp(80px, 11vw, 140px);
}
.hero--page .hero-grid { padding-bottom: clamp(44px, 7vw, 84px); }
/* The home hero is now followed immediately by the statistics band, so it needs much
   less room underneath than it did when the hero ended the first screen. */
.hero:not(.hero--page) .hero-grid { padding-bottom: clamp(44px, 6vw, 78px); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--cyan); }
.hero .lead { color: var(--on-dark-mut); }
.hero p { color: var(--on-dark-mut); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 26px; }
.hero-actions .text-link { color: var(--cyan); font-weight: 700; }
.hero__img { max-width: 560px; justify-self: center; width: 100%; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero--page .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero__img { justify-self: end; }
}

.stats-wrap { margin-top: clamp(-96px, -8vw, -48px); position: relative; z-index: 3; padding-bottom: 8px; }

/* ---------- capabilities page ---------- */
.subnav {
  position: sticky; z-index: 40; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav__list { display: flex; gap: 8px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surf);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
@media (hover: hover) and (pointer: fine) { .subnav a:hover { border-color: var(--pri); } }
.subnav a.is-current { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }

.cap-detail { display: grid; gap: 26px; align-items: center; padding-block: clamp(36px, 6vw, 70px); border-top: 1px solid var(--line); }
.cap-detail:first-of-type { border-top: 0; }
/* On one column the heading and description come first, so tapping a chip in the
   sub-navigation lands on the text rather than on the picture above it. */
@media (max-width: 899px) { .cap-detail .frame { order: 2; } }
.cap-detail h2 { margin-bottom: 14px; }
.group-grid { display: grid; gap: 14px; margin-top: 22px; }
.group-card { padding: 20px 22px; background: var(--surf); border: 1px solid var(--line); border-left: 5px solid var(--pri); border-radius: var(--radius-sm); transition: transform 0.25s, box-shadow 0.25s; }
@media (hover: hover) and (pointer: fine) { .group-card:hover { transform: translateX(6px); box-shadow: var(--shadow); } }
.group-card h3 { margin-bottom: 6px; }
.group-card p { margin: 0; color: var(--mut); font-size: 0.97rem; }
.cap-detail .btn { margin-top: 22px; }
@media (min-width: 900px) {
  .cap-detail { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
  .cap-detail:nth-of-type(even) .frame { order: 2; }
}

/* ---------- SBIR/STTR ---------- */
.split { display: grid; gap: 36px; }
.split__media { align-self: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .split__media { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- About ---------- */
.founder { display: grid; gap: 28px; align-items: start; }
.credentials { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.credentials li { position: relative; padding-left: 34px; }
.credentials li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--pri) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.credentials b { display: block; }
@media (min-width: 900px) { .founder { grid-template-columns: 1.25fr 0.75fr; gap: 56px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-info .frame { margin-top: 26px; max-width: 480px; }
.contact-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }

/* ---------- Privacy ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 1.9em; }

/* ---------- home: company introduction ---------- */
.intro-grid { display: grid; gap: 28px; align-items: start; }
.intro-lede { font-size: clamp(1.02rem, 1.6vw, 1.12rem); }
.intro-lede strong { color: var(--acc-text); font-weight: 700; }
.intro .card { position: sticky; top: calc(var(--header-h) + 24px); }
.intro .card h3 { margin-bottom: 10px; }
.intro .card p { color: var(--mut); font-size: 0.97rem; }
.intro .cap-card__more { color: var(--pri); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.55fr 1fr; gap: 48px; } }
@media (max-width: 899px) { .intro .card { position: static; } }

/* ---------- capabilities hero: rotating capability panel (see js/cap-rotator.js) ---------- */
.cap-rotator { padding: 0; background: var(--navy-2); }
.cap-rotator__stage {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--navy-2); text-decoration: none;
}
.cap-rotator__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.6s ease;
}
.cap-rotator__stage img.is-on { opacity: 1; transform: none; }
.cap-rotator__cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap;
  padding: 14px 18px; background: rgba(4, 34, 42, 0.92); border-top: 1px solid rgba(79, 237, 240, 0.28);
}
.cap-rotator__label { color: #fff; font-weight: 700; font-size: 0.94rem; line-height: 1.35; }
.cap-rotator__dots { display: flex; gap: 8px; flex: none; }
.cap-rotator__dots button {
  width: 30px; height: 5px; padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: rgba(255, 255, 255, 0.3); transition: background 0.3s, transform 0.3s;
}
@media (hover: hover) and (pointer: fine) { .cap-rotator__dots button:hover { background: rgba(255, 255, 255, 0.6); } }
.cap-rotator__dots button[aria-current="true"] { background: var(--cyan); transform: scaleY(1.4); }
@media (prefers-reduced-motion: reduce) {
  .cap-rotator__stage img { transition: none; }
}

/* ---------- careers: expertise grid ---------- */
.group-grid--three { margin-top: 0; }
@media (min-width: 620px) { .group-grid--three { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .group-grid--three { grid-template-columns: repeat(3, 1fr); } }
