/*
 * EV Fest 2026 — temporary homepage hero. Paired with ev-fest-home-hero.js,
 * which shows this hero until 2026-11-22T00:00:00-05:00 and then restores the
 * normal hero. Everything here is scoped to .ev-fest-home-hero so the shared
 * styles.css stays untouched; delete this file, the JS file and the section
 * in index.html once the festival is over.
 *
 * Palette and type follow the EV Fest 2026 Glow page and share card:
 * gold wordmark, cyan year, violet caps on the gold line art of the Village.
 */

/* `hidden` must win over the display rules below and over .hero's grid. */
.ev-fest-home-hero[hidden],
section.hero[hidden] {
  display: none !important;
}

.ev-fest-home-hero {
  --evf-ink: #0a0a0d;
  --evf-navy: #0c1a3a;
  --evf-gold: #f0d488;
  --evf-gold-deep: #cfa64e;
  --evf-cyan: #4ef3ff;
  --evf-violet: #b9a2ff;
  --evf-display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --evf-caps: "Josefin Sans", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(880px, 100svh);
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 132px 20px clamp(250px, 30vw, 380px);
  color: #fff;
  text-align: center;
  background-color: var(--evf-navy);
  /* A CSS background is not fetched while the section is hidden, so the art
     costs nothing with JavaScript off or after the festival. */
  background-image:
    linear-gradient(180deg, rgba(10, 10, 13, 0.96) 0%, rgba(10, 10, 13, 0.82) 30%, rgba(12, 26, 58, 0.28) 62%, rgba(10, 10, 13, 0.55) 100%),
    url("assets/ev-fest/ev-fest-village.jpg");
  background-repeat: no-repeat;
  background-position: center, center bottom;
  background-size: cover, max(1500px, 118%) auto;
}

.ev-fest-home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 255, 0.28), transparent 62%),
    radial-gradient(ellipse at 22% 90%, rgba(78, 243, 255, 0.12), transparent 48%);
  mix-blend-mode: screen;
}

.ev-fest-home-hero__inner {
  width: min(880px, 100%);
  display: grid;
  justify-items: center;
}

.ev-fest-home-hero__eyebrow {
  margin: 0;
  color: var(--evf-violet);
  font-family: var(--evf-caps);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ev-fest-home-hero h1 {
  margin: 14px 0 0;
  display: grid;
  justify-items: center;
  line-height: 0.95;
  font-weight: 400;
}

.ev-fest-home-hero__wordmark {
  font-family: var(--evf-display);
  font-size: clamp(64px, 12vw, 148px);
  letter-spacing: 0.01em;
  color: var(--evf-gold);
  background: linear-gradient(180deg, #fff6d2 0%, var(--evf-gold) 46%, var(--evf-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(207, 166, 78, 0.35));
}

.ev-fest-home-hero__year {
  margin-top: 6px;
  font-family: var(--evf-display);
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: 0.32em;
  /* Letter-spacing adds trailing space; pull it back so the year centres. */
  margin-right: -0.32em;
  color: var(--evf-cyan);
  text-shadow: 0 0 18px rgba(78, 243, 255, 0.55), 0 0 2px rgba(78, 243, 255, 0.9);
}

.ev-fest-home-hero__when {
  margin: 26px 0 0;
  font-family: var(--evf-caps);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.ev-fest-home-hero__when span {
  display: inline-block;
}

.ev-fest-home-hero__anniversary {
  margin: 10px 0 0;
  font-family: var(--evf-display);
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: 0.08em;
  color: var(--evf-gold);
}

.ev-fest-home-hero__pillars {
  margin: 14px 0 0;
  max-width: 46em;
  text-wrap: balance;
  font-family: var(--evf-caps);
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.ev-fest-home-hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ev-fest-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--evf-caps);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ev-fest-home-hero__button--primary {
  color: var(--evf-ink);
  background: linear-gradient(180deg, #fff1bf, var(--evf-gold) 55%, var(--evf-gold-deep));
  box-shadow: 0 10px 30px rgba(207, 166, 78, 0.32);
}

.ev-fest-home-hero__button--secondary {
  color: #e8fbff;
  border-color: rgba(78, 243, 255, 0.75);
  background: rgba(10, 10, 13, 0.55);
  box-shadow: 0 0 20px rgba(78, 243, 255, 0.18);
}

.ev-fest-home-hero__button:hover {
  transform: translateY(-1px);
}

.ev-fest-home-hero__button--secondary:hover {
  background: rgba(78, 243, 255, 0.14);
}

.ev-fest-home-hero__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ev-fest-home-hero__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .ev-fest-home-hero {
    min-height: 0;
    padding: 112px 18px 230px;
    background-size: cover, 980px auto;
    background-position: center, 50% 100%;
  }

  .ev-fest-home-hero__when {
    letter-spacing: 0.1em;
  }

  .ev-fest-home-hero__when span {
    display: block;
  }

  .ev-fest-home-hero__when .ev-fest-home-hero__sep {
    display: none;
  }

  .ev-fest-home-hero__actions {
    width: min(360px, 100%);
    flex-direction: column;
    align-items: stretch;
  }

  .ev-fest-home-hero__button {
    width: 100%;
    font-size: 14px;
    padding: 14px 18px;
  }

  .ev-fest-home-hero__pillars {
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-fest-home-hero__button {
    transition: none;
  }

  .ev-fest-home-hero__button:hover {
    transform: none;
  }
}
