@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #131209;
  --cream: #f6eedf;
  --cream-dim: rgba(246, 238, 223, 0.72);
  --cream-faint: rgba(246, 238, 223, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overscroll-behavior: none; }

/* Scrolling stays on, but the page never bounces or pulls to refresh. */
body {
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 20;
  padding: 8px 12px; border-radius: 9999px;
  background: var(--cream); color: var(--ink);
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* First screen: the poster */
.screen {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: 68px;
}

/* The film behind the poster */
.film { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.film__still, .film__loop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.film__loop { opacity: 0; transition: opacity 1.2s var(--ease); }
.film__loop.is-playing { opacity: 1; }
.film__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(19, 18, 9, 0.88) 0%, rgba(19, 18, 9, 0.35) 38%, rgba(19, 18, 9, 0) 60%),
    linear-gradient(to right, rgba(19, 18, 9, 0.55) 0%, rgba(19, 18, 9, 0) 55%);
}
.film__grain {
  position: absolute; inset: -50%;
  opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top bar */
.bar {
  position: absolute; z-index: 3; top: 24px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.bar__mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; line-height: 20px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
}
.bar__live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  background: rgba(19, 18, 9, 0.32);
  border: 1px solid var(--cream-faint);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.bar__live:hover { background: rgba(19, 18, 9, 0.56); border-color: rgba(246, 238, 223, 0.4); }
.bar__icon { width: 16px; height: 16px; color: #bf94ff; }

/* Stage */
.stage {
  position: relative; z-index: 1;
  width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding: 48px 0 32px;
}
.poster { max-width: 680px; }
.tagline {
  position: relative; z-index: 1;
  margin: 32px auto 0; padding: 0 16px;
  font-size: 24px; line-height: 32px; font-weight: 400;
  letter-spacing: -0.01em; text-align: center;
  color: var(--cream);
  text-shadow: 0 1px 24px rgba(19, 18, 9, 0.6);
  text-wrap: balance;
}
.poster__title {
  margin: 0 0 24px;
  font-size: 128px; line-height: 1; font-weight: 600;
  letter-spacing: -0.045em;
}
.poster__name {
  position: relative;
  display: inline-block;
  background: linear-gradient(to right, #ffffff, #9b9b9b);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.poster__name.is-split { background: none; color: transparent; }
.poster__name .ch {
  display: inline-block;
  background-image: linear-gradient(to right, #ffffff, #9b9b9b);
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.poster__lede {
  margin: 0 0 12px; max-width: 520px;
  font-size: 18px; line-height: 28px; color: var(--cream-dim);
  text-wrap: pretty;
}
.poster__stream {
  margin: 0 0 32px; max-width: 520px;
  font-size: 16px; line-height: 24px; color: var(--cream);
  text-wrap: pretty;
}
.poster__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 9999px;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--main { background: var(--cream); color: var(--ink); }
.btn--main:hover { background: #ffffff; transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid rgba(246, 238, 223, 0.4);
  background: rgba(19, 18, 9, 0.24);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(19, 18, 9, 0.48); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

/* The keepsake: a still of the quiet moment */
.keepsake { margin: 0; width: 240px; flex: none; }
.keepsake__frame {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.keepsake__frame img { width: 100%; height: 100%; object-fit: cover; }
.keepsake figcaption {
  margin-top: 12px;
  font-size: 14px; line-height: 20px; color: var(--cream-dim);
}

/* Billing block */
.credits {
  position: relative; z-index: 1;
  width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
  padding: 16px 0 24px;
  border-top: 1px solid var(--cream-faint);
}
.credits p {
  margin: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim);
}

/* Motion is enhanced only when JS is ready */
.js [data-in] { opacity: 0; }
.js .poster__name .ch { transform: translateY(100%); }
.js .poster__title { overflow: hidden; }

@media (max-width: 1400px) and (min-width: 761px) {
  .credits p { letter-spacing: 0.1em; gap: 4px 16px; }
}

@media (max-width: 1024px) {
  .poster__title { font-size: 96px; }
  .keepsake { width: 200px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .film__still, .film__loop { object-position: 55% 40%; }
  .film__scrim {
    background:
      linear-gradient(to bottom, rgba(19, 18, 9, 0.62) 0%, rgba(19, 18, 9, 0.3) 18%, rgba(19, 18, 9, 0) 30%),
      linear-gradient(to top, rgba(19, 18, 9, 0.94) 0%, rgba(19, 18, 9, 0.7) 40%, rgba(19, 18, 9, 0) 62%);
  }
  .screen { padding-top: 56px; }
  .bar { top: 16px; }
  .tagline { margin-top: 16px; font-size: 18px; line-height: 28px; }
  .stage { flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 24px; padding: 32px 0 24px; }
  .poster__title { font-size: 60px; margin-bottom: 12px; }
  .poster__lede { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
  .poster__stream { margin-bottom: 24px; }
  .poster__cta { flex-wrap: nowrap; gap: 8px; }
  .btn { padding: 8px 16px; }
  .btn__long { display: none; }
  .keepsake { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; width: 100%; }
  .keepsake__frame { border-radius: 12px; }
  .keepsake figcaption { margin: 0; }
  .credits { display: none; }
}

/* Short phones: the portrait gives its room to the copy. */
@media (max-width: 760px) and (max-height: 740px) {
  .keepsake { display: none; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .poster__title { font-size: 96px; }
  .poster__lede { margin-bottom: 8px; }
  .poster__stream { margin-bottom: 24px; }
  .keepsake { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .film__loop { display: none; }
  .js [data-in] { opacity: 1; }
  .js .poster__name .ch { transform: none; }
  .btn { transition: none; }
}

/* 404 */
.lost { display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.lost__body { max-width: 480px; }
.lost__title { margin: 0 0 12px; font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.lost__text { margin: 0 0 32px; color: var(--cream-dim); text-wrap: pretty; }

/* Second reel: the stream */
.reel {
  width: calc(100% - 2 * var(--gutter)); max-width: 1200px; margin: 0 auto;
  padding: 96px 0;
}
.reel__statement {
  margin: 0 0 80px; max-width: 880px;
  font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em;
  text-wrap: balance;
}
.reel__statement .w { color: rgba(246, 238, 223, 0.28); transition: color 600ms var(--ease); }
.reel__statement .w.is-lit { color: var(--cream); }

.reel__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px;
  align-items: start;
}
.reel__still { margin: 0; position: sticky; top: 32px; }
.reel__still img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--cream-faint);
}

.programme { list-style: none; margin: 0; padding: 0; }
.programme__item { padding: 32px 0; border-top: 1px solid var(--cream-faint); }
.programme__item:first-child { padding-top: 0; border-top: 0; }
.programme__item h3 {
  margin: 0 0 12px;
  font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em;
}
.programme__item p {
  margin: 0; max-width: 560px;
  font-size: 18px; line-height: 28px; color: var(--cream-dim);
  text-wrap: pretty;
}
.programme__games { color: var(--cream); }
.reel a:not(.btn) {
  color: var(--cream); text-decoration: underline;
  text-decoration-color: rgba(246, 238, 223, 0.4); text-underline-offset: 4px;
  transition: text-decoration-color 300ms var(--ease);
}
.reel a:not(.btn):hover { text-decoration-color: var(--cream); }

.tally { margin: 96px 0 0; padding: 32px 0 0; border-top: 1px solid var(--cream-faint); }
.tally__list {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.tally__list div { display: flex; flex-direction: column-reverse; gap: 8px; }
.tally__list dt {
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim);
}
.tally__list dd {
  margin: 0;
  font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.tally__note { margin: 24px 0 0; font-size: 12px; line-height: 16px; color: var(--cream-dim); }

.showtime { margin: 96px 0 0; }
.showtime__when {
  margin: 0 0 12px;
  font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em;
  text-wrap: balance;
}
.showtime__sub { margin: 0 0 32px; font-size: 18px; line-height: 28px; color: var(--cream-dim); }

.foot {
  width: calc(100% - 2 * var(--gutter)); max-width: 1200px; margin: 0 auto;
  padding: 32px 0 48px; border-top: 1px solid var(--cream-faint);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.foot__mark {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0; font-size: 14px; line-height: 20px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__links a {
  font-size: 14px; line-height: 20px; color: var(--cream-dim); text-decoration: none;
  transition: color 300ms var(--ease);
}
.foot__links a:hover { color: var(--cream); }

/* Rise into place once, as each piece enters the viewport */
.js [data-rise] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .reel__body { grid-template-columns: 1fr; gap: 48px; }
  .reel__still { position: static; max-width: 480px; }
  .tally__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 760px) {
  .reel { padding: 80px 0 64px; }
  .reel__statement { font-size: 30px; line-height: 36px; margin-bottom: 48px; }
  .programme__item { padding: 24px 0; }
  .programme__item h3 { font-size: 24px; line-height: 32px; }
  .programme__item p { font-size: 16px; line-height: 24px; }
  .tally { margin-top: 64px; }
  .tally__list dd { font-size: 48px; }
  .showtime { margin-top: 64px; }
  .showtime__when { font-size: 30px; line-height: 36px; }
  .showtime__sub { font-size: 16px; line-height: 24px; }
  .foot { padding: 24px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .reel__statement .w { color: var(--cream); transition: none; }
}

/* His gaming avatar */
.bar__avatar { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
.foot__avatar { width: 24px; height: 24px; flex: none; }
.showtime__avatar {
  display: block; width: 128px; height: 128px; margin: 0 0 24px;
}
.lost__avatar { display: block; width: 96px; height: 96px; margin: 0 auto 24px; }
@media (max-width: 760px) {
  .bar__avatar { width: 28px; height: 28px; }
  .bar__mark { gap: 8px; }
  .showtime__avatar { width: 96px; height: 96px; }
}

/* The faithful: his community */
.faithful { margin: 120px 0 0; }
.tally + .faithful { margin-top: 120px; }
.faithful__intro { max-width: 680px; margin: 0 0 64px; }
.faithful__title {
  margin: 0 0 16px;
  font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.04em;
}
.faithful__lede { margin: 0; font-size: 20px; line-height: 28px; color: var(--cream-dim); text-wrap: pretty; }
.faithful__body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px;
  align-items: start;
}
.rite { padding: 32px 0; border-top: 1px solid var(--cream-faint); }
.rite:first-child { padding-top: 0; border-top: 0; }
.rite h3 { margin: 0 0 12px; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.rite p { margin: 0; max-width: 560px; font-size: 18px; line-height: 28px; color: var(--cream-dim); text-wrap: pretty; }
.faithful__shrine { margin: 0; }
.faithful__shrine img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--cream-faint);
}

.archive { margin: 96px 0 0; }
.archive__title {
  margin: 0 0 8px;
  font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em;
}
.archive__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px;
}
.archive__list li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 0; border-top: 1px solid var(--cream-faint);
}
.archive__list q {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 20px; line-height: 28px; color: var(--cream);
  quotes: "\201C" "\201D";
}
.archive__list span { font-size: 14px; line-height: 20px; color: var(--cream-dim); }

.scare {
  margin: 96px 0 0; padding: 48px 0 0; border-top: 1px solid var(--cream-faint);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
.scare__text { margin: 0; font-size: 20px; line-height: 28px; }
.scare__btn { border: 0; cursor: pointer; font-family: inherit; }
.scare__btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.scare__count { margin: 0; flex-basis: 100%; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--cream-dim); }

.scare-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(19, 18, 9, 0.94);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.scare-overlay img { width: min(72vw, 72vh); height: auto; transform: scale(0.2); }
.scare-overlay.is-on {
  opacity: 1; visibility: visible;
  transition: opacity 80ms var(--ease), visibility 0s;
}
.scare-overlay.is-on img { animation: scare 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes scare {
  0% { transform: scale(0.2); }
  18% { transform: scale(1.15) rotate(-4deg); }
  26% { transform: scale(1.1) translate(-12px, 6px) rotate(3deg); }
  34% { transform: scale(1.12) translate(10px, -8px) rotate(-3deg); }
  42% { transform: scale(1.1) translate(-8px, 4px) rotate(2deg); }
  50%, 100% { transform: scale(1.05); }
}

@media (max-width: 900px) {
  .faithful__body { grid-template-columns: 1fr; gap: 48px; }
  .faithful__shrine { max-width: 480px; }
  .archive__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .faithful { margin-top: 80px; }
  .faithful__intro { margin-bottom: 40px; }
  .faithful__title { font-size: 48px; }
  .faithful__lede { font-size: 18px; }
  .rite { padding: 24px 0; }
  .rite h3 { font-size: 24px; line-height: 32px; }
  .rite p { font-size: 16px; line-height: 24px; }
  .archive { margin-top: 64px; }
  .archive__list q { font-size: 18px; }
  .scare { margin-top: 64px; padding-top: 32px; }
  .scare__text { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .scare-overlay.is-on img { animation: none; transform: scale(1); }
}
