@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --maroon: #6A1E1E;
  --maroon-d: #3d1010;
  --maroon-l: #f8eded;
  --gold: #c9a84c;
  --gold-l: #f9f0dc;
  --cream: #fdf8f0;
  --dark: #1a0a0a;
  --text: #2d1a1a;
  --muted: #7a5f5f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

/* ── BACK LINK ───────────────────────────────────────────────────── */
.back-link {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  text-decoration: none;
  background: rgba(106, 30, 30, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: .6rem 1.25rem;
  border-radius: 999px;
  transition: all .3s ease;
}

.back-link:hover {
  background: rgba(106, 30, 30, 1);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}

/* ── PARTICLES ───────────────────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--maroon-l);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: .8;
  }

  90% {
    opacity: .8;
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(106, 30, 30, .5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(201, 168, 76, .06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fade-up .8s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: .95;
  margin-bottom: 2rem;
  animation: fade-up .8s .1s ease both;
}

.hero h1 .line-1 {
  display: block;
  color: rgba(255, 255, 255, .15);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .2);
}

.hero h1 .line-2 {
  display: block;
  color: #fff;
}

.hero h1 .line-3 {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 3rem;
  animation: fade-up .8s .2s ease both;
}

/* ── INTRO STRIP ─────────────────────────────────────────────────── */
.intro-strip {
  background: var(--maroon);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.intro-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.intro-strip .container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.intro-big-year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(255, 255, 255, .08);
  line-height: 1;
  border-right: 2px solid rgba(201, 168, 76, .3);
  padding-right: 3rem;
  text-align: center;
}

.intro-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.85;
}

/* ── TIMELINE ────────────────────────────────────────────────────── */
.timeline-section {
  background: var(--dark);
  padding: 8rem 2rem;
  position: relative;
}

.tl-header {
  text-align: center;
  margin-bottom: 6rem;
}

.tl-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--maroon-l), rgba(248, 237, 237, .3), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .6s ease, transform .6s ease;
}

.tl-item.visible {
  opacity: 1;
  transform: none;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: .4rem;
  width: 12px;
  height: 12px;
  background: transparent;
  border-radius: 50%;
  border: 2px solid var(--maroon-l);
  box-shadow: 0 0 0 3px var(--dark);
}

.tl-item.highlight::before {
  width: 18px;
  height: 18px;
  left: calc(-3rem - 3px);
  background: transparent;
  border-color: var(--maroon-l);
  box-shadow: 0 0 0 3px var(--dark), 0 0 15px rgba(248, 237, 237, .25);
}

.tl-year {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
  opacity: .7;
}

.tl-item.highlight .tl-year {
  opacity: 1;
  font-size: 3rem;
}

.tl-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}

.tl-item-title::before {
  content: '';
  width: 2.3rem;
  height: 2.3rem;
  color: var(--maroon-l);
  border: 1.5px solid currentColor;
  border-radius: .7rem;
  background:
    var(--icon-mask) center / 1.15rem 1.15rem no-repeat,
    rgba(248, 237, 237, .08);
  flex: 0 0 auto;
}

.tl-item:nth-child(1) {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8eded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M5 10l7-6 7 6'/%3E%3Cpath d='M7 10v8'/%3E%3Cpath d='M12 10v8'/%3E%3Cpath d='M17 10v8'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E");
}

.tl-item:nth-child(2) {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8eded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10a4 4 0 0 1 4 4v12H8a3 3 0 0 1-3-3z'/%3E%3Cpath d='M8 20a3 3 0 0 1 0-6h11'/%3E%3C/svg%3E");
}

.tl-item:nth-child(3) {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8eded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5 9-5z'/%3E%3Cpath d='M3 12l9 5 9-5'/%3E%3Cpath d='M3 16l9 5 9-5'/%3E%3C/svg%3E");
}

.tl-item:nth-child(4) {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8eded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8'/%3E%3Cpath d='M12 16v4'/%3E%3C/svg%3E");
}

.tl-item:nth-child(5) {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8eded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 14c-1.5 1.5-2 4-2 4s2.5-.5 4-2'/%3E%3Cpath d='M14 5l5 5'/%3E%3Cpath d='M7 16l9-9 3-1-1 3-9 9z'/%3E%3C/svg%3E");
}

.tl-item:nth-child(6) {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8eded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-2 5-5 2 2-5 5-2z'/%3E%3C/svg%3E");
}

.tl-item.highlight .tl-item-title {
  font-size: 1.6rem;
  color: var(--gold);
}

.tl-item-body {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.8;
  max-width: 600px;
}

.tl-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(248, 237, 237, .08);
  color: var(--maroon-l);
  border: 1px solid rgba(248, 237, 237, .35);
  margin-top: .75rem;
}

/* FOOTER  */
.page-footer {
  background: var(--dark);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, .15);
}

.page-footer p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .3);
}

.page-footer a {
  color: var(--gold);
  text-decoration: none;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .intro-strip .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-big-year {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, .3);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }
}
