:root {
  --stage: #f2f0ec;
  --stage-2: #e9e5df;
  --stage-3: #e3ded6;
  --ink: #16333c;
  --body: #303338;
  --muted: #5f636a;
  --steel: #2e5866;
  --paper: #f7f5f2;
  --line: rgba(20, 22, 26, .12);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--ui); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.preview-banner { position:relative; z-index:20; display:flex; align-items:center; justify-content:center; gap:1rem 1.5rem; padding:6.25rem 1.2rem .8rem; background:#f2ead3; color:#4d401f; font-size:.78rem; }
.preview-banner strong { letter-spacing:.08em; text-transform:uppercase; }
.preview-banner a { color:var(--steel); font-weight:600; text-underline-offset:.2rem; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; background: var(--steel); color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.tickets-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 980px; }
.label { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; color: var(--steel); font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.eyebrow::before { width: 2.4rem; height: 1px; background: currentColor; content: ''; opacity: .6; }
.eyebrow--light { color: rgba(242, 240, 236, .82); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.35rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s var(--ease), background .2s var(--ease); }
.button--solid { background: var(--steel); color: var(--stage); }
.button--solid:hover { background: var(--ink); transform: translateY(-1px); }
.button--wide { width: 100%; margin-top: 1rem; }
.button:disabled { cursor: not-allowed; opacity: .58; transform: none; }

.tickets-site .nav__link[aria-current='page']::after { transform: scaleX(1); }

.tickets-hero { position: relative; display: grid; min-height: 58vh; align-items: end; overflow: hidden; padding: 10rem 0 clamp(4rem, 9vw, 8rem); background: radial-gradient(circle at 75% 20%, rgba(92, 137, 148, .34), transparent 35%), linear-gradient(145deg, #10272e, var(--ink)); color: var(--stage); }
.tickets-hero::after { position: absolute; right: -7vw; bottom: -23vw; width: 56vw; height: 56vw; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; content: ''; }
.tickets-hero h1 { max-width: 10ch; margin: 1rem 0 1.4rem; font-family: var(--display); font-size: clamp(3.4rem, 9vw, 8.5rem); font-weight: 300; letter-spacing: -.045em; line-height: .83; }
.tickets-hero h1 em { color: #a9bec4; font-weight: 300; }
.tickets-hero p { max-width: 48ch; margin: 0; color: rgba(242, 240, 236, .75); font-size: clamp(1rem, 2vw, 1.2rem); }
.tickets-hero--short { min-height: 70vh; align-items: center; }
.tickets-hero--short h1 { max-width: 13ch; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .98; }
.tickets-hero--short .button { margin-top: 1.5rem; background: var(--stage); color: var(--ink); }

.tickets-list { padding: clamp(4rem, 9vw, 8rem) 0; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.event-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.event-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); text-decoration: none; }
.event-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.03); transition: transform .8s var(--ease), filter .8s var(--ease); }
.event-card:hover .event-card__image img { transform: scale(1.025); filter: saturate(.95); }
.event-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255, 255, 255, .16); font-family: var(--display); font-size: 5rem; }
.event-card__body { padding: clamp(1.4rem, 3vw, 2.25rem); }
.event-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .78rem; }
.event-card h2 { margin: 1.1rem 0 .45rem; font-family: var(--display); font-size: clamp(2rem, 3.7vw, 3.25rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.02; }
.event-card h2 a { text-decoration: none; }
.event-card__venue { color: var(--steel); font-size: .88rem; font-weight: 500; }
.event-card__body > p:not(.event-card__venue) { max-width: 55ch; color: var(--body); }
.event-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.text-link { color: var(--steel); text-underline-offset: .3rem; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: .32rem .7rem; font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.status--live { background: #dce8df; color: #23543b; }
.status--warn { background: #eee4c9; color: #755411; }
.status--danger { background: #edd9d6; color: #793a32; }
.status--quiet { background: var(--stage-2); color: var(--muted); }
.empty-state { max-width: 760px; margin: 2rem auto; padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); text-align: center; }
.empty-state .eyebrow { justify-content: center; }
.empty-state h2 { margin: 1rem 0; font-family: var(--display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; line-height: 1; }
.empty-state p { margin: 0 auto 1.7rem; color: var(--body); }

.event-hero { position: relative; display: grid; min-height: min(78vh, 820px); align-items: end; overflow: hidden; background: var(--ink); color: white; }
.event-hero__image, .event-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.event-hero__image { object-fit: cover; filter: saturate(.62) contrast(1.08); }
.event-hero__shade { background: linear-gradient(to top, rgba(8, 22, 27, .96), rgba(8, 22, 27, .16) 72%), linear-gradient(90deg, rgba(8, 22, 27, .55), transparent 68%); }
.event-hero__content { position: relative; z-index: 2; padding-top: 10rem; padding-bottom: clamp(3rem, 7vw, 6rem); }
.back-link { display: block; width: fit-content; margin-bottom: clamp(2.5rem, 7vw, 5.5rem); color: rgba(255, 255, 255, .72); font-size: .8rem; text-underline-offset: .3rem; }
.event-hero h1 { max-width: 12ch; margin: .8rem 0 1.4rem; font-family: var(--display); font-size: clamp(3.2rem, 8.3vw, 8rem); font-weight: 300; letter-spacing: -.04em; line-height: .9; }
.event-hero p { max-width: 58ch; margin: 0; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, 2vw, 1.25rem); }
.event-intro { padding: clamp(4rem, 9vw, 8rem) 0; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); align-items: start; gap: clamp(3rem, 8vw, 8rem); }
.event-copy { min-width: 0; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-bottom: clamp(3rem, 7vw, 6rem); padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.event-facts strong, .event-facts small { display: block; }
.event-facts strong { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 400; line-height: 1.25; }
.event-facts small { margin-top: .45rem; color: var(--muted); }
.prose { max-width: 68ch; color: var(--body); font-family: var(--display); font-size: clamp(1.22rem, 2.2vw, 1.6rem); line-height: 1.55; }
.detail-block { max-width: 68ch; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--body); }
.event-poster { max-width: 650px; margin: 0 0 clamp(3rem, 7vw, 5rem); }
.event-poster img { width: 100%; max-height: 720px; object-fit: contain; object-position: left center; }
.purchase-card { position: sticky; top: 94px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 28px 70px rgba(22, 51, 60, .09); }
.purchase-card__heading { padding: 1.7rem 1.7rem 1.3rem; border-bottom: 1px solid var(--line); }
.purchase-card h2 { margin-top: .8rem; font-family: var(--display); font-size: 2.5rem; font-weight: 300; line-height: 1; }
.ticket-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin: 0 1.7rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.ticket-row strong, .ticket-row small { display: block; }
.ticket-row strong { font-size: .92rem; }
.ticket-row small { max-width: 27ch; margin-top: .25rem; color: var(--muted); }
.ticket-row > span { white-space: nowrap; font-family: var(--display); font-size: 1.2rem; }
.ticket-row--select { align-items:center; cursor:pointer; }
.ticket-row--select input { width:64px; min-height:42px; border:1px solid var(--line); background:#fff; color:var(--ink); padding:.45rem; text-align:center; }
.ticket-row--unavailable { cursor:default; opacity:.68; }
.ticket-row > span small { max-width:none; text-align:right; font-family:var(--sans); font-size:.65rem; text-transform:uppercase; letter-spacing:.06em; }
.purchase-card .button, .purchase-card > .purchase-note { width: calc(100% - 3.4rem); margin-inline: 1.7rem; }
.purchase-note { color: var(--muted); font-size: .77rem; line-height: 1.5; }
.lifecycle-message { padding:1rem; border-left:3px solid var(--brass); background:rgba(183,142,64,.09); color:var(--ink); }
.checkout-quantity-note.is-error { color:#963b34; font-weight:600; }
.secure-note { margin: 1.4rem 1.7rem 1.7rem; color: var(--muted); font-size: .72rem; text-align: center; }
.checkout-form { padding-bottom:.2rem; }
.checkout-customer { display:grid; gap:.8rem; padding:1.25rem 1.7rem; }
.checkout-customer label { display:grid; gap:.35rem; }
.checkout-customer label > span { color:var(--muted); font-size:.67rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.checkout-customer input { width:100%; border:1px solid var(--line); background:#fff; color:var(--ink); padding:.72rem .8rem; }
.checkout-terms { display:flex; align-items:flex-start; gap:.65rem; margin:0 1.7rem 1.2rem; color:var(--muted); font-size:.72rem; }
.checkout-terms input { flex:0 0 auto; width:17px; height:17px; margin-top:.1rem; accent-color:var(--steel); }
.checkout-terms a { color:var(--steel); text-underline-offset:.2rem; }
.checkout-total { display:flex; align-items:center; justify-content:space-between; margin:0 1.7rem 1rem; padding-top:1rem; border-top:1px solid var(--line); }
.checkout-total span { color:var(--muted); font-size:.69rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.checkout-total strong { font-family:var(--display); font-size:1.7rem; font-weight:400; }
.checkout-form > .purchase-note { margin:1rem 1.7rem; text-align:center; }
.checkout-error,.checkout-cancelled { margin:1rem 1.7rem 0; padding:.8rem; border-left:3px solid #8a382f; background:#f1dfdc; color:#6d2b24; font-size:.78rem; }
.checkout-cancelled { border-color:#9b7727; background:#f2ead3; color:#5a471d; }
.order-result { min-height:65vh; padding:clamp(8rem,12vw,10rem) 0 clamp(5rem,12vw,10rem); }
.order-result h1 { max-width:12ch; margin:.8rem 0 1.4rem; font-family:var(--display); font-size:clamp(3.2rem,8vw,6.8rem); font-weight:300; line-height:.92; }
.order-result > div > p { max-width:62ch; color:var(--body); }
.order-result dl,.ticket-pass dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; max-width:760px; margin:2.5rem 0; background:var(--line); border:1px solid var(--line); }
.order-result dl div,.ticket-pass dl div { background:var(--paper); padding:1rem; }
.order-result dt,.ticket-pass dt { color:var(--muted); font-size:.65rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.order-result dd,.ticket-pass dd { margin:.25rem 0 0; font-family:var(--display); font-size:1.2rem; }
.order-help { margin-top:2rem; font-size:.76rem; }
.order-tickets { max-width:760px; margin:2.5rem 0; }
.order-tickets h2 { margin:0 0 1rem; font-family:var(--display); font-size:2rem; font-weight:400; }
.order-tickets ul { display:grid; gap:.65rem; margin:0; padding:0; list-style:none; }
.order-tickets li { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; border:1px solid var(--line); background:var(--paper); }
.order-tickets strong,.order-tickets span { display:block; }
.order-tickets span { margin-top:.2rem; color:var(--muted); font-size:.72rem; }
.order-ticket-actions { display:flex; align-items:center; justify-content:flex-end; gap:.75rem; font-size:.76rem; }
.wallet-button { display:inline-block; padding:.7rem 1rem; border-radius:.4rem; background:#000; color:#fff; font-size:.76rem; font-weight:600; line-height:1; text-decoration:none; white-space:nowrap; }
.wallet-button:hover { background:#282828; }
.wallet-button--ticket { display:block; width:fit-content; margin:1rem auto 0; }
.ticket-pass { min-height:100vh; padding:clamp(7rem,10vw,9rem) 1rem clamp(3rem,7vw,5rem); background:var(--ink); }
.ticket-pass__card { width:min(620px,100%); margin:auto; padding:clamp(1.5rem,6vw,3.5rem); background:var(--paper); box-shadow:0 30px 80px rgba(0,0,0,.25); }
.ticket-pass h1 { margin:.7rem 0 1.5rem; font-family:var(--display); font-size:clamp(2.5rem,8vw,4.8rem); font-weight:300; line-height:.95; }
.ticket-pass__status { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.ticket-pass__status > strong { font-size:.85rem; }
.ticket-pass__qr { width:min(360px,90%); margin:2rem auto 1rem; padding:1rem; background:#fff; }
.ticket-pass__qr svg { display:block; width:100%; height:auto; }
.ticket-pass__reference { margin:0; color:var(--steel); font-weight:600; letter-spacing:.15em; text-align:center; }
.ticket-pass__message { margin:1.5rem 0 .5rem; text-align:center; }
.ticket-pass__note { color:var(--muted); font-size:.74rem; text-align:center; }
.event-section { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--stage-2); }
.event-section h2 { max-width: 12ch; margin: .8rem 0 2rem; font-family: var(--display); font-size: clamp(2.7rem, 6vw, 5.3rem); font-weight: 300; line-height: .96; }
.event-section--ink { background: var(--ink); color: var(--stage); }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #071419; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.event-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.event-gallery figure { margin: 0; }
.event-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-gallery figcaption { margin-top: .5rem; color: var(--muted); font-size: .75rem; }

@media (max-width: 820px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-layout { grid-template-columns: 1fr; }
  .purchase-card { position: static; }
}

@media (max-width: 560px) {
  .preview-banner { align-items:flex-start; flex-direction:column; }
  .event-facts, .event-gallery { grid-template-columns: 1fr; }
  .ticket-row--select { display:grid; grid-template-columns:1fr auto; }
  .ticket-row--select input { grid-column:1/-1; width:100%; }
  .order-result dl,.ticket-pass dl { grid-template-columns:1fr; }
  .order-tickets li,.order-ticket-actions { align-items:flex-start; flex-direction:column; }
  .ticket-pass__status { align-items:flex-start; flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
