/* ============================================================
   HUNTER SECURITY — design system
   Palette: Obsidian #0B0B0E / Graphite #15161B / Signal #C0392B
            Bone #F1EFEA / Steel #8A8F98
   Type:    Big Shoulders Display (display) / Archivo (body)
            IBM Plex Mono (control-room data)
   ============================================================ */

:root {
  --obsidian: #0b0b0e;
  --graphite: #15161b;
  --panel: #1b1d24;
  --line: rgba(241, 239, 234, 0.1);
  --signal: #c0392b;
  --signal-hot: #e14b3a;
  --bone: #f1efea;
  --steel: #8a8f98;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: var(--bone); }

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

/* ---------- utility ---------- */
.wrap { width: min(1240px, 92vw); margin-inline: auto; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-hot);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--signal);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.005em;
}

.h-xl { font-size: clamp(3.4rem, 9.5vw, 8.5rem); }
.h-lg { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.lede {
  color: var(--steel);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 56ch;
}

.accent { color: var(--signal-hot); }

/* outline (stroke) headline treatment */
.stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(241,239,234,0.55);
}

section { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }

/* ---------- reveal states (GSAP drives these) ---------- */
.rv { opacity: 0; transform: translateY(46px); }
.rv-l { opacity: 0; transform: translateX(-56px); }
.rv-r { opacity: 0; transform: translateX(56px); }
html.no-motion .rv, html.no-motion .rv-l, html.no-motion .rv-r {
  opacity: 1; transform: none;
}

/* split headline line masks */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); }
html.no-motion .line-mask > span { transform: none; }

/* ---------- page transition wipe ---------- */
#wipe {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  display: grid; place-items: center;
  transform: translateY(101%);
  background: var(--signal);
}
#wipe .wipe-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  color: var(--obsidian);
  letter-spacing: 0.04em;
  opacity: 0;
}

/* ---------- progress bar ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 150;
  background: transparent;
}
#progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--signal), var(--signal-hot));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1360px, 94vw);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--signal-hot);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* burger */
.burger {
  display: none;
  background: none; border: 1px solid var(--line);
  width: 46px; height: 46px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.burger span {
  width: 20px; height: 2px; background: var(--bone);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(11,11,14,0.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.4rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bone);
}
.mobile-menu a.active { color: var(--signal-hot); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--signal);
  padding: 1.05rem 1.9rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  transition: color 0.35s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--signal);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }
.btn.solid { background: var(--signal); }
.btn.solid::before { background: var(--bone); }
.btn.solid:hover { color: var(--obsidian); }

/* ---------- ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--graphite);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex; gap: 3.4rem;
  width: max-content;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.ticker-track b { color: var(--signal-hot); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }
html.no-motion .ticker-track { animation: none; }

/* ---------- hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
  position: relative;
  overflow: clip;
}
#hero3d, #field3d {
  position: absolute; inset: 0;
  z-index: 0;
}
#field3d { opacity: 0.55; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 70% 30%, transparent 40%, rgba(11,11,14,0.85) 100%),
              linear-gradient(to top, var(--obsidian) 0%, transparent 32%);
  z-index: 1;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-status {
  display: flex; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-status .mono { display: inline-flex; align-items: center; gap: 0.55rem; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal-hot);
  box-shadow: 0 0 0 0 rgba(225,75,58,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(225,75,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,75,58,0); }
}
.hero h1 { margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.scroll-hint {
  position: absolute; right: 4vw; bottom: 4.5rem;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex; align-items: center; gap: 1rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(var(--signal-hot), transparent);
  animation: drip 2s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  min-height: 62svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
  position: relative;
  overflow: clip;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--obsidian), transparent 45%);
  z-index: 1;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s;
  will-change: transform;
}
.card:hover { border-color: rgba(225,75,58,0.5); }
.card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card .glare {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(241,239,234,0.07), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .glare { opacity: 1; }
.card h3 { font-size: 1.5rem; margin: 1.1rem 0 0.7rem; }
.card p { color: var(--steel); font-size: 0.95rem; }
.card .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-hot);
  letter-spacing: 0.2em;
}
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  margin-top: 1.2rem;
  color: var(--signal-hot);
}
.card .more {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex; gap: 0.6rem; align-items: center;
  transition: color 0.3s;
}
.card:hover .more { color: var(--bone); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: 2.6rem 1.6rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--bone);
}
.stat .num i { font-style: normal; color: var(--signal-hot); }
.stat .lbl { margin-top: 0.6rem; }

/* ---------- control room band ---------- */
.control {
  background: var(--graphite);
  border-block: 1px solid var(--line);
  overflow: clip;
}
.control .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.console {
  border: 1px solid var(--line);
  background: var(--obsidian);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.9;
  padding: 1.6rem 1.5rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.console::before {
  content: "HS // CONTROL ROOM — LIVE FEED";
  display: block;
  color: var(--signal-hot);
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
}
.console .row { display: flex; justify-content: space-between; gap: 1rem; color: var(--steel); }
.console .row b { font-weight: 400; color: var(--bone); }
.console .ok { color: #57c26b; }
.console .hot { color: var(--signal-hot); }
.console .scanline {
  position: absolute; left: 0; right: 0; height: 42px; top: 0;
  background: linear-gradient(rgba(225,75,58,0.06), transparent);
  animation: scan 4.2s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { top: -15%; } to { top: 110%; } }
html.no-motion .console .scanline { animation: none; }

/* ---------- split feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.6rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.feature-row:last-of-type { border-bottom: 1px solid var(--line); }
.feature-row h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.feature-row .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--signal-hot);
  letter-spacing: 0.22em;
  display: block;
  margin-bottom: 0.8rem;
}
.feature-row p { color: var(--steel); }
.feature-row ul {
  list-style: none;
  margin-top: 1.2rem;
  display: grid; gap: 0.55rem;
}
.feature-row ul li {
  font-size: 0.92rem;
  color: var(--bone);
  padding-left: 1.4rem;
  position: relative;
}
.feature-row ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 1.5px;
  background: var(--signal-hot);
}

/* ---------- big marquee ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.4rem) 0;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex; gap: 4rem;
  width: max-content;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(241,239,234,0.28);
}
.marquee-track span.f { color: var(--signal); -webkit-text-stroke: 0; }

/* ---------- CTA ---------- */
.cta-band {
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) 0;
  position: relative;
  overflow: clip;
}
.cta-band h2 { margin-bottom: 2rem; }
.cta-band .btn { margin-top: 1rem; }

/* ---------- values / about ---------- */
.values { counter-reset: v; }
.value {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 2rem;
  align-items: baseline;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value .v-idx {
  font-family: var(--font-mono);
  color: var(--signal-hot);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}
.value h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.value p { color: var(--steel); }

/* ---------- equipment chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  color: var(--steel);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.chip:hover { border-color: var(--signal-hot); color: var(--bone); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1.6rem; margin-top: 2rem; }
.contact-list .item {
  border-left: 2px solid var(--signal);
  padding-left: 1.2rem;
}
.contact-list .item .mono { display: block; margin-bottom: 0.3rem; }
.contact-list .item a, .contact-list .item span.big {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  transition: color 0.3s;
}
.contact-list .item a:hover { color: var(--signal-hot); }

form.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: grid; gap: 1.3rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  background: var(--obsidian);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.95rem 1rem;
  transition: border-color 0.3s;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal-hot);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2.4rem;
  background: var(--graphite);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.foot-grid img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.foot-grid p { color: var(--steel); font-size: 0.9rem; max-width: 36ch; }
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-hot);
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.foot-grid ul { list-style: none; display: grid; gap: 0.6rem; }
.foot-grid ul a { color: var(--steel); font-size: 0.9rem; transition: color 0.3s; }
.foot-grid ul a:hover { color: var(--bone); }
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.foot-base .mono { font-size: 0.64rem; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal-hot);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .control .wrap, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .value { grid-template-columns: 60px 1fr; }
  .value p { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .grid.c3, .grid.c2, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
}

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