/* There is no documentation on how to change the CSS files to be better. These things are
beasts of god that should not be tampered with... just paste the whole thing into an LLM and pray
Why did nobody install tailwind? */


/* =========================================================
   FONTS  (files in assets/fonts/ — edit file names if yours differ)
   ========================================================= */

/* ---------- HERO ---------- */
.landing {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 6rem var(--page-gutter) 3rem;
    overflow: hidden;
    color: var(--white);
}

/* Keep the navbar above every section, including its shadow. */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.landing_bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.landing_bg--hidden {
    opacity: 0;
}

/* Allow content to grow beyond one screen on smaller devices. */
main > .band {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

main > .band > .container {
    width: 100%;
}

/* navy overlay at 50% opacity */
.landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(8 46 104 / 50%);
}

.landing_content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.landing_title {
    max-width: 11em;
    margin: 0 0 0.75rem;
}

.landing_subtitle {
    max-width: 22rem;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    line-height: 1.5;
}

/* Homepage spacing and equal-width split-section buttons. */
main > .band .section-title {
    margin-bottom: 1.25rem;
}

#events .split__text p {
    text-align: right;
}

#events .split__text p + p {
    margin-top: 1rem;
}

/* Let paragraph text wrap naturally instead of fixing each animated line. */
#events .split__text p .reveal-line {
    display: inline;
}

#events .split__text > .btn {
    width: 100%;
}

/* JavaScript groups text by its rendered lines and staggers each reveal. */
.reveal-line {
    display: block;
}

.reveal-item {
    opacity: 0;
}

.is-visible .reveal-item {
    animation: fade-in-up 0.4s ease-out both;
    animation-delay: var(--reveal-delay, 0s);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1;
        animation: none !important;
    }
}

/* ---------- SPONSORS ---------- */
.sponsors {
  background: #4773b5;
  padding: 60px 0;
  text-align: center;
  color: white;
}

.carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

#sponsors .carousel {
  margin-bottom: 48px;
}

#sponsors .btn {
  display: flex;
  width: min(32rem, calc(100% - 2.5rem));
  min-width: 0;
  margin-inline: auto;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.logo-group {
  display: flex;
  gap: 30px;
  padding-right: 30px;
  flex-shrink: 0;
}

.logo-group img {
  width: 220px;
  height: 150px;
  object-fit: contain;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-sizing: border-box;
}

#sponsors .logo-group img {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
}

/* Move exactly one group to the right */
@keyframes scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}


@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
}

/* ---------- CONTACT ---------- */
.contact a {
    color: inherit;
    text-underline-offset: 0.2em;
}

.contact__content {
    margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg {
        transition: none;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
    .sponsors__grid {
        grid-template-columns: 1fr;
        max-width: 18rem;
    }
}
