/* ============================
   SitioHoy — Custom Styles
   ============================ */

/* --- Removed Logo Dark Mode --- */

/* --- Modern Reveal Animations --- */
[class*="reveal-"] {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.reveal-up { transform: translateY(40px); }
.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }

.visible.reveal-up,
.visible.reveal-down,
.visible.reveal-left,
.visible.reveal-right,
.visible.reveal-stagger {
  opacity: 1;
  transform: translate(0, 0);
}

.visible.reveal-scale {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Logic */
.reveal-stagger > .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger Delays (up to 8 items) */
.reveal-stagger.visible > .reveal-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > .reveal-item:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > .reveal-item:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > .reveal-item:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > .reveal-item:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > .reveal-item:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.visible > .reveal-item:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger.visible > .reveal-item:nth-child(8) { transition-delay: 0.8s; }

/* --- CTA Glow Effect --- */
.cta-glow {
  position: relative;
  box-shadow:
    0 0 15px rgba(52, 211, 153, 0.4),
    0 0 30px rgba(52, 211, 153, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: ctaGlowPulse 2.5s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(52, 211, 153, 0.4),
      0 0 30px rgba(52, 211, 153, 0.15),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 20px rgba(52, 211, 153, 0.55),
      0 0 40px rgba(52, 211, 153, 0.25),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
}

.cta-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.7),
    rgba(74, 222, 128, 0.3),
    rgba(52, 211, 153, 0.7),
    rgba(74, 222, 128, 0.3)
  );
  z-index: -1;
  opacity: 0.75;
  filter: blur(3px);
}

.cta-glow:hover {
  box-shadow:
    0 0 20px rgba(52, 211, 153, 0.55),
    0 0 45px rgba(52, 211, 153, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cta-glow:hover::before {
  opacity: 1;
  filter: blur(5px);
}

/* Dark mode: more saturated green glow */
.dark .cta-glow {
  box-shadow:
    0 0 18px rgba(16, 185, 129, 0.5),
    0 0 35px rgba(16, 185, 129, 0.2),
    inset 0 0 0 1px rgba(16, 185, 129, 0.15);
  animation: ctaGlowPulseDark 2.5s ease-in-out infinite;
}

.dark .cta-glow::before {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.8),
    rgba(52, 211, 153, 0.4),
    rgba(16, 185, 129, 0.8),
    rgba(52, 211, 153, 0.4)
  );
  opacity: 0.8;
}

.dark .cta-glow:hover {
  box-shadow:
    0 0 24px rgba(16, 185, 129, 0.6),
    0 0 50px rgba(16, 185, 129, 0.3),
    inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

@keyframes ctaGlowPulseDark {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(16, 185, 129, 0.5),
      0 0 35px rgba(16, 185, 129, 0.2),
      inset 0 0 0 1px rgba(16, 185, 129, 0.15);
  }
  50% {
    box-shadow:
      0 0 24px rgba(16, 185, 129, 0.6),
      0 0 45px rgba(16, 185, 129, 0.3),
      inset 0 0 0 1px rgba(16, 185, 129, 0.2);
  }
}

/* --- Mobile Menu (Fullscreen Overlay) --- */
#mobile-menu {
  opacity: 0;
  visibility: hidden;
  /* visibility se oculta DESPUÉS del fade, sin snap */
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.0, 0, 0.2, 1), visibility 0s linear 0s;
}

/* Staggered link animations */
#mobile-menu .mobile-link,
#mobile-menu #mobile-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open .mobile-link,
#mobile-menu.open #mobile-cta,
#mobile-menu.open .opacity-0 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: calc(var(--i, 1) * 0.1s + 0.2s);
}

/* Header and Footer delays */
#mobile-menu.open .mb-16 { transition-delay: 0.1s; }
#mobile-menu.open .border-t { transition-delay: 0.8s; }

/* Closing animation — se agrega junto con la remoción de .open, sin conflictos */
#mobile-menu.closing .mobile-link,
#mobile-menu.closing #mobile-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: calc((6 - var(--i, 1)) * 0.05s);
}

#mobile-menu.closing .mb-16,
#mobile-menu.closing .border-t,
#mobile-menu.closing .opacity-0 {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  transition-delay: 0s !important;
}

/* --- Hamburger Animation --- */
#menu-toggle .hamburger-line {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

#menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Dark Mode Transition --- */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html,
body,
header,
section,
footer,
div,
a,
p,
h1,
h2,
h3,
h4,
span,
li,
ul,
button,
details,
summary {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* --- Phone Frame --- */
.phone-frame {
  position: relative;
  width: 150px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  padding: 10px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .phone-frame {
    width: 270px;
    padding: 14px;
  }
}

@media (min-width: 768px) {
  .phone-frame {
    width: 280px;
  }
}

@media (min-width: 1024px) {
  .phone-frame {
    width: 300px;
  }
}

.phone-notch {
  position: absolute;
  top: 14.499px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

@media (max-width: 640px) {
  .phone-notch {
    top: 10px;
    height: 16px;
    width: 65px;
  }
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  background: #111827;
}

/* --- Phone Carousel Slides --- */
.phone-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.phone-slide.active {
  opacity: 1;
}

/* --- Carousel Dots --- */
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.phone-dot.active {
  background: #10B981;
  transform: scale(1.25);
}

/* --- Showcase Container & Device Switcher --- */
.showcase-container {
  perspective: 1000px;
}

.device-switcher .device-btn {
  color: #64748b;
}

.dark .device-switcher .device-btn {
  color: #94a3b8;
}

.device-switcher .device-btn.active {
  background: white;
  color: #10B981;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dark .device-switcher .device-btn.active {
  background: #0f172a;
  color: #10B981;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.device-frame {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-frame.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* --- MacBook Frame (Realistic) --- */
.macbook-body {
  position: relative;
  width: 350px;
  height: 218px;
  background: linear-gradient(135deg, #1c1c1e 0%, #0a0a0b 100%); /* Space Black */
  border-radius: 12px 12px 0 0;
  padding: 6px;
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.1); /* Top edge metallic shine */
  transition: all 0.5s ease;
  z-index: 1;
}

.dark .macbook-body {
  background: linear-gradient(135deg, #121212 0%, #000000 100%);
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.05);
}

@media (min-width: 640px) {
  .macbook-body { width: 520px; height: 325px; padding: 10px; }
}

@media (min-width: 1024px) {
  .macbook-body { 
    width: 820px; 
    height: 400px; 
    border-radius: 24px 24px 0 0; 
  }
}

.macbook-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid #000;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

/* MacBook Camera/Notch */
.macbook-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: #000;
  border-radius: 0 0 6px 6px;
  z-index: 20;
}

/* MacBook Camera Lens */
.macbook-screen::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1px solid #333;
  z-index: 21;
}

.macbook-keyboard {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 112%;
  height: 10px;
  background: linear-gradient(to bottom, #1c1c1e, #0a0a0b);
  border-radius: 0 0 14px 14px;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.3);
}

.dark .macbook-keyboard { 
  background: linear-gradient(to bottom, #111, #000); 
}

@media (min-width: 640px) {
  .macbook-keyboard { height: 16px; }
}

/* MacBook Thumb Notch / Lip */
.macbook-keyboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(0,0,0,0.4);
  border-radius: 0 0 8px 8px;
}

/* --- iPad Frame (Realistic) --- */
.ipad-body {
  position: relative;
  width: 230px;
  height: 322px;
  background: #0a0a0a;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 
    0 35px 70px rgba(0,0,0,0.5),
    0 0 0 2px #333, /* Metallic edge */
    inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.5s ease;
}

.dark .ipad-body {
  background: #0a0a0a;
}

@media (min-width: 640px) {
  .ipad-body { width: 300px; height: 420px; padding: 14px; }
}

@media (min-width: 1024px) {
  .ipad-body { width: 340px; height: 476px; }
}

.ipad-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #000;
}

/* iPad Side Buttons */
.ipad-body::before {
  content: '';
  position: absolute;
  top: 60px;
  right: -2px;
  width: 2px;
  height: 40px;
  background: #333;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- Carousel Generic Classes with Glass Reflection --- */
.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Glass Reflection Overlay */
.carousel-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
  z-index: 10;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}


/* --- iPhone Frame (Realism: Dynamic Island) --- */
.phone-frame {
  position: relative;
  width: 150px; 
  border-radius: 38px;
  background: linear-gradient(160deg, #27272a 0%, #09090b 100%); /* Natural Titanium */
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 640px) {
  .phone-frame { width: 190px; padding: 10px; }
}

@media (min-width: 1024px) {
  .phone-frame { width: 220px; }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 18px;
  background: #000;
  border-radius: 10px; /* Dynamic Island Look */
  z-index: 20;
  box-shadow: inset 0 0 4px rgba(255,255,255,0.1);
}

/* iPhone Side Buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 80px;
  left: -2px;
  width: 2px;
  height: 30px;
  background: #475569;
  border-radius: 2px 0 0 2px;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  border: 1px solid #1a1a1a;
}

/* --- phone-mobile-scale support --- */
@media (max-width: 640px) {
  .phone-mobile-scale {
    transform: none;
    margin-top: 0;
  }
}

/* --- Showcase Dots --- */
.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark .showcase-dot { background: rgba(255,255,255,0.15); }

.showcase-dot.active {
  background: #10B981;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
}

/* --- CTA Hover Lift --- */
.cta-hover {
  transition: all 0.25s ease;
}

.cta-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

/* --- WhatsApp Tooltip --- */
.wa-tooltip {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.wa-tooltip.visible {
  opacity: 1;
  transform: translateX(0);
}



/* ============================
   MODERN VISUAL EFFECTS (2025)
   ============================ */

/* --- Gradient Mesh Background --- */
.gradient-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.dark .mesh-blob {
  opacity: 0.12;
}

.mesh-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
  top: -15%;
  right: -5%;
  animation: meshFloat1 12s ease-in-out infinite;
}

.mesh-blob-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  bottom: -10%;
  left: -8%;
  animation: meshFloat2 15s ease-in-out infinite;
}

.dark .mesh-blob-2 {
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
}

.mesh-blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
  top: 40%;
  left: 30%;
  opacity: 0.14;
  animation: meshFloat3 18s ease-in-out infinite;
}

@keyframes meshFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, 20px) scale(1.1);
  }

  66% {
    transform: translate(20px, -15px) scale(0.95);
  }
}

@keyframes meshFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(25px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 25px) scale(1.1);
  }
}

@keyframes meshFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.15);
  }
}

/* --- Floating Blobs (sections) --- */
.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.dark .floating-blob {
  opacity: 0.06;
}

.floating-blob-1 {
  width: 350px;
  height: 350px;
  background: #10B981;
  top: -80px;
  right: -100px;
  animation: blobDrift1 20s ease-in-out infinite;
}

.floating-blob-2 {
  width: 280px;
  height: 280px;
  background: #10B981;
  bottom: -60px;
  left: -80px;
  animation: blobDrift2 25s ease-in-out infinite;
}

@keyframes blobDrift1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-40px, 30px);
  }
}

@keyframes blobDrift2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -25px);
  }
}

/* --- Logo color filter --- */
/* Light mode: tint to brand green #10B981 */
.logo-img {
  filter: invert(59%) sepia(72%) saturate(450%) hue-rotate(113deg) brightness(92%) contrast(90%);
  transition: filter 0.3s ease;
  width: 70px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.logo-wrapper {
  background-color: white !important;
  display: inline-flex;
  -webkit-mask-image: url("../assets/LogoFinal.svg"), radial-gradient(circle, black 40%, transparent 40%);
  mask-image: url("../assets/LogoFinal.svg"), radial-gradient(circle, black 44%, transparent 44%);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* --- Header Hide/Show on Scroll --- */
#site-header {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.nav-hidden {
  transform: translateY(-110%);
}

/* --- Wheel Modal --- */
#wheel-overlay {
  animation: wheelFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#wheel-modal {
  animation: wheelSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wheelFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes wheelSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#wheel-overlay.closing {
  animation: wheelFadeOut 0.3s ease forwards;
}

#wheel-overlay.closing #wheel-modal {
  animation: wheelSlideDown 0.3s ease forwards;
}

@keyframes wheelFadeOut {
  to { opacity: 0; }
}

@keyframes wheelSlideDown {
  to { opacity: 0; transform: translateY(30px) scale(0.95); }
}

/* --- Gift Widget --- */
#gift-widget {
  animation: giftPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

#gift-tooltip {
  animation: tooltipIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- Clients Marquee --- */
.clients-marquee-container {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clients-scroll 30s linear infinite;
}


@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo-item {
  display: block;
  flex-shrink: 0;
}

.client-logo-item img {
  filter: opacity(0.85);
  transition: filter 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.client-logo-item:hover img {
  filter: opacity(1);
  transform: scale(1.13);
}

/* Logo con canvas cuadrado pero diseño horizontal (ej: Gilded Glow) */
.client-logo-wide img {
  height: auto;
  width: 120px;
}

@media (min-width: 640px) {
  .client-logo-wide img {
    width: 150px;
  }
}

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}