/* Everybody Move microsite. Mobile-first (375px), flyer-faithful.
   Palette: PRD "Palette (sampled from the flyer)", confirmed by eyedropper on assets/flyer
   (bg #299FC3, type #FDEED1). Fonts: self-hosted OFL stand-ins (Archivo display, Hanken Grotesk text)
   until Mike supplies the flyer face. No external requests. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latinext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-latinext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Flyer palette (PRD) */
  --sky: #29A0C2;          /* page background */
  --cream: #FAEFD1;        /* all flyer type + rules */
  --park: #86C236;         /* lawns */
  --canopy: #588838;       /* tree clusters */
  --deep: #245430;         /* runners' clothes, shadows */
  --lake: #68B8C8;         /* lakes */
  --orange: #E49C3C;       /* URGENCY ONLY: last-pairs, almost-out, sold-out */
  --sun: #F0C048;          /* highlights (free-shoe offer) */

  /* Derived (for contrast; not on the flyer) */
  --ink: #14301C;          /* darkest green: text on cream / orange / sun */
  --sky-deep: #1B7E9C;     /* header + focus ring on cream */
  --cream-dim: rgba(250, 239, 209, .72);
  --rule: 2px solid var(--cream);

  --font-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: 16px;
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --focus: 3px solid var(--sun);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none; }

:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
.ticket-card :focus-visible, .drawer :focus-visible, .faq :focus-visible { outline-color: var(--sky-deep); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, color .15s, box-shadow .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--primary { background: var(--deep); color: var(--cream); }
.btn--primary:hover:not(:disabled) { background: var(--ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--cream); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sky) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(250, 239, 209, .35);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.site-header__mark {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: 1.05rem; text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav li:not(:last-child) { display: none; }
.site-nav a { display: inline-block; padding: 8px 10px; font-weight: 600; text-decoration: none; border-radius: 999px; }
.site-nav a:hover { text-decoration: underline; }
.site-nav__cta { background: var(--cream); color: var(--ink); font-family: var(--font-display); font-weight: 800; padding: 8px 16px !important; }
.site-nav__cta:hover { background: #fff8e6; text-decoration: none !important; }

/* ---------- Flyer text stack ----------
   Left-aligned cream lines, each with a thin cream rule under it (PRD "Stacked type"). */
.stack { display: flex; flex-direction: column; }
.stack__billing {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.95rem, 4.3vw, 1.35rem);
  letter-spacing: -.005em; line-height: 1.2;
}
.stack__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 13.9vw, 9.5rem); line-height: .84; letter-spacing: -.035em;
  margin-top: .06em; padding-bottom: .1em; border-bottom: var(--rule);
}
.stack__title span { display: block; }
.stack__line {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  line-height: 1.18; letter-spacing: -.01em;
  padding: .45em 0 .4em; border-bottom: var(--rule);
}
.stack__line--lg { font-size: clamp(1.2rem, 5.9vw, 2rem); font-weight: 600; }
.stack__heading {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 12.5vw, 5.75rem); line-height: .86; letter-spacing: -.03em;
  padding: .04em 0 .12em; border-bottom: var(--rule);
}
.stack--section { margin-bottom: 28px; max-width: 760px; }

/* ---------- Hero ---------- */
.hero { padding: 22px 0 8px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 20px; }
.hero__cta .btn { min-width: 220px; }
.hero__cta-note { font-weight: 600; font-size: .98rem; max-width: 34ch; }
.hero__cta-note::before {
  content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%;
  background: var(--sun); margin-right: .45em; vertical-align: .02em;
}
.hero__art { margin: 0; }
.hero__art img { width: 100%; filter: drop-shadow(0 10px 18px rgba(20, 48, 28, .18)); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid rgba(250, 239, 209, .3); }

.day-list { display: grid; gap: 0; max-width: 760px; margin-top: -16px; }
.day-list__item { padding: 16px 0 16px; border-bottom: var(--rule); }
.day-list__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 5.6vw, 1.9rem); line-height: 1.12; letter-spacing: -.015em; }
.day-list__item p { margin-top: 6px; font-weight: 500; max-width: 56ch; }
.callout {
  display: inline-block; margin-top: 26px; padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink); font-family: var(--font-display); font-weight: 700;
}

.when-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.facts { margin-top: -14px; }
.facts__row { display: grid; grid-template-columns: 7.2rem 1fr; gap: 12px; padding: 14px 0; border-bottom: var(--rule); }
.facts dt { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; padding-top: .2em; }
.facts dd { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.cal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.route-art { align-self: start; }
.route-art img { width: 100%; border-radius: var(--radius); border: 3px solid var(--cream); }
.route-art figcaption { margin-top: 10px; font-weight: 600; font-size: .95rem; color: var(--cream); }

/* ---------- Ticket card (contract: #tickets[data-tier]) ---------- */
.ticket-card {
  position: relative; max-width: 560px;
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: 24px 20px 20px;
  box-shadow: 0 0 0 3px var(--deep), 10px 10px 0 0 var(--deep);
  overflow: hidden;
}
.ticket-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ticket-card__name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; }
.ticket-card__price { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.ticket-card__includes { margin-top: 12px; font-weight: 500; }

.ticket-card__shoe {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--sun) 35%, var(--cream));
  border: 2px solid var(--sun);
  font-family: var(--font-display); font-weight: 700; line-height: 1.3;
}
.ticket-card__count { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ticket-card__count:empty { display: none; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badges:empty { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .01em;
}
.badge[data-badge="last-pairs"], .badge[data-badge="almost-out"] { background: var(--orange); color: var(--ink); }
.badge[data-badge="last-pairs"]::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--ink); }
.badge[data-badge="almost-out"] { box-shadow: inset 0 0 0 2px var(--ink); }

.ticket-card__notice { margin-top: 12px; font-weight: 600; }
.ticket-card__notice:empty { display: none; }
#get-tickets { margin-top: 18px; min-height: 54px; font-size: 1.15rem; }
.ticket-card__fine { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(20, 48, 28, .25); font-size: .9rem; display: grid; gap: 4px; }
.ticket-card__fine li { padding-left: 1em; text-indent: -1em; }
.ticket-card__fine li::before { content: "· "; font-weight: 800; }

.ticket-card__stamp {
  display: none; position: absolute; z-index: 2; top: 18px; right: -42px; transform: rotate(14deg);
  padding: 6px 54px; background: var(--orange); color: var(--ink);
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
  box-shadow: 0 0 0 2px var(--ink);
}

/* tier: loading (skeleton count) */
[data-tier="loading"] .ticket-card__count {
  color: transparent; border-radius: 6px; width: 12ch; max-width: 100%;
  background: linear-gradient(90deg, rgba(20,48,28,.10) 0%, rgba(20,48,28,.20) 50%, rgba(20,48,28,.10) 100%);
  background-size: 200% 100%; animation: em-shimmer 1.4s linear infinite;
}
@keyframes em-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* tier: error (counts hidden; notice says "Live count unavailable, retrying") */
[data-tier="error"] .ticket-card__count,
[data-tier="error"] .badges { display: none; }
[data-tier="error"] .ticket-card__notice { padding: 10px 14px; border-radius: var(--radius-sm); border: 2px dashed var(--ink); }

/* tier: not-on-sale ("On sale soon") */
[data-tier="not-on-sale"] .ticket-card__notice {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; letter-spacing: -.01em;
}
[data-tier="not-on-sale"] .badges { display: none; }

/* tier: shoe-open (offer is live) */
[data-tier="shoe-open"] .ticket-card__shoe { background: var(--sun); border-color: var(--ink); }

/* tier: shoes-gone (offer line struck, regular ticket at the same price) */
[data-tier="shoes-gone"] .ticket-card__shoe {
  background: transparent; border-color: rgba(20, 48, 28, .3); font-weight: 600; opacity: .7;
}
[data-tier="shoes-gone"] .ticket-card__notice { font-family: var(--font-display); font-weight: 800; }
[data-tier="shoes-gone"] .ticket-card__fine li:last-child { display: none; }

/* tier: sold-out (stamp, waitlist replaces the button) */
[data-tier="sold-out"] .ticket-card__stamp { display: block; }
[data-tier="sold-out"] #get-tickets,
[data-tier="sold-out"] .ticket-card__shoe,
[data-tier="sold-out"] .ticket-card__fine { display: none; }
[data-tier="sold-out"] .ticket-card__price { visibility: hidden; }
[data-tier="sold-out"] #waitlist { display: block; }  /* shows even if tickets.js leaves [hidden] on */
#tickets:not([data-tier="sold-out"]) #waitlist { display: none; }

/* ---------- Waitlist ---------- */
.waitlist { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink); }
.waitlist__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; line-height: 1; }
.waitlist__copy { margin-top: 6px; }
.waitlist__row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.waitlist__input {
  flex: 1 1 200px; min-height: 48px; padding: 10px 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.waitlist__input:focus-visible { outline: var(--focus); outline-color: var(--sky-deep); }
.waitlist__submit { flex: 0 0 auto; }
.waitlist__msg { margin-top: 8px; font-weight: 700; min-height: 1.5em; }
.waitlist__msg:empty { min-height: 0; }
.waitlist__fine { margin-top: 6px; font-size: .82rem; opacity: .8; }
.waitlist[data-state="closed"] .waitlist__row { display: none; }
.waitlist[data-state="done"] .waitlist__row,
.waitlist[data-state="done"] .waitlist__fine { display: none; }

/* ---------- Signup modal (dialog#signup[data-state]; shell = .drawer) ---------- */
.signup__form { display: grid; gap: 14px; }
.signup__copy { font-weight: 600; }
.signup__opt { font-family: var(--font-text); font-weight: 500; opacity: .75; }
.signup__input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600;
}
.signup__input:focus-visible { outline: var(--focus); outline-color: var(--sky-deep); outline-offset: 2px; }
.signup__consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .8rem; line-height: 1.45; }
.signup__consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--deep); }
.signup__consent a { color: inherit; }
.signup__submit { min-height: 54px; font-size: 1.1rem; }
.signup__msg { font-weight: 700; }
.signup__msg:empty { display: none; }
.signup__fine { font-size: .82rem; opacity: .8; }
.signup__done { display: none; gap: 10px; }
.signup__done-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2.4rem; line-height: .9; letter-spacing: -.03em; }
.signup[data-state="sending"] .signup__submit { opacity: .7; cursor: progress; }
.signup[data-state="done"] .signup__form { display: none; }
.signup[data-state="done"] .signup__done { display: grid; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 12px; }
.partners__x { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; display: none; }
.partner {
  display: grid; grid-template-columns: 56px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 2px solid var(--cream);
}
.partner:hover { background: var(--cream); color: var(--ink); }
.partner__avatar { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--cream); background: var(--cream); object-fit: cover; }
.partner__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.partner__handle { font-size: .88rem; font-weight: 600; opacity: .9; }
.powered {
  margin-top: 30px; padding-top: 14px; border-top: var(--rule); max-width: 760px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 4.5vw, 1.4rem);
}
.powered strong { font-weight: 900; }
/* Wally, Oct 7: "Powered by Altra Running" always reads on one line, never wrapped. */
.powered, .site-footer__powered, .altra-credit { white-space: nowrap; }
/* Wally, Oct 7: the event title is always framed as a lockup. "Everybody Move" in the title font, with
   "Powered by Altra Running" directly under it as a small subscript on one line. */
.lockup-sub {
  display: block; margin-top: .45em; font-family: var(--font-text); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: clamp(.74rem, 2.5vw, 1rem); line-height: 1.2; white-space: nowrap;
}
.lockup-sub--xs { margin-top: 2px; font-size: .56rem; letter-spacing: .14em; opacity: .9; }
/* The title's rule moves under the subscript so the two read as one unit. */
.stack__title:has(+ .lockup-sub), .site-footer__title:has(+ .lockup-sub) { border-bottom: 0; padding-bottom: 0; }
.stack__title + .lockup-sub, .site-footer__title + .lockup-sub { padding-bottom: .7em; border-bottom: var(--rule); }
.site-header__mark { display: inline-flex; flex-direction: column; line-height: 1; }
/* Optical left edge (Wally, Oct 7: all copy starts at the same point, measured to the ink). Every glyph carries a
   left side-bearing: Archivo stems (E M R B F D P) about .075em, rounds (S G 8) about .044em, T .024em; Hanken stems
   .075em, its P .067em. Left alone, the hero title started 6.7px right of the line above it.
   --ol = the bearing of the line's first letter (default: a stem). Ruled elements pull their text with text-indent
   (each block span / <br> line gets it, the rule stays put); borderless blocks shift whole, so soft-wrapped lines
   move too. Measured after: every line's first ink within 0.3px of the column edge at 390 and 1280. */
.site-header__mark, .stack__title, .stack__line, .stack__heading, .ticket-card__name, .powered,
.site-footer__title, .site-footer__h, .stack__billing,
.stack__title > span, .stack__heading > span, .stack__line > span, .site-footer__title > span {
  text-indent: calc(-1 * var(--ol, .075em)) each-line;
}
.stack__billing { --ol: 0em; }
.stack__heading > span, .stack__line > span, .site-footer__title > span { display: block; }
.day-list__title, .day-list__item p, .facts dt { margin-left: calc(-1 * var(--ol, .075em)); }
.site-footer__list { margin-left: -.06em; }   /* links open with @ or a lowercase stem: .054-.065em */
.lockup-sub { --ol: .067em; text-indent: calc(-1 * var(--ol)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq__item { background: var(--cream); color: var(--ink); border-radius: var(--radius-sm); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; line-height: 1.25;
  border-radius: var(--radius-sm);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-52%);
  font-size: 1.6rem; font-weight: 700; line-height: 1; transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq__item p { padding: 0 18px 18px; max-width: 62ch; }
.soon { font-weight: 700; text-decoration: underline dotted; text-underline-offset: .2em; }
.soon::after { content: " (coming soon)"; font-weight: 500; text-decoration: none; display: inline-block; margin-left: .2em; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--cream); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 11vw, 4rem); line-height: .9; letter-spacing: -.03em; padding: .05em 0 .12em; border-bottom: var(--rule); }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer__h { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; margin-bottom: 8px; color: var(--sun); }
.site-footer__list { display: grid; gap: 6px; font-weight: 600; }
.site-footer__powered { font-family: var(--font-display); font-weight: 700; opacity: .85; }

/* ---------- Drawer (contract: dialog#ticket-drawer[data-state]) ---------- */
.drawer {
  padding: 0; border: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  max-height: 92dvh; border-radius: 20px 20px 0 0;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(20, 48, 28, .35);
}
.drawer[open] { animation: em-sheet-up .28s var(--ease); }
.drawer::backdrop { background: rgba(20, 48, 28, .55); }
@keyframes em-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__inner { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.drawer__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; }
.drawer__head form { margin: 0; }
.drawer__close {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.drawer__close:hover { background: var(--ink); color: var(--cream); }
.drawer__field { display: grid; gap: 6px; }
.drawer__label, .size-picker__label { font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px;
  padding: 10px 40px 10px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--ink); background-color: #fff; color: var(--ink); font-weight: 600;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.select:disabled { opacity: .5; cursor: not-allowed; }
.select:focus-visible { outline: var(--focus); outline-color: var(--sky-deep); outline-offset: 2px; }
.drawer__summary { font-weight: 600; }
.drawer__summary:empty { display: none; }
.drawer__summary strong { font-family: var(--font-display); font-weight: 800; }
.drawer__adjusted {
  display: none; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--orange); color: var(--ink); font-family: var(--font-display); font-weight: 800;
}
.drawer__status { display: none; font-weight: 700; align-items: center; gap: 10px; }
.drawer__status::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 3px solid rgba(20, 48, 28, .25); border-top-color: var(--ink); animation: em-spin .8s linear infinite;
}
@keyframes em-spin { to { transform: rotate(360deg); } }
.drawer__actions { display: flex; gap: 10px; }
.drawer__actions #checkout { flex: 1; min-height: 54px; font-size: 1.1rem; }
#drawer-back { display: none; }

/* drawer states */
.drawer[data-state="checking"] .drawer__status--checking { display: flex; }
.drawer[data-state="checking"] .drawer__field,
.drawer[data-state="checking"] .size-pickers,
.drawer[data-state="checking"] .drawer__summary { opacity: .4; pointer-events: none; }
.drawer[data-state="checking"] #checkout { opacity: .55; pointer-events: none; }

.drawer[data-state="confirming"] #checkout { opacity: .7; pointer-events: none; cursor: progress; }
.drawer[data-state="confirming"] #checkout::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid rgba(250, 239, 209, .35); border-top-color: var(--cream); animation: em-spin .8s linear infinite;
}
.drawer[data-state="confirming"] .drawer__field,
.drawer[data-state="confirming"] .size-pickers { pointer-events: none; opacity: .6; }

.drawer[data-state="adjusted"] .drawer__adjusted { display: block; }
.drawer[data-state="adjusted"] #drawer-back { display: inline-flex; }
.drawer[data-state="adjusted"] .size-pickers { display: none; }

.drawer[data-state="redirecting"] .drawer__status--redirecting { display: flex; }
.drawer[data-state="redirecting"] .drawer__field,
.drawer[data-state="redirecting"] .size-pickers,
.drawer[data-state="redirecting"] .drawer__actions { display: none; }

/* ---------- Size picker (one per pair; rendered by tickets.js) ---------- */
.size-pickers { display: grid; gap: 12px; }
.size-pickers:empty { display: none; }
.size-picker {
  margin: 0; padding: 12px 14px 14px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  display: grid; gap: 10px; min-width: 0;
}
.size-picker__legend { padding: 0 6px; margin-left: -6px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg__opt { position: relative; display: block; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px;
  font-family: var(--font-display); font-weight: 800; transition: background-color .15s, color .15s;
}
.seg__opt + .seg__opt span { border-left: 2px solid var(--ink); }
.seg__opt input:checked + span { background: var(--deep); color: var(--cream); }
.seg__opt input:focus-visible + span { outline: var(--focus); outline-color: var(--sky-deep); outline-offset: -5px; border-radius: 999px; }
.seg__opt:hover input:not(:checked) + span { background: rgba(20, 48, 28, .08); }
.size-picker__size { display: grid; gap: 6px; }
.size-picker[data-invalid] { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .site-nav li:not(:last-child) { display: list-item; }
  .partners__x { display: list-item; }
  .ticket-card { padding: 30px 30px 24px; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .drawer { margin: auto; width: min(520px, calc(100% - 32px)); border-radius: 20px; max-height: 88dvh; }
  .drawer[open] { animation-name: em-pop; }
  @keyframes em-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .drawer__inner { padding: 24px; }
}
@media (min-width: 960px) {
  .hero { padding: 36px 0 24px; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .stack__billing { font-size: 1.35rem; }
  .stack__title { font-size: clamp(4.4rem, 6.75vw, 6.6rem); }
  .stack__line { font-size: 1.3rem; }
  .stack__line--lg { font-size: 1.85rem; }
  .stack__heading { font-size: clamp(4rem, 6.2vw, 5.75rem); }
  .hero__art { margin: 0; }
  .section { padding: 96px 0; }
  .when-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .route-art { position: sticky; top: 88px; }
  .section--tickets .wrap { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 56px; align-items: start; }
  .section--tickets .stack--section { position: sticky; top: 88px; }
  .site-footer__grid { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-tier="loading"] .ticket-card__count { animation: none; }
}
