/* Pricing animations are now enabled with careful, lightweight transitions */
/* Ensure content is visible even if reveal observers don't run */
.reveal, .reveal-up, .reveal-fade, .reveal-scale,
.u-fade-in, .u-stagger {
  opacity: 1 !important;
  transform: none !important;
}

/* ----- Marquee for long titles (beats player and similar) ----- */
.marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 12%, #000 88%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 12%, #000 88%, rgba(0,0,0,0) 100%);
}
.marquee-track {
  display: inline-block;
  will-change: transform;
  animation: marquee-left 12s linear infinite;
  padding-right: 48px; /* gap between repeats */
}
.marquee-track.clone {
  padding-left: 0;
}
@keyframes marquee-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track { animation: none; }
}

/* --- Beats Audio Player (polished) --- */
.audio-player.mini {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(159,231,255,0.14);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}
.audio-player .ap-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.audio-player .ap-play {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%;
  border: 1px solid rgba(159,231,255,0.22);
  background: radial-gradient(100% 100% at 30% 20%, rgba(124,77,255,0.35), rgba(0,212,255,0.18));
  color: #eaf7ff;
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.audio-player .ap-play:hover { transform: translateY(-1px); border-color: rgba(159,231,255,0.35); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.audio-player .ap-play i { font-size: 14px; }

.audio-player .ap-title {
  font-weight: 600; color: #d1e9f6; letter-spacing: .2px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.audio-player .ap-visualizer { display:flex; align-items:flex-end; gap:3px; height:18px; margin-left:auto; }
.audio-player .ap-visualizer .bar { width:3px; height:4px; border-radius:2px; background: linear-gradient(180deg, #7c4dff, #00d4ff); opacity:.7; }
.audio-player .ap-visualizer.playing .bar { animation: viz-bounce 900ms ease-in-out infinite; }
.audio-player .ap-visualizer.playing .bar:nth-child(2){ animation-delay: .08s }
.audio-player .ap-visualizer.playing .bar:nth-child(3){ animation-delay: .16s }
.audio-player .ap-visualizer.playing .bar:nth-child(4){ animation-delay: .24s }
.audio-player .ap-visualizer.playing .bar:nth-child(5){ animation-delay: .32s }

@keyframes viz-bounce {
  0%,100% { height:4px }
  50% { height:18px }
}

.audio-player .ap-progress { display:flex; align-items:center; gap:10px; margin-top:10px; }
.audio-player .ap-time { font-variant-numeric: tabular-nums; font-size:12px; color:#a9c7d8; }
.audio-player .ap-bar { position:relative; flex:1; height:8px; background: rgba(255,255,255,0.08); border:1px solid rgba(159,231,255,0.16); border-radius: 999px; overflow:hidden; cursor:pointer; }
.audio-player .ap-bar-fill { position:absolute; inset:0 auto 0 0; width:0%; background: linear-gradient(90deg, rgba(124,77,255,0.9), rgba(0,212,255,0.9)); box-shadow: 0 0 16px rgba(124,77,255,0.22); }

.audio-player .ap-volume { display:flex; align-items:center; gap:6px; color:#bfe8ff; }
.audio-player .ap-volume i{ font-size:13px; }
.audio-player .ap-volume input[type="range"]{ width:90px; height:6px; appearance:none; background: rgba(255,255,255,0.08); border:1px solid rgba(159,231,255,0.16); border-radius:999px; }
.audio-player .ap-volume input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background: linear-gradient(180deg,#7c4dff,#00d4ff); border:0; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.audio-player .ap-volume input[type="range"]::-moz-range-thumb{ width:14px; height:14px; border-radius:50%; background: linear-gradient(180deg,#7c4dff,#00d4ff); border:0; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }

@media (prefers-reduced-motion: reduce) {
  .audio-player .ap-visualizer.playing .bar { animation: none; }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------- Global sticky footer & Blog page layout -------- */
html, body { height: 100%; }
/* Global: make footer stick to bottom when content is short */
body { min-height: 100vh; display: flex; flex-direction: column; }
.footer { margin-top: auto; }
/* Footer layout */
.footer .container { width: 100%; position: relative; }
.footer-content { position: relative; display:flex; justify-content: flex-start; align-items: flex-end; gap: 12px; min-height: 48px; }
/* Center the copyright across all pages */
.footer-content p { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; pointer-events: none; }
/* Blog: ensure admin block hugs the left inside container */
.blog-page .footer-content { justify-content: flex-start; }
.blog-page #admin-login { margin-left: 0; position: relative; z-index: 1; }
/* Make admin-login hug the viewport edge more closely on blog page */
.blog-page .footer .container { padding-left: 0; }
/* Blog-specific wrapper still explicit for clarity */
.blog-page { min-height: 100vh; display: flex; flex-direction: column; }
.blog-main { flex: 1 1 auto; display: flex; flex-direction: column; }
.blog-page #admin-login { margin-top: auto; align-self: flex-start; }
.blog-page #admin-login summary.nav-link { font-size: 13px; opacity: 0.9; }

/* Blog toolbar */
.blog-toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top: 8px; }
.blog-toolbar input[type="search"]{ flex:1; min-width: 220px; background:#0f1b28; color:#cfe7f1; border:1px solid rgba(159,231,255,.2); border-radius:10px; padding:8px 10px; }
.blog-tags { display:flex; gap:8px; flex-wrap:wrap; }
.blog-tag { padding:6px 10px; border-radius:999px; border:1px solid rgba(159,231,255,.2); color:#9ec6d6; cursor:pointer; background: rgba(8,16,24,0.35); }
.blog-tag.active { color:#0b1520; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); border-color: transparent; }

/* -------------------- CART PAGE -------------------- */
.cart-page .cart-list { display: grid; gap: 14px; margin-top: 12px; }
.cart-page .cart-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  background: rgba(8,16,24,0.65);
  border: 1px solid rgba(159,231,255,0.12);
  border-radius: 14px; padding: 14px 16px;
  backdrop-filter: blur(6px);
}
.cart-page .ci-info { min-width: 0; }
.cart-page .ci-title { font-weight: 700; color: #e9f7ff; }
.cart-page .ci-meta { color: #9ec6d6; font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-page .ci-actions { display:flex; align-items:center; gap:12px; }
.cart-page .ci-license { background:#0f1b28; color:#cfe7f1; border:1px solid rgba(159,231,255,.2); border-radius:10px; padding:6px 10px; }
.cart-page .ci-price { font-weight:700; color:#b7ecff; min-width: 90px; text-align: right; }
.cart-page .ci-remove { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; border:1px solid rgba(255,255,255,.1); background:rgba(0,0,0,.25); color:#d66b6b; cursor:pointer; }
.cart-page .ci-remove:hover { background: rgba(214,107,107,0.15); }
.cart-page .ci-left { display:flex; align-items:center; gap:12px; min-width: 0; }
.cart-page .ci-thumb { width:56px; height:56px; border-radius:10px; object-fit:cover; background:#0f1b28; flex: 0 0 auto; }

.cart-page .cart-footer { display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(159,231,255,0.25); }
.cart-page .cart-total { font-size: 18px; color: #e9f7ff; }
.cart-page .cart-actions { display:flex; gap:10px; flex-wrap: wrap; }

.cart-empty {
  padding: 24px; border-radius: 14px; text-align: center;
  border: 1px dashed rgba(159,231,255,0.25);
  color: #9ec6d6; background: rgba(8,16,24,0.35);
}

/* -------------------- BLOG PAGE -------------------- */
.blog-hero { padding: 36px 0 12px; }
.blog-hero .hero-title { font-size: clamp(28px, 4vw, 44px); }
.blog-hero .hero-subtitle { margin-top: 8px; }

.blog-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 18px; margin-top: 18px; }
.blog-card {
  background: rgba(8,16,24,0.65);
  border: 1px solid rgba(159,231,255,0.12);
  border-radius: 14px; overflow: hidden; display:flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.blog-card .cover { width:100%; height: 180px; object-fit: cover; display:block; }
.blog-card .body { padding: 12px 14px; display:flex; flex-direction:column; gap:8px; }
.blog-card .title { font-weight: 700; color:#e9f7ff; font-size: 18px; line-height: 1.2; }
.blog-card .excerpt { color:#9ec6d6; font-size: 14px; }
.blog-card .meta { color:#7fb8cc; font-size: 12px; margin-top: 2px; }

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #FF6B35;
    /* Surfaces & borders */
    --bg-grad-1: #0a0a0a;
    --bg-grad-2: #1a1a2e;
    --bg-grad-3: #16213e;
    --surface-1: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(0, 0, 0, 0.35);
    --border-1: rgba(255, 255, 255, 0.10);
    --border-2: rgba(255, 255, 255, 0.08);
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    /* Shadows */
    --shadow-1: 0 10px 25px rgba(0, 212, 255, 0.25);
    --shadow-2: 0 20px 40px rgba(0, 212, 255, 0.20);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    /* Motion */
    --elevate: 0.3s ease;
    /* A11y */
    --focus-ring: 0 0 0 3px rgba(0, 212, 255, 0.25);
}

/* Light theme overrides removed */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0f14; /* solid base to avoid banding */
    background: none; /* remove base gradient that can create seams */
    margin: 0; /* remove default body margin that can show as a left stripe */
    padding: 0;
    position: relative; /* for ::before/::after layering */
    background-size: 400% 400%;
    /* animation: gradientShift 15s ease infinite; */ /* DISABLED - Performance */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* ensure sticky footer works globally */
    min-height: 100vh; display: flex; flex-direction: column;
}
/* Light theme body color removed */

/* Performance hints */
.hero-content { will-change: transform; }
.portfolio-media img, .portfolio-media video { will-change: transform; }
.portfolio-item, .stat-card, .service-card, .case-card { contain: paint; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme toggle styles removed */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    /* Disable blur to avoid GPU layerization costs */
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    /* Remove transitions that cause layerization during scroll */
    transition: none;
}
/* Light header variant removed */

/* Compact header on scroll */
.header.header-scrolled {
    background: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(10,10,10,0.98));
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    /* Disable backdrop-filter to avoid GPU-heavy repaints */
    backdrop-filter: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Keep header height stable on scroll */
.header.header-scrolled .header-content { padding: 1rem 0; }

.logo-link { display: inline-flex; align-items: center; text-decoration: none; gap: 6px; }
.logo-img {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    transition: none;
    transform: none;
}
/* Keep logo size stable on scroll to avoid layout shift */
.header.header-scrolled .logo-img { height: 60px; transform: none; }

/* Nudge the logo a bit to the right so it's more visible */
.header .logo, .header .logo-link { margin-left: 0; }

/* In-place logo animation */
/* Ensure no residual logo animation */
.logo-animate { animation: none !important; }

/* Brand text next to icon */
.logo-brand {
  font-weight: 800;
  letter-spacing: .15px;
  font-size: 1.12rem;
  color: #e6f7ff;
  line-height: 1;
}

.logo h2 {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
/* Light nav-link color removed */

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

.nav-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active nav link */
.nav-link.active {
    color: var(--primary-color);
}
.nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Button variants */
.btn-outline {
    background: transparent;
    color: #e6f7fb;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    border-color: color-mix(in srgb, var(--primary-color) 60%, #ffffff 20%);
    background: rgba(255,255,255,0.06);
}

.btn-light {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-light:hover {
    background: rgba(255,255,255,0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

/* Global animated background spanning whole page */
body::before { content:""; position: fixed; inset: -100px; z-index: -2; pointer-events: none;
  /* Deep dark base without bright edges */
  background: linear-gradient(180deg, #05090e 0%, #071018 35%, #08121a 100%);
}
body::after { content:""; position: fixed; top:-300px; right:-300px; bottom:-300px; left:-300px; z-index: -1; pointer-events: none;
  /* Soft colored blobs centered, no edge highlights */
  background:
    /* Left side cyan band pushed further out */
    radial-gradient(1200px 280px at -25% 22%, rgba(0,210,255,.22), transparent 70%),
    /* Right side purple band pushed further out */
    radial-gradient(1200px 300px at 125% 18%, rgba(140,90,255,.20), transparent 70%),
    /* Bottom-right soft teal glow, far from center */
    radial-gradient(900px 300px at 112% 94%, rgba(0,220,180,.12), transparent 76%),
    /* Fireflies scattered across background */
    radial-gradient(3px 3px at 15% 25%, rgba(125,211,252,0.8), transparent 50%),
    radial-gradient(2px 2px at 85% 35%, rgba(167,139,250,0.8), transparent 50%),
    radial-gradient(2.5px 2.5px at 25% 75%, rgba(0,220,180,0.7), transparent 50%),
    radial-gradient(2px 2px at 75% 85%, rgba(125,211,252,0.7), transparent 50%),
    radial-gradient(3px 3px at 45% 15%, rgba(167,139,250,0.6), transparent 50%),
    radial-gradient(2px 2px at 65% 65%, rgba(0,220,180,0.8), transparent 50%);
  filter: blur(28px);
  /* Animation disabled for a calmer, static background */
  animation: none;
  opacity:.28;
}

@media (max-width: 768px) {
  /* On mobile, remove the glowing overlay entirely for maximum clarity */
  body::after {
    opacity: 0 !important;
    filter: none !important;
    background: none !important;
  }
  /* Also hide the base gradient layer */
  body::before { display: none !important; }
  /* Ensure both pseudo-elements are not rendered at all */
  body::before, body::after { content: none !important; }
  /* Force a solid background on body for mobile */
  body { background: none !important; background-color: #0a0f14 !important; }
  /* Make header fully solid to avoid translucency over content */
  .header {
    background: #0b131b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  /* Compact header & hide large menus on mobile */
  .header .header-content { padding: 8px 0 !important; position: relative; padding-right: 120px; }
  .logo img { width: 40px !important; height: 40px !important; }
  .nav { display: none !important; }
  .section-quicknav { display: none !important; }
  .header .btn { padding: 8px 12px !important; font-size: 14px !important; }
  .icon-cart { width: 22px !important; height: 22px !important; top: 0 !important; left: 0 !important; }
  /* Hamburger button visible on mobile */
  .menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 40px; height: 32px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; position: absolute; right: 12px; top: 8px; }
  /* Strict position for injected mobile cart next to hamburger */
  .header .mobile-cart { 
    position: absolute !important; 
    right: 60px !important; 
    top: 8px !important; 
    width: 36px !important; 
    height: 32px !important;
    margin-left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: transparent !important;
  }
  .header .mobile-cart i { font-size: 16px !important; }
  .header .mobile-cart .cart-counter { 
    position: absolute !important;
    top: -6px !important; 
    right: -6px !important;
    min-width: 18px !important;
    height: 18px !important;
  }
  /* Hide desktop header actions on mobile to avoid collisions */
  .header .header-contact { display: none !important; }
  .header-contact { display: none !important; }
  .menu-toggle:focus-visible { outline: 2px solid #61f2ff; outline-offset: 2px; }
  .menu-toggle .mt-bar { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
  /* Mobile dropdown nav */
  #nav-main.is-open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; background: #0b131b; border-top: 1px solid rgba(255,255,255,0.08); padding: 8px 16px; flex-direction: column; gap: 6px; z-index: 1000; }
  #nav-main.is-open .nav-link { padding: 10px 4px; display: block; }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .mobile-cart { display: none; }
}

/* ============ Mobile content fixes ============ */
@media (max-width: 768px) {
  /* 1) Long titles truncation in players */
  .ap-title, .ap-subtitle, .bp-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .ap-top { min-width: 0; }
  .audio-player .ap-top, .bp-controls { display: flex; align-items: center; gap: 8px; }
  .bp-controls { flex-wrap: wrap; }
  .bp-title { flex: 1 1 auto; min-width: 0; }

  /* 2) Square thumbs/covers in beats tiles */
  .bp-thumb { width: 56px; aspect-ratio: 1 / 1; border-radius: 10px; flex: 0 0 auto; background-size: cover; background-position: center; }
  /* Square covers in carousel and generic portfolio media */
  .covers-carousel .cover-slide img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
  .portfolio-item .portfolio-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
  .bp-info { min-width: 0; }
  .bp-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 3) Beats page mobile optimization - COMPACT LAYOUT */
  .page-beats .section { padding: 10px 0 !important; }
  .page-beats .container { padding: 0 6px !important; }
  .page-beats .portfolio-item { margin-bottom: 8px !important; }
  .page-beats .beats-playlist { 
    padding: 4px !important; 
    margin: 6px 0 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
  }
  .page-beats .bp-item { 
    padding: 4px 6px !important; 
    margin-bottom: 2px !important;
    min-height: 40px !important;
  }
  .page-beats .bp-meta { gap: 6px !important; }
  .page-beats .bp-thumb { width: 40px !important; height: 40px !important; }
  .page-beats .bp-info { font-size: 12px !important; }
  .page-beats .bp-name { font-size: 13px !important; }
  .page-beats .bp-time { gap: 3px !important; font-size: 10px !important; }
  .page-beats .bp-bar { height: 3px !important; }
  .bp-strip { overflow-x: auto; padding-bottom: 6px; gap: 8px; }
  .bp-tile { min-width: 200px; padding: 8px; }

  /* 5) Calculator mobile layout */
  .calculator { padding: 14px; }
  .calculator .calc-row, .calculator .calc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .calculator .calc-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .calculator input[type="text"], .calculator input[type="number"], .calculator select { width: 100%; }
  .calculator .calc-time, .calculator .calc-price { font-size: 14px; }
  .calculator .calc-total, .calculator .calc-amount { font-size: 20px; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    will-change: transform, opacity;
}
@media (max-width: 640px) {
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }
  /* Keep header items on one line */
  .header .header-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .header .logo { flex: 1 1 auto; min-width: 0; }
  .header .menu-toggle,
  .header .mobile-cart { flex: 0 0 auto; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 0; /* removed to bring stats closer */
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: pre-line; /* preserve line breaks from HTML */
    word-break: break-word;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
    color: #b0b0b0;
    margin-bottom: 2rem;
    will-change: transform, opacity;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    white-space: normal;
}

/* Ensure key texts never get clipped or truncated */
.hero-title, .hero-subtitle, .stat-text {
    overflow: visible;
    white-space: normal;
}

/* Portfolio Preview */
.portfolio-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.preview-item {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.preview-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

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

/* Stats Section */
.stats {
    padding: 0 0 66px; /* flush to hero */
    margin-top: -216px;  /* additional 30px closer to the title */
    position: relative;
}

/* Removed section top separators per request */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 300px));
    gap: 1.35rem;
    justify-content: center; /* center group of 3 cards */
}

.stat-card {
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,.20);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .stat-card { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: -1px; /* bleed to border */
    background: radial-gradient(100% 120% at 12% 0%, rgba(0,212,255,0.10), transparent 42%),
                radial-gradient(120% 120% at 88% 100%, rgba(124,77,255,0.08), transparent 46%);
    pointer-events: none;
    opacity: .9;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(159,231,255,0.26);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26), 0 0 22px rgba(0,212,255,.10) inset;
}

.stat-icon {
    font-size: 2rem;
    color: #6ee7ff;
    text-shadow: 0 0 14px rgba(0,212,255,.35);
    margin-bottom: 1rem;
}

/* Pulse effect when card is revealed */
.reveal.in-view .stat-icon {
    animation: pulseGlow 1.8s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(0,212,255,0.0); transform: translateZ(0); }
    50% { text-shadow: 0 0 16px rgba(0,212,255,0.5); transform: translateZ(0); }
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0;
}
.stat-label {
    color: rgba(255, 255, 255, 0.72);
}

.stat-card-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-text-vertical {
    font-size: 1rem;
    color: #b0b0b0;
    transform: rotate(180deg);
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    padding: 80px 0;
}

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

/* ===== Header & Logo ===== */
.header { backdrop-filter: blur(12px); background: linear-gradient(180deg, rgba(6,12,18,0.78), rgba(6,12,18,0.6)); border-bottom: none; box-shadow: 0 8px 24px rgba(0,0,0,0.25); position: sticky; top: 0; z-index: 50; }
.header::after { content:""; display:none; }
.header .header-content { display:flex; align-items:center; justify-content:space-between; gap: 20px; }
.logo { display:flex; align-items:center; gap:6px; text-decoration:none; padding:4px 0; border-radius:10px; background: transparent; border: none; box-shadow: none; transition: none; }
.logo:hover { transform: none; border-color: transparent; box-shadow: none; }
.logo img { width: 60px; height: 60px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); border-radius:6px; }
.logo-text { font-weight: 800; letter-spacing: .4px; font-size: 1.05rem; background: linear-gradient(90deg, #7c4dff, #00d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 0 rgba(0,0,0,0); }
.logo-tag { margin-left: 6px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #bfe9ff; opacity:.9; padding:4px 8px; border-radius:999px; background: linear-gradient(180deg, rgba(10,18,26,.55), rgba(10,18,26,.3)); border:1px solid rgba(159,231,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

/* Header nav */
.nav { display:flex; gap:18px; align-items:center; }
.nav-link { position:relative; color:#e6f7ff; text-decoration:none; padding:10px 4px; }
.nav-link::after { content:""; position:absolute; left:10%; right:90%; bottom:4px; height:2px; background: linear-gradient(90deg, #00d4ff, #7c4dff); border-radius:2px; opacity:0; transition: all .25s ease; }
.nav-link:hover::after, .nav-link:focus-visible::after { right:10%; opacity:1; }
.nav-link:hover { color:#ffffff; }

/* Ensure cart link aligns its contents vertically */
.header-contact > .nav-link { display: inline-flex; align-items: center; line-height: 1; padding: 4px 4px; }
/* Shift contact area slightly; cart will sit closer to the right edge */
.header .header-contact { margin-right: 6px; display: flex; align-items: center; }
/* Increase gap between button and cart link so the button sits more left */
.header .header-contact > .nav-link:last-child { margin-left: 22px !important; }

/* Cart counter */
.cart-counter { position:absolute; top:-11px; right:-6px; background: linear-gradient(135deg, #00d4ff, #7c4dff); color:#001119; font-weight:700; font-size:11px; line-height:1; display:inline-flex; align-items:center; justify-content:center; height:18px; min-width:18px; padding:0 6px; border-radius:999px; border:1px solid rgba(255,255,255,.25); box-shadow: 0 6px 14px rgba(0,0,0,.35); }

/* Custom cart icon */
.icon-cart { display:inline-block; vertical-align: middle; width: 26px; height: 26px; position: relative; top: -2px; left: 2px; filter: drop-shadow(0 2px 8px rgba(0, 233, 255, 0.25)); transition: transform .2s ease, filter .2s ease; }
.nav-link:hover .icon-cart { transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 4px 12px rgba(0, 233, 255, 0.35)); }
.header .nav-link .icon-cart path, .header .nav-link .icon-cart circle { paint-order: stroke; }

.hero { position: relative; overflow: visible; min-height: clamp(420px, 66vh, 720px); display: flex; align-items: flex-start; padding-top: 64px; padding-bottom: 0; }
.hero::before, .hero::after { display: none; }
.hero-content{ position:relative; }
.hero-content.centered::after{ display:none; }
.hero-content::after{ content:""; position:absolute; inset: -10px; background-image: radial-gradient(rgba(0,212,255,.18) 1px, transparent 1px), radial-gradient(rgba(124,77,255,.16) 1px, transparent 1px); background-size: 28px 28px, 36px 36px; background-position: 0 0, 18px 12px; opacity:.0; animation: none; pointer-events:none; border-radius:20px; display:none; }
.hero-title { font-weight: 800; line-height: 1.08; background: linear-gradient(90deg, #e9f7ff 0%, #bfe9ff 45%, #9dd9ff 60%, #c9b7ff 85%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; background-size: 200% 100%; /* animation disabled */ animation: none; margin: 0; }
.hero-title::after { display:none; }
.hero-subtitle { color: rgba(225,245,255,.88); max-width: 920px; }

/* Reference #2 teal variant */
.hero { padding: 64px 0 0; }
.hero-content.centered { text-align: center; margin-inline: auto; }
.hero-title-teal { 
  font-size: clamp(2.2rem, 5vw + 1rem, 4.2rem);
  line-height: 1.15;
  background: linear-gradient(90deg, #7af5ff 0%, #00e5ff 40%, #00d4ff 60%, #00ffc6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  background-size: 200% 100%; /* animation disabled */
  animation: none;
  white-space: normal; /* spans will control line breaks */
  word-break: break-word;
}
.hero-title .line { display: block; }
.hero-title-teal::after { display: none; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 20px; min-height: 56vh; }
  .hero-title-teal { font-size: clamp(1.8rem, 6vw + 0.5rem, 2.6rem); }
}

.hero-quote { margin: 18px 0 10px; padding: 14px 18px 14px 18px; color:#eaf8ff; font-style: italic; background: linear-gradient(180deg, rgba(10,18,26,.55), rgba(10,18,26,.35)); border:1px solid rgba(159,231,255,.14); border-radius: 14px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 28px rgba(0,0,0,.22); }
.hero-quote::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius: 14px 0 0 14px; background: linear-gradient(180deg, #00d4ff, #7c4dff); box-shadow: 0 0 0 1px rgba(159,231,255,.18) inset; }
.hero-quote .q-mark { font-size: 1.25em; color:#9deaff; opacity:.9; }

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes floatDots { 0% { background-position: 0 0, 18px 12px; } 100% { background-position: 280px 140px, 298px 152px; } }
@keyframes waveDrift { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: -120px 10px, 100px -10px, 140px 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none; }
  .nav-link::after { transition: none; }
  .logo { transition: none; }
}

@media (max-width: 768px) {
  .hero-title::after { bottom:-8px; height:2px; }
  .logo-text { display:none; }
  .logo-tag { display:none; }
}

/* CTA polish */
.btn { position: relative; overflow: hidden; }
.btn-primary:hover { box-shadow: 0 16px 32px rgba(0,212,255,.28); transform: translateY(-1px); }
.btn-primary::after { content:""; position:absolute; top:0; left:-40%; width:40%; height:100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-22deg); opacity:0; }
.btn-primary:hover::after { left:140%; transition: left .8s ease, opacity .2s ease; opacity:1; }

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: .95rem; }
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-info {
    position: relative;
}


.chat-bubble {
    background: rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(20px); */ /* DISABLED - Performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.chat-bubble:nth-child(1) { animation-delay: 0.1s; }
.chat-bubble:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble:nth-child(3) { animation-delay: 0.3s; }
.chat-bubble:nth-child(4) { animation-delay: 0.4s; }

.chat-bubble-blue {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 20%, transparent), color-mix(in srgb, var(--secondary-color) 20%, transparent));
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.chat-bubble-orange {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 69, 0, 0.2));
    border-color: rgba(255, 107, 53, 0.3);
    margin-left: 2rem;
}

.chat-bubble-large {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.chat-bubble-large p {
    margin: 0;
    line-height: 1.6;
}

/* --- Calculator --- */
.calculator {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.price-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-breakdown .item-name { color: #ccc; }
.price-breakdown .item-value { font-weight: 500; }
.price-breakdown .discount { color: #27ae60; }

.promo-status.success { color: #27ae60; margin-top: 0.5rem; }
.promo-status.error { color: #e74c3c; margin-top: 0.5rem; }

/* Portfolio Section */

/* --- Covers Carousel --- */
.covers-carousel-wrapper {
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

.covers-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.cover-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.cover-slide img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.covers-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.covers-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.covers-indicators .dot.active {
    background: var(--primary-color);
}

/* --- Audio Player --- */
.audio-player {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(159,231,255,0.14);
    box-shadow: 0 14px 36px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}

.ap-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-play {
    position: relative;
    width: 56px;
    height: 56px;
    border: none;
    background: radial-gradient(100% 100% at 30% 20%, rgba(124,77,255,0.45), rgba(0,212,255,0.22));
    border-radius: 50%;
    cursor: pointer;
    color: #eaf7ff;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.ap-play:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,0.34); filter: saturate(1.1); }

.ap-ring svg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.ap-ring .ring-bg { stroke: rgba(255,255,255,0.2); }
.ap-ring .ring-val { transition: stroke-dashoffset 0.2s linear; }

.ap-title { font-weight: 600; color:#d1e9f6; letter-spacing:.2px; flex-grow: 1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

.ap-progress { margin-top: 10px; }

.ap-bar { position:relative; width: 100%; height: 8px; background: rgba(255,255,255,0.08); border:1px solid rgba(159,231,255,0.16); border-radius: 999px; cursor: pointer; overflow:hidden; }

.ap-bar-fill { width:0; height:100%; background: linear-gradient(90deg, rgba(124,77,255,0.95), rgba(0,212,255,0.95)); box-shadow: 0 0 16px rgba(124,77,255,0.25); }

.ap-time { font-variant-numeric: tabular-nums; font-size:12px; color:#a9c7d8; margin-bottom: 6px; display:flex; gap:6px; }
.portfolio {
    padding: 80px 0;
}

.pricing-grid {
    display: block; /* DISABLED for Performance Test */
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    /* gap: 30px; */
    margin-top: 40px;
} /* reserve space for cards to avoid push when revealed */

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    /* backdrop-filter: blur(20px); */ /* DISABLED - Performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.portfolio-media {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.portfolio-media video,
.portfolio-media audio,
.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--elevate);
}

.portfolio-item:hover .portfolio-media img,
.portfolio-item:hover .portfolio-media video {
    transform: scale(1.04);
}

/* Mobile: enforce square covers for portfolio media (mixing/mastering examples) */
@media (max-width: 768px) {
  .portfolio-item .portfolio-media {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .portfolio-item .portfolio-media img,
  .portfolio-item .portfolio-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* Keep header items on one line (<=768px) */
  .header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .header .logo { flex: 1 1 auto; min-width: 0; }
  .header .menu-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; height: 36px; }
  .header .mobile-cart { flex: 0 0 auto; }
}

.portfolio-subgrid.single-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Audio-specific layout */
.portfolio-item.type-audio .portfolio-media {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 153, 204, 0.06));
}

/* Custom Audio Player */
.audio-player {
    width: calc(100% - 2rem);
    margin: 0 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    /* backdrop-filter: blur(12px); */ /* DISABLED - Performance */
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.12);
}

.calculator {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    min-height: 420px; /* reserve space to reduce layout jump on first paint */
    /* Avoid heavy GPU cost near scroll */
    /* backdrop-filter: none !important; */ /* DISABLED - Performance */
    /* Fully isolate layout/paint to prevent page reflow on interactions */
    contain: content;
}

/* Hide default number spinners for custom ± controls */
#calc-qty::-webkit-outer-spin-button,
#calc-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#calc-qty {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ap-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ap-play i { font-size: 18px; }
.ap-play:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 212, 255, 0.45); }

.ap-title {
    flex: 1;
    color: #eaeaea;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    margin-left: auto;
}
.ap-visualizer .bar {
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    height: 4px;
    opacity: .8;
}
.ap-visualizer.playing .bar { animation: bounce 0.8s infinite ease-in-out; }
.ap-visualizer.playing .bar:nth-child(2) { animation-delay: .1s; }
.ap-visualizer.playing .bar:nth-child(3) { animation-delay: .2s; }
.ap-visualizer.playing .bar:nth-child(4) { animation-delay: .3s; }
.ap-visualizer.playing .bar:nth-child(5) { animation-delay: .4s; }

@keyframes bounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.ap-progress {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-time {
    font-size: 12px;
    color: #b8b8b8;
    min-width: 40px;
    text-align: center;
}

.ap-bar {
    position: relative;
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.ap-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    will-change: width;
}

.ap-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}
.ap-volume i { color: var(--primary-color); font-size: 14px; }
.ap-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
}
.ap-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: #ffffff;
}

.portfolio-info p {
color: #b0b0b0;
line-height: 1.6;
}

/* Sticky section quick navigation */
.section-quicknav {
    /* Disable sticky to prevent layout thrash near pricing */
    position: static;
    top: auto; /* below header */
    z-index: 900;
    background: rgba(10, 10, 20, 0.7);
    /* Disable backdrop blur for stability near pricing section */
    backdrop-filter: none !important;
}
.section-quicknav .container {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.section-quicknav .qn-link {
    color: #dfe7ee;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    transition: all .2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}
.section-quicknav .qn-link:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Collapsible grids (Show more) */
.collapsed-grid {
    max-height: 520px;
    overflow: hidden;
    position: relative;
}
.collapsed-grid::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
    background: linear-gradient(180deg, rgba(10,10,20,0), rgba(10,10,20,0.95));
}
.show-more-wrap { text-align: center; margin-top: 0.5rem; }
.show-more-btn { 
    display: inline-block; cursor: pointer; padding: 0.6rem 1rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #fff;
}

/* Back-to-top button */
.back-to-top {
    position: fixed; right: 20px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .2s ease;
    will-change: transform, opacity;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Splash screen */
html, body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #eaf6ff;
  background: none; /* handled by body::before/::after */
  background-color: #05090e; /* fallback so gutters never show white */
  line-height: 1.6;
  overflow-x: hidden; /* prevent off-canvas glow from creating side seam */
  margin: 0; padding: 0; /* ensure no UA margins */
  /* Avoid horizontal shift when scrollbar appears/disappears */
  scrollbar-gutter: stable; /* avoid left reserved gutter that can look like a stripe */
  /* Prevent browser scroll anchoring globally (we already disable locally on pricing) */
  overflow-anchor: none;
}
#splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.78), rgba(0,0,0,0.92));
  z-index: 3000;
  animation: splashFadeOut 1.2s ease 1.1s forwards;
}
.splash-inner { animation: splashPop .9s ease both; }
.splash-logo { width: 120px; height: auto; display: block; filter: drop-shadow(0 6px 24px rgba(0,212,255,0.35)); }

@keyframes splashPop {
  0% { transform: scale(0.84); opacity: 0; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1.0); opacity: 1; }
}
@keyframes splashFadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  #splash, .splash-inner { animation: none !important; }
  #splash { display: none !important; }
}

/* Beats Playlist */
.beats-playlist {
    background: rgba(255, 255, 255, 0.05);
    /* backdrop-filter: blur(20px); */ /* DISABLED - Performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}
.beats-playlist .portfolio-subtitle {
    margin: 1rem 1rem 0.5rem;
}

.bp-player {
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.07), rgba(0, 153, 204, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25) inset;
}

.bp-controls {
    display: grid;
    grid-template-columns: auto auto auto 1fr minmax(220px, 420px) auto;
    align-items: center;
    gap: 14px;
}

.bp-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bp-btn.play {
    background: radial-gradient(circle at 30% 30%, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.35);
}
.bp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 212, 255, 0.25); }
.bp-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 40%, transparent); }

.bp-title {
    color: #eaeaea;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .2px;
}

.bp-time {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}
.bp-current, .bp-duration { font-size: 12px; color: #b8b8b8; min-width: 40px; text-align: center; }
.bp-bar {
    position: relative;
    height: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: pointer;
}
.bp-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    will-change: width;
}

.bp-volume { display: flex; align-items: center; gap: 8px; }
.bp-volume i { color: var(--primary-color); font-size: 14px; }
.bp-volume input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 110px; height: 6px; border-radius: 10px;
    background: rgba(255,255,255,0.12);
}
.bp-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
.bp-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 12px;
    overflow-x: auto;
    padding: 14px 14px 16px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* edge fade */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.bp-strip::-webkit-scrollbar { height: 8px; }
.bp-strip::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.24); border-radius: 999px; }

.bp-buy-wrap { display: flex; justify-content: center; padding: 0 14px 14px; }
.bp-buy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #001219; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bp-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 212, 255, 0.4); }
.bp-buy-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,212,255,.45); }

/* Contact items as links */
.contact-info { display: grid; gap: 14px; }
.contact-info .contact-item a { display: flex; align-items: center; gap: 12px; color: #e9f7ff; text-decoration: none; padding: 14px 16px; border-radius: 14px; border:1px solid rgba(159,231,255,.14); background: linear-gradient(180deg, rgba(8,16,24,0.55), rgba(8,16,24,0.35)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 20px rgba(0,212,255,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.contact-info .contact-item a:hover { transform: translateY(-2px); border-color: rgba(159,231,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 28px rgba(0,212,255,.12); }
.contact-info .contact-item a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,212,255,.35), 0 12px 28px rgba(0,212,255,.12); }
.contact-info .contact-item i { color: #0bd3ff; background: rgba(11,211,255,.15); border: 1px solid rgba(11,211,255,.25); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; }

/* Location easter egg ripple */
.contact-location { position: relative; overflow: hidden; cursor: pointer; }
.contact-location .ripple { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,.55), rgba(0,212,255,0)); transform: translate(-50%, -50%) scale(1); pointer-events: none; animation: rippleOut .9s ease forwards; }
@keyframes rippleOut { to { transform: translate(-50%, -50%) scale(18); opacity: 0; } }

/* Pricing helpers */
.price .old { text-decoration: line-through; opacity: .65; margin-right: 10px; }
.pricing-grid .price-card.highlight .badge { background: linear-gradient(135deg, #00d4ff, #7c4dff); color: #001219; }

/* Desired visual order */
.pricing-grid .card-bundle { order: 1; }
.pricing-grid .card-mixmaster { order: 2; }
.pricing-grid .card-catalog-beat { order: 3; }
.pricing-grid .card-cover { order: 4; }
.pricing-grid .card-distribution { order: 5; }
.pricing-grid .card-custom-beat { order: 6; }
.pricing-grid .card-fulltrack { order: 7; }
.pricing-grid .card-lyrics { order: 8; }

.bp-tile {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 153, 204, 0.06));
    color: var(--text-color);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: transform .25s var(--elevate), box-shadow .25s var(--elevate), border-color .25s var(--elevate);
    scroll-snap-align: start;
}
.bp-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,0.35), 0 0 0 1px rgba(0, 212, 255, 0.18) inset; }
.bp-tile.active { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35) inset, 0 8px 24px rgba(0, 212, 255, 0.08); }
.bp-tile:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 50%, transparent), 0 8px 24px rgba(0, 212, 255, 0.12); }

.bp-thumb { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, .35), rgba(0, 212, 255, .1)); box-shadow: 0 0 18px rgba(0, 212, 255, 0.2) inset; color: var(--primary-color); position: relative; overflow: hidden; }
.bp-tile.playing .bp-thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(0, 212, 255, .25), transparent 60%); animation: pulseGlow 1.6s ease-in-out infinite; }
.bp-tile.playing .bp-thumb i { animation: bob 1.6s ease-in-out infinite; }
.bp-info { display: grid; gap: 4px; text-align: left; }
.bp-name { font-weight: 700; color: var(--heading-color); letter-spacing: .2px; }
.bp-tags { font-size: 12px; opacity: .8; }

/* Tiny EQ equalizer bars on playing tile */
.bp-tile.playing .bp-info::after {
  content: '';
  height: 10px;
  width: 18px;
  justify-self: start;
  background:
    linear-gradient(#7cf, #7cf) 0 100%/3px 40% no-repeat,
    linear-gradient(#9ef, #9ef) 50% 100%/3px 75% no-repeat,
    linear-gradient(#bff, #bff) 100% 100%/3px 55% no-repeat;
  animation: eqBeat 1s ease-in-out infinite;
}

@keyframes eqBeat { 0%,100%{ background-size:3px 40%,3px 75%,3px 55%; } 50%{ background-size:3px 70%,3px 30%,3px 90%; } }
@keyframes pulseGlow { 0%,100%{ opacity:.35; } 50%{ opacity:.7; } }
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-2px); } }
.bp-info { display: grid; gap: 4px; text-align: left; }
.bp-name { font-weight: 600; color: var(--heading-color); }
.bp-tags { font-size: 12px; opacity: .8; }

@media (max-width: 680px) {
  .bp-strip { grid-auto-columns: minmax(180px, 220px); }
}

/* Extra small phones: tighter beats playlist */
@media (max-width: 480px) {
  .bp-strip { grid-auto-columns: minmax(160px, 190px); gap: 6px; }
  .bp-tile { padding: 8px; }
  .bp-thumb { width: 40px; height: 40px; border-radius: 10px; }
  .bp-name { font-size: 14px; }
  .bp-tags { font-size: 11px; }
}

.bp-list {
    max-height: 520px;
    overflow: auto;
}

.bp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background .2s ease;
}
.bp-item:hover { background: rgba(255,255,255,0.04); }
.bp-item.active { background: rgba(0, 212, 255, 0.08); }

.bp-meta { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bp-index { color: #9adff0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bp-name { color: #eaeaea; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-badge {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.bp-actions { display: flex; align-items: center; gap: 8px; }
.bp-actions { position: relative; pointer-events: auto; }
.bp-buy-mini { 
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12); color: #fff; background: rgba(0,0,0,0.35);
    opacity: 0; transform: translateY(2px); transition: all .2s ease;
    cursor: pointer; pointer-events: auto; z-index: 1;
}
.bp-item:hover .bp-buy-mini { opacity: 1; transform: translateY(0); }

.bp-mini-play {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.35);
    color: #fff; display: grid; place-items: center; cursor: pointer; pointer-events: auto; z-index: 1;
}

/* Ensure buy button visible on touch devices (no hover) */
@media (hover: none) {
  .bp-buy-mini { opacity: 1; transform: translateY(0); }
}

/* Center the "Listen all beats" CTA */
.beats-cta { 
  grid-column: 1 / -1; /* span full grid width */
  display: flex; 
  justify-content: center; 
  width: 100%;
  justify-self: center; /* center as grid item if not full width */
  margin-top: 0.75rem; 
}
.beats-cta { 
  grid-column: 1 / -1; 
  display: flex; 
  justify-content: center; 
  width: 100%;
  justify-self: center; 
  margin-top: 1.5rem; 
}
.beats-cta .btn { display: inline-block; }

/* Fly-to-cart animation element */
.fly-dot {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  pointer-events: none;
  z-index: 2000;
  transform: translate(0,0) scale(1);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s ease;
}

.bp-buy-wrap { display: flex; justify-content: center; padding: 12px 16px 16px; }
.bp-buy-btn {
    display: inline-block; padding: 0.6rem 1rem; border-radius: 999px;
    color: #0b1520; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    font-weight: 700; border: none;
}

/* Make CTA span full grid width and center inside portfolio grid */
.portfolio-grid > .bp-buy-wrap {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
    .bp-controls { grid-template-columns: auto auto auto 1fr 1fr auto; }
}
@media (max-width: 600px) {
    .bp-controls { grid-template-columns: auto auto auto 1fr; grid-template-rows: auto auto; }
    .bp-title { grid-column: 4 / -1; }
    .bp-time { grid-column: 1 / -1; }
    .bp-volume { grid-column: 4 / -1; justify-self: end; }
}

/* Portfolio subtitles and grouped grids */
.portfolio-subtitle {
font-size: 1.6rem;
font-weight: 700;
margin-top: 1rem;
margin-bottom: 0.5rem;
background: linear-gradient(45deg, #ffffff, var(--primary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.portfolio-subgrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

/* Covers carousel */
.covers-carousel-wrapper { width: 100%; max-width: 620px; margin: 0 auto 1rem; position: relative; }
.covers-carousel {
position: relative;
overflow: hidden;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.04);
 margin: 0 auto;
}

.covers-track {
display: flex;
width: 100%;
transition: transform 0.5s ease;
}

.cover-slide {
min-width: 100%;
height: 260px;
}
.cover-slide img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.covers-controls {
position: absolute;
top: 50%;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
padding: 0 8px;
pointer-events: none;
}
.covers-btn {
pointer-events: auto;
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
display: grid;
place-items: center;
background: rgba(0, 0, 0, 0.45);
color: #fff;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
}
.covers-btn:hover { background: rgba(0, 0, 0, 0.6); transform: translateY(-2px); }

.covers-indicators {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 6px;
 z-index: 2;
}
.covers-indicators .dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}
.covers-indicators .dot.active {
background: var(--primary-color);
box-shadow: 0 0 10px rgba(0,212,255,0.6);
}

/* Cover lightbox overlay */
.cover-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.cover-lightbox.open { display: flex; }
.cover-lightbox .clb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.cover-lightbox .clb-img { position: relative; max-width: min(92vw, 1200px); max-height: 86vh; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.cover-lightbox .clb-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.5); color: #fff; cursor: pointer; }

/* Lightbox arrows - UNIVERSAL VISIBILITY */
.cover-lightbox .clb-prev,
.cover-lightbox .clb-next {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 70px !important; 
  height: 70px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255,255,255,1) !important;
  background: rgba(0,0,0,0.95) !important;
  color: #fff !important;
  cursor: pointer !important;
  display: block !important;
  text-align: center !important;
  line-height: 62px !important;
  z-index: 999999 !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(0,212,255,0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.cover-lightbox .clb-prev:hover,
.cover-lightbox .clb-next:hover,
.cover-lightbox .clb-prev:active,
.cover-lightbox .clb-next:active {
  background: rgba(0,212,255,0.9) !important;
  border-color: rgba(255,255,255,1) !important;
  transform: translateY(-50%) scale(1.1) !important;
}
.cover-lightbox .clb-prev { left: 15px !important; }
.cover-lightbox .clb-next { right: 15px !important; }
.cover-lightbox .clb-close { z-index: 9999 !important; }

@media (max-width: 768px) {
  .cover-lightbox .clb-prev,
  .cover-lightbox .clb-next {
    width: 60px; height: 60px;
    font-size: 24px;
  }
  .cover-lightbox .clb-prev { left: 10px; }
  .cover-lightbox .clb-next { right: 10px; }
}

@media (max-width: 768px) {
.cover-slide { height: 200px; }
.cover-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}
}

/* Square covers for mixing/mastering examples - iPhone compatible */
.covers-carousel .cover-slide img {
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
}
.cover-slide {
  aspect-ratio: 1/1 !important;
}
@media (max-width: 768px) {
  .covers-carousel .cover-slide {
    aspect-ratio: 1/1 !important;
    height: auto !important;
  }
  .covers-carousel .cover-slide img {
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}

/* Scrolling text for long titles */
.portfolio-subtitle.marquee {
  overflow: hidden;
  white-space: nowrap;
}
.portfolio-subtitle.marquee .marquee-track {
  display: inline-block;
  animation: marquee-scroll 15s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Header: mobile cart icon next to hamburger - REMOVED DUPLICATE */
@media (max-width: 768px) {
  /* Mobile cart styling is handled in the main mobile block above */
}

/* Calculator: quantity row layout - FIXED POSITIONING */
.calc-qty-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
}
.calc-qty-wrap #calc-qty {
  text-align: center;
  height: 44px;
  border-radius: 10px;
  flex: 0 0 80px !important;
  min-width: 80px !important;
}
.calc-qty-wrap .calc-step {
  width: 44px !important; 
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px;
  font-size: 20px !important;
  line-height: 1 !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
}
/* iPhone 11 and mobile specific fixes */
@media (max-width: 768px), (max-device-width: 768px), (-webkit-min-device-pixel-ratio: 2) {
  .calc-qty-wrap { 
    grid-template-columns: 50px minmax(70px, 1fr) 50px !important; 
    gap: 12px !important; 
  }
  .calc-qty-wrap #calc-qty { 
    height: 50px !important; 
    font-size: 18px !important;
    line-height: 50px !important;
  }
  .calc-qty-wrap .calc-step { 
    width: 50px !important; 
    height: 50px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(0,212,255,0.1) !important;
    border: 2px solid rgba(0,212,255,0.3) !important;
    color: #00d4ff !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
  }
  .calc-qty-wrap .calc-step:active {
    background: rgba(0,212,255,0.2) !important;
    transform: scale(0.95) !important;
  }
}

/* Cases Section */
.cases {
padding: 80px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    /* backdrop-filter: blur(24px) saturate(140%); */ /* DISABLED - Performance */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
/* Light case-card variant removed */

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    /* box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2); */ /* DISABLED - Performance */
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.case-content p {
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.case-stats span {
    background: color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 1.5rem;
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    /* backdrop-filter: blur(24px) saturate(140%); */ /* DISABLED - Performance */
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
}
/* Light service-card variant removed */

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    /* box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2); */ /* DISABLED - Performance */
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.service-card p {
    color: #c5d5db;
    margin-bottom: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.25rem;
}

.service-card li {
    color: #b0b0b0;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--primary-color);
    font-weight: bold;
}

.service-hover {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.service-hover .btn {
    flex: 1 1 160px;
    min-width: 140px;
    justify-content: center;
}

@media (max-width: 640px) {
  .service-card { padding: 1.25rem; }
  .service-card h3 { font-size: 1.15rem; }
  .services-grid { gap: 1rem; }
}

/* Pricing Section */
.pricing { padding: 80px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  /* backdrop-filter: blur(24px) saturate(140%); */ /* DISABLED - Performance */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}

#pricing .price-card:hover { transform: translateY(-6px); /* box-shadow: 0 16px 36px rgba(0, 212, 255, 0.25); */ } /* DISABLED - Performance */

.price-card .badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  color: #05202b;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.35);
}

.price-card h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.price-card .price {
  color: #eaf8ff;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.price-card .features { list-style: none; margin: 0 0 1rem 0; padding: 0; }
.price-card .features li { color: #b0b0b0; padding: 0.4rem 0 0.4rem 1.25rem; position: relative; }
.price-card .features li::before { content: '•'; position: absolute; left: 0; color: var(--primary-color); }

.price-card .actions { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.price-card .actions .btn { flex: 1 1 160px; min-width: 140px; justify-content: center; }

@media (max-width: 640px) {
  .price-card { padding: 1.25rem; }
  .price-card h3 { font-size: 1.1rem; }
  .price-card .price { font-size: 1.25rem; }
}

/* Contact Section - Unified Beautiful Block */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: linear-gradient(180deg, rgba(12,20,28,0.45), rgba(8,16,24,0.32));
    border: 1px solid rgba(159,231,255,0.16);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 40px rgba(0,0,0,0.32);
    position: relative;
    overflow: hidden;
}

/* Contact block inner glow */
.contact-content::before {
    content: "";
    position: absolute;
    inset: -15% -15% -20% -15%;
    pointer-events: none;
    background:
        radial-gradient(400px 200px at 15% -5%, rgba(0,212,255,0.20), transparent 70%),
        radial-gradient(400px 200px at 105% 15%, rgba(140,90,255,0.18), transparent 70%);
    filter: blur(20px);
    opacity: .5;
    z-index: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(12,20,28,0.6), rgba(8,16,24,0.4));
    border: 1px solid rgba(159,231,255,0.18);
    border-radius: 16px;
    color: #e9f7ff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 24px rgba(0,0,0,0.25),
        0 0 0 rgba(0,212,255,0);
    position: relative;
    z-index: 2;
}

.contact-item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(140,90,255,0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.contact-item a:hover {
    transform: translateY(-2px);
    border-color: rgba(159,231,255,0.32);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 16px 36px rgba(0,0,0,0.35),
        0 0 32px rgba(0,212,255,0.15);
}

.contact-item a:hover::before {
    opacity: 1;
}

.contact-item i {
    font-size: 20px;
    color: #0bd3ff;
    background: linear-gradient(135deg, rgba(11,211,255,0.25), rgba(140,90,255,0.15));
    border: 1px solid rgba(11,211,255,0.35);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 4px 12px rgba(0,212,255,0.2);
    transition: all 0.3s ease;
}

.contact-item a:hover i {
    background: linear-gradient(135deg, rgba(11,211,255,0.4), rgba(140,90,255,0.25));
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 6px 18px rgba(0,212,255,0.35);
    transform: scale(1.05);
}

.contact-location {
    cursor: pointer;
}

.contact-location span {
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-form .form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(12,20,28,0.5), rgba(8,16,24,0.35));
    border: 1px solid rgba(159,231,255,0.16);
    border-radius: 14px;
    color: #e9f7ff;
    font-size: 15px;
    font-family: inherit;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(233,247,255,0.55);
    font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(0,212,255,0.45);
    background: linear-gradient(135deg, rgba(12,20,28,0.65), rgba(8,16,24,0.45));
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 6px 20px rgba(0,0,0,0.25),
        0 0 24px rgba(0,212,255,0.12);
    transform: translateY(-1px);
}

.contact-form .btn {
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    align-self: flex-start;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0a0f14;
    color: #98a4ad;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Beats page performance overrides ===== */
.page-beats .reveal,
.page-beats .reveal.in-view {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}
.page-beats .portfolio-item,
.page-beats .beats-playlist,
.page-beats .bp-tile,
.page-beats .portfolio-subgrid,
.page-beats .filters,
.page-beats .header,
.page-beats .footer,
.page-beats .hero {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}
.page-beats #beats-grid { contain: content; }
.page-beats .audio-player .ap-visualizer:not(.playing) { animation: none; }
.page-beats .audio-player .ap-visualizer .bar { will-change: auto; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reveal helper class for JS-driven intersection observer */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; will-change: transform, opacity; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal, .reveal.in-view { transition: none; }
  .ap-visualizer.playing .bar { animation: none; }
}

/* ===== Custom Scrollbar (compact, modern) ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 200, 255, 0.45) transparent; /* Firefox */
}
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body::-webkit-scrollbar-track {
  background: transparent;
}
body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(5,9,14,0.9);
  background: linear-gradient(180deg, rgba(125,211,252,0.65), rgba(167,139,250,0.6));
  box-shadow: 0 0 18px rgba(125,211,252,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(125,211,252,0.85), rgba(167,139,250,0.8));
  box-shadow: 0 0 22px rgba(125,211,252,0.35);
}

/* ===== Unified Glassmorphism Cards + Fireflies ===== */
.stat-card,
.service-card,
.case-card,
.testimonial-card,
.blog-card {
  position: relative;
  background: linear-gradient(180deg, rgba(12,20,28,0.42), rgba(8,16,24,0.28));
  border: 1px solid rgba(159,231,255,0.14);
  border-radius: 16px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 26px rgba(0,0,0,0.28);
  overflow: hidden;
}


.price-card {
  position: relative;
  background: linear-gradient(180deg, rgba(12,20,28,0.42), rgba(8,16,24,0.28));
  border: 1px solid rgba(159,231,255,0.14);
  border-radius: 16px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 26px rgba(0,0,0,0.28);
  overflow: visible; /* Allow badge to be visible */
}

/* subtle inner gradient halo */
.stat-card::before,
.service-card::before,
.case-card::before,
.testimonial-card::before,
.blog-card::before {
  content: "";
  position: absolute;
  inset: -20% -20% -30% -20%;
  pointer-events: none;
  background:
    radial-gradient(320px 160px at 10% -10%, rgba(0,212,255,0.18), transparent 70%),
    radial-gradient(320px 160px at 110% 10%, rgba(140,90,255,0.16), transparent 70%),
    radial-gradient(240px 140px at 100% 120%, rgba(0,220,180,0.10), transparent 76%);
  filter: blur(18px);
  opacity: .45;
  z-index: 0;
}

/* animated fireflies layer */
.stat-card::after,
.service-card::after,
.case-card::after,
.testimonial-card::after,
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(125,211,252,0.9), transparent 60%),
    radial-gradient(2px 2px at 70% 15%, rgba(167,139,250,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 70%, rgba(0,220,180,0.9), transparent 60%),
    radial-gradient(2px 2px at 35% 80%, rgba(125,211,252,0.85), transparent 60%);
  background-repeat: no-repeat;
  animation: firefliesDrift 12s ease-in-out infinite alternate;
  opacity: .25;
}

@keyframes firefliesDrift {
  0%   { transform: translateY(0) translateX(0); filter: drop-shadow(0 0 6px rgba(125,211,252,0.25)); }
  50%  { transform: translateY(-6px) translateX(4px); filter: drop-shadow(0 0 10px rgba(167,139,250,0.35)); }
  100% { transform: translateY(4px) translateX(-6px); filter: drop-shadow(0 0 6px rgba(0,220,180,0.25)); }
}

/* Elevation and glow on hover */
.stat-card:hover,
.service-card:hover,
.case-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  border-color: rgba(159,231,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 36px rgba(0,0,0,0.34), 0 0 24px rgba(0,212,255,0.08);
}

/* Performance-optimized pricing section */
#pricing { 
    overflow-anchor: none; 
    contain: layout paint;
}
#pricing .container { overflow-anchor: none; }

/* Removed expensive backdrop-filter and box-shadow from price cards */
.price-card {
    /* backdrop-filter: blur(12px) saturate(150%); */ /* DISABLED - Major performance hog */
    background: rgba(10, 36, 51, 0.85);
    border: 1px solid rgba(159, 231, 255, 0.12);
    transition: transform .2s ease, background-color .2s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    background-color: rgba(20, 51, 71, 0.95);
}

/* Pause animations during scroll for extra smoothness */
.scrolling .price-card,
.scrolling .price-card:hover {
    transition: none;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2000;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: stretch;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .contact-item a {
        padding: 16px 18px;
        gap: 14px;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-preview {
        gap: 0.5rem;
    }
    
    .preview-item {
        width: 150px;
        height: 112px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card-vertical {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
    
    .stat-text-vertical {
        transform: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}


/* Calculator */
.calculator { margin: 1.25rem 0 2rem; position: relative; }
.calc-title { margin: 0 0 0.75rem; font-weight: 800; letter-spacing: .2px; }
.calc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* Custom checkbox styling for calculator options */
.calc-row label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-row .calc-item[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.calc-row .calc-item[type="checkbox"]::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: scale(0);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: transform .15s ease;
}
.calc-row .calc-item[type="checkbox"]:checked {
  border-color: rgba(0,212,255,0.55);
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.18) inset;
}
.calc-row .calc-item[type="checkbox"]:checked::after {
  transform: scale(1);
}
.calc-row .calc-item[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.35);
}

/* ===== Fireflies background (lightweight) ===== */
.fireflies-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* behind most content */
  /* Dim in the center so over cards it's barely visible */
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 32%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,1) 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 32%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,1) 90%);
}
.firefly {
  position: fixed; /* tie to viewport so it truly floats over the page */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0.16; /* keep subtle while bigger */
  filter: blur(20px);
  mix-blend-mode: screen;
  background: radial-gradient(circle at 35% 35%, rgba(124,77,255,0.95) 0%, rgba(124,77,255,0.7) 35%, rgba(0,212,255,0.8) 60%, rgba(0,212,255,0.0) 76%);
  box-shadow: 0 0 40px rgba(124,77,255,0.18), 0 0 64px rgba(0,212,255,0.12);
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
  animation: ff-drift var(--ff-dur, 30s) linear infinite alternate,
             ff-fade var(--ff-fade, 16s) ease-in-out infinite alternate;
}

@keyframes ff-drift {
  0% { transform: translate3d(0,0,0) scale(var(--ff-scale, 2.2)); }
  100% { transform: translate3d(var(--ff-dx, 140px), var(--ff-dy, 220px), 0) scale(var(--ff-scale, 2.2)); }
}
@keyframes ff-fade {
  0% { opacity: 0.35; }
  100% { opacity: 0.85; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .firefly { animation: none; opacity: 0.5; }
}

#pricing .calc-controls, #pricing .calc-summary,
.calc-controls, .calc-summary {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    backdrop-filter: none !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: none !important;
}
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.65rem 0; border-top: 1px dashed rgba(255,255,255,0.08); transition: background-color .2s ease, border-color .2s ease; }
.calc-row:first-child { border-top: 0; }
/* Disable hover background to avoid any subtle reflow during interaction */
.calc-row:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.14); }
.calc-row label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.calc-row.disabled { opacity: 0.55; pointer-events: none; }

/* Disable :has()-driven highlights to avoid expensive restyle on each click */
.calc-controls:has(input[type="checkbox"]:checked) label:has(input[type="checkbox"]:checked) { color: inherit; }
.calc-controls:has(input[type="checkbox"]:checked) .calc-row:has(input[type="checkbox"]:checked) { background: none; border-radius: 12px; }

/* Inputs */
#calc-qty,
.cover-tier,
#calc-promo {
  width: auto;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #eaf8ff;
}
#calc-qty { width: 120px; }
.calc-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color); }
.price-inline { opacity: 0.9; font-weight: 600; color: #cfe8f1; }
.calc-cover { gap: 0.5rem; }
.cover-tier.disabled { opacity: 0.6; }
.calc-summary { display: grid; align-content: start; gap: 0.9rem; contain: layout paint; }
.calc-total { font-size: clamp(1.2rem, 1vw + 1rem, 1.7rem); font-weight: 900; color: #05202b; background: linear-gradient(180deg, var(--primary-color), var(--secondary-color)); padding: 0.75rem 1rem; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,212,255,0.32); line-height: 1.25; min-height: 52px; display: flex; align-items: center; transition: transform .18s ease, box-shadow .18s ease; }
.calc-total.pulse { transform: translateZ(0) scale(1.035); box-shadow: 0 18px 40px rgba(0,212,255,0.38); }
.calc-breakdown { display: grid; gap: 0.35rem; font-size: 0.95rem; color: #cfe8f1; min-height: 120px; }
.calc-line { opacity: 0.95; }
.calc-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.calc-actions .btn-primary { box-shadow: 0 10px 24px rgba(0,212,255,0.35); }
.calc-actions .btn-outline { border-color: rgba(255,255,255,0.22); }

/* Disable all animations in pricing during scroll for performance */
.scrolling #pricing,
.scrolling #pricing * {
    animation-play-state: paused !important;
    transition: none !important;
    will-change: auto !important;
}

/* Calculator step buttons - minimal effects */
.calc-step { position: relative; overflow: hidden; transition: transform .1s ease; }
.calc-step:hover { transform: translate3d(0, -1px, 0); }
.calc-step:active { transform: translate3d(0, 0, 0); }

/* Ripple only on click, not during scroll */
.calc-step .ripple { 
    position: absolute; border-radius: 999px; pointer-events: none; 
    transform: translate(-50%, -50%); background: rgba(255,255,255,0.25); 
    animation: ripple .3s ease-out; 
}
@keyframes ripple { 
    from { width: 0; height: 0; opacity: .4; } 
    to { width: 120px; height: 120px; opacity: 0; } 
}

/* Minimal feedback for promo */
.calc-promo-msg { transition: color .15s ease; }

/* Breakdown - only opacity changes */
.calc-breakdown .calc-line { transition: opacity .15s ease; }
.calc-breakdown .calc-line.enter { opacity: 0; }
.calc-breakdown .calc-line.enter-active { opacity: 1; }

/* Price cards - GPU-only transforms */
.price-card { transition: transform .15s ease; }
.price-card:hover { transform: translate3d(0, -4px, 0); }
.price-card .actions .btn { transition: transform .1s ease; }
.price-card .actions .btn:hover { transform: translate3d(0, -1px, 0); }

/* Calculator: promo & fulltrack */
.calc-promo { display: flex; gap: 0.5rem; }
#calc-promo {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #eaf8ff;
}
#calc-apply { white-space: nowrap; }
.calc-promo-msg { font-size: 0.9rem; min-height: 24px; }
.calc-promo-msg { font-size: 0.9rem; min-height: 1.2em; }
.calc-promo-msg.ok { color: #8ae6ff; }
.calc-promo-msg.err { color: #ff9b8a; }

.calc-fulltrack { gap: 0.75rem; align-items: center; }
.fulltrack-ctrl { display: flex; align-items: center; gap: 0.5rem; min-width: 220px; }
.fulltrack-range {
  -webkit-appearance: none; appearance: none;
  width: 160px; height: 6px; border-radius: 10px;
  background: rgba(255,255,255,0.12);
}
.fulltrack-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
.fulltrack-price { color: #cfe8f1; font-weight: 600; }

/* FAQ - Beautiful Glassmorphism Design */
.faq { padding: 80px 0; }
.faq-list { display: grid; gap: 16px; max-width: 800px; margin: 0 auto; }

.faq-item { 
    background: linear-gradient(135deg, rgba(12,20,28,0.45), rgba(8,16,24,0.32));
    border: 1px solid rgba(159,231,255,0.16);
    border-radius: 18px;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 8px 24px rgba(0,0,0,0.28);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(159,231,255,0.24);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 12px 32px rgba(0,0,0,0.32),
        0 0 24px rgba(0,212,255,0.08);
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    border: none;
    background: transparent;
    color: #e9f7ff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.faq-q:hover {
    color: #7af5ff;
}

.faq-item.open .faq-q {
    color: #00e5ff;
}

.faq-q::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #0bd3ff;
    background: linear-gradient(135deg, rgba(11,211,255,0.2), rgba(140,90,255,0.1));
    border: 1px solid rgba(11,211,255,0.25);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,212,255,0.15);
}

.faq-item.open .faq-q::after {
    transform: rotate(180deg);
    background: linear-gradient(135deg, rgba(11,211,255,0.35), rgba(140,90,255,0.2));
    box-shadow: 0 4px 12px rgba(0,212,255,0.25);
}

.faq-q:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.35);
    border-radius: 8px;
}

/* Beautiful expanded answer */
.faq-a {
    color: #bfe9ff;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(5,12,18,0.4), rgba(8,16,24,0.2));
    position: relative;
    z-index: 3;
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.open .faq-a {
    opacity: 1;
    padding: 24px;
    max-height: 300px;
}

.faq-a::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff, #7c4dff);
    border-radius: 2px;
    opacity: 0;
    z-index: 1;
}

/* Force clickable */
.faq-item, .faq-q { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-item, .faq-q::after { transition: none; }
  .faq-item::before { animation: none; }
}

/* ===================== Testimonials (Screenshots) ===================== */
.testimonials .shots { margin-top: 16px; }
.shots-loading, .shots-empty { color:#a6c8ff; text-align:center; padding:24px; opacity:0.85; }
.shots-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){ .shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .shots-grid { grid-template-columns: 1fr; } }
.shot-item { margin:0; padding:0; border-radius:0; overflow:hidden; background:transparent; border:none; box-shadow:none; cursor:zoom-in; position:relative; display:flex; align-items:center; justify-content:center; aspect-ratio: 3/2; }
.shot-item img { display:block; width:100%; height:100%; object-fit:contain; object-position: top center; background:transparent; filter: saturate(1.05); transition: transform .25s ease, filter .25s ease; border-radius:0; }
.shot-item:hover img { transform: scale(1.01); filter: saturate(1.1); }
@media (max-width: 560px){ .shot-item { aspect-ratio: 4/3; } }

/* Tighten vertical spacing for testimonials section */
.testimonials { padding-top: 12px; padding-bottom: 0; margin-bottom: 0; }
.testimonials .section-title { margin-bottom: 12px; }
.testimonials + .faq { margin-top: 0; padding-top: 0 !important; }
.testimonials + .faq .section-title { margin-top: 0; }

/* Shared lightbox (reuses cover-lightbox styles if present) */
.cover-lightbox { position: fixed; inset:0; display:none; align-items:center; justify-content:center; z-index: 9999; }
.cover-lightbox.open { display:flex; }
.cover-lightbox .clb-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.75); }
.cover-lightbox .clb-img { position:relative; max-width:min(92vw, 1200px); max-height: 90vh; border-radius:12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.cover-lightbox .clb-close { position:absolute; top:16px; right:16px; font-size:32px; line-height:1; background:transparent; border:none; color:#fff; cursor:pointer; }

/* ===== Unified Audio Player: Large Hero Cover ===== */
.audio-player { 
  --card-bg: rgba(9, 16, 24, 0.65);
  --card-border: rgba(255,255,255,0.06);
  --card-shadow: 0 24px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.03), inset 0 -1px 0 rgba(0,0,0,0.25);
  --accent: #61f2ff;
  --accent2: #7c4dff;
  position: relative;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12,19,27,0.7), rgba(8,13,19,0.6));
  backdrop-filter: blur(10px) saturate(110%);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.audio-player::before {
  content: "";
  position: absolute; inset: -1px; border-radius: 20px; pointer-events:none; z-index:0;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 55%),
    radial-gradient(140% 100% at 50% 120%, color-mix(in srgb, var(--accent2) 18%, transparent) 0%, transparent 60%);
  filter: blur(12px) saturate(120%);
  opacity: .65;
}

/* ===== CRITICAL iPhone 11 FIXES - MAXIMUM SPECIFICITY ===== */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  /* Calculator buttons - FORCE iPhone compatibility */
  body .calculator .calc-qty-wrap .calc-step {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,212,255,0.15) !important;
    border: 2px solid rgba(0,212,255,0.4) !important;
    color: #00d4ff !important;
    border-radius: 12px !important;
    min-height: 50px !important;
    min-width: 50px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: rgba(0,212,255,0.3) !important;
  }
  
  /* Lightbox arrows - MAXIMUM VISIBILITY FORCE */
  body .cover-lightbox .clb-prev,
  body .cover-lightbox .clb-next {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 80px !important;
    height: 80px !important;
    background: rgba(0,0,0,0.95) !important;
    border: 4px solid rgba(255,255,255,0.9) !important;
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    display: block !important;
    text-align: center !important;
    line-height: 72px !important;
    z-index: 999999 !important;
    border-radius: 50% !important;
    -webkit-tap-highlight-color: rgba(0,212,255,0.5) !important;
    touch-action: manipulation !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body .cover-lightbox .clb-prev { left: 5px !important; }
  body .cover-lightbox .clb-next { right: 5px !important; }
  
  /* Audio player mobile fixes - square cover + scrolling text */
  body .audio-player .ap-hero {
    aspect-ratio: 1/1 !important;
    max-width: 280px !important;
    margin: 0 auto 8px !important;
  }
  body .audio-player .ap-title {
    font-size: 16px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  body .audio-player .ap-subtitle {
    font-size: 13px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  /* Square covers - FORCE aspect ratio */
  body .covers-carousel .cover-slide {
    aspect-ratio: 1/1 !important;
    height: auto !important;
    width: 100% !important;
  }
  body .covers-carousel .cover-slide img {
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
  }
  
  /* Beats page spacing - FORCE reduced margins */
  body.page-beats .section {
    padding: 15px 0 !important;
  }
  body.page-beats .container {
    padding: 0 6px !important;
  }
  body.page-beats .beats-playlist {
    padding: 4px !important;
    margin: 6px 0 !important;
  }
  body.page-beats .bp-item {
    padding: 4px 6px !important;
    margin-bottom: 2px !important;
  }
}

.audio-player > * { position: relative; z-index:1; }
.audio-player .ap-hero { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; /* square cover */ background: #0b1117; width: 100%; max-width: 560px; max-height: 56vh; margin: 0 auto 12px; 
  /* Outer glow via filter ensures full-perimeter highlight outside edges */
  filter: var(--edge-out-shadow, none);
}
.audio-player .ap-hero-bg { position: absolute; inset:0; background-size: cover; background-position: center; filter: saturate(1.05) contrast(1.05) brightness(0.9); }
.audio-player .ap-hero::before { content:""; position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(3,7,13,0.65) 0%, rgba(3,7,13,0.1) 35%, rgba(3,7,13,0.25) 65%, rgba(3,7,13,0.75) 100%),
  radial-gradient(120% 80% at 50% -10%, rgba(0,0,0,0.35), transparent 55%);
 z-index:1; }
.audio-player .ap-hero-overlay { display:none; }
.audio-player .ap-hero-overlay .ap-title { font-size: clamp(20px, 3.2vw, 34px); font-weight: 800; letter-spacing: .2px; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.audio-player .ap-hero-overlay .ap-subtitle { opacity: .95; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }

/* Hover scale and animated light waves around cover */
.audio-player .ap-hero { transition: transform .35s ease, filter .35s ease; }
.audio-player:hover .ap-hero { transform: translateZ(0) scale(1.01); }
.audio-player .ap-hero::after { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(97,242,255,0.22), rgba(124,77,255,0.18), rgba(255,45,146,0.08), transparent 70%);
  animation: wave-pulse 3.6s ease-in-out infinite;
}
.audio-player.playing .ap-hero::after { opacity: .55; }

@keyframes wave-pulse {
  0% { transform: scale(0.9); opacity: .35; }
  50% { transform: scale(1.05); opacity: .55; }
  100% { transform: scale(0.9); opacity: .35; }
}

/* optional subtle pill backgrounds for readability */
.audio-player .ap-hero-overlay .ap-title,
.audio-player .ap-hero-overlay .ap-subtitle {
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6,12,18,0.45), rgba(6,12,18,0.25));
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Subtle visualizer sits at bottom of hero */
.audio-player .ap-visualizer { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 48px; z-index: 2; opacity: .95; pointer-events: none; mix-blend-mode: screen; }
.audio-player .ap-visualizer .bar { width: 3px; margin-right: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #61f2ff, #7c4dff 70%, #ff2d92); filter: drop-shadow(0 0 10px rgba(97,242,255,0.35)); }
/* Hide legacy bars only inside the large hero */
.audio-player .ap-hero .ap-visualizer { display: none !important; }
/* Metadata under the cover */
.audio-player .ap-meta { display:flex; flex-direction:column; gap: 6px; align-items:center; text-align:center; margin-bottom: 8px; }
.audio-player .ap-meta .ap-title { font-size: clamp(18px, 2.6vw, 22px); font-weight: 800; letter-spacing: .2px; }
.audio-player .ap-meta .ap-subtitle { font-size: clamp(14px, 2.2vw, 16px); opacity: .95; font-weight: 600; }

/* Progress under hero */
.audio-player .ap-progress { margin-top: 8px; display:grid; grid-template-columns: 54px 1fr 54px; align-items:center; gap: 10px; }
.audio-player .ap-time, .audio-player .ap-duration { font-size: 12px; opacity: .85; font-weight:600; }
.audio-player .ap-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.06); overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,0.35); }
.audio-player .ap-bar-fill { position:absolute; left:0; top:0; bottom:0; width: 0%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 85%, #fff 0%), color-mix(in srgb, var(--accent2) 85%, #fff 0%)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); transition: width .25s ease, transform .15s ease, filter .2s ease; }
.audio-player .ring-val { transition: stroke-dashoffset .25s ease, transform .15s ease, filter .2s ease; }

@media (max-width: 760px) {
  .audio-player .ap-hero { aspect-ratio: 1 / 1; max-width: 92vw; max-height: 58vw; }
  .audio-player .ap-visualizer { height: 36px; left: 10px; right: 10px; bottom: 10px; }
}

/* Mix selector (glass pills) */
.mix-selector-container { display:flex; flex-wrap: wrap; gap: 8px; margin: 10px auto 0; justify-content: center; }
.mix-selector-container .mix-btn { appearance:none; border:none; cursor:pointer; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .2px; color:#cfeeff;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.mix-selector-container .mix-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,0.32); }
.mix-selector-container .mix-btn.active { color: #071018; background: linear-gradient(90deg, var(--accent, #61f2ff), var(--accent2, #7c4dff)); border-color: transparent; box-shadow: 0 10px 32px rgba(97,242,255,0.28); }

/* Controls subtle hover */
.audio-player .ap-controls .ap-icon, .audio-player .ap-controls .ap-play { transition: transform .15s ease, filter .2s ease; }
.audio-player .ap-controls .ap-icon:hover, .audio-player .ap-controls .ap-play:hover { transform: translateY(-1px); filter: brightness(1.05) saturate(1.05); }

/* Lucide icons sizing */
.audio-player .ap-controls svg.lucide { width: 20px; height: 20px; stroke-width: 2px; }
.audio-player .ap-play .ap-icon-slot svg.lucide { width: 22px; height: 22px; }

/* Inline SVG icons sizing (fallback) */
.audio-player .ap-controls .ap-svg { width: 20px; height: 20px; display: inline-block; }
.audio-player .ap-play .ap-icon-slot .ap-svg { width: 24px; height: 24px; }

/* Clickable hero cover */
.audio-player .ap-hero { cursor: pointer; }

/* Micro-bounce animation for play button */
@keyframes ap-bounce-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.audio-player .ap-play.ap-bounce, .audio-player .ap-play.ap-bounce * { will-change: transform; }
.audio-player .ap-play.ap-bounce { animation: ap-bounce-pop 280ms cubic-bezier(.18,.89,.32,1.28); }

/* Accent colored outline for active mix pill */
.mix-selector-container .mix-btn.active {
  outline: 2px solid var(--accent, #61f2ff);
  outline-offset: 0px;
}
