/* ===================================================================
   CYBERSECURITYAD.COM — Tactical HUD layer
   GitHub Dark Default (Primer) palette · futuristic / military structure
   Loaded site-wide AFTER styles.css. The homepage canvas + modules are
   scoped via body.theme-tactical / .tactical-page; the chrome
   (.header / .footer) is restyled site-wide for consistency. Existing
   IDs/classes used by /js/script.js are preserved (restyle only).
   =================================================================== */

/* ---------- Design tokens ----------
   Declared on :root so body.theme-tactical and its ::before/::after
   background layers can resolve them (custom properties inherit
   downward only). Only tactical.css selectors reference these, so
   there is no leak onto other pages. */
:root {
  --gh-canvas: #000;
  --gh-surface: #161b22;
  --gh-surface-2: #21262d;
  --gh-border: #30363d;
  --gh-border-muted: #21262d;
  --gh-ink: #e6edf3;
  --gh-ink-2: #c9d1d9;
  --gh-ink-dim: #8b949e;
  --gh-ink-mute: #6e7681;
  --gh-accent: #f85149;
  --gh-accent-hi: #ff7b72;
  --gh-success: #3fb950;
  --gh-success-emph: #238636;
  --gh-attention: #d29922;
  --gh-danger: #f85149;
  --gh-done: #a371f7;
  --tac-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --tac-display: 'Oswald', 'Poppins', system-ui, sans-serif;
  --tac-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================================================================
   CHROME — header / nav / footer (site-wide). .theme-light pages keep
   their own higher-specificity overrides untouched.
   =================================================================== */
.header {
  background: rgb(13 17 23 / 92%);
  border-bottom: 1px solid var(--gh-border);
}

/* Subtle HUD accent on the header underline (decorative, site-wide) */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, var(--gh-accent), transparent);
}

.logo-text .cs {
  color: var(--gh-ink);
  font-weight: 600;
}

.logo-text .ad {
  color: var(--gh-accent-hi);
}

.nav-list li a {
  position: relative;
  color: var(--gh-ink-2);
  font-family: var(--tac-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--gh-accent-hi);
  background: rgb(248 81 73 / 10%);
}

.nav-list li a.active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--gh-accent);
}

.search-trigger {
  border-radius: 6px;
  font-family: var(--tac-mono);
}

.lang-btn {
  font-family: var(--tac-mono);
}

.mobile-menu-toggle span {
  background: var(--gh-ink);
}

.footer {
  background: var(--gh-surface);
  border-top: 1px solid var(--gh-border);
}

.footer-column h3 {
  color: var(--gh-accent-hi);
  font-family: var(--tac-mono);
  letter-spacing: 0.18em;
}

.footer-column address,
.footer-column address strong,
.footer-phone a,
.footer-email a,
.footer-links li a {
  color: var(--gh-ink-2);
}

.footer-phone a:hover,
.footer-email a:hover,
.footer-links li a:hover {
  color: var(--gh-accent-hi);
}

.social-links a {
  background: var(--gh-surface-2);
  border: 1px solid var(--gh-border);
}

.social-links a:hover {
  background: var(--gh-accent);
  border-color: var(--gh-accent);
  box-shadow: 0 0 18px rgb(248 81 73 / 35%);
}

.footer-bottom {
  border-top: 1px solid var(--gh-border);
  color: var(--gh-ink-mute);
}

.footer-bottom a {
  color: var(--gh-accent-hi);
}

.back-to-top {
  background: var(--gh-surface-2);
  border: 1px solid var(--gh-border);
  color: var(--gh-ink);
}

.back-to-top:hover {
  background: var(--gh-accent);
  border-color: var(--gh-accent);
}

/* ===================================================================
   HOMEPAGE CANVAS — scoped to body.theme-tactical
   =================================================================== */
body.theme-tactical {
  background-color: var(--gh-canvas);
  color: var(--gh-ink);
}

/* Override the global white backdrop (body::before) with the dark canvas */
body.theme-tactical::before {
  background: var(--gh-canvas);
}

/* Repurpose the global glow layer (body::after) into a slow tactical grid */
body.theme-tactical::after {
  background: var(--gh-canvas);
  background-image:
    linear-gradient(to right, rgb(48 54 61 / 35%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(48 54 61 / 35%) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.45;
  animation: tac-grid-pan 60s linear infinite;
}

/* Drifting scanline overlay (sits above content at very low opacity) */
.tactical-page::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(255 123 114 / 5%) 50%, transparent);
  transform: translateY(-260px);
  animation: tac-scan 9s linear infinite;
}

/* ===================================================================
   HOMEPAGE BASE TYPOGRAPHY
   =================================================================== */
.tactical-page {
  position: relative;
  z-index: 0;
  font-family: Poppins, system-ui, sans-serif;
  color: var(--gh-ink-2);
}

.tactical-page .container {
  position: relative;
  z-index: 2;
}

.tactical-page h2,
.tactical-page h3,
.tactical-page h4 {
  color: var(--gh-ink);
}

/* All headings on the homepage use Poppins (overrides the Oswald display
   font on .tac-hero__title / .tac-title / .tac-panel__title) */
.tactical-page :is(h1, h2, h3) {
  font-family: Poppins, system-ui, sans-serif;
}

.tactical-page p {
  color: var(--gh-ink-2);
}

.tactical-page a {
  color: var(--gh-accent-hi);
}

.tactical-page a:hover {
  color: #ffa198;
}

.tactical-page strong {
  color: var(--gh-ink);
  font-weight: 600;
}

.tactical-page code {
  font-family: var(--tac-mono);
  font-size: 0.85em;
  color: var(--gh-attention);
  background: rgb(110 118 129 / 15%);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.tac-narrow {
  max-width: 820px;
}

.tac-wide {
  max-width: 1180px;
}

/* ---------- Spacing utilities (global reset zeroes margins) ---------- */
.tactical-page p {
  margin: 0;
}

.tac-stack {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.tac-stack--lg {
  gap: 2rem;
}

.tac-center {
  text-align: center;
}

.tac-lead {
  font-size: 1.12rem;
  color: var(--gh-ink-2);
}

.tac-statement + .tac-statement {
  margin-top: 1.4rem;
}

.tac-module,
.tac-hero {
  scroll-margin-top: 5rem;
}

/* ---------- Reusable HUD label / kicker / index ---------- */
.tac-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--tac-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gh-accent-hi);
}

.tac-kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gh-accent);
}

.tac-eyebrow {
  font-family: var(--tac-mono);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gh-ink-mute);
}

.tac-eyebrow b {
  color: var(--gh-accent-hi);
  font-weight: 600;
}

/* ===================================================================
   MODULE STRUCTURE
   =================================================================== */
.tac-module {
  position: relative;
  padding: clamp(3.5rem, 8vh, 6.5rem) 0;
  border-top: 1px solid var(--gh-border-muted);
}

.tac-module__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.4rem;
  margin-bottom: 2.6rem;
}

.tac-index {
  font-family: var(--tac-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.8;
  color: var(--gh-surface-2);
  letter-spacing: 0.02em;
}

.tac-module__titles {
  min-width: 0;
}

.tac-title {
  font-family: var(--tac-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--gh-ink);
  margin: 0.5rem 0 0;
}

.tac-subtitle {
  margin-top: 0.7rem;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 400;
  color: var(--gh-ink-dim);
}

/* Classification stripe divider */
.tac-stripe {
  height: 6px;
  margin: 0;
  border: 0;
  background:
    repeating-linear-gradient(
      135deg,
      var(--gh-accent) 0,
      var(--gh-accent) 9px,
      transparent 9px,
      transparent 18px
    );
  opacity: 0.5;
}

/* ===================================================================
   HERO (module 01)
   =================================================================== */
.tac-hero {
  position: relative;
  padding: clamp(7.5rem, 14vh, 11rem) 0 clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid var(--gh-border);
  overflow: hidden;
}

.tac-hero__frame {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border: 1px solid var(--gh-border);
  background:
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) top left / 22px 2px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) top left / 2px 22px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) top right / 22px 2px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) top right / 2px 22px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--gh-accent-hi), var(--gh-accent-hi)) bottom right / 2px 22px no-repeat,
    linear-gradient(180deg, rgb(22 27 34 / 75%), rgb(13 17 23 / 60%));
}

.tac-hero__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px dashed var(--gh-border);
}

.tac-hero__title {
  font-family: var(--tac-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gh-ink);
  margin: 0;
}

.tac-hero__title .tac-amber {
  color: var(--gh-accent-hi);
}

.tac-hero__sub {
  margin: 1.1rem 0 0;
  font-family: var(--tac-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  letter-spacing: 0.01em;
  color: var(--gh-ink-dim);
}

.tac-hero__lead {
  max-width: 760px;
  margin: 1.8rem 0 0;
  font-size: 1.06rem;
}

.tac-hero__lead p {
  margin: 0 0 0.9rem;
}

.tac-hero__deny {
  font-family: var(--tac-mono);
  font-size: 0.92rem;
  color: var(--gh-ink);
}

.tac-hero__deny span {
  color: var(--gh-danger);
}

/* ---------- Status chips ---------- */
.tac-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.tac-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tac-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-ink-dim);
}

.tac-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gh-success);
  box-shadow: 0 0 8px var(--gh-success);
  animation: tac-blink 1.8s ease-in-out infinite;
}

.tac-status--dev .tac-status__dot {
  background: var(--gh-attention);
  box-shadow: 0 0 8px var(--gh-attention);
}

.tac-status--scope .tac-status__dot {
  background: var(--gh-accent);
  box-shadow: 0 0 8px var(--gh-accent);
}

.tac-status b {
  color: var(--gh-ink);
  font-weight: 600;
}

/* ---------- Telemetry strip (honest counts from the copy) ---------- */
.tac-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border: 1px solid var(--gh-border);
  background: rgb(13 17 23 / 50%);
}

.tac-stat {
  padding: 1.1rem 1.3rem;
  border-left: 1px solid var(--gh-border);
}

.tac-stat:first-child {
  border-left: 0;
}

.tac-stat__num {
  font-family: var(--tac-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--gh-accent-hi);
}

.tac-stat__label {
  margin-top: 0.4rem;
  font-family: var(--tac-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-ink-mute);
}

/* ===================================================================
   BUTTONS / CTAs
   =================================================================== */
.tac-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.tac-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.3rem;
  font-family: var(--tac-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.18s var(--tac-ease);
}

.tac-btn--primary {
  background: var(--gh-success-emph);
  border-color: rgb(240 246 252 / 10%);
  color: #fff;
}

.tac-btn--primary:hover {
  background: #2ea043;
  color: #fff;
}

.tac-btn--ghost {
  background: var(--gh-surface);
  border-color: var(--gh-border);
  color: var(--gh-ink);
}

.tac-btn--ghost:hover {
  border-color: var(--gh-accent);
  color: var(--gh-accent-hi);
  box-shadow: 0 0 0 1px rgb(248 81 73 / 30%);
}

.tac-btn__tick {
  font-size: 1.05em;
  color: currentcolor;
  opacity: 0.7;
}

/* ===================================================================
   PANELS / GRIDS
   =================================================================== */
.tac-grid {
  display: grid;
  gap: 1.2rem;
}

.tac-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.tac-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tac-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tac-panel {
  --cnr: var(--gh-border);

  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  background:
    linear-gradient(var(--cnr), var(--cnr)) top left / 16px 2px no-repeat,
    linear-gradient(var(--cnr), var(--cnr)) top left / 2px 16px no-repeat,
    linear-gradient(var(--cnr), var(--cnr)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--cnr), var(--cnr)) bottom right / 2px 16px no-repeat,
    var(--gh-surface);
  border: 1px solid var(--gh-border);
  transition:
    border-color 0.2s var(--tac-ease),
    transform 0.2s var(--tac-ease);
}

.tac-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 32%, rgb(255 123 114 / 12%) 50%, transparent 68%);
  transform: translateX(-120%);
}

.tac-panel.is-visible::after {
  animation: tac-sweep 1.1s var(--tac-ease) 0.15s 1;
}

.tac-panel:hover {
  --cnr: var(--gh-accent-hi);

  border-color: var(--gh-accent);
  transform: translateY(-2px);
}

.tac-panel__index {
  font-family: var(--tac-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gh-accent-hi);
}

.tac-panel__title {
  margin: 0.6rem 0 0.2rem;
  font-family: var(--tac-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gh-ink);
}

.tac-panel__rule {
  height: 1px;
  margin: 0.9rem 0 1rem;
  border: 0;
  background: var(--gh-border);
}

.tac-panel__body {
  font-size: 0.98rem;
  color: var(--gh-ink-2);
}

/* ===================================================================
   LISTS / CHIPS
   =================================================================== */
.tac-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tac-list li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.5rem;
  color: var(--gh-ink-2);
  border-bottom: 1px solid var(--gh-border-muted);
}

.tac-list li:last-child {
  border-bottom: 0;
}

.tac-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gh-accent);
  font-size: 0.9em;
}

.tac-list--ok li::before {
  content: '✓';
  color: var(--gh-success);
}

.tac-list--bad li::before {
  content: '×';
  color: var(--gh-danger);
}

.tac-list--deny li::before {
  content: '⊘';
  color: var(--gh-danger);
}

.tac-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2.4rem;
}

.tac-listhead {
  font-family: var(--tac-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gh-ink-mute);
  margin: 0 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gh-border);
}

.tac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tac-chip {
  font-family: var(--tac-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gh-ink-2);
  padding: 0.4rem 0.85rem;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: 999px;
}

.tac-chip::before {
  content: '// ';
  color: var(--gh-accent-hi);
}

/* ---------- Spec sheet (tech stack) ---------- */
.tac-spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gh-border);
  border-bottom: 0;
}

.tac-spec__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  font-family: var(--tac-mono);
  font-size: 0.86rem;
  color: var(--gh-ink-2);
  border-bottom: 1px solid var(--gh-border);
  border-right: 1px solid var(--gh-border);
}

.tac-spec__item::before {
  content: attr(data-i);
  color: var(--gh-ink-mute);
  font-size: 0.74rem;
}

/* ===================================================================
   COMPARISON (module 07)
   =================================================================== */
.tac-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.tac-compare__col {
  padding: 1.6rem;
  border: 1px solid var(--gh-border);
  background: var(--gh-surface);
}

.tac-compare__col--old {
  opacity: 0.92;
}

.tac-compare__col--new {
  border-color: rgb(248 81 73 / 45%);
  box-shadow: inset 0 0 0 1px rgb(248 81 73 / 12%);
}

.tac-compare__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--tac-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tac-compare__col--old .tac-compare__head {
  color: var(--gh-ink-dim);
}

.tac-compare__col--new .tac-compare__head {
  color: var(--gh-accent-hi);
}

/* ===================================================================
   QUOTE / STATEMENT (modules 09, 11)
   =================================================================== */
.tac-quote {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 2.4rem clamp(1.4rem, 4vw, 3.2rem);
  text-align: center;
  border-top: 1px solid var(--gh-border);
  border-bottom: 1px solid var(--gh-border);
}

.tac-quote__text {
  font-family: var(--tac-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--gh-accent-hi);
}

.tac-statement {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--tac-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  line-height: 1.25;
  color: var(--gh-ink);
}

.tac-statement strong {
  color: var(--gh-accent-hi);
  font-weight: 600;
}

/* ===================================================================
   FLOW CONNECTOR (modernised data-transfer arrow)
   =================================================================== */
.tac-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.4rem 0;
}

.tac-flow__line {
  position: relative;
  width: 2px;
  height: 46px;
  overflow: hidden;
  background: var(--gh-border);
}

.tac-flow__line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -50%;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--gh-accent));
  animation: tac-flow-dot 1.8s linear infinite;
}

/* ===================================================================
   CONTACT (module 14)
   =================================================================== */
.tac-contact {
  max-width: 640px;
  padding: 2rem;
  border: 1px solid var(--gh-border);
  background: var(--gh-surface);
}

.tac-contact__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gh-border-muted);
  font-family: var(--tac-mono);
  font-size: 0.92rem;
}

.tac-contact__row:last-child {
  border-bottom: 0;
}

.tac-contact__key {
  color: var(--gh-ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.tac-contact__val {
  color: var(--gh-ink);
  text-align: right;
}

/* ===================================================================
   MOTION
   =================================================================== */
@keyframes tac-grid-pan {
  to {
    background-position: 46px 46px;
  }
}

@keyframes tac-scan {
  to {
    transform: translateY(115vh);
  }
}

@keyframes tac-blink {
  50% {
    opacity: 0.3;
  }
}

@keyframes tac-sweep {
  to {
    transform: translateX(120%);
  }
}

@keyframes tac-flow-dot {
  to {
    top: 100%;
  }
}

/* Reveal-on-scroll (only armed once JS marks the page) */
.tactical-page.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--tac-ease),
    transform 0.7s var(--tac-ease);
}

.tactical-page.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (width <= 900px) {
  .tac-grid--3,
  .tac-spec {
    grid-template-columns: repeat(2, 1fr);
  }

  .tac-compare {
    grid-template-columns: 1fr;
  }

  .tac-telemetry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width <= 600px) {
  .tac-module__head {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .tac-grid--2,
  .tac-grid--3,
  .tac-cols,
  .tac-spec {
    grid-template-columns: 1fr;
  }

  .tac-telemetry {
    grid-template-columns: 1fr;
  }

  .tac-stat {
    border-left: 0;
    border-top: 1px solid var(--gh-border);
  }

  .tac-stat:first-child {
    border-top: 0;
  }

  .tac-contact__row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .tac-contact__val {
    text-align: left;
  }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.theme-tactical::after,
  .tactical-page::before,
  .tac-status__dot,
  .tac-flow__line::after,
  .tac-panel.is-visible::after {
    animation: none;
  }

  .tactical-page.has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tac-panel::after {
    display: none;
  }
}
