/* RedSpecter Defense — static site. Dark, restrained, program-office. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --bg: #08080a;
  --bg-raised: #101014;
  --bg-panel: #16161c;
  --bg-header: rgba(8, 8, 10, 0.92);
  --line: rgba(242, 239, 232, 0.1);
  --line-strong: rgba(242, 239, 232, 0.18);
  --red: #e30613;
  --red-hot: #ff2d2d;
  --red-deep: #8e0710;
  --red-dim: rgba(227, 6, 19, 0.14);
  --text: #f2efe8;
  --muted: #a8a39a;
  --dim: #6e6a64;
  --max: 1120px;
  --wide: 1240px;
  --header: 5.35rem;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-hot);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}
.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--red);
}
.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 4.55rem;
  width: auto;
}
.brand-mark {
  display: none;
  height: 2.2rem;
  width: auto;
}
.brand-word {
  display: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.brand-word span {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
}
.nav a:hover,
.nav a[aria-current="page"]:not(.btn) {
  color: var(--text);
}
.nav a[aria-current="page"]:not(.btn) {
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav .btn {
  margin-left: 0.55rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
}
.btn:hover {
  background: #c10510;
  border-color: #c10510;
  color: #fff !important;
}
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: transparent;
  color: var(--text) !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: 720px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(227, 6, 19, 0.16), transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.35rem;
}
.hero-logo {
  width: min(280px, 58vw);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
.kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.page-hero {
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0.35rem 0 0.7rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  max-width: 18ch;
}
.page-hero .lede {
  max-width: 40rem;
}

/* Stats */
.stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.2rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.stat {
  padding: 1.15rem 1.2rem 1.05rem;
  text-align: left;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Sections */
.section {
  padding: 4.2rem 0;
  border-bottom: 1px solid var(--line);
}
.section h2 {
  margin: 0.3rem 0 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.section h3 {
  margin: 0 0 0.45rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section p { margin: 0 0 1rem; color: var(--muted); }
.section p:last-child { margin-bottom: 0; }
.section-head {
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.3rem;
  box-shadow: none;
}
.card .num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}
.card p { margin: 0; }
.card a.more {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.card a.more:hover { color: var(--red-hot); }
.card-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.card-list li {
  padding: 0.45rem 0 0.45rem 1rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.card-list li:last-child { border-bottom: 0; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 1px;
  background: var(--red);
}

.note {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--red);
  background: var(--red-dim);
  color: var(--text);
  font-size: 0.98rem;
}
.note p { color: var(--text); margin: 0; }

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-raised);
}
tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); font-weight: 600; }
.table-caption {
  margin: 0 0 0.7rem;
  color: var(--dim);
  font-size: 0.88rem;
}

.sites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.site {
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.site .code {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--red);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}
.site h3 { margin-top: 0.35rem; text-transform: none; letter-spacing: 0.03em; }
.site p { margin: 0; font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.cta-band {
  padding: 3.4rem 0;
  background:
    linear-gradient(180deg, rgba(227, 6, 19, 0.08), transparent 55%),
    var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { max-width: 38rem; }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.person {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 1.5rem 1.4rem;
}
.person .role {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}
.person h3 {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.7rem;
  margin: 0.25rem 0 0.55rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.contact-card a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.contact-card a:hover { color: var(--red-hot); }
.contact-card .label {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.phones a { color: var(--text); font-weight: 600; text-decoration: none; }
.phones a:hover { color: var(--red-hot); }
.phones span { display: block; color: var(--muted); font-size: 0.88rem; }

/* Footer */
.site-footer {
  padding: 2.4rem 0 1.6rem;
  background: #050506;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand img {
  height: 4.4rem;
  width: auto;
  margin-bottom: 0.7rem;
}
.site-footer h2 {
  margin: 0 0 0.6rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin: 0.25rem 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.1rem;
  color: var(--dim);
  font-size: 0.82rem;
}
.disclaimer {
  max-width: 46rem;
}

/* 404 */
.error {
  min-height: calc(100vh - 14rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.error h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--red);
  line-height: 1;
}

/* Utilities */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.red { color: var(--red); }
.mt { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .grid-3, .sites, .stats, .contact-grid, .footer-grid, .split {
    grid-template-columns: 1fr;
  }
  .grid-2, .team { grid-template-columns: 1fr; }
  .stats { border: 0; gap: 0.7rem; background: transparent; }
  .stat {
    border: 1px solid var(--line);
    background: var(--bg-raised);
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #0c0c10;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1.1rem;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 0.9rem 0 0.3rem; }
  .brand-logo { display: none; }
  .brand-mark, .brand-word { display: block; }
  .hero { padding-top: 2.8rem; }
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 1.5rem)); }
}

@media (min-width: 901px) {
  .nav { display: flex !important; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .btn, .skip { display: none !important; }
  body { background: #fff; color: #111; }
  .section, .hero, .page-hero { border-color: #ddd; }
  a { color: #111; }
}
