/* === ROOT / GLOBAL === */

:root {
  --bg-main: #040713;
  --bg-card: rgba(7, 12, 32, 0.96);
  --bg-card-soft: rgba(10, 18, 46, 0.9);
  --accent-teal: #3ff4fb;
  --accent-magenta: #ff3acb;
  --accent-gold: #ffb347;
  --accent-soft: #6ea4ff;
  --text-main: #f5f7ff;
  --text-soft: #bbc3ff;
  --text-muted: #6a7197;
  --border-soft: rgba(119, 142, 255, 0.25);
  --radius-card: 22px;
  --shadow-card: 0 26px 60px rgba(0, 0, 0, 0.65);
  --nav-height: 72px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text-main);
  background: radial-gradient(circle at top, #08162c 0, #030510 40%, #000 85%);
}

/* === LAYOUT === */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding: 96px 0 72px;
}

/* === HEADER / NAV === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(28px);
  background: linear-gradient(
      to bottom,
      rgba(4, 7, 19, 0.98),
      rgba(4, 7, 19, 0.9)
    )
    border-box;
  border-bottom: 1px solid rgba(118, 127, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    var(--accent-teal),
    var(--accent-magenta)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 12px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.nav-link:hover {
  border-color: rgba(111, 141, 255, 0.55);
  color: #ffffff;
}

.nav-link.active {
  border-color: rgba(111, 141, 255, 0.9);
  background: radial-gradient(circle at top left, #1e3163, #050916);
  color: #ffffff;
}

/* === HERO (HOME) === */

.page-home main {
  padding-top: 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(63, 244, 251, 0.25), transparent),
    radial-gradient(circle at bottom right, rgba(255, 58, 203, 0.35), transparent),
    linear-gradient(to bottom, rgba(1, 2, 8, 0.1), #02030a);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

.hero-title {
  max-width: 640px;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  max-width: 520px;
  font-size: 15px;
  color: rgba(235, 241, 255, 0.9);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  background: transparent;
  color: #fff;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb347, #ff3acb);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: rgba(151, 165, 255, 0.7);
  color: var(--text-soft);
  background: rgba(2, 6, 25, 0.6);
}

.btn-ghost:hover {
  background: rgba(10, 17, 54, 0.9);
}

/* Tease section */

.tease-section {
  margin-top: -40px;
}

.tease-line {
  font-size: 13px;
  color: var(--text-soft);
}

.tease-line.soft {
  color: var(--text-muted);
}

.tease-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(143, 163, 255, 0.8);
  background: radial-gradient(circle at top, #1a2349, #050714);
}

/* === CARDS / GENERAL === */

.card {
  margin-top: 32px;
  padding: 24px 20px 22px;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at top, #151f41, #050713);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.archive-card {
  margin-top: 32px;
}

.section-title {
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 6px 0 12px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* === HIDDEN MESSAGE BLOCK === */

.code-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.code-word {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.code-letter {
  color: var(--accent-teal);
  text-shadow: 0 0 12px rgba(63, 244, 251, 0.75);
}

/* === FILES === */

.file-card {
  margin-top: 26px;
  background: radial-gradient(circle at top left, #181f47, #050714);
}

.file-title {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(137, 157, 255, 0.35);
  padding-bottom: 8px;
}

.file-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(85, 114, 255, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
  background: #000;
}

.file-video {
  display: block;
  width: 100%;
  height: auto;
}

.file-copy p {
  margin: 6px 0;
}

/* === HOLOGRAM SECTION === */

.holo-card {
  margin-top: 34px;
  background: radial-gradient(circle at top, #071c2f, #050713 55%, #010108);
}

.holo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.holo-video-wrap {
  margin-top: 4px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(61, 229, 255, 0.7);
  background: radial-gradient(circle at top, #02172b, #000);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.holo-video {
  width: 100%;
  display: block;
}

.holo-footer {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* === BIOS & END === */

.suspects-card {
  margin-top: 32px;
}

.bio h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bio p {
  margin: 0;
}

.end-card {
  margin-top: 28px;
  text-align: left;
}

.end-transmission {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ff6b88;
  margin-bottom: 6px;
}

.end-card .footnote {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}

/* === FOOTER === */

.site-footer {
  border-top: 1px solid rgba(111, 141, 255, 0.35);
  padding: 14px 18px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: radial-gradient(circle at top, #050a17, #000);
}

/* === RESPONSIVE === */

@media (min-width: 720px) {
  .hero-title {
    font-size: 34px;
  }

  .file-layout {
    flex-direction: row;
  }

  .file-media {
    flex: 0 0 46%;
  }

  .file-copy {
    flex: 1;
  }

  .holo-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
/* === HIGH COUNCIL PANEL & MODAL === */

.high-council-shell {
  margin-top: 32px;
  position: relative;
}

.hc-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.high-council-card {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at top left, #1b2743 0%, #050714 70%);
  box-shadow: 0 0 28px rgba(0, 255, 204, 0.16);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.card-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 255, 204, 0.85);
}

.card-title {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.card-body {
  font-size: 14px;
  color: var(--text-soft);
}

.classified-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 76, 76, 0.8);
  color: #ff6b6b;
}

.status-note {
  opacity: 0.8;
}

.btn-classified {
  width: 100%;
  margin-top: 4px;
  border-color: rgba(0, 255, 204, 0.75);
  color: var(--accent-teal);
}

/* Footnote under HC card */
.classified-footnote {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Modal */

.hc-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(3, 255, 213, 0.08), #02030a);
  backdrop-filter: blur(10px);
  z-index: 999;
}

.hc-modal-overlay {
  position: absolute;
  inset: 0;
}

.hc-modal-panel {
  position: relative;
  width: min(420px, 90vw);
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #141f35 0%, #050812 70%);
  border: 1px solid rgba(0, 255, 200, 0.4);
  box-shadow: 0 0 40px rgba(0, 255, 200, 0.2);
  z-index: 1;
}

.hc-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.modal-kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 255, 200, 0.9);
  margin-bottom: 4px;
}

.modal-title {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-soft);
  margin: 6px 0;
}

.modal-footnote {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(249, 228, 107, 0.9);
}

/* show modal when checkbox is checked */
.high-council-shell .hc-toggle:checked ~ .hc-modal-backdrop {
  display: flex;
}

/* === STRAINS CARD === */

.strains-card {
  margin-top: 26px;
  background: radial-gradient(circle at top, #22183f, #050714 65%);
  border-color: rgba(255, 216, 87, 0.45);
  box-shadow: 0 0 32px rgba(255, 216, 87, 0.18);
}
/* ============================================================
   HOLOGRAPHIC HIGHLIGHTS • SECRET LETTER GLOWS • CHARACTER BIOS
   ============================================================ */

/* === Hidden-letter glow for secret message === */
.hidden-letter {
  font-weight: 700;
}

.hidden-letter--cyan {
  color: #3ff4fb;
  text-shadow: 0 0 7px rgba(63, 244, 251, 0.9);
}

.hidden-letter--yellow {
  color: #f9f871;
  text-shadow: 0 0 7px rgba(249, 248, 113, 0.85);
}

/* === Project MF Chedda highlight === */
.project-mf {
  font-weight: 700;
  background: linear-gradient(90deg, #f9f871, #ff9cf7, #3ff4fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(255, 120, 255, 0.3);
}

/* === High Council panel / auth check extras === */
.panel-high-council .panel-footnote {
  font-size: 0.75rem;
  color: rgba(186, 205, 255, 0.9);
}

.panel-auth-check {
  position: relative;
  border-radius: 24px;
  border: 1px dashed rgba(247, 233, 124, 0.7);
  background: radial-gradient(circle at top left, #231f38 0%, #05030b 65%);
  padding: 1.2rem;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.05);
}

.auth-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: rgba(233, 239, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
}

.teaser-panel {
  margin-top: 1rem;
  padding: 0.9rem 0.9rem 0.95rem;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(111, 171, 255, 0.14), transparent);
  border: 1px dashed rgba(126, 186, 255, 0.5);
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(210, 225, 255, 0.8);
}

/* ============================================================
   HOLO SUBJECT STAMPS FOR CHARACTER BIOS
   ============================================================ */

.subject-stamp {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.95;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20, 22, 32, 0.65);
  backdrop-filter: blur(4px);
}

/* holo glyph */
.subject-stamp::before {
  content: "◊";
  font-size: 0.7rem;
  opacity: 0.85;
}

/* color variants */
.subject-stamp--cyan {
  color: #3ff4fb;
  text-shadow: 0 0 7px rgba(63, 244, 251, 0.95);
  border-color: rgba(63, 244, 251, 0.45);
}

.subject-stamp--magenta {
  color: #ff9cf7;
  text-shadow: 0 0 8px rgba(255, 156, 247, 0.9);
  border-color: rgba(255, 156, 247, 0.45);
}

.subject-stamp--yellow {
  color: #f9f871;
  text-shadow: 0 0 6px rgba(249, 248, 113, 0.9);
  border-color: rgba(249, 248, 113, 0.45);
}


/* ============================================================
   BIO TEXT TRIPPY “WAVY” MICRO EFFECTS
   ============================================================ */

.bio-entry {
  position: relative;
  padding-left: 0.6rem;
}

.bio-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 3px;
  height: 80%;
  background: linear-gradient(
    180deg,
    rgba(63, 244, 251, 0.8),
    rgba(255, 156, 247, 0.8)
  );
  border-radius: 3px;
  filter: blur(1.2px);
  opacity: 0.6;
}

/* micro shimmer on hover */
.bio-entry:hover {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.18);
  transition: text-shadow 0.2s ease;
}

/* ============================================================
   “GLYPH NOISE” random artifacts (subtle stoner glitch flavor)
   ============================================================ */

.glyph-noise {
  font-family: "SF Mono", monospace;
  opacity: 0.22;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  user-select: none;
  display: inline-block;
  transform: translateY(1px);
  margin-left: 0.2rem;
}

/* shimmer effect */
@keyframes noisePulse {
  0% { opacity: 0.1; }
  50% { opacity: 0.28; }
  100% { opacity: 0.1; }
}

.glyph-noise {
  animation: noisePulse 2.8s infinite;
}
