:root {
  font-family: "Geist", "Inter", system-ui, sans-serif;
  color: #260e24;
  background: #f7f3ec;
  line-height: 1.55;
  --ink: #260e24;
  --paper: #f7f3ec;
  --orange: #ff681e;
  --surface: #fffaf4;
  --line: #b5a7ac;
  --gutter: clamp(1.2rem, 4.5vw, 5rem);
}

* { box-sizing: border-box; }
body { margin: 0; }
main, header { width: min(100% - 2 * var(--gutter), 88rem); margin-inline: auto; }
.site-header, nav, .site-footer, .credit { display: flex; align-items: center; gap: clamp(.9rem, 2.3vw, 2rem); flex-wrap: wrap; }
.site-header, .site-footer { justify-content: space-between; }
.site-header { min-height: 5rem; padding-block: .8rem; }
.brand { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 900; letter-spacing: -.075em; line-height: 1; }
nav a, .brand { text-decoration: none; }
nav a { font-size: .93rem; font-weight: 720; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #a63900; outline-offset: 4px; }
.skip { position: absolute; top: -5rem; padding: .65rem; background: white; }
.skip:focus { top: .5rem; z-index: 2; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  align-items: stretch;
  min-height: clamp(20rem, 31vw, 29rem);
  margin-top: .5rem;
}
.hero-copy { align-self: center; padding: 1.3rem 1rem 2rem 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.055em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.6rem); font-weight: 850; }
.hero h1 { font-size: clamp(3.1rem, 8.45vw, 8.4rem); line-height: .88; letter-spacing: -.085em; margin-bottom: .2em; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 850; }
h3 { font-size: 1.28rem; }
.hero p { margin: .65rem 0; font-weight: 630; }
.hero .button { margin-top: .4rem; }
.ticket-stage {
  display: grid;
  place-items: center;
  padding: 2.5rem 6% 2.5rem 19%;
  background: var(--ink);
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  margin-right: calc(-1 * var(--gutter));
}
.ticket {
  position: relative;
  width: min(100%, 33rem);
  aspect-ratio: 2.15;
  transform: skew(-6deg);
  border-radius: 1rem 0 0 1rem;
  background: linear-gradient(145deg, #ff892f 0%, var(--orange) 65%, #ff781e);
  mask-image: radial-gradient(circle at right, transparent .58rem, black .62rem);
  mask-size: 100% 18%;
}
.ticket span {
  position: absolute;
  inset: 14% 11% 14% 8%;
  border: 2px solid var(--ink);
  border-radius: .18rem;
  background: linear-gradient(var(--ink), var(--ink)) center 33% / 89% 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) center 69% / 89% 2px no-repeat;
}

#faq { margin-block: clamp(2.5rem, 5vw, 5rem); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { padding: 1rem 2.8rem 1rem .3rem; cursor: pointer; font-weight: 750; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .6rem; top: .45rem; font-size: 1.55rem; }
details[open] summary::after { content: "−"; }
details p { max-width: 60ch; margin: 0 0 1.2rem .3rem; }

#organizers { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(1rem, 4vw, 4rem); margin-block: 3rem 5rem; }
#organizers p { max-width: 27ch; }
.editor { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; }
form, .card { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; min-width: 0; }
form { max-width: 42rem; margin-block: .8rem; }
.editor form { margin: 0; }
label { display: block; font-weight: 690; margin: .65rem 0 .25rem; }
input, select, textarea {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: .55rem .65rem;
  background: #fffdf9;
  border: 1px solid #92838b;
  border-radius: .32rem;
}
input[type="checkbox"] { width: auto; margin-right: .4rem; }
input[type="range"] { accent-color: #ad3d00; min-height: 2rem; }
input[type="file"] { max-width: 100%; }
textarea { min-height: 5rem; resize: vertical; }
button, .button {
  display: inline-block;
  padding: .63rem 1rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid var(--ink);
  border-radius: .3rem;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
}
button:hover, .button:hover { background: #ff874c; text-decoration: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
#crop {
  position: relative;
  display: grid;
  place-items: center;
  max-height: 32rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 72%, var(--orange) 72%);
  color: white;
}
#crop img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
#error:empty, [hidden] { display: none !important; }
.card { padding: 0; overflow: hidden; }
.wide { aspect-ratio: 1.91; } .square { aspect-ratio: 1; } .portrait { aspect-ratio: .8; } .story { aspect-ratio: .5625; }
.cardtext { padding: 1rem; }
.cardtext h3, .cardtext p { margin: 0; overflow-wrap: anywhere; }

.site-footer { padding: 1.5rem var(--gutter); background: var(--ink); color: var(--paper); font-size: .85rem; }
.credit img { width: 2.75rem; padding: .25rem; background: var(--paper); border-radius: .3rem; }
.workflow { min-height: 65vh; padding-block: clamp(2rem, 5vw, 5rem); }
.workflow h1 { max-width: 19ch; }
.workflow article { margin-block: 1.5rem; }
.workflow img { max-width: 100%; }
.event-poster { display: block; width: min(100%, 42rem); height: auto; margin-bottom: 1rem; border-radius: .65rem; }
table { border-collapse: collapse; margin: 1rem 0; width: min(100%, 50rem); }
th, td { text-align: left; padding: .65rem; border-bottom: 1px solid var(--line); }

@media (max-width: 850px) {
  #organizers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5.7rem); }
  .ticket-stage { margin-inline: 0; clip-path: none; padding: 1.6rem 2rem; }
  .ticket { max-width: 18rem; }
  .editor { grid-template-columns: 1fr; }
}

/* Shared customer and organizer surfaces. */
:root {
  color-scheme: dark;
  --ink: #eeedf7;
  --paper: #111017;
  --surface: #1b1924;
  --line: #403b51;
  --orange: #d5fc58;
  --muted: #bdb7cf;
  background: var(--paper);
  color: var(--ink);
}
body { background: radial-gradient(ellipse at 15% 2%, #29203f, transparent 38rem); }
.site-header {
  min-height: 0;
  margin-block: 1.25rem 2rem;
  padding: .85rem 1.15rem;
  background: #1b1924;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}
.brand { color: var(--orange); letter-spacing: -.075em; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.site-header nav { gap: clamp(.7rem, 2.4vw, 1.9rem); }
.site-header nav a { padding-block: .45rem; }
.site-header .account-link { padding: .45rem .8rem; border: 1px solid #5e5572; border-radius: 2rem; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip { color: #15121c; }
.hero {
  position: relative;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 1.2rem 0 0;
  padding: clamp(1.15rem, 3vw, 3rem);
  border: 1px solid #403654;
  border-radius: clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(132deg, #211b31 0%, #181522 65%);
}
.hero-copy { padding: 1.3rem 0; }
.hero h1 { font-size: clamp(3.05rem, 7.4vw, 8.1rem); letter-spacing: -.075em; line-height: .91; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { color: var(--muted); margin-block: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; }
.hero-actions .button { margin: 0; }
.quiet-link { font-weight: 700; }
.ticket-stage {
  position: relative;
  min-height: 22rem;
  align-self: stretch;
  margin: 0;
  padding: 1.5rem;
  border-radius: 1.5rem;
  clip-path: none;
  background: #322147 url('/concert.jpg') center / cover no-repeat;
  isolation: isolate;
}
.ticket-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, transparent 30%, #100b1abf);
  border-radius: inherit;
  z-index: -1;
}
.ticket {
  width: clamp(7.5rem, 13vw, 11rem);
  align-self: end;
  justify-self: end;
  transform: rotate(-12deg);
  border-radius: .55rem 0 0 .55rem;
  background: var(--orange);
  color: #211b31;
  box-shadow: 0 .8rem 2rem #130b1d;
}
.ticket span { border-color: #211b31; background: repeating-linear-gradient(90deg, #211b31 0 2px, transparent 2px 5px) center / 75% 48% no-repeat; }

#faq, #organizers { margin-block: clamp(3rem, 7vw, 7rem); }
.faq, #organizers { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr); gap: clamp(1rem, 4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.6rem); }
.faq-items { display: grid; gap: .55rem; }
details, details:first-of-type { border: 1px solid var(--line); background: var(--surface); border-radius: .8rem; }
summary { padding-left: 1rem; }
summary::after { color: var(--orange); right: .85rem; }
details p { margin-left: 1rem; padding-right: 1rem; color: var(--muted); }
form, .card { border-radius: 1rem; }
input, textarea, select { color: var(--ink); background: #121019; border-color: #544b68; border-radius: .55rem; }
input[type="range"] { accent-color: var(--orange); }
button, .button { color: #17121d; border: 1px solid transparent; border-radius: .65rem; }
button:hover, .button:hover { background: #e9ff9e; color: #17121d; }
button.secondary, .quantity-stepper button { color: var(--ink); background: #2a2537; border-color: var(--line); }
button.secondary:hover, .quantity-stepper button:hover { background: #3b344e; }
.drop-zone { padding: .75rem; margin-block: .8rem; border: 1px dashed #8e82a9; border-radius: .7rem; }
.drop-zone label { margin-top: 0; }
.drop-zone small { display: block; color: var(--muted); margin-top: .35rem; }
.drop-zone.is-dragging { border-color: var(--orange); background: #2a3130; }
#reset-preview { margin-top: .7rem; }
#crop { background: linear-gradient(135deg, #302148 64%, #4c3c79 64% 83%, var(--orange) 83%); }
.site-footer { background: #181520; color: var(--muted); border-top: 1px solid var(--line); }
.credit img { background: #eee9f5; }

.workflow { padding-block: clamp(1.2rem, 4vw, 3rem); }
.workflow h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.workflow-body { min-width: 0; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); }
.workspace-nav { align-self: start; display: grid; gap: .25rem; border: 1px solid var(--line); background: var(--surface); padding: .6rem; border-radius: 1rem; }
.workspace-nav a { display: block; padding: .65rem .75rem; border-radius: .5rem; }
.workspace-nav a:hover, .workspace-nav [aria-current="page"] { background: #332b45; color: var(--orange); }
.workflow-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.panel { background: var(--surface); padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: 1rem; min-width: 0; }
.panel h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.panel > form { margin: 0; padding: 0; border: 0; }
.panel > form + form { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.event-list, .saved-events { list-style: none; margin: 0; padding: 0; }
.event-list li, .saved-events li { padding: .7rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.event-list a, .saved-events a { font-weight: 750; }
.quantity-stepper { display: grid; grid-template-columns: auto minmax(0, 5rem) auto; align-items: stretch; gap: .4rem; width: max-content; max-width: 100%; }
.quantity-stepper input { text-align: center; }
.quantity-stepper button { min-width: 2.7rem; padding: .35rem .65rem; }
.payment-layout { max-width: 40rem; }
.workflow [role="status"] { color: var(--muted); }

@media (max-width: 860px) {
  .faq, #organizers, .workflow-columns { grid-template-columns: 1fr; }
  .workflow-layout { grid-template-columns: minmax(0, 1fr); }
  .workspace-nav { display: flex; }
}
@media (max-width: 640px) {
  .site-header { gap: .6rem; margin-bottom: 1rem; }
  .hero { grid-template-columns: 1fr; gap: .5rem; }
  .hero-copy { padding: .65rem .15rem; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); }
  .ticket-stage { min-height: 14rem; margin: 0; }
  .editor { grid-template-columns: 1fr; }
}

.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .36rem; max-width: 100%; }
.wordmark-line { display: inline-flex; align-items: center; gap: .22em; }
.wordmark-name { font-family: Arial, sans-serif; font-style: italic; font-weight: 900; }
.wordmark-credit {
  font: italic 400 clamp(.53rem, 1.3vw, .66rem)/1.2 Arial, sans-serif;
  letter-spacing: .06em;
  color: var(--ink);
}
.wordmark-ticket { display: inline-flex; height: .68em; width: 1.19em; transform: rotate(-13deg); }
.wordmark-ticket i { display: block; background: currentColor; position: relative; }
.wordmark-ticket i:first-child {
  width: 67%;
  clip-path: polygon(0 0, 100% 0, 89% 16%, 100% 30%, 88% 47%, 100% 65%, 87% 81%, 100% 100%, 0 100%, 0 66%, 10% 50%, 0 34%);
}
.wordmark-ticket i:first-child::after {
  content: ""; position: absolute; inset: 26% 30% 26% 22%;
  background: repeating-linear-gradient(90deg, #201829 0 1px, transparent 1px 3px);
}
.wordmark-ticket i:last-child {
  width: 34%;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 83% 50%, 100% 67%, 100% 100%, 0 100%, 13% 81%, 0 65%, 12% 47%, 0 30%, 11% 16%);
  transform: translate(.15em,-.04em) rotate(12deg);
  transition: transform .28s cubic-bezier(.2,.75,.3,1.3);
}
.wordmark:hover .wordmark-ticket i:last-child, .wordmark:focus-visible .wordmark-ticket i:last-child {
  transform: translate(.29em,-.18em) rotate(26deg);
}
.stage-fog, .entrance-fog {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  mix-blend-mode: screen;
}
.stage-fog::before, .stage-fog::after, .entrance-fog::before, .entrance-fog::after {
  content: ""; position: absolute; inset: -25%;
  background: radial-gradient(ellipse at 27% 51%, #9971ff70, transparent 24%),
              radial-gradient(ellipse at 62% 58%, #c7a7ff59, transparent 24%),
              radial-gradient(ellipse at 77% 40%, #c6ff623c, transparent 23%);
  filter: blur(24px);
  animation: drift-smoke 12s ease-in-out infinite alternate;
}
.stage-fog::after, .entrance-fog::after { animation-direction: alternate-reverse; animation-duration: 17s; opacity: .65; }
@keyframes drift-smoke {
  from { transform: translate(-17%, 7%) scale(.94) rotate(-8deg); }
  to { transform: translate(18%, -9%) scale(1.24) rotate(12deg); }
}

#crowd-entrance {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: 0; border: 0; overflow: hidden; background: #100c17;
}
#crowd-entrance::backdrop { background: #100c17; }
.entrance-photo, .entrance-dancer, .entrance-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.entrance-photo {
  background: #261638 url('/concert.jpg') center 52% / cover no-repeat;
  transform-origin: 47% 49%;
  animation: move-through-crowd 2.8s cubic-bezier(.26,.46,.49,1) both;
}
.entrance-fog { z-index: 2; }
.entrance-dancer { z-index: 1; }
.entrance-shade {
  pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 35%, #100b1a94 100%);
}
#skip-entrance {
  position: absolute; z-index: 4;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
}
@keyframes move-through-crowd {
  0% { transform: scale(1.02) translate(0,0); }
  32% { transform: scale(1.26) translate(2%,-1%); }
  68% { transform: scale(1.55) translate(-2%,2%); }
  100% { transform: scale(1.92) translate(1%,-2%); }
}
@media (prefers-reduced-motion: reduce) {
  .stage-fog::before, .stage-fog::after, .entrance-fog::before, .entrance-fog::after,
  .entrance-photo { animation: none; }
  .wordmark-ticket i:last-child { transition: none; }
}

.event-directory { padding-block: clamp(2.4rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.event-filters {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: end;
  max-width: none; padding: 0; border: 0; margin-bottom: 1.5rem;
}
.event-filters label { flex: 1 1 10rem; max-width: 17rem; margin: 0; }
.event-filters select { width: 100%; margin: .3rem 0 0; }
.event-filters a { align-self: center; }
.event-grid, .wallet-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  list-style: none; padding: 0; gap: 1rem; margin: 0 0 1.5rem;
}
.event-card { display: block; height: 100%; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--surface); text-decoration: none; transition: transform .2s, border-color .2s; }
.event-card:hover, .event-card:focus-visible { text-decoration: none; border-color: var(--accent, #d3f75a); transform: translateY(-4px); }
.event-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.event-card-copy { padding: 1rem; }
.event-card-copy time { color: var(--muted); font-size: .88rem; }
.event-card-copy h3 { margin: .45rem 0; }
.event-card-copy p { margin: 0 0 1rem; }
.event-card-meta, .ticket-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.event-card-meta { justify-content: space-between; border-top: 1px solid var(--line); padding-top: .8rem; }
.event-card-meta span { color: var(--muted); }
.event-information { min-width: 0; }
.order-summary { position: sticky; top: 1rem; }
.wallet-grid .panel { margin: 0; }
.wallet-grid details { margin-top: 1rem; }
.admission-code { display: block; width: min(100%, 248px); height: auto; background: white; border-radius: .55rem; }
.status-badge { display: inline-block; margin: .5rem 0; padding: .15rem .55rem; border-radius: .35rem; background: #312645; color: #f4ebff; overflow-wrap: anywhere; }
.saved-events .status-badge { margin-inline: .5rem; }
.organizer-preview { margin-bottom: 1rem; }
.organizer-preview img { display: block; max-height: 16rem; object-fit: contain; margin-bottom: 1rem; }
.organizer-preview [data-preview="details"] { white-space: pre-line; overflow-wrap: anywhere; }
.ticket-confirmation { max-width: 40rem; animation: ticket-arrives .4s cubic-bezier(.18,.65,.3,1) both; }
@keyframes ticket-arrives { from { opacity: 0; transform: translateY(1rem) rotate(-2deg); } }
.check-in { max-width: 42rem; }
.scan-result { background: #1a1327; border: 1px solid #746188; padding: 1rem; border-radius: .6rem; font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 800; }
.check-in .scan-ok { color: #d3f75a; border-color: #d3f75a; }
.check-in .scan-error { color: #ffb6a7; border-color: #ffb6a7; }
.entrance-photo { animation-duration: 4.2s; }
.entrance-fog::before { animation-duration: 3.7s; opacity: .95; }
.entrance-fog::after { animation-duration: 5s; opacity: .85; }
@media (max-width: 720px) { .order-summary { position: static; } }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-group(event-artwork) { animation-duration: .34s; }
@media (prefers-reduced-motion: reduce) {
  .ticket-confirmation { animation: none; }
  .event-card { transition: none; }
  .event-card:hover, .event-card:focus-visible { transform: none; }
}
.organizer-preview img[hidden] { display: none; }
