/* HAUNTS (/haunts/). The box office window at night, painted in blacklight. See the comment at the top of
   index.html for the metaphor. Decoration sits on z-index -1 inside isolated hosts and never takes a click. */

:root {
  --void: #0d0818;     /* the black of a blacked-out haunt hallway, pushed toward violet on purpose */
  --ink: #170e28;
  --uv: #9b5cff;       /* blacklight tube */
  --uv-paint: #d8c4ff; /* white paint under UV */
  --ember: #ff7a1f;    /* jack-o'-lantern */
  --bone: #f1e9dc;
  --muted: #b9abcc;
  --text: var(--bone);
  --yellow: var(--ember); /* site-nav.css reads this name */
  --display: "Big Shoulders Display", "Impact", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --lx: 50vw; --ly: 30vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body { margin: 0; background: var(--void); color: var(--bone); font: 400 1.075rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--uv-paint); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 0.95; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.8rem, 8vw, 5.6rem); text-transform: uppercase; color: var(--bone); text-shadow: 0 0 calc(10px + 30px * var(--near, 0)) rgba(155, 92, 255, calc(0.25 + 0.5 * var(--near, 0))); }
h3 { font-size: 1.7rem; text-transform: uppercase; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- the UV lamp the pointer carries, and the grain ---------- */
.lamp { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(260px 260px at var(--lx) var(--ly), rgba(155, 92, 255, 0.22), rgba(155, 92, 255, 0.07) 45%, transparent 70%);
  opacity: 0; transition: opacity 0.4s; }
.lamp.on { opacity: 1; }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.07;
  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");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- site bar ---------- */
nav.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: 14px clamp(16px, 4vw, 40px); }
.home { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font-weight: 600; white-space: nowrap; }
.start { padding: 0.55em 1.1em; border-radius: 999px; color: var(--void); background: var(--ember); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sitenav { background: transparent; }
@media (max-width: 1640px) { .sitenav { background: #1a0f2e; } }

/* ---------- buttons: painted in UV ---------- */
.go-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 52px; padding: 0.7em 1.5em; border-radius: 999px; font: 600 1.05rem var(--body); text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn--uv { color: var(--void); background: var(--uv-paint);
  box-shadow: 0 0 calc(8px + 28px * var(--near, 0)) rgba(155, 92, 255, calc(0.45 + 0.5 * var(--near, 0))), 0 0 0 2px var(--uv) inset; }
.btn--uv::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(80px 50px at var(--bx, 50%) var(--by, 50%), #fff, transparent 70%); opacity: 0; transition: opacity 0.2s; }
.btn--uv:hover::after { opacity: 0.8; }
.btn--line { color: var(--bone); box-shadow: 0 0 0 2px rgba(241, 233, 220, 0.5) inset; }
.btn--line:hover { box-shadow: 0 0 0 2px var(--uv-paint) inset, 0 0 22px rgba(155, 92, 255, 0.45); color: #fff; }
.btn:active { transform: translateY(1px) scale(0.98); }

/* ---------- hero: Chris's blacklight footage, full bleed ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px max(clamp(16px, 6vw, 72px), calc((100vw - 1180px) / 2)) clamp(40px, 8vh, 90px); overflow: hidden; }
.hero__vid { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: push 28s ease-out forwards; }
@keyframes push { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(13, 8, 24, 0.55) 0%, rgba(13, 8, 24, 0.1) 30%, rgba(13, 8, 24, 0.55) 62%, var(--void) 100%),
  linear-gradient(90deg, rgba(13, 8, 24, 0.75), transparent 70%); }
.hero__words { max-width: 860px; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6.2rem); text-transform: uppercase; color: var(--bone); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e8def5; margin-top: 1.2rem; }

/* the one orchestrated moment: the open-nights sign buzzes on, word by word, once */
.sign { display: inline-flex; gap: 0.35em; margin: 0 0 1.1rem; padding: 0.3em 0.75em; border-radius: 8px; font: 900 clamp(1.1rem, 2.6vw, 1.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--uv-paint);
  box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.8), 0 0 calc(14px + 30px * var(--near, 0)) rgba(155, 92, 255, calc(0.5 + 0.4 * var(--near, 0)));
  text-shadow: 0 0 12px rgba(155, 92, 255, 0.9); }
.sign span { animation: buzz 0.9s steps(1) both; }
.sign span:nth-child(2) { animation-delay: 0.18s; }
.sign span:nth-child(3) { animation-delay: 0.36s; }
@keyframes buzz { 0% { opacity: 0.08; } 20% { opacity: 1; } 28% { opacity: 0.15; } 40% { opacity: 1; } 100% { opacity: 1; } }

/* ---------- sections sit on stills from the footage, with a blacklight wash ---------- */
.plate { position: relative; isolation: isolate; padding: clamp(72px, 12vh, 140px) clamp(16px, 6vw, 72px); }
.plate::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.32; }
.plate::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, var(--void), rgba(13, 8, 24, 0.35) 25%, rgba(13, 8, 24, 0.35) 75%, var(--void)),
  linear-gradient(120deg, rgba(110, 40, 220, 0.5), rgba(13, 8, 24, 0.2) 55%, rgba(255, 106, 20, 0.22)); mix-blend-mode: normal; }
.plate--wall::before { background-image: url(/events/fall-park/media/bg-wall.jpg); }
.plate--cage::before { background-image: url(/events/fall-park/media/bg-cage.jpg); }
.plate--lantern::before { background-image: url(/events/fall-park/media/bg-lantern.jpg); }
.plate--fog::before { background-image: url(/events/fall-park/media/bg-fog.jpg); }
.wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.narrow-wrap { max-width: 760px; }
.head { margin-bottom: 2.4rem; }
.head p { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }

/* ---------- the sample, shown as screens ---------- */
.shots { display: grid; grid-template-columns: 3.2fr 1fr 1fr; gap: clamp(12px, 2vw, 24px); align-items: center; }
.shot { display: block; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(216, 196, 255, 0.25), 0 30px 70px rgba(0, 0, 0, 0.6); transition: transform 0.25s, box-shadow 0.25s; }
.shot--phone { border-radius: 26px; box-shadow: 0 0 0 6px #1c1230, 0 0 0 7px rgba(216, 196, 255, 0.3), 0 30px 70px rgba(0, 0, 0, 0.6); }
.shot:hover, .shot:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--uv), 0 0 40px rgba(155, 92, 255, 0.55), 0 30px 70px rgba(0, 0, 0, 0.6); }
.shot--phone:hover, .shot--phone:focus-visible { box-shadow: 0 0 0 6px #1c1230, 0 0 0 8px var(--uv), 0 0 40px rgba(155, 92, 255, 0.55); }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot--desk { grid-column: 1 / -1; }
}

/* ---------- what's on it: each item lit by its own still ---------- */
.room-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
.room { position: relative; isolation: isolate; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; padding: 26px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(216, 196, 255, 0.18); }
.room img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(0.5); transition: filter 0.35s, transform 0.6s; }
.room::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13, 8, 24, 0.95) 10%, rgba(13, 8, 24, 0.2) 75%); }
.room h3 { color: var(--uv-paint); margin-bottom: 0.4rem; }
.room p { margin: 0; color: #e4daf0; }
.room:hover img { filter: saturate(1.25) brightness(0.75); transform: scale(1.04); }
.room:nth-child(2) { grid-row: span 1; }
@media (max-width: 760px) { .room-list { grid-template-columns: 1fr; } .room { min-height: 220px; } }

/* ---------- the admission ticket, printed in UV ink ---------- */
.ticket-glow { max-width: 980px; filter: drop-shadow(0 0 calc(10px + 36px * var(--near, 0)) rgba(155, 92, 255, calc(0.35 + 0.45 * var(--near, 0)))) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }
.ticket { --stub: 210px; display: grid; grid-template-columns: 1fr var(--stub); border-radius: 18px; overflow: hidden; background: var(--bone);
  -webkit-mask: radial-gradient(circle 16px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.ticket.torn { overflow: visible; -webkit-mask: none; mask: none; }
.ticket__body { color: #1a0f2b; padding: clamp(26px, 4vw, 44px); }
.ticket__kind { font: 700 1.05rem var(--body); letter-spacing: 0.02em; color: #5a3d8a; margin: 0; }
.ticket__price { font: 900 clamp(4.6rem, 13vw, 8.4rem)/0.9 var(--display); color: #6b23e0; margin: 0.15em 0 0.05em; text-shadow: 0 0 calc(18px * var(--near, 0)) rgba(155, 92, 255, 0.8); }
.ticket__time { font: 700 1.5rem var(--display); text-transform: uppercase; margin-bottom: 1.2rem; }
.ticket__list { margin: 0 0 1.2rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ticket__list li { position: relative; padding-left: 1.6rem; }
.ticket__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px rgba(255, 122, 31, 0.7); }
.ticket__fine { font-size: 0.95rem; color: #4b3b63; margin: 0; }
.ticket__stub { position: relative; border-left: 3px dashed rgba(26, 15, 43, 0.35); }
.stub { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 26px 18px; color: #1a0f2b; text-decoration: none; transform-origin: 0 100%; transition: transform 0.2s;
  background: var(--uv-paint); }
.stub__word { font: 900 2.6rem/0.9 var(--display); text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); color: #5a1fc4; }
.stub__go { display: inline-block; padding: 0.6em 1.1em; border-radius: 999px; background: #1a0f2b; color: var(--uv-paint); font: 600 1rem var(--body); white-space: nowrap; }
.stub:hover { transform: rotate(-2.5deg); }
.stub:hover .stub__go { background: var(--ember); color: #1a0f2b; }
.ticket.torn .stub { animation: tear 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes tear { 0% { transform: rotate(-2.5deg); } 30% { transform: rotate(-8deg) translate(6px, -4px); } 100% { transform: rotate(-24deg) translate(60px, 140px); opacity: 0; } }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; --hole: calc(100% - 84px);
    -webkit-mask: radial-gradient(circle 16px at 0 var(--hole), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% var(--hole), #0000 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 16px at 0 var(--hole), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% var(--hole), #0000 97%, #000) right / 51% 100% no-repeat; }
  .ticket__stub { border-left: 0; border-top: 3px dashed rgba(26, 15, 43, 0.35); }
  .stub { flex-direction: row; justify-content: space-between; height: 81px; padding: 0 22px; transform-origin: 100% 0; }
  .stub__word { writing-mode: horizontal-tb; transform: none; font-size: 2rem; }
  .stub:hover { transform: rotate(1.5deg); }
  @keyframes tear { 0% { transform: rotate(1.5deg); } 100% { transform: rotate(10deg) translate(20px, 120px); opacity: 0; } }
}

/* ---------- why now, who ---------- */
.now p, .who p { font-size: 1.2rem; color: #e6dcf2; }
.now h2, .who h2 { margin-bottom: 1.4rem; }
.who__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.who__reel { margin: 0; }
.who__reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px rgba(216, 196, 255, 0.25), 0 0 50px rgba(155, 92, 255, 0.3); background: #000; }
.who__reel figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .who__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ: each marker is a tiny blacklight that switches on when opened ---------- */
.faq h2 { margin-bottom: 1.8rem; }
.faq details { border-top: 1px solid rgba(216, 196, 255, 0.2); }
.faq details:last-of-type { border-bottom: 1px solid rgba(216, 196, 255, 0.2); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.1rem 0 1.1rem 2.2rem; font: 600 1.2rem var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 0.2rem; top: 50%; width: 0.9rem; height: 0.9rem; margin-top: -0.45rem; border-radius: 3px; background: #3a2a55; transition: background 0.2s, box-shadow 0.2s; }
.faq summary:hover::before { background: #6a48a8; }
.faq details[open] summary::before { background: var(--uv-paint); box-shadow: 0 0 14px 3px rgba(155, 92, 255, 0.85); }
.faq details p { padding-left: 2.2rem; color: #dfd4ec; }

.close h2 { margin-bottom: 1rem; }
.close p { font-size: 1.2rem; }
.foot { position: relative; z-index: 2; padding: 34px clamp(16px, 6vw, 72px) 48px; color: var(--muted); font-size: 0.92rem; }
.foot a { margin-right: 0.8em; color: var(--muted); }
.foot a:hover { color: var(--uv-paint); }

@media (max-width: 560px) {
  .hero { padding-top: 96px; }
  .go-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* Still under reduced motion: every light simply on, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__vid { animation: none; }
  .grain { animation: none; }
  .sign span { animation: none; }
  .lamp { display: none; }
  :root { --near: 0.6; }
  .stub, .shot, .room img, .btn { transition: none; }
  .stub:hover, .shot:hover { transform: none; }
}

/* ---------- built from what you have: a true sequence, each marker lights when reached ---------- */
.how { position: relative; z-index: 2; padding: clamp(64px, 10vh, 120px) clamp(16px, 6vw, 72px); background: linear-gradient(180deg, var(--void), #140b24 50%, var(--void)); }
.how h2 { margin-bottom: 2.4rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.steps li { counter-increment: s; position: relative; padding-top: 4.2rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; font: 900 1.6rem var(--display); color: #6a5a85; box-shadow: 0 0 0 2px #3a2a55 inset; transition: color 0.4s, box-shadow 0.4s, background 0.4s; }
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3.6rem; right: -1rem; border-top: 2px dashed #3a2a55; }
.steps li:last-child::after { display: none; }
.steps li.lit::before { color: var(--void); background: var(--uv-paint); box-shadow: 0 0 0 2px var(--uv) inset, 0 0 22px rgba(155, 92, 255, 0.8); }
.steps h3 { font-size: 1.45rem; color: var(--uv-paint); margin-bottom: 0.5rem; }
.steps p { color: #ddd2ea; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps li { padding: 0 0 0 4.2rem; min-height: 3rem; }
  .steps li::after { top: 3.6rem; left: 1.5rem; right: auto; bottom: -1.4rem; border-top: 0; border-left: 2px dashed #3a2a55; }
}
@media (prefers-reduced-motion: reduce) { .steps li::before { transition: none; } }

/* ---------- the legal notes: plain, readable, at the foot of the page ---------- */
.legal { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 5vw, 56px) 8px; border-top: 1px solid rgba(160, 180, 240, 0.18); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; font-size: .86rem; line-height: 1.55; color: #aab4d4; }
.legal h2 { grid-column: 1 / -1; margin: 0; font-family: "Inter", "Barlow", system-ui, sans-serif; font-size: .95rem; font-weight: 700; font-stretch: 100%; line-height: 1.3; text-transform: none; letter-spacing: 0; color: #dfe6fb; text-shadow: none; }
.legal p { margin: 0; max-width: none; color: inherit; font-size: inherit; }
.legal b { color: #dfe6fb; }
.legal a { color: inherit; }
@media (max-width: 760px) { .legal { grid-template-columns: 1fr; } }
.legal { position: relative; z-index: 2; }
