/* IAC Pro Visual System v5.0 — Awwwards-Level Edition
   ═══════════════════════════════════════════════════════
   Layered on top of tokens.css + core.css
   Replaces premium.css with GSAP-driven animations
   ═══════════════════════════════════════════════════════ */

/* ── 1. SMOOTH SCROLL BASELINE ── */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ── 2. PAGE TRANSITION / LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.6s;
}

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

.page-loader-logo {
  width: 64px;
  height: 64px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ── 3. HERO — CINEMATIC ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  overflow: hidden;
  padding: clamp(6rem, 12vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
}

.hero-shader-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-shader-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Noise overlay for cinematic texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Grid pattern – subtle */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Hero content layout */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Hero text */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  will-change: transform, opacity;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
  margin-bottom: 1.25rem;
  will-change: transform, opacity;
}

.hero h1 .text-gold {
  background: linear-gradient(135deg, #9A7B1F 0%, #D4AF37 25%, #F5D76E 50%, #D4AF37 75%, #9A7B1F 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s ease infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.85);
  max-width: 540px;
  margin-bottom: 2rem;
  will-change: transform, opacity;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  will-change: transform, opacity;
}

/* Hero card – glass */
.hero-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.6;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-inverse);
  margin-bottom: 0.75rem;
}

.hero-card p {
  font-size: var(--text-sm);
  color: rgba(203, 213, 225, 0.7);
  margin-bottom: 1.25rem;
}

.hero-search {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
}

.hero-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.75rem 1rem;
  color: white;
  font-size: var(--text-sm);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-search input:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.hero-search input::placeholder {
  color: rgba(203, 213, 225, 0.4);
}

.search-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1rem;
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: rgba(212, 175, 55, 0.25);
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: var(--text-xs);
  color: rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── 4. SECTIONS — ELEVATED ── */
.section {
  position: relative;
  padding: clamp(4rem, 8vh, 7rem) 0;
  overflow: hidden;
}

.section-mesh {
  position: relative;
}

.section-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

.section-mesh > .container {
  position: relative;
  z-index: 1;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-intro.narrow {
  max-width: 560px;
}

/* ── 5. CARDS — GLASS MORPHISM PRO ── */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease;
  overflow: hidden;
}

/* Spotlight gradient that follows mouse */
.card .card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.06),
    transparent 40%);
}

.card:hover .card-spotlight {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(181, 146, 43, 0.08);
  border-color: rgba(181, 146, 43, 0.15);
}

/* Top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 1px;
}

.card:hover::before {
  opacity: 0.5;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.card:hover .card-icon {
  transform: scale(1.08);
}

.card-icon.gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.15));
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.1);
}

.card-icon.blue {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(30, 64, 175, 0.12));
  color: var(--blue);
  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.08);
}

.card-icon.green {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(5, 150, 105, 0.12));
  color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.08);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-body);
  line-height: 1.65;
  font-size: var(--text-base);
}

/* ── 6. CTA BUTTONS — PRO ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.cta.primary {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 16px rgba(181, 146, 43, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta.primary:hover {
  background-position: 100% 100%;
  box-shadow: 0 8px 32px rgba(181, 146, 43, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cta.secondary {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
  box-shadow: none;
}

.cta.secondary:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-50);
  transform: translateY(-2px);
}

/* Ripple effect on click */
.cta .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── 7. METRICS — ANIMATED ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-metrics {
  padding: 3rem 0;
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  background: linear-gradient(135deg, #9A7B1F, #D4AF37, #F5D76E, #D4AF37, #B5922B);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s ease infinite;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── 8. TESTIMONIALS ── */
.testimonial-card blockquote {
  margin: 0;
  padding: 0;
}

.testimonial-card blockquote p {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-card blockquote footer {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial-card blockquote footer strong {
  font-size: var(--text-sm);
  color: var(--text-heading);
}

/* ── 9. STEPS — TIMELINE ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 2px solid var(--border-light);
  transition: border-color 0.5s ease;
}

.step.is-active {
  border-left-color: var(--gold-light);
}

.step strong {
  color: var(--text-heading);
}

/* ── 10. LINK ARROWS ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--gold-text);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.3s ease;
}

.link-arrow:hover {
  gap: 0.625rem;
  color: var(--gold);
}

/* ── 11. CUSTOM CURSOR ── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              opacity 0.3s ease;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-dot.visible { opacity: 1; }

.cursor-dot.hovering {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  mix-blend-mode: normal;
}

/* ── 12. SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold));
  z-index: 10001;
  transition: none;
}

/* ── 13. HEADER — GLASS ── */
.site-header.scrolled {
  background: rgba(8, 27, 52, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ── 14. FOOTER CTA BANNER ── */
.footer-cta-banner {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vh, 5rem) 0;
}

.footer-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30, 64, 175, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.footer-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: white;
  margin-bottom: 0.5rem;
}

.footer-cta-text {
  color: rgba(203, 213, 225, 0.75);
  font-size: var(--text-base);
}

.footer-cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-cta-input-group {
  display: flex;
  gap: 0;
}

.footer-cta-input-group input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.75rem 1rem;
  color: white;
  font-size: var(--text-sm);
  min-width: 240px;
  transition: border-color 0.3s, background 0.3s;
}

.footer-cta-input-group input:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.1);
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-light));
  color: white;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.footer-cta-btn:hover {
  box-shadow: 0 4px 20px rgba(181, 146, 43, 0.3);
}

.footer-cta-notice {
  font-size: var(--text-xs);
  color: rgba(148, 163, 184, 0.5);
}

/* ── 15. FOOTER ── */
.site-footer {
  background: var(--navy-950);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 2rem;
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

.footer-glow--left {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, transparent 70%);
}

.footer-glow--right {
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(181, 146, 43, 0.04) 0%, transparent 70%);
}

/* ── 16. GSAP REVEAL CLASSES ── */
/* Elements start invisible; GSAP animates them in */
.gs-hidden {
  opacity: 0;
  visibility: hidden;
}

.gs-reveal-up {
  opacity: 0;
  transform: translateY(60px);
}

.gs-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.gs-reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.gs-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* Split text chars */
.char {
  display: inline-block;
  will-change: transform, opacity;
}

.word {
  display: inline-block;
  overflow: hidden;
}

.word .char {
  transform: translateY(100%);
}

/* ── 17. BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 27, 52, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

/* ── 18. DARK MODE CARD ADJUSTMENTS ── */
[data-theme="dark"] .card {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .card:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(212, 175, 55, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(212, 175, 55, 0.08);
}

/* ── 19. RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .cursor-dot {
    display: none !important;
  }

  .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ── 20. REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .gs-reveal-up,
  .gs-reveal-left,
  .gs-reveal-right,
  .gs-reveal-scale {
    opacity: 1;
    transform: none;
  }

  .text-gold,
  .metric-value {
    animation: none !important;
  }

  .cursor-dot {
    display: none !important;
  }

  html.lenis {
    scroll-behavior: auto;
  }
}

/* ── 21. PAGE TRANSITIONS ── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
}

.page-transition-overlay .bar {
  flex: 1;
  background: var(--navy-950);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* Page enter animation state */
body.page-entering .page-transition-overlay .bar {
  animation: barEnter 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

body.page-leaving .page-transition-overlay .bar {
  animation: barLeave 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes barEnter {
  0% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

@keyframes barLeave {
  0% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

/* Stagger each bar */
.page-transition-overlay .bar:nth-child(1) { animation-delay: 0ms; }
.page-transition-overlay .bar:nth-child(2) { animation-delay: 40ms; }
.page-transition-overlay .bar:nth-child(3) { animation-delay: 80ms; }
.page-transition-overlay .bar:nth-child(4) { animation-delay: 120ms; }
.page-transition-overlay .bar:nth-child(5) { animation-delay: 160ms; }

/* ── 22. NOISE TEXTURE OVERLAY ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* ── 23. SECTION DIVIDERS — ANIMATED LINES ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 0;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: dividerShine 4s ease-in-out infinite;
}

@keyframes dividerShine {
  0% { left: -60%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ── 24. FLOATING ELEMENTS ── */
.float-element {
  animation: floatGentle 6s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── 25. MAGNETIC HOVER GLOW ── */
.glow-on-hover {
  position: relative;
}

.glow-on-hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle, 0deg),
    transparent 0deg,
    rgba(212, 175, 55, 0.15) 90deg,
    transparent 180deg,
    rgba(30, 64, 175, 0.1) 270deg,
    transparent 360deg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glow-on-hover:hover::after {
  opacity: 1;
  animation: glowRotate 4s linear infinite;
}

@keyframes glowRotate {
  to { --glow-angle: 360deg; }
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── 26. SPLITTING.JS TEXT STYLES ── */
[data-splitting] .char {
  display: inline-block;
  will-change: transform, opacity;
}

[data-splitting] .whitespace {
  width: 0.3em;
}

/* Char index as stagger via CSS variable --char-index */
[data-splitting] .char {
  transition-delay: calc(var(--char-index) * 20ms);
}

/* Word splitting */
[data-splitting-words] .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── 27. DATA-ATTRIBUTE ANIMATIONS ── */
[data-parallax] {
  will-change: transform;
}

[data-clip-reveal] {
  will-change: clip-path;
}

[data-scale-in] {
  will-change: transform, opacity;
}

[data-rotate-in] {
  will-change: transform, opacity;
}

/* ── 28. VANTA.JS CONTAINER ── */
[data-vanta] {
  position: absolute;
  inset: 0;
  z-index: 0;
}

[data-vanta] canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── 29. ENHANCED CARD VARIANTS ── */
.card-featured {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.85) 100%);
  border-color: rgba(181, 146, 43, 0.15);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
}

.card-featured::before {
  opacity: 0.6 !important;
  background: linear-gradient(90deg,
    transparent 10%,
    var(--gold-light) 50%,
    transparent 90%) !important;
}

.card-dark {
  background: rgba(8, 27, 52, 0.85);
  backdrop-filter: blur(24px) saturate(130%);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse);
}

.card-dark h3,
.card-dark strong {
  color: white;
}

.card-dark p {
  color: rgba(203, 213, 225, 0.8);
}

/* ── 30. ANIMATED GRADIENT BORDERS ── */
.gradient-border {
  position: relative;
  border: none !important;
  padding: calc(1px + clamp(1.5rem, 3vw, 2.5rem));
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.3),
    rgba(30, 64, 175, 0.2),
    rgba(5, 150, 105, 0.15),
    rgba(212, 175, 55, 0.3));
  background-size: 300% 300%;
  animation: gradientBorderMove 8s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes gradientBorderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 31. SCROLL-TRIGGERED TEXT HIGHLIGHTS ── */
.highlight-on-scroll {
  background: linear-gradient(120deg, var(--gold-50) 0%, var(--gold-100) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 88%;
  transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 0.125em;
}

.highlight-on-scroll.is-highlighted {
  background-size: 100% 40%;
}

/* ── 32. HORIZONTAL SCROLL SHOWCASE ── */
.hscroll-section {
  position: relative;
  height: auto;
  padding: 4rem 0;
  overflow: hidden;
}

.hscroll-track {
  display: flex;
  gap: 2rem;
  will-change: transform;
  padding: 2rem;
}

.hscroll-panel {
  position: relative;
  min-width: 85vw;
  height: 70vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hscroll-panel {
    min-width: 45vw;
  }
}

.hscroll-panel-media {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hscroll-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem;
  background: linear-gradient(to top, var(--navy), transparent);
  z-index: 2;
  color: white;
}

.hscroll-panel:hover .hscroll-panel-media {
  transform: scale(1.05);
}

.hscroll-counter {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  z-index: 3;
}

/* ── 33. INFINITE MARQUEE / TICKER ── */
.marquee-section {
  overflow: hidden;
  padding: 3rem 0;
  background: var(--navy);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.marquee-item .separator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--gold-light);
  border-radius: 50%;
  margin: 0 2rem;
  vertical-align: middle;
  opacity: 0.4;
}

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

.marquee-section:hover .marquee-track {
  animation-duration: 30s;
}

.marquee-section[data-scroll-accelerate] .marquee-track {
  /* JS will control velocity */
}

/* ── 34. IMAGE MASK REVEAL ── */
.img-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-reveal img {
  display: block;
  width: 100%;
  transform: scale(1.2);
}

.img-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-950);
  z-index: 1;
  transform-origin: right;
  transition: transform 0s;
}

.img-reveal.revealed::before {
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.revealed img {
  transform: scale(1);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* ── 35. TEXT SCRAMBLE / DECODE EFFECT ── */
.text-scramble {
  display: inline-block;
  font-family: var(--font-body);
}

.text-scramble .scramble-char {
  display: inline-block;
  transition: opacity 0.1s, color 0.1s;
}

.text-scramble .scramble-char.decoding {
  color: var(--gold-light);
  opacity: 0.7;
}

/* ── 36. CURSOR TRAIL ── */
.cursor-trail-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.3s;
}

@media (pointer: fine) {
  .cursor-trail-dot {
    display: block;
  }
}

@media (pointer: coarse) {
  .cursor-trail-dot {
    display: none !important;
  }
}

/* ── 37. MORPHING GRADIENT SECTIONS ── */
@property --morph-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --morph-hue {
  syntax: '<number>';
  initial-value: 220;
  inherits: false;
}

.section-morph {
  background: conic-gradient(
    from var(--morph-angle),
    hsla(var(--morph-hue), 30%, 95%, 0.6),
    hsla(calc(var(--morph-hue) + 40), 25%, 97%, 0.4),
    hsla(var(--morph-hue), 30%, 95%, 0.6)
  );
  animation: morphRotate 20s linear infinite;
}

/* Section-morph text legibility — ensure content is readable on subtle gradient */
.section-morph h2,
.section-morph h3,
.section-morph p,
.section-morph .section-intro,
.section-morph .eyebrow {
  color: var(--text-primary, #1e293b);
}

.section-morph .section-intro {
  color: var(--text-muted, #64748b);
}

@keyframes morphRotate {
  to {
    --morph-angle: 360deg;
  }
}

/* ── 38. LIQUID GLASS PANELS ── */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.03);
}

/* When card already has glass-panel, don't double up — use card's better background */
.card.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Dark glass for hscroll panels and truly dark-bg contexts */
.hscroll-panel.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

[data-theme="dark"] .glass-panel {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  transition: opacity 0.5s;
  opacity: 0;
}

.glass-panel:hover::before {
  opacity: 1;
}

/* ── 39. KINETIC TYPOGRAPHY ── */
.kinetic-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  letter-spacing: -0.02em;
}

.kinetic-text span {
  display: inline-block;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-text span:hover {
  color: var(--gold-light);
  -webkit-text-stroke-color: var(--gold-light);
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.kinetic-text.filled {
  color: var(--gold-light);
}

/* ── 40. SCROLL VELOCITY TEXT DISTORTION ── */
.velocity-text {
  will-change: transform, font-variation-settings;
  transition: font-variation-settings 0.1s;
}

.velocity-text[style*="--velocity"] {
  transform: skewY(calc(var(--velocity) * 0.5deg));
}

/* ── 41. STAGGER GRID REVEAL ── */
.stagger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* stagger-grid children: GSAP handles the initial opacity:0 + transform.
   CSS-only fallback in case JS fails — uses .no-js or timeout-based class */
.stagger-grid > * {
  /* Let GSAP set opacity:0 via gsap.set() so from() works correctly */
}

/* CSS-only fallback when JS is unavailable */
.no-js .stagger-grid > * {
  opacity: 1 !important;
  transform: none !important;
}

/* Safety: after 4s if GSAP hasn't animated, show everything */
.stagger-grid.force-visible > * {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ── 42. SCROLL SNAP FULLPAGE SECTIONS ── */
.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ── 43. ANIMATED TEXT GRADIENT ── */
.text-gradient-animate {
  background: linear-gradient(
    90deg,
    var(--gold-light, #D4AF37),
    var(--blue, #1E40AF),
    #059669,
    var(--gold-light, #D4AF37)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--gold-light, #D4AF37); /* fallback for browsers that don't support background-clip:text */
  animation: textGradientShift 8s ease infinite;
}

@keyframes textGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ── 44. MAGNETIC CARD SPOTLIGHT V2 ── */
.card-spotlight-v2 {
  position: relative;
  overflow: hidden;
}

.card-spotlight-v2::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(var(--spot-x, -200px), var(--spot-y, -200px));
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 1;
}

.card-spotlight-v2:hover::after {
  opacity: 1;
}

/* ── 45. RESPONSIVE ULTRA PREMIUM ADJUSTMENTS ── */
@media (max-width: 768px) {
  .hscroll-panel {
    min-width: 85vw;
  }

  .kinetic-text {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .marquee-item {
    font-size: 1.5rem;
  }

  .glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .snap-container {
    scroll-snap-type: none;
  }

  .stagger-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hscroll-panel {
    min-width: 90vw;
    height: 60vh;
  }

  .kinetic-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
  }

  .marquee-item {
    font-size: 1.25rem;
    padding: 0 1rem;
  }

  .stagger-grid {
    gap: 1rem;
  }

  .glass-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ── 46. OVERRIDE LEGACY data-scroll SYSTEM ── */
/* core.css sets [data-scroll]{opacity:0}. When GSAP is active (pro-engine loaded),
   GSAP handles ALL scroll reveals, so we disable the CSS-based hiding.
   The .gsap-ready class is added by pro-engine.js after successful boot. */
.gsap-ready [data-scroll] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Also handle the hero immediately — even before GSAP boots */
.hero [data-scroll],
.hero .hero-card[data-scroll] {
  opacity: 1;
  transform: none;
}

/* ── 47. GLOBAL VISIBILITY SAFETY NET ── */
/* After 5s, if GSAP hasn't booted, nuke all hidden states */
@keyframes forceReveal {
  to { opacity: 1; transform: none; }
}

