:root {
  --bg: #120d0b;
  --bg2: #1c1411;
  --line: #3a2a22;
  --text: #f4ebe4;
  --muted: #b8a497;
  --ember: #ff6a1a;
  --flame: #ffb02e;
  --lagoon: #2ec4b6;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
svg { display: block; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6vw;
  background: rgba(18, 13, 11, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: "Anton", sans-serif; font-size: 1.3rem; letter-spacing: .08em; }
.logo span { color: var(--ember); }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: .9rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav-cta { color: var(--bg) !important; background: var(--flame); padding: 7px 14px; border-radius: 999px; font-weight: 700; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 6vw 60px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(255, 106, 26, .55), transparent 70%),
    radial-gradient(ellipse 50% 30% at 85% 10%, rgba(46, 196, 182, .18), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.presents { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.15rem); margin-bottom: 22px; }
.ciba-badge { font-family: "Anton", sans-serif; font-size: 1.6em; letter-spacing: .08em; padding: 4px 14px; border-radius: 10px; background: linear-gradient(90deg, var(--ember), var(--flame)); color: #1a0f08; }
.eyebrow { color: var(--lagoon); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3.2rem, 14vw, 10rem); line-height: .9; overflow-wrap: anywhere; }
.ember {
  background: linear-gradient(180deg, var(--flame), var(--ember) 70%, #c2310b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { max-width: 560px; margin: 26px 0 30px; font-size: 1.1rem; color: var(--muted); }
.sub strong { color: var(--text); }

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.facts div {
  display: flex; flex-direction: column;
  padding: 14px 18px; min-width: 150px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 14px;
}
.k { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.v { font-family: "Anton", sans-serif; font-size: 1.4rem; text-transform: uppercase; }
.tbc { font-size: .75rem; color: var(--flame); }

.btn {
  align-self: flex-start;
  display: inline-flex; gap: 10px; align-items: center;
  padding: 16px 28px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--flame));
  color: #1a0f08; font-weight: 700;
  box-shadow: 0 10px 40px rgba(255, 106, 26, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(255, 106, 26, .5); }

/* Smoke */
.smoke { position: absolute; inset: 0; pointer-events: none; }
.smoke span {
  position: absolute; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 65%);
  filter: blur(20px);
  animation: rise 14s linear infinite;
}
.smoke span:nth-child(1) { right: 10%; }
.smoke span:nth-child(2) { right: 30%; animation-delay: -5s; width: 240px; height: 240px; }
.smoke span:nth-child(3) { right: 0; animation-delay: -9s; }
@keyframes rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-110vh) scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .smoke span { animation: none; opacity: .5; } }

/* Sections */
section { padding: 90px 6vw; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 40px; display: flex; gap: 16px; align-items: baseline; }
.num { font-family: "Inter", sans-serif; font-size: .9rem; font-weight: 700; color: var(--ember); letter-spacing: .1em; }

/* Days */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.day {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--line);
}
.day.main { background: linear-gradient(140deg, #3a1608, var(--bg2) 70%); border-color: rgba(255, 106, 26, .5); }
.day-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--flame); font-weight: 700; }
.day h3 { font-size: 2.2rem; margin: 6px 0 10px; }
.day p { color: var(--muted); max-width: 40ch; }
.day-art { position: absolute; right: 18px; bottom: 14px; width: 110px; color: var(--ember); opacity: .35; }

.mini { font-size: 1.4rem; margin: 60px 0 20px; color: var(--muted); }
.cats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.cats li {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 10px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--line);
  font-family: "Anton", sans-serif; font-size: 1.3rem; text-transform: uppercase;
  transition: border-color .2s, transform .2s;
}
.cats li:hover { border-color: var(--ember); transform: translateY(-3px); }
.cats svg { width: 56px; height: 56px; color: var(--flame); }

.judging { margin-top: 40px; text-align: center; }
.judging-lead { color: var(--muted); margin-bottom: 14px; }
.scores { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.scores span {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--lagoon); color: var(--lagoon);
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
}

/* Timeline */
#champions { background: var(--bg2); }
.timeline { list-style: none; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 44px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), var(--ember)); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-bottom: 34px; }
.yr { font-family: "Anton", sans-serif; font-size: 1.5rem; color: var(--muted); background: var(--bg2); position: relative; z-index: 1; height: 2rem; }
.timeline h3 { font-size: 1.35rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); }
.timeline strong { color: var(--flame); }
.timeline .next .yr { color: var(--ember); }

/* Cause */
.cause { background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(46, 196, 182, .15), transparent 70%), var(--bg); }
.cause-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.cause-card {
  flex: 1 1 260px; max-width: 380px;
  padding: 30px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--line); text-align: center;
}
.cause-card svg { width: 64px; height: 64px; color: var(--lagoon); margin: 0 auto 14px; }
.cause-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.cause-card p { color: var(--muted); }
.cause-plus { font-family: "Anton", sans-serif; font-size: 3rem; color: var(--ember); }

/* Roles */
.roles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.roles li { padding: 24px; border-radius: var(--radius); background: var(--bg2); border-top: 3px solid var(--ember); }
.roles h3 { font-size: 1.4rem; margin-bottom: 6px; }
.roles p { color: var(--muted); }
.cta-box {
  margin-top: 40px; padding: 40px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, #3a1608, #1c1411 60%, #0f2a28);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.cta-box p { max-width: 520px; font-size: 1.05rem; }
.cta-box .btn { align-self: center; }

footer { padding: 40px 6vw; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .85rem; }
footer .fine { margin-top: 6px; font-size: .75rem; opacity: .7; }

@media (max-width: 680px) {
  .nav nav a:not(.nav-cta) { display: none; }
  section { padding: 70px 6vw; }
  .timeline::before { left: 30px; }
  .timeline li { grid-template-columns: 62px 1fr; gap: 14px; }

  .yr { font-size: 1.2rem; }
}

/* Password gate */
body.locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
}
.gate-box { display: flex; flex-direction: column; gap: 14px; width: min(300px, 80vw); text-align: center; }
.gate-box input {
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  font: inherit; text-align: center;
}
.gate-box button {
  padding: 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--flame); color: var(--bg); font: inherit; font-weight: 700;
}
.gate-error { color: var(--ember); font-size: .9rem; }

/* Gallery */
#gallery { padding-bottom: 60px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px; font-size: .9rem;
  background: linear-gradient(transparent, rgba(10, 6, 4, .9));
}
.g-tall { grid-row: span 2; }
.g-tall img { object-position: 15% center; }
.credit { margin-top: 14px; font-size: .8rem; color: var(--muted); }

@media (max-width: 680px) {
  .gallery { grid-template-columns: 1fr; }
  .g-tall { grid-row: auto; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .gallery .g-tall { aspect-ratio: 3 / 4; }
}
