/* =========================================================
   AI-Lympics - Coming Soon
   Edit colours and fonts in :root below.
   ========================================================= */

:root {
  --midnight: #0a1022;
  --midnight-card: #101833;
  --midnight-deep: #060a17;
  --gold: #d9b36c;
  --gold-dark: #7a5f2c;
  --gold-pale: #f4e2b8;
  --ivory: #eef1f8;
  --mist: #c3cadb;

  --font-display: "Teknaf", "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --section-pad: 96px;
}
@media (min-width: 768px) {
  :root { --section-pad: 144px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; }
::selection { background: var(--gold); color: var(--midnight); }

/* ---------- Helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

.disp {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
}
.disp em { color: var(--gold); }
.lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.h2 { font-size: clamp(32px, 4.4vw, 72px); margin-top: 16px; }
.h2--flush { margin-top: 0; }

.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--midnight); color: var(--ivory); }
.section--card { background: var(--midnight-card); color: var(--ivory); }
.section--ivory { background: var(--ivory); color: var(--midnight); }

#format, #faq { scroll-margin-top: 64px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 16, 34, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 179, 108, .2);
}
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 32px; height: 32px; }
.nav__name { font-size: 20px; line-height: 28px; }
.nav__links { display: flex; gap: 20px; }
.nav__links a, .arrow-link { transition: color .2s; }
.nav__links a:hover, .arrow-link:hover { color: var(--gold); }
@media (min-width: 768px) {
  .nav__name { font-size: 24px; line-height: 32px; }
  .nav__links { gap: 32px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: grid; overflow: hidden; background: var(--midnight); }
.hero__copy {
  position: relative; z-index: 10; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter);
}
.hero__title { font-size: clamp(46px, 4.6vw, 90px); margin-top: 24px; overflow-wrap: break-word; text-wrap: balance; }
.hero__lead { margin-top: 32px; max-width: 448px; font-size: 18px; line-height: 1.6; color: var(--mist); }
.hero__actions { margin-top: 40px; display: flex; align-items: center; gap: 24px; }
.hero__soon {
  font-size: 24px; line-height: 32px; color: var(--gold);
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 8px 0;
}
.arrow-link { display: inline-flex; align-items: center; gap: 8px; }
.arrow { transition: transform .3s; }
.arrow-link:hover .arrow { transform: translateX(4px); }
.hero__visual { position: relative; min-height: 60svh; perspective: 1000px; }
.hero__figure {
  position: absolute; inset: 0; overflow: hidden; padding: 32px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 55%, #1c274a, var(--midnight) 70%);
}
.medal { width: 100%; height: 100%; max-height: 78svh; animation: medal-float 6s ease-in-out infinite alternate; }
.medal-spin, .medal-spin-rev, .medal-pulse { transform-origin: 200px 330px; }
.medal-spin { animation: spin 40s linear infinite; }
.medal-spin-rev { animation: spin 28s linear infinite reverse; }
.medal-pulse { animation: medal-pulse 4s ease-in-out infinite; }
.circuit-line { stroke-dasharray: 1; animation: draw 1.6s .6s ease both; }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__copy { padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px)); }
  .hero__soon { font-size: 30px; line-height: 36px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--midnight); overflow: hidden; padding: 20px 0; }
.marquee__track {
  display: flex; width: max-content; white-space: nowrap;
  font-size: 24px; line-height: 32px;
  animation: marquee 60s 1.4s linear infinite;
}
.marquee__row { display: flex; gap: 48px; padding-right: 48px; }
@media (min-width: 768px) { .marquee__track { font-size: 30px; line-height: 36px; } }

/* ---------- Format ---------- */
.route-art { width: 100%; margin-top: 64px; }
.route-flow { animation: route-flow 1.6s linear infinite; }
.format__stages { margin-top: 48px; display: grid; gap: 48px; text-align: left; }
.stage { border-top: 1px solid var(--gold); padding-top: 24px; }
.stage--one { border-top-color: rgba(217, 179, 108, .4); }
.stage__title { margin-top: 12px; font-size: 30px; line-height: 36px; }
.stage__body { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--mist); }
@media (min-width: 768px) {
  .format__stages { grid-template-columns: 1fr 1fr; }
  .stage__title { font-size: 36px; line-height: 40px; }
}

/* ---------- Laurels ---------- */
.laurels { position: relative; overflow: hidden; }
.laurels__word { font-size: clamp(56px, 12vw, 200px); color: var(--gold-dark); overflow-wrap: break-word; }
.laurels__text { margin: 24px auto 0; max-width: 55ch; font-size: 18px; line-height: 1.6; }

/* ---------- Disciplines ---------- */
.disciplines__note { margin-top: 24px; max-width: 576px; font-size: 18px; line-height: 28px; color: var(--mist); }
.disciplines__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.discipline { border: 1px solid rgba(217, 179, 108, .3); padding: 24px; transition: border-color .3s; }
.discipline:hover { border-color: var(--gold); }
.discipline svg { width: 100%; transition: transform .5s; }
.discipline:hover svg { transform: rotate(6deg); }
.discipline__title { margin-top: 16px; font-size: 18px; line-height: 28px; }
@media (min-width: 768px) {
  .disciplines__grid { grid-template-columns: repeat(4, 1fr); }
  .discipline__title { font-size: 24px; line-height: 32px; }
}

/* ---------- Moments ---------- */
.moments__grid { margin-top: 48px; display: grid; gap: 24px; }
.moment { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--midnight); }
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.moment:hover img { transform: scale(1.05); }
.moment::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 34, .85), rgba(10, 16, 34, .1), transparent);
}
.moment figcaption { position: absolute; z-index: 1; left: 20px; bottom: 20px; color: var(--ivory); }
@media (min-width: 768px) { .moments__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 48px; }
.faq__mark { font-size: clamp(96px, 14vw, 220px); }
.faq__list { align-self: end; border-top: 1px solid rgba(10, 16, 34, .2); }
.faq__item { border-bottom: 1px solid rgba(10, 16, 34, .2); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; font-size: 18px; line-height: 28px; transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-dark); }
.faq__item summary::after {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { padding-bottom: 24px; font-size: 18px; line-height: 28px; }
@media (min-width: 768px) {
  .faq { grid-template-columns: 5fr 7fr; }
  .faq__item summary { font-size: 24px; line-height: 32px; }
}

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(217, 179, 108, .2), transparent 60%);
}
.closing__inner { position: relative; z-index: 10; }
.closing__title { margin-top: 24px; font-size: clamp(44px, 9vw, 150px); color: var(--gold); }
.closing__text { margin-top: 24px; font-size: 20px; line-height: 28px; color: var(--mist); }

/* ---------- Footer ---------- */
.footer { background: var(--midnight-deep); color: var(--mist); padding: 48px 0; border-top: 1px solid rgba(217, 179, 108, .2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__name { font-size: 20px; line-height: 28px; text-transform: none; letter-spacing: 0; color: var(--ivory); }

/* ---------- Entrance animations ---------- */
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; animation: rise 1s cubic-bezier(.2, .7, 0, 1) both; }
.anim-fade { animation: fade .8s cubic-bezier(.2, .7, 0, 1) both; }
.anim-wipe { animation: wipe 1.2s cubic-bezier(.2, .7, 0, 1) both; }

@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes medal-float { from { transform: translateY(-10px) rotate(-2deg); } to { transform: translateY(10px) rotate(2deg); } }
@keyframes medal-pulse { 50% { opacity: .55; transform: scale(.94); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes route-flow { to { stroke-dashoffset: -40; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
