/* =============================================================================
   WarDogs — Tactical Gaming Community Template
   Black / mustard HUD. Sharp edges. Not neon, not desert gold, not bunker terminal.
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --bg-3: #161616;
  --surface: #121210;
  --surface-2: #1a1a16;
  --text: #f2f2f0;
  --muted: #9a9a8e;
  --muted-2: #6a6a60;
  --accent: #c59330;
  --accent-hot: #d4a84a;
  --accent-dim: rgba(197, 147, 48, 0.16);
  --olive: #5c6548;
  --olive-muted: #3a4032;
  --tactical: #2a2c28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(197, 147, 48, 0.35);
  --online: #8fbf6a;
  --danger: #b85a4a;
  --display: "Rajdhani", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 2px;
  --max: 1120px;
  --header-h: 70px;
  --demo-h: 40px;
}

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

html {
  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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #111;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Demo banner ---------- */
.demo-banner {
  position: relative;
  z-index: 300;
  background: #10100c;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
}

.demo-banner a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.35rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 7, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  color: var(--text);
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo__text strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.logo__text span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-link {
  color: var(--muted);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn--primary {
  background: var(--accent);
  color: #111 !important;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  color: #111 !important;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text) !important;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.copy-btn:hover {
  background: rgba(197, 147, 48, 0.28);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.35) 0%, rgba(7, 7, 7, 0.55) 40%, rgba(7, 7, 7, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.75) 0%, rgba(7, 7, 7, 0.2) 55%, rgba(7, 7, 7, 0.55) 100%);
}

.hero__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin-bottom: 0.75rem;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 34rem;
  color: #c8c8bc;
  margin-bottom: 1.5rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section--dark {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-header {
  margin-bottom: 2rem;
  max-width: 640px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}

.section-header p {
  margin-top: 0.5rem;
}

/* ---------- Ops panel ---------- */
.ops-panel {
  background:
    linear-gradient(135deg, rgba(197, 147, 48, 0.06), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.ops-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}

.ops-panel__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--online);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 3px rgba(143, 191, 106, 0.2);
}

.ops-panel__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}

.ops-panel__connect {
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--line);
}

.ops-panel__meta {
  padding: 1.4rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.ops-dl {
  display: grid;
  gap: 1rem;
}

.ops-dl div {
  display: grid;
  gap: 0.25rem;
}

.ops-dl dt {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ops-dl dd {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  word-break: break-word;
}

.ops-dl__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ops-ip-row code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
}

.ops-note {
  font-size: 0.88rem;
  color: var(--muted-2);
  margin: 0;
}

/* ---------- Mission grid ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
}

.mission-card__media {
  position: absolute;
  inset: 0;
}

.mission-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.mission-card:hover .mission-card__media img {
  transform: scale(1.04);
}

.mission-card__body {
  position: relative;
  margin-top: auto;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 7, 0.95) 35%);
}

.mission-card__tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.mission-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.mission-card p {
  font-size: 0.92rem;
  margin: 0;
  color: #b8b8ae;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.92)),
    linear-gradient(90deg, rgba(7, 7, 7, 0.7), transparent 60%);
}

.page-hero .container {
  position: relative;
  max-width: 720px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text);
}

.page-hero p {
  max-width: 36rem;
  color: #c4c4b8;
}

/* ---------- Rules ---------- */
.rules-list {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.rules-list article {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  border-radius: var(--radius);
}

.rules-list h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.rules-list ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.rules-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ---------- Staff ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.staff-card__avatar {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tactical);
  border-bottom: 1px solid var(--line);
}

.staff-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.staff-card__body {
  padding: 1.1rem 1rem 1.25rem;
}

.staff-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.staff-card__role {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.staff-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.78) 55%, rgba(7, 7, 7, 0.88) 100%);
}

.cta-band__inner {
  max-width: 640px;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text);
}

.cta-band p {
  margin-bottom: 1.35rem;
  color: #c8c8bc;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-2);
}

.footer-credit a {
  color: var(--muted);
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ops-panel__body {
    grid-template-columns: 1fr;
  }

  .ops-panel__connect {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

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

  .gallery__item--wide {
    grid-column: span 2;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  #site-nav {
    position: fixed;
    inset: calc(var(--demo-h) + var(--header-h)) 0 0 0;
    z-index: 190;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem 1.25rem 2rem;
    background: rgba(7, 7, 7, 0.98);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
  }

  #site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    border-bottom: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--accent);
  }

  .nav-actions {
    margin-top: 1.5rem;
    flex-direction: column;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero {
    min-height: min(78vh, 640px);
    padding: 3.5rem 0 2.5rem;
    align-items: flex-end;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item,
  .gallery__item--wide {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .ops-ip-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ops-ip-row code,
  .copy-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .logo__text strong {
    font-size: 1.15rem;
  }
}
