/* =========================================================
   ABILENEOWEEN — vintage screenprint handbill, now alive.
   Two inks (black + cream) with a single red "second pass".
   ========================================================= */

:root {
  --paper: #f2e4c1;
  --paper-hi: #f8eed6;
  --paper-lo: #e2cf9f;
  --ink: #17130f;
  --night: #0e0b08;
  --ghost: #f7ecd3;
  --red: #b23a24;
  --glow: #ffe6a8;
  --display: "Bowlby One", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .05 .9 0 0 0 -.47'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --specks: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .96 0 0 0 0 .91 0 0 0 0 .8 30 0 0 0 -22.6'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* The page canvas is night-black: iOS 26 Safari paints its top/bottom bars from it,
   and both ends of the page (hero, footer band) are black. The cream paper is
   painted on the content itself. */
html, body { background-color: var(--night); }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main, .footer {
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(120, 88, 30, .14) 100%),
    var(--noise),
    var(--paper);
}
/* slide the paper up under the hero's torn bottom edge */
main { position: relative; z-index: 0; margin-top: -32px; padding-top: 32px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; }
.distress { filter: url(#rough); }

/* Recolorable art: any SVG silhouette as a mask, painted with currentColor */
.art {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}

/* ---------- Buttons ---------- */
.btn {
  --shadow: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  font-family: var(--display); font-size: 17px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -3px); box-shadow: 4px 6px 0 var(--shadow); }
.btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--shadow); }
.btn:focus-visible { outline: 3px dashed var(--red); outline-offset: 4px; }
.btn--ink { background: var(--ink); color: var(--paper); --shadow: var(--red); }
.btn--line { background: transparent; color: var(--ink); }
.btn--cream { background: var(--paper); color: var(--ink); border-color: var(--paper); --shadow: var(--red); }
.btn--big { width: 100%; min-height: 64px; font-size: clamp(18px, 5.2vw, 22px); white-space: nowrap; }
.btn--small { min-height: 40px; font-size: 14px; padding: 0 1.1em; }
.btn[disabled] { opacity: .7; cursor: progress; }

.eyebrow {
  font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
}

/* =========================================================
   HERO — night sky, floating ghost, string lights
   ========================================================= */
.hero {
  position: relative;
  color: var(--paper);
  background: var(--specks), radial-gradient(90% 70% at 50% 35%, #1c1712 0%, var(--night) 70%);
  padding: max(96px, 9.5vw) var(--gutter) 88px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 28px) no-repeat, url(../img/edge.svg) bottom / 640px 30px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 28px) no-repeat, url(../img/edge.svg) bottom / 640px 30px repeat-x;
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; width: var(--s, 10px); aspect-ratio: 1;
  background: var(--paper);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
  opacity: .9;
}
.star--dot { clip-path: circle(50%); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .9; } 50% { transform: scale(.35) rotate(45deg); opacity: .35; } }

.moon {
  position: absolute; top: max(88px, 7.5vw); right: max(10%, calc(50% - 560px));
  width: clamp(44px, 6vw, 84px); aspect-ratio: 95 / 122;
  color: var(--paper);
  filter: drop-shadow(0 0 22px rgba(255, 230, 168, .28));
  translate: 0 var(--par-moon, 0);
}
.bat { position: absolute; color: var(--paper); aspect-ratio: 100 / 60; }
.bat--1 { width: clamp(44px, 5vw, 70px); top: 26%; left: -10%; animation: fly-r 19s linear 2s infinite; }
.bat--2 { width: clamp(38px, 4vw, 58px); top: 14%; left: 110%; animation: fly-l 26s linear 7s infinite; }
@keyframes fly-r {
  0% { transform: translate(0, 0) scaleY(1); } 10% { transform: translate(12vw, -3vh) scaleY(.5); }
  20% { transform: translate(24vw, 2vh) scaleY(1); } 30% { transform: translate(36vw, -4vh) scaleY(.5); }
  40% { transform: translate(48vw, 1vh) scaleY(1); } 50% { transform: translate(60vw, -2vh) scaleY(.5); }
  60% { transform: translate(72vw, 3vh) scaleY(1); } 70% { transform: translate(84vw, -3vh) scaleY(.5); }
  80% { transform: translate(96vw, 0) scaleY(1); } 90%, 100% { transform: translate(125vw, -6vh) scaleY(.6); }
}
@keyframes fly-l {
  0% { transform: translate(0, 0) scale(-1, 1); } 12% { transform: translate(-14vw, 4vh) scale(-1, .5); }
  24% { transform: translate(-28vw, -1vh) scale(-1, 1); } 36% { transform: translate(-42vw, 3vh) scale(-1, .5); }
  48% { transform: translate(-56vw, -2vh) scale(-1, 1); } 60% { transform: translate(-70vw, 2vh) scale(-1, .5); }
  72% { transform: translate(-84vw, -3vh) scale(-1, 1); } 84% { transform: translate(-98vw, 1vh) scale(-1, .5); }
  92%, 100% { transform: translate(-130vw, -5vh) scale(-1, 1); }
}

.starburst {
  position: absolute; z-index: 3;
  top: max(58px, 6.2vw); left: max(10px, calc(50% - 600px));
  width: clamp(92px, 15vw, 180px); aspect-ratio: 268 / 246;
  color: var(--paper);
  transform: rotate(-10deg);
  animation: burst-in .7s var(--ease-spring) 1.2s both, burst-wobble 5s ease-in-out 2s infinite;
}
.starburst .art { width: 100%; height: 100%; }
@keyframes burst-in { from { transform: rotate(-60deg) scale(0); } to { transform: rotate(-10deg) scale(1); } }
@keyframes burst-wobble { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.05); } }

.hero__inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  display: grid; justify-items: center; gap: clamp(18px, 3vw, 28px);
  text-align: center;
}

/* The ghost logo */
.logo { width: min(100%, 900px); margin-top: 8px; translate: 0 var(--par-ghost, 0); }
.ghost { width: 100%; height: auto; overflow: visible; }
.ghost__sil { fill: var(--ghost); }
.ghost__ink, .ghost__blink path { fill: var(--ink); }
.ghost__float {
  transform-box: fill-box; transform-origin: 50% 60%;
  animation: materialize 1.4s var(--ease-out) .15s both, float 7s ease-in-out 1.6s infinite;
  filter: drop-shadow(0 0 60px rgba(255, 236, 200, .16));
}
.ghost__eyes { transform-box: fill-box; transition: transform .35s var(--ease-out); }
.ghost__blink {
  transform-box: fill-box; transform-origin: 50% 55%;
  animation: blink 5.5s ease-in-out 2.4s infinite;
}
@keyframes materialize {
  from { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(14px) drop-shadow(0 0 0 transparent); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2.2%) rotate(-.6deg); }
}
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(.08); }
  94% { transform: scaleY(1); }
  95.5% { transform: scaleY(.08); }
  97.5% { transform: scaleY(1); }
}

.descriptor {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(21px, 4.4vw, 42px); line-height: 1.05; letter-spacing: .015em;
  max-width: 22ch; text-wrap: balance;
  animation: rise .8s var(--ease-out) .9s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Date / place marquee, straight off the flyer */
.marquee {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100%, 980px);
  border: 3px solid var(--paper);
  border-radius: 10px 14px 9px 12px;
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.4vw, 26px);
  gap: clamp(12px, 2.4vw, 28px);
  box-shadow: inset 0 0 0 6px var(--night), inset 0 0 0 8px rgba(242, 228, 193, .35);
  animation: rise .8s var(--ease-out) 1.05s both;
}
.marquee__date { white-space: nowrap;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(26px, 5vw, 50px); line-height: .92;
  display: grid; text-align: left;
}
.marquee__main { min-width: 0; border-inline: 3px solid var(--paper); padding-inline: clamp(12px, 2.4vw, 28px); }
.marquee__time { font-family: var(--display); font-size: clamp(26px, 4.8vw, 52px); line-height: 1; white-space: nowrap; }
.marquee__place { font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 2.6vw, 26px); margin-top: 6px; letter-spacing: .02em; }
.marquee__cross { font-weight: 500; text-transform: uppercase; font-size: clamp(12px, 1.7vw, 16px); letter-spacing: .05em; opacity: .85; margin-top: 2px; }
.marquee__closed {
  font-family: var(--display); text-transform: uppercase;
  padding-inline: 4px 8px;
  font-size: clamp(18px, 3vw, 30px); line-height: 1;
  transform: rotate(-8deg);
  animation: pulse-closed 2.4s ease-in-out 2s infinite;
}
@keyframes pulse-closed { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-5deg) scale(1.07); } }

.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 22px;
  animation: rise .8s var(--ease-out) 1.2s both;
}
.hero__cta .btn--cream { min-height: 60px; font-size: 19px; }
.mini-meter {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 14px 6px 8px;
  border: 2px dashed rgba(242, 228, 193, .5); border-radius: 999px;
  transition: border-color .2s;
}
.mini-meter:hover { border-color: var(--paper); }
.mini-meter svg { width: 44px; height: 28px; }
.mini-meter [data-mini-needle] { transition: transform 1.4s var(--ease-spring); transform-origin: 32px 36px; }
.mini-meter b { font-family: var(--display); font-weight: 400; }

.countdown { animation: rise .8s var(--ease-out) 1.35s both; }
.countdown__label { font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; opacity: .75; margin-bottom: 10px; }
.countdown__cells { display: flex; gap: clamp(8px, 1.6vw, 14px); justify-content: center; }
.cell {
  min-width: clamp(64px, 11vw, 86px);
  padding: 10px 6px 8px;
  border: 2px solid rgba(242, 228, 193, .55);
  border-radius: 10px;
  background: linear-gradient(rgba(242, 228, 193, .07), rgba(242, 228, 193, 0) 50%, rgba(0, 0, 0, .2) 50%);
  display: grid; gap: 2px;
}
.cell b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.6vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.cell span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.countdown.is-live .countdown__cells { display: none; }
.countdown.is-live .countdown__label { font-family: var(--display); font-size: clamp(22px, 4vw, 34px); letter-spacing: .02em; opacity: 1; }

/* Bistro string lights */
.lights {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 100%; height: max(140px, 11.67vw);
  pointer-events: none;
}
.lights .wire { fill: none; stroke: #4c4235; stroke-width: 2.2; }
.lights .socket { fill: #5b503f; }
.lights .bulb { fill: #3a3226; transition: fill .12s; }
.lights .halo { opacity: 0; transition: opacity .25s; }
.lights .on .bulb { fill: #fff3cf; }
.lights .on .halo { opacity: 1; }
.lights .flick .bulb { fill: #8a7a58; }
.lights .flick .halo { opacity: .25; }

/* =========================================================
   SPOOK-O-METER + RSVP
   ========================================================= */
.spook {
  position: relative;
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
  margin-top: -6px;
}
.spook__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 960px) {
  .spook__grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

.meter {
  position: relative;
  background:
    radial-gradient(120% 90% at 30% 10%, #2b241c 0%, var(--ink) 60%);
  border-radius: 30px 34px 28px 32px;
  padding: clamp(10px, 1.6vw, 16px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .06) inset,
    0 40px 70px -30px rgba(40, 26, 8, .6),
    0 14px 24px -12px rgba(40, 26, 8, .5);
  color: var(--paper);
}
.meter::before {
  /* "screws" on the case */
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #6d604b 0 3px, #2c251c 3.5px 5px, transparent 5.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 0, #6d604b 0 3px, #2c251c 3.5px 5px, transparent 5.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 0 100%, #6d604b 0 3px, #2c251c 3.5px 5px, transparent 5.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 100%, #6d604b 0 3px, #2c251c 3.5px 5px, transparent 5.5px) 0 0 / 100% 100% no-repeat;
}
.meter__svg { width: 100%; height: auto; border-radius: 20px; overflow: hidden; }
.meter__svg text { font-family: var(--display); fill: var(--ink); }
.meter__svg .t-body { font-family: var(--body); font-weight: 800; letter-spacing: .12em; }
.meter__readout { padding: 14px 8px 6px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.meter__status { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.meter__status b {
  font-family: var(--display); font-weight: 400; letter-spacing: .03em;
  display: inline-block; font-size: 20px; color: var(--glow); margin-left: .3em;
}
.meter__status b.is-beyond { color: #ff8a6e; animation: shiver .12s linear infinite; }
@keyframes shiver { 0% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } }

.odometer-row { display: flex; align-items: center; gap: 12px; }
.odometer-label, .odometer-goal { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; opacity: .85; }
.odometer-label { text-align: right; }
.odometer-goal { text-align: left; }
.odometer {
  display: flex; gap: 3px; padding: 4px;
  background: #0a0806; border-radius: 8px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), 0 0 0 2px #3a3126;
}
.odo-digit {
  width: 32px; height: 46px; overflow: hidden; position: relative;
  background: linear-gradient(#e9dbb6, var(--paper-hi) 45%, #d8c492);
  border-radius: 4px;
}
.odo-digit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .35), transparent 30%, transparent 70%, rgba(0, 0, 0, .35));
}
.odo-strip {
  display: grid; transition: transform 1.6s var(--ease-spring);
  font-family: var(--display); font-size: 30px; color: var(--ink); text-align: center;
}
.odo-strip span { height: 46px; line-height: 46px; }

/* Meter SVG parts */
.m-face { fill: url(#faceGrad); }
.m-edge { fill: none; stroke: var(--ink); }
.m-tick { stroke: var(--ink); stroke-linecap: round; }
.m-zone { fill: none; stroke: var(--ink); stroke-width: 2; transition: fill .6s; }
.m-zone.is-lit { fill: var(--ink); }
.m-zone--red { stroke: var(--red); fill: rgba(178, 58, 36, .18); }
.m-zone--red.is-lit { fill: var(--red); animation: redglow 1s ease-in-out infinite alternate; }
@keyframes redglow { to { fill: #d9533a; } }
.m-needle { fill: var(--ink); }
.m-needle-shadow { fill: rgba(23, 19, 15, .22); filter: blur(3px); }
.m-preview { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 6 5; opacity: 0; transition: opacity .3s; }
.m-preview.is-on { opacity: .9; }
.m-number { font-size: 64px; }
.m-number--beyond { fill: var(--red) !important; }

/* Ticket-style RSVP */
.ticket {
  position: relative;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--paper-hi);
  border: 3px solid var(--ink);
  border-radius: 18px 22px 16px 20px;
  box-shadow: 10px 12px 0 var(--ink);
  scroll-margin-top: 20px;
}
.ticket__stub {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 13px 17px 0 0;
  font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  position: relative;
}
.ticket__stub-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.ticket__stub b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .04em; }
.ticket__stub::after {
  /* perforation */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 4px;
  background: radial-gradient(circle, var(--paper-hi) 2px, transparent 2.5px) 0 0 / 12px 4px repeat-x;
}
@media (min-width: 960px) {
  .ticket { grid-template-rows: none; grid-template-columns: 74px 1fr; }
  /* The stub stays horizontal so it stretches full height in every browser (Safari
     won't stretch vertical-writing grid items); only its text is turned sideways. */
  .ticket__stub { justify-content: center; padding: 20px 0; border-radius: 15px 0 0 17px; }
  .ticket__stub-in { writing-mode: vertical-rl; transform: rotate(180deg); width: auto; justify-content: center; gap: 16px; }
  .ticket__stub::after {
    left: auto; right: -2px; top: 14px; bottom: 14px; width: 4px; height: auto;
    background: radial-gradient(circle, var(--paper-hi) 2px, transparent 2.5px) 0 0 / 4px 12px repeat-y;
  }
}
.ticket__body { padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; align-content: start; }
.rsvp__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.2vw, 42px); line-height: .98; }
.rsvp__sub { font-size: 16px; font-weight: 500; margin-top: -6px; }

.field { display: grid; gap: 6px; }
.field__label { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.field__label em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .75; }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px;
  font-size: 18px; font-weight: 500;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 12px 14px 11px 13px;
  transition: box-shadow .15s, transform .15s;
}
.field input::placeholder { color: rgba(23, 19, 15, .38); }
.field input:focus { outline: none; box-shadow: 5px 5px 0 var(--red); transform: translate(-2px, -2px); }

.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stepper { display: grid; gap: 6px; }
.stepper__ctrl {
  display: grid; grid-template-columns: 40px 1fr 40px;
  border: 3px solid var(--ink); border-radius: 12px 14px 11px 13px; overflow: hidden;
  background: var(--paper);
}
.stepper__ctrl button {
  border: 0; background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 24px; line-height: 1; cursor: pointer;
  min-height: 54px; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s;
}
.stepper__ctrl button:active { background: var(--red); }
.stepper__ctrl button:focus-visible { outline: 3px dashed var(--red); outline-offset: -6px; }
.stepper__num {
  display: grid; place-items: center; min-width: 0;
  font-family: var(--display); font-size: 28px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stepper.bump .stepper__num { animation: bump .3s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.3); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp__error {
  font-weight: 700; color: var(--red);
  padding: 10px 14px; border: 2px solid var(--red); border-radius: 10px;
  animation: shake .4s;
}
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.rsvp__preview { min-height: 1.3em; font-size: 14px; font-weight: 600; text-align: center; }
.rsvp__preview b { color: var(--red); }

/* Success state */
.done { position: relative; text-align: left; }
.done:focus { outline: none; }
.done__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4vw, 40px); line-height: 1; padding-right: 110px; }
.done__count { font-weight: 700; font-size: 18px; }
.done__note { font-weight: 500; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.linkish { justify-self: start; background: none; border: 0; padding: 4px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stamp {
  position: absolute; top: 14px; right: 12px;
  width: 124px; aspect-ratio: 1;
  display: grid; place-items: center; text-align: center;
  color: var(--red);
  border: 4px double var(--red); border-radius: 50%;
  font-family: var(--display); font-size: 15px; line-height: 1.05; text-transform: uppercase;
  transform: rotate(-14deg);
  filter: url(#rough);
  mix-blend-mode: multiply;
}
.stamp::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--red); border-radius: 50%; }
.done.is-new .stamp { animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-30deg) scale(2.6); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
.done.is-new { animation: thump .5s ease .45s; }
@keyframes thump { 30% { transform: translateY(4px) scale(.99); } }

/* Bats that burst out of the meter on RSVP */
.burst-bat { position: fixed; z-index: 70; width: 46px; aspect-ratio: 100 / 60; color: var(--ink); pointer-events: none; }

/* =========================================================
   LINEUP
   ========================================================= */
.lineup { padding: clamp(50px, 8vw, 110px) var(--gutter); }
.section-head { text-align: center; display: grid; gap: 10px; margin-bottom: clamp(30px, 5vw, 56px); }
.section-head h2, .handbill h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 6vw, 66px); line-height: .95;
}
.acts {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.4vw, 28px);
}
@media (min-width: 760px) { .acts { grid-template-columns: repeat(3, 1fr); } }
.act {
  display: grid; justify-items: center; align-content: start; gap: 6px;
  text-align: center;
  padding: clamp(16px, 2.4vw, 28px) 12px clamp(18px, 2.4vw, 26px);
  background: var(--paper-hi);
  border: 3px solid var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.act:nth-child(even) { border-radius: 18px 225px 18px 255px / 255px 18px 225px 18px; }
.act:hover { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: 10px 12px 0 var(--ink); }
.act__art { width: clamp(92px, 15vw, 150px); aspect-ratio: 1; color: var(--ink); margin-bottom: 6px; }
.act h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(19px, 2.6vw, 28px); line-height: 1; }
.act p { font-weight: 700; font-size: clamp(12px, 1.5vw, 14px); letter-spacing: .06em; text-transform: uppercase; max-width: 22ch; line-height: 1.3; }

.act:hover .act__art, .act.is-in .act__art { animation-duration: 1.1s; animation-timing-function: ease-in-out; }
.act.is-in .act__art { animation-iteration-count: 1; animation-delay: calc(var(--i) * 90ms + .3s); }
.act:hover .act__art { animation-iteration-count: infinite; animation-delay: 0s; }
.act.is-in [data-anim="groove"], .act:hover [data-anim="groove"] { animation-name: groove; }
.act.is-in [data-anim="dance"], .act:hover [data-anim="dance"] { animation-name: dance; }
.act.is-in [data-anim="shake"], .act:hover [data-anim="shake"] { animation-name: shakey; }
.act.is-in [data-anim="hop"], .act:hover [data-anim="hop"] { animation-name: hop; }
.act.is-in [data-anim="tilt"], .act:hover [data-anim="tilt"] { animation-name: tilt; }
.act.is-in [data-anim="drip"], .act:hover [data-anim="drip"] { animation-name: drip; }
@keyframes groove { 25% { transform: translateY(-6px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-6px) rotate(6deg); } }
@keyframes dance { 20% { transform: rotate(-9deg) translateX(-4px); } 40% { transform: rotate(8deg) translateY(-8px); } 60% { transform: rotate(-7deg); } 80% { transform: rotate(6deg) translateY(-4px); } }
@keyframes shakey { 15%, 45%, 75% { transform: rotate(-8deg) scale(1.05); } 30%, 60%, 90% { transform: rotate(8deg) scale(1.05); } }
@keyframes hop { 30% { transform: translateY(-14px) rotate(-4deg); } 55% { transform: translateY(0) scaleY(.92); } 70% { transform: translateY(-5px); } }
@keyframes tilt { 30% { transform: rotate(-12deg); } 65% { transform: rotate(9deg); } }
@keyframes drip { 30% { transform: scaleY(1.08) translateY(3px); } 60% { transform: scaleY(.96); } }
.act--tall .act__art { transform-origin: 50% 90%; }

/* =========================================================
   FINE PRINT
   ========================================================= */
.fineprint { padding: 10px var(--gutter) clamp(60px, 9vw, 120px); }
.handbill {
  position: relative;
  max-width: 900px; margin: 0 auto;
  background: var(--paper-hi);
  border: 3px solid var(--ink);
  border-radius: 12px 16px 10px 14px;
  padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 22px;
  box-shadow: 0 30px 50px -30px rgba(60, 40, 10, .45);
  transform: rotate(-.6deg);
}
.handbill::before, .handbill::after {
  /* masking tape */
  content: ""; position: absolute; top: -16px; width: 120px; height: 34px;
  background: rgba(226, 207, 159, .82);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}
.handbill::before { left: 8%; transform: rotate(-6deg); }
.handbill::after { right: 8%; transform: rotate(5deg); }
.facts { display: grid; gap: 18px; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; gap: 24px 36px; } }
.facts div { border-top: 3px solid var(--ink); padding-top: 12px; }
.facts dt { font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.facts dd { font-size: 18px; line-height: 1.45; }
.facts b { font-weight: 800; text-transform: uppercase; }
.fineprint__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.costume-stamp {
  position: absolute; right: clamp(12px, 4vw, 44px); bottom: clamp(20px, 4vw, 44px);
  color: var(--red); border: 4px solid var(--red); border-radius: 10px;
  padding: 8px 14px 6px;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(14px, 2.2vw, 22px); line-height: 1.02; text-align: center;
  transform: rotate(-7deg);
  filter: url(#rough); mix-blend-mode: multiply; opacity: .92;
}
@media (max-width: 559px) { .costume-stamp { position: static; justify-self: start; transform: rotate(-3deg); } }

/* =========================================================
   FOOTER — the flyer's pumpkin + cat ground
   ========================================================= */
.footer { overflow: hidden; }
.footer__scene {
  position: relative;
  width: max(100%, 680px); max-width: 1300px;
  margin-left: 50%; transform: translateX(-50%);
}
.footer__art { width: 100%; height: auto; }
.footer__sign {
  position: absolute; left: 50%; width: 36%; top: 4%; height: 92%; transform: translateX(-50%);
  display: grid; place-items: center; align-content: center; gap: clamp(8px, 1.4vw, 16px);
  background: var(--paper-hi);
  border: 4px solid var(--ink);
  border-radius: 26px 34px 22px 30px / 30px 22px 34px 26px;
  text-align: center;
}
.footer__shout { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 3.6vw, 48px); line-height: .95; }
.footer__small {
  /* the flyer's black bottom banner */
  margin-top: 26px;
  padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--paper);
  text-align: center; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.7;
}

/* Sticky mobile RSVP pill */
.sticky-rsvp {
  position: fixed; z-index: 55;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 6px 18px 6px 6px;
  /* painted via background-image so iOS 26 Safari doesn't tint its toolbar from it */
  background-color: transparent; background-image: linear-gradient(var(--ink), var(--ink)); color: var(--paper);
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55), 0 0 0 2px var(--paper);
  transform: translate(-50%, 0);
  animation: pill-in .45s var(--ease-spring);
  white-space: nowrap;
}
.sticky-rsvp[hidden] { display: none; }
.sticky-rsvp__label {
  font-family: var(--display); font-size: 16px;
  background: var(--paper); color: var(--ink);
  padding: 9px 16px; border-radius: 999px;
}
.sticky-rsvp__count { font-weight: 600; font-size: 14px; }
.sticky-rsvp__count b { font-family: var(--display); font-weight: 400; }
@keyframes pill-in { from { transform: translate(-50%, 140%); } }

/* Scroll reveals */
[data-reveal] { opacity: 0; transform: translateY(34px) rotate(-1.5deg) scale(.97); transition: opacity .7s var(--ease-out), transform .8s var(--ease-spring); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.handbill[data-reveal].is-in { transform: rotate(-.6deg); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* =========================================================
   Small screens
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding-top: 104px; padding-bottom: 72px; }
  .starburst { top: 64px; left: 8px; width: 84px; }
  .moon { top: 74px; right: 12%; }
  .marquee {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date closed" "main main";
    row-gap: 12px;
  }
  .marquee__date { white-space: nowrap; grid-area: date; display: flex; gap: .35em; }
  .marquee__closed { grid-area: closed; }
  .marquee__main { grid-area: main; border-inline: 0; border-top: 3px solid var(--paper); padding: 12px 0 0; }
  .hero__cta .btn--cream { width: 100%; font-size: 17px; padding: 0 .9em; white-space: nowrap; }
  .countdown__label { margin-bottom: 8px; }
  .done__name { padding-right: 96px; }
  .stamp { width: 100px; font-size: 12px; }
}
@media (max-width: 350px) {
  .cell { min-width: 58px; }
  .steppers { grid-template-columns: 1fr; }
}

/* Respect reduced motion: keep it all, but still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bat { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Paper grain lives on the surfaces themselves, not a full-screen fixed overlay:
   iOS 26 Safari paints its toolbars solid from fixed elements touching the screen edges. */
.ticket, .act, .handbill, .footer__sign { background-image: var(--noise); }
