/* ============================================================
   GOVSEC DESIGN SYSTEM — IBM Plex, dark navy, sharp corners.
   Government security / enterprise dark. No gradients. No flash.
   Layered ON TOP of main.css and overrides where needed.
   Class names retained from earlier "cine-*" API for compatibility.
   ============================================================ */

:root {
  /* ----------------------------------------------------------
     SOVEREIGN DARK PALETTE — refined, intentional, expensive
     Two accents only: purple (signature) + cyan (precision)
     ---------------------------------------------------------- */

  /* Surface hierarchy — deep navy → near-black */
  --surface-0: #05070F;
  --surface-1: #0B1220;
  --surface-2: #0F1A2F;
  --surface-3: #15233D;

  /* Text */
  --text-primary: #E6E9F2;
  --text-secondary: #9AA4BF;
  --text-muted: #6B7390;
  --text-disabled: #474D63;

  /* Sovereign accents — used SPARINGLY and INTENTIONALLY */
  --sovereign-purple: #6C5CE7;             /* signature — sovereign, buttons, active */
  --sovereign-purple-deep: #5848C7;        /* hover */
  --sovereign-purple-soft: rgba(108, 92, 231, 0.12);
  --sovereign-purple-edge: rgba(108, 92, 231, 0.32);

  --sovereign-cyan: #00D4FF;               /* precision — supporting only */
  --sovereign-cyan-soft: rgba(0, 212, 255, 0.10);
  --sovereign-cyan-edge: rgba(0, 212, 255, 0.28);

  /* Legacy alias map → routed to sovereign palette */
  --accent-primary: var(--sovereign-purple);
  --accent-primary-hover: var(--sovereign-purple-deep);
  --accent-secondary: var(--sovereign-purple);
  --accent-governance: var(--sovereign-purple);

  /* Status (CoreGuard verdicts) — kept, used only on verdict UI */
  --accent-safe: #16A34A;
  --status-allow: #22c55e;
  --status-allow-glow: rgba(34, 197, 94, 0.5);

  --accent-warning: #D97706;
  --status-modify: #f59e0b;
  --status-modify-glow: rgba(245, 158, 11, 0.5);

  --accent-alert: #DC2626;
  --status-block: #ef4444;
  --status-block-glow: rgba(239, 68, 68, 0.5);

  /* Borders — hairline, controlled */
  --border-default: rgba(230, 233, 242, 0.06);
  --border-hover: rgba(230, 233, 242, 0.12);
  --border-strong: rgba(230, 233, 242, 0.20);

  /* Fonts */
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'IBM Plex Sans', 'Inter', -apple-system, system-ui, sans-serif;

  /* Sharp corners */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 6px;

  /* Motion */
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--surface-0);
}
body {
  background-color: var(--surface-0) !important;
  /* Layered depth: 3-stop subtle gradient over the base */
  background-image:
    radial-gradient(ellipse 110% 90% at 50% 0%, #0B1220 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 100%, #0A1A2F 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-0) 0%, var(--surface-0) 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: 'tnum' on, 'lnum' on, 'cv11' on;
}

/* Override main.css gradient h1/h2 — solid white only */
h1, h2, h3, h4, h5, h6 {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: initial !important;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   ATMOSPHERIC LAYERS — minimal, technical
   ------------------------------------------------------------ */

.cine-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(230, 233, 242, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 233, 242, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  opacity: 0.5;
}

.cine-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* hide legacy aurora ribbons */
.aurora-layer { opacity: 0 !important; pointer-events: none; }

/* z-stacking */
nav, main, footer, .container, section, .nav, .page-loader, .back-to-top { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */

.cine-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Eyebrow uses cyan (precision/support) — NOT purple, to keep purple ownable */
  color: var(--sovereign-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.cine-eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--sovereign-cyan);
  opacity: 0.55;
}

.cine-display,
.cine-display-sans {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}
/* Purple anchored to <em> (the "sovereign" word) — its primary signature use */
.cine-display em,
.cine-display-sans em {
  font-style: normal;
  font-weight: 600;
  color: var(--sovereign-purple);
}
.cine-display em::before { content: ''; }

.cine-section-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 1rem;
}
.cine-section-label em {
  font-style: normal;
  color: var(--sovereign-purple);
}

.cine-lede {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.15vw, 1.075rem);
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 64ch;
}

.cine-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-weight: 400;
}
.cine-mono.cine-text-bright { color: var(--text-primary); }

/* ------------------------------------------------------------
   SCROLL REVEAL — subtle, fast
   ------------------------------------------------------------ */

.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-up      { transform: translate3d(0, 20px, 0); }
.reveal-left    { transform: translate3d(-20px, 0, 0); }
.reveal-right   { transform: translate3d(20px, 0, 0); }
.reveal-scale   { transform: scale(0.97); }
.reveal-blur    { filter: blur(6px); transform: translate3d(0, 12px, 0); }
.reveal.is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-blur.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ------------------------------------------------------------
   HERO — clean technical, no orb, no radial mesh
   ------------------------------------------------------------ */

.cine-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.cine-hero::before { display: none; }
.cine-hero-orb { display: none; }
.cine-hero-inner { position: relative; z-index: 1; width: 100%; }

/* ------------------------------------------------------------
   PANELS — solid surface, sharp corners, hairline border
   ------------------------------------------------------------ */

.cine-panel,
.cine-panel-glow {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: clamp(1.25rem, 2.25vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease-quick), background 0.25s var(--ease-quick);
}
.cine-panel:hover,
.cine-panel-glow:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.cine-panel::before { display: none; }
.cine-panel-glow::after { display: none; }

/* Status-bordered panel variants — for CoreGuard-style verdict cards */
.cine-panel-allow  { border-color: rgba(34, 197, 94, 0.35); }
.cine-panel-allow:hover  { border-color: var(--status-allow); box-shadow: 0 0 0 1px rgba(34,197,94,0.18); }
.cine-panel-modify { border-color: rgba(245, 158, 11, 0.35); }
.cine-panel-modify:hover { border-color: var(--status-modify); box-shadow: 0 0 0 1px rgba(245,158,11,0.18); }
.cine-panel-block  { border-color: rgba(239, 68, 68, 0.35); }
.cine-panel-block:hover  { border-color: var(--status-block); box-shadow: 0 0 0 1px rgba(239,68,68,0.18); }

/* ------------------------------------------------------------
   BUTTONS — sharp, technical, IBM Plex Mono
   ------------------------------------------------------------ */

.cine-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: var(--r-2);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s var(--ease-quick), border-color 0.2s var(--ease-quick), color 0.2s var(--ease-quick);
  overflow: hidden;
  white-space: nowrap;
  background: none;
}
.cine-btn::after { display: none; }

/* PRIMARY — solid purple, the signature CTA. Subtle directional glow on hover only. */
.cine-btn-primary {
  color: #ffffff;
  background: var(--sovereign-purple);
  border-color: var(--sovereign-purple);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.cine-btn-primary:hover {
  background: var(--sovereign-purple-deep);
  border-color: var(--sovereign-purple-deep);
  box-shadow: 0 8px 24px -8px rgba(108, 92, 231, 0.55), 0 1px 0 rgba(255,255,255,0.10) inset;
}

/* GHOST — outline only, secondary action. */
.cine-btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border-color: var(--border-hover);
}
.cine-btn-ghost:hover {
  background: rgba(108, 92, 231, 0.06);
  border-color: var(--sovereign-purple-edge);
  color: #ffffff;
}

/* NEON variant retained as alias for purple-bordered glass — same family. */
.cine-btn-neon {
  color: #ffffff;
  background: var(--sovereign-purple-soft);
  border-color: var(--sovereign-purple-edge);
}
.cine-btn-neon:hover {
  background: var(--sovereign-purple);
  border-color: var(--sovereign-purple);
  box-shadow: 0 8px 24px -8px rgba(108, 92, 231, 0.50);
}

.cine-btn .arrow {
  font-size: 0.75rem;
  opacity: 0.85;
  transition: transform 0.2s var(--ease-quick);
}
.cine-btn:hover .arrow { transform: translateX(2px); }

/* ------------------------------------------------------------
   METRICS — IBM Plex Mono tabular numerals
   ------------------------------------------------------------ */

.cine-metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}
.cine-metric-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* ------------------------------------------------------------
   DIVIDERS / SECTIONS
   ------------------------------------------------------------ */

.cine-divider {
  height: 1px;
  background: var(--border-default);
  margin: clamp(2.5rem, 5vh, 4rem) auto;
  max-width: 100%;
}

.cine-section { padding: clamp(3.5rem, 8vh, 6rem) 0; position: relative; }
.cine-section-tight { padding: clamp(2.5rem, 5vh, 4rem) 0; }

/* ------------------------------------------------------------
   BAND — full-width subtle separator section
   ------------------------------------------------------------ */

.cine-band {
  position: relative;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2.5rem, 6vh, 4.5rem) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-1);
  text-align: center;
  overflow: hidden;
}
.cine-band::before, .cine-band::after { display: none; }

/* ------------------------------------------------------------
   MARQUEE — technical, smaller, mono
   ------------------------------------------------------------ */

.cine-marquee {
  display: flex;
  gap: 3rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  color: var(--text-muted);
  -webkit-text-stroke: 0;
  opacity: 0.55;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   FEATURE CARD
   ------------------------------------------------------------ */

.cine-feature {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--r-2);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-quick), background 0.25s var(--ease-quick);
}
.cine-feature::before { display: none; }
.cine-feature:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.cine-feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  display: flex; align-items: center; justify-content: center;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.20);
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--sovereign-purple);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cine-feature:hover .cine-feature-icon {
  background: rgba(108, 92, 231, 0.16);
  border-color: var(--sovereign-purple-edge);
  color: var(--text-primary);
}
.cine-feature h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.cine-feature p {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ------------------------------------------------------------
   PORTRAIT — sharp 1px ring, no rotating gradient
   ------------------------------------------------------------ */

.cine-portrait {
  position: relative;
  width: clamp(220px, 28vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 4px var(--surface-1);
}
.cine-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(0.95);
}
.cine-portrait::before, .cine-portrait::after { display: none; }

/* ------------------------------------------------------------
   TAGS
   ------------------------------------------------------------ */

/* TAGS — only two flavors: neutral (default) and accent (cyan-edge for emphasis).
   Legacy variants (-cyan, -amber, -pink) retained for compatibility but routed
   through neutral/cyan to kill the rainbow. */
.cine-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(154, 164, 191, 0.06);
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  transition: background 0.2s var(--ease-quick), border-color 0.2s var(--ease-quick), color 0.2s var(--ease-quick);
}
.cine-tag:hover {
  background: rgba(154, 164, 191, 0.10);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
/* Legacy aliases all route to the same neutral tag — uniform, intentional */
.cine-tag-cyan,
.cine-tag-amber,
.cine-tag-pink {
  background: var(--sovereign-cyan-soft);
  border-color: var(--sovereign-cyan-edge);
  color: var(--sovereign-cyan);
}
.cine-tag-cyan:hover,
.cine-tag-amber:hover,
.cine-tag-pink:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--sovereign-cyan);
  color: var(--sovereign-cyan);
}

.cine-tag-allow {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.30);
  color: var(--status-allow);
}
.cine-tag-modify {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.30);
  color: var(--status-modify);
}
.cine-tag-block {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.30);
  color: var(--status-block);
}

/* ------------------------------------------------------------
   GRID LAYOUTS
   ------------------------------------------------------------ */

.cine-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.cine-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.cine-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.cine-grid-asym { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }

@media (max-width: 1024px) {
  .cine-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cine-grid-asym { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cine-grid-2, .cine-grid-3 { grid-template-columns: 1fr; }
  .cine-hero { min-height: auto; padding: 6rem 0 3rem; }
}

/* ------------------------------------------------------------
   SCROLL CUE — subtle
   ------------------------------------------------------------ */

.cine-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.55;
}
.cine-scroll-cue::after {
  content: '';
  width: 1px; height: 32px;
  background: var(--text-muted);
  animation: scrollCueDrop 2.4s var(--ease-out) infinite;
}
@keyframes scrollCueDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ------------------------------------------------------------
   LINK — sharp underline reveal
   ------------------------------------------------------------ */

.cine-link {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-quick), border-color 0.2s var(--ease-quick);
}
.cine-link:hover { color: var(--sovereign-purple); border-color: var(--sovereign-purple); }

/* ------------------------------------------------------------
   PULL QUOTE
   ------------------------------------------------------------ */

.cine-pullquote {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.25vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 50ch;
  margin: 0 auto;
  position: relative;
}
.cine-pullquote::before {
  content: '//';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--sovereign-cyan);
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

/* ------------------------------------------------------------
   STATUS BADGE — for CoreGuard verdicts (ALLOW / MODIFY / BLOCK)
   ------------------------------------------------------------ */

.cine-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cine-verdict::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.cine-verdict-allow {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--status-allow);
}
.cine-verdict-allow::before { background: var(--status-allow); box-shadow: 0 0 8px var(--status-allow-glow); }

.cine-verdict-modify {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--status-modify);
}
.cine-verdict-modify::before { background: var(--status-modify); box-shadow: 0 0 8px var(--status-modify-glow); }

.cine-verdict-block {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--status-block);
}
.cine-verdict-block::before { background: var(--status-block); box-shadow: 0 0 8px var(--status-block-glow); }

/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */

.cine-flex { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.cine-flex-col { display: flex; flex-direction: column; gap: 0.75rem; }
.cine-center { text-align: center; }
.cine-narrow { max-width: 720px; margin: 0 auto; }
.cine-wide { max-width: 1280px; margin: 0 auto; }
.cine-mb-sm { margin-bottom: 0.75rem; }
.cine-mb-md { margin-bottom: 1.5rem; }
.cine-mb-lg { margin-bottom: 3rem; }
.cine-mt-md { margin-top: 1.5rem; }
.cine-mt-lg { margin-top: 3rem; }
.cine-text-muted { color: var(--text-muted); }
.cine-text-bright { color: var(--text-primary); }

/* drop legacy glow utilities (no flashiness) */
.cine-glow-violet, .cine-glow-cyan { text-shadow: none; }

/* ------------------------------------------------------------
   GLOBAL OVERRIDES — nav, footer, page-loader use new system
   ------------------------------------------------------------ */

/* ============================================================
   NAV — Sovereign Dark, refined
   ============================================================ */
.nav {
  background: rgba(5, 7, 15, 0.82) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--border-default);
  position: sticky; top: 0; z-index: 100;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo block: icon + two-line title */
.nav-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .logo-icon { display: inline-flex; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-logo-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nav-logo-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sovereign-cyan);
  opacity: 0.75;
  margin-top: 2px;
}

/* Link bar */
.nav-links {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links > li { display: inline-flex; }

.nav-link {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-decoration: none;
  padding: 0.55rem 0.9rem !important;
  border-radius: var(--r-2);
  border: 1px solid transparent !important;
  background: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text-primary) !important; background: rgba(230, 233, 242, 0.04) !important; }
.nav-link.active {
  color: var(--sovereign-purple) !important;
  background: rgba(108, 92, 231, 0.08) !important;
}

/* Resume = ghost button. Schedule a call = solid purple CTA. */
.nav-cta-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-default);
}
.nav-resume {
  border: 1px solid var(--border-hover) !important;
  border-radius: var(--r-2) !important;
  color: var(--text-primary) !important;
}
.nav-resume:hover {
  border-color: var(--sovereign-purple-edge) !important;
  background: rgba(108, 92, 231, 0.08) !important;
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  background: var(--sovereign-purple);
  border: 1px solid var(--sovereign-purple);
  border-radius: var(--r-2);
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  background: var(--sovereign-purple-deep);
  border-color: var(--sovereign-purple-deep);
  box-shadow: 0 6px 18px -6px rgba(108, 92, 231, 0.55);
}

/* DROPDOWN — multi-column, mono-style sections */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { background: none; border: none; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 620px;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  list-style: none;
  margin: 0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-section { display: flex; flex-direction: column; gap: 0.25rem; }
.dropdown-section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sovereign-cyan);
  opacity: 0.75;
  margin-bottom: 0.5rem;
}
.dropdown-link {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-2);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.dropdown-link:hover {
  background: rgba(108, 92, 231, 0.07);
  border-color: var(--sovereign-purple-edge);
}
.dropdown-link-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.dropdown-link-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-2);
  width: 38px; height: 38px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-logo-role { display: none; }
  .nav-links { gap: 0; }
  .nav-link { padding: 0.5rem 0.65rem !important; font-size: 0.72rem !important; }
  .dropdown-menu { min-width: 480px; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 100%; left: 0; right: 0;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border-default);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    margin: 0;
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease-quick);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { width: 100%; padding: 0.85rem 1rem !important; font-size: 0.85rem !important; }
  .nav-cta-wrap {
    flex-direction: column;
    align-items: stretch;
    border-left: none;
    border-top: 1px solid var(--border-default);
    margin: 0.5rem 0 0;
    padding: 0.75rem 0 0;
    gap: 0.5rem;
  }
  .nav-cta { width: 100%; justify-content: center; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    grid-template-columns: 1fr;
    box-shadow: none;
    background: rgba(15, 26, 47, 0.5);
    padding: 0.75rem;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: grid; }
}

/* Footer */
footer {
  background: var(--surface-0) !important;
  border-top: 1px solid var(--border-default);
}
footer h3, footer h4 {
  font-family: var(--font-mono) !important;
  letter-spacing: -0.005em;
  background: none !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
}
footer a { font-family: var(--font-sans) !important; transition: color 0.2s ease; }
footer a:hover { color: var(--sovereign-purple) !important; }
footer input[type="email"] {
  border-radius: var(--r-2) !important;
  background: var(--surface-1) !important;
  border-color: var(--border-default) !important;
  font-family: var(--font-sans) !important;
  color: var(--text-primary) !important;
}
footer input[type="email"]:focus {
  border-color: var(--sovereign-purple-edge) !important;
  outline: none !important;
}
footer button[type="submit"] {
  border-radius: var(--r-2) !important;
  background: var(--sovereign-purple) !important;
  border: 1px solid var(--sovereign-purple) !important;
  transition: background 0.2s ease;
}
footer button[type="submit"]:hover {
  background: var(--sovereign-purple-deep) !important;
}

/* Page loader — neutralize gradient hex */
.page-loader { background: var(--surface-0) !important; }
.loader-text {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
}

/* Back to top */
.back-to-top {
  background: var(--surface-1) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--r-2) !important;
  color: var(--text-secondary) !important;
}
.back-to-top:hover { border-color: var(--border-hover) !important; color: var(--text-primary) !important; }

/* Reduce hero text shadows leaked from main.css */
.cine-display, .cine-section-label, .cine-metric { text-shadow: none !important; }

/* Buttons inherited from main.css — neutralize */
.btn-primary, .btn-secondary, .btn {
  border-radius: var(--r-2) !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}
