/* =================================================================
   AEVANTIS AEROSPACE — styles.css
   Design system: strict monochrome. Black / charcoal / muted grey / white.
   The only colour comes from imagery itself — never from CSS.
   Type: Inter (neo-grotesk, display + body) / JetBrains Mono (technical labels).
   Mission-critical / editorial-technical: sharp corners, 1px hairlines, strict grid.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --black:      #000000;
  --panel:      #0a0a0a;   /* charcoal panel */
  --panel-2:    #111111;
  --line:       #2a2a2a;   /* 1px hard borders */
  --line-soft:  #1b1b1b;
  --white:      #f4f4f2;
  --grey:       #8a8a8a;
  --grey-dim:   #5c5c5c;
  /* No brand colour. "Signal" is simply full white — used sparingly for the
     primary action, focus, and the live status dot. Hover = a dim grey. */
  --accent:     #f4f4f2;
  --accent-dim: #c9c9c6;

  --ff-display: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  --ff-body:    'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 80px);   /* page side gutter */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slide: cubic-bezier(0.4, 0, 0.2, 1);  /* slow, natural in-out for menus */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--white); color: var(--black); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--white); color: var(--black); padding: 12px 18px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- Shared atoms ---------- */
.eyebrow,
.mono-label,
.tag,
.hero__meta,
.cap-card__cat,
.form__label,
.btn {
  font-family: var(--ff-mono);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.14em; color: var(--grey);
  text-transform: uppercase;
}

.mono-label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--grey-dim);
}

.accent { color: var(--accent); }

/* blinking status indicator — restrained */
.status-dot {
  width: 7px; height: 7px; flex: 0 0 7px; background: var(--accent);
  display: inline-block; animation: blink 2.4s steps(1) infinite;
}
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid var(--line);
  background: transparent; color: var(--white);
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .15s var(--ease);
}
/* Primary action: solid white, black text — the loudest thing on the page,
   used sparingly. Hover = a slight dim, no movement. */
.btn--accent { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--accent:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.btn--ghost { color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--white); }
.btn:active { transform: translateY(1px); }

/* =================================================================
   NAV
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
/* Translucent by default; settles into a solid bar on scroll OR on hover. */
.site-header.is-scrolled,
.site-header:hover,
.site-header:focus-within {
  background: rgba(0,0,0,0.9);
  border-bottom-color: var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 16px var(--gut);
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark__img {
  display: block; height: 40px; width: auto;
}

/* Clean, open nav row — no segment dividers; links carry an underline reveal. */
.nav__links {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.nav__item { display: flex; align-items: center; }
.nav__item > a,
.nav__trigger {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: transparent; border: 0;
  font-family: var(--ff-display); font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em; color: var(--grey);
  transition: color .25s var(--ease);
}
/* Hairline that wipes in from the left under the label. */
.nav__item > a::after,
.nav__trigger::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__item > a:hover,
.nav__trigger:hover,
.nav__trigger[aria-expanded="true"] { color: var(--white); }
.nav__item > a[aria-current="page"],
.nav__trigger.is-active { color: var(--white); }
.nav__item > a:hover::after,
.nav__trigger:hover::after,
.nav__trigger[aria-expanded="true"]::after,
.nav__item > a[aria-current="page"]::after,
.nav__trigger.is-active::after { transform: scaleX(1); }

/* "+" expander — rotates to × on open. No chevrons, no arrows. */
.nav__plus {
  position: relative; width: 9px; height: 9px; flex: 0 0 9px;
  transition: transform .2s var(--ease);
}
.nav__plus::before, .nav__plus::after { content: ""; position: absolute; background: currentColor; }
.nav__plus::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.nav__plus::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.nav__trigger[aria-expanded="true"] .nav__plus { transform: rotate(45deg); }

/* ---- Single shared nav menu (one panel, content morphs per hovered item) ----
   All four nav items control #nav-menu. Hovering/focusing an item swaps which
   .nav-menu__group is shown; the panel itself stays put and fades (~200ms).
   See initDropdowns in main.js. */
.nav-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--black);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .2s var(--ease-slide), transform .2s var(--ease-slide);
}
.nav-menu.is-open { opacity: 1; transform: none; }
.nav-menu[hidden] { display: none; }
.nav-menu__group[hidden] { display: none; }
/* Content fades in each time a group is shown -> the "dynamic change" on hover. */
.nav-menu__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(20px, 2.6vw, 36px) var(--gut);
  display: grid; grid-template-columns: 1.6fr 1fr;
  min-height: 200px; align-content: start;
  animation: navMenuFade .2s var(--ease) both;
}
@keyframes navMenuFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-menu__inner { animation: none; } }
.nav-menu__col { padding: 0 clamp(22px, 2.6vw, 44px); border-left: 1px solid var(--line-soft); }
.nav-menu__col--primary { border-left: 0; padding-left: 0; }
.nav-menu__col--brief { padding-right: 0; }
.nav-menu__col > .mono-label { display: block; margin-bottom: 14px; color: var(--grey-dim); }
.nav-menu__list { display: grid; }
.nav-menu__list a {
  display: block; padding: 8px 0; border-bottom: 1px solid var(--line-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-menu__list a:first-child { border-top: 1px solid var(--line-soft); }
.nav-menu__name {
  display: block; font-family: var(--ff-display); font-weight: 500;
  text-transform: uppercase; font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: -0.01em; color: var(--white);
}
.nav-menu__cat {
  display: block; font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-dim); margin-top: 3px;
}
.nav-menu__list a:hover { color: var(--white); border-bottom-color: var(--grey); }
.nav-menu__desc { color: var(--grey); font-size: 14px; line-height: 1.5; margin-bottom: 24px; max-width: 34ch; }
/* "+" expander rotates to × whenever its menu is open (button or link trigger). */
.nav__item--has-menu [aria-expanded="true"] .nav__plus { transform: rotate(45deg); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav-menu { display: none !important; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 940px);
  /* Grid (not flex): a minmax(0,1fr) track stays full-width and never
     gets pushed/centered by the child's auto margins. align-content:end
     keeps the content bottom-aligned while remaining in normal flow. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  min-width: 0; /* allow shrink inside the grid track */
  padding: 0 var(--gut) clamp(48px, 7vw, 96px);
}
.hero__title {
  font-family: var(--ff-display); font-weight: 700;
  text-transform: uppercase; line-height: 0.9;
  letter-spacing: -0.03em;
  font-size: clamp(35px, 10vw, 150px);
  margin: 22px 0 28px;
}
.hero__line { display: block; }
.hero__lede {
  max-width: 46ch; font-size: clamp(16px, 1.8vw, 20px);
  color: #cfcfcd; line-height: 1.5;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 38px;
  font-size: 11px; letter-spacing: 0.14em; color: var(--grey);
  text-transform: uppercase; border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}

/* =================================================================
   SECTION SCAFFOLD
   ================================================================= */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 11vw, 160px) var(--gut);
  border-bottom: 1px solid var(--line-soft);
}
.section__head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__title {
  font-family: var(--ff-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(34px, 6vw, 76px); line-height: 0.98;
}
.section__sub {
  max-width: 56ch; color: var(--grey);
  font-size: clamp(15px, 1.4vw, 17px);
  margin-top: 12px;
}

/* =================================================================
   CAPABILITIES GRID
   ================================================================= */
.cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-soft);
}
.cap-card {
  position: relative;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px clamp(20px, 2.4vw, 36px) 32px;
  display: flex; flex-direction: column;
  transition: background .3s var(--ease);
}
.cap-card:nth-child(2n) { border-right: 0; }
.cap-card:nth-last-child(-n+2) { border-bottom: 0; }
.cap-card:hover { background: var(--panel); }
.cap-card__body { display: flex; flex-direction: column; flex: 1; }
.cap-card__cat {
  font-size: 11px; letter-spacing: 0.16em; color: var(--grey);
  text-transform: uppercase; margin-bottom: 10px;
}
.cap-card__name {
  font-family: var(--ff-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 46px); line-height: 1; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cap-card__desc { color: var(--grey); font-size: 15px; margin-bottom: 24px; }
.cap-card__foot {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
}
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--grey);
  text-transform: uppercase;
}
.learn {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white);
  transition: color .2s var(--ease);
}
.learn:hover { color: var(--accent); }

@media (max-width: 720px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { border-right: 0; }
  .cap-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .cap-card:last-child { border-bottom: 0; }
}

/* =================================================================
   MISSION
   ================================================================= */
.mission__statement p {
  font-family: var(--ff-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 42px); line-height: 1.06;
  letter-spacing: -0.015em; margin-bottom: 22px;
}
.mission__memo .mono-label { display: block; margin-bottom: 18px; color: var(--grey); }
.mission__memo p { color: var(--grey); margin-bottom: 18px; max-width: 56ch; }
.mission__memo p:not(.mono-label) { font-size: 16px; }

/* =================================================================
   CONTACT + FORM
   ================================================================= */
/* Same container as .section / .page-head: without it the grid ran edge-to-edge
   and sat left of every other block on the page. */
.contact {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 11vw, 160px) var(--gut);
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
}
/* Grid items default to min-width:auto, so the long mono email address would
   otherwise widen the intro column past its track. */
.contact__intro, .contact > .form { min-width: 0; }
.contact__intro p { color: var(--grey); max-width: 42ch; margin-bottom: 28px; }
.contact__meta { display: grid; gap: 16px; }
.contact__meta li {
  display: grid; gap: 4px; font-family: var(--ff-mono); font-size: 13px;
  border-top: 1px solid var(--line-soft); padding-top: 14px;
  overflow-wrap: anywhere;
}
.contact__meta .mono-label { color: var(--grey); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__label {
  font-size: 11px; letter-spacing: 0.14em; color: var(--grey); text-transform: uppercase;
}
.form input, .form textarea {
  background: var(--panel); color: var(--white);
  border: 1px solid var(--line); border-radius: 0; /* sharp corners — no rounding */
  padding: 14px 16px; font-family: var(--ff-mono); font-size: 14px;
  width: 100%; min-width: 0; /* don't let the default input size widen the grid track */
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
/* iOS Safari zooms the viewport when a focused field is under 16px. */
@media (max-width: 860px) {
  .form input, .form textarea { font-size: 16px; }
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--panel-2);
}
.form textarea { resize: vertical; min-height: 120px; }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--grey); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gut) 40px; }
/* .site-footer__bottom is defined once in the FOOTER GRID section below. */

/* =================================================================
   SCROLL-REVEAL (initial state applied only when JS is active,
   so content stays visible if scripts fail; transform => no CLS)
   ================================================================= */
.js [data-reveal],
.js [data-hero-line] {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero-line] { opacity: 1; transform: none; }
}

/* =================================================================
   MULTI-PAGE ADDITIONS — real media, hamburger nav, detail layouts
   ================================================================= */

/* ---- Hamburger button (mobile) ---- */
.hamburger {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); padding: 0;
  align-items: center; justify-content: center;
}
.hamburger__box { position: relative; width: 20px; height: 12px; display: block; }
.hamburger__line, .hamburger__line::before, .hamburger__line::after {
  position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger__line { top: 50%; transform: translateY(-50%); }
.hamburger__line::before { content: ""; top: -6px; }
.hamburger__line::after  { content: ""; top: 6px; }
.hamburger.is-open .hamburger__line { background: transparent; }
.hamburger.is-open .hamburger__line::before { transform: translateY(6px) rotate(45deg); background: var(--accent); }
.hamburger.is-open .hamburger__line::after  { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }

/* ---- Mobile menu overlay ---- */
/* Centred when it fits, scrollable when it doesn't. On a landscape phone the
   link stack is taller than the viewport; without the scroll the top link was
   clipped off-screen and the CTA sat below the fold with no way to reach it
   (body is overflow:hidden while the menu is open). */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.97); backdrop-filter: blur(6px);
  display: flex;
  padding: 88px var(--gut) 40px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  opacity: 0; transition: opacity .55s var(--ease-slide);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu[hidden] { display: none; }
/* margin:auto (not align-items:center) centres the stack while it fits but lets
   it scroll from the top once it overflows, instead of clipping the first link. */
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; width: min(86vw, 420px); margin: auto; }
.mobile-menu__link {
  font-family: var(--ff-display); text-transform: uppercase; font-weight: 500;
  font-size: clamp(30px, 9vw, 46px); line-height: 1.1; letter-spacing: -0.02em;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  transform: translateY(12px); opacity: 0;
}
.mobile-menu.is-open .mobile-menu__link { transform: translateY(0); opacity: 1; transition: transform .6s var(--ease-slide), opacity .6s var(--ease-slide); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1){transition-delay:.05s}
.mobile-menu.is-open .mobile-menu__link:nth-child(2){transition-delay:.10s}
.mobile-menu.is-open .mobile-menu__link:nth-child(3){transition-delay:.15s}
.mobile-menu.is-open .mobile-menu__link:nth-child(4){transition-delay:.20s}
.mobile-menu.is-open .mobile-menu__link:nth-child(5){transition-delay:.25s}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__cta { margin-top: 26px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .hamburger { display: inline-flex; }
}
/* At 320px the 40px-tall wordmark ate 204px of a 320px bar, leaving the
   hamburger flush against the gutter with no slack. */
@media (max-width: 480px) {
  .nav { gap: 16px; }
  .wordmark__img { height: 30px; }
}

/* ---- Media figures (real imagery, desaturated toward monochrome) ---- */
.media { position: relative; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); }
.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Let authentic colour through — liveries, sky, engine glow. Kept slightly
     dark for legibility, but no heavy grey wash. Colour is the imagery's, not CSS's. */
  filter: contrast(1.04) brightness(0.9) saturate(0.96);
  transition: filter .4s var(--ease);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--16x10 { aspect-ratio: 16 / 10; }
a:hover .media img, .media:hover img {
  filter: contrast(1.04) brightness(1) saturate(1);
}
.media__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--grey); background: rgba(0,0,0,0.62); padding: 5px 9px;
  text-transform: uppercase; border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
}

/* ---- Hero video ---- */
.hero--home { min-height: clamp(600px, 94vh, 1000px); }
.hero__video { position: absolute; inset: 0; overflow: hidden; background: #000; z-index: 0; }
.hero__video-el {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.08) brightness(0.62) saturate(0.92);
  transform: scale(1.06);
}
.hero__video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.32) 42%, rgba(0,0,0,0.95) 100%);
}

/* ---- Page head (interior pages) ---- */
.page-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gut) clamp(32px, 4vw, 56px);
}
.page-head__inner { max-width: 60ch; }
.page-head .eyebrow { margin-bottom: 22px; }
.page-head__title {
  font-family: var(--ff-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 8vw, 104px); line-height: 0.92; letter-spacing: -0.03em;
}
.page-head__sub { margin-top: 24px; color: var(--grey); font-size: clamp(15px, 1.5vw, 18px); max-width: 60ch; }

.section--flush { padding-top: clamp(20px, 3vw, 40px); }

/* ---- Capability cards: real image media ---- */
.cap-card__media-link { display: block; margin-bottom: 24px; }
.cap-card .media { margin-bottom: 0; }
.cap-card__name a { transition: color .2s var(--ease); }
.cap-card__name a:hover { color: var(--accent); }

/* ---- Breadcrumb ---- */
.crumb {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px var(--gut) 0;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--grey-dim);
  text-transform: uppercase; display: flex; gap: 12px; align-items: center;
}
.crumb a { color: var(--grey); } .crumb a:hover { color: var(--accent); }
.crumb span[aria-hidden] { color: var(--line); }

/* ---- Sub-hero (capability detail) ---- */
.subhero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gut) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.subhero__title {
  font-family: var(--ff-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, 10vw, 132px); line-height: 0.9; letter-spacing: -0.03em; margin: 10px 0 18px;
}
.subhero__tag { color: #cfcfcd; font-size: clamp(16px, 1.8vw, 21px); max-width: 42ch; margin-bottom: 22px; }
.subhero .cap-card__cat { font-size: 12px; }

/* ---- Detail body + spec aside ---- */
.detail {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 7vw, 100px) var(--gut);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--line-soft);
}
.detail__prose p { color: var(--grey); margin-bottom: 18px; max-width: 60ch; font-size: 16px; }
.detail__body .mono-label { color: var(--grey); margin-bottom: 18px; display: block; }
.spec { border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 2.5vw, 36px); }
.spec .mono-label { color: var(--grey); margin-bottom: 18px; display: block; }
.spec__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.spec__row dt { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--grey-dim); text-transform: uppercase; }
.spec__row dd { font-size: 14px; color: var(--white); }
.detail--mission { grid-template-columns: 1fr 1.4fr; border-top: 0; }
.detail--mission .mission__statement p {
  font-family: var(--ff-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 20px;
}
.mission__statement p.mono-label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 12px;
}
/* Anchor targets for the Company > Vision / Mission nav links: clear the
   fixed header so the heading is not hidden underneath it on jump. */
.mission__block { scroll-margin-top: clamp(90px, 12vh, 140px); }

/* ---- Params table ---- */
.params { margin-top: clamp(36px, 5vw, 64px); }
.params .mono-label { color: var(--grey); margin-bottom: 16px; display: block; }
.params__table { width: 100%; border-collapse: collapse; }
.params__table tr { border-top: 1px solid var(--line-soft); }
.params__table tr:last-child { border-bottom: 1px solid var(--line-soft); }
.params__table th { text-align: left; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--grey-dim); text-transform: uppercase; padding: 16px 0; width: 38%; font-weight: 400; }
.params__table td { padding: 16px 0; font-size: 15px; color: var(--white); }

/* ---- Pager (prev / next) ---- */
.pager {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gut) clamp(64px, 8vw, 110px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.pager__link { display: grid; gap: 6px; }
.pager__link--next { text-align: right; }
.pager__name { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); line-height: 1; letter-spacing: -0.02em; }
.pager__link:hover .pager__name { color: var(--accent); }

/* ---- Home: mission strip ---- */
.strip {
  position: relative; border-bottom: 1px solid var(--line-soft); overflow: hidden;
}
.strip__media { position: absolute; inset: 0; }
.strip__media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) brightness(0.4) saturate(0.9); }
.strip__inner {
  position: relative; z-index: 2; margin: 0 auto;
  padding: clamp(72px, 11vw, 150px) var(--gut); max-width: min(var(--maxw), 980px);
}
.strip__title {
  font-family: var(--ff-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 64px); line-height: 1.0; letter-spacing: -0.02em;
  margin: 14px 0 22px; max-width: 18ch;
}
.strip__text { color: #cfcfcd; max-width: 56ch; margin-bottom: 26px; font-size: clamp(15px, 1.5vw, 18px); }

/* ---- CTA band ---- */
.cta-band { border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.cta-band__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 130px) var(--gut); text-align: center; }
.cta-band__title { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -0.03em; }
.cta-band__text { color: var(--grey); margin: 18px 0 32px; }

/* ---- Footer grid ---- */
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-soft);
}
.site-footer__line { color: var(--grey); font-size: 14px; max-width: 32ch; margin-top: 16px; }
.site-footer__col .mono-label { display: block; margin-bottom: 16px; color: var(--grey-dim); }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a, .site-footer__col li { font-family: var(--ff-mono); font-size: 12px; color: var(--grey); letter-spacing: 0.04em; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 24px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--grey-dim);
}

/* ---- Platform cutout media -------------------------------------------- */
.media--cutout { background: radial-gradient(120% 100% at 50% 0%, #16181d 0%, #0b0c0f 70%); }
.media--cutout img { object-fit: contain; padding: 8% 10%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }

/* ---- Under-development media ------------------------------------------ */
.media--dev { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #101216 0 12px, #0c0e11 12px 24px); }
.media__dev { font-family: 'JetBrains Mono', monospace; font-size: .8rem; letter-spacing: .18em; color: var(--grey-dim, #9aa0aa); border: 1px solid rgba(255,255,255,.14); padding: .5rem .9rem; }
.cap-card__media-link--dev { display: block; }

/* ---- Series structure (capabilities) --------------------------------- */
.series { margin: 0 0 3.5rem; }
.series__head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.series__name { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0; }
.series__tagline { font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dim, #9aa0aa); margin: 0; }
.series__subcat { margin: 1.25rem 0 .75rem; }

/* ---- Nav dropdown series (collapsed by default, expand on hover) ------
   Each series row stays closed until it is hovered or something inside it
   takes focus. The products list collapses with grid-template-rows so it
   animates from nothing to its natural height without a hard-coded max.
   Links stay in the accessibility tree while collapsed, so tabbing into a
   series opens it via :focus-within with no JS required. */
.nav-series { border-bottom: 1px solid var(--line-soft); }
.nav-series:first-child { border-top: 1px solid var(--line-soft); }

.nav-series__toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 0; background: none; border: 0; text-align: left; cursor: pointer;
  color: inherit; font: inherit;
  transition: color .2s var(--ease);
}
.nav-series__toggle .nav-menu__name { flex: 1 1 auto; }
.nav-series__toggle .nav-menu__cat { flex: 0 0 auto; margin-top: 0; }
.nav-series:hover > .nav-series__toggle,
.nav-series:focus-within > .nav-series__toggle { color: var(--white); }

/* Chevron rotates down as the series opens. */
.nav-series__chev {
  flex: 0 0 auto; width: 7px; height: 7px; margin-left: 4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(-45deg); transition: transform .25s var(--ease);
  color: var(--grey-dim);
}
.nav-series:hover > .nav-series__toggle .nav-series__chev,
.nav-series:focus-within > .nav-series__toggle .nav-series__chev,
.nav-series.is-open > .nav-series__toggle .nav-series__chev {
  transform: rotate(45deg); color: var(--white);
}

/* The collapsing wrapper holds exactly one grid item (the <ul>), so the single
   0fr -> 1fr row track governs the whole list. Putting the <li> elements
   straight into the grid would leave every row after the first auto-sized,
   and the list would never actually collapse. */
.nav-series__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s var(--ease);
}
.nav-series:hover > .nav-series__panel,
.nav-series:focus-within > .nav-series__panel,
.nav-series.is-open > .nav-series__panel { grid-template-rows: 1fr; }
.nav-series__panel > .nav-series__items { min-height: 0; overflow: hidden; }
.nav-series__items a { padding-left: 14px; border-bottom: 0; }
.nav-series__items a:first-child { border-top: 0; }
.nav-series__items li:last-child a { padding-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .nav-series__panel, .nav-series__chev { transition: none; }
}

/* ---- Tap reveal on touch --------------------------------------------- */
@media (hover: none) {
  .cap-card[data-card] .cap-card__desc { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .25s ease; }
  .cap-card[data-card].is-open .cap-card__desc { max-height: 12em; opacity: 1; }
}

/* ---- Reduced motion: stop video drift, reveal everything ---- */
@media (prefers-reduced-motion: reduce) {
  .hero__video-el { filter: contrast(1.06) brightness(0.6) saturate(0.92); transform: none; }
}

/* =================================================================
   RESPONSIVE — tablet & mobile refinements
   ================================================================= */
@media (max-width: 1000px) {
  .detail { grid-template-columns: 1fr; }
  .detail--mission { grid-template-columns: 1fr; }
  .spec { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .subhero { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .pager { gap: 24px; }
  .pager__link--next { text-align: left; }
}
