/* Masknight editorial chapters — layout, accessibility and checkout. */
:root {
  color-scheme: dark; --ink: #12080b; --paper: #fff1df; --muted: #d5c3bd;
  --gold: #e8bd7e; --line: #e8bd7e45; --gutter: clamp(1.15rem, 5vw, 4rem);
  font: 1rem/1.5 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,.edition,.ticket-amount { font-family: Georgia, serif; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 72rem); margin-inline: auto; }
.eyebrow { font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top); background: linear-gradient(180deg,#10060be0,transparent); pointer-events: none; }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: .7rem; }
.brand { font: 1.45rem Georgia,serif; letter-spacing: -.04em; pointer-events: auto; }
.bar nav { display: flex; align-items: center; gap: .9rem; pointer-events: auto; }
.bar nav a { font-size: .75rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav-ticket { border: 1px solid #fff1df70; padding: .6rem 1rem; border-radius: 99px; }
.page-progress { height: 1px; background: #fff0; }
.page-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: .8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; border: 1px solid var(--gold); border-radius: 99px; padding: .75rem 1.35rem; background: var(--gold); color: #23120f; font-size: .88rem; font-weight: 650; }
.button.secondary { color: var(--paper); background: transparent; border-color: var(--line); }
.button:disabled { opacity: .55; cursor: wait; }
.button:active,.ticket:active { transform: scale(.98); }
.next-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: .78rem; }
.chapter { position: relative; background: var(--ink); --p: 0; --shift: 0px; --zoom: 1.04; }
.scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.chapter.is-pinned { height: 230vh; height: 230svh; }
.chapter--experience.is-pinned { height: 164vh; height: 164svh; }
.chapter--tickets.is-pinned { height: 143vh; height: 143svh; }
.chapter.is-pinned .scene { position: sticky; top: 0; }
.scene-background { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: #210b10; }
.hero-background { background: #210b10 url('/assets/cinema/shirtless-01.webp') center 36% / cover no-repeat; }
.hero-background canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hero-background canvas.ready { opacity: 1; }
.picture-background img { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; object-position: 50% 35%; transform: translate3d(0,var(--shift),0) scale(var(--zoom)); transform-origin: 50% 40%; }
.chapter--experience .picture-background { background: #210b10 url('/assets/cinema/experience.webp') center/cover no-repeat; }
.chapter--tickets .picture-background { background: #210b10 url('/assets/cinema/shirtless-12.webp') center 30%/cover no-repeat; }
.chapter--tickets .picture-background img { object-position: 50% 25%; }
.scene::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(0deg,#12080b 0%,#12080be6 7%,#12080b99 24%,#12080b15 54%,transparent 76%),linear-gradient(90deg,#12080b65,transparent 40%,transparent 70%,#12080b40); }
.chapter--experience .scene::after { background: linear-gradient(0deg,#12080b 0%,#12080be8 10%,#12080b8a 35%,#12080b10 64%),linear-gradient(90deg,#12080b40,transparent 70%); }
.chapter--tickets .scene::after { background: linear-gradient(0deg,#12080b 0%,#12080bf0 15%,#12080bd6 38%,#12080b30 75%,transparent 100%); }
.scene-copy { position: relative; padding-top: calc(5.5rem + env(safe-area-inset-top)); padding-bottom: max(2rem,env(safe-area-inset-bottom)); }
.scene-copy h1 { font-size: clamp(5rem,12vw,11rem); line-height: .88; letter-spacing: -.075em; margin: .5rem 0 .7rem; text-shadow: 0 6px 35px #12080b80; }
.scene-copy h2 { font-size: clamp(3.4rem,8vw,7.2rem); line-height: .93; letter-spacing: -.065em; margin: .65rem 0 1.15rem; }
.edition { font-style: italic; font-size: clamp(1.2rem,2.4vw,2rem); color: var(--gold); }
.date { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin: .85rem 0 1.1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.scene-index { display: flex; align-items: center; gap: .65rem; color: var(--gold); font-size: .59rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 1rem; }
.progress { height: 1px; width: 4rem; background: #fff3; }
.progress span { display: block; width: 100%; height: 1px; transform-origin: left; transform: scaleX(0); background: var(--gold); }
.chapter--hero:not(.is-pinned) .scene-index { display: none; }
.experience-list { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.65rem; margin: 0 0 1.15rem; }
.experience-list div { display: flex; gap: .55rem; align-items: center; font-size: .85rem; }
.experience-list svg { width: 26px; height: 26px; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: 0 0 auto; }
.event-meta { display: grid; gap: .3rem; color: var(--muted); font-size: .8rem; }
.event-meta strong { color: var(--paper); font-weight: 550; }
.chapter--experience .next-link { margin-top: .6rem; }
.ticket-copy { max-width: 65rem; }
.ticket-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.ticket { appearance: none; min-width: 0; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); background: #14090dd9; color: var(--paper); padding: 1.1rem; text-align: left; border-radius: .7rem; }
.ticket.vip { background: #6a442ce6; border-color: #e8bd7ec0; }
.ticket-label { display: grid; gap: .18rem; }
.ticket-label strong { font-size: 1.3rem; font-weight: 600; }
.ticket-label small { font-size: .74rem; color: #f4e3d5; }
.ticket-amount { color: var(--gold); font-size: clamp(1.6rem,4vw,2.5rem); white-space: nowrap; display: flex; align-items: center; gap: .55rem; }
.ticket-amount span { font: 1rem system-ui,sans-serif; }
.payment-note { font-size: .72rem; color: var(--muted); margin-top: .8rem; }
.event-info { font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.event-info summary { cursor: pointer; min-height: 32px; line-height: 32px; }
.event-info p { max-width: 65ch; padding: .15rem 0 .45rem; }
.endline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .68rem; color: var(--muted); }
.status-banner { position: relative; z-index: 21; padding: calc(5rem + env(safe-area-inset-top)) 0 1rem; }
.status-banner .button { margin-top: .75rem; }
dialog { width: min(calc(100% - 2rem),30rem); max-height: calc(100dvh - 1rem); background: #251419; color: var(--paper); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem; overflow: auto; }
dialog::backdrop { background: #080306d9; backdrop-filter: blur(7px); }
dialog[open] { animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dialog-top,.total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-top h2 { font-size: 1.7rem; }
.close { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--paper); border-radius: 50%; font-size: 1.4rem; }
.total { margin: 1.2rem 0; padding: 1rem 0; border-block: 1px solid var(--line); color: var(--gold); }
dialog p { color: var(--muted); font-size: .85rem; }
#payment-form label { display: block; margin-top: 1rem; font-size: .86rem; }
#payment-form input { width: 100%; min-height: 50px; background: var(--ink); border: 1px solid var(--line); border-radius: .5rem; color: var(--paper); padding: .75rem; margin-top: .4rem; font-size: 16px; }
dialog .button { width: 100%; margin-top: 1rem; }
.checkout-note { font-size: .73rem; margin-top: .7rem; }
@media (hover:hover) { .ticket:hover { border-color: var(--gold); } .button:hover { filter: brightness(1.1); } }
@media (max-width:720px) {
  .nav-row { min-height: 3.7rem; } .brand { font-size: 1.25rem; } .bar nav { gap: .7rem; } .bar nav a { font-size: .72rem; } .nav-ticket { padding: .5rem .85rem; }
  .chapter--hero.is-pinned { height: 230svh; } .chapter--experience.is-pinned { height: 155svh; } .chapter--tickets.is-pinned { height: 135svh; }
  .scene::after { background: linear-gradient(0deg,#12080b 0%,#12080bef 7%,#12080ba0 20%,#12080b20 43%,transparent 66%),linear-gradient(180deg,#12080b55,transparent 16%); }
  .chapter--experience .scene::after { background: linear-gradient(0deg,#12080b 0%,#12080bf0 10%,#12080ba0 25%,#12080b10 55%,transparent 78%); }
  .chapter--tickets .scene::after { background: linear-gradient(0deg,#12080b 0%,#12080bf0 14%,#12080bdc 32%,#12080b65 57%,transparent 84%); }
  .scene-copy { padding-bottom: max(1.5rem,env(safe-area-inset-bottom)); }
  .scene-copy h1 { font-size: clamp(3.65rem,16vw,6.9rem); margin: .4rem 0 .5rem; }
  .scene-copy h2 { font-size: clamp(3.15rem,13vw,5rem); margin-bottom: .9rem; }
  .eyebrow { font-size: .56rem; }
  .edition { font-size: 1.18rem; } .date { font-size: .68rem; margin: .7rem 0 .8rem; }
  .hero-actions { gap: .8rem; } .scene-index { margin-top: .65rem; }
  .experience-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin-bottom: .8rem; }
  .experience-list div { align-items: flex-start; flex-direction: column; gap: .4rem; font-size: .72rem; }
  .experience-list svg { width: 25px; height: 25px; }
  .event-meta { font-size: .74rem; } .desktop-break { display: none; }
  .ticket-options { grid-template-columns: 1fr; gap: .55rem; }
  .ticket { min-height: 76px; padding: .8rem .9rem; gap: .6rem; }
  .ticket-label strong { font-size: 1.12rem; } .ticket-label small { font-size: .68rem; }
  .ticket-amount { font-size: clamp(1.65rem,7vw,2.2rem); }
  .ticket-copy { padding-bottom: max(1rem,env(safe-area-inset-bottom)); }
  .payment-note { font-size: .68rem; margin-top: .65rem; }
  .event-info { font-size: .68rem; } .endline { font-size: .63rem; }
  dialog { margin: auto auto 0; width: 100%; max-width: none; border-radius: 1.15rem 1.15rem 0 0; padding-bottom: max(1.5rem,env(safe-area-inset-bottom)); }
}
@media (max-height: 540px) {
  .scene-copy { padding-top: calc(4.5rem + env(safe-area-inset-top)); padding-bottom: 1rem; }
  .scene-copy h1 { font-size: clamp(3rem,11vw,5rem); }
  .scene-copy h2 { font-size: clamp(2.5rem,8vw,4rem); }
  .scene-index { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; } .chapter.is-pinned { height: auto; }
  .chapter.is-pinned .scene { position: relative; } .picture-background img { transform: none; }
  .scene-index { display: none; } dialog[open] { animation: none; }
}

/* Compact event information and less visual chrome. */
.event-line { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem 1rem; margin:.75rem 0 1.3rem; }
.event-line .edition { line-height:1.15; }
.event-line .date { display:inline-flex; align-items:center; gap:.45rem; margin:0; font-size:clamp(.83rem,2vw,1rem); letter-spacing:0; text-transform:none; font-weight:650; color:var(--paper); white-space:nowrap; }
.event-line .date svg { width:1.2rem; height:1.2rem; color:var(--gold); flex:none; }
.event-line .date::before { content:""; width:1px; height:1.1rem; background:var(--line); margin-right:.25rem; }
.hero-kicker { letter-spacing:.15em; }
.chapter--hero .scene-copy h1 { margin:.35rem 0 .55rem; }
.hero-actions { gap:.75rem; align-items:center; }
.hero-actions .button { min-width:10.8rem; }
.scroll-cue { display:inline-grid; place-items:center; width:46px; height:46px; border:1px solid #fff1df65; border-radius:50%; color:var(--paper); }
.scroll-cue svg { width:22px; height:22px; }
.picture-background img { transform:translate3d(0,0,0) scale(1.035); }
@media(max-width:720px) {
  .chapter--hero .scene-copy { padding-bottom:max(1.45rem,env(safe-area-inset-bottom)); }
  .chapter--hero .scene-copy h1 { font-size:clamp(3.25rem,15vw,6.3rem); }
  .event-line { gap:.5rem .7rem; margin:.7rem 0 1.05rem; }
  .event-line .edition { font-size:1rem; white-space:nowrap; }
  .event-line .date { font-size:.88rem; }
  .event-line .date svg { width:1.1rem; height:1.1rem; }
  .event-line .date::before { margin-right:.1rem; }
  .hero-kicker { font-size:.58rem; }
  .chapter--hero .scene::after { background:linear-gradient(0deg,#12080b 0%,#12080bea 8%,#12080b99 21%,#12080b15 42%,transparent 66%),linear-gradient(180deg,#12080b65,transparent 16%); }
  .hero-actions .button { min-height:3rem; min-width:10rem; }
  .scroll-cue { width:44px;height:44px; }
}
@media(max-width:350px) {
  .event-line { gap:.4rem; }
  .event-line .edition { font-size:.92rem; }
  .event-line .date { font-size:.81rem; }
  .event-line .date::before { margin-right:0; }
}
@media(prefers-reduced-motion:reduce) { .picture-background img { transform:none!important; } }
