/* ============================================================
   SV Tech Innovations — Animation Styles
   ============================================================ */

/* ===== FADE UP ON SCROLL ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in {
  opacity: 0;
  transform: translateX(40px);
  animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE TRANSITION ===== */
.page-enter {
  animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SHIMMER LOADING ===== */
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}

.shimmer {
  background: linear-gradient(90deg,
    var(--bg-surface) 25%,
    var(--bg-surface-2) 50%,
    var(--bg-surface) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ===== NUMBER COUNT UP ===== */
.count-up { transition: all 0.05s; }

/* ===== GRADIENT TEXT ANIMATION ===== */
.gradient-text-animate {
  background: linear-gradient(270deg, #E8A020, #FF6B35, #E8A020, #FF6B35);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

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

/* ===== SPIN ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== MODAL ANIMATION ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(20px);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideIn {
  to { transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.modal-close:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.modal-body { padding: 2rem; }

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateX(200%);
  transition: transform var(--transition-spring);
  max-width: 340px;
}

.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid #27AE60; }
.toast.error { border-left: 3px solid #E8572A; }

/* ===== STAGGER CHILDREN ===== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
}

.stagger-children.in-view > *:nth-child(1) { animation: fadeUp 0.5s 0.05s forwards; }
.stagger-children.in-view > *:nth-child(2) { animation: fadeUp 0.5s 0.15s forwards; }
.stagger-children.in-view > *:nth-child(3) { animation: fadeUp 0.5s 0.25s forwards; }
.stagger-children.in-view > *:nth-child(4) { animation: fadeUp 0.5s 0.35s forwards; }
.stagger-children.in-view > *:nth-child(5) { animation: fadeUp 0.5s 0.45s forwards; }
.stagger-children.in-view > *:nth-child(6) { animation: fadeUp 0.5s 0.55s forwards; }

/* ===== MISC UTILITIES ===== */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ===== INNER PAGE HERO ===== */
.inner-hero {
  background: var(--gradient-hero);
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,160,32,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.inner-hero .section-tag { margin-bottom: 1.25rem; }
.inner-hero h1 { margin-bottom: 1rem; }
.inner-hero p {
  font-size: 1.12rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== DISCLAIMER BADGE ===== */
.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,107,53,0.09);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: #E8572A;
  line-height: 1.5;
}

/* ============================================================
   ████  NEW PREMIUM EFFECTS  ████
   ============================================================ */

/* ===== 1. SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #F97316 0%, #C026D3 50%, #7C3AED 100%);
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(124,58,237,.55), 0 0 5px rgba(249,115,22,.45);
}

/* ===== 2. CURSOR GLOW (desktop only) ===== */
#cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(124,58,237,.14) 0%,
    rgba(249,115,22,.07) 38%,
    transparent 68%
  );
  transform: translate3d(-999px, -999px, 0);
  z-index: 1;
  will-change: transform;
  transition: opacity .35s ease;
}
#cursor-glow.glow-active {
  /* no additional styles needed — position set via JS */
}
/* Completely hide on touch devices */
@media (pointer: coarse) {
  #cursor-glow { display: none !important; }
}

/* ===== 3. FLOATING WIDGET (WhatsApp + Back-to-Top) ===== */
#float-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

/* Back to top */
#btn-top {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,.28);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #7C3AED;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(124,58,237,.18);
  transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1),
              background .22s, color .22s, box-shadow .22s;
  opacity: 0;
  transform: translateY(14px) scale(.82);
  pointer-events: none;
}
#btn-top.top-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#btn-top:hover {
  background: #7C3AED;
  color: #fff;
  border-color: #7C3AED;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 28px rgba(124,58,237,.44);
}
[data-theme="dark"] #btn-top {
  background: rgba(22,11,34,.88);
  border-color: rgba(167,139,250,.28);
  color: #A78BFA;
}
[data-theme="dark"] #btn-top:hover {
  background: #7C3AED;
  color: #fff;
  border-color: #7C3AED;
}

/* WhatsApp floating button */
#btn-wa-float {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.1rem .65rem .7rem;
  border-radius: var(--radius-full);
  background: #22C55E;
  color: #fff;
  font-family: var(--font);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 26px rgba(34,197,94,.42);
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              box-shadow .3s ease,
              padding .3s ease;
  position: relative;
  overflow: hidden;
}
#btn-wa-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 38px rgba(34,197,94,.52);
  color: #fff;
}
.wa-float-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform .3s;
}
#btn-wa-float:hover .wa-float-icon { transform: rotate(-10deg) scale(1.14); }
.wa-float-label { line-height: 1.2; }
.wa-float-label small { display: block; font-size: .7rem; font-weight: 500; opacity: .82; }

/* Pulsing ring */
#btn-wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(34,197,94,.5);
  animation: wa-ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-ring {
  0%   { opacity: 1;  transform: scale(1);    }
  75%  { opacity: 0;  transform: scale(1.28); }
  100% { opacity: 0;  transform: scale(1.28); }
}

/* ===== 4. EXTRA SCROLL ANIMATIONS ===== */

/* Scale-in: pops in from smaller */
.scale-in {
  opacity: 0;
  transform: scale(0.86) translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.scale-in.vis { opacity: 1; transform: scale(1) translateY(0); }
.scale-in.d1 { transition-delay: .08s; }
.scale-in.d2 { transition-delay: .17s; }
.scale-in.d3 { transition-delay: .26s; }
.scale-in.d4 { transition-delay: .35s; }
.scale-in.d5 { transition-delay: .44s; }
.scale-in.d6 { transition-delay: .53s; }

/* Slide from left */
.slide-left {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide-left.vis { opacity: 1; transform: translateX(0); }
.slide-left.d1 { transition-delay: .08s; }
.slide-left.d2 { transition-delay: .18s; }
.slide-left.d3 { transition-delay: .28s; }

/* Slide from right */
.slide-right {
  opacity: 0;
  transform: translateX(52px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide-right.vis { opacity: 1; transform: translateX(0); }
.slide-right.d1 { transition-delay: .08s; }
.slide-right.d2 { transition-delay: .18s; }
.slide-right.d3 { transition-delay: .28s; }

/* Pure fade (no movement — great for backgrounds/images) */
.fade-in {
  opacity: 0;
  transition: opacity .95s var(--ease);
}
.fade-in.vis { opacity: 1; }
.fade-in.d1 { transition-delay: .1s; }
.fade-in.d2 { transition-delay: .22s; }
.fade-in.d3 { transition-delay: .34s; }

/* ===== 5. STAT COUNTER ===== */
.stat-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   PREMIUM FEATURES BATCH 2
   ================================================================ */

/* ── PARALLAX HERO BLOBS ──────────────────────────────────────── */
.hero-glow,
.hero-glow-2 {
  will-change: transform;
}

/* ── 3D TILT CARDS ────────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  /* JS handles transitions dynamically */
}
/* Mobile: use a satisfying scale-bounce press instead of 3D tilt */
@media (pointer: coarse) {
  .tilt-card:active {
    transform: scale(0.96) !important;
    transition: transform 0.18s cubic-bezier(.3,1.5,.5,1) !important;
  }
}

/* ── TYPEWRITER ON SCROLL ─────────────────────────────────────── */
.scroll-type-cursor {
  display: inline-block;
  color: var(--purple);
  font-weight: 300;
  margin-left: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  animation: scrollTypeBlink 0.75s step-end infinite;
}
.scroll-type-cursor.active { opacity: 1; }
@keyframes scrollTypeBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── GRADIENT TEXT SHIMMER (one-shot on first reveal) ─────────── */
/*
  Apply .text-shimmer to any heading span that would normally use .grad-text.
  The shimmer sweep fires once when the element gets .vis from the IO.
*/
.text-shimmer {
  background: linear-gradient(
    90deg,
    #F97316 0%,
    #C026D3 22%,
    #7C3AED 45%,
    #F97316 68%,
    #7C3AED 100%
  );
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-position: 0% center;
}
.text-shimmer.vis {
  animation: textShimmerOnce 1.8s 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes textShimmerOnce {
  0%   { background-position: 0%   center; }
  55%  { background-position: 100% center; }
  100% { background-position: 65%  center; }
}

/* ── SVG PROGRESS RING ────────────────────────────────────────── */
.ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
.ring-svg {
  position: absolute;
  top: 0; left: 0;
  transform: rotate(-90deg);
  overflow: visible;
}
.ring-track {
  fill: none;
  stroke: rgba(124, 58, 237, 0.1);
  stroke-width: 3.5;
}
.ring-circle {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  /* start at full dashoffset = hidden; JS sets final value to animate */
  transition: stroke-dashoffset 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.ring-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  /* keeps the gradient text look */
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   PREMIUM FEATURES BATCH 3
   ================================================================ */

/* ── STAGGERED WORD REVEAL ───────────────────────────────────── */
.word-reveal-wrap {
  display: inline-block;
  overflow: hidden;
  line-height: 1.25;
  vertical-align: bottom;
  /* gap between words */
  margin-right: 0.26em;
}
.word-reveal {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.42s ease;
  will-change: transform, opacity;
}
.word-reveal.vis {
  transform: translateY(0);
  opacity: 1;
}
/* cascade shimmer to any .text-shimmer nested inside a word-reveal when it becomes visible */
.word-reveal.vis .text-shimmer {
  animation: textShimmerOnce 1.8s 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .word-reveal { transform: none; opacity: 1; transition: none; }
}

/* ── SPOTLIGHT CARD ──────────────────────────────────────────── */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--spotlight-x, -300%) var(--spotlight-y, -300%),
    rgba(124, 58, 237, 0.11),
    rgba(249, 115, 22, 0.04) 45%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.spotlight-card:hover::before { opacity: 1; }
/* keep card children above the overlay */
.spotlight-card > * { position: relative; z-index: 1; }

/* ── SECTION DOT NAVIGATOR ──────────────────────────────────── */
.section-nav {
  position: fixed;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 888;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}
@media (max-width: 900px) { .section-nav { display: none; } }

.sec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(124, 58, 237, 0.32);
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  outline: none;
}
/* tooltip */
.sec-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-family: var(--font);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.sec-dot:hover::after,
.sec-dot:focus::after { opacity: 1; }
.sec-dot:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: var(--purple);
  transform: scale(1.3);
}
.sec-dot.active {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* ── MAGNETIC BUTTON RIPPLE (mobile tap) ────────────────────── */
.magnetic { overflow: hidden; }
.btn-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transform: scale(0);
  animation: rippleOut 0.65s ease-out forwards;
}
@keyframes rippleOut {
  to { transform: scale(5); opacity: 0; }
}

/* ── HERO FLOATING PARTICLES ────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hprt {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: hprtFloat linear infinite;
}
@keyframes hprtFloat {
  0%   { transform: translateY(108%) scale(0);   opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-12%) scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hprt { animation: none; opacity: 0; }
}

/* ── SVG BACKGROUND PATHS ───────────────────────────────────── */
.hero-bg-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.bg-path { fill: none; stroke: url(#heroBgGrad); }
.bg-path-h {
  animation: bgPathPulse ease-in-out infinite alternate;
}
@keyframes bgPathPulse {
  0%   { opacity: 0.02; stroke-width: 0.8; }
  100% { opacity: 0.07; stroke-width: 1.8; }
}
.bgp1 { animation-duration: 7s;  animation-delay: 0s;    stroke-width: 1.2; }
.bgp2 { animation-duration: 9s;  animation-delay: 1.3s;  stroke-width: 1.2; }
.bgp3 { animation-duration:11s;  animation-delay: 2.5s;  stroke-width: 1.2; }
.bgp4 { animation-duration: 8s;  animation-delay: 0.7s;  stroke-width: 1.2; }
.bgp5 { animation-duration:13s;  animation-delay: 3.1s;  stroke-width: 1.0; }
.bgp6 { animation-duration: 6s;  animation-delay: 1.7s;  stroke-width: 1.0; }
.bgp7 { animation-duration:10s;  animation-delay: 4.2s;  stroke-width: 1.0; }
.bgp8 { animation-duration:12s;  animation-delay: 0.3s;  stroke-width: 1.0; }
@media (prefers-reduced-motion: reduce) {
  .bg-path-h { animation: none; opacity: 0.04; }
}

/* ── CONTAINER SCROLL 3D ────────────────────────────────────── */
.scroll-3d-viewport {
  perspective: 1200px;
  perspective-origin: center 15%;
}
.scroll-3d-inner {
  transform: rotateX(26deg) scale(0.88);
  transform-origin: center top;
  will-change: transform;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 50px 90px rgba(0, 0, 0, 0.26);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-3d-inner { transform: none !important; }
}

/* ══════════════════════════════════════════════════
   FEATURE E — SKELETON SHIMMER LOADER
══════════════════════════════════════════════════ */
.img-skeleton {
  background: var(--bg2);
  display: block;
}
.img-skeleton:not([src=""]):not(.loaded) {
  /* before image loads — show shimmer placeholder */
  min-height: 120px;
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.shimmer-active {
  background: linear-gradient(
    90deg,
    var(--bg2) 25%,
    var(--bg3, rgba(124,58,237,.07)) 50%,
    var(--bg2) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
/* Fade in once loaded */
.img-skeleton.loaded {
  animation: imgFadeIn .35s ease forwards;
}
@keyframes imgFadeIn {
  from { opacity: 0; transform: scale(1.01); }
  to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════
   FEATURE C — HORIZONTAL FILMSTRIP
══════════════════════════════════════════════════ */
.filmstrip-section {
  padding: 0;
  overflow: hidden;
}
.filmstrip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .5rem .25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
  cursor: grab;
  user-select: none;
}
.filmstrip::-webkit-scrollbar { height: 5px; }
.filmstrip::-webkit-scrollbar-track { background: transparent; }
.filmstrip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--orange), var(--purple));
  border-radius: 4px;
}
.filmstrip.is-dragging { cursor: grabbing; }
.film-item {
  flex: 0 0 auto;
  width: clamp(220px, 30vw, 340px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-md);
  background: var(--card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.film-item:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-xl);
}
.film-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s var(--ease);
}
.film-item:hover img { transform: scale(1.03); }
.film-label {
  padding: .55rem .85rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text2);
  background: var(--card);
  border-top: 1px solid var(--border);
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════
   FEATURE H — TAP-TO-EXPAND (KSR features)
══════════════════════════════════════════════════ */
.ksr-expand-group {
  display: contents; /* items flow into the parent grid */
}
.ksr-expand-group[hidden] { display: none; }
.ksr-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  padding: .3rem .85rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--purple);
  background: rgba(124,58,237,.07);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  letter-spacing: .02em;
}
.ksr-expand-btn:hover {
  background: rgba(124,58,237,.14);
  border-color: var(--purple);
  transform: translateX(2px);
}
.ksr-expand-btn.open {
  color: var(--muted);
  background: var(--bg2);
  border-color: var(--border);
}


/* ══════════════════════════════════════════════════
   FEATURE I — COMMISSION COMPARISON TABLE
   ══════════════════════════════════════════════════ */
.comp-row {
  border-bottom: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}
.comp-row:hover {
  background: var(--purple-pale) !important;
}
[data-theme="dark"] .comp-row:hover {
  background: rgba(167,139,250,.06) !important;
}
.inline-cta-link:hover {
  transform: translateX(3px);
  color: var(--orange) !important;
}
