/* ===== Cyberdog — Design Tokens ===== */
:root {
  --black: #000000;
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #000000;
  --surface-2: #000000;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f6;
  --text-muted: #a4a5a9;
  --text-faint: #6c6d72;

  --red: #ff0000;
  --red-bright: #ff3333;
  --red-dim: #990000;
  --red-glow: rgba(255, 0, 0, 0.35);

  --font: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Courier New', monospace;
  --font-display: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Courier New', monospace;

  --container: 1240px;
  --radius: 10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--red-dim); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-display); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* subtle grain overlay for premium texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Dossier system: shared components ===== */
.tag-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.tag-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 9 L2 2 L9 2' fill='none' stroke='%23ff3333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 9 L10 2 L3 2' fill='none' stroke='%23ff3333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 3 L2 10 L9 10' fill='none' stroke='%23ff3333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 3 L10 10 L3 10' fill='none' stroke='%23ff3333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: top left, top right, bottom left, bottom right;
}

.bracket-frame {
  position: relative;
}
.bracket-frame::before,
.bracket-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.bracket-frame::before {
  top: -1px; left: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 9 L2 2 L9 2' fill='none' stroke='%23ff3333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.bracket-frame::after {
  bottom: -1px; right: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 3 L10 10 L3 10' fill='none' stroke='%23ff3333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 8px 30px -8px var(--red-glow); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover { border-color: var(--red); background: rgba(255,0,0,0.08); }

.btn-ghost {
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); }

.btn-danger {
  border-color: var(--red-dim);
  color: var(--red-bright);
  background: transparent;
}
.btn-danger:hover { border-color: var(--red); background: rgba(255,0,0,0.1); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.full-width { width: 100%; }

/* ===== 404 ===== */
.error-page { text-align: center; }
.error-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 70px rgba(255,0,0,0.4);
  margin-top: 8px;
}
.error-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
.error-copy { color: var(--text-muted); max-width: 480px; font-size: 1.02rem; line-height: 1.7; }
.error-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  background: var(--bg);
}
.site-header.scrolled {
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 18px 12px;
}

.nav-toggle-wrap {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.header-search { justify-self: end; }
.header-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  background: rgba(255,255,255,0.02);
}
.header-search-form input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  width: 170px;
  outline: none;
}
.header-search-form input::placeholder { color: var(--text-faint); }
.header-search-form button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.header-search-form button:hover { color: var(--red-bright); }

.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.brand-mark { display: flex; }
.brand-name { color: var(--text); }

.main-nav {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.main-nav ul { display: flex; justify-content: center; gap: 6px; padding-block: 4px 10px; }
.main-nav a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 8px 16px;
  background: rgba(255,0,0,0);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--red);
  opacity: 0;
}
.main-nav a:hover { color: var(--text); background-color: rgba(255,0,0,0.12); }
.main-nav a:hover::after { opacity: 1; }

.main-nav a.nav-link-alert { color: var(--red-bright); }
.main-nav a.nav-link-alert:hover { color: var(--red); }

.mobile-nav-cta { display: none; }

.main-nav.open {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: min(390px, 92vw);
  max-width: none;
  margin-inline: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 96px 24px 32px;
  overflow-y: auto;
  z-index: 600;
  transform: translateX(-100%);
  animation: navPanelIn 0.4s var(--ease) forwards;
}
@keyframes navPanelIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.main-nav.open ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-block: 0;
}
.main-nav.open a { font-size: 1.15rem; padding: 14px 4px; }
.main-nav.open .mobile-nav-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.nav-panel-head { display: none; }
.main-nav.open .nav-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.nav-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-close:hover { color: var(--red-bright); }
.nav-panel-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-panel-search { display: none; }
.main-nav.open .nav-panel-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  margin-bottom: 28px;
}
.nav-panel-search input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  flex: 1;
  outline: none;
}
.nav-panel-search input::placeholder { color: var(--text-faint); }
.nav-panel-search button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-panel-search button:hover { color: var(--red-bright); }

.nav-panel-social { display: none; }
.main-nav.open .nav-panel-social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.nav-panel-social a { color: var(--text-muted); display: flex; }
.nav-panel-social a:hover { color: var(--red-bright); }
.nav-panel-social svg { width: 20px; height: 20px; }

.nav-panel-brand { display: none; }
.main-nav.open .nav-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.nav-panel-brand img { width: 28px; height: 28px; }
.nav-panel-brand span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.main-nav:not(.open) li.nav-item-panel-only { display: none; }

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 590;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 0%, transparent 72%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 170px;
  text-align: center;
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 70px rgba(255,0,0,0.3);
  white-space: nowrap;
}

.hero-sub {
  margin-top: 24px;
  max-width: 1300px;
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: nowrap;
}

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

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.scroll-cue span {
  display: block;
  width: 3px; height: 7px;
  background: var(--red);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

/* ===== Sections ===== */
.section { padding-block: 120px; position: relative; }
.page-section { padding-top: 210px; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.section-lede { margin-top: -6px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

.page-hero-head {
  text-align: left;
  align-items: flex-start;
  max-width: 820px;
  margin-inline: 0;
  margin-bottom: 56px;
}
.page-hero-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
}
.page-hero-head .section-lede { text-align: left; }

/* ===== About ===== */
.jump-nav { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 40px; }
.jump-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-inline: 16px;
  border-right: 1px solid var(--border);
  transition: color 0.25s var(--ease);
}
.jump-nav a:first-child { padding-left: 0; }
.jump-nav a:last-child { border-right: none; }
.jump-nav a:hover { color: var(--red-bright); }

.about-feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
.about-feature-stack { display: flex; flex-direction: column; gap: 20px; }
.about-feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.about-feature-card:hover { border-color: var(--red); background: rgba(255,0,0,0.04); }
.about-feature-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 24px 28px;
}
.about-feature-card h3 { font-size: 1.2rem; font-weight: 800; color: #fff; }
.about-feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-top: 10px; }
.about-feature-card--lg .tag-pill { align-self: flex-start; margin-bottom: 14px; }
.about-feature-card--lg h3 { font-size: 1.9rem; }

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== Image cards =====
   Linked cards (About and Scope): the image fills the card and the title (and description)
   sit over a dark fade at the bottom, like a photo card. The whole card is the link. */
.about-feature-card,
.capability-grid .capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  isolation: isolate;
  transition: border-color 0.3s var(--ease);
}
.capability-grid .capability-card { min-height: clamp(300px, 28vw, 380px); }
.about-feature-card--lg { min-height: 420px; }
.about-feature-card .card-thumb,
.capability-grid .capability-card .card-thumb {
  position: absolute;
  inset: 0;
  z-index: -2;
  aspect-ratio: auto;
  border-bottom: 0;
  transition: transform 0.6s var(--ease);
}
.capability-grid .capability-card .card-thumb,
.about-feature-card--lg .card-thumb { align-items: flex-start; padding-top: 52px; }
.capability-grid .capability-card .card-thumb svg,
.about-feature-card--lg .card-thumb svg { width: 56px; height: 56px; }
.about-feature-card::after,
.capability-grid .capability-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0) 65%);
  pointer-events: none;
}
.about-feature-card .card-body,
.capability-grid .capability-card .card-body { flex: 0 0 auto; padding: 24px 28px; }
/* Keeps the image showing above the text when a narrow card wraps the description. */
.capability-grid .capability-card .card-body,
.about-feature-card--lg .card-body { padding-top: 150px; }
.about-feature-card h3,
.capability-grid .capability-card h3 { color: #fff; transition: color 0.2s var(--ease); }
.capability-grid .capability-card p { margin-bottom: 0; }
.about-feature-card:hover,
.capability-grid .capability-card:hover { border-color: var(--red-dim); background: var(--surface); }
.about-feature-card:hover h3,
.capability-grid .capability-card:hover h3 { color: var(--red-bright); }
.about-feature-card:hover .card-thumb,
.capability-grid .capability-card:hover .card-thumb { transform: scale(1.04); }
.about-feature-card:focus-visible,
.capability-grid .capability-card:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.about-copy { max-width: 720px; margin-inline: 0; text-align: left; }
.about-copy.centered { margin-inline: auto; text-align: center; }
.about-copy p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy p a { color: var(--red-bright); border-bottom: 1px solid rgba(255,0,0,0.4); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.about-copy p a:hover { color: var(--red); border-color: var(--red); }
.legal-copy h3 { color: var(--text); font-size: 1.1rem; font-weight: 800; margin: 36px 0 12px; }
.legal-copy h3:first-of-type { margin-top: 28px; }
.legal-copy a { color: var(--red-bright); }
.legal-copy a:hover { color: var(--red); }

/* ===== Impact ===== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  text-align: center;
}
.impact-stat { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.impact-label { max-width: 320px; }
.impact-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.impact-icon svg { width: 32px; height: 32px; }
.impact-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: #fff; }
.impact-label { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* ===== Card Thumbnail Placeholder ===== */
.card-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(255,0,0,0.08), rgba(255,255,255,0.025));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb svg { width: 34px; height: 34px; color: var(--text-faint); opacity: 0.5; }
.card-body { padding: 32px; }

/* ===== Scope Hero ===== */
.scope-hero {
  position: relative;
  overflow: hidden;
  padding-top: 210px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.scope-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(255,0,0,0.14) 0%, transparent 60%),
    linear-gradient(160deg, #0d0202 0%, #000000 55%, #000000 100%);
  pointer-events: none;
}
.scope-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, black 0%, transparent 75%);
}
.scope-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: end;
  min-height: 380px;
}
.scope-hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.scope-hero-content h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fdfdfd;
  max-width: 680px;
}
.scope-hero-lede { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 520px; }

.scope-hero-featured { border-left: 1px solid var(--border); padding-left: 32px; }
.scope-hero-featured-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 700;
  margin-bottom: 14px;
}
.scope-hero-featured ul { display: flex; flex-direction: column; }
.scope-hero-featured li { border-top: 1px solid var(--border); }
.scope-hero-featured li:last-child { border-bottom: 1px solid var(--border); }
.scope-hero-featured a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.scope-hero-featured a:hover { color: var(--red-bright); }
.scope-hero-featured-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,0,0,0.1), rgba(255,255,255,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
}
.scope-hero-featured-thumb svg { width: 20px; height: 20px; color: var(--text-faint); }

.scope-hero--sub { padding-bottom: 48px; }
.scope-hero--sub .scope-hero-inner { grid-template-columns: 1fr; min-height: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb .breadcrumb-sep { color: var(--border); }
.breadcrumb [aria-current] { color: var(--text); }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* ===== Capabilities ===== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.capability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 130px;
}
.capability-card h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 14px; }
.capability-card p { color: var(--text-muted); line-height: 1.75; margin-bottom: 22px; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.capability-tags span {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  white-space: nowrap;
}

.capability-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-bright);
  transition: gap 0.2s var(--ease);
}
.capability-card-link:hover { gap: 10px; }
.capability-card-link svg { width: 14px; height: 14px; }

.threat-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Info Card Grids (Strategy / Partnerships) ===== */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}
.info-card h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 14px; }
.info-card p { color: var(--text-muted); line-height: 1.75; }

.priority-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== Quick Links ===== */
.quicklinks-carousel { overflow: hidden; cursor: grab; }
.quicklinks-carousel.dragging { cursor: grabbing; }
.quicklinks-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.quicklink-card {
  flex: 0 0 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.quicklink-card:hover { border-color: var(--red); background: rgba(255,0,0,0.06); }
.quicklink-icon { width: 36px; height: 36px; color: var(--text); }
.quicklink-card span { font-weight: 700; font-size: 0.95rem; color: var(--text); }

/* ===== Case Outcomes Carousel ===== */
.case-note { color: var(--text-faint); font-size: 0.82rem; margin-top: -8px; margin-bottom: 28px; }
.case-carousel { overflow: hidden; cursor: grab; }
.case-carousel.dragging { cursor: grabbing; }
.case-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.case-card {
  flex: 0 0 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.case-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red-dim);
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.case-card-icon { width: 34px; height: 34px; color: var(--text-faint); margin-bottom: 14px; }
.case-card h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.case-card p { font-size: 0.8rem; color: var(--text-faint); }

/* ===== Social Follow ===== */
.social-follow { display: flex; flex-wrap: wrap; gap: 14px; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.social-pill svg { width: 18px; height: 18px; }
.social-pill:hover { border-color: var(--red); background: rgba(255,0,0,0.08); }

/* ===== Mission ===== */
.mission {
  background: var(--black);
  text-align: left;
  overflow: hidden;
  padding-bottom: 96px;
}
.mission-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255,0,0,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.mission-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.mission-statement {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fdfdfd;
}
.mission-flags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}
.mission-flags span {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  padding: 11px 24px;
  border: 1px solid var(--border);
  border-left: none;
}
.mission-flags span:first-child { border-left: 1px solid var(--border); border-radius: 4px 0 0 4px; }
.mission-flags span:last-child { border-radius: 0 4px 4px 0; }

/* ===== How We Work ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  padding-top: 10px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.timeline-step { position: relative; padding-top: 52px; }
.timeline-node {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--red-dim);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--red-bright);
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.timeline-step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.timeline-step p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-info p { color: var(--text-muted); line-height: 1.7; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-details dt { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.contact-details dd a { color: var(--text); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.contact-details dd a:hover { color: var(--red-bright); border-color: var(--red-bright); }
.contact-note {
  margin-top: 32px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--red-dim);
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--text-faint);
  line-height: 1.6;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.form-row .prompt { color: var(--red-bright); margin-right: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.15);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-status { min-height: 1.2em; font-size: 0.88rem; color: var(--red-bright); }

.report-modal {
  margin: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  max-width: 440px;
  width: calc(100% - 48px);
  padding: 32px 36px 36px;
  text-align: center;
}
.report-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.report-modal h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 18px 0 12px;
  line-height: 1.3;
}
.report-modal p { color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.modal-close-form { display: flex; justify-content: flex-end; margin: -8px -8px 0 0; }
.modal-close {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 8px;
  transition: color 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
.footer-inner {
  padding-block: 8px 64px;
}

.footer-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 48px; }
.footer-nav h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); margin-bottom: 24px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 16px; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--red-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-bottom-brand { display: flex; align-items: center; gap: 20px; }
.footer-bottom-brand .brand { font-size: 1.15rem; }
.footer-legal { display: flex; flex-direction: column; gap: 4px; }
.footer-legal a { color: var(--text-faint); }
.footer-legal a:hover { color: var(--red-bright); }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--text-faint); display: flex; }
.footer-social a:hover { color: var(--red-bright); }
.footer-social svg { width: 18px; height: 18px; }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1700px) {
  .hero-title { white-space: normal; }
  .hero-sub { white-space: normal; max-width: 640px; font-size: 1.1rem; }
}

@media (max-width: 1024px) {
  .capability-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .priority-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .threat-feature-grid { grid-template-columns: 1fr; }
  .about-feature-grid { grid-template-columns: 1fr; }
  .about-feature-card--lg { min-height: 340px; }
  .about-links-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-hero-inner { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .scope-hero-featured { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
}

@media (max-width: 720px) {
  .about-links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav:not(.open) { display: none; }
}

@media (max-width: 720px) {
  .section { padding-block: 84px; }
  .header-search-form { border: none; background: none; padding: 0; }
  .header-search-form input { display: none; }
  .header-search-form button { width: 40px; height: 40px; }
  .footer-nav { grid-template-columns: 1fr; row-gap: 36px; }
  .footer-bottom-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 36px; }
  .mission-flags { flex-direction: column; width: 100%; max-width: 260px; margin-inline: 0; }
  .mission-flags span { border-left: 1px solid var(--border) !important; border-top: none; border-radius: 0 !important; }
  .mission-flags span:first-child { border-radius: 4px 4px 0 0 !important; border-top: 1px solid var(--border); }
  .mission-flags span:last-child { border-radius: 0 0 4px 4px !important; }
  .contact-form { padding: 24px; }
}
