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

:root {
  --deep: #070c18;
  --gold: #c9a84c;
  --white: #ffffff;
  --landing-hover-speed: 0.1s;
  /* Layout: one horizontal rhythm for header / hero / sponsors */
  --landing-pad-x: clamp(1.25rem, 5vw, 3.5rem);
  /* Primary copy */
  --landing-fg: var(--white);
  /* Page-load entrance: duration + stagger (snappier = lower values) */
  --landing-enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --landing-enter-dur: 0.48s;
  --landing-enter-delay-header: 0.04s;
  --landing-enter-delay-hero: 0.1s;
  --landing-enter-delay-reg: 0.22s;
  --landing-enter-delay-sponsors: 0.5s;
  /* Slideshow photos: <1 fades them vs body (--deep) for a calmer backdrop */
  --landing-bg-photo-opacity: 0.76;
}

html, body {
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--deep);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Background slideshow ─────────────────────────────────── */

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.bg-slide.active {
  opacity: var(--landing-bg-photo-opacity);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(7, 12, 24, 0.50) 0%,
      rgba(7, 12, 24, 0.38) 35%,
      rgba(7, 12, 24, 0.55) 65%,
      rgba(7, 12, 24, 0.92) 100%
    );
  z-index: 1;
}

/* ─── Site Header ──────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  /* Logo | nav — flexible middle pushes links to the right */
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.5rem, 2vw, 1rem);
  padding: clamp(1rem, 3vw, 1.5rem) var(--landing-pad-x);
  min-width: 0;
  animation: fadeDown var(--landing-enter-dur) var(--landing-enter-delay-header) var(--landing-enter-ease) both;
}

@keyframes fadeDown {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.site-nav a,
.sponsors-label {
  color: var(--landing-fg);
  transition:
    opacity var(--landing-hover-speed),
    color var(--landing-hover-speed);
}

.header-brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 2.5vw, 1.75rem);
}

.header-uma-logo {
  display: block;
  height: clamp(22px, 5vw, 32px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.header-brand:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-nav a {
  font-size: clamp(0.7rem, 1.8vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.site-nav a::before,
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
}

.site-nav a::before {
  opacity: 0.35;
}

.site-nav a::after {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--white);
  text-decoration: none;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) var(--landing-pad-x);
  color: var(--landing-fg);
  text-align: center;
  gap: clamp(2rem, 6vw, 4rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hashtag-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  max-width: min(96vw, 42rem);
  margin: 0 auto;
  min-height: clamp(3.5rem, 14vw, 6.5rem);
  animation: fadeUp var(--landing-enter-dur) var(--landing-enter-delay-hero) var(--landing-enter-ease) both;
}

.hashtag-hash,
.hashtag-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.25rem, 9vw, 5.25rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: center;
}

.hashtag-hash {
  color: var(--gold);
}

.hashtag-text {
  color: var(--landing-fg);
}

.hashtag-cursor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.25rem, 9vw, 5.25rem);
  font-weight: 400;
  color: var(--gold);
  margin-left: 0.06em;
  line-height: 1;
  animation: blink 1.1s step-end infinite;
}

/* Hashtag block + registration block are siblings; .hero gap spaces them.
   Title + cards stay tight inside this column. */
.hero-reg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  max-width: min(96vw, 42rem);
  margin-inline: auto;
  animation: fadeUp var(--landing-enter-dur) var(--landing-enter-delay-reg) var(--landing-enter-ease) both;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Registration cards ───────────────────────────────────── */

.reg-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 6rem);
}

.reg-card {
  position: relative;
  z-index: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.2em 0;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}

.reg-card:hover,
.reg-card:focus-visible {
  text-decoration: none;
}

.reg-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.reg-card-title {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--landing-fg);
  line-height: 1;
  text-align: center;
  position: relative;
  text-decoration: none;
}

.reg-card-title::before,
.reg-card-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
}

.reg-card-title::before {
  opacity: 0.35;
}

.reg-card-title::after {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.reg-card:hover .reg-card-title::after,
.reg-card:focus-visible .reg-card-title::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── Sponsors ─────────────────────────────────────────────── */

.sponsors-section {
  position: relative;
  z-index: 10;
  padding: clamp(0.75rem, 2vw, 1.25rem) var(--landing-pad-x);
  background: transparent;
  isolation: isolate;
  animation: fadeUp var(--landing-enter-dur) var(--landing-enter-delay-sponsors) var(--landing-enter-ease) both;
  color: var(--landing-fg);
}

.sponsors-label {
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
}

.sponsors-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.75rem);
}

.sponsors-logos img {
  height: clamp(24px, 5vw, 38px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ─── Responsive ───────────────────────────────────────────── */

/* Header: stack nav below logo on narrow viewports so links wrap cleanly. */
@media (max-width: 500px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.625rem;
    column-gap: 0.75rem;
    align-items: center;
  }

  .header-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 1rem;
  }

  .site-nav a {
    font-size: clamp(0.62rem, 2.9vw, 0.78rem);
    letter-spacing: 0.08em;
  }

  .header-uma-logo {
    height: clamp(26px, 5.5vw, 28px);
  }
}

@media (max-width: 380px) {
  .site-nav {
    gap: 0.4rem 0.65rem;
  }
}

.reg-nav-title {
  font-size: clamp(0.72rem, 1.9vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--landing-fg);
  line-height: 1;
  text-align: center;
  position: relative;
  text-decoration: none;
}