/* Velvet Hour styles. 1970s TV dance show: plum velvet, cream type, chrome rules, gold for your pick.
   Change the tokens in :root first. Everything else reads from them.
   Rules baked in: left-aligned text, flat buttons with hover/press feedback,
   one border level per element, no eyebrow labels, no decorative numbering,
   no gradients, no shadows. Color = meaning:
   tangerine = Stage, magenta = Dance floor, teal = Lounge (schedule, legend, dance floor, scene lights),
   gold = your pick or the main action, chrome = rules and frames, rose = errors. */

:root {
  /* Base */
  --bg: #2b0e25;           /* plum velvet */
  --bg-2: #3c1534;         /* raised panel */
  --bg-deep: #1c0718;      /* footer, floor grout */
  --fg: #f7ead3;           /* cream */
  --muted: #d4bfb4;
  --chrome: #b9bcc6;       /* rules, frames */
  --gold: #e8b44c;         /* primary action, selected ticket, selected tab */
  --on-gold: #2b0e25;
  --danger: #ff9b9b;       /* form errors */
  --accent: var(--gold);
  --on-accent: var(--on-gold);

  /* Lights: one per track, used the same way everywhere */
  --track-1: #ff8a2b;      /* Stage - tangerine */
  --track-2: #ff4fa8;      /* Dance floor - magenta */
  --track-3: #2ed3c3;      /* Lounge - teal */
  --on-track: #2b0e25;
  --focus: #f7ead3;

  /* Type: one display face with 70s character, one clean body face */
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1180px;
  --rule: 2px solid var(--chrome);
  --hair: 1px solid color-mix(in srgb, var(--chrome) 55%, transparent);
  --radius: 0px;
  --cell: 44px;            /* dance floor square */
}
@media (min-width: 760px) { :root { --cell: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.motion-off { scroll-behavior: auto; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; font-synthesis: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- focus + skip ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; background: var(--fg); color: var(--bg); padding: 12px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--gutter); }
main:focus { outline: none; }

/* ---------- notice + placeholder tag ---------- */
.notice { margin: 0; background: var(--bg-deep); color: var(--muted); font-size: 0.9rem; font-weight: 600; padding: 8px var(--gutter); }
.notice.is-error { background: var(--danger); color: var(--bg); }
.ph { display: inline-block; font-family: var(--body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 6px; border: 1.5px dashed currentColor; vertical-align: 0.15em; opacity: 0.8; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--rule);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav";
  gap: 6px 12px; align-items: center; padding: 10px var(--gutter) 0;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 5px; border: var(--rule); color: var(--fg); font-family: var(--display); font-size: 0.95rem; }
.brand-name { font-family: var(--display); font-size: 1.3rem; white-space: nowrap; }
.header-cta { grid-area: cta; }
.site-header nav { grid-area: nav; margin: 0 calc(var(--gutter) * -1); }
.nav-list { display: flex; gap: 2px; overflow-x: auto; padding: 2px var(--gutter) 8px; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a { display: block; white-space: nowrap; padding: 6px 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-bottom-color: var(--fg); }
@media (min-width: 960px) {
  .site-header { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; padding-bottom: 10px; }
  .site-header nav { margin: 0; }
  .nav-list { justify-content: center; padding: 0; overflow: visible; }
}

/* ---------- buttons: flat at rest, feedback on hover/press ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--fg); border: var(--rule); border-radius: var(--radius);
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: 0.95rem; }
/* Label roll: the label rolls up and out while an identical aria-hidden copy rolls in from below,
   in step with the background fill change. Motion off keeps the color change only. */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; transition: transform 320ms cubic-bezier(.6, 0, .2, 1); }
.roll-b { transform: translateY(110%); }
:is(.btn, .fx-btn):is(:hover, :focus-visible) .roll-a { transform: translateY(-110%); }
:is(.btn, .fx-btn):is(:hover, :focus-visible) .roll-b { transform: none; }
.motion-off .roll-a, .motion-off .roll-b { transform: none !important; }
.motion-off .roll-b { visibility: hidden; }

/* ---------- hero: light-up dance floor ---------- */
.hero { position: relative; overflow: hidden; border-bottom: var(--rule); background: var(--bg-deep); }
.hero-moment { position: absolute; inset: 0; pointer-events: none; }
.floor { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-auto-rows: var(--cell); gap: 3px; padding: 3px; }
.floor i { display: block; background: var(--bg); transition: background-color 700ms ease; }
.floor i.l1 { background: var(--track-1); }
.floor i.l2 { background: var(--track-2); }
.floor i.l3 { background: var(--track-3); }
.floor i.hot { transition-duration: 60ms; }
/* Tiles behind hero text: 30% brightness, so cream text stays above 4.5:1. */
.floor i.dim.l1 { background: color-mix(in srgb, var(--track-1) 30%, var(--bg-deep)); }
.floor i.dim.l2 { background: color-mix(in srgb, var(--track-2) 30%, var(--bg-deep)); }
.floor i.dim.l3 { background: color-mix(in srgb, var(--track-3) 30%, var(--bg-deep)); }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 40px; }
/* Text sits straight on the floor. The tiles behind it are dimmed in app.js. */
.hero-when { display: table; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.hero-when .sep { margin: 0 10px; color: var(--chrome); }
/* Title card: cream fill with a thick plum outline, so it reads over any tile. */
.hero h1 { font-size: clamp(3.3rem, 23vw, 10.5rem); line-height: 1; margin-bottom: 20px; }
.hero h1 span { display: table; padding: 0 0.08em 0.06em 0; -webkit-text-stroke: 0.14em var(--bg); paint-order: stroke fill; }
.hero-sub { display: table; max-width: 46ch; font-size: 1.15rem; font-weight: 600; margin-bottom: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-ctas .btn { flex: 1 1 160px; }

/* Pick your night: two panels that do not match on purpose. */
.nights-title { display: table; font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 14px; -webkit-text-stroke: 0.12em var(--bg); paint-order: stroke fill; }
.nights-grid { display: grid; gap: 16px; }
.night { display: grid; gap: 10px; align-content: start; padding: 20px 18px; }
.night-date { margin: 0; font-weight: 700; }
.night-name { font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.05; }
.night-points { display: grid; gap: 8px; margin-bottom: 8px; }
.night-points li { display: flex; gap: 10px; align-items: baseline; }
.night-points .swatch { flex: none; width: 12px; height: 12px; }
.night-link { justify-self: start; }
/* Slow Burn: plum, quiet, hairline list */
.night-1 { background: var(--bg); border: var(--rule); }
.night-1 .night-date { color: var(--muted); }
.night-1 .night-points { gap: 0; }
.night-1 .night-points li { padding: 8px 0; border-top: var(--hair); }
/* Full Funk: cream field, louder type, punchy list */
.night-2 { background: var(--fg); color: var(--bg); border: 3px solid var(--chrome); }
.night-2 .night-date { display: inline-block; justify-self: start; background: var(--bg); color: var(--fg); padding: 2px 10px; }
.night-2 .night-name { font-size: clamp(2.8rem, 12vw, 4.6rem); }
.night-2 .night-points { font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; }
.night-2 .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.night-2 .btn:hover { background: var(--bg-deep); border-color: var(--bg-deep); }
.night-2 :focus-visible { outline-color: var(--bg); }
.nights-note { display: table; margin: 16px 0 0; font-weight: 700; font-size: 1.1rem; }
@media (min-width: 720px) {
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-ctas .btn { flex: 0 0 auto; min-width: 200px; }
}
@media (min-width: 760px) {
  .nights-grid { grid-template-columns: 5fr 7fr; align-items: stretch; max-width: 1040px; }
  .night { padding: 24px; }
  .night-2 .night-points { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}

/* ---------- sections as scenes ---------- */
/* Each scene gets the next stage light in turn: Stage, Dance floor, Lounge. */
#sections > section:nth-child(3n+1) { --scene: var(--track-1); }
#sections > section:nth-child(3n+2) { --scene: var(--track-2); }
#sections > section:nth-child(3n+3) { --scene: var(--track-3); }
.section { position: relative; padding: 64px 0; border-bottom: var(--rule); }
.section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--scene, var(--chrome)); transform: scaleX(0); transform-origin: left; }
.section.is-lit::before { transform: scaleX(1); animation: sweep 1100ms cubic-bezier(.2, .7, .2, 1) both; }
.section.is-held::before { animation: none; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion-off .section::before { transform: scaleX(1); }
.section-title { font-size: clamp(2.5rem, 11vw, 5rem); margin-bottom: 24px; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.note { font-size: 0.95rem; color: var(--muted); }

/* About: the one cream scene. Full-width headline, copy in an offset column below. */
.sec-about { background: var(--fg); color: var(--bg); }
.sec-about :focus-visible { outline-color: var(--bg); }
.sec-about .section-title { font-size: clamp(2.5rem, 6.2vw, 5rem); margin-bottom: 32px; }
.about-copy p { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1em; }
/* Two equal columns from the headline's left edge, tops aligned. Phones stack. */
@media (min-width: 720px) {
  .about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .about-copy p { margin: 0; }
}

/* ---------- lineup: headliner marquee, then nameplates ---------- */
.sp-featured { display: grid; gap: 20px; margin: 8px 0 40px; border: 3px solid var(--chrome); padding: 16px; background: var(--bg-2); }
.sp-featured .sp-media { max-width: 420px; }
/* Cards open the artist popup. "View artist" shows on hover and keyboard focus. */
.sp-hit { cursor: pointer; }
.sp-media { position: relative; }
.sp-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 0.85rem; opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms ease; pointer-events: none; }
.sp-hit:hover .sp-tag, .sp-hit:focus-within .sp-tag { opacity: 1; transform: none; }
.sp-open { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sp-open:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sp-featured .sp-name { font-size: clamp(2.3rem, 9vw, 4rem); margin-top: 0; }
.sp-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg); }
/* Same treatment on every photo: warm duotone at rest, full color on hover or keyboard focus. */
.sp-photo.is-duotone { filter: url(#duotone); }
.sp-featured:hover .sp-photo, .sp-featured:focus-within .sp-photo, .sp-card:hover .sp-photo, .sp-card:focus-within .sp-photo { filter: none; }
.sp-initials { display: grid; place-items: center; font-family: var(--display); font-size: 2.4rem; color: var(--chrome); }
.sp-featured .sp-initials { font-size: clamp(4rem, 18vw, 7rem); color: var(--fg); }
.sp-name { font-size: 1.4rem; margin: 12px 0 2px; }
.sp-name a { text-decoration: none; }
.sp-role { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.sp-bio { max-width: 52ch; font-size: 1.1rem; }
.sp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.sp-card { border-top: 3px solid var(--chrome); padding-top: 12px; }
@media (min-width: 720px) {
  .sp-featured { grid-template-columns: minmax(240px, 360px) 1fr; gap: 32px; padding: 24px; }
  .sp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) { .sp-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; } }

/* ---------- dance cam: TV studio jumbotron ---------- */
.cam { display: grid; gap: 20px; }
.cam-intro { margin: 0; }
.cam-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep); border: 10px solid var(--chrome); outline: 2px solid var(--bg-deep); outline-offset: -12px; overflow: hidden; }
.cam-canvas { display: block; width: 100%; height: 100%; }
/* The video only feeds the canvas. It stays in the page (iPhone Safari pauses display:none video) but out of sight. */
.cam-video { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.cam-bug { position: absolute; top: 8px; left: 8px; margin: 0; padding: 1px 10px 3px; background: var(--chrome); color: var(--bg); font-family: var(--display); font-size: clamp(0.72rem, 1.9vw, 1rem); text-transform: uppercase; letter-spacing: 0.03em; }
.cam-tally { position: absolute; top: 8px; right: 8px; margin: 0; display: flex; align-items: center; gap: 7px; padding: 2px 10px; background: var(--bg); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cam-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
/* Tally light: on and off once every 1.2 seconds, well under 3 flashes a second. Motion off holds it steady. */
.cam-frame.is-live .cam-dot { background: var(--track-2); animation: tally 1.2s steps(1) infinite; }
@keyframes tally { 50% { opacity: 0.2; } }
.cam-lower { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 12px 8px; background: var(--bg); border-top: var(--rule); }
.cam-who { margin: 0; font-family: var(--display); font-size: clamp(0.95rem, 2.4vw, 1.4rem); line-height: 1.2; }
.cam-caption { margin: 0; font-weight: 700; font-size: clamp(0.8rem, 1.8vw, 1rem); color: var(--muted); }
.cam-fx { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.fx-btn { transition: background-color 320ms ease, color 320ms ease; }
.fx-btn { appearance: none; min-height: 56px; padding: 10px 14px; border: var(--rule); background: var(--bg); color: var(--fg); font: inherit; font-weight: 800; font-size: 1.05rem; text-align: left; cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.fx-btn:hover { background: var(--bg-2); }
.fx-btn:active { transform: translateY(1px); }
.fx-btn[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.fx-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cam-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.cam-controls .btn[hidden] { display: none; }
.cam-privacy { font-size: 0.95rem; color: var(--muted); max-width: 60ch; }
.cam-status { font-weight: 700; margin: 0; }
.cam-status:empty { display: none; }
.cam-shot { margin-top: 8px; max-width: 460px; }
.cam-shot[hidden] { display: none; }
.polaroid { display: block; width: 100%; max-width: 440px; border: 2px solid var(--chrome); transform: rotate(-2deg); margin: 8px 0 24px; }
.cam-shot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
@media (min-width: 720px) {
  .cam-fx { grid-template-columns: repeat(5, 1fr); }
  .fx-btn:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1040px) {
  .cam { grid-template-columns: 8fr 4fr; grid-template-areas: "main intro" "main shot"; grid-template-rows: auto 1fr; gap: 20px 40px; align-items: start; }
  .cam-main { grid-area: main; }
  .cam-intro { grid-area: intro; }
  .cam-shot { grid-area: shot; }
}

/* ---------- confetti cannon ---------- */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 300; }

/* ---------- run of show ---------- */
.track-1 { --track: var(--track-1); }
.track-2 { --track: var(--track-2); }
.track-3 { --track: var(--track-3); }
.tz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.tz-label { margin: 0; font-weight: 700; }
.track-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 20px; font-size: 0.95rem; font-weight: 600; }
.track-legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; background: var(--track); display: inline-block; }
.day-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--rule); margin-bottom: 0; }
.day-tab { appearance: none; border: 0; background: var(--bg); color: var(--fg); padding: 14px; text-align: left; cursor: pointer; font: inherit; transition: background-color 120ms ease; }
.day-tab + .day-tab { border-left: var(--rule); }
.day-tab .dt-label { display: block; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.1; }
.day-tab .dt-title { font-size: 0.95rem; font-weight: 600; }
.day-tab[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.day-tab:hover:not([aria-selected="true"]) { background: var(--bg-2); }
.day-panel[hidden] { display: none; }
.day-single { font-size: 1.5rem; margin-bottom: 8px; }
.sessions { margin-bottom: 20px; border: var(--rule); border-top: 0; }
/* One line per session: toggle (time, title), round faces, location tag. Details open below, no animation. */
.session { padding: 10px 12px 10px 14px; border-bottom: var(--hair); border-left: 8px solid var(--track, var(--chrome)); scroll-margin-top: 120px; transition: background-color 400ms ease; }
.session:last-child { border-bottom: 0; }
.session.is-flash { background: var(--bg-2); }
.s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; cursor: pointer; }
.s-head { margin: 0; font: inherit; min-width: 0; }
.s-toggle { appearance: none; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; width: 100%; padding: 4px 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.s-time { font-weight: 700; font-size: 0.85rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--chrome); }
.s-time time > span { white-space: nowrap; }
.s-title { font-family: var(--body); font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.s-plus { font-size: 1.2rem; line-height: 1; color: var(--chrome); }
.s-toggle[aria-expanded="true"] .s-plus { transform: rotate(45deg); }
.s-toggle:hover .s-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.s-more { padding: 2px 0 6px 82px; }
.s-more[hidden] { display: none; }
/* Performers: overlapping round faces (same duotone as the lineup). Each opens the artist popup. */
.s-speakers { margin: 4px 0 0; font-weight: 600; }
.s-faces { display: inline-flex; flex: none; }
.s-face { appearance: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid var(--bg); background-color: var(--bg-2); background-repeat: no-repeat; cursor: pointer; }
.s-face + .s-face { margin-left: -12px; }
.s-face.is-duotone { filter: url(#duotone); }
.s-face:focus-visible { position: relative; z-index: 1; }
.session.is-flash .s-face { border-color: var(--bg-2); }
.s-person { appearance: none; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.s-person:hover { text-decoration-thickness: 2px; }
.s-detail { margin: 4px 0 0; color: var(--muted); }
.s-track { justify-self: end; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; white-space: nowrap; background: var(--track); color: var(--on-track); }
/* From 560px the faces and tag columns have fixed widths, so the + and every column line up row to row. */
@media (min-width: 560px) {
  .s-row { grid-template-columns: minmax(0, 1fr) 80px 96px; }
  .s-faces { grid-column: 2; justify-content: flex-end; }
  .s-track { grid-column: 3; }
}
/* Narrow phones: the tag tucks under the time (inside the time column) so the title keeps most of the row. */
@media (max-width: 559px) {
  .s-row { position: relative; grid-template-columns: minmax(0, 1fr) auto; }
  .s-toggle { padding-bottom: 26px; }
  .s-track { position: absolute; left: 0; bottom: 8px; max-width: 74px; }
}
@media (min-width: 760px) {
  .session { padding: 8px 14px 8px 20px; }
  .s-row { gap: 16px; }
  .s-toggle { grid-template-columns: 170px minmax(0, 1fr) auto; gap: 20px; }
  .s-time { font-size: 1rem; }
  .s-title { font-size: 1.2rem; }
  .s-more { padding-left: 190px; }
  .s-track { font-size: 0.85rem; padding: 2px 10px; }
}

/* ---------- ticket matrix ---------- */
.matrix-wrap { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.matrix-layout { display: grid; gap: 20px; }
.matrix { width: 100%; border-collapse: collapse; }
.m-pick { display: grid; gap: 2px; cursor: pointer; padding: 12px; border: var(--rule); height: 100%; text-align: left; background: var(--bg); transition: background-color 120ms ease; }
.m-pick:hover { background: var(--bg-2); }
.m-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.m-name { font-weight: 800; font-size: 1.1rem; line-height: 1.15; }
.m-price { font-family: var(--display); font-size: 2rem; line-height: 1.15; }
.m-note { font-size: 0.85rem; color: var(--muted); }
.m-rec { justify-self: start; font-size: 0.75rem; font-weight: 700; padding: 0 6px; background: var(--fg); color: var(--bg); }
th.is-sel .m-pick { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
th.is-sel .m-note { color: inherit; }
th.is-sel .m-rec { background: var(--on-gold); color: var(--gold); }
.m-group th { text-align: left; font-size: 1.05rem; font-weight: 800; padding: 22px 0 8px; color: var(--chrome); }
.m-label { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; display: flex; gap: 8px; align-items: baseline; width: 100%; }
.m-more { margin-left: auto; font-weight: 400; color: var(--chrome); }
.m-label[aria-expanded="true"] .m-more { transform: rotate(45deg); }
.m-row.is-hot { background: var(--bg-2); }
.yes { color: var(--fg); display: inline-flex; }
.yes svg { width: 20px; height: 20px; }
td.is-sel .yes { color: var(--gold); }
.no { color: var(--muted); }
.val { font-weight: 700; font-size: 0.95rem; }
.m-detail td { padding: 0 0 12px; }
.pv { background: var(--bg-2); padding: 14px; }
.pv-title { font-family: var(--display); font-size: 1.3rem; margin-bottom: 8px; }
.pv-list li { padding: 5px 0; border-top: var(--hair); font-size: 0.95rem; }
.pv-list .t { font-weight: 700; }
.pv-incl { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.preview { display: none; }
.matrix tfoot th { text-align: left; font-weight: 800; }
.matrix tfoot td { font-weight: 700; }
.matrix-cta { display: grid; gap: 10px; justify-items: start; }
/* A pass (Both nights) is one full-width row under the matrix. Gold when it is the selected ticket. */
.pass-row { display: grid; gap: 12px; align-items: center; margin-top: 20px; padding: 16px; border: var(--rule); }
.pass-row.is-sel { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.pass-row.is-sel .m-rec { background: var(--on-gold); color: var(--gold); }
.pass-main { display: grid; gap: 4px; justify-items: start; }
.pass-main p { margin: 0; }
.pass-name { font-weight: 800; font-size: 1.1rem; line-height: 1.15; }
.pass-note, .pass-per { font-size: 0.9rem; color: var(--muted); }
.pass-row.is-sel .pass-note, .pass-row.is-sel .pass-per { color: inherit; }
.pass-price { display: grid; margin: 0; }
.pass-pick { justify-self: start; }
.pass-row.is-sel .pass-pick { background: var(--bg); color: var(--fg); border-color: var(--bg); }
@media (min-width: 880px) {
  .pass-row { grid-template-columns: 1fr auto auto; gap: 24px; padding: 18px 20px; }
}
.matrix-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phones: every row stacks - label on top, one small cell per tier underneath. No sideways scroll. */
@media (max-width: 879px) {
  .matrix, .matrix thead, .matrix tbody, .matrix tfoot, .matrix tr { display: block; }
  .matrix thead tr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
  .matrix .m-corner { display: none; }
  .matrix thead th { display: block; }
  .m-group th { display: block; }
  .matrix tr[hidden] { display: none; }
  .matrix .m-row, .matrix tfoot tr { display: grid; grid-template-columns: repeat(var(--tiers, 4), 1fr); border-top: var(--hair); padding: 10px 0; column-gap: 6px; }
  .matrix tfoot tr { border-top: var(--rule); }
  .matrix .m-row th, .matrix tfoot th { grid-column: 1 / -1; padding-bottom: 6px; }
  .matrix .m-row td, .matrix tfoot td { display: grid; gap: 2px; align-content: start; font-size: 0.95rem; }
  .m-row td::before, .matrix tfoot td::before { content: attr(data-tier); font-size: 0.72rem; font-weight: 400; color: var(--muted); }
  .m-detail td { display: block; }
}
@media (min-width: 880px) {
  .matrix-layout { grid-template-columns: 1fr 300px; align-items: start; }
  .preview { display: block; position: sticky; top: 90px; background: var(--bg-2); padding: 18px; min-height: 220px; border: var(--rule); }
  .pv-empty { color: var(--muted); }
  .matrix thead th { padding: 0 4px 10px; vertical-align: bottom; width: 16%; }
  .m-row th, .m-row td, .matrix tfoot th, .matrix tfoot td { border-top: var(--hair); padding: 12px 8px; }
  .matrix tfoot th, .matrix tfoot td { border-top: var(--rule); }
  .m-row td, .matrix tfoot td { text-align: left; }
  .m-row td.is-sel, .matrix tfoot td.is-sel { background: color-mix(in srgb, var(--gold) 16%, transparent); }
  .m-detail { display: none; }
}

/* ---------- sponsors ---------- */
.sponsor-tier { margin-bottom: 26px; }
.tier-name { font-size: 1.1rem; margin-bottom: 10px; font-family: var(--body); font-weight: 700; color: var(--muted); }
.sponsor-list { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.sponsor-list img { max-height: 48px; width: auto; }
.wordmark { font-family: var(--display); font-size: 1.4rem; }
.sponsor-tier.is-top .wordmark { font-size: clamp(2rem, 8vw, 3rem); }
.sponsor-tier.is-top img { max-height: 80px; }

/* ---------- venue: a ruled list, the address leads ---------- */
.sec-venue .wrap > .btn { margin-top: 24px; }
.ruled { border-bottom: var(--hair); max-width: 960px; }
.ruled > div { display: grid; gap: 4px; padding: 16px 0 18px; border-top: var(--hair); }
.ruled dt { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.ruled dd { max-width: 62ch; }
.ruled > div:first-child { border-top: var(--rule); padding: 20px 0 24px; }
.ruled > div:first-child dd { font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; }
@media (min-width: 760px) { .ruled > div { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; } }

/* ---------- registration: form on a raised panel ---------- */
.sec-register .wrap { display: grid; gap: 0 48px; }
.reg-invite { margin-bottom: 18px; }
/* Guests: one block per guest inside the form panel, separated by a rule. */
.guests { display: grid; gap: 20px; }
.guests:empty { display: none; }
.guest { display: grid; gap: 16px; margin: 0; padding: 18px 0 0; border: 0; border-top: var(--rule); min-width: 0; }
.guest legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.guest-remove { justify-self: start; }
.guest-add { display: grid; gap: 8px; justify-items: start; }
.guest-add .btn[hidden] { display: none; }
.guest-add .hint { margin: 0; }
/* Order summary: beside the form on desktop, below it on phones. */
.order { margin-top: 24px; padding-top: 14px; border-top: var(--rule); max-width: 760px; }
.order[hidden] { display: none; }
.order h3 { font-size: 1.6rem; margin-bottom: 10px; }
.order-lines li { padding: 7px 0; border-bottom: var(--hair); }
.ol-who { font-weight: 700; }
.order-total { display: flex; gap: 10px; align-items: baseline; margin: 10px 0 0; font-size: 1.2rem; }
.demo { font-size: 0.95rem; color: var(--muted); max-width: 760px; }
.reg-form { display: grid; gap: 20px; max-width: 760px; background: var(--bg-2); padding: 20px 16px; border: var(--rule); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: var(--rule); border-radius: var(--radius); padding: 12px; min-height: 50px; width: 100%; }
.field select { color-scheme: dark; }
.field textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 0.9rem; color: var(--muted); }
.error { color: var(--danger); font-weight: 700; font-size: 0.95rem; }
.error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } .reg-form { padding: 28px; } }
.reg-form .btn { justify-self: start; }
.confirm { border: 3px solid var(--gold); padding: 20px; max-width: 760px; background: var(--bg-2); }
.confirm-demo { font-size: 0.95rem; color: var(--muted); margin-bottom: 14px; }
.confirm h3 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 8px; }
.confirm-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-bottom: 14px; }
.confirm-dl dt { font-weight: 700; }
/* Every ticket in the order, yours first; guests with an email get a send button. */
.confirm-tickets { margin: 0 0 12px; border-top: var(--hair); }
.confirm-tickets li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 0; border-bottom: var(--hair); }
.ct-who { font-weight: 700; }
.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex-basis: 100%; margin-top: 6px; }
.ct-status { color: var(--muted); font-size: 0.95rem; }
.ct-status:empty { display: none; }
.confirm-total { display: flex; gap: 10px; align-items: baseline; font-size: 1.15rem; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) {
  .sec-register .wrap { grid-template-columns: 4fr 7fr; }
  .sec-register .section-title, .sec-register .lede, .sec-register .demo, .sec-register .reg-invite, .sec-register .order { grid-column: 1; }
  .sec-register #reg-out { grid-column: 2; grid-row: 1 / span 7; }
  .sec-register .order { align-self: start; }
}

/* ---------- FAQ: heading holds on the left, answers on the right ---------- */
.faq-list { border-top: var(--rule); max-width: 880px; }
.faq-item { border-bottom: var(--hair); }
.faq-item summary { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.15rem; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.q-icon { font-size: 1.5rem; line-height: 1; color: var(--chrome); }
.faq-item[open] .q-icon { transform: rotate(45deg); }
.faq-item .a { padding-bottom: 18px; max-width: 64ch; color: var(--muted); }
@media (min-width: 960px) {
  .sec-faq .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
  .sec-faq .section-title { position: sticky; top: 100px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--fg); padding: 48px 0 56px; }
.footer-inner { display: grid; gap: 20px; }
.footer-word { font-family: var(--display); font-size: clamp(3rem, 15vw, 9rem); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; border-top: var(--rule); padding-top: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-small { font-size: 0.95rem; color: var(--muted); margin: 0; }
.footer-credit { font-size: 0.8rem; color: var(--muted); margin: 0; }

section[id] { scroll-margin-top: 100px; }
@media (min-width: 960px) { section[id] { scroll-margin-top: 70px; } }

/* ---------- name marquee ---------- */
.marquee { position: relative; overflow: hidden; background: var(--bg-deep); border-top: 4px dotted var(--gold); border-bottom: 4px dotted var(--gold); padding: 14px 0; }
.mq-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.mq-row { display: flex; flex: none; align-items: center; }
.mq-name { font-family: var(--display); font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.2; white-space: nowrap; padding: 0 24px; }
.mq-star { color: var(--gold); font-size: 0.85rem; }
.marquee:hover .mq-track, .marquee.is-paused .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-pause { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: var(--rule); background: var(--bg-deep); color: var(--fg); font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.mq-pause:hover { background: var(--fg); color: var(--bg); }
.mq-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.marquee.is-paused .mq-icon { border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.motion-off .mq-track { animation: none; width: auto; }
.motion-off .mq-row { flex-wrap: wrap; row-gap: 4px; padding: 0 var(--gutter); }
.motion-off .mq-row + .mq-row, .motion-off .mq-pause { display: none; }

/* ---------- content flows in on scroll ---------- */
/* Hidden starting states only apply once app.js adds html.reveal-on, and never with Motion off. */
html.reveal-on:not(.motion-off) .rv-words .rv-w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(0.18em); transition: opacity 450ms ease, filter 450ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--w, 0) * 60ms); }
html.reveal-on:not(.motion-off) .rv-words.rv-in .rv-w { opacity: 1; filter: none; transform: none; }
html.reveal-on:not(.motion-off) .rv-wipe .sp-photo { clip-path: inset(100% 0 0 0); transition: clip-path 550ms cubic-bezier(.2, .7, .2, 1); }
html.reveal-on:not(.motion-off) .rv-wipe.rv-in .sp-photo { clip-path: inset(0); }
html.reveal-on:not(.motion-off) .rv-stagger { opacity: 0; transform: translateY(14px); transition: opacity 450ms ease var(--rv-delay, 0ms), transform 450ms cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms), background-color 400ms ease; }
html.reveal-on:not(.motion-off) .rv-stagger.rv-in { opacity: 1; transform: none; }

/* ---------- artist popup ---------- */
html:has(dialog[open]) { overflow: hidden; }
.artist { padding: 0; border: 3px solid var(--chrome); background: var(--bg); color: var(--fg); width: min(1040px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); overflow: auto; }
.artist::backdrop { background: rgba(28, 7, 24, 0.85); }
.artist-inner { position: relative; display: grid; }
.artist-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: var(--rule); background: var(--bg); color: var(--fg); font-size: 2rem; line-height: 1; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.artist-close:hover { background: var(--fg); color: var(--bg); }
.artist-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.artist-body { padding: 22px var(--gutter) 28px; }
.artist-name { font-size: clamp(2.2rem, 8vw, 3.6rem); margin-right: 56px; }
.artist-style { margin: 8px 0 14px; font-weight: 700; color: var(--chrome); }
.artist-bio { font-size: 1.1rem; max-width: 56ch; }
.artist-nights { display: grid; gap: 16px; margin: 20px 0; }
.artist-night h3 { font-family: var(--body); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.artist-slots li { border-top: var(--hair); }
.artist-slots a { display: block; padding: 7px 0; text-decoration: none; }
.artist-slots a:hover { text-decoration: underline; }
.artist-slots .t { font-weight: 700; }
.artist-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 4px; }
@media (min-width: 560px) { .artist-nights { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) {
  .artist-inner { grid-template-columns: 2fr 3fr; align-items: start; }
  .artist-media { position: sticky; top: 0; }
  .artist-media img { aspect-ratio: 4 / 5; }
  .artist-body { padding: 36px 32px 32px; }
}
/* Phones: a full-screen sheet that slides up. */
@media (max-width: 759px) {
  .artist { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; inset: 0; border: 0; }
  .artist[open] { animation: sheet-up 380ms cubic-bezier(.2, .7, .2, 1); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

/* Record player: plays the performer's preview clip. A filled panel, no border: the dialog is the one frame. */
.player { margin-top: 14px; padding: 16px; background: var(--bg-2); }
.player[hidden] { display: none; }
.player-deck { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.player-disc { position: relative; }
.record { display: block; width: 100%; height: auto; }
.player.is-playing .record { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tonearm { position: absolute; top: -4px; right: 2px; width: 6px; height: 64%; background: var(--chrome); transform-origin: top center; transform: rotate(-26deg); transition: transform 400ms ease; }
.player.is-playing .tonearm { transform: rotate(-6deg); }
.player-title { margin: 0 0 8px; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.player-time { display: flex; align-items: center; gap: 10px; }
.player-progress { flex: 1; min-width: 0; height: 6px; appearance: none; -webkit-appearance: none; border: 0; background: var(--bg); color: var(--fg); }
.player-progress::-webkit-progress-bar { background: var(--bg); }
.player-progress::-webkit-progress-value { background: var(--fg); }
.player-progress::-moz-progress-bar { background: var(--fg); }
.player-clock { font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.bars i { width: 5px; height: 100%; background: var(--fg); transform: scaleY(0.2); transform-origin: bottom; }
.player.is-playing .bars i { animation: bar 800ms ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: -300ms; }
.bars i:nth-child(3) { animation-delay: -550ms; }
.bars i:nth-child(4) { animation-delay: -150ms; }
.bars i:nth-child(5) { animation-delay: -420ms; }
@keyframes bar { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.player-now { margin: 8px 0 0; min-height: 1.4em; font-size: 0.9rem; color: var(--muted); }
.player-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 560px) { .player-deck { grid-template-columns: 150px 1fr; } }

/* ---------- "Bring someone" invite builder ---------- */
.invite { padding: 0; border: 3px solid var(--chrome); background: var(--bg); color: var(--fg); width: min(860px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); overflow: auto; }
.invite::backdrop { background: rgba(28, 7, 24, 0.85); }
.inv-inner { position: relative; padding: 24px var(--gutter) 28px; }
.inv-title { font-size: clamp(2rem, 7vw, 3rem); margin: 0 64px 18px 0; }
.inv-title:focus { outline: none; }
.inv-form { display: grid; gap: 18px; }
.inv-form [hidden] { display: none; }
.inv-fixed { margin: 0; padding: 12px 14px; background: var(--bg-2); font-weight: 700; }
.inv-fixed span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.inv-count { margin: -12px 0 0; }
.inv-photo { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--bg-2); }
.inv-photo img { width: 96px; height: auto; transform: rotate(-2deg); }
.inv-photo.is-empty { grid-template-columns: 1fr; justify-items: start; }
.inv-photo.is-empty p { margin: 0; color: var(--muted); }
.inv-check { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.inv-check input { width: 20px; height: 20px; accent-color: var(--gold); }
.inv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.inv-demo { color: var(--muted); }
.inv-preview { display: grid; gap: 22px; }
.inv-side p { max-width: 36ch; }
/* The email, as it would land on a phone */
.phone { width: 100%; max-width: 360px; border: 10px solid var(--chrome); border-radius: 30px; background: var(--chrome); overflow: hidden; }
.phone-screen { background: #fffaf0; color: var(--bg); border-radius: 20px; overflow: hidden; }
.mail-head { padding: 14px 16px 12px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); font-size: 0.85rem; }
.mail-head p { margin: 0 0 2px; overflow-wrap: anywhere; }
.mh-k { display: inline-block; min-width: 40px; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.mail-subject { margin-top: 6px !important; font-weight: 800; font-size: 1rem; }
.mail-body { padding: 0 16px 18px; }
.mail-body > p { font-size: 0.98rem; }
.mail-body .mail-brand { margin: 0 -16px 16px; padding: 10px 16px; background: var(--bg); color: var(--fg); font-family: var(--display); font-size: 1.3rem; }
.mail-body .mail-headline { margin: 0 0 8px; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; }
.mail-photo { display: block; width: 86%; margin: 14px 0 16px 4px; transform: rotate(-2deg); }
.mail-note { margin: 0 0 16px; padding: 0; font-size: 1.05rem; font-style: normal; font-weight: 600; }
.mail-btn { display: inline-block; margin: 2px 0 18px; padding: 10px 18px; background: var(--gold); color: var(--on-gold); font-weight: 800; }
.mail-foot { margin: 0; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); font-size: 0.8rem; color: color-mix(in srgb, var(--bg) 75%, transparent); }
/* Gift ticket stub: gold means the ticket you picked */
.stub { display: grid; grid-template-columns: 1fr 52px; margin: 6px 0 16px; background: var(--gold); color: var(--on-gold); }
.stub-main { padding: 12px 14px; border-right: 2px dotted var(--on-gold); }
.stub-main p { margin: 0; }
.stub-admit { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stub-name { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.stub-meta { font-weight: 700; font-size: 0.9rem; }
.stub-side { display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem; writing-mode: vertical-rl; }
@media (min-width: 760px) {
  .inv-inner { padding: 36px 36px 36px; }
  .inv-preview { grid-template-columns: 360px 1fr; align-items: start; gap: 32px; }
}
/* Phones: a full-screen sheet that slides up. */
@media (max-width: 759px) {
  .invite { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; inset: 0; border: 0; }
  .invite[open] { animation: sheet-up 380ms cubic-bezier(.2, .7, .2, 1); }
}

/* ---------- Motion toggle ---------- */
/* Motion is on by default, whatever the OS setting. Off (html.motion-off) stills everything above. */
.motion-toggle { appearance: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border: var(--rule); background: transparent; color: var(--fg); font: inherit; font-weight: 700; font-size: 0.85rem; white-space: nowrap; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.motion-toggle:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.footer-motion { margin: 4px 0 0; }
.header-motion { grid-area: motion; display: none; }
@media (min-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav motion cta"; }
  .header-motion { display: inline-flex; }
}
