/* ============================================================
   Avtica — Windows Animation Fix
   ============================================================
   Problem: All hero/orbit/ring animations are gated behind
   @media (prefers-reduced-motion:no-preference). On Windows,
   if "Show animations in Windows" is OFF (Settings → Accessibility
   → Visual effects), browsers report prefers-reduced-motion:reduce,
   so the animations never run. This affects a huge share of
   Windows users (battery saver, performance mode, manual toggle).

   Fix: Re-declare the key animations unconditionally, outside
   any media query. The original rules still apply for users who
   explicitly prefer reduced motion via OS/browser settings.
   ============================================================ */

/* --- Hero ring draw + icon pop (home page) --- */
/* !important + high specificity required: the JS bundle injects
   @media (prefers-reduced-motion:reduce) { .avtica-site * { animation:none!important } }
   into <style id="avtica-refinements"> which lands AFTER this stylesheet
   in the DOM, so we must beat it on specificity alone. */
html body .avtica-site .Hero_ring__BerwU {
  animation: Hero_ring-draw__uSNad var(--draw) cubic-bezier(.65,0,.35,1) var(--delay) both !important;
  mask-image: conic-gradient(from 180deg, #000 var(--sweep), transparent 0 calc(1turn - var(--sweep)), #000 0);
}
html body .avtica-site .Hero_pop__kjQto {
  animation: Hero_icon-pop__8kw_b 1.1s linear(0,.053,.176,.33,.488,.632,.754,.852,.925,.976,1.009,1.028,1.037,1.038,1.036,1.031,1.025,1.019,1.013,1.009,1.005,1.002,1.001,1) var(--pop) both !important;
}

/* --- Orbit hero ring + pop (products/core etc.) --- */
html body .avtica-site .OrbitHero_ring__COVYk {
  animation: OrbitHero_ring-draw__LTSvZ var(--draw) cubic-bezier(.65,0,.35,1) var(--delay) both !important;
  mask-image: conic-gradient(from 180deg, #000 var(--sweep), transparent 0 calc(1turn - var(--sweep)), #000 0);
}
html body .avtica-site .OrbitHero_pop__l4rP5 {
  animation: OrbitHero_icon-pop__dC_tR 1.1s linear(0,.053,.176,.33,.488,.632,.754,.852,.925,.976,1.009,1.028,1.037,1.038,1.036,1.031,1.025,1.019,1.013,1.009,1.005,1.002,1.001,1) var(--pop) both !important;
}

/* --- Horizon hero ring + pop (products/forge etc.) --- */
html body .avtica-site .HorizonHero_ring__bakDW {
  animation: HorizonHero_ring-rise__ryGgT 2.2s cubic-bezier(.16,1,.3,1) var(--delay) both !important;
}
html body .avtica-site .HorizonHero_pop__UG_FP {
  animation: HorizonHero_icon-rise__ZVAoJ 1.4s cubic-bezier(.16,1,.3,1) var(--pop) both !important;
}

/* --- Client banner marquee (logos strip) --- */
html body .avtica-site .ClientBanner_track___Mf7i {
  animation: ClientBanner_client-marquee___ggjv linear infinite !important;
}

/* --- Smooth scroll (was disabled by reduce) --- */
html {
  scroll-behavior: smooth;
}

/* --- Generic transitions: restore normal duration --- */
*, :after, :before {
  transition-duration: initial !important;
}

/* --- Cookie consent modal transition --- */
#cc-main {
  --cc-modal-transition-duration: 0.3s;
}

/* ============================================================
   Avtica — Header Logo Visibility Fix (2026-10-06)
   ============================================================
   Problem: The extracted site lost the Tailwind utilities the
   original Next.js build generated. Two impacts on the logo:

   1. `.text-text` (color) missing → SVG `fill="currentColor"`
      inherited the browser default (black) on a dark hero.
   2. `h-9 w-auto sm:h-[45px]` missing → SVG renders at 0×0 px.

   Fix: Set an explicit light color and explicit dimensions on the
   header logo anchor/SVG so the brand mark renders correctly.
   The SVG viewBox is 219×72 (≈3.04:1), so we hard-set the height
   and let width auto-calculate via aspect-ratio.
   ============================================================ */
html body .avtica-site .ref-header a[aria-label="Avtica home"] {
  color: #ecf8fa; /* pale cyan — matches the dark-hero text tone */
  /* Ensure the anchor itself lays out even if flex classes fail */
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
html body .avtica-site .ref-header a[aria-label="Avtica home"] > svg {
  height: 36px;          /* was h-9 */
  width: auto;
  aspect-ratio: 219 / 72;
  display: block;
}
@media (min-width: 640px) {
  html body .avtica-site .ref-header a[aria-label="Avtica home"] > svg {
    height: 45px;        /* was sm:h-[45px] */
  }
}
/* Also cover the generic wrapper in case other children
   relied on the missing .text-text utility. */
html body .avtica-site .ref-header .text-text {
  color: #ecf8fa;
}

/* ============================================================
   Avtica — Nav Flip Override Fix (2026-10-06)
   ============================================================
   Problem: The bundled Tailwind CSS includes two rules meant to
   disable the nav "flip" hover animation:
       .flip-clone { display:none !important }
       .group:hover .flip-base { transform:none !important }
   The first hides the slide-in clone. The second tries to pin
   the base label in place — but it only sets `transform`, while
   Tailwind v4 animates the base via the standalone `translate`
   property (`.group-hover\\:-translate-y-full` sets
   `translate: 0 -100%`). `transform` and `translate` are
   independent properties, so on hover the base still slides up
   and out of the overflow-hidden parent… while the clone that
   should replace it is display:none. Net effect: the nav button
   goes blank on hover (Danica's screenshot).

   Fix: also pin the `translate` property on the base, and reset
   it on the (hidden) clone for safety. Both !important to beat
   Tailwind's utilities.
   ============================================================ */
html body .avtica-site .group:hover .flip-base,
html body .avtica-site .group .flip-base {
  translate: 0 0 !important;
  transform: none !important;
}
html body .avtica-site .flip-clone {
  /* keep the clone hidden (matches the "calm nav" design intent)
     but make sure it never slides in if a future rule unhides it */
  translate: 0 0 !important;
  transform: none !important;
}
