:root {
  --ink: #f6f3ec;
  --muted: #b7b2a6;
  --paper: #f4efe4;
  --paper-ink: #1c1916;
  --line: rgba(255, 255, 255, 0.1);
  --lime: #d6ff4a;
  --lime-ink: #142000;
  --card: #141418;
  --bg: #070708;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(214, 255, 74, 0.14), transparent 62%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.5 "Avenir Next", "Segoe UI", sans-serif;
}

a { color: inherit; }

.bar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 28px;
  background: rgba(7, 7, 8, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
}

footer .brand img { height: 24px; }

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

nav a:hover { color: var(--ink); }

a.pill,
a.primary {
  display: inline-block;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
}

a.pill { padding: 8px 14px; }

a.pill:hover,
a.primary:hover { filter: brightness(1.05); }

main { padding: 0; }

.hero {
  padding: 72px 24px 8px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-left: 8px;
  color: var(--ink);
}

.hero h1 {
  max-width: min(11em, 100%);
  margin: 0 auto;
  font-size: clamp(2.15rem, 7.4vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.96;
  overflow-wrap: break-word;
}

.lede {
  max-width: min(36rem, 100%);
  margin: 22px auto 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.actions a,
.close a {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.actions a.primary,
.close a.primary { border-color: transparent; }

.stage {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}


.reel-frame {
  overflow: hidden;
  aspect-ratio: 1501 / 1000;
  border-radius: 16px;
  background: #141418;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.reel-track { display: flex; height: 100%; }

.reel-3 .reel-track { width: 400%; }

.reel-3.reel-ready .reel-track {
  animation: reel 11.7s linear infinite;
}

.reel-3 .reel-track img {
  width: 25%;
  height: 100%;
  flex: 0 0 25%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.reel:hover .reel-track,
.reel:focus-within .reel-track,
.reel:hover .reel-dots i,
.reel:focus-within .reel-dots i {
  animation-play-state: paused;
}

.reel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.reel-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(246, 243, 236, 0.35);
}

.reel-3:not(.reel-ready) .reel-dots i:first-child { background: #d6ff4a; }

.reel-3.reel-ready .reel-dots i:nth-child(1) { animation: reel-dot-1 11.7s linear infinite; }
.reel-3.reel-ready .reel-dots i:nth-child(2) { animation: reel-dot-2 11.7s linear infinite; }
.reel-3.reel-ready .reel-dots i:nth-child(3) { animation: reel-dot-3 11.7s linear infinite; }

@keyframes reel {
  0% { transform: translateX(0); animation-timing-function: linear; }
  29.9145% { transform: translateX(0); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  33.3333% { transform: translateX(-25%); animation-timing-function: linear; }
  63.2479% { transform: translateX(-25%); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  66.6667% { transform: translateX(-50%); animation-timing-function: linear; }
  96.5812% { transform: translateX(-50%); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  100% { transform: translateX(-75%); }
}

@keyframes reel-dot-1 {
  0%, 29.9145% { background: #d6ff4a; }
  33.3333%, 96.5812% { background: rgba(246, 243, 236, 0.35); }
  100% { background: #d6ff4a; }
}

@keyframes reel-dot-2 {
  0%, 29.9145% { background: rgba(246, 243, 236, 0.35); }
  33.3333%, 63.2479% { background: #d6ff4a; }
  66.6667%, 100% { background: rgba(246, 243, 236, 0.35); }
}

@keyframes reel-dot-3 {
  0%, 63.2479% { background: rgba(246, 243, 236, 0.35); }
  66.6667%, 96.5812% { background: #d6ff4a; }
  100% { background: rgba(246, 243, 236, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .reel-3 .reel-track,
  .reel-3.reel-ready .reel-track { animation: none; }
  .reel-dots { display: none; }
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 12px;
}

.points article {
  padding: 22px 22px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.points h2,
.story h2,
.close h2 {
  margin: 0 0 0.4em;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.points p { margin: 0 0 14px; color: var(--muted); }

.story {
  max-width: 40rem;
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.story h2 { font-size: 1.8rem; }

.copy p,
.copy ul { margin: 0.8em 0; }

.copy a { color: inherit; }

.copy strong { font-weight: 650; }

.close {
  max-width: 40rem;
  margin: 12px auto 0;
  padding: 28px 24px 88px;
  text-align: center;
}

.close h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.close a { margin-top: 8px; }

.page {
  max-width: 42rem;
  margin: 36px auto 72px;
  padding: 42px 40px 56px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 22px;
}

.page h1 {
  margin: 0 0 0.45em;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page .copy a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.page .copy h2 {
  margin: 1.5em 0 0.35em;
  font-size: 1.35rem;
}

.page .copy code,
.page .copy pre {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.page .copy code {
  background: #fff;
  border: 1px solid #e4dccb;
  border-radius: 6px;
  padding: 0 0.3em;
}

.page .copy pre {
  background: #fff;
  border: 1px solid #e4dccb;
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
}

.page .copy pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

footer {
  padding: 22px 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0; }

footer .brand { color: var(--ink); }

@media (max-width: 800px) {
  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px 14px;
  }
  .bar .brand img { height: 26px; }
  .bar nav a:not(.pill) { display: none; }
  .eyebrow { letter-spacing: 0.04em; font-size: 11px; padding: 0 10px; }
  .eyebrow span { display: block; margin-top: 4px; }
  .hero { padding: 40px 18px 8px; }
  .hero h1 { font-size: 2.15rem; }
  .lede { font-size: 1.02rem; }
  .points { grid-template-columns: 1fr; }
  .page { margin: 20px 12px 48px; padding: 28px 18px 36px; }
  footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 16px 32px;
  }
}
