/* ============================================================
   FLYING PORCUPINES SUMMER LEAGUE — CLASS OF 2026
   styles.css
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --black:       #0A0A0A;
  --ivory:       #FAF8F5;
  --white:       #FFFFFF;
  --crimson:     #8B1A1A;
  --warm-gray:   #6B6560;
  --light-gray:  #E8E4E0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', Arial, sans-serif;

  --container-width: 1100px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivory);
  color: var(--warm-gray);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- Confetti Canvas ---- */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section Scaffold ---- */
.section {
  padding: var(--section-pad) 0;
}

.section--ivory {
  background-color: var(--ivory);
}

.section--white {
  background-color: var(--white);
}

/* ---- Eyebrow / Meta Label ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 1rem;
  text-align: center;
}

/* ---- Section Title ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* ---- Thin Accent Rule ---- */
.accent-rule {
  width: 60px;
  height: 1px;
  background-color: var(--crimson);
  margin: 1.5rem auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/photos/hero-action.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.65);
}

/* Subtle grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 4rem 2rem;
  max-width: 800px;
  width: 100%;
}

.hero-logo {
  width: 500px;
  height: auto;
  margin: 0 auto 2.5rem;
  clip-path: inset(0 0 20px 0);
  /* filter: invert(1) brightness(2); */
}

.hero-institution {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.hero-est {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
}

.hero-rule {
  width: 80px;
  height: 1px;
  background-color: var(--crimson);
  margin: 0 auto 2.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 1.75rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* Hero fade-in animation */
.fade-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.3s forwards;
}

.hero-tagline {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.9s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   DEAN'S MESSAGE
   ============================================================ */
.dean {
  text-align: center;
}

.dean .section-eyebrow {
  margin-bottom: 3rem;
}

.dean-quote-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dean-quote-mark {
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 1;
  color: var(--crimson);
  opacity: 0.12;
  position: absolute;
  top: -3rem;
  left: -2rem;
  pointer-events: none;
  user-select: none;
}

.dean-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--black);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  border-left: 3px solid var(--crimson);
  padding-left: 2rem;
  text-align: left;
}

.dean-attribution {
  text-align: left;
  padding-left: 2rem;
}

.dean-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.dean-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  line-height: 1.8;
}

/* ============================================================
   PHOTO BANDS
   ============================================================ */
.photo-band {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.photo-band--selfie {
  background-image: url('../assets/photos/group-selfie.jpg');
}

.photo-band--lineup {
  background-image: url('../assets/photos/team-formal.jpg');
}

/* ============================================================
   FEATURED VIDEO
   ============================================================ */
.video-section {
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail-link {
  display: block;
  position: relative;
  max-width: 900px;
  margin: 0 auto 2rem;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.video-thumbnail-link:hover .video-play-btn {
  background-color: rgba(139, 26, 26, 0.6);
}

.video-caption {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* ============================================================
   CLASS ROSTER
   ============================================================ */
.roster {
  text-align: center;
}

.roster-rule {
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: var(--crimson);
  margin: 1.5rem auto;
  opacity: 0.4;
}

.roster-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.roster-names {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black);
  line-height: 2;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.roster-names .sep {
  color: var(--crimson);
  margin: 0 0.5rem;
  font-weight: 400;
}

.roster-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 1.5rem;
}

/* ============================================================
   NEXT STEPS
   ============================================================ */
.steps {
  text-align: left;
}

.steps .section-eyebrow,
.steps .section-title {
  text-align: left;
}

.steps .section-title {
  margin-bottom: 3rem;
  max-width: 700px;
}

.steps-list {
  list-style: none;
  max-width: 750px;
}

.step-item {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.step-item:first-child {
  border-top: 1px solid var(--light-gray);
}

.step-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  border: 2px solid var(--crimson);
  position: relative;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.step-desc {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* ============================================================
   CAMPUS MAP
   ============================================================ */
.campus {
  text-align: center;
}

.campus-address {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  line-height: 0;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}

.campus-directions {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--warm-gray);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--black);
  padding: 5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 280px;
  height: auto;
  margin-bottom: 1.25rem;
  clip-path: inset(0 0 20px 0);
  /* filter: invert(1) brightness(2); */
  opacity: 0.9;
}

.footer-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.footer-est {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-motto {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.25rem 0 0.5rem;
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings within the same parent */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Disable parallax on mobile */
  .hero,
  .photo-band {
    background-attachment: scroll;
  }

  .photo-band {
    height: 250px;
  }

  .hero-logo {
    width: 300px;
  }

  .dean-quote-mark {
    font-size: 8rem;
    top: -1.5rem;
    left: -0.5rem;
  }

  .dean-quote {
    padding-left: 1.25rem;
  }

  .dean-attribution {
    padding-left: 1.25rem;
  }

  .steps .section-eyebrow,
  .steps .section-title {
    text-align: center;
  }

  .step-item {
    gap: 1.25rem;
  }

  .video-container {
    padding-bottom: 56.25%;
  }

  .map-container iframe {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .roster-names {
    font-size: 1.1rem;
  }

  .hero-logo {
    width: 280px;
  }
}
