/* =========================================================
   effects.css — atmospheric layers, hero, scroll fx, reveals
   theme: black & yellow
   ========================================================= */

/* =========================================================
   ATMOSPHERIC LAYERS
   ========================================================= */

/* layer 0: subtle grid */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right,  rgba(245, 197, 24, 0.030) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 197, 24, 0.030) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image:        radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

/* layer 1: drifting yellow glow orbs */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.42), transparent 65%);
  top: -200px; left: -160px;
  opacity: 0.6;
  animation: drift1 22s ease-in-out infinite;
}
.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 159, 28, 0.30), transparent 65%);
  top: 220px; right: -180px;
  opacity: 0.55;
  animation: drift2 28s ease-in-out infinite;
}
.orb-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.22), transparent 70%);
  bottom: -300px; left: 28%;
  opacity: 0.5;
  animation: drift3 34s ease-in-out infinite;
}
.orb-4 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184, 152, 18, 0.30), transparent 65%);
  top: 38%; right: 22%;
  opacity: 0.4;
  animation: drift4 26s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 80px) scale(1.10); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, 100px) scale(1.15); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-100px, -60px) scale(1.05); }
  66%      { transform: translate(80px, -40px) scale(0.90); }
}
@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -60px) scale(1.20); }
}

/* layer 2: particle canvas (color set in JS to yellow) */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* layer 3: cursor spotlight */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle 380px at var(--mx) var(--my),
    rgba(245, 197, 24, 0.10),
    transparent 70%
  );
}

/* layer 4: vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(8, 8, 10, 0.70) 100%);
}

/* layer 5: subtle noise */
.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter>\
<rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* scroll progress bar */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 99;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-bright));
  box-shadow: 0 0 12px var(--yellow-glow);
  transition: width 0.06s linear;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* hero scan-line sweep on first load */
.hero::before {
  content: '';
  position: absolute;
  top: 70px;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--yellow),
    var(--yellow-bright),
    var(--yellow),
    transparent
  );
  opacity: 0;
  box-shadow: 0 0 18px var(--yellow-glow), 0 0 36px var(--yellow-glow);
  animation: scan-sweep 4.5s ease-out 0.5s;
  pointer-events: none;
}
@keyframes scan-sweep {
  0%   { opacity: 0; transform: translateY(0); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(620px); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(245, 197, 24, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.10);
}
.hero-eyebrow .badge {
  background: var(--yellow);
  color: #15110A;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 14px var(--yellow-glow);
}

.hero-title { margin-bottom: 26px; }
.hero-sub   { max-width: 520px; margin-bottom: 36px; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 38px;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-foot .sep {
  width: 4px; height: 4px;
  background: var(--ink-3);
  border-radius: 50%;
  opacity: 0.5;
}

/* hero visual wrapper */
.hero-visual { position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, rgba(245, 197, 24, 0.20), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  animation: stack-glow 6s ease-in-out infinite;
}
@keyframes stack-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

/* =========================================================
   COUNTER ROLLING NUMBERS
   ========================================================= */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.counter.flash {
  animation: counter-flash 0.5s ease-out;
}
@keyframes counter-flash {
  0%   { color: var(--yellow); text-shadow: 0 0 12px var(--yellow-glow); }
  100% { color: inherit;       text-shadow: none; }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* =========================================================
   SECTION-LEVEL DECORATIONS
   ========================================================= */
.section-mark {
  position: absolute;
  top: 32px;
  right: var(--gut);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.section-mark::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--yellow);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--yellow-glow);
}

/* small "live" telemetry tile used in hero stats */
.telemetry {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.7), rgba(10, 10, 14, 0.85));
  backdrop-filter: blur(8px);
  min-width: 150px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.telemetry:hover {
  border-color: var(--yellow-line);
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.12);
}
.telemetry .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.telemetry .value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.telemetry .value .ldot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: ldot-pulse 2.4s infinite;
}

.telem-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
