:root {
  color-scheme: light;
  --navy: #0c2b54;
  --deep: #061b36;
  --orange: #f97316;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(249, 115, 22, 0.1), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f7fafc 52%, #fff 100%);
}

img {
  display: block;
}

p,
a,
span {
  overflow-wrap: anywhere;
}

.site-shell {
  background:
    linear-gradient(90deg, rgba(12, 43, 84, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 43, 84, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

.sport-grid {
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(249, 115, 22, 0.05) 45% 45.4%, transparent 45.4%),
    radial-gradient(circle at 80% 22%, rgba(12, 43, 84, 0.08), transparent 24rem);
}

.text-balance {
  text-wrap: balance;
}

.brand-lockup {
  transform-origin: center;
  transition: transform 320ms ease;
}

.brand-lockup:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  animation: fade-up 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal:nth-of-type(1) {
  --reveal-delay: 40ms;
}

.reveal:nth-of-type(2) {
  --reveal-delay: 120ms;
}

.reveal:nth-of-type(3) {
  --reveal-delay: 200ms;
}

.reveal:nth-of-type(4) {
  --reveal-delay: 280ms;
}

.reveal:nth-of-type(5) {
  --reveal-delay: 360ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.partnership-card {
  position: relative;
  overflow: hidden;
}

.partnership-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.12), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(12, 43, 84, 0.08), transparent 16rem);
}

.partnership-card > * {
  position: relative;
}

.edupart-mark {
  transition:
    transform 350ms ease,
    box-shadow 350ms ease;
}

.partnership-card:hover .edupart-mark {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(12, 43, 84, 0.14);
}

.hero-visual {
  perspective: 1200px;
}

.sport-frame {
  aspect-ratio: 1.02 / 1;
  transform: rotateX(0deg) rotateY(0deg);
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

#heroImage {
  object-position: 58% center;
  transition: transform 500ms ease;
}

.sport-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.hero-visual:hover .sport-frame {
  transform: rotateX(1.5deg) rotateY(-2deg) translateY(-3px);
  box-shadow: 0 36px 110px rgba(12, 43, 84, 0.24);
}

.glass-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.8rem 0.85rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.glass-icon {
  display: grid;
  height: 2rem;
  width: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.92);
}

.glass-icon svg {
  height: 1.2rem;
  width: 1.2rem;
}

.contact-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  padding: 1.25rem;
  color: #fff;
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    background 300ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(255, 255, 255, 0.105);
}

.contact-icon {
  display: grid;
  height: 3rem;
  width: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  transition:
    background 300ms ease,
    color 300ms ease,
    transform 300ms ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.04);
  background: var(--orange);
  color: #fff;
}

.sport-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-inline: 0.5rem;
  text-align: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sport-value-icon {
  height: 3rem;
  width: 3rem;
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(68rem, calc(100vw - 2rem));
  margin-inline: auto;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem 3.25rem 1rem 1rem;
  color: var(--navy);
  box-shadow: 0 24px 80px rgba(6, 27, 54, 0.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transform: translateY(1rem);
  opacity: 0;
  animation: cookie-in 500ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.cookie-card * {
  min-width: 0;
}

@keyframes cookie-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-icon {
  display: grid;
  height: 3rem;
  width: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.cookie-icon svg {
  height: 1.45rem;
  width: 1.45rem;
}

.cookie-copy h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
}

.cookie-copy {
  min-width: 0;
}

.cookie-copy p {
  margin: 0.25rem 0 0;
  width: 100%;
  max-width: 46rem;
  max-inline-size: 100%;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.cookie-btn {
  min-height: 2.75rem;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-size: 0.86rem;
  font-weight: 900;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.cookie-btn:hover,
.cookie-close:hover {
  transform: translateY(-1px);
}

.cookie-btn-primary {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.26);
}

.cookie-btn-secondary {
  border: 1px solid rgba(12, 43, 84, 0.16);
  background: #fff;
  color: var(--navy);
}

.cookie-btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--orange);
}

.cookie-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border-radius: 999px;
  color: #64748b;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.cookie-close:hover {
  background: #f1f5f9;
  color: var(--navy);
}

.cookie-close svg {
  height: 1.1rem;
  width: 1.1rem;
}

@media (max-width: 640px) {
  .site-shell {
    background-size: 54px 54px;
  }

  .sport-frame {
    aspect-ratio: 0.78 / 1;
  }

  #heroImage {
    object-position: 70% center;
  }

  .glass-pill {
    padding: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .glass-pill:not(:first-child) {
    display: none;
  }

  .cookie-banner {
    padding: 0.75rem;
  }

  .cookie-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    padding: 0.95rem;
    padding-top: 2.75rem;
    overflow: hidden;
  }

  .cookie-icon {
    height: 2.75rem;
    width: 2.75rem;
  }

  .cookie-copy {
    width: 100%;
    max-width: 100%;
  }

  .cookie-copy h2 {
    font-size: 0.95rem;
  }

  .cookie-copy p {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .cookie-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cookie-close {
    right: 0.65rem;
    top: 0.55rem;
    background: #f8fafc;
    color: var(--navy);
  }

  .cookie-btn {
    flex: 1;
    min-height: 2.9rem;
    padding-inline: 0.75rem;
  }
}

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

  .reveal,
  .reveal.is-visible,
  .brand-lockup,
  .sport-frame,
  .contact-card,
  .contact-icon,
  .edupart-mark,
  .cookie-card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
