/* Anonymous Portugal — Arquivo Palestina-Israel */
:root {
  --bg-deep: #05080c;
  --bg-panel: #0a1018;
  --bg-card: #0d1520;
  --border: #1a3a2e;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --cyan: #00e5ff;
  --amber: #ffb020;
  --text: #c8e6d4;
  --text-muted: #6b8f7a;
  --danger: #ff4466;
  --pt-red: #e8002a;
  --pt-green: #006600;
  --azulejo: #1a5a7a;
  --azulejo-light: #2a7a9e;
  --gold-armilar: #c9a227;
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.35);
  --glow-pt: 0 0 22px rgba(232, 0, 42, 0.22);
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.25);
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --radius: 6px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 8.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 255, 136, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 50%, rgba(0, 229, 255, 0.04), transparent 52%),
    var(--bg-deep);
  overflow-x: hidden;
}

/* Fundo hacker 3D — sala Matrix imersiva */
.hacker-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 900px;
}

.hacker-bg__stage,
.hacker-bg__webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hacker-bg__chromatic {
  position: absolute;
  inset: -2%;
  mix-blend-mode: screen;
  opacity: 0.22;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.12), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.1), transparent 36%);
  animation: hacker-chroma 6s ease-in-out infinite alternate;
}

.hacker-bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 45%, rgba(0, 255, 136, 0.22), transparent 58%),
    radial-gradient(ellipse 45% 35% at 12% 22%, rgba(0, 229, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 35% at 88% 78%, rgba(232, 0, 42, 0.14), transparent 52%),
    radial-gradient(ellipse 30% 25% at 50% 50%, rgba(201, 162, 39, 0.1), transparent 60%);
  animation: hacker-pulse-glow 4.5s ease-in-out infinite;
}

.hacker-bg__flare {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 255, 136, 0.06) 40deg, transparent 80deg, rgba(232, 0, 42, 0.05) 140deg, transparent 200deg, rgba(0, 229, 255, 0.05) 280deg, transparent 360deg);
  animation: hacker-flare-spin 48s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
}

@keyframes hacker-flare-spin {
  0% { transform: rotate(0deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1.1); }
}

.hacker-bg__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 136, 0.04) 42%,
    rgba(0, 255, 136, 0.12) 50%,
    rgba(0, 229, 255, 0.08) 52%,
    rgba(0, 255, 136, 0.04) 58%,
    transparent
  );
  animation: hacker-scan 7s linear infinite;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hacker-bg__glitch {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 48px,
      rgba(0, 255, 136, 0.03) 48px,
      rgba(0, 255, 136, 0.03) 49px
    ),
    linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.06) 50%, transparent 100%);
  animation: hacker-glitch 9s steps(1) infinite;
}

.hacker-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 88% 72% at 50% 48%, transparent 28%, rgba(3, 5, 8, 0.62) 72%, rgba(3, 5, 8, 0.82) 100%);
}

.hacker-bg__azulejo {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image:
    linear-gradient(45deg, rgba(26, 90, 122, 0.4) 25%, transparent 25%, transparent 75%, rgba(26, 90, 122, 0.4) 75%),
    linear-gradient(45deg, rgba(26, 90, 122, 0.4) 25%, transparent 25%, transparent 75%, rgba(26, 90, 122, 0.4) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 85%);
}

.hacker-bg__code-grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 52%);
  pointer-events: none;
}

.hacker-bg__readability {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 50% at 50% 42%, rgba(3, 5, 8, 0.52), transparent 72%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.28) 0%, transparent 16%, transparent 84%, rgba(3, 5, 8, 0.32) 100%),
    linear-gradient(90deg, rgba(0, 102, 0, 0.04) 0%, transparent 18%, transparent 82%, rgba(232, 0, 42, 0.04) 100%);
}

@keyframes matrix-code-drift-down {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (max-width: 767px) {
  .legend-hud__side-left,
  .legend-hud__side-right {
    display: none;
  }
}

@keyframes hacker-scan {
  0% { top: -180px; }
  100% { top: 100%; }
}

@keyframes hacker-chroma {
  0% { transform: translateX(-0.4%) skewX(-0.3deg); filter: hue-rotate(0deg); }
  100% { transform: translateX(0.4%) skewX(0.3deg); filter: hue-rotate(8deg); }
}

@keyframes hacker-pulse-glow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes hacker-glitch {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: 0.35; transform: translateX(-6px); }
  94% { opacity: 0.2; transform: translateX(8px); }
  95% { opacity: 0.4; transform: translateX(-3px) scaleX(1.01); }
  96% { opacity: 0; }
}

/* Scanlines + grelha holográfica */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: hacker-grid-drift 36s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.09) 2px,
    rgba(0, 0, 0, 0.09) 4px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

@keyframes hacker-grid-drift {
  0% { background-position: 0 0, 0 0; transform: perspective(600px) rotateX(8deg) scale(1.08); }
  100% { background-position: 56px 56px, 56px 56px; transform: perspective(600px) rotateX(8deg) scale(1.08); }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--bg-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(5, 8, 12, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 255, 136, 0.25);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 255, 136, 0.06);
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.logo {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #fff;
  min-width: 100%;
}

.logo-mask {
  display: block;
  width: 100%;
  max-height: 88px;
  height: auto;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 14px rgba(0, 255, 136, 0.4));
}

.logo-banner {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 520px) {
  .logo-mask {
    max-height: 86px;
  }
}

@media (min-width: 900px) {
  .logo-mask {
    max-height: 94px;
  }
}

/* Nav — mobile-first compacto */
.main-nav {
  border-top: 1px solid var(--border);
  background: rgba(8, 14, 20, 0.98);
  max-width: 100%;
  overflow: visible;
}

.nav-list {
  list-style: none;
  margin: 0 auto;
  padding: 0.45rem 0.55rem calc(0.45rem + var(--safe-bottom));
  max-width: 1200px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item-simple {
  flex: 0 0 auto;
}

.nav-link,
.nav-group-toggle,
.nav-group-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.72rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: rgba(0, 255, 136, 0.15);
  touch-action: manipulation;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group-link:hover,
.nav-group-link:focus-visible {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  outline: none;
}

.nav-link[aria-current="page"],
.nav-group-link[aria-current="page"] {
  border-color: var(--green);
  color: var(--bg-deep);
  background: var(--green);
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-group-toggle {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  gap: 0.4rem;
  padding-right: 0.6rem;
}

.nav-group-label {
  display: inline-block;
}

.nav-caret {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown.is-active-group .nav-group-toggle {
  color: var(--green);
  border-color: var(--green);
}

.nav-submenu {
  display: none;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.35rem;
  gap: 0.35rem;
  background: rgba(10, 16, 24, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 120;
}

.nav-dropdown.is-open .nav-submenu {
  display: flex;
  flex-direction: column;
}

.nav-group-link {
  width: 100%;
  font-size: 0.8rem;
  justify-content: flex-start;
}

/* Submenu com posicionamento consistente em mobile e desktop */
.nav-dropdown.is-open .nav-submenu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 220px;
  max-width: min(86vw, 320px);
  max-height: 58vh;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .nav-list {
    padding: 0.5rem 0.9rem calc(0.5rem + var(--safe-bottom));
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 0.45rem;
  }

  .nav-link,
  .nav-group-toggle,
  .nav-group-link {
    font-size: 0.9rem;
    padding: 0.55rem 0.95rem;
  }

  .site-search-wrap {
    padding: 0.45rem 0.9rem 0.8rem;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 0.25rem;
  flex: 0 0 auto;
  margin-left: 0.1rem;
}

.lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.55rem;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-btn.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.site-search-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 0.55rem 0.75rem;
}

.site-search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  padding: 0.58rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
}

.site-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.15);
}

.site-search-empty {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--amber);
}

.load-more-btn {
  margin: 0.9rem auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.load-more-btn:hover,
.load-more-btn:focus-visible {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  outline: none;
}

.embed-load-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at center, rgba(0, 255, 136, 0.2), transparent 55%);
}

.embed-load-btn:hover,
.embed-load-btn:focus-visible {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at center, rgba(0, 255, 136, 0.3), transparent 55%);
  outline: none;
}

.embed-open-bar {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.55rem 0 0;
  pointer-events: auto;
  background: transparent;
}

.embed-open-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.1rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono, inherit);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--text-muted, #b8c5d0);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(8, 14, 22, 0.88);
  box-shadow: none;
  letter-spacing: 0.02em;
}

.embed-open-btn:hover,
.embed-open-btn:focus-visible {
  color: var(--green, #00ff88);
  border-color: rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 136, 0.08);
  outline: none;
}

.embed-open-btn--external {
  color: var(--cyan, #00e5ff);
  border-color: rgba(0, 229, 255, 0.25);
}

.embed-open-btn--external:hover,
.embed-open-btn--external:focus-visible {
  color: var(--cyan, #00e5ff);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
}

.subnav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 500px) {
  .subnav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .subnav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subnav-link {
  display: block;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
}

.subnav-link:hover,
.subnav-link:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

@media (min-width: 1024px) {
  .nav-list {
    justify-content: center;
  }
}

/* Layout */
main {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.legend-hud {
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Hero */
.hero {
  padding: 2rem 0 1.5rem;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-brand-images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
}

.hero-mask {
  display: block;
  height: clamp(140px, 38vw, 220px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(0, 255, 136, 0.45));
}

.hero-banner {
  display: block;
  height: clamp(48px, 12vw, 72px);
  width: auto;
  max-width: min(100%, 520px);
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: var(--green);
  font-weight: 600;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Theme cards (home) */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.theme-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-height: 120px;
}

.theme-card:hover,
.theme-card:focus-visible {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.theme-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.theme-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.theme-card-btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.65rem 1.1rem;
  background: var(--green);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-align: center;
  width: fit-content;
}

.theme-card:hover .theme-card-btn,
.theme-card:focus-visible .theme-card-btn {
  background: #fff;
}

/* Page header (inner) */
.page-hero {
  padding: 1.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  color: #fff;
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-intro {
  color: var(--text-muted);
  max-width: 720px;
}

/* Tabs filter (optional on pages with many items) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
}

/* Video cards */
.content-block {
  margin-bottom: 2.5rem;
}

.content-block[id] {
  scroll-margin-top: 8.5rem;
}

.content-block h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-block h2::before {
  content: ">";
  color: var(--cyan);
}

.video-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .video-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: rgba(0, 255, 136, 0.5);
}

.video-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrap__stage {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-wrap__stage iframe,
.video-wrap__stage video,
.video-wrap__stage .embed-load-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-wrap iframe,
.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-wrap.is-playing .embed-open-bar {
  padding: 0.5rem 0.35rem 0.15rem;
}

.video-card-body {
  padding: 1rem 1.15rem 1.25rem;
}

.video-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #fff;
}

.video-card .meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.video-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 20, 15, 0.9);
}

/* Facts / timeline */
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.fact-card .year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.fact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fff;
}

.fact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fact-card .source {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Documents */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.doc-item:hover,
.doc-item:focus-visible {
  border-color: var(--green);
  outline: none;
}

.doc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
}

.doc-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.doc-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 2rem 1rem calc(2rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body::before,
  .hacker-bg__scan,
  .hacker-bg__chromatic,
  .hacker-bg__glow,
  .hacker-bg__glitch {
    animation: none !important;
  }

  .matrix-code-col-track,
  .side-hex-track {
    animation: none !important;
  }

  .hacker-bg__stage {
    display: none;
  }
}
