
:root {
  --red: #e00000;
  --red-mid: #e84040;
  --red-light: #f5a0a0;
  --red-glow: rgba(224,0,0,0.18);
  --bg: #fff8f6;
  --bg2: #fff2ef;
  --bg3: #ffecea;
  --text: #1a1010;
  --text-mid: #4a2a2a;
  --muted: #9a7070;
  --border: rgba(224,0,0,0.12);
  --white: #ffffff;
  --nav-h: 130;
  --nav-w: 680;
}

::selection {
    background: var(--red);
    color: white;
}

[id] {
  scroll-margin-top: 1.75em;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, .heading {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
}

/* ==========================================
   WEDGE NAV — full viewport width
   SVG viewBox: 0 0 1000 130  (we use 1000 as our coordinate space)
   Logo block: x=0..130, full height 130px
   Wedge bottom edge: diagonal from (130,130) to (1000,36)
   Top edge: flat from (0,0) to (1000,0)
   Right edge: (1000,0) to (1000,36)
========================================== */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;          /* full page width */
  height: 7em;
  pointer-events: none;
}

.nav-wedge-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: all;
  filter: drop-shadow(2px 6px 18px rgba(180,0,0,0.28));
}

.nav-logo-block {
  position: absolute;
  top: 0; left: 0;
  width: 7em;
  height: 7em;
  padding: 0.5em;
  pointer-events: all;
  z-index: 2;
}

.nav-logo-block img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  position: absolute;
  left: 8em;
  top: 1.5em;
  display: flex;
  align-items: center;
  gap: 2em;
  pointer-events: all;
  z-index: 2;
}

.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, text-shadow 0.2s;
  line-height: 1;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(255,200,200,0.7);
}

/* ==========================================
   NEWS STRIPE
========================================== */
.news-section { 
    background: var(--bg2);
}

.nw { padding: 2.5rem 0; display: flex; justify-content: center; }
.nw::selection,
.nw *::selection {
    color: #000 !important;
    background: #fff !important;
}
.nw-inner { background: linear-gradient(to right, #e00000 70%, #7a0000); border-left: 3px solid #000000; border-radius: 0.5em; padding: 1.75rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nw-left { display: flex; align-items: center; gap: 1.5em; }
.nw-label { letter-spacing: 0.24em; text-transform: uppercase; color: var(--white); margin-bottom: 1em; }
.nw-title { color: var(--color-text-primary); margin-bottom: 0.25em; }
.nw-sub { color: var(--white); }
.nw-btn { max-width: 15em; padding: 1.25em 1.5em; background: #ffffff; color: #000; text-align: center; text-decoration: none; transition: background 0.2s, gap 0.2s; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); }
.nw-btn:hover { background: #e5e5e5; }

@media (max-width: 1024px) {
    .nw {
        padding: 0;
    }
    .news-section {
        padding: 3em 1em;
    }
}

@media (max-width: 768px) {
    .nw-icon {
        display: none;
    }
    .nw-inner {
        flex-flow: column;
    }
}
/* ==========================================
   HERO
========================================== */
.hero {
  position: relative;
  height: 100vh; /* fallback */
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5) contrast(1.75);
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(224,0,0,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(224,0,0,0.09) 0%, transparent 45%),
    linear-gradient(160deg, #fce8e8 0%, #fff8f6 45%, #ffeee8 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,240,235,0.06) 0%,
    rgba(255,240,235,0.1) 50%,
    rgba(255,240,235,0.7) 82%,
    var(--bg) 100%
  );
  z-index: 1;
}

.hero-stripe {
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--red);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: 13vh;
  padding-top: 13dvh;
  padding-left: 1.5em;
  padding-right: 1.5em; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  min-height: fit-content;
  width: 100%;
  box-sizing: border-box;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255,255,255,0.75);
  padding: 0.5em;
  margin-bottom: 1em;
  border-radius: 0.25em;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.25rem, 12vw, 10rem);
  line-height: 0.88;
  color: white;
  border-radius: 10em;
  width: 100%;
  word-break: break-word;
}

.hero-title span { color: var(--red); display: block; }

.hero-logo-comp {
  position: absolute;
  width: 10em;
  height: 10em;
  right: 20em;
  bottom: 13em;
  filter: grayscale(100%) contrast(0.75);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  max-width: 22em;
  line-height: 1.68;
  background: rgba(255,255,255,0.75);
  border-radius: 0.25em;
  backdrop-filter: blur(4px);
  padding: 0.25em;
}

.hero-cta {
    text-align: center;
    display: inline-block;
    padding: 1em 2em;
    background: var(--red);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(224,0,0,0.28);
}

.hero-cta:hover {
  background: #b80000;
  box-shadow: 0 6px 28px rgba(224,0,0,0.42);
}

.hero-cta--secondary {
  background: #fff;
  color: #000;
}

.hero-cta--secondary:hover {
  background: #e5e5e5;
}

/* ==========================================
   SECTIONS SHARED
========================================== */
section { padding: 5.2em 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5em; }

.post-container { margin-top: 7.75em; margin-bottom: 2em; }

.post-inline-image { width: 100%; object-fit: contain; }

.post-inline-image__story-card img {
  display: block;
  width: 100%;
}

.post-inline-image__story-card iframe {
  display: block;
  width: 100%;
  min-height: 20em;
}

.post-inline-image__story-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 0.5em;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(224,0,0,0.07);
    width: 100%;
    height: 100%;
    margin-bottom: 1em;
}

.section-label {
  font-size: 0.69rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1em;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  color: var(--text);
}
/*
.red-divider {
  width: 44px; height: 3px;
  background: var(--red);
  margin: 12px 0 26px;
}*/

.red-divider img {
    height: 1.5em;
}

/* ==========================================
   ABOUT COMPETITION
========================================== */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5em;
  align-items: start;
}

.about-grid--post {
  grid-template-columns: 2fr 1fr;
  gap: 1em;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--text-mid);
  margin-bottom: 1em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-top: 1.75em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.stat-box { border-left: 3px solid var(--red); padding-left: 0.85em; }
.stat-box .num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: var(--red); line-height: 1; }
.stat-box .lbl { font-size: 0.71rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.map-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 0.5em;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(224,0,0,0.07);
}

.map-card iframe { width: 100%; height: 17.75em; display: block; }

.map-card-caption {
  padding: 0.75em 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--white);
}

.map-card-caption .dot {
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(224,0,0,0.5);
}

.story-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 0.5em;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(224,0,0,0.07);
  width: fit-content;
  max-width: 24em;
}

.story-card img { height: 100%; width: 100%; display: block; object-fit: cover; }

.story-card-caption {
  padding: 0.75em 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--white);
}

.story-card-caption .dot {
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(224,0,0,0.5);
}

/* ==========================================
   PAST COMPETITIONS
========================================== */
.past-section { background: var(--bg2); }

.past-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
  margin-top: 0.65em;
}

.past-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5em;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s, border-color 0.3s;
}

.past-card:hover {
  transform: scale(1.04) translateY(-5px);
  box-shadow: 0 16px 48px rgba(224,0,0,0.13);
  border-color: var(--red);
}

.past-card-img {
  height: 22em;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.past-card-img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.past-card-year-bg {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  color: rgba(224,0,0,0.11);
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}

.coming-soon-badge {
  position: absolute;
  top: 0.75em; right: 0.75em;
  background: var(--white);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  font-weight: 600;
}

.past-card-body { padding: 1em 1em; }
.past-card-year { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--red); line-height: 1; }
.past-card-title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin: 4px 0 8px; }
.past-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ==========================================
   ABOUT US / TEAM
========================================== */

.story-text { max-width: 680px; font-size: 1rem; line-height: 1.85; color: var(--text-mid); }
.story-text p { margin-bottom: 1em; }

.team-grid {
  margin-top: 1.75em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25em;
}

.team-card { text-align: center; }

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg3);
  border-radius: 0.5em;
  margin-bottom: 0.75em;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.team-photo:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(224,0,0,0.12);
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 0.3s; }
.team-photo:hover img { filter: grayscale(0%); }

.team-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.team-role { font-size: 0.74rem; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

.team-photo-everybody {
  background: var(--bg3);
  border-radius: 0.5em;
  margin-top: 1.75em;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.team-photo-everybody:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(224,0,0,0.12);
}

.team-photo-everybody img { display: block; width: 100%; height: 100%; filter: grayscale(20%); transition: filter 0.3s; }
.team-photo-everybody:hover img { filter: grayscale(0%); }

/* ==========================================
   SPONSORS
========================================== */
.sponsors-section { background: var(--bg2); border-top: 1px solid var(--border); }

.sponsor-ribbon-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1.25em 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2.25em 0;
  position: relative;
}

.sponsor-ribbon-wrapper::before,
.sponsor-ribbon-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
}

.sponsor-ribbon-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg2), transparent); }
.sponsor-ribbon-wrapper::after  { right: 0; background: linear-gradient(to left, var(--bg2), transparent); }

.sponsor-ribbon-track {
  display: flex;
  gap: 2.5em;
  align-items: center;
  width: max-content;
  animation: ticker 52s linear infinite;
}

.sponsor-ribbon-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sponsor-logo-slot {
  max-height: 11em; max-width: 11em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sponsor-logo-slot:hover {
  opacity: 1;
  border-color: var(--red-light);
  box-shadow: 0 4px 16px rgba(224,0,0,0.1);
}

.sponsor-logo-slot img { height: 100%; width: 100%; object-fit: contain; }

.featured-sponsor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5em;
  padding: 1.25em;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.featured-sponsor-card img { height: 100%; width: 100%; max-height: 10em; object-fit: contain; }

.featured-sponsor-card:hover {
  border-color: var(--red-light);
  box-shadow: 0 8px 28px rgba(224,0,0,0.09);
}

.featured-sponsor-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.5em; }
.featured-sponsor-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.72; }

/* ==========================================
   FOOTER
========================================== */
footer {
  background: #160808;
  color: rgba(255,255,255,0.8);
  padding: 3.5em 0 1.75em;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; color: #e84040; margin-bottom: 0.5em; }

.footer-brand-desc { font-size: 0.83rem; color: rgba(255,255,255,0.42); line-height: 1.75; max-width: 260px; }

.footer-social { margin-top: 1em; display: flex; gap: 1em; }
.footer-social a { font-size: 0.73rem; letter-spacing: 0.14em; color: #e84040; text-decoration: none; text-transform: uppercase; }
.footer-social a:hover { color: #ff8080; }

.footer-col h5 { font-size: 0.67rem; letter-spacing: 0.22em; text-transform: uppercase; color: #e84040; margin-bottom: 1em; font-weight: 600; }
.footer-col a { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.42); text-decoration: none; margin-bottom: 0.5em; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.88); }

.footer-bottom {
  padding-top: 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.footer-partner-logos { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }

.footer-logo-slot {
  width: 66px; height: 66px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.footer-logo-slot:hover { border-color: #e84040; background: rgba(224,0,0,0.1); }

.footer-logo-slot img { max-width: 48px; max-height: 48px; object-fit: contain; filter: brightness(1.5) grayscale(30%); }

.footer-logo-slot .logo-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  letter-spacing: 0.05em;
  padding: 0.25em;
  line-height: 1.3;
}

.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); }

/* ==========================================
   MOBILE NAV
========================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 0 1em;
  height: 3.25em;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(224,0,0,0.1);
}

.mobile-nav a {
  text-decoration: none;
}

.mobile-nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.35rem; color: var(--red); letter-spacing: 0.08em; }

.mobile-hamburger { display: flex; flex-direction: column; gap: 0.25em; cursor: pointer; padding: 0.25em; }
.mobile-hamburger span { width: 1.25em; height: 2px; background: var(--text); display: block; transition: 0.3s; }

.mobile-menu {
  position: fixed;
  top: 3.25em; left: 0; right: 0;
  background: var(--white);
  z-index: 99;
  padding: 1em 1.25em;
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(224,0,0,0.08);
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.1em; color: var(--text); text-decoration: none; padding: 0.5em 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--red); }

/* ==========================================
   SCROLL ANIMATIONS
========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.fade-up.visible { opacity: 1; transform: none; }

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1440px) {
    .hero-logo-comp {
        filter: grayscale(100%) contrast(0.95);
        position: unset;
    }
    
    .hero-logo-comp img {
        height: 100%;
        width: 100%;
        object-fit:contain;
    }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75em; }
  .mobile-nav { display: flex; }
  .nav-wrapper { display: none; }
}

@media (max-width: 768px) {
  .post-title-image { display: none; }
  .post-container { margin-top: 4.25em; }
  section { padding: 3.5em 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2.25em; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .past-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1em; }
  .footer-top { grid-template-columns: 1fr; gap: 1.25em; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  [id] {
    scroll-margin-top: 0;
  }
  .sponsor-ribbon-wrapper::before,
  .sponsor-ribbon-wrapper::after {
    width: 20px;
  }
}