/* ============================================
   WORKS PAGE — Immersive Hover List Portfolio
   ============================================ */

/* ── Reset for this page ── */
.works-wrapper {
  position: relative;
  z-index: 2;
  color: #000;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  padding-bottom: 0;
}

/* ── PAGE TRANSITION ── */
.page-transition {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--yellow); z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  pointer-events: none;
}
.transition-text {
  font-family: 'Bangers', cursive;
  font-size: clamp(60px, 12vw, 150px); color: #000;
  letter-spacing: 4px; overflow: hidden; display: flex;
}

/* ── SplitType Utility ── */
.line-wrapper { overflow: hidden; padding-bottom: 5px; }
.split-text { visibility: hidden; }

/* ── CURSOR FOLLOWER IMAGE ── */
.hover-image-follower {
  position: fixed; top: 0; left: 0;
  width: 400px; height: 500px;
  pointer-events: none;
  z-index: 10;
  opacity: 0; /* Hidden by default */
  transform: translate(-50%, -50%); /* Center on cursor */
  will-change: transform, opacity;
  overflow: hidden;
  border-radius: 12px;
}

.follower-inner {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}

.follower-inner img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
  transform: scale(1.1); /* Slight zoom for reveal */
  will-change: transform;
}

/* ── MINIMAL HERO ── */
.works-hero {
  padding: 180px 4vw 80px;
  max-width: 1600px; margin: 0 auto;
}

.hero-top {
  display: flex; justify-content: space-between;
  margin-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 20px;
}

.hero-label {
  font-size: 14px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: #555;
}

.massive-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85; color: #000; letter-spacing: 2px;
  margin: 0; text-transform: uppercase;
}

/* ── IMMERSIVE HOVER LIST ── */
.immersive-list-section {
  padding: 0 4vw 120px;
  max-width: 1600px; margin: 0 auto;
  position: relative; z-index: 2; /* Below the cursor follower */
}

.list-container {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 50px 0; border-bottom: 1px solid rgba(0,0,0,0.1);
  text-decoration: none; color: #000;
  transition: padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.list-item:hover {
  padding: 50px 2vw; /* Indent on hover */
}

.item-meta {
  flex: 0 0 200px; display: flex; flex-direction: column; gap: 8px;
}

.item-num {
  font-family: 'Bangers', cursive; font-size: 24px; color: #999;
}

.item-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #555;
}

.item-name {
  flex: 1; font-family: 'Bangers', cursive;
  font-size: clamp(48px, 8vw, 120px); line-height: 1;
  margin: 0; letter-spacing: 1px;
  transition: color 0.3s;
}

.list-item:hover .item-name {
  color: var(--yellow); /* Standard yellow accent on hover */
  -webkit-text-stroke: 1px #000; /* Keeps it legible against light bg */
}

.item-year {
  font-size: 16px; font-weight: 600; color: #999;
}

/* Fade out non-hovered items slightly */
.list-container:hover .list-item:not(:hover) {
  opacity: 0.3;
}

/* ── SECONDARY LIST (Roster) ── */
.secondary-list-section {
  padding: 100px 4vw; background: #fff;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.secondary-header {
  margin-bottom: 80px; max-width: 600px;
}

.secondary-header h3 {
  font-family: 'Bangers', cursive; font-size: clamp(40px, 6vw, 80px);
  line-height: 0.9; margin-bottom: 20px;
}

.secondary-header p {
  font-size: 18px; color: #666; line-height: 1.6;
}

.roster-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.roster-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-decoration: none;
  color: #000;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
}

.header-row {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #999;
  padding: 10px 0 20px;
  border-bottom: 2px solid #000;
  pointer-events: none;
}

.roster-row:not(.header-row):hover {
  background: var(--yellow);
  padding: 30px 20px;
  border-bottom-color: #000;
}

.col-client {
  flex: 0 0 45%;
  font-family: 'Bangers', cursive;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 1px;
}

.header-row .col-client {
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 3px;
}

.col-role {
  flex: 0 0 35%;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: #555;
  transition: color 0.3s;
}

.roster-row:hover .col-role { color: #000; }

.col-link {
  flex: 0 0 20%;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #aaa;
  transition: color 0.3s;
}

.roster-row:hover .col-link { color: #000; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hover-image-follower { display: none; } /* Disable custom cursor on mobile */
  
  .list-item {
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 30px 0;
  }
  .item-meta { flex: none; flex-direction: row; align-items: center; width: 100%; }
  .list-item:hover { padding: 30px 0; } /* Remove indent on mobile */
  .list-container:hover .list-item:not(:hover) { opacity: 1; }
  
  .secondary-header { margin-bottom: 40px; }
}
