/* ===================== PREMIUM TEXT PRELOADER ===================== */
.preloader {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,120,12,.08), transparent 60%),
    var(--black);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: clip-path .75s cubic-bezier(.76,0,.24,1), opacity .5s ease .1s;
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; padding: 0 24px; }
.loader-mark { position: relative; overflow: hidden; display: inline-block; }
.loader-letters {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  letter-spacing: .06em;
  color: var(--white);
  position: relative;
}
.loader-letters .lch {
  display: inline-block;
  opacity: 0;
  color: var(--white);
  transform: translateY(60%) rotate(6deg);
  animation: loaderLetterIn .6s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes loaderLetterIn {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}
/* metallic shine sweep — a light band that passes over the mark, independent
   of the letters' own color so it works with the staggered spans above */
.loader-mark::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255,178,122,.85) 45%, rgba(255,255,255,.95) 50%, rgba(255,178,122,.85) 55%, transparent);
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
}
.preloader.shine .loader-mark::after {
  animation: loaderShineSweep 1s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes loaderShineSweep {
  0% { left: -40%; opacity: 1; }
  100% { left: 105%; opacity: 1; }
}
.loader-subtitle {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  animation: loaderFadeUp .7s ease forwards .7s;
}
.loader-line {
  width: 220px;
  max-width: 60vw;
  height: 2px;
  background: rgba(255,255,255,.1);
  margin: 30px auto 0;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeUp .5s ease forwards .9s;
}
.loader-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #ffb27a);
  box-shadow: 0 0 10px rgba(255,120,12,.8);
  transition: width 1.1s cubic-bezier(.65,0,.35,1);
}
.preloader.filling .loader-line-fill { width: 100%; }
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-spark {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  animation: loaderSparkRise linear forwards;
}
@keyframes loaderSparkRise {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx,0), var(--sy,-80px)) scale(0.3); opacity: 0; }
}

/* ===================== PAGE TRANSITION OVERLAY ===================== */
/* Covers the screen by default (renders before paint), then JS slides it
   away on load and slides it back on internal link clicks. */
.page-transition {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 4000;
  transform: translateY(0%);
  transition: transform .65s cubic-bezier(.76,0,.24,1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-transition.is-hidden { transform: translateY(-100%); }
.page-transition-mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px 4px rgba(255,120,12,.6);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .3s ease .15s, transform .3s ease .15s;
}
.page-transition:not(.is-hidden) .page-transition-mark { opacity: 1; transform: scale(1); }

/* ===================== CUSTOM CURSOR ===================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6000;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
}
.cursor-dot { width: 7px; height: 7px; background: var(--orange); transition: opacity .2s ease, transform .15s ease; }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,120,12,0.55);
  transition: width .25s ease, height .25s ease, opacity .2s ease, background .25s ease, border-color .25s ease;
}
.cursor-ring.hovering { width: 62px; height: 62px; background: rgba(255,120,12,0.1); border-color: transparent; }
.cursor-ring.hovering.has-label { width: 74px; height: 74px; }
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-active, body.cursor-active a, body.cursor-active button { cursor: none; }
.cursor-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.cursor-ring.has-label { background: rgba(20,20,15,.88); }
.cursor-ring.has-label .cursor-label { opacity: 1; transform: scale(1); }
@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ===================== SPARK / ASH CLICK PARTICLES ===================== */
.spark-canvas {
  position: fixed; inset: 0;
  z-index: 6500;
  pointer-events: none;
  width: 100vw; height: 100vh;
}

/* ===================== HEADING WOBBLE HOVER ===================== */
@keyframes headingWobble {
  0% { transform: rotate(0deg) translateY(0); }
  22% { transform: rotate(-5deg) translateY(-4px); }
  46% { transform: rotate(4deg) translateY(1px); }
  70% { transform: rotate(-2deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
@media (hover: hover) and (pointer: fine) {
  .wobble-word:hover {
    animation: headingWobble .55s cubic-bezier(.16,1,.3,1);
  }
}
.wobble-word { display: inline-block; }

/* ===================== SKELETON LOADERS ===================== */
.skel-wrap { position: relative; overflow: hidden; background: #1a1a16; }
.skel-wrap img {
  opacity: 0;
  transition: opacity .5s ease;
}
.skel-wrap img.img-loaded { opacity: 1; }
.skel-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #171713 8%, #232320 18%, #171713 33%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  z-index: 1;
}
.skel-wrap.img-loaded::before { display: none; }
@keyframes skelShimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -60% 0; }
}

/* ===================== SPLIT TEXT REVEAL ===================== */
.split-line { overflow: hidden; display: block; }
.split-word {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  opacity: 0;
  transition: transform .85s cubic-bezier(.16,.9,.2,1), opacity .6s ease;
  transition-delay: calc(var(--w-index, 0) * 0.055s);
}
.split-in .split-word { transform: translateY(0) rotate(0deg); opacity: 1; }

/* ===================== MARQUEE ===================== */
.marquee-section {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 26px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 30px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.marquee-item.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
}
.marquee-item .gear {
  color: var(--orange);
  font-size: 1.3rem;
  display: inline-flex;
  animation: gearSpin 6s linear infinite;
}
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gearSpin { to { transform: rotate(360deg); } }

/* ===================== STAT OUTLINE COUNTERS ===================== */
.stat-outline-section { background: var(--black); padding: 100px 0; }
.stat-outline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-outline-item { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 26px; }
.stat-outline-item:first-child { border-left: none; padding-left: 0; }
.stat-outline-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
  transition: color .4s ease;
  display: inline-block;
}
.stat-outline-item:hover .stat-outline-num { color: var(--orange); }
.stat-outline-label {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ===================== TILT CARDS ===================== */
.tilt-card { transform-style: preserve-3d; will-change: transform; transition: transform .15s ease-out, box-shadow .3s ease; }

/* ===================== MAGNETIC BUTTONS ===================== */
.magnetic { will-change: transform; }

/* ===================== IMAGE CLIP REVEAL ===================== */
.clip-reveal { position: relative; overflow: hidden; }
.clip-reveal img { transform: scale(1.15); transition: transform 1.1s cubic-bezier(.16,.8,.24,1); }
.clip-reveal::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform .9s cubic-bezier(.76,0,.24,1);
  z-index: 2;
}
.clip-reveal.in-view::after { transform: scaleX(0); }
.clip-reveal.in-view img { transform: scale(1); }

/* ===================== SCROLL PROGRESS RING (back to top) ===================== */
.back-to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top svg circle {
  fill: none;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 3;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset .1s linear;
}
.back-to-top .arrow-icon { position: relative; z-index: 2; }

@media (max-width: 768px) {
  .stat-outline-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat-outline-item { border-left: none; padding-left: 0; }
}

@media (max-width: 480px) {
  .stat-outline-grid { grid-template-columns: repeat(1, 1fr); gap: 30px 20px; }
  .stat-outline-item { border-left: none; padding-left: 0; }
}
