@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --steam-cyan: #0F9FBE;
  --steam-cyan-line: #5ECBE3;
  --steam-ice: #DDF3F8;
  --steam-navy: #25365E;
  --steam-charcoal: #353233;
  --steam-magenta: #E60F8A;
  --steam-violet: #6B4CC2;
  --steam-white: #FFFFFF;
  --steam-shell: #F7FBFC;
  --steam-shadow: 0 30px 80px rgba(37, 54, 94, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--steam-charcoal);
  background:
    radial-gradient(circle at top left, rgba(15, 159, 190, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 203, 227, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 203, 227, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 65%);
  z-index: -2;
}

.font-display {
  font-family: "Oxanium", sans-serif;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(230, 15, 138, 0.12), transparent 60%);
  z-index: -1;
  transform: translate(-35%, -10%);
}

.panel-cut {
  clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%);
}

.panel-outline {
  position: relative;
  border: 1px solid rgba(94, 203, 227, 0.7);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--steam-shadow);
}

.panel-outline::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--steam-magenta), var(--steam-cyan));
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--steam-magenta);
}

.section-kicker::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--steam-cyan);
}

.hero-glow {
  background:
    radial-gradient(circle at top right, rgba(107, 76, 194, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(15, 159, 190, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(221, 243, 248, 0.9));
}

.nav-link {
  position: relative;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand__logo {
  display: block;
  width: auto;
  height: clamp(2.75rem, 4vw, 3.5rem);
}

.site-header__inner {
  position: relative;
}

.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(94, 203, 227, 0.25);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 55px rgba(37, 54, 94, 0.12);
  padding: 1rem 1.1rem 1.2rem;
}

.site-nav.is-open {
  display: flex;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--steam-cyan), var(--steam-magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.blueprint-frame {
  position: relative;
  isolation: isolate;
}

.hero-feature-card {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-feature-card__stage {
  position: relative;
  min-height: 30rem;
}

.hero-feature-card__visual {
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  display: block;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(94, 203, 227, 0.15);
  mix-blend-mode: multiply; /* Blends white background with the grid */
}

.hero-feature-card__details {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  z-index: 20;
}

.hero-feature-card__overlay {
  width: min(17rem, 100%);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(37, 54, 94, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.programme-hero-card {
  position: relative;
}

.programme-hero-card__stage {
  min-height: 26rem;
}

.programme-hero-card__visual {
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  display: block;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(94, 203, 227, 0.15);
  mix-blend-mode: multiply;
}

.sponsors-hero-card {
  position: relative;
}

.sponsors-hero-card__stage {
  min-height: 28rem;
}

.sponsors-hero-card__visual {
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  display: block;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(94, 203, 227, 0.15);
  mix-blend-mode: multiply;
}

.blueprint-frame::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  border: 1px dashed rgba(94, 203, 227, 0.3);
  border-radius: 3.5rem;
  z-index: -1;
  pointer-events: none;
}

.blueprint-frame::after {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 5rem;
  height: 5rem;
  border-top: 2px solid var(--steam-magenta);
  border-right: 2px solid var(--steam-magenta);
  border-radius: 0 1.5rem 0 0;
  opacity: 0.4;
  z-index: -1;
}

.perspective-box {
  perspective: 1500px;
}

.tilt-card {
  transform: rotateY(-7deg) rotateX(4deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: rotateY(-2deg) rotateX(1deg);
}

.scanline-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(94, 203, 227, 0.05) 50%,
    transparent 50.5%
  );
  background-size: 100% 4px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}

.metric-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(94, 203, 227, 0.7);
  backdrop-filter: blur(14px);
}

.dark-module {
  background: linear-gradient(180deg, rgba(37, 54, 94, 0.96), rgba(53, 50, 51, 0.98));
  color: white;
}

.dark-module .section-kicker {
  color: #9ae7ff;
}

.dark-module .section-kicker::before {
  background: #9ae7ff;
}

.reveal {
  transition:
    opacity 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-note {
  min-height: 1.25rem;
}

.focus-ring:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(230, 15, 138, 0.35);
  outline-offset: 3px;
}

.sponsor-table th,
.sponsor-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(94, 203, 227, 0.2);
  text-align: left;
}

.sponsor-logo-tile {
  min-height: 6rem;
  border: 1px dashed rgba(94, 203, 227, 0.8);
  background: rgba(255, 255, 255, 0.8);
}

.timeline-stripe {
  background:
    linear-gradient(180deg, rgba(15, 159, 190, 0.12), rgba(15, 159, 190, 0)),
    linear-gradient(90deg, rgba(15, 159, 190, 0.55), rgba(230, 15, 138, 0.5));
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mobile-benefit-card {
  border: 1px solid rgba(94, 203, 227, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

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

  .reveal,
  .nav-link::after {
    transition: none;
  }

  body.js-ready .reveal,
  body.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .site-nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .site-brand {
    max-width: 100%;
  }

  .site-nav {
    left: 1rem;
    right: 1rem;
  }

  .hero-feature-card__visual {
    min-height: 18rem;
  }

  .hero-feature-card__stage {
    min-height: 20rem;
  }

  .programme-hero-card__stage {
    min-height: 20rem;
  }

  .sponsors-hero-card__stage {
    min-height: 20rem;
  }

  .hero-feature-card__details {
    position: static;
    margin-top: 1.5rem;
  }

  .hero-feature-card__overlay {
    width: 100%;
  }
}
