
/* ==========================================================
   Requirement 3: Moving pictures at the top (hero)
   - Desktop: 3 columns of photos that drift at different
     speeds as you scroll (parallax) + slow zoom on each photo
   - Phones: a strip of photos that scrolls by on its own
   ========================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 0;
}

/* soft green glow in the background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 55% at 85% 20%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(var(--accent-rgb), 0.08), transparent 70%);
  pointer-events: none;
}

/* big faint Neurion mark in the background */
.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 50%;
  width: min(70vw, 820px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("../img/logo/mark-light.svg") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

/* Event pill above the headline */
.hero-event {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  animation: hero-fade 0.8s 0.1s ease forwards;
  transition: border-color 0.2s ease;
}
.hero-event:hover { border-color: var(--accent); }
.hero-event-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
  animation: hero-pulse 2s infinite;
}
@keyframes hero-pulse {
  70% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Text side ---------- */
@font-face {
  font-family: "Neurion Display";
  src: local("Helvetica Neue Black"), local("HelveticaNeue-Black"), local("Arial Black");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
.hero-title {
  font-family: "Neurion Display", "Arial Black", Helvetica, Arial, sans-serif;
  font-size: clamp(2.3rem, 5.4vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.07em 0.04em 0.07em 0; }
/* extra room under the last line so the swoosh isn't cut off */
.hero-title .line:last-child { padding-bottom: 0.12em; margin-top: 0.12em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }

.hero-highlight {
  position: relative;
  color: var(--bg);
  background: var(--accent);
  padding: 0.06em 0.16em 0.12em 0.1em;
  letter-spacing: inherit;
}
.hero-context {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-title .hero-swoosh { display: none; }
.hero-copy { min-width: 0; }
/* green swoosh arrow that draws itself under "by students." */
.hero-swoosh {
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.hero-swoosh path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-draw 1.1s 0.9s ease-out forwards;
}

.hero-lead {
  max-width: 46ch;
  margin: 2rem 0 2.25rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  opacity: 0;
  animation: hero-fade 0.8s 0.5s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: hero-fade 0.8s 0.65s ease forwards;
}

/* ---------- Photo columns (desktop) ---------- */
.hero-gallery {
  height: min(78vh, 720px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  /* fade the photos out at the top and bottom edges */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.hero-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}
.hero-col:nth-child(2) { margin-top: -4rem; }
.hero-col:nth-child(3) { margin-top: 3rem; }

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: hero-photo-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 14s ease-in-out infinite alternate;
}
.hero-photo:nth-child(2) img { animation-delay: -7s; }

/* stagger the photos appearing */
.hero-col:nth-child(1) .hero-photo:nth-child(1) { animation-delay: 0.3s; }
.hero-col:nth-child(2) .hero-photo:nth-child(1) { animation-delay: 0.45s; }
.hero-col:nth-child(3) .hero-photo:nth-child(1) { animation-delay: 0.6s; }
.hero-col:nth-child(1) .hero-photo:nth-child(2) { animation-delay: 0.5s; }
.hero-col:nth-child(2) .hero-photo:nth-child(2) { animation-delay: 0.65s; }
.hero-col:nth-child(3) .hero-photo:nth-child(2) { animation-delay: 0.8s; }

/* ---------- Scrolling strip (phones) ---------- */
.hero-strip { display: none; }

/* ---------- Scroll hint ---------- */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--text-muted);
  border-radius: 999px;
  opacity: 0.7;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: hero-scroll 1.8s ease-in-out infinite;
}

/* ---------- Animations ---------- */
@keyframes hero-rise { to { transform: translateY(0); } }
@keyframes hero-fade { to { opacity: 1; } }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-photo-in { to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes hero-scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hero-marquee { to { transform: translateX(-50%); } }

/* ---------- Tablets & phones ---------- */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(1.65rem, 8.4vw, 5.2rem); }
  .hero { min-height: auto; padding: 3.5rem 0 4rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-gallery { display: none; }
  .hero-scroll { display: none; }

  .hero-strip {
    display: block;
    margin-top: 3rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .hero-strip-track {
    display: flex;
    gap: 0.85rem;
    width: max-content;
    animation: hero-marquee 40s linear infinite;
  }
  .hero-strip-track img {
    width: 180px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span,
  .hero-event,
  .hero-lead,
  .hero-actions,
  .hero-photo { opacity: 1; transform: none; animation: none; }
  .hero-swoosh path { stroke-dashoffset: 0; animation: none; }
  .hero-photo img,
  .hero-strip-track { animation: none; }
}
