/* ==========================================================================
   SCENE 4: SKILLS — CINEMATIC HORIZONTAL MARQUEE STRIPS
   Creative Direction: Monumental Aeonik typography drifting left on scroll
   White canvas · numbered editorial items · hairline separators
   ========================================================================== */

/* ── Section Container ──────────────────────────────────────────────────── */

.skills-marquee-section {
  position: relative;
  background-color: #FFFFFF;
  overflow: hidden;
  /* No fixed height — natural content height, user scrolls through freely */
  padding-top: clamp(64px, 10vh, 120px);
  padding-bottom: clamp(64px, 10vh, 120px);
  /* Isolate stacking context so overflow clips cleanly */
  isolation: isolate;
}

/* ── Section Label (top-left editorial tag) ─────────────────────────────── */

.skills-section-label {
  position: absolute;
  top: clamp(22px, 3.5vh, 40px);
  left: clamp(24px, 4vw, 60px);
  font-family: 'Aeonik Medium', 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #5A5A66;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
}

/* ── Bottom-right crosshair ─────────────────────────────────────────────── */

.skills-corner-mark {
  position: absolute;
  bottom: clamp(22px, 3.5vh, 40px);
  right: clamp(24px, 4vw, 60px);
  font-family: 'Aeonik Medium', sans-serif;
  font-size: 1.4rem;
  color: #C0C0C8;
  font-weight: 300;
  line-height: 1;
  z-index: 4;
  pointer-events: none;
}

/* ── Hairline separators between rows ───────────────────────────────────── */

.skills-hairline {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 3;
}

/* ── Single Strip Row ───────────────────────────────────────────────────── */

.skills-strip {
  position: relative;
  overflow: hidden;
  /* Clip overflow so text flows cleanly off both edges */
  width: 100%;
  padding: clamp(18px, 3.5vh, 36px) 0;
}

/* The translating track — GSAP moves this element on X */
.skills-strip-track {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  /* Start each row offset so they feel staggered left-to-right */
  will-change: transform;
  /* Row-specific starting offsets create natural stagger feel */
}

/* Row 1 starts slightly further right */
.skills-strip--row1 .skills-strip-track {
  transform: translateX(0);
}

/* Row 2 starts slightly more right for depth */
.skills-strip--row2 .skills-strip-track {
  transform: translateX(8vw);
}

/* Row 3 starts slightly less offset */
.skills-strip--row3 .skills-strip-track {
  transform: translateX(-4vw);
}

/* ── Individual Skill Item ──────────────────────────────────────────────── */

.skill-item {
  font-family: 'Aeonik Black', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0A0A0C;
  text-transform: none;
  position: relative;
  display: inline-block;
  padding: 0 clamp(12px, 1.6vw, 28px);
  cursor: default;
  transition: color 0.28s ease;
}

/* Superscript index number anchored top-left */
.skill-index {
  font-family: 'Aeonik Medium', 'JetBrains Mono', monospace;
  font-size: 0.6em;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  color: #A8A8B2;
  letter-spacing: 0.01em;
  vertical-align: super;
  margin-right: 3px;
  /* Exact reference: small grey superscript anchored top-left of each word */
  position: relative;
  top: -0.1em;
}

/* Hover: skill name shifts to accent (optional) */
.skill-item:hover {
  color: #FE3C01;
}

.skill-item:hover .skill-index {
  color: rgba(254, 60, 1, 0.55);
}

/* ── Editorial Dash Separator ───────────────────────────────────────────── */

.skill-sep {
  font-family: 'Aeonik Medium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  font-weight: 300;
  color: #C8C8D0;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
  padding: 0 clamp(8px, 1.2vw, 20px);
  user-select: none;
}

/* ── Smooth white-to-white background (managed by GSAP) ─────────────────── */
/* The bg transition from dark (#work) to white (#skills) is driven
   purely by a ScrollTrigger scrub in animations.js — no CSS needed here */

/* ── Reduced Motion: disable translate ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .skills-strip-track {
    transform: none !important;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .skill-item {
    font-size: clamp(2.2rem, 10vw, 4.2rem);
    padding: 0 clamp(8px, 2vw, 16px);
  }

  .skill-sep {
    font-size: clamp(2rem, 8vw, 3.6rem);
    padding: 0 clamp(6px, 1.5vw, 12px);
  }

  .skills-strip--row2 .skills-strip-track {
    transform: translateX(5vw);
  }

  .skills-strip--row3 .skills-strip-track {
    transform: translateX(-2vw);
  }
}
