/* ============================================================
   CyberCEO — shared stylesheet
   One file for all pages. Edit here, every page updates.
   ============================================================ */

:root {
  /* Surfaces — deep ink, cool but not neon */
  --ink-900: #070b16;
  --ink-850: #0a0f1e;
  --ink-800: #0d1425;
  --ink-700: #121a2e;
  --ink-600: #18223c;

  /* Text */
  --text: #eef2fb;
  --text-dim: #9aa8c7;
  --text-faint: #6d7c9c;

  /* Brand — pulled from the CyberCEO logo + poster */
  --brand: #3b74ff;
  --brand-bright: #5f8dff;
  --brand-soft: #b6c9ff;
  --brand-wash: rgba(59, 116, 255, 0.12);

  /* Semantic accents — used only where they mean something */
  --signal: #ffb454;   /* warnings, phishing, threats */
  --safe: #3ddc97;     /* correct answers, strong passwords */
  --danger: #ff6b7a;   /* weak passwords, wrong answers */

  --line: rgba(150, 175, 230, 0.16);
  --line-soft: rgba(150, 175, 230, 0.09);

  --shadow-sm: 0 2px 10px rgba(3, 7, 18, 0.4);
  --shadow: 0 18px 44px rgba(3, 7, 18, 0.55);

  --radius: 14px;
  --radius-sm: 10px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient backdrop — concentric ridges echoing the fingerprint in the logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(59, 116, 255, 0.16), transparent 62%),
    radial-gradient(700px 520px at 92% 4%, rgba(59, 116, 255, 0.09), transparent 58%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-850) 55%, var(--ink-900) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1100px 700px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 700px at 50% 0%, #000 0%, transparent 78%);
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  z-index: 100;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 16px; }

/* ---------- Layout ---------- */
.page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 96px;
}

section { margin-bottom: 88px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  margin-bottom: 56px;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand svg { width: 38px; height: 38px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover { color: var(--text); background: rgba(150, 175, 230, 0.07); }

.nav a[aria-current="page"] {
  color: var(--brand-soft);
  background: var(--brand-wash);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 14px;
}

.eyebrow.signal { color: var(--signal); }

.h-xl {
  font-size: clamp(36px, 6vw, 60px);
  margin: 0 0 20px;
}

.h-lg {
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 18px;
}

.h-md {
  font-size: 22px;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 24px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.dim { color: var(--text-dim); }
.small { font-size: 14px; }

a { color: var(--brand-soft); }

/* ---------- Cards & grids ---------- */
.card {
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-hover { transition: transform 200ms ease, border-color 200ms ease; }
.card-hover:hover { transform: translateY(-2px); border-color: rgba(59, 116, 255, 0.4); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--ink-800);
  padding: 24px 22px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  display: block;
}

.stat-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 8px;
  display: block;
}

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(150, 175, 230, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--brand-bright); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(150, 175, 230, 0.07); border-color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Filter tabs ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 160ms ease;
}
.filter:hover { color: var(--text); border-color: var(--brand); }
.filter[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Definition list style ---------- */
.deflist { display: grid; gap: 0; }

.defrow {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.defrow:last-child { border-bottom: 1px solid var(--line-soft); }

.defrow dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-soft);
  padding-top: 3px;
}

.defrow dd { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand), rgba(59, 116, 255, 0.15));
}

.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--brand);
}

.tl-item.now::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(59, 116, 255, 0.18);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand-soft);
  display: block;
  margin-bottom: 5px;
}

.tl-item h4 { margin: 0 0 7px; font-size: 19px; }
.tl-item p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* ---------- Flip cards (team) ---------- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.flip { perspective: 1200px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }

.flip-inner {
  position: relative;
  min-height: 430px;
  transition: transform 550ms cubic-bezier(0.4, 0.1, 0.2, 1);
  transform-style: preserve-3d;
}

.flip:hover .flip-inner,
.flip:focus-visible .flip-inner,
.flip.flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flip-back { transform: rotateY(180deg); justify-content: center; }

.avatar {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 38%, rgba(59, 116, 255, 0.32), transparent 62%),
    var(--ink-600);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.avatar:has(img) { padding: 0; border-color: rgba(59,116,255,.3); }

.flip h4 { margin: 0; font-size: 17px; }
.flip .role { font-size: 13px; color: var(--brand-soft); margin: 0; line-height: 1.4; }
.flip .bio { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.55; }

.flip-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: auto;
}

/* ---------- Interactive: password lab ---------- */
.lab { border-color: rgba(59, 116, 255, 0.32); }

.pw-input-wrap { position: relative; margin-bottom: 18px; }

.pw-input {
  width: 100%;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.pw-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.pw-input::placeholder { color: var(--text-faint); }

.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--ink-600);
  overflow: hidden;
  margin-bottom: 18px;
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--danger);
  transition: width 320ms ease, background 320ms ease;
}

.pw-readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pw-time {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pw-verdict {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.clouds { display: grid; gap: 7px; }

.cloud {
  display: grid;
  grid-template-columns: 22px 92px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-faint);
  padding: 5px 0;
  transition: color 200ms ease;
}

.cloud .mark {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  color: var(--text-faint);
}

.cloud .letter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cloud.pass { color: var(--text); }
.cloud.pass .mark { color: var(--safe); }
.cloud.pass .letter { color: var(--safe); }

/* ---------- Interactive: phish hunt ---------- */
.inbox {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-900);
  overflow: hidden;
  font-size: 14.5px;
}

.inbox-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-600); }

.inbox-body { padding: 20px; display: grid; gap: 12px; }

.mail-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
}

.mail-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 4px;
}

.flag {
  background: transparent;
  border: 1px dashed rgba(150, 175, 230, 0.35);
  border-radius: 6px;
  padding: 3px 7px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 180ms ease;
}
.flag:hover { border-color: var(--signal); background: rgba(255, 180, 84, 0.08); }
.flag.found {
  border-style: solid;
  border-color: var(--signal);
  background: rgba(255, 180, 84, 0.14);
  color: var(--signal);
  cursor: default;
}

.mail-body { color: var(--text-dim); display: grid; gap: 10px; }
.shout { font-weight: 700; color: var(--text); }

.hunt-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.hunt-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.hunt-count b { color: var(--signal); }

.hunt-log { display: grid; gap: 6px; margin-top: 14px; }

.hunt-log li {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.hunt-log li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--font-mono);
}

.hunt-win {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--safe);
  background: rgba(61, 220, 151, 0.09);
  color: var(--text);
  font-size: 14.5px;
}

/* ---------- Photo placeholders ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: 8px;
  overflow: hidden;
}

.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}

.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
  font-weight: 500;
}

.site-footer a { color: var(--text-dim); text-decoration: none; display: block; margin-bottom: 7px; font-size: 14.5px; }
.site-footer a:hover { color: var(--brand-soft); }
.site-footer p { color: var(--text-dim); font-size: 14.5px; }

.colophon {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Scroll reveal ----------
   Only hidden when JS is running. Without JS every section stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.js .reveal.shown { opacity: 1; transform: none; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .defrow { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 720px) {
  section { margin-bottom: 64px; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }

  .site-header { position: relative; }
  .card { padding: 20px; }
  .mail-row { grid-template-columns: 1fr; gap: 3px; }
  .cloud { grid-template-columns: 22px 80px 1fr; gap: 8px; font-size: 13px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .flip:hover .flip-inner { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body::before, body::after, .progress, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Hero mark: fingerprint padlock, drawn on load ---------- */
.hero-mark {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  color: var(--brand);
  filter: drop-shadow(0 0 34px rgba(59, 116, 255, 0.32));
}

.hero-mark .ridge {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.2s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

.hero-mark .ridge:nth-of-type(2) { animation-delay: 0.14s; }
.hero-mark .ridge:nth-of-type(3) { animation-delay: 0.28s; }
.hero-mark .ridge:nth-of-type(4) { animation-delay: 0.42s; }
.hero-mark .ridge:nth-of-type(5) { animation-delay: 0.56s; }

.hero-mark .shell {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.6s ease forwards;
}

.hero-mark .keyhole {
  opacity: 0;
  animation: fadeUp 700ms ease 1.5s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-mark .ridge,
  .hero-mark .shell { stroke-dashoffset: 0; animation: none; }
  .hero-mark .keyhole { opacity: 1; animation: none; }
}

@media (max-width: 860px) {
  .hero-mark { max-width: 220px; margin: 0 auto; }
}

/* ---------- Site list (partner locations) ---------- */
.sitelist { display: grid; gap: 0; }

.siteitem {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}
.siteitem:last-child { border-bottom: 1px solid var(--line-soft); }

.siteitem .where { color: var(--text); }
.siteitem .what {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: right;
  flex: none;
}

/* ---------- Threat figures ---------- */
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }

.figure {
  border-left: 2px solid var(--signal);
  padding-left: 16px;
}

.figure .amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}

.figure .name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 6px;
}

.figure p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

/* ---------- Org chart ---------- */
.org { display: grid; gap: 14px; text-align: center; }

.org-node {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--ink-800);
}

.org-node.lead { border-color: var(--brand); background: var(--brand-wash); }

.org-node strong { display: block; font-family: var(--font-display); font-size: 16px; }
.org-node span { font-size: 13px; color: var(--text-dim); }

.org-branch { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }

.org-connector {
  height: 22px;
  border-left: 1px solid var(--line);
  width: 0;
  margin: 0 auto;
}

/* ---------- Logo images ----------
   Drop your files in as:
     assets/logo-mark.png  — icon only, sits beside the wordmark in the header
     assets/logo.png       — full lockup, used large on the home page
   PNG with transparency, or SVG. Swap the extensions in the HTML if you use SVG. */

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex: none;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 0 40px rgba(59, 116, 255, 0.28));
  animation: heroLogoIn 900ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-logo { max-width: 200px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* ---------- Contact channels ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.channel {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--ink-800);
  transition: border-color 180ms ease, transform 180ms ease;
}
.channel:hover { border-color: var(--brand); transform: translateY(-2px); }

.channel .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
  display: block;
  margin-bottom: 9px;
}

.channel .value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  word-break: break-word;
}

.channel .note { font-size: 13.5px; color: var(--text-dim); display: block; line-height: 1.55; }

/* ---------- Two-column guide panel ---------- */
.guide-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }

.guide-cols h4 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.guide-cols ol, .guide-cols ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.guide-cols li { margin-bottom: 7px; }


/* ============================================================
   Photographs
   ============================================================ */

figure.media { margin: 0; }

figure.media img,
.band img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-800);
}

figure.media figcaption,
.band figcaption {
  margin-top: 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

/* Wide banner image */
.band { margin: 0; }
.band img { aspect-ratio: 16 / 7; object-fit: cover; }

@media (max-width: 720px) {
  .band img { aspect-ratio: 4 / 3; }
}

/* Photo sitting at the top of a card */
.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  background: var(--ink-800);
}

/* Small photo inside an events archive card */
.card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: var(--ink-800);
}

.card-thumb.below { margin-bottom: 0; margin-top: 18px; }

/* Gallery tiles already exist as .photo; make images fill them */
.photo { padding: 0; border-style: solid; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Two-up photo strip */
.photo-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.zoomable { cursor: zoom-in; transition: opacity 180ms ease; }
.zoomable:hover { opacity: 0.9; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 7, 16, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.lightbox figcaption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  max-width: 60ch;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--brand); }