/* =========================================================
   eSPUD — Dark, minimalist research site
   ========================================================= */

:root {
  --bg:        #0a0a0f;
  --bg-2:      #11111a;
  --bg-3:      #16161f;
  --surface:   #1a1a25;
  --surface-2: #1f1f2c;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  --text:      #ececf1;
  --text-dim:  #a3a3b2;
  --text-mute: #6b6b7d;

  --accent:        #8B5CF6;
  --accent-2:      #a78bfa;
  --accent-dim:    rgba(139,92,246,0.18);
  --accent-glow:   rgba(139,92,246,0.45);

  --status-shipped:  #34d399;
  --status-active:   #fbbf24;
  --status-research: #60a5fa;

  --radius:    12px;
  --radius-lg: 18px;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 10px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  background: rgba(139,92,246,0.06);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  max-width: 720px;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo  { width: 32px; height: 32px; }
.nav-wordmark {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border-2);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-2) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(10,10,15,0) 0%, rgba(10,10,15,0.55) 60%, rgba(10,10,15,0.92) 100%),
    linear-gradient(180deg, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0) 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}
.hero-os-card {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto 0;
  padding: 14px 18px 16px;
  min-width: 260px;
  max-width: min(560px, 92vw);
  border-radius: 16px;
  background: rgba(20, 18, 32, 0.55);
  border: 1px solid var(--border-2);
  color: var(--text);
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-os-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-os-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.hero-os-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Glass pill — one per project */
.os-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13.5px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: transform .18s ease, border-color .2s ease, background .2s ease, box-shadow .25s ease, color .2s ease;
  position: relative;
  isolation: isolate;
}
.os-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(139,92,246,0) 60%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
  pointer-events: none;
}
.os-pill:hover {
  border-color: rgba(139,92,246,0.55);
  background: rgba(139,92,246,0.10);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    0 10px 28px -14px var(--accent-glow);
}
.os-pill:hover::before { opacity: 1; }
.os-pill-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--status-shipped);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: livePulse 2s ease-out infinite;
  flex: 0 0 auto;
}
.os-pill-name {
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.os-pill svg {
  color: var(--text-dim);
  transition: transform .15s ease, color .15s ease;
}
.os-pill:hover svg { transform: translateX(2px); color: var(--accent-2); }

.hero-logo {
  width: clamp(180px, 26vh, 320px);
  max-width: 70vw;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 40px rgba(139,92,246,0.35));
}
.hero-title {
  /* hidden visually — the logo carries the wordmark — but kept for SEO/a11y */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.hero-tagline {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-dim);
  margin: 6px auto 28px;
  max-width: 620px;
  line-height: 1.5;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .25s ease, border-color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px -8px var(--accent-glow);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--text-mute);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--text);
  border-radius: 3px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0);  opacity: 1; }
  60%  { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0);  opacity: 0; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background:
    radial-gradient(ellipse at top, rgba(139,92,246,0.07), transparent 60%),
    var(--bg);
  min-height: 100vh;
  padding: 96px 0 72px;
  display: flex;
  align-items: center;
}
.about .container { width: 100%; }
.about .section-title { margin-bottom: 36px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p {
  color: var(--text-dim);
  font-size: clamp(14.5px, 1.45vw, 16px);
  margin: 0 0 14px;
  line-height: 1.55;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-meta {
  margin-top: 22px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.area-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.area-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.area-card:hover::before { opacity: 1; }
.area-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.area-icon svg { width: 20px; height: 20px; }
.area-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.area-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* =========================================================
   FEATURED PROJECT (pi-hub)
   ========================================================= */
.featured {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(139,92,246,0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
  padding: 96px 0 72px;
  display: flex;
  align-items: center;
}
.featured .container { width: 100%; }
.featured .section-title { margin-bottom: 28px; }
.featured-card {
  background:
    linear-gradient(180deg, rgba(139,92,246,0.04), transparent 30%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, var(--accent-dim), transparent 50%);
  opacity: 0.6;
}
.featured-main {
  padding: 28px 32px 30px;
  position: relative;
}
.featured-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--status-shipped);
  background: rgba(52,211,153,0.10);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 5px 10px;
  border-radius: 999px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--status-shipped);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.featured-name {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
  background: linear-gradient(180deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.featured-tagline {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 14px;
}
.featured-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.featured-desc strong { color: var(--text); font-weight: 600; }

.featured-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}
.featured-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feat-icon {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent-dim);
  color: var(--accent-2);
  display: grid;
  place-items: center;
}
.feat-icon svg { width: 14px; height: 14px; }
.featured-features li > div { min-width: 0; }
.featured-features li strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 1px;
}
.featured-features li span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}

.featured-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.featured-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  padding: 3px 9px;
  border-radius: 999px;
}

.featured-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.featured-cta .btn { padding: 10px 18px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* aside / device mock */
.featured-aside {
  padding: 40px;
  background:
    radial-gradient(ellipse at center, rgba(139,92,246,0.10), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-3));
  border-left: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
}
.device-frame {
  width: 100%;
  max-width: 360px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(139,92,246,0.18);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform .4s ease;
}
.featured-card:hover .device-frame { transform: rotate(0deg) translateY(-3px); }

.device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.device-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a3a4a;
}
.device-bar span:nth-child(1) { background: #ff5f57; }
.device-bar span:nth-child(2) { background: #febc2e; }
.device-bar span:nth-child(3) { background: #28c840; }
.device-bar em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-pill {
  width: 76px; height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.mock-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.mock-deadline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.mock-deadline-name { color: var(--text); }
.mock-deadline-time {
  font-family: var(--font-mono);
  color: var(--accent-2);
}
.mock-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mock-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.mock-bar > span {
  height: 6px;
  width: 100%;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  display: block;
}
.mock-bar > span::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--fill, 50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.mock-bar em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}

@media (max-width: 960px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-aside {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 32px;
  }
  .device-frame { max-width: 420px; }
}
@media (max-width: 1000px) {
  .featured-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .featured {
    min-height: 0;
    padding: 80px 0;
    display: block;
  }
}
@media (max-width: 560px) {
  .featured-main { padding: 22px; }
  .featured-features { grid-template-columns: 1fr; }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   PROJECTS (currently commented in HTML)
   ========================================================= */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  transition: all .15s ease;
}
.filter-tab:hover { color: var(--text); border-color: var(--border-2); }
.filter-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
  display: block;
  position: relative;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.project-card h3 { margin: 8px 0 6px; font-size: 17px; }
.project-card p { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; }
.project-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-shipped  { background: rgba(52,211,153,0.12); color: var(--status-shipped); }
.status-active   { background: rgba(251,191,36,0.12); color: var(--status-active); }
.status-research { background: rgba(96,165,250,0.12); color: var(--status-research); }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-tags span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

/* =========================================================
   SHOWCASE
   ========================================================= */
.showcase-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.showcase-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
}
.showcase-tab.is-active {
  background: var(--accent-dim);
  color: var(--accent-2);
  border-color: var(--accent);
}
.showcase-panels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 360px;
}
.showcase-panel { display: none; }
.showcase-panel.is-active { display: block; }

.code-wrap { position: relative; }
.code-wrap pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
}
.code-copy {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.code-copy:hover { color: var(--text); border-color: var(--accent); }

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.pipe-node {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  cursor: help;
  transition: transform .2s ease, border-color .2s ease;
}
.pipe-node:hover { border-color: var(--accent); transform: translateY(-2px); }
.pipe-node::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 12px;
  border: 1px solid var(--border-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.pipe-node:hover::after { opacity: 1; }
.pipe-arrow {
  width: 28px; height: 2px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.pipe-arrow::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: flow 1.8s linear infinite;
}
@keyframes flow {
  0%   { left: -30%; }
  100% { left: 100%; }
}

.report table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}
.report th, .report td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.report th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

/* =========================================================
   MEDIA
   ========================================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.media-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a1b4d, #1b1330);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.play-btn {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.podcast-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}
.waveform span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: wf 1.1s ease-in-out infinite;
}
.waveform span:nth-child(odd)  { animation-duration: .9s; }
.waveform span:nth-child(3n)   { animation-duration: 1.4s; }
.waveform span:nth-child(5n)   { animation-duration: .7s; }
@keyframes wf {
  0%, 100% { height: 6px; }
  50%      { height: 32px; }
}
.podcast-play {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-size: 14px;
}

/* =========================================================
   PUBLICATIONS
   ========================================================= */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.pub-item h3 { margin: 0 0 6px; font-size: 17px; }
.pub-meta { color: var(--text-mute); font-size: 13px; margin-bottom: 10px; }
.pub-links { display: flex; gap: 14px; }
.pub-links a {
  font-size: 13px;
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.pub-links a:hover { border-bottom-color: var(--accent-2); }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-mono);
}
.member-card h3 { margin: 4px 0; font-size: 16px; }
.member-card p  { margin: 0; color: var(--text-dim); font-size: 13px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo { width: 42px; height: 42px; }
.footer-name { font-weight: 700; }
.footer-sub  { color: var(--text-mute); font-size: 13px; }
.footer-links {
  display: flex;
  gap: 14px;
}
.footer-links a {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease;
}
.footer-links a:hover { color: var(--accent-2); border-color: var(--accent); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 18px;
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .section { padding: 90px 0; }
  .about {
    min-height: 0;
    padding: 80px 0;
    display: block;
  }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 24px;
    width: 100%;
  }
  .nav-cta { margin: 8px 24px; width: calc(100% - 48px); }

  .about-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-logo { width: 240px; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 36px; }
  .about-meta { gap: 22px; }
}
