/* The public event page as a promo page. Tokens, forms, tickets and tiles come from style.css. */
body.landing { --wide: 1120px; }

/* ---- hero: the cover photo, or the event's colour with its date as the picture ---- */
.lhero { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: var(--on-accent); min-height: min(86svh, 720px); display: grid; align-items: end; }
.lhero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .lhero .bg { animation: none; } }
.lhero.photo { color: #fff; }
/* enough darkness for white text over any photo, strongest where the words are */
/* ...and the darkness leans to the event's own colour, so the photo belongs to the page */
.lhero.photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(17 13 43 / 0.25) 0%, rgb(17 13 43 / 0.45) 40%, color-mix(in srgb, var(--accent) 38%, rgb(17 13 43)) 100%); opacity: 0.94; }
.lhero .numeral { position: absolute; z-index: -1; right: -0.06em; top: -0.16em; font: 800 clamp(260px, 62vw, 620px)/1 var(--display); letter-spacing: -0.06em; opacity: 0.13; user-select: none; }
.lhero .in { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 96px 20px 44px; display: grid; gap: 18px; justify-items: start; }
.lhero .eyebrow { margin: 0; font: 700 13px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.lhero h1 { margin: 0; font-size: clamp(34px, 9.4vw, 84px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; max-width: 16ch; }
.lhero .tagline { margin: 0; font-size: clamp(18px, 4.6vw, 24px); line-height: 1.35; max-width: 34ch; opacity: 0.95; }
.lhero .facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px 34px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .lhero .facts { grid-auto-flow: column; grid-auto-columns: max-content; grid-template-columns: none; } }
.lhero .facts li { display: grid; gap: 1px; padding-left: 14px; border-left: 3px solid currentColor; max-width: 30ch; }
.lhero .facts small { color: inherit; opacity: 0.8; font: 700 11px/1.4 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.lhero .facts b { font: 700 clamp(17px, 4.4vw, 20px)/1.25 var(--body); }
.lhero .facts span { font-size: 15px; opacity: 0.9; }
.lhero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lhero .acts .button { width: auto; padding-inline: 30px; min-height: 58px; display: grid; place-items: center; font-size: 18px;
  background: var(--paper); border-color: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgb(17 13 43 / 0.25); }
.lhero .ghost { width: auto; min-height: 58px; padding-inline: 22px; background: transparent; color: inherit; border-color: currentColor; }
.countdown { display: flex; flex-wrap: wrap; gap: 8px; }
.countdown span { display: grid; justify-items: center; min-width: 66px; padding: 9px 10px 7px; border-radius: 14px; font-size: 12px; letter-spacing: 0.04em;
  background: color-mix(in srgb, currentColor 14%, transparent); }
.countdown b { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.lhero.photo .countdown span { background: rgb(255 255 255 / 0.16); backdrop-filter: blur(6px); }

/* ---- ticker: the event named over and over, like a street poster ---- */
.ticker { display: flex; overflow: hidden; background: var(--ink); color: var(--paper); font: 700 15px/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; }
.ticker > div { display: flex; flex: none; gap: 0; padding: 15px 0; animation: ticker 60s linear infinite; }
.ticker span { white-space: nowrap; padding: 0 18px; }
.ticker span::after { content: "✦"; margin-left: 36px; color: var(--sun); }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker > div { animation: none; } }

/* ---- body: the story beside a ticket card that stays in view ---- */
.lbody { max-width: var(--wide); padding: 36px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lside .card { margin: 0; border-width: 1.5px; box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 16%, transparent); scroll-margin-top: 16px; }
.lside .buy h2 { font-size: 19px; }
@media (min-width: 940px) {
  .lbody { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; grid-template-areas: "a side" "b side"; align-items: start; padding-top: 56px; }
  .la { grid-area: a; } .lb { grid-area: b; }
  .lside { grid-area: side; position: sticky; top: 20px; }
}
.la, .lb { display: grid; gap: 40px; min-width: 0; }
.landing .block { margin: 0; gap: 14px; }
.landing .block h2 { font-size: clamp(20px, 5vw, 26px); letter-spacing: -0.03em; }
.landing .lead .rich > p:first-child { font-size: clamp(19px, 4.8vw, 23px); line-height: 1.45; }
.landing .rich { font-size: 18px; line-height: 1.6; }
.landing .alert { margin: 0; justify-self: start; }

/* photos: one big, the rest around it; each opens full-screen */
.mosaic { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic button { all: unset; cursor: zoom-in; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.mosaic button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.mosaic button:hover img { transform: scale(1.04); }
.mosaic button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic.n1 button:first-child { aspect-ratio: 16 / 9; }
.mosaic button:nth-child(n + 6) { display: none; }
@media (min-width: 620px) {
  .mosaic.n3, .mosaic.n4, .mosaic.n5 { grid-template-columns: 2fr 1fr 1fr; }
  .mosaic.n3 button:first-child, .mosaic.n4 button:first-child, .mosaic.n5 button:first-child { grid-column: 1; grid-row: span 2; aspect-ratio: auto; }
  .mosaic.n3 button:not(:first-child) { grid-column: 2 / -1; aspect-ratio: 16 / 7; }
}

/* programme: times down a line */
.prog { list-style: none; margin: 0; padding: 0; display: grid; }
.prog li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 0 0 20px 0; position: relative; }
.prog li::before { content: ""; position: absolute; left: 90px; top: 8px; bottom: -8px; border-left: 2px solid var(--line); }
.prog li:last-child::before { display: none; }
.prog b { font: 700 17px/1.5 var(--display); font-variant-numeric: tabular-nums; }
.prog span { padding-left: 32px; position: relative; font-size: 18px; }
.prog span::before { content: ""; position: absolute; left: -7px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); }

.landing .know li { font-size: 16px; padding: 9px 16px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.landing .map { height: 300px; }
.landing .host-card { padding: 22px; border-radius: 22px; }
.landing .host-card .avatar { width: 64px; height: 64px; font-size: 24px; }
.landing .who { grid-template-columns: 64px 1fr; gap: 14px; }

/* ---- the last word ---- */
.lfinal { background: var(--accent); color: var(--on-accent); text-align: center; padding: 64px 20px 72px; margin-top: 44px; display: grid; gap: 14px; justify-items: center; }
.lfinal h2 { margin: 0; font-size: clamp(28px, 7.6vw, 60px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; max-width: 18ch; }
.lfinal p { margin: 0; font-size: 18px; opacity: 0.92; }
.lfinal .button { width: auto; padding-inline: 34px; min-height: 58px; display: grid; place-items: center; font-size: 18px; background: var(--paper); border-color: var(--paper); color: var(--ink); margin-top: 8px; }
.lfoot { max-width: var(--wide); margin: 0 auto; padding: 26px 20px 110px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 14px; }
.lfoot a { color: var(--muted); } .lfoot span { display: flex; gap: 16px; }
@media (min-width: 700px) { .lfoot { padding-bottom: 40px; } }

/* ---- the bar that appears once the hero has scrolled away (wide screens) ---- */
.ltop { display: none; }
@media (min-width: 700px) {
  .ltop { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px; padding: 10px max(20px, calc((100vw - var(--wide)) / 2 + 20px));
    background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1.5px solid var(--line);
    transform: translateY(-110%); transition: transform 0.3s; }
  .ltop.on { transform: none; }
  .ltop b { font: 700 16px/1.2 var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
  .ltop .links { display: flex; gap: 18px; flex: 1; min-width: 0; overflow: hidden; }
  .ltop .links a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
  .ltop .links a:hover { color: var(--ink); }
  .ltop .price { font-weight: 700; white-space: nowrap; }
  .ltop .button { width: auto; min-height: 42px; padding: 7px 18px; flex: none; }
  .landing section[id], .landing div[id] { scroll-margin-top: 78px; }
  .lside { top: 78px !important; }
}
@media (prefers-reduced-motion: reduce) { .ltop { transition: none; } }

/* ---- sections arrive as they are scrolled to (only when scripts run) ---- */
/* Only a section the script has marked as "still below the screen" is held back, so nothing
   can stay hidden if the script, or the browser's scroll watching, does not run. */
.reveal { transition: opacity 0.6s, transform 0.6s; }
.reveal.wait { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.wait { opacity: 1; transform: none; transition: none; } }

.video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #000; }
.landing .faq details { border-bottom: 1.5px solid var(--line); padding: 16px 0; }
.landing .faq details:first-child { border-top: 1.5px solid var(--line); }
.landing .faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.landing .faq p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.urgent { margin: 0; justify-self: start; font-weight: 700; font-size: 14px; color: #fff; background: var(--bad); border-radius: 99px; padding: 4px 12px; }
.cal { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(12 9 30 / 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 94vw; max-height: 88dvh; border-radius: 12px; object-fit: contain; }
.lightbox button { position: fixed; width: 52px; min-height: 52px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / 0.14); border: 0; color: #fff; font-size: 30px; line-height: 1; }
.lightbox .x { top: 16px; right: 16px; } .lightbox .prev { left: 12px; top: calc(50% - 26px); } .lightbox .next { right: 12px; top: calc(50% - 26px); }

/* ---- ticket tiers: what each includes and its wristband ---- */
.tiers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tier { --band: var(--line); --on-band: var(--ink); display: grid; gap: 10px; align-content: start; padding: 0 16px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; }
.tier-top { margin: 0 -16px; padding: 14px 16px; background: var(--band); color: var(--on-band); display: grid; gap: 2px; }
.tier-top b { font: 700 17px/1.2 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tier-price { font-weight: 700; font-size: 20px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.tier li { padding-left: 24px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.band-chip { justify-self: start; font-size: 13px; font-weight: 700; padding: 3px 10px 3px 26px; border-radius: 99px; border: 1.5px solid var(--line); position: relative; }
.band-chip::before { content: ""; position: absolute; left: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--band); border: 1px solid var(--line); }
.tier button { min-height: 44px; padding: 8px 14px; margin-top: auto; }
