/* ============================================================
   Syndicate — Framer-inspired design system
   Pure black void · GT Walsheim / Inter · Framer Blue accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Core palette */
  --void: #000000;
  --ink-deep: #090909;
  --ink-raise: #121212;
  --ink-soft: #1a1a1a;

  --white: #ffffff;
  --silver: #a6a6a6;
  --ghost: rgba(255, 255, 255, 0.6);
  --ghost-soft: rgba(255, 255, 255, 0.4);
  --frost: rgba(255, 255, 255, 0.06);
  --frost-hi: rgba(255, 255, 255, 0.10);
  --frost-max: rgba(255, 255, 255, 0.18);
  --hairline: rgba(255, 255, 255, 0.08);

  --blue: #0099ff;
  --blue-soft: #3fb4ff;
  --blue-ring: rgba(0, 153, 255, 0.15);
  --blue-ring-hi: rgba(0, 153, 255, 0.35);
  --blue-glow: rgba(0, 153, 255, 0.25);

  /* Fonts */
  --font-display: 'GT Walsheim', 'Inter', -apple-system, system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Elevation */
  --ring: 0 0 0 1px var(--blue-ring);
  --ring-hi: 0 0 0 1px var(--blue-ring-hi);
  --lift: 0 0.5px 0 0.5px rgba(255,255,255,0.10), 0 10px 30px rgba(0,0,0,0.45);
  --lift-hi: 0 0.5px 0 0.5px rgba(255,255,255,0.14), 0 18px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--blue-ring-hi);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv01','cv05','cv09','cv11','ss03','ss07';
  background: var(--void);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--blue); }
strong { font-weight: 600; color: var(--white); }
code, pre { font-family: var(--font-mono); }

::selection { background: var(--blue); color: var(--void); }

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  background:
    radial-gradient(60vmax 60vmax at 80% -10%, rgba(0,153,255,0.10), transparent 60%),
    radial-gradient(50vmax 50vmax at -10% 40%, rgba(0,153,255,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, nav, footer, header { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section-head {
  margin-bottom: 80px;
  max-width: 840px;
}

.eyebrow-small {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 24px;
}
.eyebrow-small::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blue);
}

/* ---------- Typography ---------- */
.h1, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
}
.h1 {
  font-size: clamp(44px, 8.4vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.h2 {
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.section-sub {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--silver);
  max-width: 700px;
  margin-top: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--void);
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

.btn-frost {
  background: var(--frost-hi);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-frost:hover {
  background: var(--frost-max);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--blue-ring-hi);
  background: var(--frost);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
}
.brand-mark {
  display: inline-flex;
  width: 28px; height: 28px;
  color: var(--white);
}
.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--silver);
}
.nav-links a {
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.is-active { color: var(--white); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--blue);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: inline-flex;
  background: var(--frost);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}
.lang-btn:hover:not(.is-active) { color: var(--white); }
.lang-btn.is-active {
  background: var(--white);
  color: var(--void);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1100px; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--frost);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--silver);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-ring), 0 0 12px var(--blue-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--blue-ring), 0 0 12px var(--blue-glow); }
  50%      { box-shadow: 0 0 0 6px rgba(0,153,255,0.08), 0 0 22px var(--blue-glow); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--white);
  margin-bottom: 36px;
}
.hero-title em {
  color: var(--blue);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--silver);
  max-width: 720px;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 112px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 820px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
  font-weight: 500;
}
.stat-num .plus {
  color: var(--blue);
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 2px;
}
.stat-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  font-family: var(--font-mono);
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num { font-size: 40px; }
}

/* Hero ambient orb */
.hero-orb {
  position: absolute;
  right: -12vw;
  top: -6vw;
  width: 70vw; height: 70vw;
  max-width: 820px; max-height: 820px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  filter: blur(20px);
  opacity: 0.7;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 20px) scale(1.08); }
}

/* ---------- Architecture 3D scene ---------- */
.arch-stage {
  position: relative;
  perspective: 1600px;
  padding: 20px 0 40px;
}
.arch-stage__scene {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-4deg);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  height: 820px;
  max-width: 1180px;
  margin: 0 auto;
  will-change: transform;
}

.arch-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black, transparent 75%);
  transform: translateZ(-80px);
  opacity: 0.55;
}

.arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(20px);
  overflow: visible;
}
.arch-svg .edge {
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.2;
  fill: none;
}
.arch-svg .edge-retry {
  stroke: var(--blue);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  opacity: 0.6;
  fill: none;
}
.arch-svg .edge-debate {
  stroke: var(--blue);
  stroke-width: 1.6;
  opacity: 0.75;
  fill: none;
}
.arch-svg .flow-dot {
  fill: var(--blue);
  filter: drop-shadow(0 0 6px var(--blue-glow));
}

.arch-node {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  padding: 14px 18px;
  min-width: 170px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  box-shadow: var(--lift);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
  cursor: pointer;
  transform: translate(-50%, -50%) translateZ(var(--z, 0px));
}
.arch-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--blue-ring);
  pointer-events: none;
  transition: box-shadow 0.3s ease;
}
.arch-node:hover {
  transform: translate(-50%, -50%) translateZ(calc(var(--z, 0px) + 40px)) scale(1.04);
  box-shadow: var(--lift-hi);
}
.arch-node:hover::before {
  box-shadow: inset 0 0 0 1px var(--blue-ring-hi), 0 0 30px var(--blue-glow);
}
.arch-node.is-focus {
  background: var(--blue);
}
.arch-node.is-focus::before { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.arch-node.is-focus .node-title { color: var(--void); }
.arch-node.is-focus .node-sub { color: rgba(0,0,0,0.7); }

.node-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.node-title .glyph { font-size: 14px; }
.node-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--silver);
  letter-spacing: -0.005em;
}
.arch-node.is-eval {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.22);
  box-shadow: none;
}
.arch-node.is-eval::before { display: none; }
.arch-node.is-debate-bull { border-left: 2px solid var(--white); }
.arch-node.is-debate-bear { border-left: 2px solid var(--blue); }

.arch-node.is-dimmed {
  opacity: 0.28;
  filter: grayscale(0.4);
}
.arch-node.is-selected {
  transform: translate(-50%, -50%) translateZ(calc(var(--z, 0px) + 60px)) scale(1.06);
  box-shadow: var(--lift-hi);
}
.arch-node.is-selected::before {
  box-shadow: inset 0 0 0 1px var(--blue), 0 0 40px var(--blue-glow);
}

.debate-loop {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 10px;
  border: 1px solid var(--blue-ring-hi);
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  animation: loopGlow 2.4s ease-in-out infinite;
  transform: translate(-50%, -50%) translateZ(30px);
}
@keyframes loopGlow {
  0%,100% { box-shadow: 0 0 0 0 var(--blue-glow); }
  50%     { box-shadow: 0 0 20px 2px var(--blue-glow); }
}

.arch-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--silver);
  letter-spacing: -0.01em;
}
.arch-legend > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lg-chip {
  width: 22px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.lg-solid { background: rgba(10,10,10,0.9); box-shadow: inset 0 0 0 1px var(--blue-ring-hi); }
.lg-dashed { background: transparent; border: 1px dashed rgba(255,255,255,0.4); height: 12px; }
.lg-focus { background: var(--blue); }
.lg-retry { background: transparent; border-top: 1px dashed var(--blue); height: 0; margin-top: 5px; }

.arch-hint {
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--frost);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--silver);
}
.arch-hint .kbd {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--frost-hi);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  border: 1px solid var(--hairline);
}

@media (max-width: 900px) {
  .arch-stage__scene { transform: none; height: auto; display: flex; flex-direction: column; gap: 10px; }
  .arch-stage__grid, .arch-svg, .debate-loop { display: none; }
  .arch-node { position: relative; left: auto !important; top: auto !important; transform: none !important; min-width: 0; width: 100%; }
  .arch-node:hover { transform: translateY(-2px) !important; }
}

/* ---------- Posts ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  position: relative;
  padding: 28px;
  border-radius: 16px;
  background: var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--blue-ring);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), var(--blue-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--blue-ring-hi), 0 18px 60px rgba(0,0,0,0.5);
}
.post-card:hover::after { opacity: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
}
.post-meta .tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-ring);
  color: var(--blue-soft);
  border: 1px solid var(--blue-ring-hi);
  letter-spacing: 0.12em;
}
.post-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
}
.post-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
  margin-bottom: auto;
}
.post-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.post-link .arrow { transition: transform 0.25s; }
.post-card:hover .post-link .arrow { transform: translateX(4px); }

/* ---------- Decisions gallery ---------- */
.decisions-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--blue-ring);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.decisions-state[data-state="hidden"] { display: none; }
.decisions-state[data-state="error"] { color: #ffb4b4; box-shadow: inset 0 0 0 1px rgba(255,90,90,0.28); }
.decisions-state[data-state="empty"] { color: var(--silver); }
.decisions-state__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: decision-pulse 1.6s ease-in-out infinite;
}
.decisions-state[data-state="error"] .decisions-state__dot { background: #ff6b6b; box-shadow: 0 0 12px rgba(255,90,90,0.5); animation: none; }
.decisions-state[data-state="empty"] .decisions-state__dot { background: var(--silver); box-shadow: none; animation: none; }
@keyframes decision-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.decisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.decision-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--blue-ring);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
}
.decision-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--blue-ring-hi), 0 18px 60px rgba(0,0,0,0.5);
}
.decision-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #05080d;
  overflow: hidden;
}
.decision-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.decision-card:hover .decision-card__thumb img { transform: scale(1.03); }
.decision-card__body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.decision-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.decision-card__meta .tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-ring);
  color: var(--blue-soft);
  border: 1px solid var(--blue-ring-hi);
}
.decision-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}
.decision-card__hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--blue);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 5vh 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.6), 0 0 0 1px var(--blue-ring);
  background: #05080d;
}
.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--blue-ring);
  background: rgba(10, 16, 26, 0.6);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.lightbox__close:hover {
  border-color: var(--blue-ring-hi);
  transform: scale(1.05);
}

/* ---------- Team ---------- */
.team-section {
  position: relative;
  overflow: hidden;
}
.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50vmax 40vmax at 85% 30%, rgba(255,255,255,0.04), transparent 70%),
    radial-gradient(40vmax 40vmax at 90% 80%, rgba(0,153,255,0.08), transparent 70%);
  pointer-events: none;
}
.team-mark {
  position: absolute;
  right: -8vw;
  top: 50%;
  width: 60vw;
  max-width: 780px;
  transform: translateY(-50%);
  opacity: 0.14;
  color: var(--white);
  pointer-events: none;
  animation: markDrift 18s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(0,153,255,0.25));
}
.team-mark img,
.team-mark svg {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes markDrift {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(-48%) rotate(6deg); }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}
.member-card {
  padding: 28px;
  border-radius: 16px;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: transform 0.3s, box-shadow 0.3s;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--blue-ring-hi), 0 18px 50px rgba(0,0,0,0.5);
}
.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--void);
  background: linear-gradient(135deg, var(--white), var(--silver));
  margin-bottom: 18px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.6), 0 0 0 4px var(--blue-ring-hi);
}
.member-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
}
.member-role {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.member-bio {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
}
.member-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--silver);
}
.member-links a {
  transition: color 0.2s;
}
.member-links a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  background: var(--void);
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--silver);
}
.footer .brand { font-size: 16px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
