:root {
  --bg: #070705;
  --ink: #f6f3ea;
  --muted: #c9c3b6;
  --line: rgba(246, 243, 234, 0.16);
  --gold: #e7c56a;
  --gold-ink: #241c08;
  --teal: #1ec8ad;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --header: 4.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 2.6rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  color-scheme: dark;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #8ef3e2;
}

a:hover {
  color: #d8fff8;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.8rem;
}

.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 40;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  pointer-events: none;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(246, 243, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 234, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.65rem 1.4rem;
  background: #070705;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.brand img {
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-inline-start: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-inline-start: 1px solid var(--line);
  cursor: pointer;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--bg);
  background: var(--gold);
}

.now {
  display: none;
  flex-shrink: 0;
  margin: 0;
  padding-inline-start: 0.9rem;
  white-space: nowrap;
}

.now-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.now-label {
  font-family: var(--display);
  font-weight: 700;
}

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #10100c;
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  padding: 0.55rem 0;
  animation: ticker 28s linear infinite;
}

.marquee span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.marquee span:nth-child(odd) {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem 3rem;
  align-items: start;
  padding: 2.2rem 0 1.2rem;
  overflow: hidden;
}

.ghost {
  position: absolute;
  inset-inline-start: -2vw;
  top: 0.2rem;
  margin: 0;
  max-height: 0.78em;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(7rem, 18vw, 13rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 197, 106, 0.35);
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.kicker,
.act,
.ticket-label {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
}

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 9ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead,
.reel-lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.close-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: none;
}

.btn-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-primary {
  background: var(--teal);
  color: #04221e;
}

.btn-primary:hover {
  background: #8ef3e2;
  color: #04221e;
}

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

.btn-gold:hover {
  background: #f3dd9a;
  color: var(--gold-ink);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.8rem 0 0;
  max-width: 28rem;
  border: 1px solid var(--line);
}

.stats div {
  padding: 0.75rem 0.85rem;
  border-inline-start: 1px solid var(--line);
}

.stats div:first-child {
  border-inline-start: 0;
}

.stats dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.stats dd {
  margin: 0.1rem 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #0c0c09;
}

.screen {
  padding: 1rem 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
}

.live i {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal);
}

.screen-logo {
  width: 4.2rem;
  height: 4.2rem;
}

.screen-title {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.2;
}

.screen-line {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.program {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.program a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.program li:first-child a {
  border-top: 0;
}

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

.program a:hover small {
  color: #3d3420;
}

.program strong {
  display: block;
}

.program small {
  color: var(--muted);
}

.program-no {
  font-family: var(--display);
  font-weight: 800;
  color: var(--gold);
}

.program a:hover .program-no {
  color: var(--gold-ink);
}

.reel {
  padding: 3.2rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.reel-head {
  max-width: 40rem;
  margin-bottom: 1.4rem;
}

.reel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.js .step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.step.in-view {
  opacity: 1;
  transform: none;
}

.step-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.step-num {
  display: block;
  min-width: 2.2rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
  background: none;
}

.reel-mint .step-num {
  color: var(--teal);
}

.step h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step strong,
.note strong {
  color: var(--ink);
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  background: #16160f;
  color: #f6f3ea;
  border: 1px solid var(--line);
}

.frame {
  margin: 0;
  background: #000;
  border: 1px solid var(--line);
  position: relative;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  background: #000;
}

.frame figcaption {
  padding: 0.65rem 0.85rem 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.frame-narrow {
  justify-self: start;
  width: min(100%, 22rem);
}

.ticket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.4rem;
  padding: 1.2rem;
  border: 1px solid var(--gold);
  background: #12110b;
}

.ticket h3 {
  margin: 0.1rem 0 0.25rem;
  font-family: var(--display);
  font-size: 1.45rem;
}

.ticket p:last-child {
  margin: 0;
  color: var(--muted);
}

.finale-grid {
  display: grid;
  gap: 1rem;
}

.note {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--gold);
  background: #141208;
}

.close-cta p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.65rem;
  padding: 0.85rem 1rem 1.1rem;
  background: rgba(5, 5, 4, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.lightbox-toolbar button {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  background: #12110c;
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}

.lightbox-toolbar button:hover {
  background: var(--gold);
  color: var(--gold-ink);
}

.lightbox-stage {
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.lightbox-stage.is-dragging {
  cursor: grabbing;
}

.lightbox-stage img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: min(78vh, 1200px);
  object-fit: contain;
  user-select: none;
  background: #000;
}

.lightbox-caption,
.lightbox-hint {
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  max-width: 42rem;
}

.lightbox-hint {
  font-size: 0.82rem;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@media (min-width: 900px) {
  .now {
    display: block;
  }

  .site-header {
    padding-inline: 1.5rem;
  }

  .step {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 1.5rem;
  }

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

@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ghost {
    font-size: 6.5rem;
    top: 0.2rem;
  }

  .nav {
    margin-inline-start: 0;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav a:first-child {
    border-inline-start: 0;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .stats {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track,
  .js .step,
  .lightbox,
  .progress,
  .btn,
  .nav a,
  .program a {
    animation: none !important;
    transition: none !important;
  }

  .js .step {
    opacity: 1;
    transform: none;
  }
}
