/* =====================================================
   Destination Imagination Louisiana — Stylesheet
   Brand fonts: Bebas Neue (titles), Montserrat (headings),
   Open Sans (body). Brand palette per DI Style Guide.
   ===================================================== */

:root {
  /* Primary palette */
  --di-blue-purple: #4C1EB9;
  --di-dark-purple: #6133AA;
  --di-medium-blue: #014898;
  --di-dark-blue: #16165E;
  /* Secondary accents */
  --di-red: #E30011;
  --di-orange: #F88F00;
  --di-yellow: #FFD600;
  --di-light-blue: #00AFF0;
  --di-teal: #199E9E;
  --di-green: #8AC440;
  --di-dark-orange: #DC4312;
  --di-pink: #ED1164;
  --di-light-purple: #B95DDB;
  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #e0e1e3;
  --gray-200: #b8b8b8;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

.font-title { font-family: 'Bebas Neue', sans-serif; }

/* ===== Layout helpers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
.section { padding: 5rem 0; position: relative; overflow: clip; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-white { background: #fff; }
.section-gray { background: #dbdbdb; }
.section-dark { background: var(--di-dark-blue); }
.mb-16 { margin-bottom: 4rem; }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: 0.02em;
  color: var(--di-dark-blue);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.section-title.text-white { color: #fff; }
.title-underline { width: 5rem; height: 4px; background: var(--di-orange); margin: 0 auto 1.5rem; border-radius: 2px; }
.section-sub { color: var(--gray-600); font-size: 1.125rem; max-width: 800px; margin: 0 auto; }
.section-sub.text-light { color: rgba(255,255,255,0.8); }
.subsection-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1.875rem; color: var(--di-dark-blue);
  text-align: center; margin-bottom: 2.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1.125rem; padding: 1rem 2rem; border-radius: 0.5rem;
  transition: all 0.25s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--di-orange); color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
.btn-primary:hover { background: var(--di-yellow); color: var(--di-dark-blue); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--di-dark-blue); }

/* ===== Cards (generic) ===== */
.card {
  background: #fff; border-radius: 0.5rem; padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.12); }

.icon { width: 2rem; height: 2rem; }
.icon-purple { color: var(--di-blue-purple); }
.icon-orange { color: var(--di-orange); }
.icon-yellow { color: var(--di-yellow); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .nav-container { height: 5rem; } }
.nav-logo img { width: 200px; height: 40px; object-fit: contain; object-position: left; }
@media (min-width: 768px) { .nav-logo img { width: 260px; height: 50px; } }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  padding: 0.5rem 0.75rem; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.875rem; color: var(--di-dark-blue); border-radius: 0.375rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--di-blue-purple); background: var(--gray-50); }
.nav-cta {
  margin-left: 0.5rem; padding: 0.625rem 1.25rem; background: var(--di-blue-purple);
  color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.875rem;
  border-radius: 0.375rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.15);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--di-dark-purple); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
.nav-toggle {
  display: flex; background: none; border: none; cursor: pointer;
  padding: 0.5rem; border-radius: 0.375rem; color: var(--di-dark-blue);
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile dropdown state for nav-links */
@media (max-width: 1023px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: #fff; border-top: 1px solid var(--gray-100);
    padding: 0.75rem 1rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }
  .nav-links.mobile-open { display: flex; max-height: 520px; opacity: 1; }
  .nav-links:not(.mobile-open) { padding-top: 0; padding-bottom: 0; }
  .nav-link { padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 0.25rem; }
}

/* Mobile menu */
.mobile-menu {
  display: none; background: #fff; border-top: 1px solid var(--gray-100);
  padding: 0.75rem 1rem;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  display: block; padding: 0.75rem 1rem; font-family: 'Montserrat', sans-serif;
  font-weight: 600; color: var(--di-dark-blue); border-radius: 0.375rem;
}
.mobile-menu a:hover { background: var(--gray-50); }
.mobile-menu .nav-cta { display: block; text-align: center; margin: 0.5rem 0 0; color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: -10% 0 0 0; height: 120%;
  background: linear-gradient(-45deg, #10104a, #9f1eb9, #014898, #6133AA);
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content {
  position: relative; z-index: 3;
  padding: 6rem 1rem 4rem;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.hero-text { flex: 1; min-width: 0; text-align: center; }
.hero-image {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-image img { width: 100%; max-width: 420px; height: auto; }
.hero-logo img { width: 360px; height: auto; margin: 0 auto 1.5rem; }
@media (min-width: 768px) { .hero-logo img { width: 480px; } }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem); color: #fff;
  letter-spacing: 0.03em; line-height: 1; margin-bottom: 1rem;
}
.hero-tagline {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 1.25rem; color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
@media (min-width: 1024px) {
  .hero-content { justify-content: space-between; text-align: left; }
  .hero-text { text-align: left; }
  .hero-logo img { margin-left: 0; margin-right: 0; }
  .hero-tagline { margin-left: 0; }
  .hero-buttons { justify-content: flex-start; }
  .hero-image img { max-width: 560px; }
}
@media (max-width: 1023px) {
  .hero-content { flex-direction: column; }
  .hero-image { order: 2; }
}
.hero-caret {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,0.8);
  animation: bounce-caret 2s ease-in-out infinite;
}
.hero-caret svg { width: 2rem; height: 2rem; }

/* ===== ABOUT ===== */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.mv-card { padding: 2rem; }
.mv-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.mv-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--di-dark-blue); }
.mv-text { color: var(--gray-700); font-size: 1.125rem; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(5, 1fr); } }
.value-card { padding: 1.25rem; text-align: center; }
.value-card:hover { transform: translateY(-4px); }
.value-icon { font-size: 1.875rem; margin-bottom: 0.75rem; }
.value-card h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--di-dark-blue); font-size: 1rem; }
.value-card p { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.5rem; line-height: 1.5; }

.process-list { display: flex; flex-direction: column; gap: 1rem; }
.process-item { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
.process-num {
  flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--di-blue-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.125rem;
}
.process-item h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--di-dark-blue); font-size: 1.125rem; margin-bottom: 0.25rem; }
.process-item p { color: var(--gray-600); }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  text-align: center; background: var(--di-dark-blue); border-radius: 0.5rem;
  padding: 2rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--di-orange); margin-bottom: 0.5rem; }
.stat-label { color: rgba(255,255,255,0.9); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.875rem; }

/* ===== BENEFITS ===== */
.tab-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.tab-btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
@media (max-width: 767px) { .tab-btn-group { display: none; } }
.tab-chevron {
  width: 3rem; height: 3rem; flex: 0 0 auto; border-radius: 50%;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1;
  background: #dbe4f5; color: var(--di-dark-blue); border: none; cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.6); transition: all 0.2s ease;
}
.tab-chevron:hover { background: #c9d6ef; }
.tab-chevron:active { transform: scale(0.95); }
.tab-btn {
  padding: 0.75rem 1.25rem; border-radius: 0.375rem;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.25rem;
  background: #dbe4f5; color: var(--di-dark-blue); border: none; cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.6); transition: all 0.2s ease;
}
.tab-btn span { margin-right: 0.5rem; }
.tab-btn:hover { background: #c9d6ef; }
.tab-btn.active { background: var(--di-blue-purple); color: #fff; transform: scale(1.05); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.4s ease; }
.benefit-box { border-radius: 0.75rem; padding: 2rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
@media (min-width: 768px) { .benefit-box { padding: 3rem; } }
.bg-blue-purple { background: var(--di-blue-purple); }
.bg-medium-blue { background: var(--di-medium-blue); }
.bg-dark-purple { background: var(--di-dark-purple); }
.bg-dark-blue { background: var(--di-dark-blue); }
.benefit-box h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff;
  font-size: 1.75rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.benefit-list { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 768px) { .benefit-list { grid-template-columns: repeat(2, 1fr); } }
.benefit-list li {
  position: relative; padding-left: 2rem; color: rgba(255,255,255,0.95);
  font-size: 1rem; line-height: 1.5;
}
.benefit-list li::before {
  content: '\2713'; position: absolute; left: 0; top: 0;
  color: var(--di-yellow); font-weight: 700;
}

/* ===== EVENTS ===== */
.deco-circle { position: absolute; border-radius: 50%; z-index: 1; }
.deco-1 { top: 2.5rem; right: 2.5rem; width: 10rem; height: 10rem; background: rgba(76,30,185,0.2); }
.deco-2 { bottom: 2.5rem; left: 2.5rem; width: 15rem; height: 15rem; background: rgba(1,72,152,0.15); }
.deco-3 { top: 0; right: 0; width: 20rem; height: 20rem; background: rgba(76,30,185,0.1); }
.deco-4 { bottom: 0; left: 0; width: 15rem; height: 15rem; background: rgba(1,72,152,0.1); }
.events-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card {
  border-radius: 0.75rem; padding: 1.5rem; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.event-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); }
.event-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(76,30,185,0.6);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 1rem;
}
.event-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 0.75rem; }
.event-title.text-gold { color: var(--di-yellow); }
.event-title.text-orange { color: var(--di-orange); }
.event-date { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-bottom: 0.5rem; }
.event-loc { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.event-badge {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.badge-gold { color: var(--di-yellow); }
.badge-orange { color: var(--di-orange); }
.featured-event {
  border: 2px solid var(--di-yellow);
  background: linear-gradient(135deg, var(--di-dark-blue), var(--di-blue-purple));
  box-shadow: 0 0 20px rgba(255,214,0,0.3);
}
.featured-event:hover { box-shadow: 0 0 30px rgba(255,214,0,0.5); }
.global-finals {
  border: 2px solid var(--di-orange);
  background: linear-gradient(135deg, var(--di-dark-blue), var(--di-medium-blue));
  box-shadow: 0 0 20px rgba(248,143,0,0.3);
}
.global-finals:hover { box-shadow: 0 0 30px rgba(248,143,0,0.5); }

/* ===== START A TEAM ===== */
.steps-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.cta-wrap { text-align: center; margin-top: 2rem; }
.step-header {
  width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
  background: #fff; border: none; border-radius: 0.75rem; cursor: pointer; text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: box-shadow 0.2s;
}
.step-header:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.12); }
.step-num {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: var(--di-blue-purple);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.125rem;
}
.step-title { flex: 1; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--di-dark-blue); font-size: 1.125rem; display: flex; align-items: center; gap: 0.5rem; }
.chevron { width: 1.25rem; height: 1.25rem; color: var(--di-blue-purple); transition: transform 0.3s ease; flex-shrink: 0; }
.step-header[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.step-body {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.step-body.open { max-height: 320px; opacity: 1; }
.step-body p {
  background: #fff; border-top: 1px solid var(--gray-100);
  padding: 1rem 1.25rem; margin: 0 1rem 0 4rem; border-radius: 0 0 0.75rem 0.75rem;
  color: var(--gray-700);
}
.tm-box {
  max-width: 800px; margin: 3rem auto 0; background: var(--di-medium-blue);
  border-radius: 0.75rem; padding: 2rem; color: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}
.tm-box h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.tm-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.tm-list li { color: rgba(255,255,255,0.9); display: flex; align-items: flex-start; gap: 0.5rem; }
.tm-list li span { color: var(--di-yellow); }

/* ===== CHALLENGES ===== */
.challenges-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .challenges-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .challenges-grid { grid-template-columns: repeat(3, 1fr); } }
.challenge-card {
  border-radius: 0.75rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border: 2px solid transparent; cursor: pointer; transition: box-shadow 0.25s, border-color 0.25s;
}
.challenge-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
.challenge-card.expanded { border-color: var(--card-accent, var(--di-blue-purple)); }
.challenge-head {
  padding: 1.5rem; color: #fff; display: flex; align-items: center; justify-content: space-between;
}
.challenge-head-left { display: flex; align-items: center; gap: 0.75rem; }
.challenge-emoji { width: auto; height: 100px; object-fit: contain; }
.challenge-head h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.25rem; }
.challenge-card .chevron { transform: rotate(-90deg); opacity: 0.85; color: #fff; transition: transform 0.25s ease; }
.challenge-card:hover .chevron { transform: rotate(-90deg) translateY(3px); }
/* Inline body text is hidden; it is used as the source for the pop-up modal */
.challenge-body { display: none; }

/* ===== Challenge pop-up modal ===== */
.challenge-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 12, 41, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.challenge-modal.active { opacity: 1; visibility: visible; }
.challenge-modal-card {
  position: relative;
  width: 100%; max-width: 720px;
  background: #fff; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.challenge-modal.active .challenge-modal-card { transform: scale(1) translateY(0); }
.challenge-modal-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--card-accent, var(--di-blue-purple));
  color: #fff;
}
.challenge-modal-emoji { font-size: 2.5rem; line-height: 1; }
.challenge-modal-emoji img { width: auto; height: 100px; object-fit: contain; }
.challenge-modal-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; color: #fff; }
.challenge-modal-body { padding: 1.5rem 1.75rem 1.9rem; max-height: 60vh; overflow-y: auto; }
.challenge-modal-body p { color: var(--di-blue-purple); font-size: 1.25rem; line-height: 1.5; font-weight: 700;}
.challenge-modal-body .challenge-detail,
.challenge-modal-body .challenge-detail ul { color: var(--gray-700); font-size: 0.9rem; font-weight: 400;}
.challenge-modal-body ul { margin: 0.75rem 0 0 1.25rem; color: var(--gray-700); font-size: 0.9rem; line-height: 1.5; }
.challenge-modal-body li { margin-bottom: 0.5rem; }
.challenge-modal-body hr { border: none; height: 3px; background: var(--gray-100); margin: 1rem 0; }
.challenge-modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2;
  width: 2.25rem; height: 2.25rem; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; color: #fff; background: rgba(255,255,255,0.2);
  transition: background 0.2s ease;
}
.challenge-modal-close:hover { background: rgba(255,255,255,0.35); }
.challenge-modal-close svg { width: 1.25rem; height: 1.25rem; }
.grad-technical { background: linear-gradient(135deg, var(--di-blue-purple), var(--di-dark-purple)); }
.grad-scientific { background: linear-gradient(135deg, var(--di-medium-blue), var(--di-dark-blue)); }
.grad-engineering { background: linear-gradient(135deg, var(--di-teal), var(--di-medium-blue)); }
.grad-finearts { background: linear-gradient(135deg, var(--di-dark-orange), var(--di-orange)); }
.grad-improv { background: linear-gradient(135deg, var(--di-pink), var(--di-light-purple)); }
.grad-service { background: linear-gradient(135deg, var(--di-green), var(--di-teal)); }
.early-note { margin-top: 2rem; text-align: center; }
.early-note-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,214,0,0.2); border: 1px solid rgba(255,214,0,0.4);
  border-radius: 9999px; padding: 0.75rem 1.5rem;
}
.early-note-pill span { font-size: 1.25rem; }
.early-note-pill p { color: var(--di-dark-blue); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.875rem; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: 0.5rem; overflow: hidden;
  border: none; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.gallery-item::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://images.vexels.com/media/users/3/131734/isolated/preview/05d86a9b63d1930d6298b27081ddc345-photo-preview-frame-icon.png' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center 30%; background-size: 2.5rem;
  opacity: 0.9;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); }
.gallery-item:focus-visible { outline: 3px solid var(--di-blue-purple); outline-offset: 2px; }
.gallery-label {
  position: relative; z-index: 2; margin-top: 2.5rem; font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.875rem; text-align: center; color: rgba(255,255,255,0.85);
}
.gallery-dark::before { filter: invert(1) opacity(0.5); }
.gallery-dark .gallery-label { color: rgba(0,0,0,0.8); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0);
  transition: background 0.25s; z-index: 1;
}
.gallery-item:hover::after { background: rgba(0,0,0,0.2); }
.gallery-note { margin-top: 2rem; text-align: center; }
.gallery-note p { color: var(--gray-600); font-size: 0.875rem; }
.gallery-note a { color: var(--di-blue-purple); font-weight: 600; text-decoration: underline; }
.gallery-note a:hover { color: var(--di-dark-purple); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-stage {
  width: 100%; max-width: 700px; aspect-ratio: 4 / 3; border-radius: 0.75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--di-blue-purple);
}
.lb-photo-icon { width: 5rem; height: 5rem; color: rgba(255,255,255,0.3); margin-bottom: 1rem; }
.lb-label { color: rgba(255,255,255,0.7); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.25rem; }
.lb-sub { color: rgba(255,255,255,0.4); font-size: 0.875rem; margin-top: 0.5rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.8); z-index: 10; transition: color 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-close svg { width: 2rem; height: 2rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev svg, .lightbox-next svg { width: 2.5rem; height: 2.5rem; }
.lightbox-counter { position: absolute; bottom: 1rem; color: rgba(255,255,255,0.6); font-family: 'Montserrat', sans-serif; font-size: 0.875rem; }

/* ===== RESOURCES ===== */
.resources-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .resources-grid { grid-template-columns: repeat(3, 1fr); } }
.resource-card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem; padding: 1.5rem; transition: transform 0.25s, background 0.25s;
}
.resource-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); }
.resource-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.resource-head span { font-size: 1.5rem; }
.resource-head h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; transition: color 0.2s; }
.resource-card:hover .resource-head h3 { color: var(--di-orange); }
.resource-card p { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.resource-link { display: inline-block; margin-top: 1rem; color: var(--di-orange); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.875rem; }
.resource-foot { margin-top: 2.5rem; text-align: center; }
.resource-foot p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  display: flex; align-items: center; gap: 1rem; background: var(--gray-50);
  border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5); background: rgba(76,30,185,0.25); }
.contact-icon {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(76,30,185,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.contact-card h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--di-dark-blue); transition: color 0.2s; }
.contact-card:hover h4 { color: var(--di-medium-blue); }
.contact-card p { color: var(--di-blue-purple); font-size: 0.875rem;}
.contact-card hr { border: none; height: 2px; background: var(--di-light-purple); margin: 1rem 0; }

.hq-box { max-width: 900px; margin: 2.5rem auto 0; background: var(--di-dark-blue); border-radius: 0.75rem; padding: 2rem; text-align: center; }
.hq-box h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; font-size: 1.25rem; margin-bottom: 0.75rem; }
.hq-links { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: rgba(255,255,255,0.8); }
@media (min-width: 640px) { .hq-links { flex-direction: row; } }
.hq-links a { transition: color 0.2s; }
.hq-links a:hover { color: var(--di-orange); }
.hq-sep { display: none; color: rgba(255,255,255,0.4); }
@media (min-width: 640px) { .hq-sep { display: inline; } }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); padding: 3rem 0; }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .footer-top { flex-direction: row; } }
.footer-logo img { width: 300px; height: auto; filter: brightness(1.1); }
.footer-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-link-primary { font-family: 'Montserrat', sans-serif; font-weight: 600; }
.footer-link-primary:hover { color: var(--di-orange) !important; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-fine { color: rgba(255,255,255,0.3) !important; font-size: 0.8rem !important; margin-top: 0.5rem; line-height: 0.8rem;}
.footer-fine a { color: rgba(255, 255, 255, 0.555); transition: color 0.2s; }

/* =====================================================
   SCROLL-DRIVEN ANIMATIONS (Pure CSS)
   ===================================================== */
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-scale-up { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes count-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes bounce-caret { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes parallax-hero { from { transform: translateY(0); } to { transform: translateY(-80px); } }

/* Elements remain fully visible in browsers without CSS scroll timelines. */
.animate-left,
.animate-scale,
.animate-up,
.animate-fade,
.animate-count {
  opacity: 1;
  transform: none;
}

/* Native CSS scroll-driven entrance animations.
   The animation progresses as each element enters and covers the viewport. */
@supports (animation-timeline: view()) {
  .animate-left,
  .animate-scale,
  .animate-up,
  .animate-fade,
  .animate-count {
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view(block);
    animation-range: entry 0% cover 35%;
    will-change: opacity, transform;
  }

  .animate-left  { animation-name: slide-in-left; }
  .animate-scale { animation-name: fade-scale-up; }
  .animate-up    { animation-name: slide-up; }
  .animate-fade  { animation-name: fade-in; }
  .animate-count { animation-name: count-up; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .animate-left, .animate-scale, .animate-up, .animate-fade, .animate-count {
    opacity: 1 !important; transform: none !important;
  }
}
