/* DS Gleebem Liquid Glass Base v1.0.0 — 2026-04-10 */

/* ═══════════════════════════════════════════════
   MODERN RESET
   ═══════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════ */

/* Skip link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-3) var(--sp-5);
  background: hsl(var(--navy-500));
  color: white;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: var(--sp-4);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible (WCAG 2.4.7) — teal ring */
:focus-visible {
  outline: 3px solid hsl(var(--teal-400));
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--navy-300) / 0.35);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--navy-400) / 0.5);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--navy-300) / 0.35) transparent;
}

/* ═══════════════════════════════════════════════
   AMBIENT FX SYSTEM — Layer 1
   ═══════════════════════════════════════════════ */

.ayo-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ayo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
  animation: ayo-drift 14s ease-in-out infinite alternate;
}

.ayo-orb--teal {
  width: 400px;
  height: 400px;
  background: hsl(var(--teal-400));
  top: 10%;
  left: -5%;
  animation-duration: 16s;
}

.ayo-orb--blue {
  width: 350px;
  height: 350px;
  background: hsl(var(--blue-400));
  top: 40%;
  right: -8%;
  animation-duration: 12s;
  animation-delay: -4s;
}

.ayo-orb--navy {
  width: 300px;
  height: 300px;
  background: hsl(var(--navy-300));
  bottom: 5%;
  left: 30%;
  animation-duration: 18s;
  animation-delay: -8s;
}

/* Grain texture overlay */
.ayo-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════
   FADE-UP ON SCROLL (IntersectionObserver)
   ═══════════════════════════════════════════════ */

.fu {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--t-smooth), transform 0.5s var(--t-smooth);
}

.fu.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════ */

@keyframes ayo-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 15px) scale(0.97); }
}

@keyframes ayo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes ayo-step-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ayo-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fu {
    opacity: 1;
    transform: none;
  }
  .ayo-orb {
    animation: none !important;
  }
}
