/* ==========================================================================
   YFYD (Youth for Youth Development) - Modern Standalone Design System
   Pure AMOLED Black & Signature Logo Palette (Electric Cyan #00d4ff & Ruby Red #d62724)
   Apple Pro High-Contrast Aesthetics & HIG Design Tokens
   Typography: Cabinet Grotesk (Headings) + Satoshi (Body) + JetBrains Mono (Code)
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800,900&f[]=satoshi@400,500,600,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* True AMOLED Pitch Black Base & Slate Surfaces */
  --bg-dark: #000000;
  --bg-dark-surface: #04080c;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-hover: rgba(255, 255, 255, 0.18);

  /* Primary Brand Blue/Cyan Palette (Derived from Logo Left Mark #111e26 / #00d4ff) */
  --accent-cyan: #00d4ff;
  --accent-cyan-light: #38bdf8;
  --accent-cyan-bright: #7dd3fc;
  --accent-cyan-hover: #0ea5e9;
  --accent-cyan-dark: #0284c7;
  --accent-cyan-deep: #0369a1;
  --accent-cyan-navy: #0b3b67;

  /* Primary Brand Ruby Red Palette (Derived from Logo Right Mark #d62724) */
  --accent-ruby: #d62724;
  --accent-ruby-apple: #ff453a;
  --accent-ruby-light: #ff6b68;
  --accent-ruby-bright: #ff8583;
  --accent-ruby-hover: #ff5247;
  --accent-ruby-dark: #b91c1c;
  --accent-ruby-deep: #7f1d1d;
  --accent-ruby-wine: #4c0519;

  /* Midnight Cyan Slate (Deep Stealth Surfaces) */
  --accent-slate: #111e26;
  --accent-slate-light: #1e3442;
  --accent-slate-hover: #264254;
  --accent-slate-dark: #04080c;
  --accent-slate-surface: #08131a;

  /* Backward Compatibility Aliases so all existing markup resolves cleanly */
  --accent-gold: #00d4ff;
  --accent-gold-light: #7dd3fc;
  --accent-gold-bright: #38bdf8;
  --accent-gold-hover: #0ea5e9;
  --accent-gold-dark: #0284c7;
  --accent-bronze: #0369a1;
  --accent-crimson: #d62724;
  --accent-navy: #111e26;
  --accent-blue: #38bdf8;
  --accent-purple: #d62724;

  /* Apple Pro High-Contrast Typography */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-subtle: rgba(255, 255, 255, 0.32);

  --font-display: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  color-scheme: dark;
  accent-color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* --------------------------------------------------------------------------
   Page Load & Dynamic Splash Reveal
   -------------------------------------------------------------------------- */
.skip-splash #page-loader {
  display: none !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999999;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, visibility;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.page-loader.is-loaded {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
}

/* Central Stage Container - Centered explicitly in viewport and inside flex */
.loader-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.is-loaded .loader-stage {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Ambient Atmospheric Background Aura - Blends slowly and smoothly into AMOLED black */
.loader-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.28) 0%,
    rgba(0, 212, 255, 0.16) 24%,
    rgba(214, 39, 36, 0.12) 44%,
    rgba(214, 39, 36, 0.05) 64%,
    rgba(0, 212, 255, 0.015) 78%,
    transparent 88%
  );
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  animation: loaderAmbientPulse 3.2s ease-in-out infinite alternate;
}

/* 1. Static Subtle Circular Orbit Guide Track */
.loader-orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 114px;
  height: 114px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.06), inset 0 0 12px rgba(214, 39, 36, 0.04);
  pointer-events: none;
  z-index: 1;
}

/* 2. Outer Subtle Reverse-Rotating Tech Accent */
.loader-orbit-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  animation: loaderOrbitReverse 16s linear infinite;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

/* 3. Circular Gradient Loading Line Assembly (Reduced Radius) */
.loader-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 114px;
  height: 114px;
  border-radius: 50%;
  pointer-events: none;
  animation: loaderSpin 1.6s linear infinite;
  will-change: transform;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.45));
  z-index: 2;
}

/* Crisp Active Circular Gradient Line (Hollow Ring with 100% Transparent Interior) */
.loader-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 45deg,
    rgba(0, 212, 255, 0.12) 100deg,
    rgba(0, 212, 255, 0.6) 180deg,
    #00d4ff 260deg,
    #ff453a 330deg,
    #ff7066 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 2px));
  pointer-events: none;
}

/* Deprecated Solid Black Core & Glow Disks - Hidden to allow ambient glow to radiate freely */
.loader-spinner-core,
.loader-spinner-glow {
  display: none !important;
}

/* Leading Comet Spark Bead at 12 o'clock */
.loader-spinner-spark {
  position: absolute;
  top: 1.2px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 6px #ffffff,
    0 0 12px #ff6b68,
    0 0 20px #00d4ff;
  z-index: 5;
}

/* 4. Center YFYD Logo Wrap & Radiant Soft Halo */
.loader-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  animation: logoBreathPulse 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Diffuse Logo Aura that bleeds past the ring */
.loader-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.42) 0%,
    rgba(214, 39, 36, 0.24) 44%,
    transparent 74%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.65)) drop-shadow(0 0 22px rgba(214, 39, 36, 0.4));
  position: relative;
  z-index: 2;
}

/* Keyframes - strictly preserving translate(-50%, -50%) for perfect dead-center alignment */
@keyframes loaderSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes loaderOrbitReverse {
  0% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes logoBreathPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes loaderAmbientPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}


:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 212, 255, 0.35);
  color: #ffffff;
}

html {
  scrollbar-color: rgba(0, 212, 255, 0.25) var(--bg-dark);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-dark);
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.6);
  }
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}

h1, .text-fluid-hero, .text-fluid-h1 {
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2, .text-fluid-h2 {
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3, .text-fluid-h3 {
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h4, h5, h6 {
  letter-spacing: -0.02em;
}

/* Micro-Typography Rule 3: Balanced Dark-Mode Text Contrast & Optical Weighting */
p, blockquote, li {
  text-wrap: pretty;
  hyphens: none;
  -webkit-hyphens: none;
  color: rgba(255, 255, 255, 0.82);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Positioning & Layout Primitives (Standalone Tailwind Equivalence)
   -------------------------------------------------------------------------- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.left-1\/2 { left: 50%; }
.left-1\/3 { left: 33.333333%; }
.left-1\/4 { left: 25%; }
.right-1\/3 { right: 33.333333%; }
.right-1\/4 { right: 25%; }
.-top-32 { top: -8rem; }
.-top-40 { top: -10rem; }
.-left-20 { left: -5rem; }
.-right-20 { right: -5rem; }
.-left-32 { left: -8rem; }
.-right-32 { right: -8rem; }
.-right-40 { right: -10rem; }
.top-\[40\%\] { top: 40%; }
.top-\[50\%\] { top: 50%; }
.top-\[60\%\] { top: 60%; }
.top-\[70\%\] { top: 70%; }
.top-\[75\%\] { top: 75%; }
.-translate-x-1\/2 { transform: translateX(-50%); }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Mobile Navigation Menu Toggle Button */
#nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

#nav-toggle i,
#nav-toggle svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 1024px) {
  #nav-toggle {
    display: none !important;
  }
}

/* Mobile Menu Overlay & Fullscreen AMOLED Black Slide-In Drawer */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.45s ease;
}

#mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: #000000 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(1.25rem, env(safe-area-inset-top, 1.25rem)) 1.5rem 0 1.5rem;
  box-sizing: border-box;
  z-index: 100000;
}

#mobile-menu.is-open .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  transform: scale(0.94);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  flex: 1 0 auto;
  padding: 1.25rem 0 0.5rem 0;
}

.mobile-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateX(36px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              color 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link:active {
  transform: scale(0.98);
}

.mobile-nav-link.is-active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-link.is-active svg,
.mobile-nav-link.is-active i {
  color: var(--accent-ruby-bright, #ff3344);
}

.mobile-nav-link svg,
.mobile-nav-link i {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover svg,
.mobile-nav-link:hover i {
  color: #ffffff;
}

/* Staggered slide-in from right to left in smooth flow */
#mobile-menu.is-open .mobile-nav-link:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.08s;
}
#mobile-menu.is-open .mobile-nav-link:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.13s;
}
#mobile-menu.is-open .mobile-nav-link:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.18s;
}
#mobile-menu.is-open .mobile-nav-link:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.23s;
}
#mobile-menu.is-open .mobile-nav-link:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.28s;
}
#mobile-menu.is-open .mobile-nav-link:nth-child(6) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.33s;
}

#mobile-menu:not(.is-open) .mobile-nav-link,
#mobile-menu:not(.is-open) .mobile-menu-footer {
  transition-delay: 0s;
  opacity: 0;
  transform: translateX(36px);
}

.mobile-menu-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1.25rem;
  padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(36px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#mobile-menu.is-open .mobile-menu-footer {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.38s;
}

/* On larger screens, ensure mobile menu stays hidden */
@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Grid, Dots & Ambient Lighting
   -------------------------------------------------------------------------- */
.bg-grid-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.glow-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(130px);
  z-index: 0;
  will-change: transform;
  animation: glowOrbFloat 14s ease-in-out infinite alternate;
}

/* Specific floating behavior for horizontally centered glow orbs */
.glow-orb.-translate-x-1/2,
.glow-orb.glow-center {
  animation: glowOrbFloatCenter 16s ease-in-out infinite alternate;
}

/* Alternating organic float & drift for layered glow orbs */
.glow-orb:nth-of-type(2) {
  animation: glowOrbDrift 20s ease-in-out infinite alternate-reverse;
}

.glow-orb:nth-of-type(3) {
  animation: glowOrbFloat 24s ease-in-out infinite alternate;
}

/* Organic Floating Keyframes for Ambient Glow */
@keyframes glowOrbFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-28px) scale(1.06);
  }
  100% {
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes glowOrbFloatCenter {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-50%, -28px) scale(1.06);
  }
  100% {
    transform: translate(-50%, 16px) scale(0.96);
  }
}

@keyframes glowOrbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.08);
  }
  100% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

/* Signature Logo Electric Cyan Ambient Glow (#00d4ff / #38bdf8) */
.glow-cyan,
.glow-blue,
.glow-gold {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22) 0%, rgba(3, 105, 161, 0.08) 60%, transparent 75%);
}

/* Signature Logo Ruby Red Ambient Glow (#d62724 / #ff453a) */
.glow-ruby,
.glow-purple {
  background: radial-gradient(circle, rgba(214, 39, 36, 0.20) 0%, rgba(127, 29, 29, 0.06) 60%, transparent 75%);
}

/* Midnight Slate Ambient Glow (Deep Base #111e26) */
.glow-slate,
.glow-amber {
  background: radial-gradient(circle, rgba(17, 30, 38, 0.7) 0%, rgba(11, 24, 34, 0.2) 60%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Apple-Grade Text Gradients
   -------------------------------------------------------------------------- */
/* The Signature Logo Dual-Accent Gradient: Electric Cyan into Pure White and Ruby Red */
.text-gradient-cyan-ruby,
.text-gradient-gold-ruby {
  background: linear-gradient(135deg, #00d4ff 0%, #e0f2fe 32%, #ff8583 68%, #d62724 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Apple-Grade Titanium / Metallic Platinum Gradient */
.text-gradient-platinum,
.text-gradient-silver,
.text-platinum,
.text-metallic-silver {
  background: linear-gradient(180deg, #FFFFFF 15%, #E2E8F0 50%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #E2E8F0;
}

/* Apple-Grade Titanium to Electric Cyan Gradient */
.text-gradient-cyan,
.text-gradient-gold {
  background: linear-gradient(135deg, #FFFFFF 15%, #7dd3fc 55%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Apple-Grade Titanium to Ruby Red Gradient */
.text-gradient-ruby {
  background: linear-gradient(135deg, #FFFFFF 15%, #ff8583 55%, #d62724 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Vibrant Pure Ruby Gradient */
.text-gradient-ruby-vibrant {
  background: linear-gradient(135deg, #ff6b68 0%, #ff453a 50%, #d62724 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Freely floating brand logo with Dual Cyan & Ruby drop shadows */
.brand-logo-free {
  position: relative;
  height: 2.35rem;
  width: auto;
  max-width: 3.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 8px rgba(0, 212, 255, 0.25)) drop-shadow(0 0 8px rgba(214, 39, 36, 0.25));
}

.group:hover .brand-logo-free {
  transform: scale(1.05);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 14px rgba(0, 212, 255, 0.45)) drop-shadow(0 0 12px rgba(214, 39, 36, 0.45));
}

/* --------------------------------------------------------------------------
   Site Header - Apple-Grade Floating Blur & Dynamic Scroll Border
   -------------------------------------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#site-header.header-scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

#site-header.mobile-open {
  z-index: 100000;
  background-color: rgba(6, 10, 13, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (scripting: none) {
  #site-header {
    background-color: rgba(0, 0, 0, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

/* --------------------------------------------------------------------------
   Container & Layout Classes
   -------------------------------------------------------------------------- */
.container-custom {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

@media (min-width: 1536px) {
  .container-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Width & Max-width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-36 { width: 9rem; }
.w-px { width: 1px; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-36 { height: 9rem; }
.h-44 { height: 11rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-80 { height: 20rem; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-28 { padding-bottom: 7rem; }

.m-auto { margin: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }

/* Flexbox & Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.flex-shrink-0,
.shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.self-end { align-self: flex-end; }
.self-auto { align-self: auto; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }
.space-y-24 > :not([hidden]) ~ :not([hidden]) { margin-top: 6rem; }
.-space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: -0.75rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Grid Helpers */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Micro-Typography Rule 2: Tabular Figures & Numerals for Data Readouts */
.tabular-nums,
.stat-value,
.stat-number,
.metric-number,
[data-counter],
.badge-apple,
.badge-apple-cyan,
.badge-apple-ruby {
  font-variant-numeric: tabular-nums lining-nums;
}

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\.96\] { line-height: 0.96; }
.leading-\[1\.05\] { line-height: 1.05; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.text-white { color: #ffffff; }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/65 { color: rgba(255, 255, 255, 0.65); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/95 { color: rgba(255, 255, 255, 0.95); }

/* Logo Blue/Cyan Tokens */
.text-cyan-300 { color: #7dd3fc; }
.text-cyan-400 { color: #00d4ff; }
.text-cyan-500 { color: #0ea5e9; }
.text-blue-300 { color: #7dd3fc; }
.text-blue-400 { color: #38bdf8; }
.text-blue-500 { color: #0284c7; }
.text-teal-300 { color: #7dd3fc; }
.text-teal-400 { color: #2dd4bf; }

/* Logo Ruby Red Tokens */
.text-ruby { color: #d62724; }
.text-ruby-apple { color: #ff453a; }
.text-ruby-light { color: #ff6b68; }
.text-ruby-bright { color: #ff8583; }
.text-ruby-hover { color: #ff5247; }
.text-crimson { color: #d62724; }
.text-rose-400 { color: #ff6b68; }

/* Logo Midnight Slate Tokens */
.text-slate-logo { color: #111e26; }
.text-slate-light { color: #3b5e74; }
.text-slate-muted { color: #749ab5; }

/* Legacy mappings */
.text-gold-light, .text-amber-200, .text-amber-300, .text-yellow-300 { color: #38bdf8; }
.text-gold, .text-gold-bright, .text-amber-400, .text-yellow-400, .text-indigo-400, .text-purple-400 { color: #00d4ff; }
.text-amber-500 { color: #0284c7; }
.text-black { color: #000000; }

/* AMOLED Black & Slate Background Colors */
.bg-black { background-color: #000000; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/85 { background-color: rgba(0, 0, 0, 0.85); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-\[\#050508\] { background-color: #000000; }
.bg-\[\#030406\] { background-color: #000000; }
.bg-\[\#06070a\] { background-color: #04080c; }
.bg-\[\#07080d\] { background-color: #060c12; }
.bg-\[\#07080e\] { background-color: #060c12; }
.bg-\[\#0e1017\] { background-color: #08121a; }

.bg-white\/3 { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/8 { background-color: rgba(255, 255, 255, 0.08); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/\[0\.04\] { background-color: rgba(255, 255, 255, 0.04); }
.bg-white\/\[0\.06\] { background-color: rgba(255, 255, 255, 0.06); }
.bg-white\/\[0\.08\] { background-color: rgba(255, 255, 255, 0.08); }

/* Logo Blue/Cyan Backgrounds */
.bg-cyan-400 { background-color: #00d4ff; }
.bg-cyan-400\/10 { background-color: rgba(0, 212, 255, 0.1); }
.bg-cyan-400\/20 { background-color: rgba(0, 212, 255, 0.2); }
.bg-cyan-500\/5 { background-color: rgba(0, 212, 255, 0.05); }
.bg-cyan-500\/10 { background-color: rgba(0, 212, 255, 0.1); }
.bg-cyan-500\/15 { background-color: rgba(0, 212, 255, 0.15); }
.bg-cyan-500\/20 { background-color: rgba(0, 212, 255, 0.2); }
.bg-blue-400\/10 { background-color: rgba(56, 189, 248, 0.1); }
.bg-blue-400\/20 { background-color: rgba(56, 189, 248, 0.2); }
.bg-teal-400\/10 { background-color: rgba(45, 212, 191, 0.1); }
.bg-teal-400\/20 { background-color: rgba(45, 212, 191, 0.2); }

/* Logo Ruby Red Backgrounds */
.bg-ruby { background-color: #d62724; }
.bg-ruby\/5 { background-color: rgba(214, 39, 36, 0.05); }
.bg-ruby\/10 { background-color: rgba(214, 39, 36, 0.1); }
.bg-ruby\/15 { background-color: rgba(214, 39, 36, 0.15); }
.bg-ruby\/20 { background-color: rgba(214, 39, 36, 0.2); }
.bg-ruby\/30 { background-color: rgba(214, 39, 36, 0.3); }
.bg-rose-400\/10 { background-color: rgba(255, 107, 104, 0.1); }
.bg-rose-500\/10 { background-color: rgba(244, 63, 94, 0.1); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }

/* Logo Midnight Slate Backgrounds */
.bg-slate-logo { background-color: #111e26; }
.bg-slate-logo\/20 { background-color: rgba(17, 30, 38, 0.2); }
.bg-slate-logo\/40 { background-color: rgba(17, 30, 38, 0.4); }
.bg-slate-logo\/60 { background-color: rgba(17, 30, 38, 0.6); }
.bg-slate-logo\/80 { background-color: rgba(17, 30, 38, 0.8); }

/* Borders & Rounded */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/\[0\.06\] { border-color: rgba(255, 255, 255, 0.06); }
.border-white\/\[0\.08\] { border-color: rgba(255, 255, 255, 0.08); }

/* Logo Blue/Cyan Borders */
.border-cyan-400 { border-color: #00d4ff; }
.border-cyan-400\/20 { border-color: rgba(0, 212, 255, 0.2); }
.border-cyan-400\/25 { border-color: rgba(0, 212, 255, 0.25); }
.border-cyan-400\/30 { border-color: rgba(0, 212, 255, 0.3); }
.border-cyan-400\/40 { border-color: rgba(0, 212, 255, 0.4); }
.border-cyan-500\/20 { border-color: rgba(14, 165, 233, 0.2); }
.border-cyan-500\/25 { border-color: rgba(14, 165, 233, 0.25); }
.border-cyan-500\/30 { border-color: rgba(14, 165, 233, 0.3); }
.border-blue-400\/20 { border-color: rgba(56, 189, 248, 0.2); }
.border-blue-400\/30 { border-color: rgba(56, 189, 248, 0.3); }
.border-teal-400\/20 { border-color: rgba(45, 212, 191, 0.2); }
.border-teal-400\/30 { border-color: rgba(45, 212, 191, 0.3); }

/* Logo Ruby Red Borders */
.border-ruby { border-color: #d62724; }
.border-ruby\/20 { border-color: rgba(214, 39, 36, 0.2); }
.border-ruby\/25 { border-color: rgba(214, 39, 36, 0.25); }
.border-ruby\/30 { border-color: rgba(214, 39, 36, 0.3); }
.border-ruby\/40 { border-color: rgba(214, 39, 36, 0.4); }
.border-rose-400\/20 { border-color: rgba(255, 107, 104, 0.2); }

/* Logo Midnight Slate Borders */
.border-slate-logo { border-color: #111e26; }
.border-slate-logo\/30 { border-color: rgba(17, 30, 38, 0.3); }
.border-slate-logo\/50 { border-color: rgba(17, 30, 38, 0.5); }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.ring-2 { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); }
.ring-white\/10 { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); }
.ring-cyan-400\/30 { box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3); }
.ring-cyan-400\/40 { box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4); }
.ring-cyan-400\/50 { box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.5); }
.ring-ruby\/30 { box-shadow: 0 0 0 2px rgba(214, 39, 36, 0.3); }
.ring-ruby\/40 { box-shadow: 0 0 0 2px rgba(214, 39, 36, 0.4); }
.ring-ruby\/50 { box-shadow: 0 0 0 2px rgba(214, 39, 36, 0.5); }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.backdrop-blur-2xl { backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); }

.fill-black { fill: #000000; }
.fill-cyan-400 { fill: #00d4ff; }
.fill-cyan-400\/30 { fill: rgba(0, 212, 255, 0.3); }
.fill-ruby { fill: #d62724; }
.fill-ruby\/30 { fill: rgba(214, 39, 36, 0.3); }

/* Gradient Stops Utilities */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops, transparent, transparent));
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops, transparent, transparent));
}
.from-slate-950\/80 {
  --tw-gradient-from: rgba(10, 16, 22, 0.9);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}
.via-cyan-950\/30 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(8, 47, 73, 0.35), var(--tw-gradient-to, transparent);
}
.via-ruby-950\/35 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(76, 5, 25, 0.4), var(--tw-gradient-to, transparent);
}
.to-slate-950\/80 {
  --tw-gradient-to: rgba(10, 16, 22, 0.9);
}

.from-cyan-400,
.from-cyan-light {
  --tw-gradient-from: #00d4ff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}
.via-cyan-500 {
  --tw-gradient-stops: var(--tw-gradient-from), #0ea5e9, var(--tw-gradient-to, transparent);
}
.to-cyan-dark {
  --tw-gradient-to: #0284c7;
}

.from-ruby-light {
  --tw-gradient-from: #ff6b68;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}
.via-ruby {
  --tw-gradient-stops: var(--tw-gradient-from), #d62724, var(--tw-gradient-to, transparent);
}
.to-ruby-dark {
  --tw-gradient-to: #991b1b;
}

/* --------------------------------------------------------------------------
   Interactive States & Pseudo-Class Utilities
   -------------------------------------------------------------------------- */
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:text-cyan-300:hover { color: #7dd3fc !important; }
.hover\:text-cyan-400:hover { color: #00d4ff !important; }
.hover\:text-ruby-bright:hover { color: #ff8583 !important; }
.hover\:text-ruby-light:hover { color: #ff6b68 !important; }

.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05) !important; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

.hover\:border-cyan-400\/40:hover { border-color: rgba(0, 212, 255, 0.4) !important; }
.hover\:border-ruby\/40:hover { border-color: rgba(214, 39, 36, 0.4) !important; }
.hover\:underline:hover { text-decoration: underline; }

.focus\:border-cyan-400:focus { border-color: #00d4ff !important; }
.focus\:border-ruby:focus { border-color: #ff453a !important; }
.focus\:bg-white\/10:focus { background-color: rgba(255, 255, 255, 0.1) !important; }
.focus\:ring-cyan-400:focus { box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4) !important; }
.focus\:ring-ruby:focus { box-shadow: 0 0 0 2px rgba(214, 39, 36, 0.4) !important; }

.group:hover .group-hover\:text-white { color: #ffffff !important; }
.group:hover .group-hover\:text-cyan-300 { color: #7dd3fc !important; }
.group:hover .group-hover\:text-ruby-bright { color: #ff8583 !important; }
.group:hover .group-hover\:border-cyan-400\/40 { border-color: rgba(0, 212, 255, 0.4) !important; }
.group:hover .group-hover\:border-ruby\/40 { border-color: rgba(214, 39, 36, 0.4) !important; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1) !important; }
.group:hover .group-hover\:ring-cyan-400\/50 { box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.5) !important; }
.group:hover .group-hover\:ring-ruby\/50 { box-shadow: 0 0 0 2px rgba(214, 39, 36, 0.5) !important; }

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:text-left { text-align: left; }
  .sm\:-space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: -0.75rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:w-11 { width: 2.75rem; }
  .sm\:h-11 { height: 2.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:pt-24 { padding-top: 6rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:items-end { align-items: flex-end; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:self-auto { align-self: auto; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-\[5\.4rem\] { font-size: 5.4rem; line-height: 0.96; }
}

/* --------------------------------------------------------------------------
   Cards, Panels & Glass Surfaces (Apple VisionOS / macOS Premium Glass Standard)
   -------------------------------------------------------------------------- */
.glass-panel,
.apple-review-card,
.network-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.glass-panel::before,
.apple-review-card::before,
.network-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.glass-panel:hover::before,
.apple-review-card:hover::before,
.network-card:hover::before {
  opacity: 1;
}

.glass-panel:hover,
.apple-review-card:hover,
.network-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.22),
              0 20px 40px -10px rgba(0, 0, 0, 0.65),
              0 0 24px -4px var(--card-glow, rgba(255, 255, 255, 0.08));
}

/* Ensure inner content sits clearly above the spotlight layer while retaining interactivity */
.glass-panel > *,
.apple-review-card > *,
.network-card > * {
  z-index: 2;
}
.glass-panel > *:not([class*="absolute"]),
.apple-review-card > *:not([class*="absolute"]),
.network-card > *:not([class*="absolute"]) {
  position: relative;
}

/* Dynamic Theme Variations & Accent Responsive Glows */
.glass-panel.theme-cyan,
.apple-review-card.theme-cyan,
.network-card.theme-cyan,
.glass-panel:not(.theme-ruby):not(.theme-slate):has(.text-cyan-400),
.glass-panel:not(.theme-ruby):not(.theme-slate):has(.text-cyan-300),
.glass-panel:not(.theme-ruby):not(.theme-slate):has([class*="border-cyan-400"]),
.glass-panel:not(.theme-ruby):not(.theme-slate):has([class*="bg-cyan-400"]) {
  --card-glow: rgba(0, 212, 255, 0.16);
}
.glass-panel.theme-cyan:hover,
.apple-review-card.theme-cyan:hover,
.network-card.theme-cyan:hover,
.glass-panel:not(.theme-ruby):not(.theme-slate):has(.text-cyan-400):hover,
.glass-panel:not(.theme-ruby):not(.theme-slate):has(.text-cyan-300):hover,
.glass-panel:not(.theme-ruby):not(.theme-slate):has([class*="border-cyan-400"]):hover,
.glass-panel:not(.theme-ruby):not(.theme-slate):has([class*="bg-cyan-400"]):hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.25),
              0 20px 40px -10px rgba(0, 0, 0, 0.65),
              0 0 20px rgba(0, 212, 255, 0.16);
}

.glass-panel.theme-ruby,
.apple-review-card.theme-ruby,
.network-card.theme-ruby,
.glass-panel:not(.theme-cyan):not(.theme-slate):has(.text-ruby-bright),
.glass-panel:not(.theme-cyan):not(.theme-slate):has(.text-ruby),
.glass-panel:not(.theme-cyan):not(.theme-slate):has([class*="border-ruby"]),
.glass-panel:not(.theme-cyan):not(.theme-slate):has([class*="bg-ruby"]) {
  --card-glow: rgba(214, 39, 36, 0.16);
}
.glass-panel.theme-ruby:hover,
.apple-review-card.theme-ruby:hover,
.network-card.theme-ruby:hover,
.glass-panel:not(.theme-cyan):not(.theme-slate):has(.text-ruby-bright):hover,
.glass-panel:not(.theme-cyan):not(.theme-slate):has(.text-ruby):hover,
.glass-panel:not(.theme-cyan):not(.theme-slate):has([class*="border-ruby"]):hover,
.glass-panel:not(.theme-cyan):not(.theme-slate):has([class*="bg-ruby"]):hover {
  border-color: rgba(214, 39, 36, 0.4);
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.25),
              0 20px 40px -10px rgba(0, 0, 0, 0.65),
              0 0 20px rgba(214, 39, 36, 0.16);
}

.glass-panel.theme-slate,
.apple-review-card.theme-slate,
.network-card.theme-slate,
.glass-panel:has(.text-platinum),
.glass-panel:has(.text-slate-100),
.glass-panel:has([class*="border-slate-300"]) {
  --card-glow: rgba(226, 232, 240, 0.18);
}
.glass-panel.theme-slate:hover,
.apple-review-card.theme-slate:hover,
.network-card.theme-slate:hover,
.glass-panel:has(.text-platinum):hover,
.glass-panel:has(.text-slate-100):hover,
.glass-panel:has([class*="border-slate-300"]):hover {
  border-color: rgba(226, 232, 240, 0.4);
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.25),
              0 20px 40px -10px rgba(0, 0, 0, 0.65),
              0 0 24px rgba(226, 232, 240, 0.22);
}

/* Explicit theme class specificity overrides */
.glass-panel.theme-cyan:hover,
.apple-review-card.theme-cyan:hover,
.network-card.theme-cyan:hover {
  border-color: rgba(0, 212, 255, 0.4) !important;
  --card-glow: rgba(0, 212, 255, 0.18) !important;
}

.glass-panel.theme-ruby:hover,
.apple-review-card.theme-ruby:hover,
.network-card.theme-ruby:hover {
  border-color: rgba(214, 39, 36, 0.4) !important;
  --card-glow: rgba(214, 39, 36, 0.18) !important;
}

.glass-panel.theme-slate:hover,
.apple-review-card.theme-slate:hover,
.network-card.theme-slate:hover {
  border-color: rgba(226, 232, 240, 0.4) !important;
  --card-glow: rgba(226, 232, 240, 0.22) !important;
}

.apple-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .apple-tag {
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

.apple-tag-cyan {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #38bdf8;
}

.apple-tag-ruby {
  background: rgba(214, 39, 36, 0.08);
  border: 1px solid rgba(214, 39, 36, 0.25);
  color: #ff8583;
}

.apple-tag-slate {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

/* --- Per-theme star colours --- */
.apple-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Titanium / Silver (Card 1) */
.apple-stars-wrap.stars-titanium i,
.apple-stars-wrap.stars-titanium svg {
  fill: #c8cdd6;
  color: #c8cdd6;
  filter: drop-shadow(0 1px 3px rgba(200, 205, 214, 0.35));
}

/* Cyan (Card 2) */
.apple-stars-wrap.stars-cyan i,
.apple-stars-wrap.stars-cyan svg {
  fill: #00d4ff;
  color: #00d4ff;
  filter: drop-shadow(0 1px 4px rgba(0, 212, 255, 0.5));
}

/* Ruby Red (Card 3) */
.apple-stars-wrap.stars-ruby i,
.apple-stars-wrap.stars-ruby svg {
  fill: #ff4545;
  color: #ff4545;
  filter: drop-shadow(0 1px 3px rgba(214, 39, 36, 0.45));
}

.apple-quote-watermark {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease, transform 0.4s ease;
  z-index: 0;
}

.apple-review-card:hover .apple-quote-watermark {
  color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px) scale(1.06);
}

.apple-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.apple-avatar-wrap img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

@media (min-width: 640px) {
  .apple-avatar-wrap img {
    width: 3.25rem;
    height: 3.25rem;
  }
}

.apple-review-card:hover .apple-avatar-wrap img {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.4);
}

.apple-company-badge {
  width: 4.85rem;
  height: 2.125rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0.625rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .apple-company-badge {
    width: 5.5rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    padding: 0 0.5rem;
  }
}

.apple-review-card:hover .apple-company-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.apple-review-card .border-t p {
  min-height: 2.25rem;
  line-height: 1.125rem;
}

.apple-nav-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.apple-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.05);
}

.apple-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.apple-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}


.badge-apple,
.badge-apple-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #7dd3fc;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(10px);
}

.badge-apple .pulse-dot,
.badge-apple .pulse-dot-cyan,
.pulse-dot,
.pulse-dot-cyan {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
  animation: pulseGlow 2s infinite;
}

.badge-apple-ruby {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(214, 39, 36, 0.08);
  border: 1px solid rgba(214, 39, 36, 0.3);
  color: #ff8583;
  box-shadow: 0 0 20px rgba(214, 39, 36, 0.15);
  backdrop-filter: blur(10px);
}

.badge-apple-ruby .pulse-dot-ruby,
.badge-apple .pulse-dot-ruby,
.pulse-dot-ruby {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #ff453a;
  box-shadow: 0 0 10px #ff453a;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   Buttons (Apple Pro Pure Crisp Plain White & OLED Contrast)
   -------------------------------------------------------------------------- */
.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  background-color: #ffffff;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15), 0 0 1px rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.btn-apple-primary:hover {
  background-color: #f4f4f6;
  background: #f4f4f6;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.45), 0 4px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.btn-apple-primary:active {
  transform: translateY(0) scale(0.98);
  background-color: #e4e4e7;
  background: #e4e4e7;
}

/* Electric Cyan Solid CTA Button */
.btn-apple-cyan,
.btn-apple-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  background: linear-gradient(135deg, #00d4ff 0%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4), 0 0 1px rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.btn-apple-cyan:hover,
.btn-apple-gold:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.65), 0 4px 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-apple-cyan:active,
.btn-apple-gold:active {
  transform: translateY(0) scale(0.98);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* Ruby Red Solid CTA Button */
.btn-apple-ruby {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  background: linear-gradient(135deg, #ff453a 0%, #d62724 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(214, 39, 36, 0.4), 0 0 1px rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.btn-apple-ruby:hover {
  background: linear-gradient(135deg, #ff5c52 0%, #e02d2a 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 35px rgba(214, 39, 36, 0.65), 0 4px 20px rgba(255, 69, 58, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-apple-ruby:active {
  transform: translateY(0) scale(0.98);
  background: linear-gradient(135deg, #e02d2a 0%, #b91c1c 100%);
}

/* Frosted Glass Cyan Button */
.btn-apple-cyan-glass,
.btn-apple-gold-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  background-color: rgba(0, 212, 255, 0.06);
  color: #7dd3fc;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
  text-decoration: none;
}

.btn-apple-cyan-glass:hover,
.btn-apple-gold-glass:hover {
  background-color: rgba(0, 212, 255, 0.16);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}

/* Frosted Glass Ruby Button */
.btn-apple-ruby-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  background-color: rgba(214, 39, 36, 0.06);
  color: #ff8583;
  border: 1px solid rgba(214, 39, 36, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(214, 39, 36, 0.1);
  text-decoration: none;
}

.btn-apple-ruby-glass:hover {
  background-color: rgba(214, 39, 36, 0.16);
  color: #ffffff;
  border-color: rgba(214, 39, 36, 0.65);
  box-shadow: 0 0 25px rgba(214, 39, 36, 0.35);
  transform: translateY(-2px);
}

/* Secondary Frosted Glass Button */
.btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-apple-secondary:hover {
  background-color: rgba(0, 212, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.22);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Marquee Animation (Edge-Masked 60 FPS Ticker)
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 2rem;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2.5rem;
  animation: scrollMarquee 32s linear infinite;
  will-change: transform;
}

@keyframes scrollMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Progressive Scroll Reveal & Staggered Cascade
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready [data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}

html.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Staggered Grids & Cascades */
[data-reveal-stagger] > * {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready [data-reveal-stagger].will-reveal > * {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}

html.js-ready [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.glass-panel:hover,
.apple-review-card:hover,
[data-apple-card]:hover,
.testimonial-card:hover {
  transition-delay: 0s !important;
}

/* Testimonial Carousel Track Scroll Snap & Responsive Padding */
.testimonial-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-left: 1rem;
  scroll-padding-right: 1rem;
}
.testimonial-track::-webkit-scrollbar {
  display: none;
}
@media (min-width: 640px) {
  .testimonial-track {
    scroll-padding-left: 0 !important;
    scroll-padding-right: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Funnel & Modals
   -------------------------------------------------------------------------- */
/* Step Navigation Container — exactly 2 steps visible at a time on mobile; balanced 5-column grid on laptop/desktop */
.funnel-step-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.funnel-step-nav::-webkit-scrollbar {
  display: none;
}

.funnel-step-btn {
  position: relative;
  flex: 0 0 calc((100% - 0.5rem) / 2);
  width: calc((100% - 0.5rem) / 2);
  padding: 0.6rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
  scroll-snap-align: start;
}

.funnel-step-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .funnel-step-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    overflow: visible;
    padding-bottom: 0.25rem;
    margin-bottom: 2rem;
  }

  .funnel-step-btn {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.45rem;
    font-size: 0.725rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .funnel-step-nav {
    gap: 0.75rem;
  }

  .funnel-step-btn {
    padding: 0.85rem 0.65rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 1280px) {
  .funnel-step-btn {
    padding: 0.85rem 0.85rem;
    font-size: 0.825rem;
  }
}

.funnel-step-btn.is-active,
.funnel-step-btn.is-active.is-cyan,
.funnel-step-btn.is-active[data-step-indicator="1"],
.funnel-step-btn.is-active[data-step-indicator="3"],
.funnel-step-btn.is-active[data-step-indicator="5"] {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
}

.funnel-step-btn.is-active.is-ruby,
.funnel-step-btn.is-active[data-step-indicator="2"],
.funnel-step-btn.is-active[data-step-indicator="4"] {
  background: rgba(214, 39, 36, 0.15);
  border-color: rgba(255, 69, 58, 0.6);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(214, 39, 36, 0.35);
}

.funnel-step-btn.is-completed {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan);
}

/* Onboarding Funnel Interactive Card Themes (per active step) */
[data-join-funnel] .glass-panel.theme-cyan,
[data-join-funnel] .glass-panel:has([data-funnel-step="1"].is-active),
[data-join-funnel] .glass-panel:has([data-funnel-step="3"].is-active),
[data-join-funnel] .glass-panel:has([data-funnel-step="5"].is-active) {
  --card-glow: rgba(0, 212, 255, 0.2) !important;
}

[data-join-funnel] .glass-panel.theme-cyan:hover,
[data-join-funnel] .glass-panel:has([data-funnel-step="1"].is-active):hover,
[data-join-funnel] .glass-panel:has([data-funnel-step="3"].is-active):hover,
[data-join-funnel] .glass-panel:has([data-funnel-step="5"].is-active):hover {
  border-color: rgba(0, 212, 255, 0.35) !important;
  --card-glow: rgba(0, 212, 255, 0.2) !important;
}

[data-join-funnel] .glass-panel.theme-ruby,
[data-join-funnel] .glass-panel:has([data-funnel-step="2"].is-active),
[data-join-funnel] .glass-panel:has([data-funnel-step="4"].is-active) {
  --card-glow: rgba(214, 39, 36, 0.22) !important;
}

[data-join-funnel] .glass-panel.theme-ruby:hover,
[data-join-funnel] .glass-panel:has([data-funnel-step="2"].is-active):hover,
[data-join-funnel] .glass-panel:has([data-funnel-step="4"].is-active):hover {
  border-color: rgba(255, 69, 58, 0.35) !important;
  --card-glow: rgba(214, 39, 36, 0.22) !important;
}

/* --------------------------------------------------------------------------
   Funnel Step Status Badges
   -------------------------------------------------------------------------- */
.funnel-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: all 0.3s ease;
  max-width: 100%;
}

.funnel-step-badge .funnel-step-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: inherit;
}

.funnel-step-badge .funnel-step-sep,
.funnel-step-badge .funnel-step-title {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Step 5 Interview Screening Receipt Card
   -------------------------------------------------------------------------- */
.interview-receipt-card {
  position: relative;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 212, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.interview-receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.7), transparent);
}

.dossier-ref-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 0.875rem;
  padding: 0.65rem 1rem;
}

.dossier-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dossier-copy-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #060c12;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 1.5rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 212, 255, 0.2);
  transform: scale(0.95) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-container {
  transform: scale(1) translateY(0);
}

/* Floating Action Dock */
.floating-dock {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s ease;
}

/* Hide floating dock completely when mobile menu drawer is open */
body.menu-open .floating-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.85) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
}

.floating-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(17, 30, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}

.floating-action-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-action-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-bright);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.floating-action-btn.is-visible:hover {
  transform: translateY(0) scale(1.08);
}

/* --------------------------------------------------------------------------
   5. Media & Card Hover Micro-Interactions (Original Colors Preserved)
   -------------------------------------------------------------------------- */
.group img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.group:hover img:not([class*="scale-135"]) {
  transform: scale(1.04) !important;
}

.group:hover img[class*="scale-135"] {
  transform: scale(1.40) !important;
}

/* --------------------------------------------------------------------------
   6. Smooth Accordion Motion (Zero-Leak Expansion)
   -------------------------------------------------------------------------- */
.accordion-item {
  overflow: hidden !important;
}

.accordion-content {
  display: grid !important;
  grid-template-rows: 0fr !important;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.35s ease;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.accordion-item.is-open .accordion-content {
  grid-template-rows: 1fr !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.accordion-inner {
  min-height: 0 !important;
  overflow: hidden !important;
}

.accordion-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg) !important;
}

/* --------------------------------------------------------------------------
   7. Tactile Button & Form Micro-Interactions
   -------------------------------------------------------------------------- */
.btn-apple-primary,
.btn-apple-secondary,
.btn-apple-cyan,
.btn-apple-gold,
.btn-apple-ruby,
.btn-apple-cyan-glass,
.btn-apple-gold-glass,
.btn-apple-ruby-glass,
button:not([disabled]),
a[class*="btn"]:not([disabled]) {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease;
}

.btn-apple-primary:active,
.btn-apple-secondary:active,
.btn-apple-cyan:active,
.btn-apple-gold:active,
.btn-apple-ruby:active,
.btn-apple-cyan-glass:active,
.btn-apple-gold-glass:active,
.btn-apple-ruby-glass:active,
button:not([disabled]):active,
a[class*="btn"]:not([disabled]):active {
  transform: scale(0.97) !important;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.25), 0 0 16px rgba(0, 212, 255, 0.15) !important;
}

/* --------------------------------------------------------------------------
   Executive Board Member Reference Cards & Micro-Interactions
   Replicating AT Bots / Cyber-Executive High-Impact Reference:
   - Deep AMOLED #0d0d0d surface & rounded-2xl geometry
   - Ambient volumetric spread glow on hover
   - 3:4 portrait ratio with grayscale-to-color transition & slow zoom
   - Bottom vignette gradient blending portrait into card base
   - Top sweeping cyan light beam / laser scanner animation on hover
   - Expanding horizontal cyan hairline accent
   - Hover color transitions for name, title, badges, and borders
   - Floating frosted glass LinkedIn profile quick action
   -------------------------------------------------------------------------- */

.board-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  --card-accent: #00d4ff;
  --card-accent-rgb: 0, 212, 255;
}

@media (min-width: 640px) {
  .board-card-wrapper {
    max-width: 100%;
  }
}

/* Optional Ruby Accent Modifier */
.board-card-wrapper.accent-ruby {
  --card-accent: #d62724;
  --card-accent-rgb: 214, 39, 36;
}

/* Ambient Spread Glow behind the card */
.board-card-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom, rgba(var(--card-accent-rgb), 0.20), transparent);
  border-radius: 1.875rem;
  filter: blur(30px);
  -webkit-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.board-card-wrapper:hover .board-card-glow {
  opacity: 1;
}

/* Inner backdrop tint */
.board-card-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(var(--card-accent-rgb), 0.05);
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s ease;
}

.board-card-wrapper:hover .board-card-backdrop {
  opacity: 1;
}

/* Main card surface (Apple Glass Standard) */
.board-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.board-card-wrapper:hover .board-card-inner {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(var(--card-accent-rgb), 0.4);
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.22),
              0 20px 40px -10px rgba(0, 0, 0, 0.65),
              0 0 24px rgba(var(--card-accent-rgb), 0.18);
}

/* Portrait Media Box (3:4 ratio) */
.board-card-media {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.015);
  width: 100%;
}

/* Portrait Image (Grayscale to Color & Scale 1.1) */
.board-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transform: scale(1);
  transition: filter 0.7s ease-out, -webkit-filter 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, transform;
}

.board-card-wrapper:hover .board-card-img {
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
  transform: scale(1.10);
}

/* Bottom vignette overlay to blend photo seamlessly into card body */
.board-card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d0d0d 0%, rgba(13, 13, 13, 0.18) 50%, transparent 100%);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.board-card-wrapper:hover .board-card-vignette {
  opacity: 0.35;
}

/* Sweeping light beam / laser scanner across top */
.board-card-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--card-accent) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 10;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-card-wrapper:hover .board-card-beam {
  transform: translateX(100%);
}

/* Floating Glass LinkedIn Button */
.board-card-linkedin {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(-4px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.board-card-wrapper:hover .board-card-linkedin {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.board-card-linkedin:hover {
  color: var(--card-accent);
  border-color: rgba(var(--card-accent-rgb), 0.5);
  background-color: rgba(0, 0, 0, 0.85);
  transform: translateY(-1px) scale(1.08);
}

/* Card content body */
.board-card-body {
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

/* Expanding hairline divider between image and content */
.board-card-line {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--card-accent-rgb), 0.6) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.board-card-wrapper:hover .board-card-line {
  transform: scaleX(1);
}

/* Member Name */
.board-card-name {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.board-card-wrapper:hover .board-card-name,
.board-card-wrapper:hover .board-card-name a {
  color: var(--card-accent);
}

/* Role / Subtitle */
.board-card-role {
  color: var(--card-accent);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.board-card-wrapper:hover .board-card-role {
  opacity: 1;
}

/* Bio Text */
.board-card-bio {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.5s ease;
}

.board-card-wrapper:hover .board-card-bio {
  color: rgba(255, 255, 255, 0.65);
}

/* Bottom Credential Badge Bar */
.board-card-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.4s ease;
}

.board-card-wrapper:hover .board-card-badge {
  border-top-color: rgba(var(--card-accent-rgb), 0.15);
}

.board-card-badge-icon {
  padding: 0.25rem;
  border-radius: 0.375rem;
  background-color: rgba(var(--card-accent-rgb), 0.06);
  border: 1px solid rgba(var(--card-accent-rgb), 0.15);
  color: var(--card-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
}

.board-card-badge-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--card-accent);
}

.board-card-badge-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.625rem;
  line-height: 1.35;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.board-card-wrapper:hover .board-card-badge-text {
  color: rgba(255, 255, 255, 0.6);
}

/* Bottom Corner Ambient Orb */
.board-card-orb {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 6rem;
  height: 6rem;
  background-color: rgba(var(--card-accent-rgb), 0.06);
  border-radius: 9999px;
  filter: blur(2rem);
  -webkit-filter: blur(2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.board-card-wrapper:hover .board-card-orb {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Mini Board Card Variant (Collaborators & Institutional Partners)
   -------------------------------------------------------------------------- */
.board-card-wrapper.board-card-mini {
  max-width: 320px;
}

.board-card-wrapper.board-card-mini .board-card-inner,
.board-card-wrapper.board-card-mini:hover .board-card-inner {
  background: #0d0d0d !important;
  border-radius: 1.25rem;
}

.board-card-wrapper.board-card-mini:hover .board-card-inner {
  transform: translateY(-3px);
  border-color: rgba(var(--card-accent-rgb), 0.4) !important;
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.15),
              0 20px 40px -10px rgba(0, 0, 0, 0.65),
              0 0 24px rgba(var(--card-accent-rgb), 0.18) !important;
}

.board-card-wrapper.board-card-mini .board-card-media {
  aspect-ratio: auto;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, #0d0d0d 100%) !important;
  padding: 0.875rem;
}

@media (min-width: 640px) {
  .board-card-wrapper.board-card-mini .board-card-media {
    height: 9.5rem;
    padding: 1rem;
  }
}

.board-card-wrapper.board-card-mini .board-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  -webkit-filter: none;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.board-card-wrapper.board-card-mini:hover .board-card-img {
  filter: none;
  -webkit-filter: none;
  transform: scale(1.08);
}

.board-card-wrapper.board-card-mini .board-card-body,
.board-card-wrapper.board-card-mini:hover .board-card-body {
  background: transparent !important;
  padding: 1.15rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
}

/* Remove bottom bar fill, backdrop wash, and corner orb on hover — keep only the clean expanding separation line */
.board-card-wrapper.board-card-mini .board-card-backdrop,
.board-card-wrapper.board-card-mini:hover .board-card-backdrop {
  display: none !important;
  opacity: 0 !important;
}

.board-card-wrapper.board-card-mini .board-card-orb,
.board-card-wrapper.board-card-mini:hover .board-card-orb {
  display: none !important;
  opacity: 0 !important;
}

.board-card-wrapper.board-card-mini .board-card-line {
  left: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--card-accent-rgb), 0.7) 50%, transparent 100%);
  transform-origin: center;
}

.board-card-wrapper.board-card-mini .board-card-name {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .board-card-wrapper.board-card-mini .board-card-name {
    font-size: 1.0625rem;
  }
}

.board-card-wrapper.board-card-mini .board-card-role {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .board-card-wrapper.board-card-mini .board-card-role {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
}

.board-card-wrapper.board-card-mini .board-card-orb {
  width: 4.5rem;
  height: 4.5rem;
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion Preference (WCAG Compliance)
   -------------------------------------------------------------------------- */
@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;
  }

  .marquee-content {
    animation: none !important;
  }
}

/* ==========================================================================
   CSS Device Detection & Responsive Adaptive Engine
   Apple-Grade HIG Responsive Polish across Mobile, Tablet, Laptop & Desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Fluid Typography & Clamped Scaling
   Fluidly interpolates across viewports without awkward word wraps
   -------------------------------------------------------------------------- */
.text-fluid-hero {
  font-size: clamp(2.1rem, 5.5vw + 0.5rem, 5.2rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}

.text-fluid-h1 {
  font-size: clamp(1.85rem, 4vw + 0.4rem, 3.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
}

.text-fluid-h2 {
  font-size: clamp(1.4rem, 2.8vw + 0.4rem, 2.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}

.text-fluid-h3 {
  font-size: clamp(1.15rem, 1.8vw + 0.3rem, 1.75rem) !important;
  line-height: 1.25 !important;
}

.text-fluid-lead {
  font-size: clamp(0.95rem, 1.1vw + 0.4rem, 1.2rem) !important;
  line-height: 1.65 !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* --------------------------------------------------------------------------
   B. CSS Pointer & Input Capability Detection
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  :root {
    --device-pointer: coarse;
    --touch-min-target: 44px;
  }

  /* Safe interactive tap targets (Apple HIG 44x44pt target area) */
  .btn-apple-primary,
  .btn-apple-secondary,
  .btn-apple-cyan-glass,
  .btn-apple-ruby-glass,
  .apple-nav-btn {
    min-height: 44px;
  }

  /* Responsive physical touch release feel */
  button:active,
  a:active,
  .btn-apple-primary:active,
  .btn-apple-secondary:active,
  .btn-apple-cyan-glass:active,
  .btn-apple-ruby-glass:active {
    transform: scale(0.965);
  }

  /* Prevent hover stickiness on touch devices */
  .group:hover .group-hover\:scale-105 {
    transform: none;
  }
  .card-apple-interactive:hover {
    transform: none;
  }
  .speaker-card:hover {
    transform: translateY(-2px);
  }
}

@media (pointer: fine) and (hover: hover) {
  :root {
    --device-pointer: fine;
  }

  /* Desktop/Laptop cursor hover precision */
  .btn-apple-primary:hover,
  .btn-apple-secondary:hover,
  .btn-apple-cyan-glass:hover,
  .btn-apple-ruby-glass:hover {
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   C. Mobile Platform Tier (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  :root {
    --device-category: mobile;
  }

  /* Header mobile height optimization */
  #site-header .container-custom {
    height: 64px;
  }

  /* Position floating action dock for mobile */
  .floating-dock {
    bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
    right: max(1rem, calc(env(safe-area-inset-right, 0px) + 0.5rem));
    gap: 0.6rem;
  }

  .floating-action-btn {
    width: 44px;
    height: 44px;
  }

  /* Compact padding for cards on smaller screens */
  .mobile-p-compact {
    padding: 1.25rem !important;
  }

  /* Compact hero pill and gap */
  .hero-trust-mobile-stack {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }


  /* Hero Summary Paragraph - Professional Justification & Apple Typography (Zero Hyphenation / No Cut-offs) */
  .hero-summary-lead {
    width: 100%;
  }

  .hero-summary-lead p {
    text-align: justify !important;
    text-justify: inter-word !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: wrap !important;
  }

  /* Board member card mobile responsiveness */
  .board-card-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Mobile Button Ergonomics, Touch Target & Anti-Deformation */
  .btn-apple-primary,
  .btn-apple-secondary,
  .btn-apple-cyan,
  .btn-apple-gold,
  .btn-apple-ruby,
  .btn-apple-cyan-glass,
  .btn-apple-gold-glass,
  .btn-apple-ruby-glass {
    padding: 0.72rem 1.35rem !important;
    font-size: 0.825rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em;
    min-height: 44px !important;
    box-sizing: border-box !important;
    line-height: 1.25 !important;
  }

  /* Mobile Apple Badge Polish (No awkward multiline wrapping) */
  .badge-apple,
  .badge-apple-cyan,
  .badge-apple-ruby {
    padding: 0.32rem 0.8rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
  }
}

/* Compact phones (iPhone SE, small Androids <= 390px) */
@media (max-width: 390px) {
  :root {
    --device-category: mobile-compact;
  }

  .brand-logo-text {
    font-size: 0.82rem !important;
    letter-spacing: -0.01em !important;
  }

  .stat-grid-compact {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Compact Button Sizing for Narrow Handsets */
  .btn-apple-primary,
  .btn-apple-secondary,
  .btn-apple-cyan,
  .btn-apple-gold,
  .btn-apple-ruby,
  .btn-apple-cyan-glass,
  .btn-apple-gold-glass,
  .btn-apple-ruby-glass {
    padding: 0.65rem 1.1rem !important;
    font-size: 0.8rem !important;
    gap: 0.45rem !important;
  }

  /* Compact Badge for Narrow Handsets */
  .badge-apple,
  .badge-apple-cyan,
  .badge-apple-ruby {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.05em !important;
    gap: 0.35rem !important;
  }
}

/* --------------------------------------------------------------------------
   D. Tablet Platform Tier (768px – 1023px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  :root {
    --device-category: tablet;
  }

  /* Tablet 2-column balanced layouts */
  .tablet-grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Board member cards on tablet: clean 2-column layout */
  .board-grid-tablet {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }

  .board-grid-tablet .board-card-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Split layout on tablet for events and hero cards */
  .tablet-split-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  .tablet-split-left {
    grid-column: span 7 / span 7 !important;
  }

  .tablet-split-right {
    grid-column: span 5 / span 5 !important;
  }

  /* Tablet form row 2-column */
  .tablet-form-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --------------------------------------------------------------------------
   E. Laptop Platform Tier (1024px – 1439px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  :root {
    --device-category: laptop;
  }

  /* Balanced density for 13"-15" MacBook screens */
  .laptop-grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* --------------------------------------------------------------------------
   F. Desktop & Ultra-Wide Platform Tier (>= 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --device-category: desktop;
  }

  .desktop-max-w {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}



/* --------------------------------------------------------------------------
   G. Apple iOS / visionOS HIG Floating Bottom Dock (Tab Bar)
   Only visible on Mobile viewports (< 768px), strictly hidden on Desktop/Tablet
   -------------------------------------------------------------------------- */
.apple-mobile-dock {
  position: fixed;
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0.65rem));
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: calc(100% - 1.25rem);
  max-width: 420px;
  height: 60px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.3rem 0.5rem;
  background: rgba(8, 14, 20, 0.85);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.85),
              0 0 1px 1px rgba(255, 255, 255, 0.15) inset,
              0 0 20px rgba(0, 212, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Strictly hide bottom dock on tablet, laptop & desktop */
@media (min-width: 768px) {
  .apple-mobile-dock {
    display: none !important;
  }
}

/* Scrolled down state for auto-hide on fast downscroll */
.apple-mobile-dock.dock-hidden {
  transform: translateX(-50%) translateY(120%) translateZ(0);
  opacity: 0;
  pointer-events: none;
}

.dock-tab-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 2px;
  min-width: 48px;
  min-height: 44px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.dock-tab-item svg,
.dock-tab-item i {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.dock-tab-item.is-active {
  color: #ffffff;
}

.dock-tab-item.is-active svg,
.dock-tab-item.is-active i {
  color: var(--accent-cyan);
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.65));
}

.dock-tab-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* Special CTA Highlight for "Join" tab */
.dock-tab-item.dock-cta {
  background: linear-gradient(135deg, rgba(214, 39, 36, 0.25) 0%, rgba(0, 212, 255, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.3rem 0.65rem;
}

.dock-tab-item.dock-cta.is-active {
  background: linear-gradient(135deg, rgba(214, 39, 36, 0.45) 0%, rgba(0, 212, 255, 0.35) 100%);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

.dock-tab-item:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   H. Segmented Pill Navigation Bars (Departments & Events)
   Wraps cleanly across all screen sizes to prevent pills getting cut off
   -------------------------------------------------------------------------- */
.pill-bar-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  width: 100%;
  max-width: 100%;
}

.pill-tab-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-tab-item:hover,
.pill-tab-item.is-active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

.pill-tab-item.theme-ruby:hover,
.pill-tab-item.theme-ruby.is-active {
  background: rgba(214, 39, 36, 0.15);
  border-color: rgba(214, 39, 36, 0.45);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(214, 39, 36, 0.25);
}

/* ==========================================================================
   Apple-Grade Merit Scholarship Modal Overlay Dialog
   ========================================================================== */

.scholarship-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scholarship-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scholarship-modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.scholarship-modal-overlay.is-open .scholarship-modal-container {
  transform: scale(1) translateY(0);
}

/* Ambient Halo Lighting behind card */
.scholarship-halo {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.22) 0%, rgba(214, 39, 36, 0.10) 45%, transparent 70%);
  border-radius: 36px;
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

/* Apple Pro Glassmorphic Card Container */
.scholarship-card {
  position: relative;
  background: linear-gradient(165deg, rgba(13, 22, 32, 0.96) 0%, rgba(5, 8, 13, 0.98) 100%);
  backdrop-filter: blur(28px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.22),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05),
              0 8px 30px rgba(0, 212, 255, 0.16);
  padding: 1.15rem;
  max-height: min(90vh, 760px);
  overflow-y: auto;
}

/* Animated Top Specular Shimmer Edge Beam */
.scholarship-shimmer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff 35%, #ff453a 65%, transparent);
  opacity: 0.85;
  animation: scholarshipBeamGlow 3.5s ease-in-out infinite alternate;
}

@keyframes scholarshipBeamGlow {
  0% {
    opacity: 0.4;
    transform: translateX(-15%);
  }
  100% {
    opacity: 1;
    transform: translateX(15%);
  }
}

/* Header */
.scholarship-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.scholarship-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scholarship-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.scholarship-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.scholarship-tag-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  text-transform: uppercase;
}

.scholarship-subtag {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Window Controls (Minimize / Dismiss) */
.scholarship-window-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.scholarship-ctrl-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scholarship-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.08);
}

.scholarship-ctrl-btn.scholarship-close:hover {
  background: rgba(214, 39, 36, 0.25);
  border-color: rgba(214, 39, 36, 0.5);
  color: #ff8583;
}

/* Embedded Media */
.scholarship-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #080c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  margin-bottom: 0.9rem;
}

.scholarship-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.scholarship-media-wrapper:hover .scholarship-media-img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.scholarship-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scholarship-media-wrapper:hover .scholarship-media-overlay {
  opacity: 1;
}

.scholarship-zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.scholarship-media-wrapper:hover .scholarship-zoom-pill {
  transform: translateY(0);
}

.scholarship-media-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* Body & Typography */
.scholarship-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scholarship-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scholarship-quote-card {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2.5px solid #00d4ff;
}

.scholarship-lead {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.45rem;
}

.scholarship-lead strong {
  color: #ffffff;
  font-weight: 700;
}

.scholarship-quote {
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0.35rem;
}

.scholarship-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scholarship-author-line {
  width: 12px;
  height: 1px;
  background: rgba(0, 212, 255, 0.6);
}

.scholarship-author-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* Actions: Translucent Glass Outline Style (Non-Solid Fill) */
.scholarship-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.scholarship-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scholarship-btn-primary:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.scholarship-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scholarship-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Apple-Grade Merit Scholarship Floating Pill & Circle Action Button
   ========================================================================== */

.scholarship-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  border-radius: 9999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  backdrop-filter: blur(24px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(105%);
  color: #7dd3fc;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18),
              0 10px 30px -4px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: width, transform, opacity;
  overflow: hidden;
  user-select: none;
  font: inherit;
}

.scholarship-pill-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Expanded state on initial scroll: comfortable width with zero clipping */
.scholarship-pill-btn.is-expanded {
  width: 232px;
}

/* Collapsed state as user scrolls deeper: perfect 48px glowing circle */
.scholarship-pill-btn.is-collapsed {
  width: 48px;
}

/* On desktop hover when collapsed: silky spring expansion */
@media (hover: hover) and (min-width: 641px) {
  .scholarship-pill-btn.is-collapsed:hover {
    width: 232px;
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.35),
                0 14px 36px -4px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .scholarship-pill-btn.is-collapsed:hover .scholarship-pill-text {
    opacity: 1;
    max-width: 185px;
    margin-right: 1rem;
    transform: translateX(0);
    pointer-events: auto;
  }

  .scholarship-pill-btn.is-collapsed:hover .scholarship-pill-icon i {
    color: #00d4ff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
  }
}

/* Pill Icon Box */
.scholarship-pill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scholarship-pill-icon i {
  color: #00d4ff;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.scholarship-pill-btn:hover .scholarship-pill-icon i {
  color: #00d4ff;
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.85));
}

/* Pill Text Area (Exact Signature Cyan Capsule Style) */
.scholarship-pill-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, max-width, margin, transform;
}

.scholarship-pill-btn.is-expanded .scholarship-pill-text {
  opacity: 1;
  max-width: 185px;
  margin-right: 1rem;
  transform: translateX(0);
  pointer-events: auto;
}

.scholarship-pill-btn.is-collapsed .scholarship-pill-text {
  opacity: 0;
  max-width: 0;
  margin-right: 0;
  transform: translateX(8px);
  overflow: hidden;
  pointer-events: none;
}

/* Hide floating elements completely when mobile menu drawer is open */
body.menu-open .scholarship-modal-overlay,
body.menu-open .floating-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.85) !important;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .scholarship-modal-container {
    max-width: calc(100vw - 1.5rem);
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .scholarship-pill-btn,
  .scholarship-modal-overlay,
  .scholarship-modal-container {
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    transform: none !important;
  }
  .scholarship-shimmer-bar,
  .scholarship-pulse-dot {
    animation: none !important;
  }
}



