/* ============================================
   RWAR Brand Tokens - v2.0
   Self-hosted fonts
   ============================================ */
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Italic-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Italic-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Primary */
  --rwar-red: #E93939;
  --rwar-red-light: #F25555;      /* small red text on raised/tinted surfaces (AA) */
  --rwar-red-fill: #D42E2E;       /* fills behind white text (AA 4.96:1) */
  --rwar-red-fill-hover: #B82525;
  --rwar-red-10: rgba(233, 57, 57, 0.10);
  --rwar-black: #000000;
  --rwar-white: #FFFFFF;

  /* Neutral Scale */
  --rwar-charcoal: #0A0A0A;
  --rwar-dark: #141414;
  --rwar-graphite: #1E1E1E;
  --rwar-slate: #2A2A2A;
  --rwar-muted: #8A8A8A;          /* ≥4.5:1 on every surface down to graphite */
  --rwar-silver: #A0A0A0;
  --rwar-light: #E8E8E8;

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--rwar-silver);
  background-color: var(--rwar-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 12px 24px;
  background-color: var(--rwar-red-fill);
  color: var(--rwar-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--rwar-red);
  margin: 0 auto;
  position: relative;
  bottom: -60px;
  opacity: 0.4;
}

.section:last-of-type::after,
.section--cta::after {
  display: none;
}

.section--elevated {
  background-color: var(--rwar-dark);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--rwar-slate);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile nav. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.3s ease;
}

.site-header--scrolled::before {
  background-color: rgba(10, 10, 10, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--rwar-white);
  text-transform: uppercase;
  line-height: 1.4; /* wraps to two lines on narrow phones */
}

/* Name only breaks between "Rogue Wolf" and "Advanced Research" */
.logo-line {
  white-space: nowrap;
}

/* Name always sits on two rows: "Rogue Wolf" / "Advanced Research" */
.logo .logo-line,
.footer-logo .logo-line {
  display: block;
}

.logo-r,
.logo-w,
.logo-a {
  color: var(--rwar-red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--rwar-silver);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--rwar-white);
}

.nav-link--active {
  color: var(--rwar-white);
  border-bottom: 1px solid var(--rwar-red);
  padding-bottom: 2px;
}

.nav-link--cta {
  color: var(--rwar-red);
  font-weight: 600;
}

.nav-link--cta:hover {
  color: var(--rwar-red-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--rwar-white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 180px 0 120px;
  background-color: var(--rwar-black);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--rwar-red-10) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .section-label {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--rwar-white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--rwar-silver);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}

.hero-stats {
  display: flex;
  gap: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rwar-slate);
}

.hero-mark {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 500px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--rwar-white);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rwar-muted);
  margin-top: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn--primary {
  background-color: var(--rwar-red-fill);
  color: var(--rwar-white);
  border-color: var(--rwar-red-fill);
}

.btn--primary:hover {
  background-color: var(--rwar-red-fill-hover);
  border-color: var(--rwar-red-fill-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--rwar-white);
  border-color: var(--rwar-slate);
}

.btn--outline:hover {
  border-color: var(--rwar-silver);
  color: var(--rwar-white);
}

.btn--lg {
  padding: 18px 48px;
  font-size: 16px;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rwar-red);
  margin-bottom: 16px;
}

.section--elevated .section-label {
  color: var(--rwar-red-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rwar-white);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--rwar-silver);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ============================================
   MISSION
   ============================================ */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.mission-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.mission-phases {
  display: flex;
  flex-direction: column;
}

.phase {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rwar-slate);
}

.phase:first-child {
  border-top: 1px solid var(--rwar-slate);
}

.phase-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--rwar-red);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.phase-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--rwar-white);
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-overview-card {
  display: block;
  background-color: var(--rwar-graphite);
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-overview-card:hover {
  border-color: var(--rwar-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(233, 57, 57, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-overview-icon {
  color: var(--rwar-red);
  margin-bottom: 20px;
}

.service-overview-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-overview-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rwar-silver);
  margin-bottom: 20px;
}

.service-overview-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--rwar-muted);
  text-transform: uppercase;
}

/* ============================================
   DETAIL GRIDS (CSE/HFE, BD)
   ============================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.detail-card {
  background-color: var(--rwar-dark);
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.section--elevated .detail-card {
  background-color: var(--rwar-graphite);
}

.detail-card:hover {
  border-color: var(--rwar-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 57, 57, 0.06), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.detail-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-bottom: 10px;
}

.detail-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rwar-silver);
}

/* ============================================
   TECH SME
   ============================================ */
.sme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sme-card {
  background-color: var(--rwar-dark);
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sme-card:hover {
  border-color: var(--rwar-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 57, 57, 0.06), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sme-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--rwar-red-light);
  text-transform: uppercase;
  padding: 4px 12px;
  background-color: var(--rwar-red-10);
  border-radius: 3px;
  margin-bottom: 16px;
}

.sme-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--rwar-white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.sme-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rwar-silver);
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--rwar-slate);
  position: relative;
}

.sme-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--rwar-red);
}

.sme-list li:last-child {
  border-bottom: none;
}

/* ============================================
   RAPID PROTOTYPING
   ============================================ */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proto-card {
  background-color: var(--rwar-graphite);
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.proto-card:hover {
  border-color: var(--rwar-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 57, 57, 0.06), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.proto-icon {
  color: var(--rwar-red);
  margin-bottom: 16px;
}

.proto-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-bottom: 10px;
}

.proto-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rwar-silver);
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.about-clients h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-bottom: 24px;
}

.client-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.client-group h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rwar-muted);
  margin-bottom: 12px;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  background-color: var(--rwar-dark);
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
  color: var(--rwar-white);
  letter-spacing: 1px;
}

/* ============================================
   TECH RECS
   ============================================ */
.recs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rec-card {
  background-color: var(--rwar-graphite);
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-card:hover {
  border-color: var(--rwar-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 57, 57, 0.06), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.rec-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--rwar-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rec-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-bottom: 10px;
}

.rec-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rwar-silver);
  margin-bottom: 20px;
}

.rec-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--rwar-red-light);
  text-transform: uppercase;
  padding: 4px 12px;
  background-color: var(--rwar-red-10);
  border-radius: 3px;
}

/* Post cards (homepage + /techrecs/) */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card-img {
  width: calc(100% + 64px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -32px -32px 24px;
  background-color: var(--rwar-dark);
}

.post-card h2 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-bottom: 10px;
}

.post-card p {
  flex: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recs-more {
  margin-top: 40px;
}

/* ============================================
   TECH RECS POST PAGE
   ============================================ */
.post {
  padding-top: 140px;
}

.post-container {
  max-width: 760px;
}

.post-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rwar-muted);
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.post-back:hover {
  color: var(--rwar-white);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rwar-white);
  margin-bottom: 16px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--rwar-muted);
  margin-bottom: 16px;
}

.post > .container > .post-tags {
  margin-bottom: 48px;
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--rwar-silver);
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  color: var(--rwar-white);
  margin-top: 2em;
}

.prose h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--rwar-white);
  margin-top: 1.75em;
}

.prose strong {
  font-weight: 600;
  color: var(--rwar-white);
}

.prose a {
  color: var(--rwar-red-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--rwar-white);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--rwar-red);
}

.prose figure {
  margin: 2em 0;
}

.prose img {
  height: auto;
  border: 1px solid var(--rwar-slate);
  border-radius: 4px;
}

.prose figcaption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rwar-muted);
  margin-top: 12px;
}

.prose blockquote {
  border-left: 2px solid var(--rwar-red);
  padding-left: 20px;
  color: var(--rwar-light);
  font-style: italic;
}

.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rwar-slate);
}

.prose th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rwar-white);
}

.post-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rwar-slate);
}

/* ============================================
   CTA & CONTACT FORM
   ============================================ */
.section--cta {
  padding: 120px 0;
  background-color: var(--rwar-black);
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner .section-label { margin-bottom: 16px; }

.cta-inner .section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--rwar-silver);
  margin-bottom: 40px;
}

.cta-actions { margin-bottom: 24px; }

.cta-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rwar-muted);
  letter-spacing: 1px;
}

.cta-email a {
  color: var(--rwar-white);
  border-bottom: 1px solid var(--rwar-slate);
  transition: border-color 0.2s ease;
}

.cta-email a:hover {
  border-color: var(--rwar-red);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 48px 0 96px; /* bottom clears the floating scroll-top button */
  border-top: 1px solid var(--rwar-slate);
  background-color: var(--rwar-charcoal);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

/* Full company name gets its own row; links + legal share the next one */
.footer-brand {
  flex-basis: 100%;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.4;
  color: var(--rwar-white);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--rwar-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--rwar-white);
}

.footer-legal {
  max-width: 380px;
  text-align: right;
}

.footer-legal p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--rwar-muted);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--rwar-slate);
  border: 1px solid var(--rwar-muted);
  border-radius: 4px;
  color: var(--rwar-silver);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--rwar-red);
  border-color: var(--rwar-red);
  color: var(--rwar-white);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-overview-grid,
  .detail-grid,
  .sme-grid,
  .proto-grid,
  .recs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .nav-link { font-size: 18px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 80px; }

  .mission-grid,
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-overview-grid,
  .detail-grid,
  .sme-grid,
  .proto-grid,
  .recs-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-legal {
    text-align: left;
    max-width: 100%;
  }

  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .scroll-top { bottom: 16px; right: 16px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    background: #fff !important;
  }

  .site-header,
  .nav-toggle,
  .scroll-top,
  .hero-actions,
  .cta-actions,
  .hero-mark {
    display: none !important;
  }

  .hero { padding: 20px 0; }

  .section {
    padding: 30px 0;
    page-break-inside: avoid;
  }

  .section::after { display: none; }

  .hero-title,
  .section-title {
    color: #000 !important;
    font-size: 20pt;
  }

  .section-label {
    color: #E93939 !important;
  }

  .logo-r,
  .logo-w,
  .logo-a {
    color: #E93939 !important;
  }

  .services-overview-grid,
  .detail-grid,
  .sme-grid,
  .proto-grid,
  .recs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-overview-card,
  .detail-card,
  .sme-card,
  .proto-card,
  .rec-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-footer {
    border-top: 1px solid #ccc;
  }
}
