@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #06131b;
  --fg: #f4efe7;
  --muted: rgba(244, 239, 231, 0.78);
  --accent: #f7b267;
  --shadow: rgba(0, 0, 0, 0.34);
  --green: #008000;
  --darkgreen: #006400;
  --yellow: #FFD500;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Chakra Petch", sans-serif;
}

body {
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top, rgba(247, 178, 103, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(6, 19, 27, 0.18), rgba(6, 19, 27, 0.8));
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.5);
  filter: blur(12px);
  transition: opacity 1.2s ease, transform 4.5s ease, filter 1.1s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
  opacity: 1;
  transition: opacity 220ms ease, background 220ms ease;
  pointer-events: none;
  z-index: 0;
}

.menu-link--home {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  z-index: 2;
}

.menu-link--home img {
  display: block;
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}

.brand-lockup {
  display: flex;
  justify-content: center;
  margin-top: 70px;
  transition: opacity 220ms ease, filter 220ms ease;
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: absolute;
  top: calc(50% - 200px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 48px);
  transition: opacity 220ms ease, filter 220ms ease;
  z-index: 1;
}

.tagline-stage {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.logo {
  width: 125px;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px var(--shadow));
}

.tagline {
  position: absolute;
  inset: 0;
  margin: 0;
  color: var(--fg);
  font-weight: 700;
  font-size: clamp(4.75rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
}

.tagline span {
  display: block;
}

.tagline span:last-child {
  margin-top: 0.06em;
}

.tagline-secondary {
  width: 100%;
  max-width: none;
  line-height: 1;
  white-space: nowrap;
}

.content-spacer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 315px;
  height: 32px;
}

.lower-content {
  position: absolute;
  left: 50%;
  bottom: 145px;
  transform: translateX(-50%);
  width: min(1500px, calc(100vw - 120px));
  z-index: 1;
}

.country-ticker {
  margin-top: 18px;
  width: 100%;
  overflow: hidden;
  transition: opacity 220ms ease, filter 220ms ease;
}

.country-ticker__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 1260s linear infinite;
}

.country-ticker__item {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
}

.country-ticker__flag {
  margin-right: 10px;
  font-size: 1.15rem;
  line-height: 1;
}

.country-ticker__country {
  font-weight: 700;
}

.country-ticker__separator {
  margin: 0 8px;
  font-weight: 400;
}

.country-ticker__federation {
  font-weight: 400;
}

.support-copy {
  margin: 20px auto 0;
  width: min(1420px, 100%);
  color: var(--fg);
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.support-copy p {
  margin: 0;
}

.support-copy p:first-child,
.support-copy p:nth-child(2) {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
}

.support-copy p:nth-child(2) {
  margin-top: 6px;
}

.card-grid-group {
  display: grid;
  gap: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  min-height: 160px;
  background: var(--yellow);
  text-decoration: none;
  text-align: left;
  padding: 20px 24px;
  color: var(--green);
  overflow: hidden;
  isolation: isolate;
  transition: opacity 220ms ease, filter 220ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72%;
  background: var(--card-image) center / cover no-repeat;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -2;
}

.link-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: var(--yellow);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
}

.link-card__topline {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.link-card__mark {
  display: block;
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.link-card__arrow {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: block;
  align-self: flex-start;
  margin-top: -4px;
}

.link-card__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  transition: color 220ms ease, transform 220ms ease;
  position: relative;
  z-index: 1;
}

.link-card__sub {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--darkgreen);
  transition: opacity 180ms ease, transform 180ms ease;
}

.link-card:hover::before,
.link-card:hover::after {
  opacity: 1;
}

.link-card:hover {
  justify-content: flex-start;
}

.link-card:hover .link-card__topline,
.link-card:hover .link-card__sub {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.link-card:hover .link-card__title {
  color: var(--green);
  position: absolute;
  left: 24px;
  right: 24px;
  top: 72%;
  bottom: 0;
  display: flex;
  align-items: center;
  margin: 0;
  transform: none;
}

[data-shared-footer] {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100vw - 48px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: opacity 220ms ease, filter 220ms ease;
  z-index: 1;
}

.card-grid:hover .link-card:not(:hover) {
  opacity: 0.3;
  filter: brightness(0.65);
}

.overlay:has(.link-card:hover) .brand-lockup,
.overlay:has(.link-card:hover) .hero-copy,
.overlay:has(.link-card:hover) .country-ticker,
.overlay:has(.link-card:hover) [data-shared-footer] {
  opacity: 0.28;
  filter: brightness(0.65);
}

.overlay:has(.link-card:hover)::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.86));
}

.overlay:has(.link-card:hover) .link-card:hover {
  opacity: 1;
  filter: none;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

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

@media (max-width: 799px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .stage {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .slide {
    position: fixed;
  }

  .overlay {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 16px 40px;
  }

  .overlay::before {
    position: fixed;
  }

  .brand-lockup,
  .hero-copy,
  .lower-content,
  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .logo {
    width: 125px;
    height: 125px;
  }

  .brand-lockup {
    margin-top: 20px;
  }

  .hero-copy {
    margin-top: 28px;
  }

  .tagline-stage {
    min-height: 140px;
  }

  .tagline {
    font-size: 2.76rem;
    letter-spacing: 0.28em;
  }

  .tagline-secondary {
    display: none;
  }

  .support-copy {
    margin-top: 16px;
  }

  .content-spacer {
    display: none;
  }

  .lower-content {
    margin-top: 28px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-grid-group {
    gap: 16px;
  }

  .card-grid--secondary {
    grid-template-columns: 1fr;
  }

  .country-ticker {
    margin-top: 16px;
  }

  [data-shared-footer] {
    margin-top: 24px;
    text-align: center;
  }
}
