/* ============================================================
   GIA — GROYPER INTELLIGENCE AGENCY
   Shared theme — gia2b2t.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Oswald:wght@300;400;500;700&display=swap');

:root {
  --bg: #070707;
  --surface: #101010;
  --surface-2: #141414;
  --border: #262626;
  --accent: #c8a951;
  --accent-dim: rgba(200, 169, 81, 0.35);
  --accent-faint: rgba(200, 169, 81, 0.08);
  --red: #8b1a1a;
  --red-bright: #c0392b;
  --text: #d4d0c8;
  --fg: var(--text);   /* alias: foreground text (used by console + portal forms) */
  --muted: #6b6b66;
  --muted-2: #44443f;
  --green: #4a7c3f;
  --scanline: rgba(255, 255, 255, 0.018);
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --font: var(--mono);  /* alias: monospace UI font (console + portal forms) */
  --display: 'Oswald', sans-serif;
  --maxw: 1080px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- atmosphere overlays ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline) 0px, var(--scanline) 1px,
    transparent 1px, transparent 3px
  );
  pointer-events: none;
  z-index: 999;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 998;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 8px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(200, 169, 81, 0.35);
}

.nav-seal {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 0 8px rgba(200, 169, 81, 0.25));
}

.nav-logo small {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  letter-spacing: 3px;
}

.nav-links a { color: var(--muted); transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 12px var(--accent-dim); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--accent); color: #000 !important; text-shadow: none !important; }

/* intake closed — CTA kept visible but disabled */
.nav-cta.locked {
  border-color: var(--muted-2);
  color: var(--muted) !important;
  cursor: not-allowed;
}
.nav-cta.locked:hover { background: transparent; color: var(--muted) !important; text-shadow: none !important; }
a.btn.locked, a.nav-cta.locked { pointer-events: none; }

/* logged-in indicator — injected into the nav by gia.js when verified */
.nav-clearance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--green);
  color: #6fae62 !important;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.nav-clearance:hover { background: rgba(74, 124, 63, 0.14); text-shadow: none !important; }
.nav-clearance-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fae62;
  box-shadow: 0 0 8px var(--green);
  animation: gia-clr-pulse 2.2s ease-in-out infinite;
}
@keyframes gia-clr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* hamburger toggle — injected into .nav by gia.js; hidden on desktop */
.nav-toggle {
  display: none;
  width: 40px; height: 36px; padding: 0;
  background: none; border: 1px solid var(--border); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--accent);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }

  /* the link row becomes a full-width dropdown drawer */
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    background: rgba(7, 7, 7, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    font-size: 13px; letter-spacing: 3px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-links a { padding: 14px 22px; border-bottom: 1px solid #131313; }
  .nav-links a:not(.nav-cta):not(.nav-clearance)::after { display: none; }  /* drop the desktop underline anim */
  .nav-links a.nav-cta { margin: 10px 22px 4px; text-align: center; border-bottom: 1px solid var(--accent); }
  .nav-links a.nav-clearance { margin: 8px 22px 0; justify-content: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 5px;
  padding: 15px 38px;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.25s;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: #000; }
.btn > span { position: relative; z-index: 1; }

.btn.ghost { border-color: var(--border); color: var(--muted); }
.btn.ghost::before { background: var(--text); }
.btn.ghost:hover { color: #000; border-color: var(--text); }

.btn.locked {
  border-color: var(--muted-2);
  color: var(--muted);
  cursor: not-allowed;
}
.btn.locked::before { display: none; }
.btn.locked:hover { color: var(--muted); }

/* intake closed — form kept visible but non-interactive */
.intake-closed-form {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.5);
  user-select: none;
}
.intake-closed-banner {
  border: 1px solid var(--red);
  background: rgba(139, 26, 26, 0.1);
  padding: 22px 24px;
  margin-bottom: 18px;
  text-align: center;
}
.intake-closed-banner .stamp { margin-bottom: 12px; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

.page-offset { padding-top: calc(var(--nav-h) + 40px); }

.sec { padding: 90px 0; }

.sec-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}

.sec-num { font-size: 11px; color: var(--red-bright); letter-spacing: 2px; }

.sec-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3.5vw, 32px);
  letter-spacing: 7px;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  align-self: center;
}

/* ---- corner brackets ---- */
.cornered { position: relative; }
.corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.75;
  z-index: 2;
}
.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ---- decorative bits ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 16px 0;
  opacity: 0.5;
}

.redact {
  display: inline-block;
  background: #1c1c1c;
  color: transparent;
  border-radius: 1px;
  user-select: none;
  box-shadow: inset 0 0 0 1px #222;
}

/* a redaction lifted for cleared personnel via /api/classified */
.declassified {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

.pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  padding: 2px 9px;
  border: 1px solid;
  vertical-align: middle;
}
.pill.red { border-color: var(--red); color: var(--red-bright); }
.pill.gold { border-color: var(--accent); color: var(--accent); }
.pill.green { border-color: var(--green); color: #6fae62; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor { animation: blink 1.2s infinite; color: var(--accent); }

@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.86; }
  97% { opacity: 1; }
  98% { opacity: 0.92; }
}

/* ============================================================
   BOOT SEQUENCE OVERLAY
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s;
}

.boot.done { opacity: 0; pointer-events: none; }

.boot-inner {
  width: min(560px, 88vw);
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
  letter-spacing: 1px;
}

.boot-inner .ok { color: var(--green); }
.boot-inner .warn { color: var(--accent); }
.boot-inner .line { min-height: 25px; }

.boot-skip {
  position: absolute;
  bottom: 28px;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted-2);
}

/* ============================================================
   HERO (landing)
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  position: relative;
  animation: flicker 9s infinite;
}

.hero-seal {
  width: clamp(130px, 24vw, 200px);
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 34px rgba(200, 169, 81, 0.35)) drop-shadow(0 0 90px rgba(200, 169, 81, 0.12));
}

.hero-classification {
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--red-bright);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-classification::before,
.hero-classification::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--red);
}

.hero-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(88px, 19vw, 200px);
  letter-spacing: clamp(18px, 4vw, 44px);
  margin-right: clamp(-18px, -4vw, -44px); /* optically recenters letter-spaced text */
  color: var(--accent);
  line-height: 1;
  text-shadow:
    0 0 24px rgba(200, 169, 81, 0.45),
    0 0 90px rgba(200, 169, 81, 0.12);
}

.hero-sub {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(13px, 2.4vw, 19px);
  letter-spacing: clamp(6px, 1.6vw, 12px);
  color: var(--text);
  text-transform: uppercase;
  margin-top: 18px;
}

.hero-status {
  margin-top: 34px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 2.1;
}

.hero-status b { color: var(--accent); font-weight: 400; }
.hero-status .live { color: #6fae62; }

.hero-actions {
  margin-top: 46px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--muted-2);
}

/* staggered entrance */
.hero [data-stagger] { opacity: 0; transform: translateY(16px); animation: heroIn 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.hero [data-stagger="1"] { animation-delay: 0.1s; }
.hero [data-stagger="2"] { animation-delay: 0.28s; }
.hero [data-stagger="3"] { animation-delay: 0.46s; }
.hero [data-stagger="4"] { animation-delay: 0.64s; }
.hero [data-stagger="5"] { animation-delay: 0.85s; }
.hero [data-stagger="6"] { animation-delay: 1.05s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: inline-block;
  animation: tickerScroll 36s linear infinite;
}

.ticker span {
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.85);
  margin-right: 60px;
}

.ticker span.tick-stat { color: #fff; }
.ticker span.tick-stat b { color: var(--accent); font-weight: 700; letter-spacing: 3px; }

@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CARDS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px 26px;
  position: relative;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }

.card-num {
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.card-body { font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ============================================================
   DOSSIER / DOCUMENT PANEL
   ============================================================ */
.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 38px 34px;
  position: relative;
}

.doc-seal {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 14px rgba(200, 169, 81, 0.2));
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 22px;
}

.doc p { font-size: 13px; line-height: 2; color: var(--text); margin-bottom: 16px; }
.doc p.dim { color: var(--muted); }

.stamp {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--red-bright);
  border: 2px solid var(--red-bright);
  padding: 8px 20px;
  transform: rotate(-6deg);
  opacity: 0.85;
  text-transform: uppercase;
  user-select: none;
}

.stamp.gold { color: var(--accent); border-color: var(--accent); }

@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-6deg) scale(2.4); }
  55% { opacity: 1; transform: rotate(-6deg) scale(0.96); }
  100% { opacity: 0.9; transform: rotate(-6deg) scale(1); }
}
.stamp.animate { animation: stampIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   FORMS (intake)
   ============================================================ */
.form-section {
  margin-bottom: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.form-section-header {
  background: var(--surface-2);
  padding: 12px 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.form-section-num { color: var(--muted); font-size: 10px; font-family: var(--mono); }

.form-section-body {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.question { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 120px; }

.q-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.q-label .req { color: var(--red-bright); }

.q-text { font-size: 13px; color: var(--text); line-height: 1.6; }
.q-text .tag { color: var(--accent); font-size: 11px; }

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-bottom-color: var(--accent-dim);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  appearance: none;
  border-radius: 0;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(200, 169, 81, 0.15), 0 4px 14px rgba(0, 0, 0, 0.45);
}

select option { background: #111; }
textarea { min-height: 84px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.options.inline { flex-direction: row; flex-wrap: wrap; gap: 10px; }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 9px 13px;
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
  font-size: 12px;
  background: #0c0c0c;
}

.opt:hover { border-color: var(--accent); background: var(--accent-faint); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-faint); }

.opt input[type="radio"],
.opt input[type="checkbox"] {
  width: 14px; height: 14px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.opt input:disabled { cursor: not-allowed; }
.opt:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

.opt-label { color: var(--text); letter-spacing: 1px; }
.opt-sub { color: var(--muted); font-size: 10px; margin-left: auto; }

/* scale */
.scale { display: flex; gap: 6px; align-items: center; }
.scale-label { font-size: 10px; color: var(--muted); min-width: 60px; }
.scale-label.right { text-align: right; }
.scale-btns { display: flex; gap: 4px; flex: 1; }

.scale-btn {
  flex: 1;
  height: 34px;
  background: #0c0c0c;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.scale-btn:hover, .scale-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .scale { flex-wrap: wrap; }
  .scale-label { display: none; }
}

/* validation */
.question.invalid input,
.question.invalid textarea,
.question.invalid select { border-color: var(--red-bright); }

.field-err {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red-bright);
}

/* progress chips */
.progress-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 28px;
}

.progress-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 2px;
}

.chip {
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  transition: color 0.2s, border-color 0.2s;
}

.chip.done { border-color: var(--green); color: #6fae62; }
.chip.partial { border-color: var(--accent-dim); color: var(--accent); }

/* oath */
.oath-box {
  border: 1px solid var(--red);
  padding: 22px;
  background: rgba(139, 26, 26, 0.06);
  font-size: 12px;
  line-height: 2.1;
  color: #999;
  letter-spacing: 0.5px;
  position: relative;
}

.oath-box .line { color: var(--text); }

.oath-fill {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  min-width: 130px;
  display: inline-block;
  text-align: center;
  letter-spacing: 2px;
  min-height: 1.4em;
  vertical-align: bottom;
}

.oath-sign-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 14px;
}

.oath-sign-row .question { flex: 1; min-width: 220px; }

.sig-status { font-size: 10px; letter-spacing: 2px; min-height: 16px; }
.sig-status.ok { color: var(--accent); }
.sig-status.bad { color: var(--red-bright); }

input.sig-ok { border-color: var(--accent); box-shadow: 0 0 12px rgba(200, 169, 81, 0.2); }

.oath-stamp-slot {
  position: absolute;
  right: 18px;
  bottom: 14px;
  pointer-events: none;
}

/* submit + success */
.submit-area {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.submit-note { font-size: 10px; color: var(--muted); letter-spacing: 2px; align-self: flex-start; }

.submit-error {
  display: none;
  color: var(--red-bright);
  font-size: 11px;
  letter-spacing: 2px;
  align-self: stretch;
  border: 1px solid var(--red);
  padding: 12px 16px;
  background: rgba(139, 26, 26, 0.08);
}

.success-panel {
  display: none;
  text-align: center;
  padding: 90px 24px;
}

.success-panel.show { display: block; animation: heroIn 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }

.success-seal {
  width: 130px;
  height: 130px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 30px rgba(200, 169, 81, 0.3));
}

.success-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 38px);
  letter-spacing: 8px;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-dim);
  margin: 26px 0 12px;
}

.success-case {
  font-size: clamp(16px, 4vw, 24px);
  letter-spacing: 6px;
  color: var(--text);
  border: 1px dashed var(--accent);
  display: inline-block;
  padding: 14px 30px;
  margin: 22px 0;
}

.success-sub { font-size: 11px; letter-spacing: 2px; color: var(--muted); line-height: 2.2; }

/* honeypot — visually removed, present for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 0 46px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.footer-inner a { color: var(--muted); transition: color 0.2s; }
.footer-inner a:hover { color: var(--accent); }

/* ============================================================
   MOBILE POLISH
   ============================================================ */
@media (max-width: 640px) {
  /* inputs under 16px make iOS zoom the page on focus — clamp them up */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea, select { font-size: 16px !important; }

  /* footer becomes a centered stack instead of a cramped justified row */
  .footer-inner { justify-content: center; text-align: center; gap: 16px; line-height: 2.2; }
  .footer-inner a { display: inline-block; padding: 2px 0; }

  /* guard against accidental horizontal scroll from any wide child */
  body { overflow-x: hidden; }
}

/* ============================================================
   404 / ERROR
   ============================================================ */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 20vw, 180px);
  letter-spacing: 20px;
  color: var(--red-bright);
  text-shadow: 0 0 40px rgba(192, 57, 43, 0.3);
  line-height: 1;
}

/* ============================================================
   OPERATIONS ARCHIVE
   ============================================================ */
.op-list { display: flex; flex-direction: column; gap: 4px; }

.op-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 22px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

a.op-row:hover { border-color: var(--accent-dim); background: var(--surface-2); }

.op-row.sealed { opacity: 0.55; }
.op-row.sealed .op-codename { color: var(--muted); }

.op-ref { font-size: 10px; color: var(--muted-2); letter-spacing: 2px; }

.op-codename {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.op-codename small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 2px; color: var(--muted); margin-top: 3px; }

.op-type { font-size: 10px; letter-spacing: 2px; color: var(--muted); }

@media (max-width: 680px) {
  .op-row { grid-template-columns: 1fr auto; }
  .op-ref, .op-type { display: none; }
}

/* op report detail */
.op-photo {
  border: 1px solid var(--border);
  padding: 8px;
  background: #0c0c0c;
  margin: 18px 0;
}

.op-photo img { width: 100%; display: block; filter: saturate(0.85) contrast(1.05); }

.op-photo figcaption {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  padding-top: 8px;
  text-align: center;
}

.op-field-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.op-field {
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.op-field b { color: var(--accent); font-weight: 400; display: block; margin-top: 2px; font-size: 11px; }

/* ============================================================
   RANK HIERARCHY
   ============================================================ */
.rank-ladder { display: flex; flex-direction: column; gap: 4px; }

.rank {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted-2);
  padding: 22px 24px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.rank:hover { background: var(--surface-2); transform: translateX(4px); }

.rank[data-tier="top"] { border-left-color: var(--red-bright); }
.rank[data-tier="high"] { border-left-color: var(--accent); }
.rank[data-tier="mid"] { border-left-color: var(--accent-dim); }

.rank-level {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  color: var(--muted-2);
  line-height: 1;
}
.rank-level small { display: block; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 2px; margin-top: 6px; }
.rank[data-tier="top"] .rank-level { color: var(--red-bright); }
.rank[data-tier="high"] .rank-level { color: var(--accent); }
.rank[data-tier="mid"] .rank-level { color: var(--accent-dim); }

.rank-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 4px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rank-desc { font-size: 12px; color: var(--muted); line-height: 1.8; }
.rank-desc b { color: var(--text); font-weight: 400; }

.rank-access {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-align: right;
  line-height: 2;
  align-self: center;
  min-width: 150px;
}
.rank-access .yes { color: #6fae62; }
.rank-access .no { color: var(--muted-2); text-decoration: line-through; }

@media (max-width: 720px) {
  .rank { grid-template-columns: 60px 1fr; }
  .rank-access { display: none; }
  .rank-level { font-size: 22px; }
}

/* ============================================================
   STATUS CHECKER
   ============================================================ */
.status-form {
  display: flex;
  gap: 10px;
  margin: 26px 0;
  flex-wrap: wrap;
}

.status-form input {
  flex: 1;
  min-width: 220px;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  padding: 14px;
}

.status-result {
  display: none;
  text-align: center;
  padding: 38px 20px 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 6px;
}

.status-result.show { display: block; animation: heroIn 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }

.status-case { font-size: 12px; letter-spacing: 3px; color: var(--muted); margin-bottom: 20px; }

.status-line { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-top: 22px; line-height: 2; }

.stamp.green { color: #6fae62; border-color: #6fae62; }
.stamp.grey { color: var(--muted); border-color: var(--muted); }

@keyframes pulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.45; } }
.stamp.pulse { animation: pulse 2.2s infinite; }

/* ============================================================
   WALL OF TRAITORS
   ============================================================ */
.burned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 4px;
}

.burned-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}

.burned-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(139, 26, 26, 0.05) 14px 16px);
  pointer-events: none;
}

.burned-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.burned-rank { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 14px; }

.burned-detail { font-size: 11px; color: var(--muted); line-height: 1.9; }
.burned-detail b { color: var(--red-bright); font-weight: 400; }

.burned-stamp {
  position: absolute;
  top: 14px;
  right: -6px;
  font-size: 12px;
  padding: 5px 14px;
  pointer-events: none;
}

/* ============================================================
   COMMUNIQUÉS
   ============================================================ */
.comm-list { display: flex; flex-direction: column; gap: 4px; }

.comm-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-dim);
  padding: 18px 22px;
}

.comm-head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.comm-date { font-size: 10px; letter-spacing: 2px; color: var(--red-bright); }
.comm-ref { font-size: 10px; letter-spacing: 2px; color: var(--muted-2); }

.comm-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.comm-body { font-size: 12px; color: var(--muted); line-height: 1.9; }

/* ============================================================
   MEMBER PORTAL
   ============================================================ */
.portal-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 34px;
}

.portal-lock {
  font-size: 38px;
  color: var(--red-bright);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(192, 57, 43, 0.35));
}

.portal-readout {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 2.2;
  color: var(--muted);
  background: #0c0c0c;
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin: 24px 0;
  min-height: 110px;
}

.portal-readout .ok { color: var(--green); }
.portal-readout .warn { color: var(--accent); }
.portal-readout .bad { color: var(--red-bright); }

/* ============================================================
   FIELD MANUAL (FAQ)
   ============================================================ */
.reg {
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 4px;
}

.reg summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 0.15s;
}

.reg summary::-webkit-details-marker { display: none; }
.reg summary:hover { background: var(--surface-2); }

.reg-num { font-size: 10px; letter-spacing: 2px; color: var(--red-bright); white-space: nowrap; }

.reg-q {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
  flex: 1;
}

.reg-toggle { color: var(--muted-2); font-size: 14px; }
.reg[open] .reg-toggle { color: var(--accent); }
.reg[open] summary { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.reg[open] .reg-q { color: var(--accent); }

.reg-a {
  padding: 18px 22px 22px 64px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}

.reg-a b { color: var(--text); font-weight: 400; }
.reg-a a { border-bottom: 1px dashed var(--accent-dim); }

@media (max-width: 560px) { .reg-a { padding-left: 22px; } }

/* ============================================================
   POLISH & MOTION
   Extends the existing motion vocabulary — same tokens, same
   easings, mechanical not playful. JS-driven pieces snap to their
   end state under prefers-reduced-motion (see ACCESSIBILITY below).
   ============================================================ */

/* ---- scroll progress HUD line ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 10px var(--accent-dim);
  z-index: 1001;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---- animated nav underline ---- */
.nav-links a:not(.nav-cta):not(.nav-clearance) { position: relative; }
.nav-links a:not(.nav-cta):not(.nav-clearance)::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:not(.nav-cta):not(.nav-clearance):hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ---- decrypt text reveal (gold tint while scrambling) ---- */
.decrypting { color: var(--accent); }

/* ---- redaction lift: black bar wipes off a freshly declassified value ---- */
.declassified.lift { position: relative; }
.declassified.lift::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #1c1c1c;
  transform-origin: left;
  animation: redactLift 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}
@keyframes redactLift { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---- card hover: single scanline sweep over the existing lift ---- */
.card { overflow: hidden; }
.card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(200, 169, 81, 0.07), transparent);
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}
.card:hover::after { animation: cardSweep 0.85s ease-out forwards; }
@keyframes cardSweep {
  0% { transform: translateY(-130%); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(330%); opacity: 0; }
}

/* ---- glitch-on-hover: hostile / burned names read as corrupted records ---- */
.burned-name { position: relative; }
.burned-name::before,
.burned-name::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.burned-card:hover .burned-name::before {
  color: var(--red-bright);
  animation: glitchTop 0.42s steps(2, end) 1;
}
.burned-card:hover .burned-name::after {
  color: #3aa6b9;
  animation: glitchBot 0.42s steps(2, end) 1;
}
@keyframes glitchTop {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.85; transform: translate(-2px, -1px); }
  45% { opacity: 0.6; transform: translate(2px, 1px); }
  70% { opacity: 0.85; transform: translate(-1px, 0); }
}
@keyframes glitchBot {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.85; transform: translate(2px, 1px); }
  45% { opacity: 0.6; transform: translate(-2px, -1px); }
  70% { opacity: 0.85; transform: translate(1px, 0); }
}

/* ---- loading shimmer / skeleton ---- */
.skel {
  height: 12px;
  margin: 10px 0;
  border-radius: 1px;
  background: linear-gradient(90deg, #141414 0%, #20201c 50%, #141414 100%);
  background-size: 200% 100%;
  animation: skelShimmer 1.3s ease-in-out infinite;
}
.skel.wide { width: 100%; }
.skel.mid { width: 70%; }
.skel.short { width: 42%; }
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- page transition: brief CRT fade between routes ---- */
body.gia-fade-in { animation: pageFadeIn 0.4s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body.gia-leaving { opacity: 0; transition: opacity 0.18s ease; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero [data-stagger] { opacity: 1; transform: none; }
  /* Signature brand motion is gentle + decorative — keep it running even
     when reduced motion is requested (e.g. Firefox privacy/RFP defaults). */
  .ticker-track { animation-duration: 36s !important; animation-iteration-count: infinite !important; }
  .cursor { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
}
