/* v11 pages: the title sequence (landing), chapter cards (intro), the one-line interlude (between), the sealed verdict (gate). */

/* ---------- letterbox bars, shared ---------- */
.lbox { position: fixed; left: 0; right: 0; height: var(--lb, 9vh); background: #000; z-index: 3; pointer-events: none; transition: height 1.2s var(--slow); }
.lbox--t { top: 0; } .lbox--b { bottom: 0; }

/* ---------- LANDING: the title sequence over the slow orbit ---------- */
.land { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px; overflow: hidden; }
.land::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 50% 40%, rgba(5, 5, 5, .38) 0%, rgba(5, 5, 5, .8) 62%, #050505 100%),
  linear-gradient(180deg, rgba(5, 5, 5, .25), rgba(5, 5, 5, .35) 45%, rgba(5, 5, 5, .85)); }
.land__bars i { position: absolute; left: 0; right: 0; height: 13vh; background: #000; z-index: 1; transform-origin: top; animation: barIn 1.6s var(--slow) both; }
.land__bars i:first-child { top: 0; }
.land__bars i:last-child { bottom: 0; transform-origin: bottom; }
@keyframes barIn { from { transform: scaleY(4); } to { transform: scaleY(1); } }
.land__in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 640px; margin-top: -2vh; }
.land__pre { margin: 0; font: italic 400 18px/1.4 var(--serif-text); color: var(--bone-dim); }
.land__pre span { display: inline-block; opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.land__pre span:first-child { animation-delay: .2s; } .land__pre span:last-child { animation-delay: .6s; }
.land__title { margin: 4px 0 0; font: 400 clamp(54px, 16vw, 132px)/.9 var(--serif); letter-spacing: .06em; text-transform: uppercase; opacity: 0; animation: track 1.6s var(--slow) .8s forwards; }
.land__title small { display: block; font: italic 400 .3em/1 var(--serif-text); letter-spacing: .02em; text-transform: none; color: var(--amber); margin-bottom: .18em; }
.land__promise { margin: 6px 0 14px; max-width: 26ch; font: 400 clamp(19px, 5.2vw, 26px)/1.35 var(--serif-text); color: var(--bone); opacity: 0; animation: fadeUp 1s var(--ease) 1.4s forwards; text-wrap: balance; }
.land .cta { opacity: 0; animation: fadeUp .9s var(--ease) 1.7s forwards; }
.land__fail { margin: 0; max-width: 32ch; color: var(--almost); font-size: 15px; }
.land__fail button { margin-top: 12px; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); background: transparent; color: var(--bone); border-radius: 2px; font: 600 13px var(--cond); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.billing { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(1.6vh + var(--sab)); padding: 0 16px; text-align: center; font: 500 11px/1.5 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); opacity: 0; animation: fadeUp 1.2s var(--ease) 2s forwards; }
.billing p { margin: 0; }
.billing b { color: var(--bone-dim); font-weight: 600; margin: 0 .35em; white-space: nowrap; }
.billing__and { margin-top: 2px !important; }
.billing__and b { color: var(--amber); font: italic 400 15px var(--serif-text); letter-spacing: .04em; text-transform: none; }

/* ---------- CHAPTER CARD (each level page) ---------- */
.chap { min-height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; padding: calc(9vh + 18px + var(--sat)) 16px calc(9vh + 18px + var(--sab)); position: relative; }
.chap__bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.chap__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) contrast(1.1) brightness(.5); transform: scale(1.12); animation: kenburns 14s linear forwards; will-change: transform; }
.chap__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 50%, rgba(5, 5, 5, .55), rgba(5, 5, 5, .92) 75%), linear-gradient(180deg, rgba(5, 5, 5, .2), rgba(5, 5, 5, .85)); }
@keyframes kenburns { from { transform: scale(1.12) translateX(0); } to { transform: scale(1.22) translateX(-2%); } }
.chap__in { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 600px; }
.chap__no { font: italic 400 22px/1 var(--serif-text); color: var(--amber); letter-spacing: .02em; margin: 0; }
.chap__title { margin: 0; font: 400 clamp(42px, 12vw, 92px)/.98 var(--serif); letter-spacing: .02em; text-wrap: balance; }
.chap__tag { margin: 0; font: italic 400 clamp(18px, 4.8vw, 24px)/1.3 var(--serif-text); color: var(--bone); }
.chap__how { margin: 4px 0 0; max-width: 34ch; font-size: 16px; color: var(--bone-dim); text-wrap: balance; }
.chap__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 2px 0 4px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); width: 100%; max-width: 420px; }
.chap__facts span { font: 600 12px/1.3 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); }
.chap__facts b { color: var(--bone); font-weight: 600; }
.rate { display: grid; gap: 10px; justify-items: center; width: 100%; margin-top: 2px; }
.rate__q { margin: 0; font: 400 17px/1.3 var(--serif-text); color: var(--bone); }
.rate__row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; max-width: 520px; }
.rate__n { min-height: 50px; border: 1px solid var(--line); background: rgba(5, 5, 5, .5); color: var(--bone); border-radius: 2px; font: 400 22px/1 var(--serif); cursor: pointer; transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s; }
.rate__n:hover { border-color: var(--bone-faint); }
.rate__n:active { transform: scale(.92); }
.rate__n.is-on { background: var(--amber); color: #120c02; border-color: var(--amber); transform: scale(1.06); box-shadow: 0 0 24px -4px var(--amber-glow); }
.rate__ends { display: flex; justify-content: space-between; width: 100%; max-width: 520px; font: 500 11px var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-faint); margin-top: -4px; }
.chap .cta { margin-top: 8px; }
.chap .cta.is-waiting { opacity: .35; pointer-events: none; }
@media (max-width: 560px) {
  .rate__row { grid-template-columns: repeat(5, 1fr); max-width: 330px; gap: 8px; }
  .rate__ends { max-width: 330px; }
}

/* ---------- BETWEEN: one dramatic line, the film advancing ---------- */
.betw { min-height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; gap: 22px; padding: calc(9vh + 18px + var(--sat)) 16px calc(9vh + 18px + var(--sab)); }
.betw__line { margin: 0; max-width: 16ch; font: italic 400 clamp(36px, 10vw, 72px)/1.08 var(--serif); text-wrap: balance; }
.betw__line .w { display: inline-block; opacity: 0; filter: blur(8px); animation: word .9s var(--ease) forwards; animation-delay: calc(400ms + var(--i) * 170ms); }
@keyframes word { to { opacity: 1; filter: none; } }
.betw__fact { margin: -4px 0 0; max-width: 34ch; font: 400 17px/1.4 var(--serif-text); color: var(--bone-dim); text-wrap: balance; }
.betw__fact b { color: var(--bone); font-weight: 400; }
.betw__next { display: grid; gap: 6px; justify-items: center; margin: 0; }
.betw__next p { margin: 0; max-width: 32ch; color: var(--bone-dim); font-size: 15px; text-wrap: balance; }
.betw__next strong { font: 400 24px/1.2 var(--serif); color: var(--bone); font-weight: 400; }

/* the film strip: 6 frames with sprockets; the strip slides so the next frame sits in the gate */
.strip { width: calc(100% + 32px); margin: 0 -16px; max-width: 980px; overflow: hidden; position: relative; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.strip__film { display: flex; gap: 0; width: max-content; background: #15130f; padding: 16px 0; position: relative; transition: transform 1.6s var(--slow); will-change: transform; }
.strip__film::before, .strip__film::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 50% 50%, #050505 2.6px, transparent 3px) 0 0 / 14px 8px repeat-x; }
.strip__film::before { top: 4px; } .strip__film::after { bottom: 4px; }
.fr { position: relative; width: 132px; height: 82px; margin: 0 5px; flex: none; background: #0a0908; overflow: hidden; border-radius: 1px; }
.fr img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.62) contrast(1.1); }
.fr__who { position: absolute; left: 6px; bottom: 5px; font: 600 10px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 4px #000; }
.fr__tag { position: absolute; right: 5px; top: 5px; padding: 3px 5px; font: 700 9px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; border-radius: 1px; }
.fr.is-right .fr__tag { background: var(--good); color: #06210c; }
.fr.is-miss .fr__tag { background: rgba(5, 5, 5, .7); color: var(--almost); box-shadow: inset 0 0 0 1px var(--almost); }
.fr.is-right img { filter: grayscale(.15) brightness(.8); }
.fr.is-blank { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #0d0c0a 0 8px, #11100d 8px 16px); }
.fr.is-blank span { font: italic 400 26px var(--serif); color: var(--bone-faint); }
.fr.is-blank small { position: absolute; bottom: 6px; left: 0; right: 0; font: 600 9px var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); }
.fr.is-new { animation: develop 1.4s ease 1.3s both; }
@keyframes develop { from { filter: brightness(2.2) saturate(0); } to { filter: none; } }

/* ---------- GATE: the verdict is sealed ---------- */
.page:has(.gate) { --lb: 4vh; }
.gate { min-height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; padding: calc(4vh + 22px + var(--sat)) 16px calc(4vh + 22px + var(--sab)); }
.gate__title { margin: 0; font: 400 clamp(38px, 11vw, 76px)/1 var(--serif); text-wrap: balance; }
.seal { position: relative; width: 100%; max-width: 340px; height: 108px; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; display: grid; place-items: center; }
.seal__blur { display: grid; gap: 4px; justify-items: center; filter: blur(9px); opacity: .85; user-select: none; }
.seal__blur b { font: 400 64px/1 var(--serif); }
.seal__blur span { font: 600 14px var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }
.seal__stamp { position: absolute; padding: 8px 16px; border: 2px solid var(--blood); color: #ff4e4e; font: 700 20px/1 var(--cond); letter-spacing: .34em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(5, 5, 5, .35); animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.gate__body { margin: 0; max-width: 32ch; font: 400 17px/1.4 var(--serif-text); color: var(--bone-dim); text-wrap: balance; }
.form { display: grid; gap: 12px; width: 100%; max-width: 360px; text-align: left; }
.field { display: grid; gap: 6px; }
.field label { font: 600 12px var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); }
.field input { width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid var(--bone-faint); border-radius: 2px; background: rgba(242, 237, 227, .04); color: var(--bone); font: 400 18px var(--sans); outline: none; transition: border-color .2s, background .2s; }
.field input::placeholder { color: rgba(242, 237, 227, .3); }
.field input:focus { border-color: var(--amber); background: rgba(242, 181, 68, .06); }
.field.is-bad input { border-color: var(--almost); animation: nudge .35s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field__err { margin: 0; min-height: 0; color: var(--almost); font-size: 14px; line-height: 1.35; }
.form .cta { max-width: none; margin-top: 4px; }
.gate__fine { margin: 0; font-size: 12px; color: var(--bone-faint); }
.seal.is-open .seal__blur { filter: none; opacity: 1; transition: filter .6s ease, opacity .6s; }
.seal.is-open .seal__stamp { transition: transform .5s var(--ease), opacity .5s; transform: rotate(-20deg) scale(1.8); opacity: 0; }
.preroll__line small { display: block; margin-top: 6px; font: 600 11px/1.3 var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-dim); font-style: normal; }
