/* ═══════════════════════════════════════════════════════════════
   TRASSY // CRISIS OPERATIONS — Red-Amber NSA Terminal
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:         #080706;
  --bg2:        #0d0b09;
  --bg3:        #131008;
  --red:        #cc2200;
  --red-hi:     #ff3d1a;
  --red-dim:    #661100;
  --amber:      #d97c14;
  --amber-hi:   #f5a030;
  --amber-dim:  #6b3e08;
  --text:       #d4b480;
  --text-hi:    #eeddb0;
  --text-dim:   #aa8050;
  --green:      #2acc44;
  --border:     rgba(184,144,96,0.10);
  --border-red: rgba(204,34,0,0.30);
  --font-mono:  'Space Mono', 'Courier New', monospace;
  --font-disp:  'Bebas Neue', 'Impact', sans-serif;
  --font-body:  'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* Global scanlines */
body::after {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.07) 3px, rgba(0,0,0,0.07) 4px);
  pointer-events: none; z-index: 9990;
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.red   { color: var(--red-hi); }
.amber { color: var(--amber-hi); }

.pulse-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--red-hi); border-radius: 50%;
  margin-right: 8px; flex-shrink: 0;
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,61,26,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(255,61,26,0); }
}

.stamp {
  font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.35em; border: 2px solid currentColor;
  padding: 4px 12px; display: inline-block;
}
.section-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--text-dim);
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.req { color: var(--red-hi); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-red {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.15em;
  color: #fff; background: var(--red);
  padding: 14px 28px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-red:hover { background: var(--red-hi); transform: translateY(-1px); }

.btn-amber {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.15em;
  color: #000; background: var(--amber-hi);
  padding: 14px 28px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-amber:hover { background: #ffc060; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--text-dim); border: 1px solid var(--border); padding: 14px 24px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text-hi); border-color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════════════════════════════ */
#boot {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease;
}
#boot.fade-out { opacity: 0; pointer-events: none; }

.boot-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.20) 3px, rgba(0,0,0,0.20) 4px);
  pointer-events: none; z-index: 2;
}
.boot-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.9) 100%);
  pointer-events: none; z-index: 3;
}
.boot-wrap {
  position: relative; z-index: 4; width: min(720px, 92vw);
  border: 1px solid var(--amber-dim); background: rgba(8,7,6,0.98);
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(217,124,20,0.07), 0 0 120px rgba(204,34,0,0.04), inset 0 0 40px rgba(0,0,0,0.5);
}
.boot-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px; border-bottom: 1px solid var(--amber-dim);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em;
  color: var(--amber-dim); background: rgba(217,124,20,0.03);
}
.boot-body { padding: 1.8rem 1.6rem 1rem; min-height: 200px; display: flex; flex-direction: column; }
#boot-lines { display: flex; flex-direction: column; gap: 1px; }
.bline {
  font-family: var(--font-mono); font-size: 0.73rem;
  letter-spacing: 0.05em; line-height: 1.9; white-space: pre; min-height: 1.4rem;
}
.bline.dim    { color: var(--text-dim); }
.bline.normal { color: var(--amber); }
.bline.bright { color: var(--amber-hi); }
.bline.red    { color: var(--red-hi); }
.bline.green  { color: var(--green); }
.bline.white  { color: var(--text-hi); }
.bline.gap    { min-height: 0.5rem; }

.boot-input-line {
  display: flex; align-items: center; gap: 8px; margin-top: 0.5rem;
  font-family: var(--font-mono); font-size: 0.73rem;
}
.boot-prompt { color: var(--red-hi); }
.boot-caret  { color: var(--amber-hi); animation: caret-blink 1s step-end infinite; }
.boot-caret.hidden { opacity: 0; }
@keyframes caret-blink { 50% { opacity: 0; } }

.boot-footer {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 6px 16px; border-top: 1px solid var(--amber-dim);
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em;
  color: var(--text-dim); background: rgba(217,124,20,0.02);
}
.boot-footer .sep { opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   SITE
   ═══════════════════════════════════════════════════════════════ */
#site { opacity: 1; transition: opacity 0.6s ease; }
#site.hidden { opacity: 0; pointer-events: none; }

/* ── TICKER ────────────────────────────────────────────────── */
.ticker {
  position: sticky; top: 0; z-index: 500;
  background: var(--red); height: 28px; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: flex; align-items: center; gap: 1.8rem;
  white-space: nowrap; height: 100%;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.15em; color: rgba(255,255,255,0.9); font-weight: 700;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-track .td { color: rgba(255,255,255,0.35); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── NAV ───────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 28px; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(8,7,6,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-img {
  height: 48px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.15);
}
.nav-logo-text {
  font-family: var(--font-disp);
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  color: var(--text-hi);
  line-height: 1;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em;
  color: var(--text-dim); transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-cta {
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em;
  color: var(--red-hi); border: 1px solid var(--border-red); padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--red); color: #fff; }

/* ── GLITCH TITLES ─────────────────────────────────────────── */
.glitch-title {
  position: relative;
  display: inline-block;
}
.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: inherit; font-size: inherit;
  font-weight: inherit; letter-spacing: inherit;
  line-height: inherit; pointer-events: none;
}
.glitch-title::before {
  color: var(--red);
  clip-path: inset(0 0 100% 0);
  animation: glitch-a-sm 8s var(--gd, 0s) infinite;
}
.glitch-title::after {
  color: var(--amber);
  clip-path: inset(0 0 100% 0);
  animation: glitch-b-sm 8s var(--gd, 0s) infinite;
}
@keyframes glitch-a-sm {
  0%, 94%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  95% { clip-path: inset(18% 0 55% 0); transform: translateX(-3px); }
  96% { clip-path: inset(62% 0 12% 0); transform: translateX( 3px); }
  97% { clip-path: inset(38% 0 40% 0); transform: translateX(-1px); }
  98% { clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-b-sm {
  0%, 94%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  95% { clip-path: inset(52% 0 15% 0); transform: translateX( 2px); }
  96% { clip-path: inset( 8% 0 70% 0); transform: translateX(-2px); }
  97% { clip-path: inset(78% 0  5% 0); transform: translateX( 1px); }
  98% { clip-path: inset(0 0 100% 0); }
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 120px 2.5rem 4rem; gap: 4rem; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(217,124,20,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,124,20,0.05) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, transparent 25%, var(--bg) 80%);
  pointer-events: none;
}
.hero-stamp {
  position: absolute; top: 120px; right: 2.5rem;
  font-size: 0.75rem; color: var(--red);
  opacity: 0.3; transform: rotate(14deg); pointer-events: none;
}

/* Phone */
.phone-zone {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1; max-width: 380px; justify-self: center;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--red);
  animation: ring-out 3s ease-out infinite;
}
.r1 { width: 110px; height: 110px; animation-delay: 0s;   border-color: rgba(204,34,0,0.8); }
.r2 { width: 180px; height: 180px; animation-delay: 0.7s; border-color: rgba(204,34,0,0.5); }
.r3 { width: 260px; height: 260px; animation-delay: 1.4s; border-color: rgba(204,34,0,0.25); }
.r4 { width: 340px; height: 340px; animation-delay: 2.1s; border-color: rgba(204,34,0,0.1); }
@keyframes ring-out {
  0%   { opacity: 0.9; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.05); }
}
.phone-core {
  position: relative; z-index: 2;
  width: 80px; height: 80px; background: var(--red); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; cursor: pointer; transition: transform 0.15s;
  animation: phone-glow 1.6s ease infinite;
}
.phone-core:hover { transform: scale(1.06); }
.phone-247 {
  font-family: var(--font-mono); font-size: 0.5rem;
  font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.85);
}
@keyframes phone-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(204,34,0,0.5), 0 0 60px rgba(204,34,0,0.2); }
  50%       { box-shadow: 0 0 50px rgba(204,34,0,0.8), 0 0 90px rgba(204,34,0,0.35); }
}

/* Hero text */
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: 0.75rem;
}
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(5rem, 11vw, 11rem);
  line-height: 0.88; letter-spacing: -0.01em;
  color: var(--text-hi); position: relative; display: inline-block; margin-bottom: 1.2rem;
}
.hero-title::before,
.hero-title::after {
  content: attr(data-text); position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; font-family: var(--font-disp); font-size: inherit; pointer-events: none;
}
.hero-title::before { color: var(--red); animation: glitch-a 7s infinite; clip-path: inset(0 0 100% 0); }
.hero-title::after  { color: var(--amber); animation: glitch-b 7s infinite; clip-path: inset(0 0 100% 0); }
@keyframes glitch-a {
  0%, 93%, 100% { clip-path: inset(0 0 100% 0); }
  94% { clip-path: inset(15% 0 60% 0); transform: translateX(-4px); }
  95% { clip-path: inset(65% 0 8%  0); transform: translateX( 4px); }
  96% { clip-path: inset(40% 0 35% 0); transform: translateX(-2px); }
  97% { clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-b {
  0%, 93%, 100% { clip-path: inset(0 0 100% 0); }
  94% { clip-path: inset(55% 0 12% 0); transform: translateX( 3px); }
  95% { clip-path: inset(8%  0 72% 0); transform: translateX(-3px); }
  96% { clip-path: inset(80% 0 5%  0); transform: translateX( 2px); }
  97% { clip-path: inset(0 0 100% 0); }
}
.hero-sub {
  font-family: var(--font-disp);
  font-size: clamp(1rem, 2vw, 1.7rem); letter-spacing: 0.07em;
  color: var(--text-dim); line-height: 1.3; margin-bottom: 2rem;
}
.hero-sub em { font-style: normal; color: var(--amber-hi); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── SERVICES ──────────────────────────────────────────────── */
#services { padding: 7rem 2.5rem; border-top: 1px solid var(--border); }
.services-intro {
  font-family: var(--font-disp); font-size: clamp(1.8rem, 4vw, 3.5rem);
  letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 3rem;
}
.ops-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.op-card {
  background: var(--bg2); padding: 2.2rem;
  position: relative; overflow: hidden; transition: background 0.25s;
}
.op-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 0; background: var(--red); transition: height 0.3s ease;
}
.op-card:hover { background: var(--bg3); }
.op-card:hover::before { height: 100%; }
.op-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.op-id    { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--red); }
.op-badge { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.15em; color: var(--text-dim); border: 1px solid var(--border); padding: 2px 6px; }
.op-icon  { color: var(--amber); opacity: 0.65; margin-bottom: 1.2rem; }
.op-card h3 { font-family: var(--font-disp); font-size: 1.7rem; line-height: 1; letter-spacing: 0.03em; color: var(--text-hi); margin-bottom: 0.9rem; }
.op-card p  { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--text); line-height: 1.65; margin-bottom: 1.5rem; }
.op-tags    { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.op-tags span { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em; color: var(--text-dim); border: 1px solid var(--border); padding: 2px 7px; }

/* ═══════════════════════════════════════════════════════════════
   MISSION FICHES
   ═══════════════════════════════════════════════════════════════ */
#missions {
  padding: 7rem 2.5rem;
  border-top: 1px solid var(--border);
}

.missions-title {
  font-family: var(--font-disp);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  letter-spacing: 0.03em;
  color: var(--text-dim);
  line-height: 0.95;
  margin-bottom: 3.5rem;
}
.missions-title em { font-style: normal; color: var(--amber-hi); }

.services-title {
  font-family: var(--font-disp);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  letter-spacing: 0.03em;
  color: var(--text-dim);
  line-height: 0.95;
  margin-bottom: 3rem;
}
.services-title em { font-style: normal; color: var(--amber-hi); }

.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* Card */
.mc {
  background: var(--bg2);
  display: flex; flex-direction: column;
  transition: background 0.2s;
}
.mc:hover { background: var(--bg3); }
.mc--wide { grid-column: 1 / -1; }

.mc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(144,112,80,0.04);
}
.mc-ref {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--amber);
}
.mc-badge {
  font-family: var(--font-mono);
  font-size: 0.52rem; font-weight: 700;
  letter-spacing: 0.2em; padding: 2px 8px;
}
.mc-badge.classified { border: 1px solid var(--red-dim); color: var(--red-hi); }
.mc-badge.eyes       { border: 1px solid var(--amber-dim); color: var(--amber-hi); }
.mc-badge.active-badge { border: 1px solid rgba(42,204,68,0.35); color: var(--green); }

.mc-body {
  padding: 1.4rem 1.6rem;
  flex: 1;
}
.mc-body p {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 400;
  color: var(--text); line-height: 1.65;
}
.mc-body strong {
  color: var(--text-hi); font-weight: 600;
}

/* Redacted bar */
.rx {
  display: inline-block;
  background: var(--text-dim);
  color: transparent;
  letter-spacing: 0;
  border-radius: 1px;
  user-select: none;
  font-size: 0.7em;
  vertical-align: middle;
}

.mc-footer {
  display: flex; align-items: center; gap: 1rem;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.mc-client {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.1em;
  color: var(--text-dim); flex: 1;
  display: flex; align-items: center; gap: 6px;
}
.mc-meta {
  font-family: var(--font-mono);
  font-size: 0.56rem; letter-spacing: 0.12em;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}
.mc-status {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; flex-shrink: 0;
}
.mc-status.ok     { color: var(--green); }
.mc-status.active { color: var(--green); }

/* ═══════════════════════════════════════════════════════════════
   FIELD ASSETS
   ═══════════════════════════════════════════════════════════════ */
#field-assets {
  padding: 7rem 2.5rem 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.fa-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.fa-title {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.88;
  color: var(--text-hi);
}
.fa-title em { font-style: normal; color: var(--amber-hi); }
.fa-sub {
  font-family: var(--font-body);
  font-size: 1.1rem; font-weight: 400;
  color: var(--text); line-height: 1.7;
  padding-top: 0.5rem;
}

.fa-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.fa-stat { text-align: center; }
.fa-stat-n {
  font-family: var(--font-disp);
  font-size: 3.5rem; line-height: 1;
  color: var(--text-hi); display: inline-block;
}
.fa-stat-u {
  font-family: var(--font-mono);
  font-size: 0.9rem; color: var(--amber-hi);
  vertical-align: bottom; padding-bottom: 6px;
  display: inline-block; margin-left: 2px;
}
.fa-stat-l {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.2em;
  color: var(--text-dim); margin-top: 5px;
}
.fa-stat-sep { color: var(--border); font-size: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════
   AVAILABLE PROFILES
   ═══════════════════════════════════════════════════════════════ */
#profiles {
  padding: 0 2.5rem 7rem;
  background: var(--bg2);
}

.profiles-win {
  border: 1px solid var(--amber-dim);
  background: rgba(8,7,6,0.98);
  box-shadow:
    0 0 50px rgba(217,124,20,0.05),
    inset 0 0 30px rgba(0,0,0,0.3);
}

.profiles-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid var(--amber-dim);
  background: rgba(217,124,20,0.03);
}
.profiles-ref {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--amber-dim);
}
.profiles-status {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--green);
  display: flex; align-items: center;
}

.profiles-body { padding: 1.8rem; }
.profiles-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 1.4rem;
}

.profiles-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* Profile item = tag + qty controls */
.profile-item {
  display: flex; align-items: center;
  border: 1px solid rgba(92,68,40,0.35);
  transition: border-color 0.2s;
}
.profile-item.active {
  border-color: var(--red);
}

.profile-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--text-dim);
  background: transparent; border: none;
  padding: 8px 14px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.profile-tag:hover { color: var(--amber); }
.profile-tag.active { color: #fff; background: var(--red); }

/* Quantity controls */
.profile-qty {
  display: none;
  align-items: center;
  border-left: 1px solid rgba(204,34,0,0.4);
}
.profile-qty.visible { display: flex; }

.qty-minus, .qty-plus {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--text-dim); background: transparent; border: none;
  padding: 6px 10px; cursor: pointer; line-height: 1;
  transition: color 0.15s;
}
.qty-minus:hover, .qty-plus:hover { color: var(--amber-hi); }
.qty-val {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--text-hi); min-width: 22px; text-align: center;
  padding: 0 2px;
}

.profiles-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 1rem;
  border-top: 1px solid var(--amber-dim);
  background: rgba(217,124,20,0.02);
  flex-wrap: wrap;
}
.profiles-selection {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--text-dim); flex: 1; line-height: 1.6;
}

.profiles-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn-profiles-request {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  color: #fff; background: var(--red); border: none;
  padding: 10px 20px; cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  white-space: nowrap;
}
.btn-profiles-request:hover:not(.disabled) { background: var(--red-hi); transform: translateY(-1px); }

.btn-profiles-email {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-dim); background: transparent;
  border: 1px solid rgba(92,68,40,0.4);
  padding: 10px 20px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-profiles-email:hover:not(.disabled) { color: var(--amber); border-color: var(--amber-dim); }

.btn-profiles-request.disabled,
.btn-profiles-email.disabled {
  opacity: 0.3; pointer-events: none; cursor: default;
}

/* Confirmation banner */
.profiles-confirm {
  display: flex; align-items: center; gap: 1rem;
  padding: 12px 16px;
  border-top: 1px solid rgba(42,204,68,0.3);
  background: rgba(42,204,68,0.05);
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--green);
}
.profiles-confirm.hidden { display: none; }
.confirm-icon { font-size: 1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
#contact {
  padding: 7rem 2.5rem;
  background: var(--bg2); border-top: 1px solid var(--border);
}
.contact-wrap {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 5rem; align-items: start;
}

/* Left */
.contact-title {
  font-family: var(--font-disp);
  font-size: clamp(3.5rem, 7vw, 7rem); line-height: 0.88;
  color: var(--text-hi); margin-bottom: 1.2rem;
}
.contact-sub {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 400;
  color: var(--text); line-height: 1.7; margin-bottom: 2rem;
}

/* WhatsApp button */
.wa-btn {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-red);
  background: rgba(204,34,0,0.06);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.wa-btn:hover { background: rgba(204,34,0,0.14); border-color: var(--red); }

.wa-phone-zone {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wa-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--red);
  animation: ring-out 2.5s ease-out infinite;
}
.wa-r1 { width: 36px; height: 36px; animation-delay: 0s;   border-color: rgba(204,34,0,0.7); }
.wa-r2 { width: 52px; height: 52px; animation-delay: 0.7s; border-color: rgba(204,34,0,0.3); }
.wa-phone-core {
  position: relative; z-index: 1; width: 28px; height: 28px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.wa-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wa-label    { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-hi); }
.wa-sublabel { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 2px; }
.wa-247 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--red-hi);
  border: 1px solid var(--border-red); padding: 5px 9px; flex-shrink: 0;
}
.enc-badge {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.16em; color: var(--text-dim);
}

/* ── DOSSIER FORM ──────────────────────────────────────────── */
.dossier-win {
  border: 1px solid var(--text-dim);
  background: rgba(13,11,9,0.98);
  box-shadow: inset 0 0 0 4px rgba(92,68,40,0.06), 0 0 40px rgba(0,0,0,0.4);
}

.dossier-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 2px solid var(--text-dim);
  background: rgba(92,68,40,0.07);
}
.doss-ref {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.15em; color: var(--text-dim);
}
.doss-stamps { display: flex; gap: 0.5rem; }
.doss-stamp-red {
  font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.22em; border: 2px solid var(--red-dim);
  color: var(--red-hi); padding: 3px 9px; opacity: 0.85;
}

#crisis-form { padding: 1.8rem 2rem; position: relative; }

/* Big watermark */
.doss-classified-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: var(--font-mono); font-weight: 700;
  font-size: 5.5rem; letter-spacing: 0.5em;
  color: rgba(204,34,0,0.04);
  pointer-events: none; white-space: nowrap; user-select: none; z-index: 0;
}

.doss-section-title {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.25em;
  color: var(--amber-dim);
  border-left: 3px solid var(--amber-dim);
  padding-left: 10px;
  margin-bottom: 1rem; margin-top: 1.4rem;
  position: relative; z-index: 1;
}
.doss-section-title:first-of-type { margin-top: 0; }

.doss-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(92,68,40,0.18);
  border: 1px solid rgba(92,68,40,0.2);
  margin-bottom: 1px; position: relative; z-index: 1;
}
.doss-field {
  background: var(--bg2); padding: 1rem 1.2rem;
  transition: background 0.2s;
}
.doss-field:focus-within { background: var(--bg3); }

.doss-field--full {
  background: var(--bg2);
  border: 1px solid rgba(92,68,40,0.2);
  padding: 1rem 1.2rem;
  position: relative; z-index: 1;
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}
.doss-field--full:focus-within { background: var(--bg3); }

.doss-field-id {
  font-family: var(--font-mono); font-size: 0.5rem;
  letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 4px;
}
.doss-field label {
  display: block; font-family: var(--font-mono);
  font-size: 0.57rem; letter-spacing: 0.18em;
  color: var(--amber-dim); margin-bottom: 6px;
}
.doss-field input,
.doss-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(92,68,40,0.35);
  color: var(--text-hi); font-family: var(--font-mono);
  font-size: 0.76rem; padding: 4px 0; outline: none;
  caret-color: var(--amber-hi); transition: border-color 0.2s;
}
.doss-field input:focus,
.doss-field textarea:focus   { border-bottom-color: var(--amber-dim); }
.doss-field input::placeholder,
.doss-field textarea::placeholder { color: var(--text-dim); opacity: 0.45; }
.doss-field input.invalid { border-bottom-color: var(--red-dim); }
.doss-field textarea { resize: none; line-height: 1.7; }

/* Footer of form */
.doss-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.doss-clearance-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.doss-clearance-label {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.2em; color: var(--text-dim);
}
.doss-levels { display: flex; gap: 2px; }
.doss-level {
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.12em;
  color: var(--text-dim); background: transparent;
  border: 1px solid rgba(92,68,40,0.3); padding: 5px 10px; cursor: pointer;
  transition: all 0.2s;
}
.doss-level:hover { color: var(--amber); border-color: var(--amber-dim); }
.doss-level.active { color: var(--red-hi); border-color: var(--red-dim); background: rgba(204,34,0,0.07); }

.doss-submit-wrap { display: flex; align-items: center; gap: 1rem; }
.form-notice {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; color: var(--text-dim); white-space: nowrap;
}
.form-notice.success { color: var(--green); }
.form-notice.error   { color: var(--red-hi); }

.btn-doss-submit {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.14em;
  color: #fff; background: var(--red); border: none;
  padding: 12px 24px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.btn-doss-submit:hover { background: var(--red-hi); transform: translateY(-1px); }

.dossier-footer-bar {
  display: flex; justify-content: space-between;
  padding: 8px 20px; border-top: 2px solid var(--text-dim);
  background: rgba(92,68,40,0.05);
  font-family: var(--font-mono); font-size: 0.52rem;
  letter-spacing: 0.14em; color: rgba(92,68,40,0.55);
}

/* ── ACTIVATION DIVISION ───────────────────────────────────── */
#activation {
  padding: 6rem 2.5rem 5rem;
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border);
}

.act-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* — Manifesto side — */
.act-title {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-hi);
  margin-bottom: 1.6rem;
}
.act-title em { color: var(--amber-hi); font-style: normal; }

.act-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.act-sub-em {
  display: block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.act-cta { display: inline-flex; align-items: center; }

/* — Asset manifest — */
.act-manifest {
  border: 1px solid var(--border-red);
  background: rgba(204,34,0,0.03);
  position: relative;
}

.act-manifest-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--border-red);
  background: rgba(204,34,0,0.06);
}
.act-manifest-ref {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; color: var(--text-dim);
}
.act-manifest-stamp {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.2em; color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 0.1rem 0.5rem;
}

.act-manifest-list {
  list-style: none;
  padding: 1rem 0;
}
.act-manifest-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid rgba(184,144,96,0.05);
  transition: background 0.2s;
}
.act-manifest-list li:last-child { border-bottom: none; }
.act-manifest-list li:hover { background: rgba(217,124,20,0.04); }

.act-dep {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.1em; color: var(--green);
  white-space: nowrap; flex-shrink: 0;
}
.act-cap {
  font-family: var(--font-body); font-size: 1rem;
  font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-hi);
  text-transform: uppercase;
}

.act-manifest-footer {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-top: 1px solid var(--border-red);
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.14em; color: var(--text-dim);
}

/* — Activation fiches — */
.act-fiches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.act-fiche {
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: border-color 0.25s;
}
.act-fiche:hover { border-color: rgba(217,124,20,0.4); }

.act-fiche-header {
  display: flex; align-items: center; justify-content: space-between;
}
.act-fiche-ref {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.12em; color: var(--text-dim);
}

.act-fiche-scope {
  font-family: var(--font-disp); font-size: 1.35rem;
  letter-spacing: 0.1em; color: var(--amber-hi);
  border-bottom: 1px solid rgba(217,124,20,0.2);
  padding-bottom: 0.7rem;
}

.act-fiche-body p {
  font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 400; line-height: 1.6;
  color: var(--text);
}
.act-fiche-body strong { color: var(--text-hi); font-weight: 600; }

.act-fiche-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.act-fiche-tags span {
  font-family: var(--font-mono); font-size: 0.5rem;
  letter-spacing: 0.14em; padding: 0.15rem 0.45rem;
  border: 1px solid rgba(184,144,96,0.15);
  color: var(--text-dim);
}

/* ── FORUM ─────────────────────────────────────────────────── */
#forum {
  padding: 6rem 2.5rem 7rem;
  border-top: 1px solid var(--border);
}

.forum-wrap {
  display: flex;
  justify-content: center;
}

.forum-terminal {
  width: min(680px, 100%);
  border: 1px solid var(--amber-dim);
  background: rgba(8,7,6,0.98);
  box-shadow: 0 0 50px rgba(217,124,20,0.05), inset 0 0 30px rgba(0,0,0,0.3);
}

.forum-terminal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid var(--amber-dim);
  background: rgba(217,124,20,0.03);
}
.forum-ref {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; color: var(--amber-dim);
}
.forum-offline {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.18em; color: var(--red-hi);
  border: 1px solid var(--border-red); padding: 2px 8px;
}

.forum-body {
  padding: 3.5rem 2.5rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1.2rem;
}

.forum-icon {
  color: var(--amber-dim);
  margin-bottom: 0.5rem;
}

.forum-title {
  font-family: var(--font-disp);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: 0.08em;
  color: var(--text-hi);
}

.forum-sub {
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 400;
  color: var(--text); line-height: 1.6;
  max-width: 440px;
}

.forum-soon-block {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
  margin: 0.6rem 0;
}
.forum-soon-label {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.18em; color: var(--text-dim);
}
.forum-soon-badge {
  font-family: var(--font-mono); font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.3em;
  color: var(--amber-hi);
  border: 1px solid var(--amber-dim);
  padding: 6px 20px;
  animation: forum-pulse 2.4s ease infinite;
}
@keyframes forum-pulse {
  0%, 100% { opacity: 1; border-color: var(--amber-dim); }
  50%       { opacity: 0.65; border-color: rgba(107,62,8,0.3); }
}

.forum-desc {
  font-family: var(--font-mono); font-size: 0.63rem;
  letter-spacing: 0.1em; color: var(--text-dim);
  max-width: 400px; line-height: 1.8;
}

.forum-blink-row {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 0.4rem;
}
.forum-blink-txt {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.14em; color: var(--text-dim);
}

.forum-terminal-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--amber-dim);
  background: rgba(217,124,20,0.02);
  font-family: var(--font-mono); font-size: 0.5rem;
  letter-spacing: 0.14em; color: var(--text-dim);
  text-align: center;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 3rem 2.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem; text-align: center;
}
.footer-logo  { font-family: var(--font-disp); font-size: 2rem; letter-spacing: 0.12em; color: var(--text-dim); }
.footer-sub   { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-dim); }
.footer-class { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em; color: rgba(184,144,96,0.18); margin-top: 0.3rem; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
  .act-fiches { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .phone-zone { max-width: 260px; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stamp { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .doss-grid { grid-template-columns: 1fr; }
  .doss-footer { flex-direction: column; align-items: flex-start; }
  .fa-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .fa-stats { gap: 1.5rem; }
  .fa-stat-sep { display: none; }
  .missions-grid { grid-template-columns: 1fr; }
  .mc--wide { grid-column: 1; }
  .act-top { grid-template-columns: 1fr; gap: 3rem; }
  .act-fiches { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* Nav */
  #nav { padding: 0 1.2rem; }
  .nav-links { display: none; }

  /* Sections padding */
  #hero, #contact, #services, #missions, #activation, #forum {
    padding-left: 1.2rem; padding-right: 1.2rem;
  }
  #field-assets {
    padding-left: 1.2rem; padding-right: 1.2rem;
    padding-top: 4rem; padding-bottom: 2.5rem;
  }
  #profiles { padding-left: 1.2rem; padding-right: 1.2rem; }

  /* Form */
  #crisis-form { padding: 1.2rem; }
  .doss-clearance-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .doss-levels { flex-wrap: wrap; }
  .doss-submit-wrap { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .btn-doss-submit { width: 100%; justify-content: center; }

  /* Service grid */
  .ops-grid { grid-template-columns: 1fr; }

  /* Profiles widget */
  .profiles-body { padding: 1.2rem; }
  .profiles-footer { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .profiles-actions { width: 100%; }
  .btn-profiles-request, .btn-profiles-email { flex: 1; justify-content: center; }
  .profile-tag { font-size: 0.55rem; padding: 7px 10px; }

  /* Stats */
  .fa-stats { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .fa-stat-n { font-size: 2.8rem; }

  /* Mission fiches footer */
  .mc-footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .mc-meta { border-left: none; padding-left: 0; }
  .mc-status { margin-left: 0; }

  /* Activation */
  #activation { padding-left: 1.2rem; padding-right: 1.2rem; }
  .act-fiche-tags { display: none; }

  /* Forum */
  .forum-body { padding: 2.5rem 1.2rem; }
  .forum-soon-block { flex-direction: column; gap: 0.6rem; }
  .forum-blink-txt { font-size: 0.52rem; }

  /* Contact left */
  .contact-left { order: 2; }
  .contact-right { order: 1; }
}
