:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-2: #12141c;
  --surface: rgba(17, 20, 28, 0.84);
  --surface-strong: rgba(22, 25, 36, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #a6b0c3;
  --orange: #f6821f;
  --ruby: #ff6633;
  --mango: #fbad41;
  --glow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 75%);
  pointer-events: none;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-left {
  top: -8rem;
  left: -10rem;
  background: radial-gradient(circle, var(--ruby), transparent 70%);
}

.ambient-right {
  top: 18rem;
  right: -10rem;
  background: radial-gradient(circle, var(--orange), transparent 70%);
}

.preview-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.mode-switch-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--glow);
  backdrop-filter: blur(20px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 173, 65, 0.35), rgba(255, 255, 255, 0.05), rgba(246, 130, 31, 0.2));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 28px;
  padding: 32px;
}

.mono-kicker,
.section-label {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mango);
}

.hero-panel h1,
.spotlight-panel h2,
.location-panel h2,
.featured-copy h2,
.chaos-copy h2,
.event-panel h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-panel h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 0.9;
}

.hero-copy,
.hero-note,
.section-copy,
.event-meta,
.footer-copy {
  color: var(--muted);
}

.hero-copy,
.section-copy {
  margin: 18px 0 0;
  line-height: 1.75;
  font-size: 1rem;
}

.hero-note {
  margin: 16px 0 0;
  line-height: 1.65;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.signal-pill {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7edf7;
  font-size: 0.92rem;
  font-weight: 600;
}

.runtime-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.runtime-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.runtime-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.runtime-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.runtime-row strong {
  color: var(--text);
  text-align: right;
}

.hero-photo-frame,
.featured-media,
.chaos-media {
  margin: 0;
}

.hero-photo,
.featured-photo,
.chaos-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.hero-photo {
  aspect-ratio: 16 / 11;
}

.content-stack {
  margin-top: 28px;
}

.spotlight-panel,
.location-panel,
.featured-panel,
.chaos-panel,
.footer-panel {
  padding: 28px;
}

.spotlight-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.action-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.primary-action {
  background: linear-gradient(135deg, var(--ruby), var(--orange));
  color: #fff;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 22px;
}

.map-shell {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.featured-panel,
.chaos-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.featured-photo,
.chaos-photo {
  min-height: 100%;
}

.featured-copy,
.chaos-copy {
  align-self: center;
}

.event-meta {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.event-panel {
  padding: 24px;
}

.event-panel h3 {
  font-size: 1.8rem;
  line-height: 1.02;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.inline-label {
  margin-bottom: 10px;
}

.footer-copy {
  margin: 0 0 16px;
  line-height: 1.7;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-links-grid a {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.footer-links-grid span,
.footer-links-grid small {
  display: block;
}

.footer-links-grid span {
  font-size: 1rem;
  font-weight: 700;
}

.footer-links-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-credit {
  display: block;
  width: fit-content;
  margin: 12px 16px 20px auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.detail-hero-panel,
.detail-copy-panel,
.detail-sidebar-panel {
  padding: 28px;
}

.detail-hero-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  margin-top: 20px;
}

.detail-list,
.detail-sidebar-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-list li + li,
.detail-sidebar-list li + li {
  margin-top: 10px;
}

.detail-video-placeholder {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.detail-video-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.detail-video-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.detail-video-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.detail-video-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
}

@media (max-width: 980px) {
  .hero-panel,
  .location-panel,
  .featured-panel,
  .chaos-panel,
  .detail-grid,
  .footer-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-column {
    min-width: 0;
    width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .preview-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero-panel,
  .spotlight-panel,
  .location-panel,
  .featured-panel,
  .chaos-panel,
  .detail-hero-panel,
  .detail-copy-panel,
  .detail-sidebar-panel,
  .footer-panel,
  .event-panel {
    padding: 22px;
  }

  .detail-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 20px;
  }

  .hero-panel h1 {
    max-width: none;
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
}
