﻿/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ---------------------------------------------------------------------
   Glass utility â€” applied selectively (nav, mobile menu, hero panel),
   never globally, per brand direction: glass creates hierarchy, not noise.
   --------------------------------------------------------------------- */
.glass {
  background: var(--color-surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--color-border-glass);
}

/* ---------------------------------------------------------------------
   NAVBAR
   --------------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--logo-background, #fdfeec);
  color: var(--brand-black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
}
.navbar__logo span {
  color: var(--brand-purple);
}
.navbar__links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}
.navbar__link {
  position: relative;
  padding-block: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.navbar__link:hover,
.navbar__link[aria-current="page"] {
  color: var(--brand-purple);
}
.navbar__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-magenta);
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar__tickets,
.mobile-menu__cta {
  background: var(--brand-magenta);
  color: #ffffff;
  box-shadow: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
}
.navbar__tickets:hover,
.navbar__tickets:active,
.mobile-menu__cta:hover,
.mobile-menu__cta:active {
  background: var(--brand-purple);
  color: #ffffff;
  box-shadow: none;
  transform: none;
}
.navbar__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}
.navbar__toggle span {
  width: 20px;
  height: 2px;
  background: var(--brand-black);
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 auto;
  z-index: var(--z-menu);
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  padding: 16px var(--container-pad) 28px;
  background: var(--logo-background, #fdfeec);
  color: var(--brand-black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
}
.mobile-menu__link {
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] {
  color: var(--brand-purple);
}
.mobile-menu__cta {
  align-self: flex-start;
  margin-top: 16px;
}
.navigation-only {
  background: var(--logo-background, #fdfeec);
}
.navigation-only::before,
.navigation-only::after {
  display: none;
}
@media (min-width: 1080px) {
  .navbar__links {
    display: flex;
  }
  .navbar__toggle,
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 400px) {
  .navbar__inner {
    gap: 10px;
  }
  .navbar__logo {
    font-size: 24px;
  }
  .navbar__actions {
    gap: 4px;
  }
  .navbar__tickets {
    padding: 11px 15px;
    font-size: 12px;
  }
}
/* ---------------------------------------------------------------------
  HERO
  --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(92svh - var(--nav-height));
  margin-top: var(--nav-height);
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
}

/* Hero inner fills the full hero height so the content can be spread out:
   kicker at the top, headline + description in the middle, buttons at the bottom */
.hero__inner {
  display: flex;
  flex-direction: column;
}

.hero__media,
.hero__slides,
.hero__slide,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
  background: #18091d;
}

.hero__slides,
.hero__slide {
  width: 100%;
  height: 100%;
}

.hero__slides {
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity var(--transition-slow),
    transform 7s ease-out;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 2, 11, 0.86) 0%,
      rgba(13, 3, 17, 0.5) 50%,
      rgba(8, 2, 10, 0.18) 100%
    ),
    linear-gradient(
      0deg,
      rgba(7, 2, 11, 0.72) 0%,
      transparent 38%,
      rgba(7, 2, 11, 0.18) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: 7rem;
}

/* Keep the headline centered in the open space while the buttons stay near the bottom. */
.hero__title {
  margin-top: auto;
}

.hero__actions {
  margin-top: auto;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.55rem 1.05rem 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 244, 210, 0.12);
  border: 1px solid rgba(255, 244, 210, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--brand-cream);
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__kicker-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand-magenta);
  animation: heroDot 2s ease-out infinite;
}

@keyframes heroDot {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 3, 118, 0.7);
  }
  100% {
    box-shadow: 0 0 0 0.6rem rgba(251, 3, 118, 0);
  }
}

.hero__title {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-cream);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
}

.hero__title-main {
  display: block;
  white-space: nowrap;
  font-size: clamp(3.2rem, 14.5vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
}

/* "The Fifth Chapter." as a festival sticker: solid magenta, always legible over any photo */
.hero__title-accent {
  display: inline-block;
  white-space: nowrap;
  padding: 0.38em 0.75em 0.3em;
  border-radius: 0.4em;
  background: var(--brand-magenta);
  color: var(--brand-cream);
  font-size: clamp(1.1rem, 3.8vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
  transform: rotate(-2deg);
  transform-origin: left center;
  box-shadow: 0 12px 34px rgba(251, 3, 118, 0.4);
}

.hero__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: #ffffff;
  max-width: 42ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.hero__actions .btn {
  min-width: 11rem;
}

.hero__actions .btn-secondary {
  min-width: 12rem;
  background: rgba(255, 244, 210, 0.08);
  border-color: rgba(255, 244, 210, 0.45);
}

.hero__actions .btn-primary:hover,
.hero__actions .btn-primary:active {
  background: var(--brand-purple);
  box-shadow: none;
}

.hero__actions .btn {
  -webkit-tap-highlight-color: transparent;
}

.hero__actions .btn:focus:not(:focus-visible) {
  outline: none;
}

/* Bottom bar: scroll cue (left) + photo counter and progress ticks (right) */
.hero__foot {
  position: absolute;
  inset-inline: 0;
  bottom: var(--space-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  pointer-events: none;
}

.hero__foot > * {
  pointer-events: auto;
}

.hero__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brand-cream);
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero__count b {
  font-weight: 600;
  color: #ffffff;
}

.hero__ticks {
  display: flex;
  align-items: center;
}

.hero__tick {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.65rem 0.12rem;
  border: 0;
  background: rgba(255, 244, 210, 0.45);
  background-clip: content-box;
  cursor: pointer;
  transition:
    width var(--transition-medium),
    background-color var(--transition-medium);
}

.hero__tick.is-active {
  width: 2.8rem;
  background-color: var(--brand-magenta);
}

.hero__tick:focus-visible {
  outline: 2px solid var(--brand-cream);
  outline-offset: 2px;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--brand-cream);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--brand-magenta), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

.hero__next-anchor {
  height: clamp(8rem, 18vw, 16rem);
}

.hero__pattern-strip {
  height: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  background: var(--brand-black);
}

.hero__pattern-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: patternSlide 24s linear infinite;
}

.hero__pattern-track img {
  flex: 0 0 auto;
  width: clamp(18rem, 45vw, 34rem);
  height: 100%;
  margin-right: -2px;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes patternSlide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line {
    animation: none;
    transform: scaleY(1);
    opacity: 0.7;
  }
  .hero__slide {
    transition: none;
  }
  .hero__pattern-track {
    animation: none;
  }
  .hero__kicker-dot {
    animation: none;
  }
}

@media (max-width: 560px) {
  .hero__foot {
    bottom: 1.25rem;
  }
  .hero__scroll span:last-child {
    display: none;
  }
  .hero__count {
    display: none;
  }
  .hero__tick {
    width: 1rem;
  }
  .hero__tick.is-active {
    width: 2rem;
  }
  .hero__content {
    padding-bottom: 5rem;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(7, 2, 11, 0.76), rgba(7, 2, 11, 0.3)),
      linear-gradient(0deg, rgba(7, 2, 11, 0.78), transparent 55%);
  }
}

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border-glass);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--brand-cream);
}

.footer__logo span {
  color: var(--brand-magenta);
}

.footer__tagline {
  margin-top: var(--space-2xs);
  font-size: var(--fs-xs);
  max-width: 32ch;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.06em;
}

.footer__col ul {
  display: grid;
  gap: var(--space-2xs);
}

.footer__col a {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}

.footer__col a:hover {
  color: var(--brand-cream);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-glass);
  font-size: var(--fs-2xs);
  color: var(--color-muted);
}

/* Original supplied logo artwork, framed to its light-background variant. */
.navbar__logo {
  flex-shrink: 0;
}
.navbar__brand-image {
  display: block;
  width: 132px;
  height: 72px;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: normal;
}
@media (max-width: 400px) {
  .navbar__brand-image {
    width: 110px;
    height: 60px;
  }
}

/* Suppress the browser's touch flash; keep :focus-visible for keyboards. */
.navbar a,
.navbar button,
.mobile-menu a {
  -webkit-tap-highlight-color: transparent;
}
.navbar a:focus:not(:focus-visible),
.navbar button:focus:not(:focus-visible),
.mobile-menu a:focus:not(:focus-visible) {
  outline: none;
}

/* Header contracts down-page and expands when scrolling back up. */
body {
  --current-nav-height: var(--nav-height);
}
body.nav-compact {
  --current-nav-height: 68px;
}
.navbar {
  height: var(--current-nav-height);
  transition:
    height var(--transition-medium),
    box-shadow var(--transition-medium);
}
.nav-compact .navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.navbar__brand-image {
  transform-origin: left center;
  transition: transform var(--transition-medium);
}
.nav-compact .navbar__brand-image {
  transform: scale(0.83);
}
.mobile-menu {
  top: var(--current-nav-height);
  max-height: calc(100dvh - var(--current-nav-height));
  transition:
    top var(--transition-medium),
    max-height var(--transition-medium);
}
.navbar__link::after,
.mobile-menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--brand-magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}
.mobile-menu__link {
  position: relative;
  align-self: flex-start;
}
.navbar__link[aria-current="page"]::after,
.mobile-menu__link[aria-current="page"]::after {
  transform: scaleX(1);
}
@media (hover: hover) {
  .navbar__link:hover::after,
  .mobile-menu__link:hover::after {
    transform: scaleX(1);
  }
}
.navbar__link:active::after,
.mobile-menu__link:active::after {
  transform: scaleX(1);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar__brand-image,
  .mobile-menu,
  .navbar__link::after,
  .mobile-menu__link::after {
    transition: none;
  }
}
