/* ============================================================
   STC VISUAL KIT v2 — MOTION & ADVANCED
   Custom cursor · Page loader · Split-text reveal · Hover distort
   Brand: red #DC3232, ink #0A0A0A. Reduced-motion safe throughout.
   ============================================================ */

/* ============== LOGO WALL (Press & Partners) ============== */
.stc-logo-wall {
  position: relative;
  padding: 80px 0 60px;
}
.stc-logo-wall-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(243,238,228,0.5);
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 700;
}
.stc-logo-wall-label::before {
  content: "";
  width: 36px; height: 1px;
  background: #DC3232;
}
.stc-logo-wall-grid {
  display: grid;
  /* 16 logos → 4 cols × 4 rows fills cleanly with no empty cells. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(243,238,228,0.07);
  border: 1px solid rgba(243,238,228,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.stc-logo-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 22px;
  background: #0A0A0A;
  min-height: 110px;
  position: relative;
  transition: background 350ms ease;
  overflow: hidden;
}
.stc-logo-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(220,50,50,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 350ms ease;
}
.stc-logo-tile:hover { background: rgba(220,50,50,0.04); }
.stc-logo-tile:hover::before { opacity: 1; }
.stc-logo-tile svg,
.stc-logo-tile img {
  position: relative;
  max-width: 100%;
  max-height: 36px;
  width: auto;
  color: rgba(243,238,228,0.55);
  fill: currentColor;
  transition: color 350ms ease, transform 350ms cubic-bezier(0.2,0.7,0.2,1);
  z-index: 1;
}
.stc-logo-tile:hover svg,
.stc-logo-tile:hover img {
  color: #F3EEE4;
  transform: scale(1.05);
}
@media (max-width: 1100px) {
  .stc-logo-wall-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .stc-logo-wall-grid { grid-template-columns: repeat(3, 1fr); }
  .stc-logo-tile { min-height: 80px; padding: 22px 14px; }
  .stc-logo-tile svg, .stc-logo-tile img { max-height: 26px; }
}

/* ============== CUSTOM CURSOR ============== */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"], .stc-shimmer, [data-cursor] { cursor: none; }
}
.stc-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #DC3232;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  transition: width 250ms cubic-bezier(0.2,0.7,0.2,1),
              height 250ms cubic-bezier(0.2,0.7,0.2,1),
              background 200ms ease, opacity 200ms ease;
  z-index: 9999;
}
.stc-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(243,238,228,0.55);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: width 350ms cubic-bezier(0.2,0.7,0.2,1),
              height 350ms cubic-bezier(0.2,0.7,0.2,1),
              border-color 250ms ease, opacity 250ms ease;
  z-index: 9998;
  mix-blend-mode: difference;
}
.stc-cursor.is-hover { width: 6px; height: 6px; }
.stc-cursor-ring.is-hover { width: 80px; height: 80px; border-color: #DC3232; }
.stc-cursor.is-text { width: 2px; height: 22px; border-radius: 2px; }
.stc-cursor-ring.is-text { width: 4px; height: 30px; border-radius: 2px; opacity: 0; }
.stc-cursor.is-down { width: 10px; height: 10px; }
.stc-cursor-ring.is-down { width: 28px; height: 28px; border-color: #DC3232; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .stc-cursor, .stc-cursor-ring { display: none; }
  body { cursor: auto; }
  a, button, [role="button"], .stc-shimmer, [data-cursor] { cursor: pointer; }
}

/* ============== PAGE LOADER + CURTAIN ============== */
.stc-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #0A0A0A;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transform: translateY(0%);
  transition: transform 1100ms cubic-bezier(0.76, 0, 0.24, 1);
}
.stc-loader.is-out { transform: translateY(-100%); }
.stc-loader-inner {
  display: flex; align-items: baseline; gap: 18px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.18em;
  color: #F3EEE4;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-transform: uppercase;
}
.stc-loader-mark {
  display: inline-block;
  width: 14px; height: 14px;
  background: #DC3232;
  border-radius: 50%;
  animation: stc-loader-pulse 1.2s ease-in-out infinite;
}
.stc-loader-counter {
  font-family: "Bebas Neue", sans-serif;
  color: #DC3232;
  letter-spacing: 0.1em;
  margin-left: 18px;
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}
@keyframes stc-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.55); opacity: 0.6; }
}
.stc-loader-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: #DC3232;
  width: 0%;
  transition: width 200ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .stc-loader { transition: opacity 200ms ease; }
  .stc-loader.is-out { transform: none; opacity: 0; pointer-events: none; }
  .stc-loader-mark { animation: none; }
}

/* ============== SPLIT-TEXT REVEAL ============== */
[data-split-text],
.stc-split {
  display: inline-block !important;
  overflow: hidden;
  vertical-align: top;
}
.stc-split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}
.stc-split-word {
  display: inline-block !important;
  vertical-align: top;
}
.stc-split-char {
  display: inline-block !important;
  transform: translateY(102%);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 600ms ease;
  will-change: transform, opacity;
}
.stc-split.is-in .stc-split-char,
[data-split-text].is-in .stc-split-char {
  transform: translateY(0%);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .stc-split-char { transform: none; opacity: 1; transition: none; }
}

/* ============== HOVER DISTORT IMAGE PREVIEW ==============
   Wrap an anchor with [data-preview] and put <img class="stc-preview" src=...>
   inside (or sibling). The image lifts and follows cursor on hover. */
.stc-preview {
  position: fixed;
  pointer-events: none;
  width: 360px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92) rotate(-2deg);
  transition: opacity 220ms ease,
              transform 240ms cubic-bezier(0.2,0.7,0.2,1);
  z-index: 9000;
  box-shadow: 0 30px 80px -20px rgba(220,50,50,0.4);
  filter: saturate(1.2) contrast(1.05);
}
[data-preview]:hover ~ .stc-preview-layer .stc-preview,
[data-preview].is-active ~ .stc-preview-layer .stc-preview {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg);
}

/* ============== SCROLL VELOCITY SKEW ============== */
.stc-velocity { transition: transform 300ms cubic-bezier(0.2,0.7,0.2,1); will-change: transform; }

/* ============== TILT CARD ============== */
.stc-tilt { transform-style: preserve-3d; transition: transform 400ms cubic-bezier(0.2,0.7,0.2,1); will-change: transform; }
.stc-tilt > * { transform: translateZ(20px); }

/* ============== WEBGL HERO CANVAS ============== */
.stc-webgl-hero {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ============== BIG MARQUEE (premium, awwwards-tier) ============== */
.stc-mega-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(243,238,228,0.08);
  background: rgba(220,50,50,0.04);
  padding: 22px 0;
}
.stc-mega-marquee-track {
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.04em;
  color: #F3EEE4;
  animation: stc-mega-marquee 28s linear infinite;
}
.stc-mega-marquee-track > span {
  display: inline-flex; align-items: center; gap: 64px;
}
.stc-mega-marquee-track > span::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #DC3232;
  margin-inline: 32px;
  flex-shrink: 0;
}
.stc-mega-marquee:hover .stc-mega-marquee-track { animation-play-state: paused; }
@keyframes stc-mega-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .stc-mega-marquee-track { animation: none; }
}

/* ============== ROSTER CARD HOVER SWEEP ============== */
.player-featured {
  position: relative;
  isolation: isolate;
}
.player-featured::after {
  content: "";
  position: absolute;
  top: 0; left: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, #DC3232, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
  z-index: 10;
}
.player-featured:hover::after { transform: scaleX(1); }
.player-featured .player-name {
  background-image: linear-gradient(110deg, #F3EEE4 50%, #DC3232 100%);
  background-size: 200% auto;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 600ms cubic-bezier(0.76, 0, 0.24, 1);
}
.player-featured:hover .player-name { background-position: 0% 50%; }

/* Network + Service + AI cards: subtle hover lift edge */
.network-card, .svc, .ai-card, .cred-card, .lane-card, .feature-card {
  position: relative;
  overflow: hidden;
}
.network-card::before,
.svc::before,
.ai-card::before,
.cred-card::before,
.lane-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(220,50,50,0.10), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
  z-index: 0;
}
.network-card:hover::before,
.svc:hover::before,
.ai-card:hover::before,
.cred-card:hover::before,
.lane-card:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

/* ============== LARGER CTA + ARROW ============== */
.stc-shimmer.stc-shimmer--lg {
  padding: 18px 32px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  gap: 12px;
}
.stc-shimmer-arrow {
  display: inline-flex; align-items: center;
  transition: transform 350ms cubic-bezier(0.76, 0, 0.24, 1);
}
.stc-shimmer:hover .stc-shimmer-arrow {
  transform: translateX(6px);
}
.stc-cta-mega { gap: 16px; margin-top: 8px; }

/* ============== HERO STAT STRIP — BIGGER w/ VERTICAL SEPARATORS ============== */
.hero-stats-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(243,238,228,0.1);
}
.hero-stats-v2 .hero-stat-item {
  padding: 0 24px;
  border-right: 1px solid rgba(243,238,228,0.06);
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-stats-v2 .hero-stat-item:first-child { padding-left: 0; }
.hero-stats-v2 .hero-stat-item:last-child { border-right: none; padding-right: 0; }
.hero-stats-v2 .hero-stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: #F3EEE4;
  line-height: 1;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.hero-stats-v2 .hero-stat-item.is-accent .hero-stat-num {
  color: #DC3232;
  text-shadow: 0 0 30px rgba(220,50,50,0.4);
}
.hero-stats-v2 .hero-stat-label {
  font-size: 0.7rem;
  color: rgba(243,238,228,0.45);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .hero-stats-v2 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-v2 .hero-stat-item { padding: 16px 0; border-right: none; border-bottom: 1px solid rgba(243,238,228,0.06); }
}

/* ============== SECTION INDEX RAIL (sticky left) ============== */
.stc-section-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; gap: 18px;
  pointer-events: auto;
  font-family: "Bebas Neue", sans-serif;
}
.stc-section-rail-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(243,238,228,0.4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 250ms ease, transform 250ms ease;
  position: relative;
}
.stc-section-rail-item::before {
  content: "";
  width: 18px; height: 1px;
  background: rgba(243,238,228,0.25);
  transition: width 350ms cubic-bezier(0.76, 0, 0.24, 1),
              background 250ms ease;
}
.stc-section-rail-item .stc-rail-num {
  color: #DC3232;
  margin-right: 4px;
  opacity: 0.6;
  transition: opacity 250ms ease;
}
.stc-section-rail-item:hover {
  color: #F3EEE4;
  transform: translateX(2px);
}
.stc-section-rail-item:hover::before {
  width: 28px;
  background: #DC3232;
}
.stc-section-rail-item.is-active {
  color: #F3EEE4;
}
.stc-section-rail-item.is-active::before {
  width: 36px;
  background: #DC3232;
  box-shadow: 0 0 10px rgba(220,50,50,0.7);
}
.stc-section-rail-item.is-active .stc-rail-num { opacity: 1; }
@media (max-width: 1280px) { .stc-section-rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .stc-section-rail-item, .stc-section-rail-item::before { transition: none; }
}

/* ============== HERO MOUSE SPOTLIGHT ============== */
.stc-spotlight {
  position: fixed;
  pointer-events: none;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,50,50,0.16) 0%, transparent 65%);
  transform: translate3d(-50%, -50%, 0);
  z-index: 1;
  mix-blend-mode: screen;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 600ms ease;
}
.stc-spotlight.is-active { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .stc-spotlight { display: none; }
}

/* ============== NAV ACTIVE INDICATOR ============== */
.stc-nav-active a[data-section].is-current {
  color: #F3EEE4 !important;
}
.stc-nav-active a[data-section] {
  position: relative;
}
.stc-nav-active a[data-section].is-current::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #DC3232;
  box-shadow: 0 0 10px rgba(220,50,50,0.8);
}

/* ============== SCROLL PROGRESS BAR ============== */
.stc-scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, #DC3232, #FF4A4A);
  z-index: 9997;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(220,50,50,0.6);
  transition: width 80ms linear;
}

/* ============== BRANDED DIVIDER ============== */
.stc-divider {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  margin: 0;
}
.stc-divider::before,
.stc-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,238,228,0.18), transparent);
}
.stc-divider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #DC3232;
  box-shadow: 0 0 12px rgba(220,50,50,0.7);
}

/* ============== MEGA CTA ============== */
.stc-mega-cta {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.stc-mega-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(220,50,50,0.18), transparent 70%);
  z-index: -1;
}
.stc-mega-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; letter-spacing: 0.22em;
  color: #DC3232; font-weight: 700;
  text-transform: uppercase; margin-bottom: 32px;
}
.stc-mega-cta-eyebrow::before,
.stc-mega-cta-eyebrow::after {
  content: ""; width: 36px; height: 1px;
  background: rgba(220,50,50,0.6);
}
.stc-mega-cta-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
  margin: 0 auto 40px;
  max-width: 12ch;
}
.stc-mega-cta-title em {
  font-style: normal;
  color: #DC3232;
  text-shadow: 0 0 80px rgba(220,50,50,0.45);
}
.stc-mega-cta-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(243,238,228,0.7);
  max-width: 50ch;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.stc-mega-cta-row {
  display: inline-flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
}

/* ============== PREMIUM FOOTER ============== */
.stc-footer {
  position: relative;
  padding: 80px 0 50px;
  margin-top: 60px;
  border-top: 1px solid rgba(243,238,228,0.08);
  display: grid;
  gap: 48px;
}
.stc-footer-mark {
  display: flex; flex-direction: column; gap: 8px;
}
.stc-footer-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.06em;
  color: #F3EEE4;
  line-height: 1;
}
.stc-footer-brand span { color: #DC3232; }
.stc-footer-tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(243,238,228,0.5);
  text-transform: uppercase;
}
.stc-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 32px;
  border-block: 1px solid rgba(243,238,228,0.06);
}
.stc-footer-col {
  display: flex; flex-direction: column; gap: 12px;
}
.stc-footer-col-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: #DC3232;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stc-footer-col a {
  font-size: 0.92rem;
  color: rgba(243,238,228,0.78);
  text-decoration: none;
  position: relative;
  width: fit-content;
  transition: color 200ms ease;
}
.stc-footer-col a:hover { color: #F3EEE4; }
.stc-footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: #DC3232;
  transform-origin: right center; transform: scaleX(0);
  transition: transform 350ms cubic-bezier(0.76, 0, 0.24, 1);
}
.stc-footer-col a:hover::after { transform-origin: left center; transform: scaleX(1); }
.stc-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
  color: rgba(243,238,228,0.45);
  letter-spacing: 0.05em;
}
.stc-footer-bottom :last-child {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: #DC3232;
}
@media (max-width: 720px) {
  .stc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stc-footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============== LINK UNDERLINE SWEEP ============== */
.stc-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.stc-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: #DC3232;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 450ms cubic-bezier(0.76, 0, 0.24, 1);
}
.stc-link:hover::after { transform-origin: left center; transform: scaleX(1); }
