:root {
  --accent: #ccff00;
  --navy: #04066b;
  --orange: #ff4f0a;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding-inline: 28px;
  width: 100%;
}

.event-nav {
  background: var(--white);
  position: relative;
  z-index: 10;
}

.nav-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
}

.brand-link img {
  display: block;
  height: 43px;
  width: auto;
}

.back-link {
  border-bottom: 2px solid transparent;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-block: 5px;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.success-hero {
  align-items: center;
  background: linear-gradient(135deg, #020347 0%, var(--navy) 58%, #091993 100%);
  display: flex;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  padding-block: clamp(70px, 10vw, 130px);
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.status-pill {
  background: var(--orange);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  text-transform: uppercase;
}

.event-meta {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-top: 22px;
}

.force-logo {
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
  margin-block: 26px 20px;
  max-height: 140px;
  max-width: min(140px, 40vw);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

h1,
h2 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
  max-width: 900px;
}

.success-copy {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-top: 24px;
  max-width: 680px;
}

.photos-card {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  display: flex;
  gap: 36px;
  justify-content: space-between;
  margin-top: 44px;
  max-width: 960px;
  padding: 26px;
}

.photos-label {
  color: var(--accent);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.photos-card h2 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.photos-button {
  align-items: center;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.05em;
  padding: 15px 22px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.photos-button:hover,
.photos-button:focus-visible {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.event-gallery {
  background: #f5f6fb;
  color: var(--navy);
  padding-block: clamp(72px, 9vw, 118px);
}

.gallery-heading {
  max-width: 720px;
}

.gallery-kicker {
  color: var(--orange);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.gallery-heading h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.gallery-heading p {
  color: rgba(4, 6, 107, 0.68);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  margin-top: 16px;
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 260px 260px 340px;
  margin-top: 42px;
}

.gallery-item {
  background: #dfe3ef;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(4, 6, 107, 0.1);
  margin: 0;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-structure {
  grid-column: 1 / 3;
  grid-row: 1;
}

.gallery-swim {
  grid-column: 3;
  grid-row: 1 / 3;
}

.gallery-start {
  grid-column: 1 / 3;
  grid-row: 2;
}

.gallery-run {
  grid-column: 1;
  grid-row: 3;
}

.gallery-overcome {
  grid-column: 2;
  grid-row: 3;
}

.gallery-finish {
  grid-column: 3;
  grid-row: 3;
}

.gallery-photos-link {
  align-items: center;
  border-bottom: 2px solid var(--orange);
  color: var(--navy);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0.07em;
  margin-top: 32px;
  padding-block: 5px;
  text-transform: uppercase;
  transition: color 0.2s ease, gap 0.2s ease;
}

.gallery-photos-link:hover,
.gallery-photos-link:focus-visible {
  color: var(--orange);
  gap: 15px;
}

.event-footer {
  background: #02033f;
  padding-block: 28px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-brand img {
  display: block;
  height: 38px;
  width: auto;
}

.event-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  text-align: center;
}

.event-footer a:hover,
.event-footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 720px) {
  .container {
    padding-inline: 20px;
  }

  .nav-inner {
    min-height: 70px;
  }

  .brand-link img {
    height: 36px;
  }

  .back-link {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .success-hero {
    min-height: calc(100svh - 70px);
    padding-block: 64px;
  }

  .force-logo {
    max-height: 96px;
    max-width: 96px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .photos-card {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    margin-top: 34px;
    padding: 22px;
  }

  .photos-button {
    width: 100%;
  }

  .event-gallery {
    padding-block: 64px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    margin-top: 30px;
  }

  .gallery-item,
  .gallery-structure,
  .gallery-swim,
  .gallery-start,
  .gallery-run,
  .gallery-overcome,
  .gallery-finish {
    aspect-ratio: 4 / 5;
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-structure,
  .gallery-start {
    aspect-ratio: 3 / 2;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
