/* ============================================================
   BoomBigNose — FREE EVENT registration page
   Night Workshop, scoped. Tokens mirror css/styles.css so the page
   reads as the same product without pulling the 99KB landing sheet.

   Theme resolution order (same as the main site):
     1. :root[data-theme="light"]                  — explicit user choice
     2. @media (prefers-color-scheme: light)
          :root:not([data-theme="dark"])           — system default
     3. :root                                      — dark, the default
   ============================================================ */

:root {
  --bg:        #0b0c10;
  --bg-2:      #101218;
  --bg-3:      #161823;
  --line:      rgba(231, 226, 211, 0.08);
  --line-2:    rgba(231, 226, 211, 0.16);
  --line-3:    rgba(231, 226, 211, 0.28);

  --text:      #ece7d6;
  --text-2:    #b9b4a4;
  --text-3:    #82806f;
  --mute:      #5e5d52;

  --coral:     #ff5a45;
  --coral-text: var(--coral);
  --coral-glow: rgba(255, 90, 69, 0.22);
  --btn-ink-fg: var(--bg);
  --amber:     #f5c45e;
  --amber-text: var(--amber);
  --cyan:      #5fd4ff;
  --cyan-text: var(--cyan);
  --lime:      #c6ff5a;
  --lime-text: var(--lime);

  --display:   'Bricolage Grotesque', 'IBM Plex Sans Thai Looped', system-ui, sans-serif;
  --editorial: 'Instrument Serif', 'Noto Serif Thai', Georgia, serif;
  --sans:      'IBM Plex Sans', 'IBM Plex Sans Thai Looped', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max:       860px;
  --gutter:    clamp(20px, 5vw, 40px);

  --grid-dot:  rgba(231, 226, 211, 0.08);
  --shadow-card:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 24px 48px -28px rgba(0,0,0,0.85);
  --field-bg:  rgba(255, 255, 255, 0.02);
}

:root[data-theme="light"] {
  --bg:        #f5f1e6;
  --bg-2:      #ebe6d4;
  --bg-3:      #e0dac4;
  --line:      rgba(20, 20, 30, 0.10);
  --line-2:    rgba(20, 20, 30, 0.20);
  --line-3:    rgba(20, 20, 30, 0.32);

  --text:      #14141e;
  --text-2:    #3a3a48;
  --text-3:    #5a5a6c;
  --mute:      #8a8a96;

  --coral-text: #a02810;
  --coral-glow: rgba(217, 74, 48, 0.18);
  --btn-ink-fg: #14141e;
  --amber-text: #8a5a0a;
  --cyan-text:  #0c6680;
  --lime-text:  #3d5a10;

  --grid-dot:  rgba(20, 20, 30, 0.07);
  --shadow-card:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 36px -22px rgba(20, 20, 30, 0.18);
  --field-bg:  rgba(255, 255, 255, 0.55);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #f5f1e6;
    --bg-2:      #ebe6d4;
    --bg-3:      #e0dac4;
    --line:      rgba(20, 20, 30, 0.10);
    --line-2:    rgba(20, 20, 30, 0.20);
    --line-3:    rgba(20, 20, 30, 0.32);

    --text:      #14141e;
    --text-2:    #3a3a48;
    --text-3:    #5a5a6c;
    --mute:      #8a8a96;

    --coral-text: #a02810;
    --coral-glow: rgba(217, 74, 48, 0.18);
    --btn-ink-fg: #14141e;
    --amber-text: #8a5a0a;
    --cyan-text:  #0c6680;
    --lime-text:  #3d5a10;

    --grid-dot:  rgba(20, 20, 30, 0.07);
    --shadow-card:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 18px 36px -22px rgba(20, 20, 30, 0.18);
    --field-bg:  rgba(255, 255, 255, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

/* Author CSS below sets display on <body>-level nodes; re-assert [hidden]
   so toggling a panel with el.hidden actually hides it. */
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  overflow-x: hidden;
}

/* Dot lattice — the house motif, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  font: 500 15px/1 var(--mono);
  color: #14141e;
  background: var(--amber);
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ── Masthead ───────────────────────────────────────────── */
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.mast__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.mast__brand img { width: 28px; height: 28px; display: block; }
.mast__brand span {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mast__tools { display: inline-flex; align-items: center; gap: 8px; }

.chip {
  appearance: none;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-3);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 8px 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { color: var(--coral-text); border-color: var(--coral); }

/* ── Section markers — decoration lives in pseudo elements ── */
.marker {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
}
.marker::before { content: "~/"; color: var(--mute); }
.marker::after {
  content: "";
  width: 7px; height: 12px;
  background: var(--cyan);
  animation: blink 1.1s steps(2) infinite;
  align-self: center;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .marker::after { animation: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding-block: clamp(56px, 12vw, 104px) clamp(48px, 9vw, 88px);
  display: grid;
  gap: clamp(40px, 7vw, 72px);
}
@media (min-width: 900px) {
  :root { --max: 1120px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
}

.hero__eyebrow {
  display: inline-block;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--btn-ink-fg);
  background: var(--coral);
  padding: 9px 14px;
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 16vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 28px;
}
.hero__title__l { display: block; }

/* Two-column hero: the single-column ceiling (132px) is wider than the copy
   column, so "YouTube" would run under the poster.
   Sized in `cqw` — 1% of the copy column — rather than `vw`, because the
   container caps at 1120px while the viewport keeps growing, so any vw value
   that fits at 1280 overflows at 1920. 20cqw leaves the longest word at ~90%
   of the track, which is the slack that absorbs the difference between the
   real Bricolage Grotesque metrics and a fallback face.
   Placed after the base rule on purpose: a media query carries no extra
   specificity, so an earlier override would simply lose. */
@media (min-width: 900px) {
  .hero__copy { container-type: inline-size; }
  .hero__title { font-size: min(20cqw, 112px); }
}
.hero__title .x {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--coral-text);
  padding-inline: 0.06em;
}

.hero__quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 5.6vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 36px;
  padding-left: clamp(16px, 3vw, 24px);
  border-left: 2px solid var(--coral);
  max-width: 20ch;
}

.hero__lede {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 46ch;
  margin: 0 0 20px;
}
.hero__lede:last-of-type { margin-bottom: 44px; }

/* ── Buttons ────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  min-height: 68px;
  padding: 18px 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 3.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  color: var(--btn-ink-fg);
  background: var(--coral);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--coral), 0 18px 40px -18px var(--coral-glow);
  transition: transform .18s var(--t-ease, cubic-bezier(.2,.7,.2,1)), box-shadow .18s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--coral), 0 24px 48px -18px var(--coral-glow); }
.cta:disabled { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .cta { transition: none; } .cta:hover { transform: none; } }

.cta__note {
  display: block;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 44ch;
}

/* ── Info sections ──────────────────────────────────────── */
.section { padding-block: clamp(48px, 9vw, 80px); border-top: 1px solid var(--line); }

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 10px;
}
.section__kicker {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin: 0 0 22px;
}
/* The clock sits inside the kicker line and is coloured like live data, so
   it reads as a fact rather than as more of the label. */
.section__when { color: var(--cyan-text); }

.section__body { font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 52ch; margin: 0 0 24px; }

.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.topics li {
  background: var(--bg);
  padding: 18px 4px 18px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.topics li::before {
  content: counter(topic, decimal-leading-zero);
  counter-increment: topic;
  font: 500 12px/1.5 var(--mono);
  color: var(--coral-text);
  letter-spacing: 0.06em;
}
.topics { counter-reset: topic; }

.note {
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--amber);
  background: var(--bg-2);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 24px 0 0;
}

/* ── Form ───────────────────────────────────────────────── */
.form { padding-bottom: clamp(56px, 10vw, 96px); }

fieldset { border: 0; margin: 0 0 44px; padding: 0; min-width: 0; }
legend {
  display: block;
  width: 100%;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0 0 18px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line-2);
}
legend small {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.field { margin-bottom: 26px; }
.field > label,
.group__label {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
}
.req { color: var(--coral-text); font-weight: 600; }
.opt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: 6px;
}
.hint { display: block; font-size: 14px; line-height: 1.6; color: var(--text-3); margin: -2px 0 10px; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 15px 16px;
  min-height: 54px;
  transition: border-color .16s, background .16s;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--mute); }
input:hover, textarea:hover { border-color: var(--line-3); }
input:focus, textarea:focus { border-color: var(--coral); background: var(--bg-2); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--coral); }

/* Option lists — the whole tile is the hit target, comfortably >44px. */
.options { display: grid; gap: 10px; }
.options--dates { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.opt-tile {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  padding: 15px 16px;
  min-height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--field-bg);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.opt-tile:hover { border-color: var(--line-3); }
.opt-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-tile__box {
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-3);
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
}
.opt-tile input[type="radio"] ~ .opt-tile__box { border-radius: 50%; }
.opt-tile__box::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--coral);
  transform: scale(0);
  transition: transform .14s cubic-bezier(.2,.7,.2,1);
}
.opt-tile input[type="radio"] ~ .opt-tile__box::after { border-radius: 50%; }
.opt-tile:has(input:checked) { border-color: var(--coral); background: var(--bg-2); }
.opt-tile:has(input:checked) .opt-tile__box { border-color: var(--coral); }
.opt-tile input:checked ~ .opt-tile__box::after { transform: scale(1); }
.opt-tile:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 3px; }

.opt-tile__text { font-size: 16px; line-height: 1.45; color: var(--text); }
.opt-tile__sub {
  display: block;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
}

/* Conditional networking block — revealed when the user opts in. */
.conditional {
  margin-top: 22px;
  padding: 22px 20px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--cyan);
  background: var(--bg-2);
}
.conditional > .group__label { margin-top: 0; }

/* ── Messages ───────────────────────────────────────────── */
.error-msg {
  font: 500 14px/1.5 var(--sans);
  color: var(--coral-text);
  margin: 8px 0 0;
}
.typo-fix {
  appearance: none;
  border: 1px solid var(--coral);
  background: transparent;
  color: var(--coral-text);
  font: 500 14px/1 var(--mono);
  padding: 7px 10px;
  margin-left: 6px;
  border-radius: 2px;
  cursor: pointer;
}
.typo-fix:hover { background: var(--coral); color: var(--btn-ink-fg); }
.form-error {
  border: 1px solid var(--coral);
  background: var(--bg-2);
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* ── Success ────────────────────────────────────────────── */
.success { padding-block: clamp(64px, 13vw, 120px); }
.success__mark {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  color: var(--lime-text);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 28px;
}
.success__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 28px;
}
.success__body {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 44ch;
  margin: 0 0 20px;
  white-space: pre-line;
}
.success__when {
  font: 500 13px/1.7 var(--mono);
  letter-spacing: 0.04em;
  color: var(--amber-text);
  border-left: 2px solid var(--amber);
  padding-left: 14px;
  margin: 0;
}

.success__back {
  display: inline-block;
  margin-top: 20px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--coral-text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
}
.success__back:hover { border-bottom-color: var(--coral); }

/* ── Footer ─────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  font: 500 11px/1.8 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.foot a { color: var(--text-3); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--coral-text); }

@media (max-width: 520px) {
  .hero__quote { max-width: none; }
  .options--dates { grid-template-columns: 1fr; }
}

/* ============================================================
   Motion + 3-D
   Every animation below is decorative. `.reveal` is visible by
   default and only event-motion.js hides it, so a failed module
   leaves readable content rather than a blank page.
   ============================================================ */

/* ── Hero pass — a real 3-D object ───────────────────────── */
.pass-stage {
  perspective: 1100px;
  display: grid;
  place-items: center;
  padding-block: 8px;
}

.pass {
  position: relative;
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  width: min(100%, 460px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s var(--t-ease, cubic-bezier(.2,.7,.2,1));
  will-change: transform;
}
.pass.is-live { transition-duration: .12s; }

/* Idle drift, so the card has life before anyone touches it. */
@media (prefers-reduced-motion: no-preference) {
  .pass { animation: pass-float 9s ease-in-out infinite; }
  .pass.is-live { animation: none; }
}
@keyframes pass-float {
  0%, 100% { transform: rotateX(3deg)  rotateY(-5deg) translateY(0); }
  50%      { transform: rotateX(-2deg) rotateY(5deg)  translateY(-10px); }
}

.pass__face {
  position: relative;
  height: 100%;
  /* Explicit colour under the artwork: if the poster fails to load the frame
     still has a surface instead of going transparent. */
  background-color: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-card), 0 40px 80px -44px var(--coral-glow);
  overflow: hidden;
}

.pass__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The pointer highlight rides over the artwork, echoing the poster's own
   amber glow rather than washing it out. */
.pass__face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px 380px at var(--gx) var(--gy),
    rgba(245, 196, 94, 0.20), transparent 72%);
  mix-blend-mode: screen;
}
/* Coral L-brackets — the house motif, on the wrapper so they sit above the
   artwork and its highlight. */
.pass::before, .pass::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 20px; height: 20px;
  border: 2px solid var(--coral);
}
.pass::before { top: -1px;    left: -1px;  border-right: 0; border-bottom: 0; }
.pass::after  { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

.pass__wires {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  opacity: .38;
  pointer-events: none;
}
.pass__wires path {
  stroke: var(--coral);
  stroke-width: 1.25;
  stroke-dasharray: 5 9;
}
@media (prefers-reduced-motion: no-preference) {
  .pass__wires path { animation: wire-flow 2.6s linear infinite; }
  .pass__wires path:nth-child(2) { animation-delay: -.7s; }
  .pass__wires path:nth-child(3) { animation-delay: -1.3s; }
  .pass__wires path:nth-child(4) { animation-delay: -1.9s; }
}
@keyframes wire-flow { to { stroke-dashoffset: -28; } }



/* Fact strip under the poster — what the artwork deliberately does not
   promise yet: the date is still being chosen by this very page. */
.pass-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pass-facts > div { min-width: 0; }
.pass-facts dt {
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* --mute lands at 2.9:1 behind 10px type in both themes — these labels
     have always failed contrast here, caught when the strip gained a fourth
     row. --text-3 clears it at 4.9:1 and still reads as a quiet label. */
  color: var(--text-3);
}
.pass-facts dd { margin: 2px 0 0; font: 500 14px/1.4 var(--sans); color: var(--text-2); }
.pass-facts__free { color: var(--lime-text) !important; font-family: var(--mono) !important; letter-spacing: .06em; }

.pass-note {
  /* .pass-stage centres its children; this line belongs to the facts strip
     above it, so it lines up with that instead of floating in the middle. */
  justify-self: stretch;
  margin: 12px 0 0;
  font: 500 12px/1.6 var(--mono);
  color: var(--text-3);
}

@media (max-width: 420px) {
  .pass-facts { gap: 10px 18px; }
  .pass-facts dd { font-size: 13px; }
}

/* ── Reveal (visible by default; JS opts in) ─────────────── */
.reveal { will-change: opacity, transform; }


.cta--inline { width: auto; min-width: 160px; max-width: none; min-height: 56px; font-size: 17px; }


/* ── Wizard ──────────────────────────────────────────────── */
.wiz-head { margin: 0 0 30px; }
.wiz-steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: none;
}
.wiz-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-3);
  transition: color .2s;
}
.wiz-steps__n {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color .2s, background .2s, color .2s;
}
.wiz-steps__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-steps .is-current { color: var(--text); }
.wiz-steps .is-current .wiz-steps__n { border-color: var(--coral); color: var(--coral-text); }
.wiz-steps .is-done .wiz-steps__n {
  background: var(--coral); border-color: var(--coral); color: var(--btn-ink-fg);
}

.wiz-bar { height: 3px; background: var(--bg-3); overflow: hidden; }
.wiz-bar span {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transition: width .45s var(--t-ease, cubic-bezier(.2,.7,.2,1));
}

.wiz-panel { margin-bottom: 28px; }
.wiz-panel--in { animation: wiz-in .4s var(--t-ease, cubic-bezier(.2,.7,.2,1)) both; }
@keyframes wiz-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-panel--in { animation: none; }
  .wiz-bar span  { transition: none; }
  .pass          { transition: none; }
}

.wiz-nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn-ghost {
  appearance: none;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-3); }

/* ── Deposit + slip upload ───────────────────────────────── */
.deposit {
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--amber);
  background: var(--bg-2);
  padding: clamp(20px, 4vw, 28px);
  margin: 0 0 28px;
}
.deposit__amount { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.deposit__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.deposit__unit {
  font: 500 14px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.deposit__tier {
  margin: 10px 0 0;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-text);
}
.deposit__refund {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 48ch;
}
.deposit__pay {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.deposit__pay.is-pending {
  color: var(--text-3);
  font: 500 13px/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.deposit__pay-head {
  margin: 0 0 6px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.deposit__bank { margin: 0; font: 500 15px/1.5 var(--sans); color: var(--text-2); }
.deposit__acct {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.deposit__acct-no {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(19px, 4.4vw, 23px);
  letter-spacing: 0.04em;
  color: var(--text);
  /* An account number is going to be copied by hand on a phone at least some
     of the time, so make selecting it easy rather than fighting the drag. */
  user-select: all;
  -webkit-user-select: all;
}
.deposit__copy {
  appearance: none;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--amber-text);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  padding: 9px 12px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, border-color .16s;
}
.deposit__copy:hover { color: var(--coral-text); border-color: var(--coral); }
.deposit__acct-name { margin: 8px 0 0; font: 400 14px/1.5 var(--sans); color: var(--text-2); }

.deposit__qr { margin: 18px 0 0; }
.deposit__qr img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  /* A QR is read by a camera, so it keeps a white quiet zone in both themes
     rather than inheriting the surface. */
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.deposit__qr figcaption {
  margin: 10px 0 0;
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* Five age buttons must not each claim a full row on a phone. */
.options--compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.options--compact .opt-tile { min-height: 50px; padding: 12px 14px; }

.drop {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 26px 18px;
  margin-top: 12px;
  border: 1px dashed var(--line-3);
  background: var(--field-bg);
  cursor: pointer;
  text-align: center;
  transition: border-color .16s, background .16s;
}
.drop:hover { border-color: var(--coral); }
.drop:focus-within { outline: 2px solid var(--coral); outline-offset: 3px; }
.drop input { position: absolute; opacity: 0; width: 0; height: 0; }
.drop__icon { font-size: 22px; line-height: 1; color: var(--amber-text); }
.drop__text { font-size: 16px; color: var(--text); }
.drop__meta { font: 500 11px/1.5 var(--mono); letter-spacing: .1em; color: var(--text-3); }

.slip-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
}
.slip-preview img {
  width: 56px; height: 56px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line-2);
}
.slip-preview__meta { display: grid; min-width: 0; }
.slip-preview__meta b {
  font: 500 14px/1.4 var(--sans);
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slip-preview__meta span { font: 500 11px/1.4 var(--mono); color: var(--text-3); }
.slip-preview__clear {
  margin-left: auto;
  flex: none;
  appearance: none;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-3);
  font: 500 12px/1 var(--mono);
  padding: 9px 12px;
  cursor: pointer;
}
.slip-preview__clear:hover { color: var(--coral-text); border-color: var(--coral); }

@media (max-width: 560px) {
  .wiz-steps__t { display: none; }
  .wiz-steps li { flex: 0 0 auto; }
  .wiz-nav .cta--inline, .wiz-nav .btn-ghost { flex: 1; }
}

/* "Already registered? confirm here" under the hero CTA — revealed by event.js
   once CONFIRMED_DATE is set, because the RSVP page asks about that day. */
.hero__rsvp {
  display: inline-block;
  margin: 14px 0 0;
  font: 500 13px/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--coral-text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
}
.hero__rsvp:hover { border-bottom-color: var(--coral); }
.hero__rsvp + .hero__rsvp { margin-left: 18px; }

/* ── Ended state ──────────────────────────────────────────── */
/* Shown instead of the form once REGISTRATION_OPEN is false. Lives here, not in
   a page stylesheet, because /event/ and /workshop/chiangmai/ both close with
   it. A <div>, not a <p>: `.hero__lede:last-of-type` pads the last <p> of the
   hero copy, and a second <p> after it would take that over. */
.hero__ended {
  margin: 0 0 22px;
  max-width: 46ch;
}

/* The pointer to what is still open. Same raised surface and coral top rule as
   the seat card above it, so the two read as one family. */
.next-card {
  margin-top: 1.6rem;
  display: grid;
  gap: 10px;
  max-width: 640px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--coral);
}

.next-card__kicker {
  margin: 0;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.next-card__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
}

.next-card__sub {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

.next-card .cta { justify-self: start; }

/* The LINE handle in an ended page's small print. Without this it takes the
   browser's default link blue, which reads as a stray word on both themes. */
.ended-help a {
  color: var(--coral-text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--coral) 45%, transparent);
}
.ended-help a:hover { border-bottom-color: var(--coral); }
