:root {
  --theater: #070604;
  --theater-warm: #0f0905;
  --screen: #efe7d7;
  --screen-hi: #f8f0df;
  --screen-low: #dfd2bc;
  --ink: #181411;
  --ink-soft: #6d645b;
  --rule: #c7b99f;
  --accent: #842329;
  --accent-bright: #ad3635;
  --gold: #d5a36d;
  --gold-bright: #f0c991;
  --gold-rgb: 213, 163, 109;
  --wood: #1a0d06;
  --wood-deep: #0b0503;
  --ember: #d4a56e;
  --ember-bright: #f0c996;
  --serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-cn: 'Noto Serif TC', 'Noto Serif SC', 'Songti SC', serif;
  --serif: var(--serif-cn), var(--serif-en);
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --pointer-x: 50%;
  --pointer-y: 40%;
  --scene-x: 0px;
  --scene-y: 0px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--theater);
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--gold-rgb), .32) #080604;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #080604; }
::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), .34); border: 2px solid #080604; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--serif);
  background: var(--theater);
  opacity: 1;
  transition: opacity .5s ease, filter .42s ease;
}

.has-js body { opacity: 0; }
.has-js body.page-ready { opacity: 1; }
body.page-leaving { opacity: 0; filter: blur(5px) brightness(.55); }

a { color: inherit; }

.hall {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  padding: 0;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(var(--gold-rgb), .055), transparent 28%),
    var(--theater);
}

.cinema-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--scene-x), var(--scene-y), 0) scale(1.025);
  transition: transform .2s ease-out;
}

.atmosphere-glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 58% 48% at 50% 28%, rgba(229,177,113,.12), transparent 66%),
    linear-gradient(180deg, rgba(120,65,28,.06), transparent 54%);
}

.atmosphere-beam {
  position: absolute;
  left: 50%;
  top: -20vh;
  width: min(78vw, 1050px);
  height: 120vh;
  transform: translateX(-50%);
  clip-path: polygon(42% 0, 58% 0, 94% 100%, 6% 100%);
  background: linear-gradient(180deg, rgba(255,225,176,.08), rgba(255,214,150,.015) 66%, transparent);
  opacity: .65;
  filter: blur(8px);
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(46px, 11vw, 170px);
  opacity: .46;
  background:
    repeating-linear-gradient(90deg, #080302 0, #1b0808 18%, #050202 33%, #270b0d 52%, #080202 71%, #180606 100%);
  box-shadow: inset 0 0 60px #000, 0 0 80px rgba(0,0,0,.75);
}
.curtain-left { left: 0; transform: skewY(-1deg); }
.curtain-right { right: 0; transform: scaleX(-1) skewY(-1deg); }

.theme-bar .curtain { opacity: .14; }
.theme-bar .atmosphere-beam { opacity: .25; }
.theme-bar .atmosphere-glow {
  background:
    radial-gradient(ellipse 58% 48% at 50% 32%, rgba(218,124,54,.22), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(0,0,0,.3) 119px, transparent 120px),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(84,40,18,.14) 2px 3px),
    #140904;
}

#cinema-dust {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.58) 100%);
}

.grain {
  position: fixed;
  inset: -35px;
  z-index: 41;
  pointer-events: none;
  opacity: .075;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.62'/></svg>");
  animation: grain-shift .6s steps(3) infinite;
}

@keyframes grain-shift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(-2px,1px); }
  66% { transform: translate(2px,-1px); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: var(--header-h);
  padding: 0 clamp(1.2rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(238,207,165,.66);
  border-bottom: 1px solid transparent;
  transition: height .35s ease, background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

body.is-scrolled .site-header {
  height: 58px;
  background: rgba(7,5,4,.82);
  border-color: rgba(var(--gold-rgb),.16);
  backdrop-filter: blur(14px);
}

.site-brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}

.site-brand-mark {
  font-family: var(--serif-en);
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: .28em;
}

.site-brand-sub {
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .24em;
  opacity: .47;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem,3vw,2.8rem);
}

.site-nav a {
  position: relative;
  padding: .5rem 0;
  color: rgba(238,207,165,.52);
  font-size: .7rem;
  letter-spacing: .26em;
  text-decoration: none;
  transition: color .25s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: .26em;
  bottom: .15rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] { color: var(--gold-bright); }
.site-nav a:hover::after,
.site-nav a[aria-current='page']::after { transform: scaleX(1); }

.site-status {
  justify-self: end;
  margin: 0;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .22em;
  color: rgba(238,207,165,.38);
}

.page-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100vh - 8rem);
  padding: calc(var(--header-h) + 2.5rem) clamp(1rem,4vw,3rem) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  position: relative;
  width: min(100%, 920px);
  max-width: none;
  padding: clamp(3.8rem,7vw,6.5rem) clamp(2rem,7vw,6.5rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 40% 12%, rgba(255,255,255,.34), transparent 26%),
    repeating-linear-gradient(0deg, rgba(94,68,40,.018) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, var(--screen-hi), var(--screen) 46%, var(--screen-low));
  border: 1px solid rgba(255,232,196,.08);
  box-shadow:
    0 0 0 1px rgba(30,18,9,.65),
    0 0 90px rgba(255,211,144,.08),
    0 42px 110px rgba(0,0,0,.78),
    inset 0 0 90px rgba(116,80,39,.08);
  line-height: 1.95;
  font-size: 1.06rem;
  clip-path: polygon(0 10px,10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px));
}

.screen::before,
.screen::after {
  content: '';
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 7px;
  opacity: .33;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(31,22,13,.72) 0 8px, transparent 8px 23px);
}
.screen::before { left: 13px; }
.screen::after { right: 13px; }

.screen h1,
.screen h2,
.screen h3 { font-weight: 500; line-height: 1.3; }
.screen h1 { margin: 0 0 1.5rem; text-align: center; font-size: clamp(2rem,5vw,3.2rem); }
.screen h2 { margin: 3.5rem 0 1.2rem; text-align: center; font-size: 1.15rem; letter-spacing: .28em; color: var(--ink-soft); }
.screen p { margin: 1.3rem 0; }
.screen a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.screen a:hover { color: var(--accent); text-decoration-color: var(--accent-bright); }
.screen hr { width: 48%; margin: 3rem auto; border: 0; border-top: 1px solid var(--rule); }
.screen blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.4rem; border-left: 2px solid var(--accent); color: var(--ink-soft); font-style: italic; }

.seats {
  position: relative;
  z-index: 3;
  width: min(100%, 920px);
  margin: 3rem auto 0;
  padding: 1.2rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  color: rgba(202,181,150,.4);
  border-top: 1px solid rgba(var(--gold-rgb),.12);
}

.seats-primary { margin: 0; font-size: .7rem; letter-spacing: .22em; }
.seats-primary a { color: inherit; text-decoration: none; transition: color .25s; }
.seats-primary a:hover { color: var(--gold-bright); }
.seats-primary .dot { margin: 0 .55rem; opacity: .45; }
.copyright { margin: 0; justify-self: center; font-family: var(--mono); font-size: .48rem; letter-spacing: .2em; opacity: .65; }
.seats-signature { margin: 0; justify-self: end; font-family: var(--serif-en); font-size: .78rem; font-style: italic; letter-spacing: .12em; }

[data-reveal] {
  opacity: 1;
  transform: none;
}
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease var(--reveal-delay,0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--reveal-delay,0ms);
}
.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform-style: preserve-3d;
}
[data-tilt]:hover { transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }

::selection { background: var(--accent); color: var(--screen-hi); }
.theme-bar ::selection { background: var(--gold); color: var(--wood-deep); }

.intertitle {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #e1bd8e;
  background: #030201;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.intertitle.show { opacity: 1; pointer-events: all; }
.intertitle::before,
.intertitle::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  height: 12px;
  opacity: .28;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(223,187,134,.7) 18px 26px, transparent 26px 42px);
}
.intertitle::before { top: 22px; }
.intertitle::after { bottom: 22px; }
.intertitle-card {
  position: relative;
  width: min(90vw,680px);
  padding: clamp(3rem,8vw,5.5rem);
  text-align: center;
  background: radial-gradient(ellipse at center, #1b1108, #070302 82%);
  border: 1px solid rgba(var(--gold-rgb),.38);
  box-shadow: inset 0 0 100px #000, 0 0 90px rgba(var(--gold-rgb),.08);
  transform: scale(.9);
  filter: blur(3px);
  transition: transform .5s cubic-bezier(.15,.8,.2,1), filter .5s ease;
}
.intertitle.show .intertitle-card { transform: scale(1); filter: blur(0); }
.intertitle-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(var(--gold-rgb),.18);
  pointer-events: none;
}
.intertitle-corner { position: absolute; width: 21px; height: 21px; border-color: rgba(var(--gold-rgb),.62); }
.intertitle-corner-tl { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.intertitle-corner-tr { top: 7px; right: 7px; border-top: 1px solid; border-right: 1px solid; }
.intertitle-corner-bl { bottom: 7px; left: 7px; border-bottom: 1px solid; border-left: 1px solid; }
.intertitle-corner-br { bottom: 7px; right: 7px; border-bottom: 1px solid; border-right: 1px solid; }
.intertitle-pre,.intertitle-post { margin: 0; font: 500 .72rem/1 var(--mono); letter-spacing: .42em; opacity: .62; }
.intertitle-pre { margin-bottom: 1.5rem; }
.intertitle-post { margin-top: 1.4rem; }
.intertitle-title { margin: 0; font: 500 clamp(2.2rem,6vw,4.2rem)/.95 var(--serif-en); letter-spacing: .13em; text-transform: uppercase; }
.intertitle-flourish { margin: 1.7rem 0 0; opacity: .4; }

.passcode-trigger {
  position: fixed;
  right: .75rem;
  bottom: .55rem;
  z-index: 90;
  padding: .5rem;
  color: rgba(215,190,155,.055);
  background: transparent;
  border: 0;
  font: .7rem/1 var(--mono);
  cursor: default;
  transition: color .35s;
}
.passcode-trigger:hover { color: rgba(var(--gold-rgb),.4); cursor: pointer; }
.passcode-trigger:focus-visible { outline: 1px dotted var(--gold); outline-offset: 3px; }
.passcode-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(9px);
}
.passcode-modal.show { display: flex; }
.passcode-frame {
  width: min(420px,100%);
  padding: 2.8rem;
  text-align: center;
  color: var(--gold);
  background: radial-gradient(circle at center, #160a05, #030101);
  border: 1px solid rgba(var(--gold-rgb),.28);
  box-shadow: inset 0 0 60px #000, 0 0 60px rgba(205,87,37,.1);
}
.passcode-prompt { margin: 0 0 1.5rem; font: .68rem/1 var(--mono); letter-spacing: .38em; opacity: .68; }
.passcode-input {
  width: 100%;
  padding: .7rem 0;
  color: #f1b27d;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(var(--gold-rgb),.42);
  outline: 0;
  text-align: center;
  font: 1rem/1 var(--mono);
  letter-spacing: .16em;
}
.passcode-input.shake { animation: passcode-shake .4s ease; color: #ff6150; border-color: #ff4938; }
.passcode-input.authorized { color: #9bffad; border-color: #66dd7b; }
@keyframes passcode-shake { 20%{transform:translateX(-6px)} 40%{transform:translateX(5px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }
.passcode-hint { min-height: 1em; margin: 1rem 0 0; font: .65rem/1 var(--mono); letter-spacing: .28em; opacity: .55; }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: auto 1fr; padding-inline: 1rem; }
  .site-brand-sub,.site-status { display: none; }
  .site-nav { justify-self: end; gap: 1rem; }
  .site-nav a { font-size: .64rem; letter-spacing: .15em; }
  .page-stage { padding-inline: .75rem; }
  .screen { padding: 3.4rem 1.55rem; font-size: 1rem; }
  .screen::before { left: 8px; }
  .screen::after { right: 8px; }
  .curtain { width: 28px; opacity: .28; }
  .seats { grid-template-columns: 1fr; gap: .7rem; text-align: center; }
  .copyright,.seats-signature { justify-self: center; }
}

@media (max-width: 460px) {
  .site-brand-mark { font-size: .9rem; }
  .site-nav { gap: .7rem; }
  .site-nav a { font-size: .6rem; }
  .screen { padding-inline: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { opacity: 1; transition: none; }
  .grain,#cinema-dust { animation: none; display: none; }
  .cinema-atmosphere { transform: none; transition: none; }
  [data-reveal],.has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-tilt]:hover { transform: none; }
  .intertitle,.intertitle-card { transition: none; }
}
