:root {
  --espresso: #1d1512;
  --wood: #2b1d17;
  --merlot: #5e1426;
  --brass: #c9a25a;
  --brass-hi: #ecd29a;
  --cream: #f3ead9;
  --paper: #fbf7ef;
  --ink: #2b1d17;
  --edge: #e3954a;
  --serif: 'DM Serif Display', Georgia, serif;
  --body: 'Cormorant Garamond', Georgia, serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --hand: 'Caveat', cursive;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --fh: clamp(78px, calc((100svh - 372px) / 4), 116px);
  --sw: calc(var(--fh) * 1.36 + 18px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, #3a2620 0%, #140d0b 70%) fixed;
  color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100svh; }
.app { position: relative; max-width: 480px; margin: 0 auto; overflow-x: hidden; box-shadow: 0 0 80px rgba(0, 0, 0, .5); }

/* ───────── Booth ───────── */
.booth {
  position: relative; height: 100svh; min-height: 660px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 214, 160, .10), transparent 60%),
    linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 18%, transparent 82%, rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, #22160f 0 46px, #1b110c 46px 48px),
    #1d130e;
}
.booth::after { /* vignette */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(0, 0, 0, .55));
}

.sign {
  position: absolute; top: 14px; left: 16px; right: 16px; height: 118px; z-index: 7;
  border-radius: 14px; background: linear-gradient(#24150f, #160d09);
  border: 2px solid var(--brass); box-shadow: 0 0 0 4px #160d09, 0 0 0 5px rgba(201, 162, 90, .5), 0 10px 30px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.bulbs {
  position: absolute; left: 14px; right: 14px; height: 8px;
  background: radial-gradient(circle, #fff3cf 0 2.2px, #f2c46b 2.6px 3.4px, transparent 3.8px) 0 0 / 17px 8px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 205, 120, .9));
  animation: bulbs 1.6s steps(2) infinite;
}
.bulbs.top { top: 6px; }
.bulbs.bottom { bottom: 6px; animation-delay: .8s; }
@keyframes bulbs { 50% { opacity: .55; } }
.sign-small { font: 400 9px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: rgba(243, 234, 217, .65); }
.sign-big {
  font: italic 400 46px/1 var(--serif); color: #fff1d6; margin: 4px 0 2px;
  text-shadow: 0 0 6px rgba(255, 196, 110, .9), 0 0 18px rgba(255, 160, 70, .55), 0 0 36px rgba(255, 140, 40, .35);
  animation: neon 5s infinite;
}
@keyframes neon { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }
.sign-sub { font: 400 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--brass-hi); }

.slot {
  position: absolute; top: 146px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: calc(var(--sw) + 34px); height: 16px; border-radius: 4px;
  background: linear-gradient(#0a0605, #1a110c); border: 2px solid #8d6f3c;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 230, 180, .15);
}
.slot span { position: absolute; top: 50%; transform: translateY(-50%); line-height: 1; left: 0; right: 0; text-align: center; font: 8px var(--mono); letter-spacing: .4em; text-transform: uppercase; color: rgba(236, 210, 154, .5); }

.strip-wrap { position: absolute; top: 155px; left: 0; right: 0; bottom: 0; overflow: hidden; display: flex; justify-content: center; z-index: 1; }
.swing { transform-origin: 50% 0; }
.strip {
  width: var(--sw); padding: 9px 9px 0; background: #fbf6ec; transform: translateY(-104%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .55), 0 2px 3px rgba(0, 0, 0, .3);
}
.strip .fr { height: var(--fh); margin-bottom: 7px; overflow: hidden; background: #e9e1d2; }
.strip img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(1) brightness(1.9) contrast(.35) saturate(0); }
.strip .lbl { text-align: center; padding: 3px 0 11px; }
.strip .lbl b { display: block; font: italic 400 calc(var(--fh) * .155) / 1.1 var(--serif); color: var(--merlot); }
.strip .lbl span { font: 400 8px var(--mono); letter-spacing: .3em; color: #7a6155; }

.rod {
  position: absolute; top: 139px; left: 6px; right: 6px; height: 7px; z-index: 5; border-radius: 4px;
  background: linear-gradient(#f3dca6, #a8823f 60%, #6e5226); box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}
.curtain {
  position: absolute; top: 142px; bottom: 0; width: 51%; z-index: 4;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 14%, transparent 78%, rgba(0, 0, 0, .45)),
    repeating-linear-gradient(90deg, #3a0a16 0, #5e1426 9px, #7f2338 16px, #a0384d 20px, #7f2338 24px, #5e1426 31px, #3a0a16 40px);
  transition: transform 1.35s cubic-bezier(.7, 0, .2, 1);
  will-change: transform;
}
.curtain::after { /* gold fringe */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background:
    linear-gradient(var(--brass), var(--brass)) top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #d8b46c 0 2px, transparent 2px 4px);
  opacity: .9;
}
.curtain.left { left: 0; transform-origin: 0 50%; box-shadow: inset -14px 0 22px rgba(0, 0, 0, .45); }
.curtain.right { right: 0; transform-origin: 100% 50%; box-shadow: inset 14px 0 22px rgba(0, 0, 0, .45); }
.booth.open .curtain.left, .booth.open .curtain.right { transform: scaleX(.13); }

.intro {
  position: absolute; top: 142px; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px 40px;
  background: radial-gradient(ellipse at 50% 48%, rgba(24, 6, 10, .62), transparent 68%);
  color: var(--cream); cursor: pointer; transition: opacity .45s ease;
  -webkit-tap-highlight-color: transparent;
}
.intro > * { animation: rise 1.2s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .15s; }
.intro > :nth-child(3) { animation-delay: .3s; }
.intro > :nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.intro .eyebrow { font: italic 400 18px var(--body); color: rgba(243, 234, 217, .85); }
.intro .names { font: italic 400 58px/1 var(--serif); margin: 12px 0 14px; text-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.intro .names em { display: block; font-style: italic; font-size: 34px; color: var(--brass-hi); margin: 2px 0; }
.intro .date { font: 400 11px var(--mono); letter-spacing: .34em; text-transform: uppercase; color: var(--brass-hi); }
.intro .go {
  position: relative; margin-top: 38px; padding: 14px 30px; border-radius: 999px;
  border: 1px solid var(--brass); color: var(--cream); background: rgba(20, 8, 10, .35);
  font: 400 12px var(--mono); letter-spacing: .3em; text-transform: uppercase;
}
.intro .go::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 1px solid rgba(236, 210, 154, .6); animation: ring 2.2s ease-out infinite 1.4s; }
@keyframes ring { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.booth.open .intro { opacity: 0; pointer-events: none; }

.flash { position: absolute; inset: 0; background: #fffdf6; opacity: 0; pointer-events: none; z-index: 9; }
.shot {
  position: absolute; top: 58%; left: 0; right: 0; z-index: 8; text-align: center; pointer-events: none; opacity: 0;
  font: 700 13px var(--mono); letter-spacing: .4em; text-transform: uppercase; color: var(--brass-hi);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.shot b { display: block; font: italic 400 64px/1.1 var(--serif); letter-spacing: 0; color: #fff1d6; }

.booth-cue {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; opacity: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .8s;
  font: 400 9px var(--mono); letter-spacing: .4em; text-transform: uppercase; color: rgba(243, 234, 217, .6);
}
.booth-cue i { width: 1px; height: 26px; background: linear-gradient(var(--brass), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.booth.done .booth-cue { opacity: 1; }

/* camera lens on the back wall, visible while shooting */
.lens { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); z-index: 1; text-align: center; opacity: 0; transition: opacity .6s; }
.lens span { display: block; margin-bottom: 12px; font: 400 9px var(--mono); letter-spacing: .4em; text-transform: uppercase; color: rgba(236, 210, 154, .7); }
.lens .glass {
  width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .35) 0 6%, transparent 7%), radial-gradient(circle, #1b2a3a 0 30%, #0b0f15 31% 46%, #2a2a2a 47% 52%, #0d0d0d 53% 64%, #6e5226 65% 70%, #1a120c 71%);
  box-shadow: 0 0 0 3px #8d6f3c, 0 0 0 7px #1a110c, 0 0 0 8px rgba(201, 162, 90, .4), 0 10px 26px rgba(0, 0, 0, .6);
}
.lens .glass i { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(120, 170, 220, .45), transparent 70%); animation: iris 2.4s ease-in-out infinite; }
@keyframes iris { 50% { transform: scale(.8); opacity: .6; } }
.lens b { display: block; width: 8px; height: 8px; margin: 14px auto 0; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; animation: rec 1s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.booth.shooting .lens { opacity: 1; }
.booth:not(.open) .slot span { opacity: 0; }

/* ───────── Album (film-strip edges) ───────── */
.album {
  position: relative; padding: 0 38px;
  background:
    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%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--cream);
}
.album::before, .album::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 38px; z-index: 1;
  background-color: var(--espresso);
  background-image: repeating-linear-gradient(to bottom, transparent 0 10px, var(--cream) 10px 22px, transparent 22px 34px);
  background-size: 12px 100%; background-repeat: no-repeat;
}
.album::before { left: 0; background-position: 6px 0; }
.album::after { right: 0; background-position: calc(100% - 6px) 0; }
.edge {
  position: absolute; top: 46px; z-index: 2; writing-mode: vertical-rl;
  font: 700 8px var(--mono); letter-spacing: .3em; color: var(--edge); opacity: .85; white-space: nowrap;
}
.edge.l { left: -16px; }
.edge.r { right: -16px; transform: rotate(180deg); }

.sec { position: relative; padding: 76px 16px; text-align: center; }
.sec + .sec { border-top: 1px dashed rgba(43, 29, 23, .18); }
.eyebrow-s { font: 700 10px var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--merlot); }
.sec h2 { font: 400 40px/1.08 var(--serif); color: var(--ink); margin: 10px 0 16px; }
.sec h2 em { font-style: italic; color: var(--merlot); }
.sec p { max-width: 330px; margin: 0 auto; color: #4a3830; }

.print {
  position: relative; display: block; width: 84%; margin: 0 auto 30px; padding: 10px 10px 44px;
  background: #fffdf8; transform: rotate(var(--r, -2deg));
  box-shadow: 0 16px 30px rgba(43, 29, 23, .22), 0 2px 4px rgba(0, 0, 0, .08);
}
.print img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.12) contrast(1.03); }
.print figcaption { position: absolute; left: 0; right: 0; bottom: 13px; font: 400 13px var(--mono); color: #5a463c; }
.print::before, .print::after { /* album photo corners */
  content: ''; position: absolute; width: 28px; height: 28px; background: rgba(43, 29, 23, .88);
}
.print::before { top: -4px; left: -4px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.print::after { bottom: -4px; right: -4px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.btn {
  display: inline-block; margin-top: 26px; padding: 13px 26px; border-radius: 999px;
  border: 1px solid currentColor; color: var(--merlot); background: transparent; text-decoration: none; cursor: pointer;
  font: 400 12px var(--mono); letter-spacing: .24em; text-transform: uppercase; transition: background .3s, color .3s;
}
.btn:hover { background: var(--merlot); color: var(--cream); }
.btn.solid { background: var(--brass); border-color: var(--brass); color: var(--espresso); }
.btn.solid:hover { background: var(--brass-hi); color: var(--espresso); }
.btn.light { color: var(--cream); }
.btn.light:hover { background: var(--cream); color: var(--espresso); }

/* countdown as a strip of film */
.cd { position: relative; margin: 30px -16px 0; padding: 34px 14px 30px; background: var(--espresso); color: var(--cream); }
.cd::before, .cd::after {
  content: ''; position: absolute; left: 0; right: 0; height: 11px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, var(--cream) 7px 17px, transparent 17px 25px);
}
.cd::before { top: 8px; }
.cd::after { bottom: 8px; }
.cd-codes { display: flex; justify-content: space-between; font: 700 8px var(--mono); letter-spacing: .25em; color: var(--edge); margin: 0 2px 10px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cd-grid div { border: 1px solid rgba(243, 234, 217, .22); padding: 14px 0 10px; background: linear-gradient(rgba(255, 220, 160, .06), transparent); }
.cd-grid b { display: block; font: 700 32px/1 var(--mono); color: #fff4dc; font-variant-numeric: tabular-nums; }
.cd-grid span { display: block; margin-top: 8px; font: 700 8px var(--mono); letter-spacing: .25em; text-transform: uppercase; color: var(--edge); }

/* contact sheet */
.contact { position: relative; margin: 6px -6px 34px; padding: 12px 10px 16px; background: var(--espresso); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cell { position: relative; }
.cell img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: sepia(.15); }
.cell span { display: block; margin-top: 4px; text-align: left; font: 700 7px var(--mono); letter-spacing: .2em; color: var(--edge); }
.grease { position: absolute; inset: -14px -12px -6px -12px; width: calc(100% + 24px); height: calc(100% + 20px); overflow: visible; pointer-events: none; z-index: 2; }
.grease path { fill: none; stroke: #d6332b; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.note { position: absolute; z-index: 3; font: 500 28px/1 var(--hand); color: #e0433a; transform: rotate(-8deg); white-space: nowrap; }

.timeline { text-align: left; max-width: 340px; margin: 0 auto; }
.tl { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(43, 29, 23, .22); }
.tl:last-child { border-bottom: 0; }
.tl-time { font: 700 13px/1.9 var(--mono); color: var(--merlot); white-space: nowrap; }
.tl b { display: block; font: 400 21px/1.2 var(--serif); color: var(--ink); }
.tl span { font-size: 16px; line-height: 1.35; color: #5a463c; }

.venue-name { font: 400 34px var(--serif); color: var(--ink); margin-top: -6px; }
.addr { font: 400 13px/1.7 var(--mono); color: #5a463c; margin-top: 6px; }

.swatches { display: flex; justify-content: center; gap: 7px; margin-top: 24px; flex-wrap: wrap; }
.sw { background: #fffdf8; padding: 5px 5px 16px; box-shadow: 0 6px 12px rgba(43, 29, 23, .16); transform: rotate(var(--r, 0deg)); position: relative; }
.sw i { display: block; width: 36px; height: 36px; }
.sw span { position: absolute; left: 0; right: 0; bottom: 3px; font: 400 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6d574c; }

.ticket {
  position: relative; margin: 0 -4px; padding: 44px 22px 40px; color: var(--cream); text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 90, .16), transparent 60%), var(--espresso);
  border: 1px solid rgba(201, 162, 90, .55); outline: 1px solid rgba(201, 162, 90, .3); outline-offset: -8px;
}
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--cream); }
.ticket::before { left: -12px; }
.ticket::after { right: -12px; }
.ticket h2 { color: #fff1d6; }
.ticket h2 em { color: var(--brass-hi); }
.ticket p { color: rgba(243, 234, 217, .8); }
.ticket .eyebrow-s { color: var(--brass-hi); }
.ticket .btns { display: flex; flex-direction: column; align-items: center; gap: 0; }
.ticket .btns .btn { margin-top: 16px; min-width: 210px; }

footer.sec { padding: 60px 16px 80px; }
.mono-big { font: italic 400 56px/1 var(--serif); color: var(--merlot); }
.sign-off { font-style: italic; margin-top: 10px; color: #5a463c; }

[data-reveal] { opacity: 0; transform: translateY(26px) rotate(var(--r, 0deg)); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: rotate(var(--r, 0deg)); }

.music-btn {
  position: fixed; right: max(16px, calc(50vw - 240px + 16px)); bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brass);
  background: rgba(29, 21, 18, .85); color: var(--brass-hi); cursor: pointer;
}
.music-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
