/* ═══════════════════════════════════════════
   UNIVERSITY PARTNERS — Image Reveal on Hover
   ═══════════════════════════════════════════ */

.image-reveal-section {
  position: relative;
  padding-block: var(--section-gap);
  overflow: hidden;
}

.image-reveal-section__header {
  text-align: center;
  padding-inline: var(--section-padding-x);
  margin-bottom: var(--space-12);
}

.image-reveal-section__label {
  display: block;
  margin-bottom: var(--space-4);
}

.image-reveal-section__title {
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
}

.image-reveal-section__subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* ── Reveal Container ── */
.image-reveal {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--section-padding-x);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Each Row ── */
.image-reveal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}

.image-reveal__row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.image-reveal__row:hover::after,
.image-reveal__row.is-focused::after {
  width: 100%;
}

/* ── Row: Number ── */
.image-reveal__num {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
  min-width: 40px;
  transition: color var(--duration-fast) var(--ease-out);
}

.image-reveal__row:hover .image-reveal__num {
  color: var(--color-accent);
}

/* ── Row: University Name ── */
.image-reveal__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: var(--color-text-primary);
  flex: 1;
  padding-left: var(--space-6);
  transition: color var(--duration-normal) var(--ease-out);
  line-height: 1.1;
}

.image-reveal__row:hover .image-reveal__name {
  color: var(--color-text-secondary);
  mix-blend-mode: difference;
}

.image-reveal__row.is-focused .image-reveal__name {
  color: var(--color-text-secondary);
}

/* ── Row: Arrow ── */
.image-reveal__arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.image-reveal__row:hover .image-reveal__arrow {
  background: var(--color-accent-surface);
  color: var(--color-accent);
  transform: rotate(-45deg);
}

.image-reveal__arrow svg {
  width: 20px;
  height: 20px;
}

/* ── Floating Image (follows cursor) ── */
.image-reveal__float {
  position: fixed;
  z-index: 30;
  width: 420px;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  will-change: left, top;
}

.image-reveal__float.is-visible {
  opacity: 1;
  transform: scale(1);
}

.image-reveal__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Mobile: Show inline images ── */
.image-reveal__mobile-img {
  display: none;
}

@media (max-width: 768px) {
  .image-reveal__float {
    display: none;
  }
  .image-reveal__mobile-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
  }
  .image-reveal__row {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-4) 0;
  }
  .image-reveal__name {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    padding-left: var(--space-3);
  }
  .image-reveal__arrow {
    display: none;
  }
}
