/* ==========================================================================
   LMML 2025 — Edition 1.0 Archive
   Same structure/approach as css/style.css (the 2026 page) with its own
   purple palette. Color tokens are CSS variables up top.
   ========================================================================== */

:root {
  --bg: #0B0916;
  --fg: #DDD8EE;
  --fg-strong: #F0EBFF;
  --fg-muted: #A79BC9;
  --fg-dim: #6B5CA0;
  --fg-dimmer: #4A3F72;

  --accent: #A88BFF;
  --accent-rgb: 168, 139, 255;
  --accent-light: #C9B6FF;

  --card-bg: #131028;
  --purple-tint-rgb: 45, 21, 133;

  /* the one place this page borrows 2026's teal — the "bridge" CTA back to it */
  --bridge-teal: #64FAD7;
  --bridge-teal-rgb: 100, 250, 215;
  --bridge-deep-rgb: 0, 150, 104;

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Onest', sans-serif;

  --max-content: 1100px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; }
::selection { background: rgba(var(--accent-rgb), 0.3); }
button { font: inherit; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* Both marquees on this page are no longer CSS animations — js/main-2025.js
   drives their transform directly every frame (see initMarquees()/
   startMarquee()), same as the equivalent rule in css/style.css. */
@media (prefers-reduced-motion: reduce) {
  /* animation-duration alone isn't enough for this page's other `infinite`
     loop (blink) — it needs animation-iteration-count: 1 too, or the
     animation just spins its full cycle near-instantly forever instead of
     actually stopping, which different browsers render inconsistently
     (stutter/jump instead of a clean static frame). */
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 3px, rgba(var(--accent-rgb), 0.015) 3px, rgba(var(--accent-rgb), 0.015) 4px);
}

.page { min-height: 100vh; background: var(--bg); position: relative; overflow-x: clip; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(11, 9, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  font-family: var(--font-sans);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); color: var(--fg-strong); font-weight: 800; font-size: 15px; letter-spacing: 0.06em;
}
.nav__brand img { height: 22px; width: auto; display: block; }
.nav__brand .sep { color: rgba(221,216,238,0.4); }
.nav__links {
  display: flex; align-items: center; gap: 22px;
  font-size: 14px; font-weight: 500; flex-wrap: wrap; justify-content: flex-end;
}
.nav__link { color: var(--fg-muted); transition: color 140ms ease; }
.nav__link:hover { color: var(--accent); }

.lang-btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  padding: 8px 12px; background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.32); color: var(--accent);
  border-radius: 3px; cursor: pointer; transition: border-color 140ms ease, color 140ms ease;
}
.lang-btn:hover { border-color: var(--accent); color: #FFFFFF; }

.ticket-btn-2025 {
  font-family: var(--font-mono); padding: 9px 18px;
  background: linear-gradient(135deg, #2D1585, #33199A);
  border: 1px solid var(--accent); color: var(--fg-strong);
  font-weight: 700; font-size: 13px; border-radius: 3px;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.35);
  transition: box-shadow 140ms ease, color 140ms ease;
}
.ticket-btn-2025:hover { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.6); color: #FFFFFF; }

/* ---------- Nav burger (mobile) ---------- */
.nav__burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 0; background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.32); border-radius: 3px; cursor: pointer; flex-shrink: 0;
}
.nav__burger:hover { border-color: var(--accent); }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--accent); transition: transform 200ms ease, opacity 150ms ease; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 24px 72px; text-align: center; overflow: clip; }
.hero__radial {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(51,25,154,0.4), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(var(--accent-rgb),0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb),0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero__inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px;
}
.hero__copy {
  position: relative; flex: 1 1 420px; max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.hero__badge {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.4); padding: 7px 16px; border-radius: 999px;
  letter-spacing: 0.14em; box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2);
}
.hero__title {
  margin: 0; font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(24px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--fg-strong); text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35);
}
.hero__title-line1 { display: block; white-space: nowrap; }
.hero__title-line2 {
  display: block; white-space: nowrap;
  background: linear-gradient(120deg, var(--accent), #4A2BC4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { margin: 0; font-size: clamp(18px, 2.5vw, 24px); color: var(--fg); font-weight: 500; max-width: 560px; }
.hero__log { font-family: var(--font-mono); font-size: 15px; color: #B3A3E0; }
.hero__log .prompt { color: var(--fg-dim); }
.hero__cursor { display: inline-block; width: 9px; height: 18px; background: var(--accent); vertical-align: -3px; margin-left: 4px; animation: blink 1s step-end infinite; }
.hero__desc { margin: 0; max-width: none; font-size: 16px; line-height: 1.65; color: var(--fg-muted); text-wrap: balance; }

.hero__mascot { position: relative; flex: 0 1 480px; min-width: 300px; align-self: flex-end; display: flex; justify-content: center; }
.hero__mascot-halo {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.24), transparent 70%); filter: blur(10px);
}
.hero__mascot-img {
  position: relative; display: block; width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 0 60px rgba(var(--accent-rgb),0.3)); will-change: transform;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid rgba(var(--accent-rgb), 0.15); border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  padding: 12px 0; background: rgba(var(--purple-tint-rgb), 0.12);
}
.marquee__track {
  display: flex; white-space: nowrap; font-family: var(--font-mono); font-size: 14px; color: var(--fg-dim);
  will-change: transform;
}
/* The track holds two identical .marquee__group copies of the tag list.
   js/main-2025.js's startMarquee() measures the real gap between them and
   sets this element's `transform` itself every frame — no CSS animation
   involved. See the longer note on the equivalent 2026 rule in
   css/style.css for why (it isn't safe to derive the loop point from the
   track's own intrinsic width — that folds in margins/gaps/font metrics
   inconsistently across engines — nor from a measured value fed back
   through a CSS custom property into a running animation). */
.marquee__group { display: flex; flex: 0 0 auto; gap: 40px; margin-right: 40px; }
.marquee__track span.hi { color: var(--accent); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 88px 24px; }
.section--content { max-width: var(--max-content); margin: 0 auto; }
.section--band { border-top: 1px solid rgba(var(--accent-rgb), 0.12); }
.section--tint { background: rgba(var(--purple-tint-rgb), 0.07); }

.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.16em; margin-bottom: 14px; }
.h2 { margin: 0 0 40px; font-family: var(--font-mono); font-weight: 800; font-size: clamp(28px, 4vw, 42px); color: var(--fg-strong); letter-spacing: -0.02em; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto);
  gap: 14px; max-width: 640px; margin: 0 auto;
}
.stat-card { border: 1px solid rgba(var(--accent-rgb), 0.22); background: var(--card-bg); padding: 18px 16px; border-radius: 4px; text-align: center; }
.stat-card__value { font-family: var(--font-mono); font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); color: var(--accent); text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.5); }
.stat-card__label { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--fg-muted); letter-spacing: 0.02em; margin-top: 5px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-item {
  padding: 0; aspect-ratio: 4 / 3; border: 1px solid rgba(var(--accent-rgb), 0.22); border-radius: 4px;
  overflow: hidden; background: var(--card-bg); cursor: zoom-in; position: relative;
  transition: border-color 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1);
}
.gallery-item:hover { border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Partners (auto-scrolling marquee) ---------- */
.partners-marquee { position: relative; overflow: hidden; padding: 4px 0; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.partners-marquee__track { display: flex; will-change: transform; }
/* Same JS-driven approach as .marquee__track above — the gap between the
   two logo-list copies is set to match the internal 14px gap. */
.partners-marquee__track .marquee__group { gap: 14px; margin-right: 14px; }
.partners-marquee .logo-card {
  flex: 0 0 auto; width: 168px; height: 92px;
  border: 1px solid rgba(var(--accent-rgb), 0.18); background: var(--card-bg); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; padding: 12px; opacity: 0.8;
}
.partners-marquee .logo-card img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; display: block; }

/* ---------- CTA back to 2026 ---------- */
.cta-section { position: relative; padding: 110px 24px; text-align: center; overflow: clip; }
.cta-section__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(var(--bridge-deep-rgb),0.22), transparent 70%); }
.cta-section__inner { position: relative; max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-section__eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--bridge-teal); letter-spacing: 0.16em; }
.cta-section__title { margin: 0; font-family: var(--font-mono); font-weight: 800; font-size: clamp(26px, 4vw, 52px); color: var(--fg-strong); letter-spacing: -0.02em; white-space: nowrap; }
.cta-section__text { margin: 0; font-size: 17px; color: var(--fg-muted); max-width: none; line-height: 1.6; white-space: nowrap; }
.btn-bridge {
  font-family: var(--font-mono); font-weight: 700; font-size: 16px; padding: 17px 36px;
  background: linear-gradient(135deg, #006458, #009668);
  border: 1px solid var(--bridge-teal); color: #EAFFF8;
  box-shadow: 0 0 26px rgba(var(--bridge-teal-rgb),0.45); border-radius: 3px;
  transition: box-shadow 140ms ease, color 140ms ease;
}
.btn-bridge:hover { box-shadow: 0 0 40px rgba(var(--bridge-teal-rgb),0.8); color: #FFFFFF; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.15); padding: 40px 24px; font-family: var(--font-sans);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__brand-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 800; font-size: 14px; color: var(--fg-strong); letter-spacing: 0.06em; }
.footer__brand-row img { height: 24px; width: auto; display: block; }
.footer__meta { font-size: 12px; color: var(--fg-dim); }
.footer__meta a { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 32px 24px; background: rgba(8,6,16,0.92); backdrop-filter: blur(3px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(1100px, 92vw); max-height: 74vh; width: auto; height: auto; object-fit: contain; display: block;
  border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 4px; box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.25);
}
.lightbox__controls { display: flex; align-items: center; gap: 18px; font-family: var(--font-mono); }
.lightbox__nav {
  background: none; border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--accent);
  font-family: var(--font-mono); font-size: 14px; padding: 8px 14px; border-radius: 3px; cursor: pointer;
  transition: border-color 140ms cubic-bezier(.22,.61,.36,1), box-shadow 140ms cubic-bezier(.22,.61,.36,1);
}
.lightbox__nav:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.3); }
.lightbox__counter { font-size: 12px; color: var(--fg-dim); letter-spacing: 0.12em; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; background: none; border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--fg); font-family: var(--font-mono); font-size: 13px; padding: 7px 12px; border-radius: 3px; cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.lightbox__close:hover { border-color: var(--accent); color: #FFFFFF; }
.lightbox__hint { position: absolute; bottom: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dimmer); letter-spacing: 0.14em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: rgba(11, 9, 22, 0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 4px 24px 0; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 280ms cubic-bezier(.22,.61,.36,1), opacity 200ms ease;
  }
  .nav.is-open .nav__links { max-height: 420px; opacity: 1; pointer-events: auto; }
  .nav__links > * { width: 100%; }
  .nav__link { padding: 14px 2px; border-bottom: 1px solid rgba(var(--accent-rgb), 0.1); }
  .lang-btn, .ticket-btn-2025 { margin: 14px 0; text-align: center; }

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

@media (max-width: 600px) {
  .section { padding: 64px 20px; }
  .hero { padding: 108px 20px 56px; }
  .cta-section { padding: 72px 20px; }
  .nav { padding: 12px 16px; }
  .nav__links { padding-left: 16px; padding-right: 16px; }

  .hero__title-line1, .hero__title-line2 { white-space: normal; }
  .cta-section__title, .cta-section__text { white-space: normal; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats-grid { max-width: 100%; }

  .footer { flex-direction: column; align-items: flex-start; text-align: left; }

  .lightbox { padding: 20px 14px; gap: 12px; }
  .lightbox__close { top: 12px; right: 14px; }
}

@media (max-width: 380px) {
  .hero__badge { font-size: 12px; padding: 6px 12px; }
}
