/**
 * Al Nour Garments Limited - Motion & Interaction System
 * Framer & Webflow Premier Animation & Interaction Engine
 * DESIGN.md §6 Motion & Transitions
 */

:root {
  --an-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --an-dur-fast: 0.2s;
  --an-dur-base: 0.3s;
  --an-dur-reveal: 0.75s;
  --an-dur-slow: 0.85s;
  --an-header-h: 100px;
}

/* ==========================================================================
   1. Smooth Scrolling & Anchor Offset
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--an-header-h, 100px);
}

/* ==========================================================================
   2. Preloader Controls
   ========================================================================== */
/* Scoped to hide preloader if no JS, or if already seen in current session */
html:not(.an-js) #loading,
html.an-no-preloader #loading,
html.an-preloader-hidden #loading {
  display: none !important;
}

#loading.an-fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s var(--an-ease), visibility 0.4s var(--an-ease) !important;
  pointer-events: none !important;
}

/* ==========================================================================
   3. Framer / Webflow Scroll Reveal Animations
   Start/hidden states strictly scoped under html.an-js
   ========================================================================== */
html.an-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--an-dur-reveal) var(--an-ease),
              transform var(--an-dur-reveal) var(--an-ease);
  will-change: opacity, transform;
}

/* Section-level reveal polish: subtle, smooth, modern entrance */
html.an-js section[data-reveal],
html.an-js [class*="-area"][data-reveal],
html.an-js .an-section[data-reveal],
html.an-js .aq-section-area[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--an-dur-reveal) var(--an-ease),
              transform var(--an-dur-reveal) var(--an-ease);
  will-change: opacity, transform;
}

/* Hero Content Centering & Transition Security */
.aqf-hero-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.aqf-hero-wrap .container {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

.aqf-hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  max-width: 900px !important;
  width: 100% !important;
  left: auto !important;
  right: auto !important;
}

html.an-js .aqf-hero-content[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--an-ease), transform 0.8s var(--an-ease);
}

html.an-js .aqf-hero-content[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
}

/* Nested elements within a revealed section: elegant hierarchy */
html.an-js [data-reveal] [data-reveal]:not([data-reveal="left"]):not([data-reveal="right"]):not([data-reveal="zoom"]):not([data-reveal="fade"]) {
  transform: translateY(20px);
  transition: opacity 0.65s var(--an-ease), transform 0.65s var(--an-ease);
}

/* Variants */
html.an-js [data-reveal="fade"] {
  transform: translate3d(0, 0, 0);
  opacity: 0;
}

html.an-js [data-reveal="left"] {
  transform: translate3d(-28px, 0, 0);
  opacity: 0;
}

html.an-js [data-reveal="right"] {
  transform: translate3d(28px, 0, 0);
  opacity: 0;
}

html.an-js [data-reveal="zoom"] {
  transform: scale(0.95) translateY(18px);
  opacity: 0;
}

/* Revealed State */
html.an-js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
  will-change: auto;
}

/* Stats Strip Reveal: zero vertical translation, smooth opacity fade only */
html.an-js .an-stats,
html.an-js .an-stats[data-reveal],
html.an-js .an-stats.is-visible,
html.an-js .an-stats__item,
html.an-js .an-stats__item[data-reveal],
html.an-js .an-stats__item.is-visible,
html.an-js [data-reveal] .an-stats__item,
html.an-js [data-reveal] .an-stats-card,
html.an-js [data-reveal] .an-stat-item {
  transform: none !important;
}

/* Dynamic Stagger Delays (60ms Webflow increments + legacy 80ms support) */
html.an-js [data-reveal-delay="0"]   { transition-delay: 0ms; }
html.an-js [data-reveal-delay="60"]  { transition-delay: 60ms; }
html.an-js [data-reveal-delay="80"]  { transition-delay: 80ms; }
html.an-js [data-reveal-delay="120"] { transition-delay: 120ms; }
html.an-js [data-reveal-delay="160"] { transition-delay: 160ms; }
html.an-js [data-reveal-delay="180"] { transition-delay: 180ms; }
html.an-js [data-reveal-delay="240"] { transition-delay: 240ms; }
html.an-js [data-reveal-delay="300"] { transition-delay: 300ms; }
html.an-js [data-reveal-delay="320"] { transition-delay: 320ms; }
html.an-js [data-reveal-delay="360"] { transition-delay: 360ms; }
html.an-js [data-reveal-delay="400"] { transition-delay: 400ms; }
html.an-js [data-reveal-delay="420"] { transition-delay: 420ms; }
html.an-js [data-reveal-delay="480"] { transition-delay: 480ms; }
html.an-js [data-reveal-delay="540"] { transition-delay: 540ms; }
html.an-js [data-reveal-delay="560"] { transition-delay: 560ms; }
html.an-js [data-reveal-delay="600"] { transition-delay: 600ms; }

/* ==========================================================================
   4. Page Transitions
   Native View Transitions + Fallback
   ========================================================================== */
@view-transition {
  navigation: auto;
}

header {
  position: relative;
  z-index: 9999;
  view-transition-name: an-header;
}

::view-transition-old(root) {
  animation: an-out 0.25s ease both;
}

::view-transition-new(root) {
  animation: an-in 0.35s var(--an-ease) both;
}

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

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

/* Fallback for browsers without View Transitions */
html.an-leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ==========================================================================
   5. Premier Hover & Press Micro-interactions
   ========================================================================== */

/* 5.1 Buttons Base & Micro-interactions */
.aq-btn-black,
.aq-btn-white,
.aq-cta-btn,
.an-btn-outline,
.aq-header-contact-btn,
.an-card__link,
.an-btn-wa,
.aq-btn-subscribe,
.aq-btn-border,
.aq-login-btn,
button.aq-btn,
a.aq-btn,
.aq-btn {
  transition: transform 0.25s var(--an-ease),
              background-color 0.25s var(--an-ease),
              color 0.25s var(--an-ease),
              border-color 0.25s var(--an-ease) !important;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Button Hover: springy lift with soft glow shadow */
.aq-btn-black:hover,
.aq-btn-white:hover,
.aq-cta-btn:hover,
.an-btn-outline:hover,
.aq-header-contact-btn:hover,
.an-card__link:hover,
.an-btn-wa:hover,
.aq-btn-subscribe:hover,
.aq-btn-border:hover,
.aq-login-btn:hover,
button.aq-btn:hover,
a.aq-btn:hover,
.aq-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: none !important;
}

/* Button Press / Active: tactile click compression with fast response */
.aq-btn-black:active,
.aq-btn-white:active,
.aq-cta-btn:active,
.an-btn-outline:active,
.aq-header-contact-btn:active,
.an-card__link:active,
.an-btn-wa:active,
.aq-btn-subscribe:active,
.aq-btn-border:active,
.aq-login-btn:active,
button.aq-btn:active,
a.aq-btn:active,
.aq-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: none !important;
  transition: transform 0.1s ease !important;
}

/* 5.2 Cards & Tiles Micro-interactions */
.an-card,
.aq-product-item,
.an-feature,
.an-download,
.an-info-tile,
.csm-stories-item,
.an-featured-fair,
.aqf-category-2-item {
  transition: transform 0.4s var(--an-ease),
              border-color 0.4s var(--an-ease),
              background-color 0.4s var(--an-ease) !important;
  will-change: transform;
}

/* Card Hover: smooth lift (-5px), NO border color change, NO box shadow */
.an-card:hover,
.an-card.an-collection-card:hover,
.aq-product-item:hover,
.an-feature:hover,
.an-download:hover,
.an-info-tile:hover,
.csm-stories-item:hover,
.an-featured-fair:hover,
.aqf-category-2-item:hover,
.an-testimonial-card:hover,
.an-step-card:hover,
.an-buyer-voice-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: none !important;
  border-color: #E6E6E6 !important;
}

/* Why Choose Us & Certificates: Lift up a bit (-5px), NO shadow, and DO NOT change colors */
#why-choose-us .an-card:hover,
#why-choose-us .an-feature:hover,
#certificates .an-card:hover,
#certificates .an-feature:hover,
.aq-why-us-area .an-card.an-feature:hover,
.aq-certificates-area .an-card.an-feature:hover,
.an-card.an-cert-feature:hover {
  transform: translateY(-5px) !important;
  box-shadow: none !important;
  border-color: #E6E6E6 !important;
  background-color: #ffffff !important;
}

#why-choose-us .an-card:hover .an-feature__icon,
#why-choose-us .an-feature:hover .an-feature__icon,
#certificates .an-card:hover .an-feature__icon,
#certificates .an-feature:hover .an-feature__icon,
.aq-why-us-area .an-card.an-feature:hover .an-feature__icon,
.aq-certificates-area .an-card.an-feature:hover .an-feature__icon,
.an-card.an-cert-feature:hover .an-feature__icon {
  background: rgba(240, 149, 58, 0.15) !important;
  color: var(--color-deepblue) !important;
  transform: none !important;
}

#why-choose-us .an-card:hover .an-feature__icon svg,
#why-choose-us .an-feature:hover .an-feature__icon svg,
#certificates .an-card:hover .an-feature__icon svg,
#certificates .an-feature:hover .an-feature__icon svg,
.aq-why-us-area .an-card.an-feature:hover .an-feature__icon svg,
.aq-certificates-area .an-card.an-feature:hover .an-feature__icon svg,
.an-card.an-cert-feature:hover .an-feature__icon svg {
  transform: none !important;
  color: var(--color-deepblue) !important;
}

#why-choose-us .an-card:hover .an-feature__title,
#certificates .an-card:hover .an-feature__title,
.aq-why-us-area .an-card.an-feature:hover .an-feature__title,
.aq-certificates-area .an-card.an-feature:hover .an-feature__title,
.an-card.an-cert-feature:hover .an-feature__title {
  color: var(--color-deepblue) !important;
}

#why-choose-us .an-card:hover p,
#certificates .an-card:hover p,
.aq-why-us-area .an-card.an-feature:hover p,
.aq-certificates-area .an-card.an-feature:hover p,
.an-card.an-cert-feature:hover p {
  color: #555555 !important;
}

/* Stats item: static, calm, elegant, zero hover lift or background shift */
.an-stats__item,
.an-stats-card,
.an-stat-item {
  border-radius: 0;
  transition: none !important;
  will-change: auto !important;
  transform: none !important;
}

.an-stats__item:hover,
.an-stats-card:hover,
.an-stat-item:hover,
.an-stats__item:focus,
.an-stats-card:focus,
.an-stat-item:focus {
  transform: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* 5.3 Inner Media & Images: Smooth zoom on card hover */
.an-card .an-media img,
.an-card .an-media__primary,
.an-card .an-media__hover,
.aq-product-item .aq-product-thumb img,
.aq-product-item .aq-product-img,
.an-feature img,
.an-download img,
.an-info-tile img,
.an-featured-fair .an-media img,
.csm-stories-thumb img,
.aqf-category-2-thumb img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.an-card:hover .an-media img,
.an-card:hover .an-media__primary,
.an-card:hover .an-media__hover,
.aq-product-item:hover .aq-product-thumb img,
.aq-product-item:hover .aq-product-img,
.an-feature:hover img,
.an-download:hover img,
.an-info-tile:hover img,
.an-featured-fair:hover .an-media img,
.csm-stories-item:hover .csm-stories-thumb img,
.aqf-category-2-item:hover .aqf-category-2-thumb img {
  transform: scale(1.05) !important;
}

.an-feature:hover .an-feature__icon,
.an-info-tile:hover .an-info-tile__icon {
  transform: scale(1.08) translateY(-2px);
  transition: transform 0.4s var(--an-ease) !important;
}

/* 5.4 Links & Nav Micro-interactions */
.aq-header-menu > nav > ul > li > a {
  position: relative;
  transition: color 0.3s var(--an-ease);
}

.aq-header-menu > nav > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--an-ease);
}

.aq-header-menu > nav > ul > li:hover > a::after,
.aq-header-menu > nav > ul > li.active > a::after {
  transform: scaleX(1);
}

.aq-header-menu > nav > ul > li:hover > a {
  color: var(--color-yellow) !important;
}

.aq-header-area.header-glass-sticky .aq-header-menu > nav > ul > li > a::after {
  bottom: 8px;
}

/* Interactive Navigation Links */
.aq-header-contact-btn svg {
  transition: transform 0.25s var(--an-ease);
}
.aq-header-contact-btn:hover svg {
  transform: translateX(4px);
}

/* Footer Link Cascade */
.aq-footer-widget ul li a,
.aq-footer-bottom-nav ul li a {
  display: inline-block;
  transition: color 0.25s var(--an-ease), transform 0.25s var(--an-ease);
}
.aq-footer-widget ul li a:hover,
.aq-footer-bottom-nav ul li a:hover {
  color: var(--color-yellow) !important;
  transform: translateX(4px);
}

/* Filter buttons with springy response */
.an-filter button {
  transition: transform 0.25s var(--an-ease),
              background-color 0.25s var(--an-ease),
              border-color 0.25s var(--an-ease),
              color 0.25s var(--an-ease),
  cursor: pointer;
}
.an-filter button:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}
.an-filter button:active {
  transform: translateY(1px) scale(0.97);
  transition: transform 0.1s ease !important;
}

/* Swiper Slider Smooth Overflow */
.aq-product-active .swiper-wrapper {
  padding-top: 8px;
  padding-bottom: 16px;
}

/* ==========================================================================
   6. Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  html.an-js [data-reveal],
  html.an-js section[data-reveal],
  html.an-js [class*="-area"][data-reveal],
  html.an-js .an-section[data-reveal],
  html.an-js .aq-section-area[data-reveal],
  html.an-js .aqf-hero-content[data-reveal],
  html.an-js .an-stats__item[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  html.an-leaving {
    opacity: 1 !important;
    transition: none !important;
  }

  #loading {
    display: none !important;
  }

  .aq-btn-black:hover,
  .aq-btn-white:hover,
  .aq-cta-btn:hover,
  .an-btn-outline:hover,
  .aq-header-contact-btn:hover,
  .an-card:hover,
  .aq-product-item:hover,
  .an-feature:hover,
  .an-stats__item:hover,
  .an-download:hover,
  .an-info-tile:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .an-card:hover .an-media img,
  .an-card:hover .an-media__primary,
  .an-card:hover .an-media__hover,
  .aq-product-item:hover .aq-product-thumb img,
  .aq-product-item:hover .aq-product-img,
  .an-feature:hover img,
  .an-download:hover img,
  .an-info-tile:hover img {
    transform: none !important;
  }
}

/* ========================================================
   Flat Clean Design - Global Zero Shadows Enforcement
   ======================================================== */
*,
*::before,
*::after {
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-text-shadow: none !important;
}

[style*="box-shadow"],
[style*="text-shadow"],
[style*="drop-shadow"] {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* ========================================================
   Card Hover: lift only, never change border/background colour
   (loaded last so no earlier yellow/blue hover border can win)
   ======================================================== */
.an-card:hover,
.an-card.an-collection-card:hover,
.an-card.an-feature:hover,
.an-card.an-cert-feature:hover,
.aq-product-item:hover,
.aqf-category-2-item:hover {
  border-color: #E6E6E6 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Client logos keep their neutral resting border on hover */
#clients .aq-clients-card:hover,
#clients .aq-clients-grid .aq-clients-card:hover {
  border-color: rgba(39, 49, 105, 0.08) !important;
  background-color: var(--color-white, #fff) !important;
  box-shadow: none !important;
}

/* ========================================================
   All Buttons Pill Shaped (Strict Enforcement)
   ======================================================== */
.aq-cta-btn,
.aq-cta-btn--nav,
.aq-cta-btn--white,
.aq-cta-btn--dark,
.aq-cta-btn--black,
.aq-cta-btn--primary,
.aq-header-contact-btn,
.an-btn,
.an-btn-outline,
.an-btn-wa,
.an-btn-secondary,
.an-filter button,
.btn,
.btn-primary,
.btn-brand,
a.aq-cta-btn,
button.aq-cta-btn,
.aq-btn-black,
.aq-btn-white,
.aq-btn-subscribe,
.aq-btn-border,
.aq-login-btn,
input[type="submit"],
button[type="submit"] {
  border-radius: 9999px !important;
}

.aq-cta-btn:hover,
.aq-cta-btn:active,
.aq-cta-btn:focus,
.aq-cta-btn:focus-visible,
.aq-cta-btn--nav:hover,
.aq-cta-btn--nav:active,
.aq-cta-btn--nav:focus,
.aq-header-contact-btn:hover,
.aq-header-contact-btn:active,
.aq-header-contact-btn:focus,
.aq-header-contact-btn:focus-visible,
.an-btn:hover,
.an-btn:active,
.an-btn:focus,
.an-btn-outline:hover,
.an-btn-outline:active,
.an-btn-outline:focus,
.an-btn-wa:hover,
.an-btn-wa:active,
.an-btn-wa:focus,
.an-btn-secondary:hover,
.an-btn-secondary:active,
.an-btn-secondary:focus,
.an-filter button:hover,
.an-filter button:active,
.an-filter button:focus,
.an-filter button.is-active,
.btn:hover,
.btn:active,
.btn:focus,
a.aq-cta-btn:hover,
a.aq-cta-btn:active,
a.aq-cta-btn:focus,
button.aq-cta-btn:hover,
button.aq-cta-btn:active,
button.aq-cta-btn:focus,
.aq-btn-black:hover,
.aq-btn-black:active,
.aq-btn-black:focus,
a.aq-btn-black:hover,
a.aq-btn-black:active,
button.aq-btn-black:hover,
button.aq-btn-black:active,
.aq-btn-white:hover,
.aq-btn-white:active,
.aq-btn-white:focus,
a.aq-btn-white:hover,
a.aq-btn-white:active,
button.aq-btn-white:hover,
button.aq-btn-white:active,
.aq-btn-subscribe:hover,
.aq-btn-subscribe:active,
.aq-btn-subscribe:focus,
.aq-btn-border:hover,
.aq-btn-border:active,
.aq-btn-border:focus,
.aq-login-btn:hover,
.aq-login-btn:active,
.aq-login-btn:focus,
input[type="submit"]:hover,
input[type="submit"]:active,
input[type="submit"]:focus,
button[type="submit"]:hover,
button[type="submit"]:active,
button[type="submit"]:focus {
  border-radius: 9999px !important;
}

/* Pseudo-elements on all buttons share pill shape */
.aq-cta-btn::before,
.aq-cta-btn::after,
.aq-header-contact-btn::before,
.aq-header-contact-btn::after,
.an-btn::before,
.an-btn::after,
.an-btn-outline::before,
.an-btn-outline::after,
.an-btn-wa::before,
.an-btn-wa::after,
.an-btn-secondary::before,
.an-btn-secondary::after,
.an-filter button::before,
.an-filter button::after,
.btn::before,
.btn::after,
a.aq-cta-btn::before,
a.aq-cta-btn::after,
button.aq-cta-btn::before,
button.aq-cta-btn::after,
.aq-btn-black::before,
.aq-btn-black::after,
.aq-btn-white::before,
.aq-btn-white::after,
.aq-btn-subscribe::before,
.aq-btn-subscribe::after,
.aq-btn-border::before,
.aq-btn-border::after,
.aq-login-btn::before,
.aq-login-btn::after,
input[type="submit"]::before,
input[type="submit"]::after,
button[type="submit"]::before,
button[type="submit"]::after {
  border-radius: 9999px !important;
}

/* ==========================================================================
   Custom Cursor System (Al Nour Garments & CMS)
   Brand Colors:
     Deep Blue: #273169 (var(--color-deepblue))
     Yellow:    #f0953a (var(--color-yellow))
     White:     #FFFFFF (var(--color-white))
   States:
     - Normal: yellow dot (8px) + smooth trailing ring (38px)
     - Link / Button hover: pointer ring (58px) with subtle yellow glow
     - Product / Gallery hover: badge (86px) in Deep Blue with "VIEW" text
     - News / Blog hover: badge (86px) in Deep Blue with "READ" text
     - Down / Click: scale down feedback
     - Inputs / Textareas: native text cursor (I-beam), custom cursor hidden
     - Touch / Mobile / Reduced Motion: default browser cursor preserved
   ========================================================================== */

#cDot,
#cRing {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  z-index: 999999;
  will-change: transform, opacity;
}

#cDot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--color-yellow, #f0953a);
  box-shadow: 0 0 10px rgba(240, 149, 58, 0.55);
  transition: opacity 0.25s ease,
              scale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#cRing {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--color-yellow, #f0953a);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--aq-ff-satoshi-bold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  user-select: none;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.25s ease,
              width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              scale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#cRing span {
  display: block;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* Link / Button hover state: enlarged pointer ring */
#cRing.link {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  background: rgba(240, 149, 58, 0.15);
  border-color: var(--color-yellow, #f0953a);
  box-shadow: 0 0 16px rgba(240, 149, 58, 0.25);
}

/* Product (VIEW) / Blog (READ) Badge Hover State */
#cRing.view {
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  background: var(--color-deepblue, #273169);
  border: 1.5px solid var(--color-yellow, #f0953a);
  box-shadow: 0 10px 28px rgba(39, 49, 105, 0.4), 0 0 16px rgba(240, 149, 58, 0.35);
}

#cRing.view span {
  opacity: 1;
  transform: translateY(0);
}

/* Hide dot when badge is expanded to keep text perfectly unobstructed */
#cDot.is-hidden {
  opacity: 0 !important;
  scale: 0.2 !important;
}

/* Click Down Feedback */
#cRing.down {
  scale: 0.85;
}
#cDot.down {
  scale: 0.75;
}

/* Hide default cursor on desktop when custom cursor is active */
html.has-cursor,
html.has-cursor body,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"],
html.has-cursor .an-card,
html.has-cursor .aqb-gallery-item,
html.has-cursor .csm-stories-item,
html.has-cursor .aqf-banner-2-box {
  cursor: none !important;
}

/* Always preserve native I-beam cursor on inputs, textareas, selects */
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select,
html.has-cursor [contenteditable="true"] {
  cursor: text !important;
}

/* Touch, Mobile & Tablet Safeguard: Restore native cursor, hide custom elements */
@media (pointer: coarse), (max-width: 991px) {
  #cDot,
  #cRing {
    display: none !important;
  }
  html.has-cursor,
  html.has-cursor body,
  html.has-cursor * {
    cursor: auto !important;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #cDot,
  #cRing {
    display: none !important;
  }
  html.has-cursor,
  html.has-cursor body,
  html.has-cursor * {
    cursor: auto !important;
  }
}
