:root {
  --bg: #0c0e11;
  --panel: #15181d;
  --line: #262a31;
  --fg: #f2f0ea;
  --muted: #a3a6ad;
  --red: #e22626;
  --red-dark: #b81b1b;
  --head: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* Hero: the key art fills the screen, darkened on the left for the text. */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background: #000 url("media/hero.jpg") center right / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.92) 0%, rgba(8, 9, 11, 0.7) 40%, rgba(8, 9, 11, 0.1) 75%),
    linear-gradient(0deg, rgba(12, 14, 17, 1) 0%, rgba(12, 14, 17, 0) 30%);
}

nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 6px; }

.hero-copy { margin-block: auto; padding-block: 48px 96px; max-width: 620px; }
.eyebrow, .kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
h1 { font-size: clamp(56px, 11vw, 124px); text-transform: uppercase; }
h1 em { display: block; color: var(--red); font-style: normal; }
.subtitle {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 4px solid var(--red);
  display: inline-block;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.intro { margin: 28px 0 0; font-size: clamp(17px, 2vw, 20px); color: #ddd9d0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
nav .button { min-height: 40px; padding: 0 16px; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(36px, 6vw, 60px); text-transform: uppercase; }
.lede { max-width: 720px; margin: 16px 0 0; color: #d4d1c9; font-size: 18px; }
.head { margin-bottom: 36px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { color: #d4d1c9; }
.split figure { margin: 0; }
.split .scope { max-width: 440px; justify-self: center; border-radius: 50%; }

.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.missions li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.missions img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.missions div { padding: 18px 20px 22px; }
.missions h3 { font-size: 28px; text-transform: uppercase; }
.missions .op { margin: 4px 0 8px; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.missions p { margin: 0; color: var(--muted); font-size: 15px; }

.arsenal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.arsenal li { padding: 20px; background: var(--panel); border-left: 4px solid var(--red); border-radius: 4px; }
.arsenal strong { display: block; font-family: var(--head); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; }
.arsenal span { color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 32px; padding: 0; margin: 0; list-style: none; }
.features strong { display: block; margin-bottom: 4px; }
.features li { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { color: #d4d1c9; margin: 10px 0 0; }

dialog { max-width: 440px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog h2 { font-size: 44px; }
dialog p { color: #d4d1c9; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 32px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer nav { min-height: 0; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Legal pages */
.legal { max-width: 720px; padding-block: 24px 72px; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); }
.legal h2 { font-size: 28px; margin-top: 40px; }
.legal p, .legal li { color: #d4d1c9; }
.legal .updated { color: var(--muted); margin: 12px 0 32px; }
.legal a { color: #ff6b6b; }

@media (max-width: 820px) {
  .split, .gallery { grid-template-columns: 1fr; gap: 28px; }
  .hero { background-position: 70% center; }
  .hero::before { background: linear-gradient(0deg, rgba(12, 14, 17, 1) 0%, rgba(8, 9, 11, 0.75) 45%, rgba(8, 9, 11, 0.55) 100%); }
  section { padding-block: 56px; }
}
