/* ═══════════════════════════════════════════════════════════════════
   AWARD.CSS — Premium Animation & Motion Layer for SSAI v1
   Loaded after main.css — all rules are additive overrides only
═══════════════════════════════════════════════════════════════════ */

/* ── Custom Cursor — removed, using standard system cursor ──────── */

/* ── Page Loader ────────────────────────────────────────────────── */
#aw-loader {
  position: fixed;
  inset: 0;
  background: #03030A;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-loader-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.86) translateY(6px);
}
.aw-loader-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, rgba(99,102,241,0) 70%);
  animation: aw-loader-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aw-loader-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 0.9; }
}
.aw-loader-img {
  position: relative;
  width: clamp(140px, 18vw, 200px);
  height: auto;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .aw-loader-glow { animation: none; }
}

/* ── Film Grain / Noise ─────────────────────────────────────────── */
#aw-noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: aw-grain-shift 0.12s steps(1) infinite;
}
@keyframes aw-grain-shift {
  0%   { background-position: 0 0; }
  25%  { background-position: -50px -25px; }
  50%  { background-position: -100px 0px; }
  75%  { background-position: -50px 50px; }
  100% { background-position: 0 0; }
}

/* ── Hero Copy ──────────────────────────────────────────────────── */
#hero { overflow: hidden; }

/* Ensure hero UI controls stay above the copy overlay */
.hero-counter, .hero-dots, .hero-cue, .hero-corner {
  z-index: 16 !important;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--px) 140px;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }

.hero-eyebrow-row {
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-eyebrow-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transform: translateY(100%);
  opacity: 0;
}
.hce-line {
  width: 32px; height: 1px;
  background: #6366F1;
  flex-shrink: 0;
}
.hce-dot-animated {
  width: 5px; height: 5px;
  background: #22D3EE;
  border-radius: 50%;
  flex-shrink: 0;
  animation: aw-blink 2.2s ease-in-out infinite;
}
@keyframes aw-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 28px;
}
.hw {
  display: block;
  overflow: hidden;
}
.hw-inner {
  display: block;
  transform: translateY(105%);
  opacity: 0;
}
.hw-accent .hw-inner {
  background: linear-gradient(110deg, #818CF8 0%, #22D3EE 45%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: aw-grad-shift 4s linear infinite;
}
@keyframes aw-grad-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 0 36px;
  transform: translateY(20px);
  opacity: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transform: translateY(20px);
  opacity: 0;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #6366F1;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.22s, box-shadow 0.22s, transform 0.22s;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.hero-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  border-radius: inherit;
}
.hero-btn-primary:hover {
  background: #818CF8;
  box-shadow: 0 0 36px rgba(99,102,241,0.5);
}
.hero-btn-primary svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.22s ease;
}
.hero-btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.26);
  color: #fff;
}

.hero-mini-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  transform: translateY(20px);
  opacity: 0;
  flex-wrap: wrap;
}
.hms-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hms-val {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hms-lbl {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hms-div {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── Hero background orbs ───────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
.hero-orb-1 {
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: rgba(99,102,241,0.14);
  top: -15%; left: -10%;
  animation: aw-orb-drift 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 40vw; height: 40vw;
  max-width: 480px; max-height: 480px;
  background: rgba(34,211,238,0.09);
  bottom: -10%; right: 15%;
  animation: aw-orb-drift 9s ease-in-out infinite reverse;
  animation-delay: -3s;
}
@keyframes aw-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -28px) scale(1.04); }
  66% { transform: translate(-12px, 16px) scale(0.97); }
}

/* ── Kinetic Ticker ─────────────────────────────────────────────── */
#aw-ticker {
  overflow: hidden;
  padding: 16px 0;
  background: rgba(99,102,241,0.06);
  border-top: 1px solid rgba(99,102,241,0.12);
  border-bottom: 1px solid rgba(99,102,241,0.12);
  position: relative;
  z-index: 5;
}
#aw-ticker::before,
#aw-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
#aw-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg, #03030A), transparent);
}
#aw-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg, #03030A), transparent);
}
.aw-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}
.aw-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 40px;
}
.aw-ticker-item .tdot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #6366F1;
  margin-left: 40px;
}

/* ── GSAP scroll reveals (used instead of .reveal for new elements) */
[data-awr] {
  opacity: 0;
  transform: translateY(28px);
}
[data-awr="up"] {
  opacity: 0;
  transform: translateY(36px);
}
[data-awr="left"] {
  opacity: 0;
  transform: translateX(-36px);
}
[data-awr="right"] {
  opacity: 0;
  transform: translateX(36px);
}
[data-awr="scale"] {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
}

/* ── Highlight decoration for key words ─────────────────────────── */
.aw-hi {
  position: relative;
  display: inline-block;
}
.aw-hi::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  right: 0; height: 6px;
  background: linear-gradient(90deg, #6366F1 0%, #22D3EE 100%);
  opacity: 0.28;
  border-radius: 3px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
}
.aw-hi.visible::after {
  transform: scaleX(1);
}

/* ── Service cards ──────────────────────────────────────────────── */
#services .srv-card {
  will-change: transform;
}

/* ── CTA glow orb ───────────────────────────────────────────────── */
#cta { position: relative; overflow: hidden; }
.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.09) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: aw-cta-pulse 6s ease-in-out infinite;
}
@keyframes aw-cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
#cta .cta-inner { position: relative; z-index: 1; }

/* ── Product card bar animated fill ────────────────────────────── */
.prod-bar { transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.prod-card:hover .prod-bar { transform: scaleX(1) !important; }

/* ── Process section line draw ──────────────────────────────────── */
#process { position: relative; }

/* ── Footer enhanced appearance ─────────────────────────────────── */
#site-footer .ftr-logo {
  position: relative;
  display: inline-block;
}

/* ── Scroll progress bar enhanced ───────────────────────────────── */
#sp {
  background: linear-gradient(90deg, #6366F1, #22D3EE, #818CF8) !important;
}

/* ── Transition for everything ──────────────────────────────────── */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
