/* ========================================
   DSL Hackathon Series — EPIC-inspired Design
   Color palette: Dark charcoal #1a1a1e, Gold accent #C0AE7F
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #1a1a1e;
  --bg-light: #232328;
  --bg-card: #28282e;
  --text: #e8e6e1;
  --text-muted: #8a8a8f;
  --gold: #C0AE7F;
  --gold-light: #d4c79e;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-light: #ebe8e0;
  --bg-card: #ffffff;
  --text: #2a2a2e;
  --text-muted: #6a6a6f;
  --gold: #9a8a5a;
  --gold-light: #b5a472;
  --white: #1a1a1e;
  --border: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ---------- Global Pixel Cursor ---------- */
body, body * {
  cursor: none !important;
}

/* ---------- Pixel Mouse Cursor ---------- */
.cursor-pixel {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-2px, -2px);
  image-rendering: pixelated;
  transition: none;
}

.cursor-pixel svg {
  width: 24px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(192, 174, 127, 0.7));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cursor-pixel.hover svg {
  filter: drop-shadow(0 0 12px rgba(192, 174, 127, 1)) drop-shadow(0 0 24px rgba(192, 174, 127, 0.4));
  transform: scale(1.15);
}

/* ---------- Cursor Trail / Glitch Ring ---------- */
.cursor-follower {
  position: fixed;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 0 15px rgba(192, 174, 127, 0.15), inset 0 0 15px rgba(192, 174, 127, 0.05);
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.6;
}

.cursor-follower.hover {
  width: 72px;
  height: 72px;
  border-color: var(--gold-light);
  opacity: 0.9;
  box-shadow: 0 0 30px rgba(192, 174, 127, 0.25), inset 0 0 20px rgba(192, 174, 127, 0.08);
}

/* ---------- Hacker Scanline Overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ---------- Cursor Glitch Trail Particles ---------- */
.cursor-trail-dot {
  position: fixed;
  width: 3px;
  height: 3px;
  background: var(--gold);
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  image-rendering: pixelated;
}

@media (pointer: coarse) {
  body, body * { cursor: auto !important; }
  .cursor-pixel,
  .cursor-follower,
  .cursor-trail-dot { display: none; }
  body::after { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 101;
}

.nav__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav__menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__menu-btn.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__menu-btn.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu__link {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--gold);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(192, 174, 127, 0.3);
  border-radius: 100px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero__title span {
  display: block;
}

.hero__title--outline {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

.hero__subtitle {
  max-width: 480px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s var(--ease);
}

.hero__cta:hover {
  gap: 1.25rem;
}

.hero__cta svg {
  transition: transform 0.3s var(--ease);
}

.hero__cta:hover svg {
  transform: translate(4px, -4px);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.hero__scroll-indicator span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 700px;
}

.section__desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 1.25rem;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about__card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.5s var(--ease), border-color 0.5s ease;
}

.about__card:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 174, 127, 0.2);
}

.about__card-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.about__card-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about__card-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Current Edition ---------- */
.current__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.current__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.text-gold {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
}

.current__desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.current__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.current__detail-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.375rem;
}

.current__detail-value {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
}

/* Current Visual */
.current__visual-inner {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
}

.current__visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  height: 100%;
}

.current__visual-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: cellPulse 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

@keyframes cellPulse {
  0%, 100% { background: var(--bg-card); }
  50% { background: rgba(192, 174, 127, 0.08); border-color: rgba(192, 174, 127, 0.15); }
}

.current__visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.current__visual-year {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 700;
  font-family: var(--font-serif);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(192, 174, 127, 0.25);
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn svg {
  transition: transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--gold-light);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--text);
  background: transparent;
  color: var(--white);
}

/* ---------- Marquee ---------- */
.marquee {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee__dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

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

/* ---------- Past Editions ---------- */
.editions__list {
  display: flex;
  flex-direction: column;
}

.edition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.edition-card:first-child {
  border-top: 1px solid var(--border);
}

.edition-card:hover {
  padding-left: 1.5rem;
}

.edition-card:hover .edition-card__title {
  color: var(--gold);
}

.edition-card:hover .edition-card__arrow {
  background: var(--gold);
  color: var(--bg);
  transform: rotate(0deg);
}

.edition-card__left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.edition-card__number {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 2rem;
}

.edition-card__title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  transition: color 0.3s ease;
}

.edition-card__theme {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-left: 1rem;
}

.edition-card__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.edition-card__date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.edition-card__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transform: rotate(-45deg);
  transition: all 0.4s var(--ease);
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats__item {
  padding: 2rem;
}

.stats__number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--gold);
  display: inline;
}

.stats__suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--gold);
}

.stats__label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- CTA ---------- */
.cta__inner {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(192, 174, 127, 0.04), transparent 60%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Reveal Animation ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .current__layout {
    grid-template-columns: 1fr;
  }

  .current__visual-inner {
    max-width: 360px;
    margin: 0 auto;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: flex;
  }

  .current__details {
    grid-template-columns: 1fr;
  }

  .edition-card__left {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .edition-card__theme {
    margin-left: 0;
  }

  .edition-card__right {
    gap: 1rem;
  }

  .edition-card__date {
    display: none;
  }

  .footer__top {
    flex-direction: column;
    gap: 3rem;
  }

  .footer__links {
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Music Toggle ---------- */
.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(192, 174, 127, 0.2);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(192, 174, 127, 0.2);
}

.theme-icon-light,
.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light,
:root:not([data-theme]) .theme-icon-light {
  display: block;
}

[data-theme="light"] .theme-icon-dark {
  display: block;
}

[data-theme="light"] .theme-icon-light {
  display: none;
}

/* ---------- Edition Detail Page ---------- */
.edition-detail__hero {
  padding: 10rem 0 3rem;
}

.edition-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  transition: color 0.3s ease, gap 0.3s var(--ease);
}

.edition-detail__back:hover {
  color: var(--gold);
  gap: 0.75rem;
}

.edition-detail__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.edition-detail__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.edition-detail__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.edition-detail__cover {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.edition-detail__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.edition-detail__image-placeholder span {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.edition-detail__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Project Carousel ---------- */
.project-carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2rem 0;
}

.project-carousel__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0 1.5rem;
  animation: carouselScroll linear infinite;
  will-change: transform;
}

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

.project-carousel__fallback {
  width: 100%;
  padding: 3rem;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-card {
  flex-shrink: 0;
  width: 280px;
  padding: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(192, 174, 127, 0.3);
  transform: translateY(-4px);
}

.project-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__lead {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-card__participants {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.project-card__stats {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.project-card__stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-card__stat svg {
  width: 14px;
  height: 14px;
}

.project-card__stat--gold {
  color: var(--gold);
}

/* ---------- Carousel Arrow Buttons ---------- */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.project-carousel:hover .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--bg-light);
}

.carousel-arrow--left {
  left: 0.75rem;
}

.carousel-arrow--right {
  right: 0.75rem;
}

.project-carousel {
  position: relative;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
  .carousel-arrow--left { left: 0.25rem; }
  .carousel-arrow--right { right: 0.25rem; }
}

/* ---------- All Projects Button ---------- */

.project-carousel__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Wide Modal Variant ---------- */

.modal--wide {
  max-width: 720px;
}

/* ---------- Project List Card (inside modal) ---------- */

.project-list-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-list-card:last-child {
  margin-bottom: 0;
}

.project-list-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.project-list-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-list-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.project-list-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.project-list-card__lead {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-list-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.project-list-card__participants {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-list-card__participants strong {
  color: var(--text);
  font-weight: 500;
}

.project-list-card__footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.project-list-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-list-card__stat svg {
  width: 14px;
  height: 14px;
}

.project-list-card__stat--gold {
  color: var(--gold);
}

@media (max-width: 580px) {
  .modal--wide {
    max-width: 100%;
  }
  .project-list-card {
    padding: 1rem;
  }
}

.edition-detail__content {
  padding: 0 0 clamp(5rem, 10vw, 8rem);
}

.edition-detail__intro {
  max-width: 760px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.edition-detail__section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.edition-detail__intro p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.edition-detail__intro p:last-child {
  margin-bottom: 0;
}

.edition-detail__info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edition-detail__info-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.4s ease;
}

.edition-detail__info-card:hover {
  border-color: rgba(192, 174, 127, 0.2);
}

.edition-detail__info-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.edition-detail__info-value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .edition-detail__info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .edition-detail__info-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Submit Project Section ── */
.edition-detail__submit {
  margin-top: 4rem;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.edition-detail__submit-content {
  flex: 1;
  min-width: 0;
}

.edition-detail__submit-content .edition-detail__section-title {
  text-align: left;
}

.edition-detail__submit-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.edition-detail__submit-visual {
  flex: 0 0 300px;
}

.edition-detail__submit-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.edition-detail__submit:hover .edition-detail__submit-img {
  opacity: 1;
}

@media (max-width: 768px) {
  .edition-detail__submit {
    flex-direction: column;
    padding: 2rem 1.5rem 2rem 2rem;
  }

  .edition-detail__submit-visual {
    width: 100%;
    max-width: 280px;
  }

  .project-card {
    width: 240px;
  }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--text);
}

.modal__body {
  padding: 1.5rem 2rem;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Form Fields ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-required {
  color: var(--gold);
}

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 174, 127, 0.15);
}

.form-input.error {
  border-color: #e74c3c;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.35rem;
}

.form-input.error + .form-error {
  display: block;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: #e74c3c;
}

/* ── Modal Responsive ── */
@media (max-width: 580px) {
  .modal__header,
  .modal__body,
  .modal__footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .modal__footer {
    flex-direction: column;
  }

  .modal__footer .btn {
    width: 100%;
    justify-content: center;
  }
}
