/* ===========================================================
   Motion library — OCS-inspired effects in NP palette
   Word-by-word reveal, sticky sections, parallax, cursor blob
   =========================================================== */

/* ---------- WORD REVEAL ---------- */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2,.65,.25,1),
              transform .9s cubic-bezier(.2,.65,.25,1),
              filter .9s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--d, 0ms);
  white-space: pre;
}
.reveal-words.in .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* fade-up generic */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.65,.25,1), transform 1s cubic-bezier(.2,.65,.25,1); transition-delay: var(--d, 0ms); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* mask-reveal — element wipes in from bottom */
.mask-reveal { overflow: hidden; }
.mask-reveal > .mask-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--d, 0ms);
}
.mask-reveal.in > .mask-inner { transform: translateY(0); }

/* underline draw */
.line-grow {
  position: relative;
  overflow: hidden;
}
.line-grow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--ink-15);
  transition: width 1.6s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--d, 0ms);
}
.line-grow.in::after { width: 100%; }

/* ---------- STICKY 2-COL ---------- */
.sticky-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: flex-start;
}
.sticky-col {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}
@media (max-width: 880px) {
  .sticky-row { grid-template-columns: 1fr; gap: 40px; }
  .sticky-col { position: static; }
}

/* ---------- SECTION TAG (rotated label) ---------- */
.section-tag {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--ink-15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 28px;
}
.section-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182,211,51,0.18);
}

/* ---------- BIG STAT (OCS huge numbers) ---------- */
.big-stat .num {
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  background: linear-gradient(180deg, var(--white) 30%, var(--lime) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.big-stat .lab {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-70);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.4;
}

/* ---------- CURSOR BLOB ---------- */
.cursor-blob {
  position: fixed; top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--lime);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  filter: blur(20px);
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, opacity .25s;
  z-index: 200;
  will-change: transform, width, height;
}
.cursor-blob.lg {
  width: 220px; height: 220px;
  opacity: 0.35;
}
.cursor-blob.nav-sm {
  width: 80px; height: 80px;
  opacity: 0.28;
}
@media (max-width: 880px), (pointer: coarse) {
  .cursor-blob { display: none; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
  padding: 28px 0;
  background: var(--navy-900);
}
.marquee-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-15);
}
.marquee-item .dot { color: var(--lime); margin: 0 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- PARALLAX ---------- */
.parallax { transition: transform 0.1s linear; will-change: transform; }

/* ---------- HUGE HEADING with overflow-clip ---------- */
.hero-stack { display: flex; flex-direction: column; gap: 8px; }
.hero-stack .line { overflow: hidden; line-height: 1; padding: 0.04em 0; }

/* ---------- HOVER LIFT cards ---------- */
.tilt {
  transition: transform .5s cubic-bezier(.2,.65,.25,1), border-color .35s, box-shadow .35s;
}
.tilt:hover {
  transform: translateY(-6px);
  border-color: var(--ink-30) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* ---------- INDEX RAIL (left side numbered nav) ---------- */
.rail {
  position: fixed;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex; flex-direction: column;
  gap: 14px;
}
.rail a {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-30);
  transition: color .3s;
}
.rail a::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
  transition: width .3s;
}
.rail a.active { color: var(--lime); }
.rail a.active::before { width: 36px; }
.rail a:hover { color: var(--white); }
@media (max-width: 1280px) { .rail { display: none; } }
