/* ============================================================
   Allison Innovations — dark tactical theme (TRIDENT lineage + USA)
   ============================================================ */
:root {
  --bg:        #05070d;
  --bg-2:      #0a0f1a;
  --panel:     #0c1426;
  --panel-2:   #101a2e;
  --line:      rgb(34 211 238 / .16);
  --line-hi:   rgb(34 211 238 / .45);
  --text:      #dbe4ef;
  --muted:     #94a3b8;
  --cyan:      #22d3ee;
  --cyan-dim:  rgb(34 211 238 / .12);
  --sky:       #38bdf8;
  --orange:    hsl(28 100% 56%);
  --red:       #e11d48;          /* brand red (logo) */
  --red-dim:   rgb(225 29 72 / .14);
  --white:     #f1f5f9;
  --navy:      #0c1426;
  --blue:      #3b82f6;
  --ok:        #34d399;

  --radius: 2px;
  --glow: 0 0 0 1px var(--line-hi), 0 0 18px rgb(34 211 238 / .18);
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--font-mono);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* tactical grid + vignette */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 85%);
  opacity: .55;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgb(225 29 72 / .08), transparent 60%),
    radial-gradient(900px 600px at 5% 10%, rgb(34 211 238 / .09), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, hsl(0 0% 100% / .012) 3px 4px);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: #000; padding: 8px 12px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- status bar ---------- */
.statusbar {
  border-bottom: 1px solid var(--line);
  background: #03050a;
  font-size: 11px; letter-spacing: .16em; color: var(--muted);
}
.statusbar__inner { display: flex; align-items: center; gap: 12px; height: 32px; white-space: nowrap; }
.statusbar__flag { display: inline-flex; gap: 2px; }
.statusbar__flag i { width: 10px; height: 10px; display: block; }
.statusbar__flag i:nth-child(1) { background: var(--red); }
.statusbar__flag i:nth-child(2) { background: var(--white); }
.statusbar__flag i:nth-child(3) { background: var(--blue); }
.statusbar__label { color: var(--white); }
.statusbar__sep { color: var(--red); }
.statusbar__spacer { flex: 1; }
.statusbar__live { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
.statusbar__clock { color: var(--cyan); font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(222 50% 3% / .88);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .nav { background: hsl(222 50% 3% / .7); backdrop-filter: blur(10px); }
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 15px var(--font-display); letter-spacing: .18em; color: var(--white);
}
.nav__logo { width: 34px; height: 34px; }
.nav__word { display: flex; flex-direction: column; line-height: 1.15; }
.nav__word small { font: 500 9px var(--font-mono); letter-spacing: .28em; color: var(--muted); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border: 1px solid transparent; border-radius: var(--radius);
}
.nav__links a b { color: var(--orange); font-weight: 500; margin-right: 4px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); border-color: var(--line-hi); background: var(--cyan-dim); }
.nav__toggle {
  display: none; background: none; color: var(--cyan); border: 1px solid var(--line-hi);
  font: 500 12px var(--font-mono); letter-spacing: .2em; padding: 8px 12px; border-radius: var(--radius); cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line-hi);
  transition: background .2s, box-shadow .2s, color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--cyan); color: #001018; border-color: var(--cyan); font-weight: 700; }
.btn--primary:hover { color: #001018; box-shadow: 0 0 24px rgb(34 211 238 / .5); transform: translateY(-1px); }
.btn--ghost { color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--cyan-dim); box-shadow: var(--glow); }
.btn--lg { padding: 16px 24px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--orange); font-size: 12px; letter-spacing: .3em; margin: 0 0 14px; }
.bracket { color: var(--cyan); }
.hero__name {
  font: 900 clamp(38px, 6.4vw, 76px)/1 var(--font-display);
  letter-spacing: .04em; text-transform: uppercase; margin: 0;
  color: var(--white);
  text-shadow: 0 0 28px rgb(34 211 238 / .35);
}
.hero__role {
  margin: 14px 0 0; font: 500 clamp(13px, 1.5vw, 16px) var(--font-display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.hero__tags { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__tags i { width: 5px; height: 5px; background: var(--sky); display: block; }
.hero__term {
  margin: 22px 0 0; padding: 10px 14px; min-height: 46px;
  background: #02040a; border: 1px solid var(--line); border-left: 2px solid var(--red);
  color: var(--ok); font-size: 14px;
}
.prompt { color: var(--orange); }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--ok); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.hero__lede { color: var(--text); max-width: 56ch; margin: 22px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { display: flex; gap: 0; margin: 34px 0 0; border: 1px solid var(--line); width: fit-content; }
.hero__stats div { padding: 10px 22px; border-right: 1px solid var(--line); }
.hero__stats div:last-child { border-right: 0; }
.hero__stats dt { font-size: 10px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.hero__stats dd { margin: 2px 0 0; font: 700 20px var(--font-display); color: var(--white); }

/* ---------- HUD flag ---------- */
.hud { margin: 0; }
.hud__frame {
  position: relative; padding: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, #070b15 100%);
  border: 1px solid var(--line-hi); border-radius: var(--radius);
  box-shadow: 0 0 40px rgb(34 211 238 / .08), inset 0 0 60px hsl(222 80% 30% / .15);
}
.hud__corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--orange); }
.hud__corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud__corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hud__corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hud__corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud__head, .hud__foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: .2em; color: var(--muted);
}
.hud__head { margin-bottom: 12px; }
.hud__foot { margin-top: 12px; }
.hud__foot b { color: var(--cyan); font-weight: 500; }
.hud__blink { color: var(--red); animation: blink 1.4s steps(1) infinite; }
.hud__flag { width: 100%; height: auto; }
.hud__flag .stripe-r { fill: var(--red); fill-opacity: .9; }
.hud__flag .stripe-w { fill: var(--white); fill-opacity: .06; }
.hud__flag .stripe-edge { stroke: var(--white); stroke-opacity: .12; stroke-width: .3; }
.hud__flag .canton { fill: var(--navy); stroke: var(--blue); stroke-width: .6; }
.hud__flag .star { fill: var(--white); }
.hud__flag .border { fill: none; stroke: var(--cyan); stroke-width: .6; stroke-opacity: .7; }
.hud__flag .scan { fill: url(#scanGrad); }
.hud__sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgb(34 211 238 / .10) 48%, rgb(34 211 238 / .25) 50%, transparent 52%);
  transform: translateX(-100%);
  animation: sweep 6s linear infinite;
}
.hud__caption {
  margin-top: 10px; text-align: center; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.section__num {
  font: 700 12px var(--font-display); color: #001018; background: var(--orange);
  padding: 4px 8px; border-radius: var(--radius); letter-spacing: .1em;
}
.section__head h2 {
  margin: 0; font: 700 clamp(20px, 3vw, 30px) var(--font-display);
  letter-spacing: .12em; text-transform: uppercase; color: var(--white);
}
.section__rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-hi), transparent);
}

/* profile */
.profile { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.profile__text p { margin: 0 0 16px; max-width: 64ch; }
.profile__text b { color: var(--white); }
.profile__side { display: flex; flex-direction: column; gap: 18px; }
.profile__logo { width: 100%; max-width: 420px; height: auto; }
.profile__card {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); background: var(--panel); border-left: 2px solid var(--cyan);
}
.profile__card li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.profile__card li:last-child { border-bottom: 0; }
.profile__card span { font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.profile__card b { font-weight: 500; color: var(--white); text-align: right; }
.profile__card b.ok { color: var(--ok); }

/* capabilities */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg-2); padding: 24px; transition: background .2s; }
.cap:hover { background: var(--panel-2); }
.cap h3 { margin: 0 0 8px; font: 700 14px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.cap__icon { color: var(--red); margin-right: 6px; }
.cap p { margin: 0; color: var(--muted); font-size: 14px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  background: transparent; color: var(--muted); cursor: pointer;
  font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
}
.filter:hover { color: var(--white); border-color: var(--line-hi); }
.filter[aria-pressed="true"] { color: #001018; background: var(--cyan); border-color: var(--cyan); }
.filter .count { opacity: .65; margin-left: 6px; }

/* projects */
.ops { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 16px; }
.op {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.op::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%;
  background: linear-gradient(90deg, var(--red), var(--white) 50%, var(--blue));
  opacity: .8;
}
.op:hover { border-color: var(--line-hi); box-shadow: var(--glow); transform: translateY(-2px); }
.op--featured { grid-column: span 2; }
.op--wide { grid-column: 1 / -1; }
.op__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .2em; }
.op__code { color: var(--orange); }
.op__status { padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--radius); }
.op__status[data-s="LIVE"] { color: var(--ok); }
.op__status[data-s="ACTIVE"] { color: var(--cyan); }
.op__status[data-s="IN DEV"] { color: var(--orange); }
.op__status[data-s="COMPLETE"] { color: var(--muted); }
.op__status[data-s="PLANNED"] { color: var(--sky); }
.op__head { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.op__logo {
  width: 64px; height: 64px; flex: none; object-fit: contain;
  filter: drop-shadow(0 0 10px rgb(0 229 255 / .35));
}
.op--featured .op__logo { width: 84px; height: 84px; }
.op__head h3 { margin: 0; }
.op h3 { margin: 14px 0 2px; font: 700 18px var(--font-display); letter-spacing: .08em; color: var(--white); text-transform: uppercase; }
.op__sub { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.op__sum { margin: 0 0 12px; color: var(--muted); font-size: 14px; flex: 1; }
.op__now {
  margin: 0 0 16px; padding: 8px 10px; font-size: 13px; line-height: 1.55; color: var(--text);
  background: rgb(34 211 238 / .06); border-left: 2px solid var(--cyan); border-radius: var(--radius);
}
.op__now span { color: var(--cyan); font-weight: 700; letter-spacing: .18em; font-size: 10px; margin-right: 8px; }
.ops__updated { margin: -12px 0 20px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.op__stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.op__stack li { font-size: 11px; letter-spacing: .06em; padding: 3px 8px; background: var(--cyan-dim); color: var(--text); border-radius: var(--radius); }
.op__link { margin-top: 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.op[hidden] { display: none; }

/* uplink */
.uplink { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.uplink__main { padding: 32px; border: 1px solid var(--line-hi); background: var(--panel); position: relative; }
.uplink__main::after {
  content: ""; position: absolute; right: 0; top: 0; width: 64px; height: 100%;
  background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 16px);
  opacity: .14; pointer-events: none;
}
.uplink__title { margin: 0 0 8px; font: 700 clamp(22px, 3vw, 32px) var(--font-display); letter-spacing: .08em; color: var(--white); text-transform: uppercase; }
.uplink__main .btn { margin-top: 20px; }
.uplink__main .btn + .btn { margin-left: 8px; }
.uplink__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.uplink__list li { border-bottom: 1px solid var(--line); }
.uplink__list li:last-child { border-bottom: 0; }
.uplink__list a, .uplink__list div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--text); }
.uplink__list a:hover { background: var(--cyan-dim); color: var(--white); }
.uplink__list span { font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.uplink__list b { font-weight: 500; overflow-wrap: anywhere; text-align: right; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__stripes { height: 4px; background: repeating-linear-gradient(90deg, var(--red) 0 24px, var(--white) 24px 48px); opacity: .7; }
.footer__stripes::after { content: ""; display: block; height: 4px; width: 22%; background: var(--blue); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; font-size: 12px; letter-spacing: .1em; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__brand img { width: 28px; height: 28px; }
.footer__mid { color: var(--white); letter-spacing: .24em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sweep { to { transform: translateX(100%); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .profile, .uplink { grid-template-columns: 1fr; }
  .caps, .ops { grid-template-columns: repeat(2, 1fr); }
  .hud { max-width: 560px; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__brand { font-size: 12px; letter-spacing: .12em; }
  .nav__word small { display: none; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; padding: 12px 16px; gap: 4px;
    background: #03050a; border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .statusbar__label[data-bind="region"], .statusbar__sep { display: none; }
  .caps, .ops { grid-template-columns: 1fr; }
  .op--featured, .op--wide { grid-column: auto; }
  .hero__stats { width: 100%; }
  .hero__stats div { flex: 1; padding: 10px 12px; }
}
@media (max-width: 420px) {
  .statusbar__live { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hud__sweep { display: none; }
}

/* 404 page */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 16px; }
.notfound h1 { margin: 0; font: 900 clamp(64px, 14vw, 140px)/1 var(--font-display); color: var(--red); text-shadow: 0 0 30px rgb(225 29 72 / .4); }
.notfound p { color: var(--muted); letter-spacing: .2em; }
