/* ==========================================================================
   LUCIDO ENTERPRISES — Architectural Chemical Formulations
   Design System, 3D Tilt Physics, Magnetic Glow & Micro-Interaction Stylesheet
   ========================================================================== */

:root {
  --bg-alabaster: #F9F9F8;
  --surface-white: #FFFFFF;
  --surface-zinc: #F1F1EE;
  --surface-slate: #141619;
  --surface-charcoal: #1E2024;
  --text-obsidian: #111315;
  --text-slate: #525860;
  --text-muted: #878D96;
  --accent-bronze: #C86D3B;
  --accent-bronze-hover: #B25B2B;
  --accent-emerald: #1F6F54;
  --border-hairline: #E4E4E0;
  --border-active: #272A30;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-alabaster);
  color: var(--text-obsidian);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-alabaster);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  selection-background-color: #141619;
}

::selection {
  background-color: #141619;
  color: #F9F9F8;
}

.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
}

.font-mono-tech {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-variant-numeric: tabular-nums;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Subtle Architectural Grid Background */
.bg-arch-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(17, 19, 21, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.035) 1px, transparent 1px);
}

.bg-dark-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Physics-based Scroll Reveal Animations with Motion Blur & Spring Easing */
.reveal-up {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(24px) scale(0.99);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-up.is-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

/* Staggered Card Entrance Cascade */
@keyframes cardCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cascade-item {
  animation: cardCascadeIn 0.52s var(--ease-spring) backwards;
  animation-delay: calc(var(--stagger, 0) * 65ms);
}

/* Section 01 Catalogue & Applications Dynamic Mouse-Tracking Spotlights */
#catalogue-spotlight {
  background: radial-gradient(
    720px circle at var(--cat-mouse-x, 50%) var(--cat-mouse-y, 35%),
    rgba(249, 115, 22, 0.10) 0%,
    rgba(245, 158, 11, 0.04) 45%,
    transparent 74%
  );
  transition: opacity 0.35s ease;
  will-change: background;
}

#applications-spotlight {
  background: radial-gradient(
    720px circle at var(--app-mouse-x, 50%) var(--app-mouse-y, 40%),
    rgba(249, 115, 22, 0.12) 0%,
    rgba(245, 158, 11, 0.05) 45%,
    transparent 74%
  );
  transition: opacity 0.35s ease;
  will-change: background;
}

/* Multi-Uso New Launch Spotlight Crimson-Magenta & Gold Mouse-Tracking Lighting */
#multiuso-spotlight {
  background: radial-gradient(
    650px circle at var(--mu-x, 70%) var(--mu-y, 50%),
    rgba(225, 29, 72, 0.18),
    rgba(245, 158, 11, 0.08) 45%,
    transparent 80%
  );
  transition: opacity 0.35s ease;
  will-change: background;
}

@keyframes multiusoFloat {
  0%, 100% {
    transform: translate3d(0, 0px, 0) rotateX(0deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotateX(1.5deg);
  }
}

.multiuso-float-hero {
  animation: multiusoFloat 4.8s ease-in-out infinite;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.35s ease;
}

.multiuso-float-hero:hover {
  animation-play-state: paused;
  transform: translate3d(0, -6px, 0) scale(1.03);
  border-color: rgba(244, 63, 94, 0.65);
  box-shadow: 0 28px 60px -12px rgba(225, 29, 72, 0.45);
}

/* 3D Tilt & Radial Magnetic Hover Glow on Product & Review Cards */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 0.42s var(--ease-out-expo), box-shadow 0.42s var(--ease-out-expo), border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.tilt-card.is-tilting {
  transition: transform 0.09s linear, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--card-mouse-x, var(--mx, 50%)) var(--card-mouse-y, var(--my, 50%)),
    rgba(245, 158, 11, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

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

.tilt-card:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow:
    0 22px 44px -14px rgba(17, 19, 21, 0.12),
    0 0 0 1px rgba(245, 158, 11, 0.28),
    0 8px 24px -4px rgba(249, 115, 22, 0.14);
}

/* Magnetic Button with Specular Sheen Sweep */
.btn-magnetic {
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: transform 0.28s var(--ease-out-expo), background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-magnetic::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.55s var(--ease-out-expo);
  pointer-events: none;
}

.btn-magnetic:hover::after {
  left: 125%;
}

.btn-magnetic:hover {
  box-shadow: 0 10px 24px -6px rgba(200, 109, 59, 0.32);
}

/* Skeleton Loader Shimmer */
@keyframes shimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-loader {
  background: linear-gradient(90deg, #ECECE8 25%, #F6F6F3 50%, #ECECE8 75%);
  background-size: 200% 100%;
  animation: shimmerSweep 1.6s infinite linear;
  transition: opacity 0.4s ease;
}

.skeleton-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

/* Pack Pill Selector Transition */
.pack-pill {
  transition: all 0.22s var(--ease-out-expo);
}

.pack-pill.active {
  background-color: #141619;
  color: #FFFFFF;
  border-color: #141619;
  box-shadow: 0 3px 10px rgba(20, 22, 25, 0.2);
  transform: translateY(-1px);
}

/* Price Change Pulse Micro-Interaction */
@keyframes priceFlip {
  0% {
    opacity: 0.3;
    transform: translateY(6px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.price-animate {
  animation: priceFlip 0.3s var(--ease-spring) forwards;
}

/* Interactive Star Rating Widget */
.star-btn {
  transition: transform 0.2s var(--ease-spring), color 0.15s ease;
}

.star-btn:hover {
  transform: scale(1.22) rotate(-4deg);
}

.star-btn.active {
  color: #F59E0B;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}

/* Rating Progress Bar Fill Animation */
.rating-bar-fill {
  transition: width 0.65s var(--ease-out-expo);
}

/* Custom Range Slider */
input[type="range"].arch-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: #E4E4E0;
  border-radius: 999px;
  outline: none;
}

input[type="range"].arch-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #141619;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"].arch-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #C86D3B;
}

/* Mobile Slide Drawer */
.mobile-drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out-expo);
}

.mobile-drawer-panel.open {
  transform: translateX(0);
}

/* Modal Backdrop & Dialog */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: translateY(18px) scale(0.97);
  transition: transform 0.38s var(--ease-spring);
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

/* Floating Toast Notification */
.lucido-toast {
  transform: translateY(24px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s var(--ease-spring), opacity 0.3s ease;
}

.lucido-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Hide Scrollbar for Horizontal Filter Tabs on Mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   HERO INTERACTIVE SPECIMEN: 3D LAYER EXPLODE & HYDROPHOBIC DROPLET REPULSION
   ========================================================================== */
.hero-layer-group {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

#hero-specimen-svg.is-exploded .hero-layer-top {
  transform: translateY(-10px);
  filter: drop-shadow(0 8px 12px rgba(200, 109, 59, 0.35));
}

#hero-specimen-svg.is-exploded .hero-layer-mid {
  transform: translateY(2px);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

#hero-specimen-svg.is-exploded .hero-layer-bot {
  transform: translateY(12px);
  filter: drop-shadow(0 6px 10px rgba(59, 130, 246, 0.25));
}

@keyframes epoxyFlowPulse {
  0% {
    stroke-dashoffset: 60;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.epoxy-flow-line {
  stroke-dasharray: 6 6;
  animation: epoxyFlowPulse 2.4s linear infinite;
}

@keyframes dropletRepelCenter {
  0% {
    opacity: 0;
    transform: translate(0, -18px) scale(0.7);
  }
  35% {
    opacity: 1;
    transform: translate(0, 0px) scale(1.08, 0.82);
  }
  70% {
    opacity: 1;
    transform: translate(-14px, -16px) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-24px, -6px) scale(0.4);
  }
}

@keyframes dropletRepelRight {
  0% {
    opacity: 0;
    transform: translate(0, -20px) scale(0.7);
  }
  40% {
    opacity: 1;
    transform: translate(0, 0px) scale(1.1, 0.8);
  }
  75% {
    opacity: 1;
    transform: translate(16px, -18px) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate(26px, -8px) scale(0.4);
  }
}

.water-droplet-1 {
  animation: dropletRepelCenter 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.water-droplet-2 {
  animation: dropletRepelRight 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s infinite;
}

/* ==========================================================================
   OFFICIAL RED & GOLD LUCIDO BRAND EMBLEM & HERO LINEUP ENTRANCE TRANSITION
   ========================================================================== */
.lucido-brand-emblem {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #C81E1E 0%, #991B1B 60%, #7F1D1D 100%);
  border: 1.5px solid #FBBF24;
  box-shadow:
    inset 0 0 0 1px rgba(254, 240, 138, 0.35),
    0 4px 12px -2px rgba(185, 28, 28, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.lucido-brand-emblem:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(254, 240, 138, 0.55),
    0 8px 20px -4px rgba(185, 28, 28, 0.48);
}

@keyframes heroLineupPerspectiveIn {
  0% {
    opacity: 0;
    transform: perspective(1100px) scale(0.94) translateY(30px) rotateX(4deg);
  }
  100% {
    opacity: 1;
    transform: perspective(1100px) scale(1) translateY(0px) rotateX(0deg);
  }
}

.hero-lineup-entrance {
  animation: heroLineupPerspectiveIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* Luxury Staggered Entrance Animations (cubic-bezier(0.16, 1, 0.3, 1)) */
@keyframes heroLuxuryStaggerUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

.hero-stagger-item {
  opacity: 0;
  animation: heroLuxuryStaggerUp 0.88s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--stagger-step, 0) * 110ms + 60ms);
  will-change: transform, opacity, filter;
}

/* Dynamic Mouse-Tracking Golden-Amber Spotlight Across Hero Section */
#hero-spotlight {
  background: radial-gradient(
    680px circle at var(--mouse-x, 65%) var(--mouse-y, 45%),
    rgba(245, 158, 11, 0.14) 0%,
    rgba(200, 109, 59, 0.06) 42%,
    transparent 74%
  );
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background;
}

/* 3D Cursor-Responsive Parallax Product Stage */
#hero-product-stage {
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0px)
    perspective(1200px)
    rotateX(var(--parallax-rx, 0deg))
    rotateY(var(--parallax-ry, 0deg));
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* 2D Intersected Edge Mask: Top Edge Blend + Tight Left 12% Studio Border Blend
   Preserves 100% sharp visibility of the leftmost Fast Clean 1kg bucket & Part-C bag */
.hero-lineup-mask {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 8%, black 20%, black 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 5%, black 12%, black 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 8%, black 20%, black 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 5%, black 12%, black 100%);
  mask-composite: intersect;
}

/* ==========================================================================
   REALISTIC TILE SIMULATOR, PRODUCT SERIES HERO & METALLIC GLITTER STUDIO
   ========================================================================== */
.tile-joint-fill {
  transition: fill 0.38s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-slab-fill {
  transition: fill 0.42s cubic-bezier(0.16, 1, 0.3, 1), x 0.32s cubic-bezier(0.16, 1, 0.3, 1), y 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.32s cubic-bezier(0.16, 1, 0.3, 1), height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.swatch-pill {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.swatch-pill:hover {
  transform: translateY(-2px) scale(1.03);
}

.swatch-pill.active {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #C86D3B, 0 8px 18px -4px rgba(200, 109, 59, 0.45);
}

@keyframes productHeroMorph {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.product-hero-animate {
  animation: productHeroMorph 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reactorOrbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes reactorOrbitReverse {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.reactor-ring-cw {
  transform-origin: 80px 80px;
  animation: reactorOrbit 14s linear infinite;
}

.reactor-ring-ccw {
  transform-origin: 80px 80px;
  animation: reactorOrbitReverse 10s linear infinite;
}

#mixing-reactor-svg.is-mixing .reactor-ring-cw {
  animation-duration: 2.2s;
}

#mixing-reactor-svg.is-mixing .reactor-ring-ccw {
  animation-duration: 1.6s;
}

/* Fine Micro-Metallic Specular Flake Shimmer Inside Recessed Tile Joints */
@keyframes metallicSheenPass {
  0% {
    transform: translate3d(-18%, -10%, 0);
  }
  50% {
    transform: translate3d(12%, 8%, 0);
  }
  100% {
    transform: translate3d(-18%, -10%, 0);
  }
}

@keyframes microFlakeGlint {
  0%, 100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.98;
  }
}

@keyframes matteDiffusedBreath {
  0%, 100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.96;
  }
}

@keyframes matteQuartzMicroShift {
  0%, 100% {
    opacity: 0.72;
    transform: translate3d(0px, 0px, 0);
  }
  50% {
    opacity: 0.92;
    transform: translate3d(1.5px, 0.5px, 0);
  }
}

.glossy-joint-sweeper {
  animation: metallicSheenPass 6.2s ease-in-out infinite;
  transform-origin: center;
}

.matte-diffused-pulse {
  animation: matteDiffusedBreath 4.2s ease-in-out infinite;
}

.matte-grain-drift {
  animation: matteQuartzMicroShift 5.4s ease-in-out infinite;
}

.glitter-shimmer-sweeper {
  animation: metallicSheenPass 5.5s ease-in-out infinite;
  transform-origin: center;
}

.glitter-twinkle-dots {
  animation: microFlakeGlint 2.4s ease-in-out infinite;
}

.glitter-swatch-chip {
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Full-Width Bottom-Anchored Product Card Image System (Zero Sidebars & Zero Bottom Cutoff) */
.product-card-img-frame,
.product-img-wrapper {
  height: 330px !important;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.product-img-wrapper img,
.product-card-img-frame img,
.product-card-zoom-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 88% !important;
  transform: scale(1) !important;
  padding: 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  display: block;
}

.product-card:hover .product-img-wrapper img,
.product-card:hover .product-card-img-frame img,
.product-card:hover .product-card-zoom-img {
  transform: scale(1) !important;
}

/* Crisp High-DPI Rendering Rules for Header & Footer Official Logo */
.official-brand-logo,
header img[src*="logo"],
footer img[src*="logo"] {
  height: 52px !important;
  width: auto !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

@media (max-width: 640px) {
  .official-brand-logo,
  header img[src*="logo"] {
    height: 42px !important;
  }
}

/* ==========================================================================
   MULTI-USO BUCKET FULL-WIDTH BOTTOM-ANCHORED IMAGE & 4-MODE ANIMATIONS
   ========================================================================== */
.multi-uso-img-box,
.multiuso-bucket-frame {
  height: 360px !important;
  width: 100%;
  overflow: hidden;
  border-radius: 18px !important;
  position: relative;
}

.multi-uso-img-box img,
.multiuso-bucket-frame img,
.multiuso-bucket-zoom-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 85% !important;
  transform: scale(1) !important;
  padding: 0 !important;
  display: block;
}

.multi-uso-img-box:hover img,
.multiuso-bucket-frame:hover img,
.multiuso-bucket-frame:hover .multiuso-bucket-zoom-img {
  transform: scale(1) !important;
}

/* Mode 1: Layered Sandwich Bonding (@keyframes sandwichBond) */
@keyframes sandwichBondTop {
  0%, 100% {
    transform: translateY(-9px);
  }
  45%, 75% {
    transform: translateY(0px);
  }
}

@keyframes sandwichBondBottom {
  0%, 100% {
    transform: translateY(9px);
  }
  45%, 75% {
    transform: translateY(0px);
  }
}

@keyframes sandwichBondCore {
  0%, 100% {
    opacity: 0.72;
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.45));
  }
  45%, 75% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.95));
  }
}

.mu-anim-top-slab {
  animation: sandwichBondTop 3.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mu-anim-bot-slab {
  animation: sandwichBondBottom 3.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mu-anim-epoxy-core {
  animation: sandwichBondCore 3.4s ease-in-out infinite;
}

/* Mode 2: 45° Angle Cut (Mitre) Corner Joint Animation */
@keyframes mitreLeftJoin {
  0%, 100% {
    transform: translate(-6px, -6px);
  }
  45%, 80% {
    transform: translate(0px, 0px);
  }
}

@keyframes mitreRightJoin {
  0%, 100% {
    transform: translate(6px, 6px);
  }
  45%, 80% {
    transform: translate(0px, 0px);
  }
}

@keyframes mitreBeadGlow {
  0%, 100% {
    stroke-dashoffset: 40;
    opacity: 0.75;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.mu-anim-mitre-left {
  animation: mitreLeftJoin 3.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mu-anim-mitre-right {
  animation: mitreRightJoin 3.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mu-anim-mitre-bead {
  stroke-dasharray: 8 4;
  animation: mitreBeadGlow 2.4s linear infinite;
}

/* Mode 3: Underwater Bubbles, Ripples & Iron Substrate Bond Pulse */
@keyframes bubbleRiseUp {
  0% {
    transform: translateY(16px) scale(0.75);
    opacity: 0;
  }
  35% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-28px) scale(1.15);
    opacity: 0;
  }
}

@keyframes waterRippleShift {
  0%, 100% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
}

.mu-bubble-1 {
  animation: bubbleRiseUp 2.6s ease-in infinite;
}
.mu-bubble-2 {
  animation: bubbleRiseUp 3.1s ease-in 0.8s infinite;
}
.mu-bubble-3 {
  animation: bubbleRiseUp 2.8s ease-in 1.5s infinite;
}
.mu-water-ripple {
  animation: waterRippleShift 3.5s ease-in-out infinite;
}

/* Mode 4: Seamless Joint-Free Light Sheen Sweep */
@keyframes seamlessSheenSweep {
  0% {
    transform: translateX(-220px);
  }
  50% {
    transform: translateX(220px);
  }
  100% {
    transform: translateX(-220px);
  }
}

.mu-seamless-sheen {
  animation: seamlessSheenSweep 4.2s ease-in-out infinite;
}

/* ==========================================================================
   STUDIO THUMBNAIL IMAGES & TILE PREVIEW READOUT (ALL VIEWPORTS)
   ========================================================================== */
.studio-thumb-box {
  background: transparent !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.studio-thumb-img,
#vis-series-hero-img,
#vis-series-companion-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 85% !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: block !important;
}

#vis-hud-readout {
  position: static !important;
  margin-top: 12px !important;
}

/* ==========================================================================
   DYNAMIC MOUSE-TRACKING RADIAL LIGHTING (SECTIONS 04, 05, 06)
   ========================================================================== */
.section-mouse-spotlight,
#calculator-spotlight,
#reviews-spotlight,
#contact-spotlight {
  background: radial-gradient(
    650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(245, 158, 11, 0.08),
    transparent 70%
  );
  transition: background 60ms linear;
}

/* ==========================================================================
   MOBILE OPTIMIZATION (< 768px): ZERO CLIPPING & ULTRA-COMPACT SCROLL REDUCTION
   ========================================================================== */
.category-filter-pill,
.pack-pill,
.card-shade-pill,
.glitter-card-shade-pill,
.calc-preset-chip,
.review-filter-pill {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  /* 1. Fix Clipped Category Filter Tabs on Mobile (2x2 Grid, Full Text Visible) */
  #category-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  #category-tabs .category-filter-pill {
    width: 100% !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  /* 2A. Slim Down Product Cards on Mobile (40% Shorter Cards) */
  .product-card-img-frame,
  .product-img-wrapper,
  .multi-uso-img-box,
  .multiuso-bucket-frame {
    height: 230px !important;
  }

  .card-spec-pills-row {
    display: none !important;
  }

  /* Single Horizontal Swipe Row for Product Card Shade Swatches on Mobile */
  .card-shade-pills-strip {
    max-height: 42px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 2C. Convert Section 03 (Applications) & Section 05 (Reviews) into Horizontal Swipe Sliders */
  #applications-grid,
  #reviews-grid,
  #reviews-feed-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    -webkit-overflow-scrolling: touch;
  }

  #applications-grid > *,
  #reviews-grid > *,
  #reviews-feed-container > * {
    min-width: 78vw !important;
    max-width: 78vw !important;
    scroll-snap-align: center !important;
    flex-shrink: 0 !important;
  }

  #reviews-grid > .col-span-full,
  #reviews-feed-container > .col-span-full {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* 2E. Compact Hero Section on Mobile (200px Image Height) */
  .hero-lineup-mask {
    height: 200px !important;
    max-height: 200px !important;
  }

  /* Studio Tile Preview: Full 230px height & HUD readout moved outside/below */
  #vis-tile-preview-box {
    min-height: 230px !important;
    height: 230px !important;
  }

  #shade-visualizer-svg {
    min-height: 230px !important;
    height: 230px !important;
    width: 100% !important;
    display: block !important;
  }

  #vis-hud-readout {
    position: static !important;
    margin-top: 10px !important;
    padding: 10px 12px !important;
  }

  /* Studio Colour & Glitter Swatch Scroll Boxes on Mobile */
  #shade-swatch-grid,
  #glitter-toggle-group {
    max-height: 185px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Tighten Global Mobile Section Vertical Padding */
  #hero-section,
  #products,
  #interactive-studio,
  #applications,
  #calculator,
  #reviews,
  #inquiry {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  #multiuso-launch-banner {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding: 1.25rem !important;
  }
}
