/* ============================================================
   CITADELS — Tactical Charter
   Cold dystopian extraction-FPS HUD language.
   Near-black charcoal · razor hairlines · notched corners ·
   ⊠ box-X motif · condensed military type · mono stats.
   ============================================================ */

:root {
  /* cold base */
  --void: #06080a;
  --ink: #0a0d0f;
  --ink2: #0e1316;
  --panel: rgba(16, 22, 24, 0.74);
  --panel2: rgba(22, 29, 31, 0.92);
  --steel: #1b2327;

  /* hairlines */
  --hair: rgba(208, 216, 210, 0.14);
  --hair2: rgba(208, 216, 210, 0.26);
  --hair3: rgba(208, 216, 210, 0.42);

  /* text */
  --bone: #d9ddd4;
  --bone-d: #aab1a8;
  --mute: #7c857d;
  --mute2: #59605a;

  /* accent — overridden by [data-accent] */
  --accent: #d7b14a;
  /* amber-gold (HUD default) */
  --accent-rgb: 215, 177, 74;
  --accent-hi: #f0d27e;
  --glow: rgba(215, 177, 74, 0.35);

  /* fixed signal colors */
  --green: #8bb061;
  /* online / selected / extract */
  --green-rgb: 139, 176, 97;
  --danger: #cf4b38;
  /* alert / contraband */
  --danger-rgb: 207, 75, 56;
  --transc: #d7b14a;
  --mythic: #b25fae;

  --display: "Saira Condensed", "Oswald", "Arial Narrow", sans-serif;
  --tech: "Saira", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.65, 0, 0.2, 1);
  --notch: 10px;
  /* corner clip size */
}

/* ---- accent directions (Tweak) ---- */
[data-accent="steel"] {
  --accent: #57b7cf;
  --accent-rgb: 87, 183, 207;
  --accent-hi: #92e0f0;
  --glow: rgba(87, 183, 207, 0.34);
  --transc: #57b7cf;
}

[data-accent="signal"] {
  --accent: #d8483a;
  --accent-rgb: 216, 72, 58;
  --accent-hi: #ff7a64;
  --glow: rgba(216, 72, 58, 0.34);
  --transc: #d8483a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--tech);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body[data-noscroll] {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--accent);
  color: var(--void);
}

/* global cold vignette + grid wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(var(--accent-rgb), 0.05), transparent 55%),
    radial-gradient(140% 100% at 50% 110%, rgba(0, 0, 0, 0.6), transparent 60%);
}

/* faint tactical grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(208, 216, 210, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208, 216, 210, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(130% 100% at 50% 30%, #000 40%, transparent 85%);
}

body[data-grid="off"]::after {
  display: none;
}

/* scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.0) 0px, rgba(0, 0, 0, 0.0) 2px, rgba(0, 0, 0, 0.16) 3px, rgba(0, 0, 0, 0.0) 4px);
  mix-blend-mode: multiply;
}

body[data-scan="off"] .scanlines {
  display: none;
}

main,
.wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PRIMITIVES — HUD vocabulary
   ============================================================ */

/* the signature ⊠ box-X */
.bx {
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  border: 1px solid currentColor;
  flex: 0 0 auto;
  vertical-align: middle;
}

.bx::before,
.bx::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  clip-path: polygon(0 0, 14% 0, 50% 36%, 86% 0, 100% 0, 100% 14%, 64% 50%, 100% 86%, 100% 100%, 86% 100%, 50% 64%, 14% 100%, 0 100%, 0 86%, 36% 50%, 0 14%);
  opacity: 0.92;
}

.bx::after {
  display: none;
}

/* eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker .bx {
  width: 9px;
  height: 9px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.kicker--plain::before {
  display: none;
}

/* tracked label / value */
.lbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
}

.val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

/* notched panel */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hair2);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  backdrop-filter: blur(6px);
}

.panel--solid {
  background: var(--panel2);
}

/* corner ticks (HUD brackets) on a positioned parent */
.ticks>i {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
  border-color: var(--accent);
  opacity: 0.85;
}

.ticks>i:nth-child(1) {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.ticks>i:nth-child(2) {
  top: -1px;
  right: -1px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.ticks>i:nth-child(3) {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.ticks>i:nth-child(4) {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* primary button — notched, tactical */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 30px;
  height: 56px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--accent);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}

.btn:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-1px);
}

.btn__arrow {
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.btn__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--hair3);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn--ghost:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

/* divider with end caps */
.rule {
  height: 1px;
  background: var(--hair2);
  position: relative;
}

/* build stamp (vertical) */
.stamp-v {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* section scaffolding */
.section {
  position: relative;
  padding: 150px 0;
}

.container {
  width: min(1500px, 92vw);
  margin: 0 auto;
}

.section__tag {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.section__tag .idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.section__tag .line {
  flex: 1;
  height: 1px;
  background: var(--hair);
}

.h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.h2 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--bone-d);
  max-width: 56ch;
}

.lede em {
  color: var(--accent);
  font-style: normal;
}

/* reveal animation */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.rv[data-d="1"] {
  transition-delay: 0.08s;
}

.rv[data-d="2"] {
  transition-delay: 0.16s;
}

.rv[data-d="3"] {
  transition-delay: 0.24s;
}

.rv[data-d="4"] {
  transition-delay: 0.32s;
}

.clip-rv {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease);
}

.clip-rv.in {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {

  .rv,
  .clip-rv {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

body[data-motion="off"] .rv,
body[data-motion="off"] .clip-rv {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 32px;
  background: rgba(8, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid var(--hair);
}

.nav.solid {
  background: rgba(8, 11, 12, 0.96);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__brand img {
  height: 30px;
  width: auto;
}

.nav__brand .wm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--bone);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-d);
  padding: 10px 16px;
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--bone);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--accent);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav__cta:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 22px var(--glow);
}

.nav__cta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--void);
  animation: blink 1.6s steps(1) infinite;
}

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

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

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

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.55) 0%, rgba(6, 8, 10, 0.1) 30%, rgba(6, 8, 10, 0.35) 62%, rgba(6, 8, 10, 0.96) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(6, 8, 10, 0.5) 100%);
}

.hero__poster {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(140deg, #0a1316, #06080a 60%);
}

/* top hud strip */
.hero__hud {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
}

.hero__hud .l,
.hero__hud .r {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__hud .on {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__hud .on::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero__starting {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero__starting .bar {
  width: 90px;
  height: 4px;
  background: rgba(208, 216, 210, 0.14);
  position: relative;
  overflow: hidden;
}

.hero__starting .bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  animation: countbar 30s linear forwards;
}

@keyframes countbar {
  to {
    width: 100%;
  }
}

.hero__body {
  position: relative;
  z-index: 3;
  padding: 0 36px 70px;
}

.hero__inner {
  width: min(1500px, 92vw);
  margin: 0 auto;
}

.hero__kicker {
  margin-bottom: 22px;
}

.hero__wordmark {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(76px, 14vw, 220px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.hero__hook {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 28px;
  margin-top: 26px;
}

.hero__hook span {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 60px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--bone);
  position: relative;
  padding-right: 28px;
}

.hero__hook span::after {
  content: "·";
  position: absolute;
  right: 2px;
  color: var(--accent);
}

.hero__hook span:last-child::after {
  display: none;
}

.hero__hook span:nth-child(2) {
  color: var(--bone);
}

.hero__hook .x {
  color: var(--accent);
}

.hero__sub {
  margin-top: 30px;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--bone-d);
  max-width: 50ch;
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--mute);
}

.hero__scroll .t {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll .a {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll .a::after {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  width: 1px;
  height: 10px;
  background: var(--accent);
  animation: scrolldot 1.8s var(--ease) infinite;
}

@keyframes scrolldot {
  to {
    top: 30px;
  }
}

/* corner build stamps on hero */
.hero__stamp {
  position: absolute;
  z-index: 3;
  bottom: 70px;
}

.hero__stamp--l {
  left: 14px;
}

.hero__stamp--r {
  right: 14px;
}