/* ============================================
   TECH STACK PLAYBOOK — Kajabi Theme
   Dark Glassmorphic Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-primary: #060b18;
  --bg-surface: #0c1225;
  --bg-elevated: #111833;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;
  --glass-bg-hover: rgba(255, 255, 255, 0.06);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.06), transparent 40%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);

  /* Accent Colors */
  --accent-cyan: #00d4ff;
  --accent-purple: #7c3aed;
  --accent-teal: #06b6d4;
  --accent-pink: #ec4899;

  /* Text */
  --text-primary: #f0f4ff;
  --text-secondary: #94a3c4;
  --text-muted: #5b6b8a;
  --text-accent: #00d4ff;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  --container-wide: 1400px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fff;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.section-padding {
  padding: var(--section-padding) 0;
}

/* --- Glass Card Component --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.glass-card:hover::before {
  opacity: 1;
}

/* --- Typography --- */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.text-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section Label (eyebrow) --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gradient-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 0 60px rgba(124, 58, 237, 0.1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 80px rgba(124, 58, 237, 0.15);
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 24px rgba(0, 212, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* --- Background Mesh Overlay --- */
.mesh-bg {
  position: relative;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

.mesh-bg > * {
  position: relative;
  z-index: 1;
}

/* --- Grid Noise Texture --- */
.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Divider Line --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  border: none;
  margin: 0;
}

/* --- Badge/Tag --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
}

/* --- Grid Dot Pattern --- */
.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================================
   NAVIGATION — Glassmorphic Sticky Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background: rgba(6, 11, 24, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0 2rem;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 212, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

/* Subtle top glow line */
.nav__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), rgba(124, 58, 237, 0.3), transparent);
}

/* Brand */
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__logo {
  height: 32px;
  width: auto;
}

/* Desktop Links */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}

.nav__link:hover::after {
  width: 60%;
}

/* CTA in nav */
.nav__cta {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Dropdown */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 2rem 1.5rem;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-width: var(--container-max);
  margin: -1px auto 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav__mobile-link:hover {
  color: var(--text-primary);
}

.nav__mobile-link:last-of-type {
  border-bottom: none;
}

/* Responsive nav */
@media (max-width: 980px) {
  .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    transition: none;
  }

  .nav__menu,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__inner {
    padding: 0 1.25rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .nav__mobile {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hero > .container {
  width: 100%;
  min-width: 0;
}

.hero__content {
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.hero__proof-item {
  display: flex;
  flex-direction: column;
}

.hero__proof-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__proof-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Animated gradient orb */
.hero__orb {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.08), transparent 70%);
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@media (max-width: 640px) {
  .hero__orb { display: none; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.about__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: inherit;
  pointer-events: none;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about__stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.about__stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.about__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.services__header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-cyan);
  transition: gap var(--transition-fast);
}

.service-card:hover .service-card__link {
  gap: 0.7rem;
}

/* Cards with a code-based animation visual need more breathing room
   and a wider layout, so drop to 2-col earlier. */
.service-card--aws-arch,
.service-card--k8s-arch,
.service-card--devsecops {
  padding-top: 1.5rem;
}

.service-card__animation {
  position: relative;
  width: 100%;
  margin: 0 0 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(124, 58, 237, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 50%, rgba(0, 212, 255, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #05091a 0%, #070d1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 20px rgba(0, 0, 0, 0.35);
}

/* ============================================
   AWS ARCHITECTURE ANIMATION
   ============================================ */
.aws-anim {
  --aws-icon: 28px;
  --aws-branch-gap: 22px;
  --aws-border: rgba(255, 255, 255, 0.08);
  --aws-track: rgba(56, 189, 248, 0.14);
  font-family: var(--font-body);
}

.aws-anim__frame {
  position: relative;
  padding: 26px 10px 16px 4px;
  min-height: 140px;
}

.aws-anim__cloud-bg {
  position: absolute;
  top: 12px;
  bottom: 8px;
  left: calc(4px + var(--aws-icon) + 24px);
  right: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.aws-anim__cloud-bg::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.aws-anim__cloud-label {
  position: absolute;
  top: 4px;
  left: calc(4px + var(--aws-icon) + 34px);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 3px;
  background: var(--bg-primary);
  border: 1px solid var(--aws-border);
  border-radius: 5px;
  z-index: 3;
}

.aws-anim__cloud-logo {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: block;
}

.aws-anim__cloud-label span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: none;
}

.aws-anim__row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  z-index: 2;
  padding: 0 2px;
}

.aws-anim__col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--aws-icon);
  height: var(--aws-icon);
  position: relative;
  z-index: 3;
}

.aws-anim__icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.aws-anim__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

/* Clients is an outline icon with no gradient rect — give it a soft glow
   background so it has visual weight alongside the branded AWS icons. */
.aws-anim__icon--clients {
  width: calc(var(--aws-icon) - 6px);
  height: calc(var(--aws-icon) - 6px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(139, 92, 246, 0.06) 60%,
    transparent 100%
  );
}

.aws-anim__icon--clients svg {
  width: 58%;
  height: 58%;
  filter: none;
}

.aws-anim__label { display: none; }

.aws-anim__connector {
  flex: 1 1 auto;
  min-width: 18px;
  height: var(--aws-icon);
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* First connector (Clients → API Gateway) is wider so Clients clearly
   sits outside the AWS cloud box. */
.aws-anim__connector[data-conn="0"] {
  flex-grow: 1.7;
  min-width: 28px;
}

.aws-anim__track {
  width: 100%;
  height: 1px;
  background: var(--aws-track);
}

.aws-anim__proto { display: none; }

.aws-anim__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* ── Branch from API Gateway: vertical drop to ECS, then horizontal to RDS ──
   The branch is anchored so its left edge sits at (API-GW-center − icon/2).
   With align-items: flex-start, both children (the vertical connector and
   the branch-row) start at the branch's left edge, which means the vertical
   connector and the first col of the branch-row (ECS) both land horizontally
   centered on API Gateway — regardless of how wide the branch-row grows. */
.aws-anim__branch {
  position: absolute;
  top: 100%;
  left: calc(50% - var(--aws-icon) / 2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
}

.aws-anim__branch-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Horizontal connector inside the branch row (ECS → RDS). Fixed width tied
   to --aws-branch-gap so it matches the length of the vertical connector. */
.aws-anim__branch-row .aws-anim__connector {
  flex: 0 0 auto;
  width: var(--aws-branch-gap);
  min-width: 0;
}

.aws-anim__connector--vertical {
  flex: none;
  min-width: 0;
  width: var(--aws-icon);
  height: var(--aws-branch-gap);
}

.aws-anim__connector--vertical .aws-anim__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: auto;
  transform: translateX(-50%);
}

/* Within the API Gateway col, the icon must sit above the branch so the
   vertical dots disappear behind it at the top of their path — matching
   how the horizontal dots pass behind each icon in the top row. */
.aws-anim__col--apigw > .aws-anim__icon {
  position: relative;
  z-index: 2;
}
.aws-anim__col--apigw > .aws-anim__branch {
  z-index: 1;
}

/* Wider cards at tablet / desktop — slightly larger icons + more breathing room. */
@media (min-width: 768px) {
  .aws-anim { --aws-icon: 32px; --aws-branch-gap: 25px; }
  .aws-anim__frame { padding: 28px 16px 18px 6px; min-height: 155px; }
  .aws-anim__cloud-bg { left: calc(6px + var(--aws-icon) + 28px); }
  .aws-anim__cloud-label { left: calc(6px + var(--aws-icon) + 38px); }
}
@media (min-width: 1100px) {
  .aws-anim { --aws-icon: 36px; --aws-branch-gap: 27px; }
  .aws-anim__frame { padding: 30px 20px 20px 8px; min-height: 170px; }
  .aws-anim__cloud-bg { left: calc(8px + var(--aws-icon) + 32px); }
  .aws-anim__cloud-label { left: calc(8px + var(--aws-icon) + 42px); }
}

/* ============================================
   AWS ADVANCED LIVE ARCHITECTURE ANIMATION
   ============================================ */
.aws2-anim {
  font-family: var(--font-body);
}

.service-card--aws-arch-adv {
  padding-top: 1.5rem;
}

.aws2-anim__frame {
  display: flex;
  flex-direction: column;
  height: 230px;
  position: relative;
  overflow: hidden;
}

.aws2-anim__topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, rgba(255, 153, 0, 0.5) 30%, rgba(100, 152, 255, 0.45) 70%, transparent 90%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 4;
}

/* Status strip */
.aws2-anim__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  z-index: 3;
  gap: 8px;
}

.aws2-anim__region {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.03em;
  min-width: 0;
}

.aws2-anim__region-tag {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 5px;
  border-radius: 3px;
  background: rgba(255, 153, 0, 0.14);
  border: 1px solid rgba(255, 153, 0, 0.35);
  color: #ff9900;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.aws2-anim__live {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: #10b981;
  letter-spacing: 0.12em;
  font-weight: 700;
  flex-shrink: 0;
}

.aws2-anim__live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.9);
  animation: aws2-pulse 1.4s ease-in-out infinite;
}

@keyframes aws2-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.aws2-anim__rps {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.aws2-anim__rps-val {
  font-size: 11px;
  font-weight: 700;
  color: #ff9900;
  font-variant-numeric: tabular-nums;
}

/* SVG Canvas */
.aws2-anim__canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255, 153, 0, 0.03), transparent 70%);
}

.aws2-anim__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Edge paths */
.aws2-anim__edge {
  fill: none;
  stroke-width: 0.7;
  opacity: 0.35;
  stroke-dasharray: 2, 2;
  animation: aws2-edge-flow 4s linear infinite;
}

.aws2-anim__edge--sync { stroke: rgba(100, 152, 255, 0.45); }
.aws2-anim__edge--async { stroke: rgba(167, 139, 250, 0.45); }

@keyframes aws2-edge-flow { to { stroke-dashoffset: -8; } }

/* Footer */
.aws2-anim__footer {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  padding: 7px 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  gap: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.aws2-anim__metrics {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.aws2-anim__metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  gap: 6px;
}

.aws2-anim__metric-label {
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 6.5px;
  white-space: nowrap;
}

.aws2-anim__metric-val {
  color: #00d4ff;
  font-weight: 700;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.aws2-anim__metric-val.is-warn { color: #f59e0b; }
.aws2-anim__metric-val.is-ok { color: #10b981; }

/* Event log */
.aws2-anim__events {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.aws2-anim__events-label {
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}

.aws2-anim__events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  overflow: hidden;
}

.aws2-anim__event {
  display: flex;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  white-space: nowrap;
  opacity: 0;
  animation: aws2-event-in 0.35s ease forwards;
  overflow: hidden;
  align-items: center;
}

.aws2-anim__event-time {
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  font-size: 6.2px;
  font-weight: 500;
}

.aws2-anim__event-method {
  color: #a78bfa;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 6.2px;
  min-width: 22px;
}

.aws2-anim__event-name {
  color: rgba(255, 255, 255, 0.72);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.aws2-anim__event-status {
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 6.2px;
}

.aws2-anim__event-status.is-err { color: #ef4444; }

.aws2-anim__event-dur {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  font-size: 6.8px;
  font-variant-numeric: tabular-nums;
  min-width: 26px;
  text-align: right;
}

@keyframes aws2-event-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (min-width: 768px) {
  .aws2-anim__frame { height: 240px; }
  .aws2-anim__status { padding: 8px 14px; }
  .aws2-anim__rps-val { font-size: 12px; }
  .aws2-anim__footer { padding: 8px 14px 9px; }
  .aws2-anim__metric-val { font-size: 10px; }
}

@media (min-width: 1100px) {
  .aws2-anim__frame { height: 250px; }
  .aws2-anim__status { padding: 8px 16px; }
  .aws2-anim__region { font-size: 8.5px; }
  .aws2-anim__rps-val { font-size: 13px; }
  .aws2-anim__footer { padding: 8px 16px 10px; }
  .aws2-anim__metric-label { font-size: 7px; }
  .aws2-anim__metric-val { font-size: 10.5px; }
  .aws2-anim__event { font-size: 7.5px; }
}

/* ============================================
   KUBERNETES ARCHITECTURE ANIMATION
   ============================================ */
.k8s-anim {
  --k8s-icon: 20px;
  --k8s-fwd-track: rgba(56, 189, 248, 0.3);
  --k8s-rev-track: rgba(148, 163, 184, 0.22);
  font-family: var(--font-body);
}

.k8s-anim__frame {
  position: relative;
  padding: 22px 4px 12px 4px;
  min-height: 150px;
}

.k8s-anim__cluster-bg {
  position: absolute;
  top: 12px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.018);
  pointer-events: none;
  z-index: 1;
}

.k8s-anim__cluster-label {
  position: absolute;
  top: 0;
  right: 14px;
  display: block;
  z-index: 5;
}

.k8s-anim__cluster-logo {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.k8s-anim__ns-label {
  position: absolute;
  top: 17px;
  left: 26px;
  display: block;
  z-index: 5;
}

.k8s-anim__ns-logo {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.k8s-anim__stage {
  box-sizing: border-box;
  position: absolute;
  top: 26px;
  bottom: 14px;
  left: 22px;
  right: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px;
  overflow: visible;
}

.k8s-anim__pods-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.k8s-anim__pod-slot {
  width: var(--k8s-icon);
  height: var(--k8s-icon);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k8s-anim__pod-slot > svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: scale(0.35);
  transform-origin: center center;
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.k8s-anim__pod-slot--on > svg {
  opacity: 1;
  transform: scale(1);
}

.k8s-anim__control-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 3;
}

.k8s-anim__ctrl-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Left group = ing + svc (2 icons, 1 connector); right group = rs + deploy + hpa
   (3 icons, 2 connectors). Left gap = icon + 2×right_gap so the ing→svc span
   matches the rs←deploy←hpa span. Centered with an inter-group gap so neither
   edge gets clipped. */
.k8s-anim__ctrl-group:first-child {
  gap: 52px;
}

.k8s-anim__col {
  flex-shrink: 0;
  width: var(--k8s-icon);
  height: var(--k8s-icon);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shift ing visually to the right so its icon sits inside the ns dashed
   border. Transform leaves the flex layout intact, so svc and the right
   group stay put — getBoundingClientRect still returns the shifted rect,
   so the ing→svc path is drawn to the new position. */
.k8s-anim__col[data-anchor="ing"] {
  transform: translateX(20px);
}

/* Nudge the rs/deploy/hpa group left so hpa stays inside the ns box. Same
   transform trick — layout is untouched so the left group and pods stay put. */
.k8s-anim__ctrl-group:last-child {
  transform: translateX(-18px);
}

.k8s-anim__icon {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.k8s-anim__graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.k8s-anim__path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
}

.k8s-anim__path--fwd {
  stroke: var(--k8s-fwd-track);
}

.k8s-anim__path--rev {
  stroke: var(--k8s-rev-track);
}

/* Fan paths are dormant until their target pod is live; fade in with the
   pod so the line appears to draw in as scaling completes. */
.k8s-anim__path[data-target-pod] {
  opacity: 0;
  transition: opacity 450ms ease;
}

.k8s-anim__path[data-target-pod].k8s-anim__path--live {
  opacity: 1;
}

@media (min-width: 768px) {
  .k8s-anim { --k8s-icon: 22px; }
  .k8s-anim__frame { padding: 24px 6px 14px 6px; min-height: 160px; }
  .k8s-anim__cluster-bg { top: 14px; left: 8px; right: 8px; }
  .k8s-anim__cluster-logo { width: 24px; height: 24px; }
  .k8s-anim__stage { top: 28px; bottom: 16px; left: 24px; right: 24px; padding: 10px 16px; }
  .k8s-anim__ns-label { top: 19px; left: 28px; }
  .k8s-anim__ns-logo { width: 20px; height: 20px; }
  .k8s-anim__pods-row { gap: 12px; }
  .k8s-anim__control-row { gap: 36px; }
  .k8s-anim__ctrl-group { gap: 18px; }
  .k8s-anim__ctrl-group:first-child { gap: 58px; }
  .k8s-anim__col[data-anchor="ing"] { transform: translateX(22px); }
  .k8s-anim__ctrl-group:last-child { transform: translateX(-20px); }
}

@media (min-width: 1100px) {
  .k8s-anim { --k8s-icon: 24px; }
  .k8s-anim__frame { padding: 26px 8px 16px 8px; min-height: 175px; }
  .k8s-anim__cluster-bg { top: 16px; left: 10px; right: 10px; }
  .k8s-anim__cluster-logo { width: 26px; height: 26px; }
  .k8s-anim__stage { top: 30px; bottom: 18px; left: 26px; right: 26px; padding: 12px 18px; }
  .k8s-anim__ns-label { top: 21px; left: 30px; }
  .k8s-anim__ns-logo { width: 22px; height: 22px; }
  .k8s-anim__pods-row { gap: 14px; }
  .k8s-anim__control-row { gap: 40px; }
  .k8s-anim__ctrl-group { gap: 20px; }
  .k8s-anim__ctrl-group:first-child { gap: 64px; }
  .k8s-anim__col[data-anchor="ing"] { transform: translateX(28px); }
  .k8s-anim__ctrl-group:last-child { transform: translateX(-28px); }
}

/* ============================================
   DEVSECOPS DEPENDENCY SCANNER ANIMATION
   ============================================ */
.dsec-anim {
  --dsec-bg: #0a1018;
  --dsec-border: rgba(255, 255, 255, 0.07);
  --dsec-text: rgba(255, 255, 255, 0.92);
  --dsec-text-dim: rgba(255, 255, 255, 0.55);
  --dsec-text-muted: rgba(255, 255, 255, 0.32);
  --dsec-cyan: #22d3ee;
  --dsec-cyan-dim: rgba(34, 211, 238, 0.5);
  --dsec-cyan-glow: rgba(34, 211, 238, 0.16);
  --dsec-green: #0cbf6a;
  --dsec-green-dim: rgba(12, 191, 106, 0.6);
  --dsec-green-bg: rgba(12, 191, 106, 0.07);
  --dsec-green-border: rgba(12, 191, 106, 0.18);
  --dsec-red: #f87171;
  --dsec-red-dim: rgba(248, 113, 113, 0.7);
  --dsec-red-bg: rgba(248, 113, 113, 0.08);
  --dsec-red-border: rgba(248, 113, 113, 0.2);
  --dsec-yellow: #fbbf24;
  --dsec-yellow-dim: rgba(251, 191, 36, 0.6);
  --dsec-yellow-bg: rgba(251, 191, 36, 0.07);
  --dsec-yellow-border: rgba(251, 191, 36, 0.18);
  --dsec-row-h: 22px;
  font-family: var(--font-body);
}

.service-card--devsecops .service-card__animation {
  background: #0a1018;
}

.dsec-anim__frame {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dsec-anim__topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, var(--dsec-cyan-dim) 50%, transparent 90%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 4;
}

.dsec-anim__glow {
  position: absolute;
  top: -48px;
  right: -48px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--dsec-cyan-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.dsec-anim__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 11px;
  border-bottom: 1px solid var(--dsec-border);
  z-index: 3;
  gap: 8px;
  flex-shrink: 0;
}

.dsec-anim__header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.dsec-anim__shield {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(12, 191, 106, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dsec-anim__shield svg {
  width: 10px;
  height: 10px;
  color: var(--dsec-cyan);
}

.dsec-anim__title {
  font-size: 10px;
  font-weight: 600;
  color: var(--dsec-text);
  line-height: 1.15;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsec-anim__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 500;
  color: var(--dsec-text-dim);
  flex-shrink: 0;
}

.dsec-anim__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dsec-cyan);
  box-shadow: 0 0 6px var(--dsec-cyan-dim);
  animation: dsec-pulse 1.2s ease-in-out infinite;
}

.dsec-anim.is-complete .dsec-anim__status-dot {
  background: var(--dsec-green);
  box-shadow: 0 0 6px var(--dsec-green-dim);
  animation: none;
}

@keyframes dsec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.dsec-anim__progress {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  z-index: 3;
  flex-shrink: 0;
}

.dsec-anim__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--dsec-cyan), var(--dsec-green));
  box-shadow: 0 0 10px var(--dsec-cyan-dim);
  transition: width 0.45s ease;
}

.dsec-anim__rows {
  position: relative;
  height: calc(var(--dsec-row-h) * 6);
  overflow: hidden;
  z-index: 2;
  flex-shrink: 0;
}

.dsec-anim__rows-track {
  position: relative;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsec-anim__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--dsec-row-h);
  background: linear-gradient(180deg, transparent, var(--dsec-cyan-glow), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.dsec-anim__row {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  height: var(--dsec-row-h);
  opacity: 0.35;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
  z-index: 2;
}

.dsec-anim__row.is-scanned { opacity: 1; }
.dsec-anim__row.is-threat { background: var(--dsec-red-bg); }
.dsec-anim__row.is-warn { background: var(--dsec-yellow-bg); }

.dsec-anim__row-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.dsec-anim__row-icon svg {
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.32);
  transition: color 0.4s ease;
}

.dsec-anim__row.is-safe .dsec-anim__row-icon {
  background: var(--dsec-green-bg);
  border-color: var(--dsec-green-border);
}
.dsec-anim__row.is-safe .dsec-anim__row-icon svg { color: var(--dsec-green); }

.dsec-anim__row.is-threat .dsec-anim__row-icon {
  background: var(--dsec-red-bg);
  border-color: var(--dsec-red-border);
}
.dsec-anim__row.is-threat .dsec-anim__row-icon svg { color: var(--dsec-red); }

.dsec-anim__row.is-warn .dsec-anim__row-icon {
  background: var(--dsec-yellow-bg);
  border-color: var(--dsec-yellow-border);
}
.dsec-anim__row.is-warn .dsec-anim__row-icon svg { color: var(--dsec-yellow); }

.dsec-anim__pkg {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  overflow: hidden;
}

.dsec-anim__pkg-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--dsec-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsec-anim__pkg-ver {
  font-size: 8px;
  color: var(--dsec-text-muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.dsec-anim__row.is-scanning .dsec-anim__pkg-name {
  background: linear-gradient(90deg, var(--dsec-text) 25%, var(--dsec-cyan) 50%, var(--dsec-text) 75%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: dsec-shimmer 1.4s ease infinite;
}

@keyframes dsec-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -180% 0; }
}

.dsec-anim__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dsec-text-muted);
  white-space: nowrap;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.dsec-anim__badge .bdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}

.dsec-anim__row.is-safe .dsec-anim__badge {
  background: var(--dsec-green-bg);
  border-color: var(--dsec-green-border);
  color: var(--dsec-green);
}
.dsec-anim__row.is-safe .dsec-anim__badge .bdot {
  background: var(--dsec-green);
  box-shadow: 0 0 4px var(--dsec-green-dim);
}

.dsec-anim__row.is-threat .dsec-anim__badge {
  background: var(--dsec-red-bg);
  border-color: var(--dsec-red-border);
  color: var(--dsec-red);
}
.dsec-anim__row.is-threat .dsec-anim__badge .bdot {
  background: var(--dsec-red);
  box-shadow: 0 0 4px var(--dsec-red-dim);
}

.dsec-anim__row.is-warn .dsec-anim__badge {
  background: var(--dsec-yellow-bg);
  border-color: var(--dsec-yellow-border);
  color: var(--dsec-yellow);
}
.dsec-anim__row.is-warn .dsec-anim__badge .bdot {
  background: var(--dsec-yellow);
  box-shadow: 0 0 4px var(--dsec-yellow-dim);
}

.dsec-anim__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 10px 5px;
  border-top: 1px solid var(--dsec-border);
  background: rgba(0, 0, 0, 0.3);
  gap: 4px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.dsec-anim__stat {
  text-align: center;
}

.dsec-anim__stat-val {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.dsec-anim__stat[data-stat="safe"] .dsec-anim__stat-val { color: var(--dsec-green); }
.dsec-anim__stat[data-stat="threat"] .dsec-anim__stat-val { color: var(--dsec-red); }
.dsec-anim__stat[data-stat="warn"] .dsec-anim__stat-val { color: var(--dsec-yellow); }

.dsec-anim__stat-val.is-loading {
  color: var(--dsec-text-muted) !important;
  text-shadow: none !important;
}

.dsec-anim__stat-val.is-lit {
  text-shadow: 0 0 14px currentColor;
}

.dsec-anim__stat-label {
  font-size: 7.5px;
  color: var(--dsec-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .dsec-anim { --dsec-row-h: 24px; }
  .dsec-anim__header { padding: 7px 12px; }
  .dsec-anim__shield { width: 19px; height: 19px; }
  .dsec-anim__shield svg { width: 11px; height: 11px; }
  .dsec-anim__title { font-size: 10.5px; }
  .dsec-anim__row { padding: 0 12px; }
  .dsec-anim__row-icon { width: 19px; height: 19px; }
  .dsec-anim__row-icon svg { width: 11px; height: 11px; }
  .dsec-anim__pkg-name { font-size: 11px; }
  .dsec-anim__pkg-ver { font-size: 9px; }
  .dsec-anim__stat-val { font-size: 13px; }
}

@media (min-width: 1100px) {
  .dsec-anim { --dsec-row-h: 28px; }
  .dsec-anim__header { padding: 8px 14px; }
  .dsec-anim__shield { width: 22px; height: 22px; }
  .dsec-anim__shield svg { width: 12px; height: 12px; }
  .dsec-anim__title { font-size: 11.5px; }
  .dsec-anim__status { font-size: 9px; }
  .dsec-anim__row { padding: 0 14px; }
  .dsec-anim__row-icon { width: 22px; height: 22px; }
  .dsec-anim__row-icon svg { width: 12px; height: 12px; }
  .dsec-anim__pkg-name { font-size: 12px; }
  .dsec-anim__pkg-ver { font-size: 9.5px; }
  .dsec-anim__badge { font-size: 8px; padding: 3px 8px; }
  .dsec-anim__footer { padding: 6px 14px 7px; }
  .dsec-anim__stat-val { font-size: 15px; }
  .dsec-anim__stat-label { font-size: 8.5px; }
}

/* ============================================
   KUBERNETES AUTO-SCALING ADVANCED ANIMATION
   ============================================ */
.k8s2-anim {
  font-family: var(--font-body);
}

.service-card--k8s-arch-adv {
  padding-top: 1.5rem;
}

.k8s2-anim__frame {
  display: flex;
  flex-direction: column;
  height: 230px;
  position: relative;
  overflow: hidden;
}

.k8s2-anim__topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, rgba(56, 189, 248, 0.5) 30%, rgba(100, 152, 255, 0.45) 70%, transparent 90%);
  opacity: 0.7;
  pointer-events: none;
}

/* ── Metrics bar ── */
.k8s2-anim__metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.k8s2-anim__stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.k8s2-anim__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.k8s2-anim__stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #6498ff;
  transition: color 0.3s ease;
  font-variant-numeric: tabular-nums;
}

.k8s2-anim__req-val {
  min-width: 34px;
}

.k8s2-anim__cpu-val {
  min-width: 34px;
}

.k8s2-anim__stat-val.is-hot {
  color: #f59e0b;
}

.k8s2-anim__stat-val.is-crit {
  color: #ef4444;
}

.k8s2-anim__sparkline {
  width: 52px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.k8s2-anim__spark-line {
  stroke: #6498ff;
  stroke-width: 1.2;
  fill: none;
  transition: stroke 0.3s ease;
}

.k8s2-anim__spark-line.is-hot {
  stroke: #f59e0b;
}

.k8s2-anim__spark-area {
  transition: fill 0.3s ease;
}

/* CPU bar */
.k8s2-anim__cpu-bar {
  width: 60px;
  max-width: 60px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.k8s2-anim__cpu-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(to right, #6498ff, #38bdf8);
  transition: width 0.6s ease, background 0.3s ease;
}

.k8s2-anim__cpu-fill.is-hot {
  background: linear-gradient(to right, #f59e0b, #ef4444);
}

/* ── Mesh area ── */
.k8s2-anim__mesh {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  position: relative;
  min-height: 0;
}

.k8s2-anim__lb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
}

.k8s2-anim__lb-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
}

.k8s2-anim__lb-icon {
  width: 36px;
  height: 36px;
  display: block;
  color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(100, 152, 255, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
}

.k8s2-anim__lb-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  animation: k8s2-anim-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes k8s2-anim-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.k8s2-anim__lb-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* SVG connection lines */
.k8s2-anim__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.k8s2-anim__line-path {
  fill: none;
  stroke: rgba(56, 189, 248, 0.2);
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.k8s2-anim__line-path.is-on {
  opacity: 1;
  animation: k8s2-anim-flow 1.2s linear infinite;
}

@keyframes k8s2-anim-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -10; }
}

/* ── Pod grid ── */
.k8s2-anim__pods {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 50px);
  row-gap: 14px;
  column-gap: 6px;
  align-content: center;
  position: relative;
  z-index: 1;
}

.k8s2-anim__pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background 0.3s ease;
}

.k8s2-anim__pod.is-visible {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.04);
}

.k8s2-anim__pod.is-spawning {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.06);
}

.k8s2-anim__pod.is-draining {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.05);
  opacity: 0.6;
}

.k8s2-anim__pod-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.k8s2-anim__pod.is-spawning .k8s2-anim__pod-dot,
.k8s2-anim__pod.is-draining .k8s2-anim__pod-dot {
  animation: k8s2-anim-blink 0.5s ease infinite alternate;
}

@keyframes k8s2-anim-blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.k8s2-anim__pod-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.55);
}

.k8s2-anim__pod-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

/* ── Footer ── */
.k8s2-anim__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.k8s2-anim__hpa {
  display: flex;
  align-items: center;
  gap: 5px;
}

.k8s2-anim__hpa-dot {
  font-size: 6px;
  color: #34d399;
  line-height: 1;
}

.k8s2-anim__hpa-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.k8s2-anim__hpa-status {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.k8s2-anim__hpa-status.is-out {
  color: #34d399;
}

.k8s2-anim__hpa-status.is-in {
  color: #f59e0b;
}

.k8s2-anim__hpa-status.is-crit {
  color: #ef4444;
}

.k8s2-anim__replicas {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.k8s2-anim__replica-count {
  font-weight: 700;
  color: #6498ff;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .k8s2-anim__frame { height: 240px; }
  .k8s2-anim__metrics { padding: 10px 22px 8px 6px; }
  .k8s2-anim__mesh { padding: 10px 16px; }
  .k8s2-anim__footer { padding: 7px 16px; }
}

@media (min-width: 1100px) {
  .k8s2-anim__frame { height: 250px; }
  .k8s2-anim__metrics { padding: 10px 24px 8px 8px; }
  .k8s2-anim__mesh { padding: 10px 18px; }
  .k8s2-anim__footer { padding: 7px 18px; }
  .k8s2-anim__pods { grid-template-rows: repeat(2, 54px); }
}

/* ============================================
   FULL-STACK ENGINEERING TERMINAL ANIMATION
   ============================================ */
.fstack-anim {
  font-family: var(--font-body);
}

.service-card--fullstack {
  padding-top: 1.5rem;
}

.fstack-anim__frame {
  display: flex;
  flex-direction: column;
  height: 230px;
  position: relative;
}

.fstack-anim__topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, rgba(0, 212, 255, 0.45) 30%, rgba(124, 58, 237, 0.5) 70%, transparent 90%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 4;
}

/* Terminal header bar */
.fstack-anim__header {
  display: flex;
  align-items: center;
  height: 24px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 10px;
  gap: 6px;
  flex-shrink: 0;
  z-index: 3;
}

.fstack-anim__header-dots {
  display: flex;
  gap: 3px;
}

.fstack-anim__header-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.fstack-anim__header-dots span:nth-child(1) { background: #ff5f57; }
.fstack-anim__header-dots span:nth-child(2) { background: #febc2e; }
.fstack-anim__header-dots span:nth-child(3) { background: #28c840; }

.fstack-anim__header-title {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
  text-align: center;
}

/* Pipeline stages */
.fstack-anim__pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  z-index: 2;
}

.fstack-anim__stage {
  display: flex;
  align-items: center;
  gap: 3px;
}

.fstack-anim__stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: all 0.4s ease;
}

.fstack-anim__stage-dot.is-active {
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}

.fstack-anim__stage-dot.is-done {
  border-color: #34d399;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

.fstack-anim__stage-lbl {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.fstack-anim__stage-lbl.is-active {
  color: rgba(0, 212, 255, 0.8);
}

.fstack-anim__stage-lbl.is-done {
  color: rgba(52, 211, 153, 0.7);
}

.fstack-anim__arrow {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.12);
  margin: 0 1px;
}

/* Terminal output area */
.fstack-anim__output {
  flex: 1;
  padding: 14px 12px 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fstack-anim__line {
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.fstack-anim__line.is-visible {
  opacity: 1;
}

.fstack-anim__line .fstack-prompt {
  color: #34d399;
  font-weight: 600;
}

.fstack-anim__line .fstack-cmd {
  color: #f0f4ff;
}

.fstack-anim__line .fstack-out {
  color: rgba(255, 255, 255, 0.5);
}

.fstack-anim__line .fstack-ok {
  color: #34d399;
}

.fstack-anim__line .fstack-res {
  color: #00d4ff;
}

.fstack-anim__line .fstack-url {
  color: #a78bfa;
}

/* Footer status bar */
.fstack-anim__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  z-index: 3;
}

.fstack-anim__footer-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.5s ease;
}

.fstack-anim__footer-status.is-ok {
  color: #34d399;
}

.fstack-anim__footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
}

.fstack-anim__footer-dot.is-ok {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.fstack-anim__footer-url {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.5s ease;
}

.fstack-anim__footer-url.is-ok {
  color: rgba(167, 139, 250, 0.7);
}

/* Responsive */
@media (min-width: 768px) {
  .fstack-anim__frame { height: 240px; }
  .fstack-anim__header { padding: 0 12px; }
  .fstack-anim__output { padding: 14px 14px 8px; font-size: 9.5px; line-height: 15px; }
  .fstack-anim__pipeline { padding: 8px 12px; }
  .fstack-anim__stage-lbl { font-size: 7.5px; }
  .fstack-anim__footer { padding: 6px 14px 7px; }
}

@media (min-width: 1100px) {
  .fstack-anim__frame { height: 250px; }
  .fstack-anim__header { padding: 0 14px; }
  .fstack-anim__output { padding: 16px 16px 10px; font-size: 10px; line-height: 16px; }
  .fstack-anim__pipeline { padding: 8px 12px; gap: 5px; }
  .fstack-anim__stage-lbl { font-size: 8px; }
  .fstack-anim__footer { padding: 6px 16px 7px; }
  .fstack-anim__footer-status { font-size: 8.5px; }
  .fstack-anim__footer-url { font-size: 8.5px; }
}

/* ============================================
   MOBILE APP — REACT NATIVE IDE ANIMATION
   ============================================ */
.mobile-anim {
  --ma-border: rgba(255, 255, 255, 0.06);
  --ma-ln: rgba(255, 255, 255, 0.18);
  --ma-cursor: #528bff;
  --ma-kw: #c678dd;
  --ma-fn: #61afef;
  --ma-str: #98c379;
  --ma-tag: #e06c75;
  --ma-attr: #d19a66;
  --ma-br: rgba(255, 255, 255, 0.45);
  --ma-txt: rgba(255, 255, 255, 0.78);
  --ma-green: #34d399;
  font-family: var(--font-body);
}

.service-card--mobile {
  padding-top: 1.5rem;
}

.mobile-anim__frame {
  display: flex;
  height: 230px;
  position: relative;
}

/* ── Editor (left panel) ── */
.mobile-anim__editor {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ma-border);
  min-width: 0;
  overflow: hidden;
}

.mobile-anim__tab-bar {
  display: flex;
  align-items: center;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--ma-border);
  padding: 0 8px;
  flex-shrink: 0;
}

.mobile-anim__tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  height: 100%;
  font-size: 9px;
  font-weight: 500;
  color: var(--ma-txt);
  border-bottom: 1.5px solid var(--ma-green);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-anim__tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ma-green);
  opacity: 0.7;
}

.mobile-anim__code-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.mobile-anim__gutter {
  width: 26px;
  flex-shrink: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 6px;
  background: rgba(0, 0, 0, 0.15);
}

.mobile-anim__ln {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 13px;
  color: var(--ma-ln);
  font-variant-numeric: tabular-nums;
}

.mobile-anim__ln.is-hi {
  color: rgba(255, 255, 255, 0.4);
}

.mobile-anim__code {
  flex: 1;
  padding: 6px 8px;
  overflow: hidden;
}

.mobile-anim__cl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 13px;
  white-space: pre;
  color: var(--ma-txt);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mobile-anim__cl.is-visible { opacity: 1; }
.mobile-anim__cl .ma-kw { color: var(--ma-kw); }
.mobile-anim__cl .ma-fn { color: var(--ma-fn); }
.mobile-anim__cl .ma-str { color: var(--ma-str); }
.mobile-anim__cl .ma-tag { color: var(--ma-tag); }
.mobile-anim__cl .ma-attr { color: var(--ma-attr); }
.mobile-anim__cl .ma-br { color: var(--ma-br); }

.mobile-anim__cursor {
  display: inline-block;
  width: 1.5px;
  height: 11px;
  background: var(--ma-cursor);
  vertical-align: middle;
  margin-left: 1px;
  animation: mobile-anim-blink 1s step-end infinite;
  opacity: 0;
}

.mobile-anim__cursor.is-on { opacity: 1; }

@keyframes mobile-anim-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Preview (right panel) ── */
.mobile-anim__preview {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.mobile-anim__bbar {
  display: flex;
  align-items: center;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--ma-border);
  padding: 0 8px;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-anim__bdots {
  display: flex;
  gap: 3px;
}

.mobile-anim__bdots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mobile-anim__bdots span:nth-child(1) { background: #ff5f57; }
.mobile-anim__bdots span:nth-child(2) { background: #febc2e; }
.mobile-anim__bdots span:nth-child(3) { background: #28c840; }

.mobile-anim__burl {
  flex: 1;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--ma-ln);
}

.mobile-anim__pvc {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

/* Loader */
.mobile-anim__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mobile-anim__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--ma-green);
  border-radius: 50%;
  animation: mobile-anim-spin 0.8s linear infinite;
}

@keyframes mobile-anim-spin { to { transform: rotate(360deg); } }

.mobile-anim__loader-text {
  font-size: 8px;
  color: var(--ma-ln);
}

/* App content */
.mobile-anim__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-anim__app.is-visible {
  opacity: 1;
  transform: scale(1);
}

.mobile-anim__app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-anim__app-icon.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-anim__app-icon svg {
  width: 14px;
  height: 14px;
  color: var(--ma-green);
}

.mobile-anim__app-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #f0f4ff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-anim__app-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-anim__app-count {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(4px);
}

.mobile-anim__app-count.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-anim__app-count.is-bump {
  transform: scale(1.15);
}

.mobile-anim__app-label {
  font-size: 8px;
  color: var(--ma-ln);
  margin-top: -4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-anim__app-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-anim__app-trend {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--ma-green);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: -2px;
}

.mobile-anim__app-trend.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-anim__app-btn {
  padding: 4px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 9px;
  font-weight: 600;
  color: var(--ma-green);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-anim__app-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HMR effects */
.mobile-anim__hmr-flash {
  position: absolute;
  inset: 0;
  background: rgba(52, 211, 153, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.mobile-anim__hmr-flash.is-on {
  opacity: 1;
}

.mobile-anim__hmr-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  color: var(--ma-green);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 6;
}

.mobile-anim__hmr-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sparkle particles */
.mobile-anim__spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ma-green);
  pointer-events: none;
  z-index: 7;
  opacity: 0;
}

.mobile-anim__spark.is-go {
  animation: mobile-anim-spark 0.6s ease-out forwards;
}

@keyframes mobile-anim-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

/* Responsive */
@media (min-width: 768px) {
  .mobile-anim__frame { height: 240px; }
  .mobile-anim__cl { font-size: 9px; line-height: 14px; }
  .mobile-anim__ln { font-size: 9px; line-height: 14px; }
  .mobile-anim__app-count { font-size: 22px; }
}

@media (min-width: 1100px) {
  .mobile-anim__frame { height: 250px; }
  .mobile-anim__cl { font-size: 9.5px; line-height: 14.5px; }
  .mobile-anim__ln { font-size: 9.5px; line-height: 14.5px; }
  .mobile-anim__gutter { width: 28px; }
  .mobile-anim__code { padding: 6px 10px; }
  .mobile-anim__app-count { font-size: 24px; }
  .mobile-anim__app-title { font-size: 15px; }
}

/* ============================================
   AI & ML NEURAL INFERENCE ANIMATION
   ============================================ */
.aiml-anim {
  font-family: var(--font-body);
}

.service-card--ai-ml {
  padding-top: 1.5rem;
}

.aiml-anim__frame {
  display: flex;
  flex-direction: column;
  height: 230px;
  position: relative;
}

.aiml-anim__topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, rgba(236, 72, 153, 0.45) 30%, rgba(124, 58, 237, 0.5) 70%, transparent 90%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 4;
}

/* Prompt bar */
.aiml-anim__prompt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  z-index: 3;
}

.aiml-anim__prompt-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.aiml-anim__prompt-text {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.aiml-anim__prompt-text span {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.aiml-anim__prompt-text span.is-visible {
  opacity: 1;
}

.aiml-anim__prompt-model {
  font-family: var(--font-mono);
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
  flex-shrink: 0;
}

/* Neural network */
.aiml-anim__network {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px 2px;
  position: relative;
  z-index: 2;
}

.aiml-anim__net-svg {
  width: 100%;
  height: 82px;
  display: block;
}

.aiml-anim__node {
  transition: fill 0.3s ease, filter 0.3s ease;
}

.aiml-anim__node--idle {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.8;
}

.aiml-anim__node--active {
  fill: rgba(124, 58, 237, 0.3);
  stroke: rgba(167, 139, 250, 0.6);
  stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}

.aiml-anim__node--fired {
  fill: rgba(0, 212, 255, 0.2);
  stroke: rgba(0, 212, 255, 0.5);
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.3));
}

.aiml-anim__edge {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.6;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.aiml-anim__edge--active {
  stroke: rgba(167, 139, 250, 0.35);
  stroke-width: 0.8;
}

.aiml-anim__edge--fired {
  stroke: rgba(0, 212, 255, 0.2);
  stroke-width: 0.7;
}

.aiml-anim__layer-label {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: rgba(255, 255, 255, 0.3);
  text-anchor: middle;
}

.aiml-anim__layer-label.is-active {
  fill: rgba(167, 139, 250, 0.6);
}

.aiml-anim__layer-label.is-fired {
  fill: rgba(0, 212, 255, 0.4);
}

/* Token stream output */
.aiml-anim__response {
  flex: 1;
  padding: 6px 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.aiml-anim__resp-header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.aiml-anim__resp-avatar {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aiml-anim__resp-avatar svg {
  width: 8px;
  height: 8px;
  color: #ec4899;
}

.aiml-anim__resp-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #ec4899;
  font-weight: 600;
}

.aiml-anim__resp-tokens {
  font-size: 9.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  min-height: 42px;
}

.aiml-anim__resp-tokens span {
  opacity: 0;
  transition: opacity 0.08s ease;
}

.aiml-anim__resp-tokens span.is-visible {
  opacity: 1;
}

.aiml-anim__thinking {
  display: none;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.aiml-anim__thinking.is-visible {
  display: flex;
}

.aiml-anim__thinking-text {
  color: rgba(255, 255, 255, 0.45);
}

.aiml-anim__thinking-dots {
  font-family: var(--font-mono);
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
  min-width: 12px;
}

.aiml-anim__resp-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: rgba(236, 72, 153, 0.6);
  vertical-align: middle;
  margin-left: 2px;
  animation: aiml-cursor-blink 0.6s step-end infinite;
  border-radius: 1px;
}

@keyframes aiml-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Footer stats */
.aiml-anim__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  z-index: 3;
}

.aiml-anim__stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.25);
}

.aiml-anim__stat-val {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.aiml-anim__stat-val.is-lit {
  color: #a78bfa;
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.aiml-anim__stat-val.is-lit-cyan {
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Responsive */
@media (min-width: 768px) {
  .aiml-anim__frame { height: 240px; }
  .aiml-anim__prompt { padding: 8px 14px; }
  .aiml-anim__prompt-text { font-size: 9.5px; }
  .aiml-anim__network { padding: 8px 16px 2px; }
  .aiml-anim__net-svg { height: 86px; }
  .aiml-anim__response { padding: 6px 14px; }
  .aiml-anim__resp-tokens { font-size: 10px; }
  .aiml-anim__footer { padding: 5px 14px 6px; }
  .aiml-anim__stat { font-size: 8px; }
}

@media (min-width: 1100px) {
  .aiml-anim__frame { height: 250px; }
  .aiml-anim__prompt { padding: 8px 16px; }
  .aiml-anim__prompt-text { font-size: 10px; }
  .aiml-anim__prompt-model { font-size: 7.5px; }
  .aiml-anim__network { padding: 8px 20px 4px; }
  .aiml-anim__net-svg { height: 90px; }
  .aiml-anim__response { padding: 8px 16px; }
  .aiml-anim__resp-tokens { font-size: 10.5px; }
  .aiml-anim__footer { padding: 5px 16px 6px; }
  .aiml-anim__stat { font-size: 8px; }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* Testimonials: JS masonry waterfall */
.testimonials__grid {
  position: relative;
  width: 100%;
}

.testimonials__grid .testimonial-card {
  position: absolute;
  width: calc((100% - 3rem) / 3);
}

.testimonial-card {
  padding: 2.25rem;
}

.testimonial-card--has-video {
  padding: 0;
}

.testimonial-card--has-video .testimonial-card__body {
  padding: 1.5rem 2.25rem 2.25rem;
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  flex-shrink: 0;
}

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

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Testimonial Highlight Text --- */
.testimonial-highlight {
  font-weight: 600;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.35), 0 0 22px rgba(0, 212, 255, 0.12);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* --- Video Thumbnail & Play Overlay --- */
.testimonial-card__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
}

.testimonial-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.65);
}

.testimonial-card__thumbnail:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.testimonial-card__thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(6, 11, 24, 0.25);
  transition: background 0.4s ease;
}

.testimonial-card__thumbnail:hover .testimonial-card__thumb-overlay {
  background: rgba(6, 11, 24, 0.1);
}

.testimonial-card__play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 2px solid rgba(0, 212, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.testimonial-card__thumbnail:hover .testimonial-card__play-circle {
  background: rgba(0, 212, 255, 0.22);
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25), 0 0 60px rgba(0, 212, 255, 0.08);
  transform: scale(1.1);
}

.testimonial-card__play-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease;
}

.testimonial-card__thumbnail:hover .testimonial-card__play-label {
  color: #fff;
}

/* Fallback when thumbnail image fails to load */
.testimonial-card__thumbnail--no-img {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
}

/* --- Video Testimonial Modal --- */
.testimonial-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.testimonial-modal.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.testimonial-modal__content {
  position: relative;
  width: 100%;
  max-width: 820px;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-modal.active .testimonial-modal__content {
  transform: scale(1) translateY(0);
}

.testimonial-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}

.testimonial-modal__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-modal__video {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 80px rgba(0, 212, 255, 0.08),
              0 0 40px rgba(124, 58, 237, 0.06),
              0 25px 60px rgba(0, 0, 0, 0.5);
}

.testimonial-modal__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.testimonial-modal__info {
  text-align: center;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.testimonial-modal__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.testimonial-modal__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   BLOG GRID SECTION
   ============================================ */
.blog-grid.section-padding {
  padding-top: clamp(2rem, 4vw, 4rem);
}

.blog-listings.section-padding {
  padding-top: clamp(1.5rem, 3vw, 3rem);
}

.blog-grid__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-grid__posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-post-card {
  overflow: hidden;
}

.blog-post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-post-card:hover .blog-post-card__image img {
  transform: scale(1.05);
}

.blog-post-card__content {
  padding: 1.75rem;
}

.blog-post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.blog-post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

.blog-post-card:hover .blog-post-card__title {
  color: var(--accent-cyan);
}

.blog-post-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
  position: relative;
}

.newsletter__inner {
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter__title {
  margin-bottom: 1rem;
}

.newsletter__desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder {
  color: var(--text-muted);
}

.newsletter__input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ============================================
   NEWSLETTER FORM (KAJABI EMBED) — overrides Kajabi's injected form markup
   ============================================ */
.nfke {
  position: relative;
}

.nfke__inner {
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.nfke__title {
  margin-bottom: 1rem;
}

.nfke__desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.nfke__form-wrapper {
  text-align: left;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.nfke__disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

.nfke__recaptcha-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  text-align: center;
  opacity: 0.7;
}

.nfke__recaptcha-notice a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Reset Kajabi's injected form chrome and re-skin to match newsletter */
.nfke__form-wrapper form,
.nfke__form-wrapper .kajabi-form,
.nfke__form-wrapper .kajabi-form--inline,
.nfke__form-wrapper #kajabi-form {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: var(--font-body) !important;
  color: var(--text-primary) !important;
}

.nfke__form-wrapper .kajabi-form__content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.nfke__form-wrapper .kajabi-form__title,
.nfke__form-wrapper .kajabi-form__subtitle {
  display: none !important;
}

/* Compact single-row layout: Name | Email | Subscribe.
   Email gets ~2x the share of Name; Subscribe sizes to its text. */
.nfke__form-wrapper fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nfke__form-wrapper .kajabi-form__form-item {
  margin: 0 !important;
  padding: 0 !important;
}

.nfke__form-wrapper input[type="text"],
.nfke__form-wrapper input[type="email"],
.nfke__form-wrapper input[type="tel"],
.nfke__form-wrapper input[type="url"],
.nfke__form-wrapper input[type="number"],
.nfke__form-wrapper select,
.nfke__form-wrapper textarea {
  width: 100% !important;
  padding: 0.9rem 1.25rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.nfke__form-wrapper textarea {
  min-height: 140px;
  resize: vertical;
}

.nfke__form-wrapper input::placeholder,
.nfke__form-wrapper textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
}

.nfke__form-wrapper input:focus,
.nfke__form-wrapper select:focus,
.nfke__form-wrapper textarea:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
}

/* Keep Kajabi's hidden recaptcha-field out of grid flow */
.nfke__form-wrapper .recaptcha-field {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.nfke__form-wrapper button,
.nfke__form-wrapper input[type="submit"],
.nfke__form-wrapper .kajabi-form__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  grid-column: auto;
  justify-self: stretch;
  width: auto !important;
  min-width: 0 !important;
  padding: 0.9rem 1.6rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  background: var(--gradient-primary) !important;
  border: 0 !important;
  border-radius: var(--radius-md) !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  text-transform: none !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 0 60px rgba(124, 58, 237, 0.1) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), text-shadow var(--transition-fast);
  margin-top: 0 !important;
  float: none !important;
}

.nfke__form-wrapper button:hover,
.nfke__form-wrapper input[type="submit"]:hover,
.nfke__form-wrapper .kajabi-form__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 80px rgba(124, 58, 237, 0.15) !important;
  color: #fff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 24px rgba(0, 212, 255, 0.5);
}

.nfke__form-wrapper button:focus,
.nfke__form-wrapper button:focus-visible,
.nfke__form-wrapper button:active,
.nfke__form-wrapper input[type="submit"]:focus,
.nfke__form-wrapper input[type="submit"]:focus-visible,
.nfke__form-wrapper input[type="submit"]:active,
.nfke__form-wrapper .kajabi-form__btn:focus,
.nfke__form-wrapper .kajabi-form__btn:focus-visible,
.nfke__form-wrapper .kajabi-form__btn:active {
  outline: none !important;
  border: 0 !important;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 80px rgba(124, 58, 237, 0.15) !important;
}

/* Hide any Kajabi branding the embed appends */
.nfke__form-wrapper .kjb-powered-by,
.nfke__form-wrapper [class*="powered-by"] {
  display: none !important;
}

/* Hide the floating reCAPTCHA badge — compliance text is rendered via
   .nfke__recaptcha-notice per Google's TOS. */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Success / error state messages */
.nfke__form-wrapper .kjb-form-message,
.nfke__form-wrapper [class*="form-success"],
.nfke__form-wrapper [class*="form-error"] {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .nfke__form-wrapper fieldset {
    grid-template-columns: 1fr;
  }

  .nfke__form-wrapper button,
  .nfke__form-wrapper .kajabi-form__btn {
    justify-self: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr 0.8fr 1fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.footer__brand-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.footer__partner {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer__partner:hover {
  opacity: 1;
}

.footer__partner-img {
  display: block;
  width: 90px;
  height: auto;
  filter: grayscale(100%) brightness(0.7) contrast(1.8);
}

.footer__partner--apple {
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.footer__partner-svg {
  display: block;
  width: 48px;
  height: auto;
  filter: grayscale(100%) brightness(0.7) contrast(1.8);
}

.footer__partner-caption {
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

.footer__brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
}
.footer__brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--glass-bg-hover);
  color: var(--accent-cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.07s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.14s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.21s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.28s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.42s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.49s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.56s; }
.stagger-children.visible > *:nth-child(n+10) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image-wrapper {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid .testimonial-card {
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 640px) {
  .hero__proof {
    gap: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .nfke__inner {
    padding: 2rem 1.25rem;
  }

  .nfke__form-wrapper button,
  .nfke__form-wrapper input[type="submit"] {
    width: 100%;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .services__grid,
  .blog-grid__posts {
    grid-template-columns: 1fr;
  }

  .testimonials__grid .testimonial-card {
    position: static;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .testimonials__grid .testimonial-card:last-child {
    margin-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer__bottom .footer__social {
    justify-content: center;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CASE STUDIES
   ============================================ */

.cs-grid__header,
.cs-featured__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cs-grid__subhead,
.cs-featured__subhead {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  margin-top: 0.85rem;
  line-height: 1.6;
}

.cs-grid__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.cs-featured__footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.cs-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition-med), background var(--transition-med);
}

.cs-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.cs-card__visual-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(var(--cs-accent-rgb), 0.22) 0%,
      rgba(var(--cs-accent-rgb), 0.04) 40%,
      transparent 70%),
    linear-gradient(135deg,
      rgba(var(--cs-accent-rgb), 0.08) 0%,
      rgba(255, 255, 255, 0.02) 100%);
}

.cs-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--cs-accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cs-accent-rgb), 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

/* Banner image (optional) — sits above gradient bg, below badge pills */
.cs-card__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center center;
}

.cs-card:hover .cs-card__visual-img,
.cs-card:focus-within .cs-card__visual-img {
  transform: scale(1.08);
}

/* When an image is present, dampen the grid + bg so the image reads cleanly,
   and add a subtle bottom gradient so the badge/industry pills stay legible. */
.cs-card__visual--has-image .cs-card__visual-bg {
  opacity: 0.35;
  z-index: 0;
}
.cs-card__visual--has-image::after {
  opacity: 0;
  z-index: 2;
}
.cs-card__visual--has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0) 70%,
      rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

.cs-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(var(--cs-accent-rgb), 0.15);
  color: var(--cs-accent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--cs-accent-rgb), 0.25);
  z-index: 3;
}

.cs-card__industry {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.cs-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-card__client {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.cs-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  transition: color var(--transition-fast);
}

.cs-card:hover .cs-card__title {
  color: var(--accent-cyan);
}

.cs-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.cs-card__tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}

.cs-card__metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.cs-card__metric-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cs-card__read-more {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.cs-card:hover .cs-card__read-more {
  gap: 10px;
}

.cs-hidden {
  display: none !important;
}

/* Persistent filter toolbar */
.cs-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem 0.85rem 1rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cs-filters__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent 100%);
  margin: 0 0.25rem;
}

.cs-filters__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4rem;
  min-width: 0;
}

.cs-filters__pills > .cs-filter-pill--all {
  flex: 0 0 auto;
  align-self: center;
}

.cs-filters__groups {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.cs-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.cs-filters__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cs-filters__search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.cs-filters__search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.65rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.cs-filters__search-input::placeholder {
  color: var(--text-muted);
}

.cs-filters__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.cs-filters__search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.cs-filters__search-input:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.cs-filters__search-input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), 0 4px 20px rgba(0, 212, 255, 0.08);
}

.cs-filters__search:focus-within .cs-filters__search-icon {
  color: var(--accent-cyan);
}

.cs-filters__search-clear {
  position: absolute;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cs-filters__search-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.cs-filters__group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.25rem;
  padding-left: 0.25rem;
}

.cs-filters__divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0.5rem;
}

.cs-filters__divider--tall {
  align-self: stretch;
  height: auto;
  min-height: 42px;
}

.cs-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.cs-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.cs-filter-pill--active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 4px 16px rgba(0, 212, 255, 0.08);
}

.cs-filter-pill--active:hover {
  background: rgba(0, 212, 255, 0.18);
  color: var(--accent-cyan);
}

.cs-filter-pill--all {
  font-weight: 600;
}

.cs-grid__empty {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
}

.cs-grid__empty p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cs-index-hero {
  padding-top: 2rem;
  padding-bottom: 0;
}

.cs-index-hero + .cs-grid {
  padding-top: 2rem;
}

.cs-index-hero__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 1rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .cs-grid__cards {
    grid-template-columns: 1fr;
  }

  .cs-featured__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-filters {
    padding: 0.75rem 0.75rem 0.85rem;
  }

  .cs-filters__search-input {
    padding: 0.7rem 2.4rem 0.7rem 2.5rem;
    font-size: 13.5px;
  }

  .cs-filters__divider--tall {
    display: none;
  }

  .cs-filters__groups {
    flex: 1 1 100%;
  }
}

/* ============================================
   WHY TSP — YTSP Animation Cards
   ============================================ */

/* Shared animation container within cards */
.why-tsp__animation {
  position: relative;
  width: 100%;
  height: 170px;
  margin: 0 0 1.75rem;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.why-tsp__animation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Per-card hover glow colors ── */
.why-tsp__card--vault { --hover-glow: rgba(0, 212, 255, 0.08); }
.why-tsp__card--cross { --hover-glow: rgba(124, 58, 237, 0.08); }
.why-tsp__card--bridge { --hover-glow: rgba(16, 185, 129, 0.08); }

/* ── Animation backgrounds ── */
.vault-anim {
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 65%),
              linear-gradient(180deg, #050912 0%, #070d1c 100%);
}
.cross-anim {
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, transparent 65%),
              linear-gradient(180deg, #05091a 0%, #070c1f 100%);
}
.bridge-anim {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 65%),
              linear-gradient(180deg, #050f14 0%, #071118 100%);
}

/* ============================================
   VAULT CORE — Production-First
   ============================================ */
.vault-anim__ring {
  fill: none;
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.1;
  stroke-linejoin: round;
  transform-origin: 150px 90px;
}
.vault-anim__ring--outer { animation: vaultPulseOuter 3.6s ease-in-out infinite; }
.vault-anim__ring--mid   { animation: vaultPulseMid 3.6s ease-in-out infinite; }
.vault-anim__ring--inner { animation: vaultPulseInner 3.6s ease-in-out infinite; }

@keyframes vaultPulseOuter {
  0%, 100% { opacity: 0.18; stroke-width: 1; }
  50%      { opacity: 0.5;  stroke-width: 1.4; }
}
@keyframes vaultPulseMid {
  0%, 100% { opacity: 0.22; stroke-width: 1; }
  50%      { opacity: 0.55; stroke-width: 1.4; }
}
@keyframes vaultPulseInner {
  0%, 100% { opacity: 0.28; stroke-width: 1.1; }
  50%      { opacity: 0.65; stroke-width: 1.5; }
}

.vault-anim__core-bg {
  fill: rgba(0, 212, 255, 0.1);
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.3;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.45));
}
.vault-anim__shield {
  fill: none;
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.6));
}
.vault-anim__check {
  fill: none;
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vault-anim__threat {
  fill: #ef4444;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.7));
}
.vault-anim__flash {
  fill: none;
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
}
.vault-anim__label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 6.5px;
  fill: rgba(0, 212, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  text-anchor: middle;
}

/* ============================================
   CROSS-SECTION ZOOM — Deep Execution
   ============================================ */
.cross-anim__layer-bg {
  fill: rgba(124, 58, 237, 0.05);
  stroke: rgba(124, 58, 237, 0.18);
  stroke-width: 0.8;
  transition: fill 0.35s ease, stroke 0.35s ease, filter 0.35s ease;
}
.cross-anim__layer-bg.is-active {
  fill: rgba(124, 58, 237, 0.22);
  stroke: rgba(167, 139, 250, 0.75);
  filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.35));
}

.cross-anim__layer-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 6.5px;
  fill: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: fill 0.35s ease, font-weight 0.35s ease;
}
.cross-anim__layer-label.is-active {
  fill: rgba(224, 213, 255, 1);
  font-weight: 700;
}

.cross-anim__layer-icon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s ease, filter 0.35s ease;
}
.cross-anim__layer-icon.is-active {
  stroke: var(--accent-purple-light, #a78bfa);
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.7));
}

.cross-anim__scan-line {
  stroke: var(--accent-purple-light, #a78bfa);
  stroke-width: 1.5;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.8));
}
.cross-anim__scan-glow {
  fill: url(#crossScanGrad);
  opacity: 0.55;
}

.cross-anim__scanner {
  animation: crossScanAnim 5.6s linear infinite;
}
@keyframes crossScanAnim {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(142px); }
}

.cross-anim__corner {
  stroke: rgba(167, 139, 250, 0.3);
  stroke-width: 0.8;
  fill: none;
}

/* ============================================
   PULSE BRIDGE — Trusted Partner
   ============================================ */
.bridge-anim__orb-outer {
  fill: none;
  stroke: var(--accent-emerald, #10b981);
  stroke-width: 0.9;
  transform-origin: center;
  transform-box: fill-box;
}
.bridge-anim__orb-outer--l { animation: bridgeOrbPulse 2.8s ease-in-out infinite; }
.bridge-anim__orb-outer--r { animation: bridgeOrbPulse 2.8s ease-in-out infinite 1.4s; }

@keyframes bridgeOrbPulse {
  0%, 100% { opacity: 0.18; r: 18; }
  50%      { opacity: 0.5;  r: 23; }
}

.bridge-anim__orb {
  fill: rgba(16, 185, 129, 0.18);
  stroke: var(--accent-emerald, #10b981);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}
.bridge-anim__orb-core {
  fill: var(--accent-emerald-light, #34d399);
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.9));
}

.bridge-anim__line {
  stroke: rgba(16, 185, 129, 0.25);
  stroke-width: 0.9;
  stroke-dasharray: 2.5, 2;
}

.bridge-anim__pulse {
  fill: var(--accent-emerald-light, #34d399);
  filter: drop-shadow(0 0 7px rgba(52, 211, 153, 1));
}

.bridge-anim__milestone {
  fill: rgba(16, 185, 129, 0.22);
  transition: fill 0.35s ease, filter 0.35s ease, r 0.35s ease;
}
.bridge-anim__milestone.is-lit {
  fill: var(--accent-emerald-light, #34d399);
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.9));
  r: 2.8;
}

.bridge-anim__timeline {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.7;
  stroke-dasharray: 1.5, 2;
}

.bridge-anim__label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 6.5px;
  fill: rgba(16, 185, 129, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-anchor: middle;
}
.bridge-anim__label--time {
  fill: rgba(255, 255, 255, 0.28);
  font-size: 5.5px;
  letter-spacing: 0.15em;
}

/* ============================================
   PROCESS TIMELINE — Animation Visualizations
   ============================================ */

/* Shared viz container */
.process__viz {
  width: 80px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.proc-viz-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── 1. DISCOVERY — Radar Sweep ── */
.proc-radar__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.6;
}
.proc-radar__ring--mid {
  stroke: rgba(0, 212, 255, 0.12);
}
.proc-radar__sweep {
  transform-origin: 28px 28px;
  animation: procRadarSpin 4s linear infinite;
}
.proc-radar__sweep-line {
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.6));
}
.proc-radar__sweep-arc {
  fill: url(#radarGrad);
  opacity: 0.45;
}
.proc-radar__center {
  fill: var(--accent-cyan, #00d4ff);
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.8));
  animation: procRadarPulse 2s ease-in-out infinite;
}
.proc-radar__blip {
  fill: var(--accent-violet, #a78bfa);
  filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.8));
  opacity: 0;
  transform-origin: center;
  animation: procRadarBlip 4s linear infinite;
}
.proc-radar__blip--1 { animation-delay: 0.3s; }
.proc-radar__blip--2 { animation-delay: 1.6s; }
.proc-radar__blip--3 { animation-delay: 2.9s; }

@keyframes procRadarSpin { to { transform: rotate(360deg); } }
@keyframes procRadarPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes procRadarBlip {
  0%   { opacity: 0; transform: scale(0.5); }
  5%   { opacity: 1; transform: scale(1.3); }
  15%  { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.3; }
  100% { opacity: 0; transform: scale(1); }
}

/* ── 2. ARCHITECTURE — Node Mesh ── */
.proc-arch__line {
  stroke: rgba(167, 139, 250, 0.5);
  stroke-width: 0.8;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: procArchDraw 4s ease-in-out infinite;
}
.proc-arch__line--1 { animation-delay: 0.2s; }
.proc-arch__line--2 { animation-delay: 0.5s; }
.proc-arch__line--3 { animation-delay: 0.9s; }
.proc-arch__line--4 { animation-delay: 1.2s; }
.proc-arch__line--5 { animation-delay: 1.5s; }

.proc-arch__node {
  stroke-width: 1;
  fill: rgba(0, 212, 255, 0.08);
  stroke: var(--accent-cyan, #00d4ff);
  opacity: 0;
  animation: procArchNodeIn 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.proc-arch__node--top {
  fill: rgba(0, 212, 255, 0.12);
  stroke: var(--accent-cyan, #00d4ff);
}
.proc-arch__node--mid {
  fill: rgba(167, 139, 250, 0.12);
  stroke: var(--accent-violet, #a78bfa);
  animation-delay: 0.4s;
}
.proc-arch__node--bot {
  fill: rgba(52, 211, 153, 0.12);
  stroke: var(--accent-green, #34d399);
  animation-delay: 0.9s;
}

@keyframes procArchDraw {
  0%   { stroke-dashoffset: 30; opacity: 0; }
  15%  { stroke-dashoffset: 0;  opacity: 1; }
  80%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 0; }
}
@keyframes procArchNodeIn {
  0%   { opacity: 0; transform: scale(0.6); }
  10%  { opacity: 1; transform: scale(1.15); }
  20%  { transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* ── 3. PROTOTYPE — Layered Cascade ── */
.proc-proto__layer {
  stroke-width: 1;
  rx: 2;
  transform-origin: center;
  transform-box: fill-box;
  animation: procProtoCascade 3.5s ease-in-out infinite;
}
.proc-proto__layer--1 {
  fill: rgba(167, 139, 250, 0.08);
  stroke: rgba(167, 139, 250, 0.4);
  stroke-dasharray: 3, 2;
  animation-delay: 0s;
}
.proc-proto__layer--2 {
  fill: rgba(0, 212, 255, 0.1);
  stroke: rgba(0, 212, 255, 0.5);
  stroke-dasharray: 4, 2;
  animation-delay: 0.25s;
}
.proc-proto__layer--3 {
  fill: rgba(0, 212, 255, 0.18);
  stroke: var(--accent-cyan, #00d4ff);
  stroke-dasharray: none;
  animation-delay: 0.5s;
}
.proc-proto__accent {
  fill: var(--accent-cyan, #00d4ff);
  opacity: 0;
  animation: procProtoAccent 3.5s ease-in-out infinite;
  animation-delay: 1s;
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.8));
}

@keyframes procProtoCascade {
  0%        { opacity: 0; transform: translateY(8px); }
  12%       { opacity: 1; transform: translateY(0); }
  70%       { opacity: 1; transform: translateY(0); }
  85%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes procProtoAccent {
  0%, 40%   { opacity: 0; }
  50%       { opacity: 1; }
  70%       { opacity: 1; }
  85%, 100% { opacity: 0; }
}

/* ── 4. ITERATION & VALIDATION — Orbital Loop ── */
.proc-iter__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 2.5, 2.5;
}
.proc-iter__progress {
  fill: none;
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transform: rotate(-90deg);
  transform-origin: 28px 28px;
  animation: procIterFill 3s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.4));
}
.proc-iter__orbit {
  transform-origin: 28px 28px;
  animation: procIterOrbit 3s linear infinite;
}
.proc-iter__dot {
  fill: var(--accent-violet, #a78bfa);
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.9));
}
.proc-iter__check {
  stroke: var(--accent-green, #34d399);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  animation: procIterCheck 3s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.5));
}

@keyframes procIterOrbit { to { transform: rotate(360deg); } }
@keyframes procIterFill {
  0%        { stroke-dashoffset: 126; }
  60%       { stroke-dashoffset: 0; }
  85%       { stroke-dashoffset: 0; }
  100%      { stroke-dashoffset: 126; }
}
@keyframes procIterCheck {
  0%, 55%   { stroke-dashoffset: 14; opacity: 0; }
  65%       { stroke-dashoffset: 0;  opacity: 1; }
  85%       { stroke-dashoffset: 0;  opacity: 1; }
  100%      { stroke-dashoffset: 14; opacity: 0; }
}

/* ── 5. PRODUCTION — Deploy Bars ── */
.proc-prod__bar {
  fill: url(#prodBarGrad);
  transform-origin: bottom center;
  transform-box: fill-box;
  animation: procProdRise 3.2s ease-out infinite;
  filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.4));
}
.proc-prod__bar--1 { animation-delay: 0s; }
.proc-prod__bar--2 { animation-delay: 0.15s; }
.proc-prod__bar--3 { animation-delay: 0.3s; }
.proc-prod__bar--4 { animation-delay: 0.45s; }
.proc-prod__bar--5 { animation-delay: 0.6s; }

.proc-prod__check-circle {
  fill: rgba(52, 211, 153, 0.18);
  stroke: var(--accent-green, #34d399);
  stroke-width: 1.3;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  animation: procProdCheckPop 3.2s ease-out infinite;
  animation-delay: 1s;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.6));
}
.proc-prod__check-mark {
  stroke: var(--accent-green, #34d399);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 8;
  stroke-dashoffset: 8;
  animation: procProdCheckDraw 3.2s ease-out infinite;
  animation-delay: 1.15s;
}

@keyframes procProdRise {
  0%        { transform: scaleY(0.05); opacity: 0.3; }
  40%       { transform: scaleY(1);    opacity: 1; }
  80%       { transform: scaleY(1);    opacity: 1; }
  92%       { transform: scaleY(1);    opacity: 0.5; }
  100%      { transform: scaleY(0.05); opacity: 0.3; }
}
@keyframes procProdCheckPop {
  0%, 30%   { opacity: 0; transform: scale(0.4); }
  42%       { opacity: 1; transform: scale(1.25); }
  55%       { transform: scale(1); }
  80%       { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; }
}
@keyframes procProdCheckDraw {
  0%, 35%   { stroke-dashoffset: 8; }
  50%       { stroke-dashoffset: 0; }
  80%       { stroke-dashoffset: 0; }
  92%       { stroke-dashoffset: 0; opacity: 0; }
  100%      { stroke-dashoffset: 0; opacity: 0; }
}

/* ── 6. OPERATE & EVOLVE — EKG Heartbeat ── */
.proc-ekg__baseline {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.6;
  stroke-dasharray: 2, 2;
  fill: none;
}
.proc-ekg__trace {
  fill: none;
  stroke: var(--accent-cyan, #00d4ff);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: procEkgTrace 3s linear infinite;
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.6));
}
.proc-ekg__pulse {
  fill: var(--accent-violet, #a78bfa);
  r: 1.8;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.9));
  animation: procEkgPulse 3s linear infinite;
  opacity: 0;
}

@keyframes procEkgTrace {
  0%   { stroke-dashoffset: 180; }
  70%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes procEkgPulse {
  0%, 15% { opacity: 0; transform: translateX(0); }
  35%     { opacity: 1; }
  50%     { opacity: 1; }
  70%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* ============================================
   CONTACT TERMINAL — Book a Call Page
   ============================================ */

/* Page wrapper — full-viewport centered layout */
.ct-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 2rem 1.5rem;
  position: relative;
}

/* Terminal frame */
.ct-terminal {
  width: 100%;
  max-width: 720px;
  background: rgba(10, 15, 35, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 179, 255, 0.08),
    0 0 60px rgba(99, 179, 255, 0.06);
  overflow: hidden;
  position: relative;
}

/* Header bar */
.ct-terminal__header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  gap: 0.75rem;
}
.ct-terminal__lights {
  display: flex;
  gap: 0.4rem;
}
.ct-terminal__light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #444;
}
.ct-terminal__light--red    { background: #ff5f56; }
.ct-terminal__light--yellow { background: #ffbd2e; }
.ct-terminal__light--green  { background: #27c93f; }

.ct-terminal__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.ct-terminal__badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: #4ade80;
  padding: 0.2rem 0.55rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
}
.ct-terminal__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 0.4rem;
  box-shadow: 0 0 8px #4ade80;
  animation: ctPulse 2s ease-in-out infinite;
}
@keyframes ctPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Progress bar */
.ct-progress {
  height: 2px;
  background: var(--glass-border, rgba(255, 255, 255, 0.08));
  position: relative;
}
.ct-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #5eb3ff, #a78bfa);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(99, 179, 255, 0.5);
}

/* Terminal body */
.ct-terminal__body {
  padding: 2.25rem 2rem;
  min-height: 480px;
  position: relative;
}

/* Screens */
.ct-screen {
  display: none;
  animation: ctScreenIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ct-screen--active { display: block; }
@keyframes ctScreenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prompt line */
.ct-prompt {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ct-prompt__symbol { color: #4ade80; font-weight: 600; }
.ct-prompt__command { color: #5eb3ff; }
.ct-prompt__comment { color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; }

/* Question heading */
.ct-question {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 0.4rem;
  line-height: 1.4;
  min-height: 1.8em;
}
.ct-question--typing::after {
  content: '\2588';
  color: #5eb3ff;
  animation: ctBlink 1s step-end infinite;
  margin-left: 2px;
}
.ct-question--done::after { display: none; }
@keyframes ctBlink { 50% { opacity: 0; } }

.ct-subtext {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Welcome screen ── */
.ct-welcome__title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ct-welcome__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}
.ct-welcome__meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.ct-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.ct-meta-item__icon { color: #5eb3ff; }

/* ── Card grid ── */
.ct-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.ct-card {
  padding: 1rem 1.15rem;
  background: rgba(15, 20, 45, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  font-family: 'Manrope', var(--font-body, 'Space Grotesk'), sans-serif;
  color: var(--text-primary, #f0f4ff);
  font-size: 0.9rem;
  font-weight: 500;
}
.ct-card:hover {
  background: rgba(99, 179, 255, 0.08);
  border-color: rgba(99, 179, 255, 0.3);
  transform: translateY(-1px);
}
.ct-card--selected {
  background: rgba(99, 179, 255, 0.08);
  border-color: #5eb3ff;
  box-shadow: 0 0 0 1px #5eb3ff, 0 0 20px rgba(99, 179, 255, 0.15);
}
.ct-card__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 179, 255, 0.1);
  border-radius: 6px;
  color: #5eb3ff;
  flex-shrink: 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  font-weight: 600;
}
.ct-card--selected .ct-card__icon {
  background: linear-gradient(135deg, #5eb3ff, #a78bfa);
  color: #fff;
}
.ct-card__check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}
.ct-card--selected .ct-card__check {
  background: #5eb3ff;
  border-color: #5eb3ff;
  color: #0a1024;
}

/* ── Slider ── */
.ct-slider-wrap {
  background: rgba(15, 20, 45, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 2rem 1.75rem 1.75rem;
  margin-bottom: 1.5rem;
}
.ct-slider-label {
  text-align: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #5eb3ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}
.ct-slider-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.ct-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, rgba(99, 179, 255, 0.4) 0%, rgba(167, 139, 250, 0.4) 100%);
  border-radius: 999px;
  outline: none;
  margin-bottom: 1rem;
}
.ct-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eb3ff, #a78bfa);
  cursor: pointer;
  border: 3px solid #0a1024;
  box-shadow: 0 0 0 1px #5eb3ff, 0 0 20px rgba(99, 179, 255, 0.5);
  transition: transform 0.15s ease;
}
.ct-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.ct-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eb3ff, #a78bfa);
  cursor: pointer;
  border: 3px solid #0a1024;
  box-shadow: 0 0 0 1px #5eb3ff, 0 0 20px rgba(99, 179, 255, 0.5);
}
/* Ticks are absolutely positioned to match the thumb's actual travel range
   (thumb center moves from +11px to width-11px because of the 22px thumb). */
.ct-slider-ticks {
  position: relative;
  height: 1em;
  margin-top: 0.5rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}
.ct-slider-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.ct-slider-ticks span:nth-child(1) { left: 11px; }
.ct-slider-ticks span:nth-child(2) { left: calc(11px + (100% - 22px) * 0.25); }
.ct-slider-ticks span:nth-child(3) { left: 50%; }
.ct-slider-ticks span:nth-child(4) { left: calc(11px + (100% - 22px) * 0.75); }
.ct-slider-ticks span:nth-child(5) { left: calc(100% - 11px); }

/* ── Input fields ── */
.ct-field {
  margin-bottom: 1rem;
}
.ct-field__label {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}
.ct-field__label::before {
  content: '> ';
  color: #4ade80;
}
.ct-field__input {
  width: 100%;
  background: rgba(15, 20, 45, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text-primary, #f0f4ff);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.ct-field__input:focus {
  outline: none;
  border-color: #5eb3ff;
  background: rgba(99, 179, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 179, 255, 0.12);
}
.ct-field__input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* ── Buttons ── */
.ct-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}
.ct-btn {
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', var(--font-body, 'Space Grotesk'), sans-serif;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ct-btn--primary {
  background: linear-gradient(135deg, #5eb3ff, #a78bfa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 179, 255, 0.3);
}
.ct-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 179, 255, 0.5);
}
.ct-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.ct-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}
.ct-btn--ghost:hover {
  color: var(--text-primary, #f0f4ff);
  border-color: rgba(99, 179, 255, 0.3);
}
.ct-step-indicator {
  margin-left: auto;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Launch screen ── */
.ct-launch {
  text-align: center;
  padding: 1rem 0;
}
.ct-launch__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: #4ade80;
  margin-bottom: 1.5rem;
}
.ct-launch__title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ct-launch__sub {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.75rem;
}
.ct-launch__cta {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Processing log */
.ct-proc-log {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  margin-bottom: 1rem;
  min-height: 80px;
}
.ct-proc-log__line {
  opacity: 0;
  animation: ctLogIn 0.3s forwards;
}
.ct-proc-log__line--success { color: #4ade80; }
@keyframes ctLogIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Summary card */
.ct-summary {
  background: rgba(15, 20, 45, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  text-align: left;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
}
.ct-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--glass-border, rgba(255, 255, 255, 0.08));
  gap: 1rem;
}
.ct-summary__row:last-child { border-bottom: none; }
.ct-summary__key { color: rgba(255, 255, 255, 0.6); }
.ct-summary__val {
  color: var(--text-primary, #f0f4ff);
  text-align: right;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ct-terminal__body { padding: 1.5rem 1.25rem; }
  .ct-cards { grid-template-columns: 1fr; }
  .ct-welcome__title { font-size: 1.5rem; }
  .ct-question { font-size: 1.1rem; }
  .ct-actions { flex-wrap: wrap; }
  .ct-step-indicator {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* ============================================================
   Podcast page (/podcast) — sections/podcast-page.liquid
   ============================================================ */
.tsp-podcast {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.tsp-podcast__container {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}
.tsp-podcast__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}
.tsp-podcast__orb--a {
  width: 460px; height: 460px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, transparent 70%);
}
.tsp-podcast__orb--b {
  width: 560px; height: 560px;
  bottom: -200px; right: -180px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32) 0%, transparent 70%);
}

/* Hero */
.tsp-podcast__hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.tsp-podcast__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.25rem;
}
.tsp-podcast__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 1rem;
}
.tsp-podcast__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tsp-podcast__lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.tsp-podcast__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.tsp-podcast__meta-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.tsp-podcast__meta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 10px rgba(40, 200, 64, 0.7);
}
.tsp-podcast__meta-sep { color: var(--text-muted); opacity: 0.5; }

/* Players */
.tsp-podcast__players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tsp-podcast__player {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tsp-podcast__player:hover {
  border-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(0, 212, 255, 0.12);
}
.tsp-podcast__player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.4rem 0.75rem;
}
.tsp-podcast__player-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.tsp-podcast__player-open {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.tsp-podcast__player-open:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
.tsp-podcast__embed {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.tsp-podcast__embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.tsp-podcast__embed--apple {
  background: #0a0f1e;
}
.tsp-podcast__embed--apple iframe {
  min-height: 450px;
  background: #0a0f1e;
  color-scheme: dark;
}

/* Also listen on */
.tsp-podcast__also {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
.tsp-podcast__also-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.tsp-podcast__also-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.tsp-podcast__also-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tsp-podcast__also-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
}
.tsp-podcast__also-arrow { color: var(--text-muted); font-size: 0.8rem; }

/* CTA */
.tsp-podcast__cta { margin-top: clamp(2rem, 4vw, 3rem); }
.tsp-podcast__cta-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tsp-podcast__cta-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.tsp-podcast__cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.tsp-podcast__cta-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.tsp-podcast__cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tsp-podcast__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tsp-podcast__cta-btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}
.tsp-podcast__cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}
.tsp-podcast__cta-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tsp-podcast__cta-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
}

@media (max-width: 820px) {
  .tsp-podcast__players { grid-template-columns: 1fr; }
}

/* ============================================================
   Podcast Stats — sections/podcast-stats.liquid
   Global Reach (map + leaderboard) + Platform Mix
   ============================================================ */
.tsp-reach {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 45%, transparent 100%);
}
.tsp-reach__container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}
.tsp-reach__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}
.tsp-reach__orb--a {
  width: 520px; height: 520px;
  top: -160px; right: -140px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, transparent 70%);
}
.tsp-reach__orb--b {
  width: 480px; height: 480px;
  bottom: -160px; left: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32) 0%, transparent 70%);
}

/* Header */
.tsp-reach__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tsp-reach__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.1rem;
}
.tsp-reach__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 0.9rem;
}
.tsp-reach__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tsp-reach__lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* Stats strip */
.tsp-reach__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tsp-reach__stat {
  padding: 1.25rem 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tsp-reach__stat:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.04);
}
.tsp-reach__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.tsp-reach__stat-unit {
  font-size: 0.65em;
  margin-left: 0.1rem;
  opacity: 0.8;
}
.tsp-reach__stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Map + Leaderboard grid */
.tsp-reach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Map */
.tsp-reach__map {
  position: relative;
  aspect-ratio: 2 / 1;
  /* overflow: visible — lets marker popups escape the rounded map bounds. */
}
.tsp-reach__map-clip {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tsp-reach__map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tsp-reach__map-legend {
  position: absolute;
  bottom: 0.75rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(10, 15, 30, 0.7);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tsp-reach__map-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

/* Flag markers */
.tsp-reach__marker {
  position: absolute;
  width: var(--size, 40px);
  height: var(--size, 40px);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: tspReachMarkerIn 0.65s cubic-bezier(.2, .9, .4, 1.25) forwards;
  animation-delay: calc(var(--i, 0) * 85ms + 250ms);
  cursor: pointer;
  outline: none;
  z-index: 2;
}
@keyframes tspReachMarkerIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.tsp-reach__marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(10, 15, 30, 0.8),
    0 4px 14px rgba(0, 212, 255, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tsp-reach__marker-flag {
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: calc(var(--size, 40px) * 0.7);
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
  overflow: hidden;
}
.tsp-reach__marker:hover,
.tsp-reach__marker:focus-visible {
  z-index: 4;
}
.tsp-reach__marker:hover .tsp-reach__marker-ring,
.tsp-reach__marker:focus-visible .tsp-reach__marker-ring {
  transform: scale(1.12);
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 0 3px rgba(10, 15, 30, 0.8),
    0 0 22px rgba(0, 212, 255, 0.55);
}
.tsp-reach__marker-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.5rem 0.8rem;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.tsp-reach__marker-pop strong {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tsp-reach__marker-pop span {
  color: var(--accent-cyan);
  font-weight: 700;
}
.tsp-reach__marker:hover .tsp-reach__marker-pop,
.tsp-reach__marker:focus-visible .tsp-reach__marker-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Leaderboard */
.tsp-reach__board {
  padding: 1.25rem 1.35rem 1.4rem;
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}
.tsp-reach__board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tsp-reach__board-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.tsp-reach__board-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.tsp-reach__board-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tsp-reach__row {
  display: grid;
  grid-template-columns: 24px 22px minmax(0, 1fr) minmax(80px, 1.2fr) 46px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateX(-8px);
  animation: tspReachRowIn 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 200ms);
}
@keyframes tspReachRowIn {
  to { opacity: 1; transform: translateX(0); }
}
.tsp-reach__row-rank {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.tsp-reach__row-flag {
  font-size: 1.1rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
  text-align: center;
}
.tsp-reach__row-name {
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tsp-reach__row-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.tsp-reach__row-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 999px;
  animation: tspReachBarFill 1.1s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 350ms);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}
@keyframes tspReachBarFill {
  to { width: var(--pct, 0%); }
}
.tsp-reach__row-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tsp-reach__board-more {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Platform mix */
.tsp-reach__platforms {
  padding: 1.5rem 1.5rem 1.35rem;
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tsp-reach__platforms-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tsp-reach__platforms-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.tsp-reach__platforms-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.tsp-reach__platforms-bar {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tsp-reach__platforms-seg {
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  animation: tspReachSegIn 0.9s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 400ms);
  transition: filter 0.2s ease, opacity 0.2s ease;
}
@keyframes tspReachSegIn {
  to { transform: scaleX(1); }
}
.tsp-reach__platforms-bar:hover .tsp-reach__platforms-seg { opacity: 0.65; }
.tsp-reach__platforms-bar:hover .tsp-reach__platforms-seg:hover {
  opacity: 1;
  filter: brightness(1.2);
}
.tsp-reach__platforms-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem 1.25rem;
}
.tsp-reach__platforms-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.tsp-reach__platforms-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.tsp-reach__platforms-name { color: var(--text-secondary); }
.tsp-reach__platforms-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Source caption */
.tsp-reach__source {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.tsp-reach__source-tag {
  color: var(--accent-cyan);
  margin-right: 0.4rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Responsive */
@media (max-width: 960px) {
  .tsp-reach__grid { grid-template-columns: 1fr; }
  .tsp-reach__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tsp-reach__row {
    grid-template-columns: 22px 22px minmax(0, 1fr) 44px;
  }
  .tsp-reach__row-bar { display: none; }
  .tsp-reach__marker-pop { font-size: 0.72rem; padding: 0.4rem 0.6rem; }
}

/* ============================================================
   Podcast Episodes — sections/podcast-episodes.liquid
   Top-10 most-played episodes
   ============================================================ */
.tsp-eps {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.tsp-eps__container { max-width: 1180px; }

.tsp-eps__header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.tsp-eps__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.1rem;
}
.tsp-eps__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
}
.tsp-eps__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tsp-eps__lede {
  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

/* Card container */
.tsp-eps__card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem) 1.5rem;
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tsp-eps__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tsp-eps__card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.tsp-eps__card-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* List */
.tsp-eps__list {
  display: flex;
  flex-direction: column;
}
.tsp-eps__row {
  display: grid;
  grid-template-columns: 26px 60px 70px minmax(0, 1.5fr) minmax(120px, 1fr) 90px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateX(-8px);
  animation: tspEpsRowIn 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 150ms);
  transition: background 0.15s ease;
}
.tsp-eps__row:last-child { border-bottom: none; }
.tsp-eps__row:hover { background: rgba(0, 212, 255, 0.03); }
@keyframes tspEpsRowIn {
  to { opacity: 1; transform: translateX(0); }
}
.tsp-eps__rank {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.tsp-eps__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tsp-eps__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tsp-eps__play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.tsp-eps__play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}
.tsp-eps__play--spotify {
  background: #1DB954;
  box-shadow: 0 3px 10px rgba(29, 185, 84, 0.3);
}
.tsp-eps__play--apple {
  background: linear-gradient(135deg, #f452fd 0%, #823af0 100%);
  box-shadow: 0 3px 10px rgba(130, 58, 240, 0.35);
}
.tsp-eps__play:hover {
  transform: scale(1.12);
  filter: brightness(1.1);
}
.tsp-eps__play--spotify:hover {
  box-shadow: 0 5px 14px rgba(29, 185, 84, 0.5);
}
.tsp-eps__play--apple:hover {
  box-shadow: 0 5px 14px rgba(130, 58, 240, 0.55);
}
.tsp-eps__title-text {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}
a.tsp-eps__title-text:hover {
  color: var(--accent-cyan);
}
.tsp-eps__bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.tsp-eps__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 999px;
  animation: tspEpsBarFill 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 300ms);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}
@keyframes tspEpsBarFill {
  to { width: var(--pct, 0%); }
}
.tsp-eps__streams {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4rem;
}
.tsp-eps__streams-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.tsp-eps__streams-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Footer */
.tsp-eps__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.tsp-eps__footer strong {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tsp-eps__footer-sep { color: var(--text-muted); opacity: 0.5; }
.tsp-eps__footer-link {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.tsp-eps__footer-link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

/* Responsive */
@media (max-width: 820px) {
  .tsp-eps__row {
    grid-template-columns: 24px 54px 64px minmax(0, 1fr) 72px;
    gap: 0.55rem;
  }
  .tsp-eps__bar { display: none; }
  .tsp-eps__streams-label { display: none; }
  .tsp-eps__streams-num { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .tsp-eps__row {
    grid-template-columns: 52px 58px minmax(0, 1fr) 56px;
    gap: 0.5rem;
  }
  .tsp-eps__rank { display: none; }
  .tsp-eps__play { width: 24px; height: 24px; }
  .tsp-eps__play svg { width: 10px; height: 10px; }
  .tsp-eps__icons { gap: 4px; }
  .tsp-eps__title-text { font-size: 0.85rem; }
}

/* ============================================================
   Newsletter Page — sections/newsletter-page.liquid
   Hero + Kajabi form embed card
   ============================================================ */
.tsp-news {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.tsp-news__container {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.tsp-news__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}
.tsp-news__orb--a {
  width: 500px; height: 500px;
  top: -160px; left: -140px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.38) 0%, transparent 70%);
}
.tsp-news__orb--b {
  width: 560px; height: 560px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32) 0%, transparent 70%);
}

/* Hero */
.tsp-news__hero {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.tsp-news__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.15rem;
}
.tsp-news__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 0.95rem;
}
.tsp-news__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tsp-news__lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 1.35rem;
}
.tsp-news__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.tsp-news__meta-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.tsp-news__meta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 10px rgba(40, 200, 64, 0.7);
}
.tsp-news__meta-sep { color: var(--text-muted); opacity: 0.5; }

/* Form card */
.tsp-news__form-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 212, 255, 0.05) inset,
    0 0 60px rgba(0, 212, 255, 0.08);
}
.tsp-news__form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tsp-news__form-head {
  text-align: center;
  margin-bottom: 1.4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.tsp-news__form-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.tsp-news__form-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.45rem;
}
.tsp-news__form-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.tsp-news__form-embed { margin: 0 auto; }
.tsp-news__disclaimer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.tsp-news__recaptcha {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.tsp-news__recaptcha a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.tsp-news__recaptcha a:hover { text-decoration: underline; }

/* ============================================================
   Newsletter Pillars — sections/newsletter-pillars.liquid
   ============================================================ */
.tsp-news-pillars {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.tsp-news-pillars__container { max-width: 1180px; }

.tsp-news-pillars__header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.tsp-news-pillars__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.1rem;
}
.tsp-news-pillars__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
}
.tsp-news-pillars__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tsp-news-pillars__lede {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

.tsp-news-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.tsp-news-pillars__card {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: tspNewsPillarIn 0.6s ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}
@keyframes tspNewsPillarIn {
  to { opacity: 1; transform: translateY(0); }
}
.tsp-news-pillars__card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.12);
}
.tsp-news-pillars__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.tsp-news-pillars__icon svg { width: 22px; height: 22px; }
.tsp-news-pillars__card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}
.tsp-news-pillars__card-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Newsletter Audience — sections/newsletter-audience.liquid
   ============================================================ */
.tsp-news-audience {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  overflow: hidden;
}
.tsp-news-audience__container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}
.tsp-news-audience__orb {
  position: absolute;
  width: 640px; height: 640px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(0, 212, 255, 0.2) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.tsp-news-audience__header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.tsp-news-audience__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.1rem;
}
.tsp-news-audience__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
}
.tsp-news-audience__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tsp-news-audience__lede {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* Hero stat */
.tsp-news-audience__hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  text-align: center;
}
.tsp-news-audience__hero-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px rgba(0, 212, 255, 0.2);
  margin-bottom: 0.6rem;
}
.tsp-news-audience__hero-label {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* Platform strip */
.tsp-news-audience__platforms {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.tsp-news-audience__platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.75rem 1rem;
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
  animation: tspNewsPlatformIn 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 150ms);
}
@keyframes tspNewsPlatformIn {
  to { opacity: 1; transform: translateY(0); }
}
.tsp-news-audience__platform:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.03);
}
.tsp-news-audience__p-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 0.3rem;
}
.tsp-news-audience__p-icon svg { width: 18px; height: 18px; }
.tsp-news-audience__p-icon--linkedin { background: #0A66C2; }
.tsp-news-audience__p-icon--instagram { background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.tsp-news-audience__p-icon--x { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.tsp-news-audience__p-icon--youtube { background: #FF0000; }
.tsp-news-audience__p-icon--threads { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.tsp-news-audience__p-icon--tiktok { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.tsp-news-audience__p-count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tsp-news-audience__p-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Secondary stats */
.tsp-news-audience__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.tsp-news-audience__stat {
  padding: 1.1rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tsp-news-audience__stat:hover {
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.04);
}
.tsp-news-audience__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.tsp-news-audience__stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tsp-news-audience__source {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.tsp-news-audience__source-tag {
  color: var(--accent-cyan);
  margin-right: 0.4rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Responsive */
@media (max-width: 960px) {
  .tsp-news-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tsp-news-audience__platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tsp-news-audience__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tsp-news-pillars__grid { grid-template-columns: 1fr; }
  .tsp-news-audience__platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tsp-news-audience__hero-num { font-size: clamp(3rem, 16vw, 4.5rem); }
}

