/* ==========================================================================
   Wish Events — "Admit One" identity
   Colours and type mirror the 2025—26 portfolio (Figma variables + text styles)
   ========================================================================== */

:root {
  --ink: #0B0B0B;
  --surface: #161616;
  --line-dark: #2E2E2E;
  --bone: #F2EFE8;
  --bone-deep: #E2DDD0;
  --red: #E30A17;
  --red-dark: #B80812;
  --grey: #8A867D;      /* secondary text on dark */
  --grey-ink: #5E5B54;  /* secondary text on bone (AA contrast) */

  --f-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 8px;
  --notch: var(--ink); /* colour of the ticket notches = section background */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: var(--bone); padding: 10px 16px; font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.mono { font: 400 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.b { font-weight: 700; }
.red { color: var(--red); }
.muted { color: var(--grey); }
.muted-ink { color: var(--grey-ink); }

.h-display, .h-xl, .h-xxl, .h-md, .h-statement, .h-sub, .wordmark {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em;
}
.h-display { font-size: clamp(44px, 6.4vw, 88px); line-height: .92; max-width: 960px; }
.h-display em, .h-xxl em { font-style: normal; color: var(--red); }
.h-xl { font-size: clamp(60px, 10vw, 140px); line-height: .86; }
.h-xxl { font-size: clamp(56px, 9.5vw, 150px); line-height: .86; }
.h-md { font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.h-sub { font-size: clamp(32px, 4vw, 54px); line-height: .95; }
.h-statement { font-size: clamp(34px, 4.6vw, 64px); line-height: .95; max-width: 1000px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: 62ch; }
.narrow { max-width: 56ch; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding-top: 0; }
.section--dark { background: var(--ink); color: var(--bone); --notch: var(--ink); }
.section--bone { background: var(--bone); color: var(--ink); --notch: var(--bone); }
.section > .wrap > * + * { margin-top: clamp(32px, 4vw, 56px); }
.section > .wrap > .sec-head + * { margin-top: clamp(36px, 5vw, 64px); }

.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-dark);
}
.section--bone .sec-head { border-color: var(--bone-deep); }
.sec-label { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 9px; height: 9px; background: var(--red); display: inline-block; }
.rule { display: block; width: 64px; height: 5px; background: var(--red); margin: 28px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 4px;
  font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--bone); }
.btn--red:hover { background: var(--red-dark); }
.btn--line { border-color: currentColor; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bone:hover { background: var(--ink); color: var(--bone); }

/* ---------- Ticket system ---------- */
.ticket { position: relative; border-radius: var(--radius); }
.ticket--bone { background: var(--bone); color: var(--ink); }
.ticket--ink { background: var(--ink); color: var(--bone); }
.section--dark .ticket--ink { background: var(--surface); border: 1px solid var(--line-dark); }
.ticket--red { background: var(--red); color: var(--bone); }
.ticket__part { padding: clamp(24px, 3.4vw, 44px); }

/* horizontal perforation with side notches */
.perf { position: relative; border-top: 1.5px dashed currentColor; opacity: 1; }
.perf::before, .perf::after {
  content: ""; position: absolute; top: -9px; width: 17px; height: 17px; border-radius: 50%; background: var(--notch);
}
.perf::before { left: -9px; }
.perf::after { right: -9px; }
/* vertical perforation with top/bottom notches */
.perf--v { border-top: 0; border-left: 1.5px dashed currentColor; align-self: stretch; opacity: .5; }
.perf--v::before { top: -9px; left: -9px; }
.perf--v::after { top: auto; bottom: -9px; right: auto; left: -9px; }

/* side notches for solid tickets (no perforation line) */
.ticket--notched::before, .ticket--notched::after,
.vision::before, .vision::after, .talk::before, .talk::after, .direction::before, .direction::after {
  content: ""; position: absolute; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; border-radius: 50%; background: var(--notch);
}
.vision::before, .talk::before, .direction::before { left: -9px; }
.vision::after, .talk::after, .direction::after { right: -9px; }

.ticket--row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; }
.ticket__no { padding: 0 clamp(20px, 3vw, 36px); }

.stamp {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  background: var(--red); color: var(--bone);
  display: grid; place-items: center; text-align: center;
  font: 400 26px/.95 var(--f-display); text-transform: uppercase;
  transform: rotate(-12deg);
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font: 400 30px/1 var(--f-display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; color: var(--bone); }
.nav__brand span { color: var(--red); }
.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__menu a { font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--bone); padding: 10px 0; position: relative; }
.nav__menu a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav__menu a:hover::after, .nav__menu a[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { background: var(--red); padding: 12px 16px !important; border-radius: 4px; }
.nav__cta:hover { background: var(--red-dark); }
.nav__toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; margin-right: -12px; }
.nav__bars { display: block; position: relative; width: 24px; height: 2px; margin: 0 auto; background: var(--bone); }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--bone); transition: transform .2s ease, top .2s ease; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.hero__ticket { display: flex; flex-direction: column; }
.hero__main { flex: 1; display: flex; flex-direction: column; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; }
.wordmark { font-size: clamp(96px, 15.5vw, 228px); line-height: .82; margin-top: clamp(20px, 3vw, 40px); }
.hero__stub { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero__tag { font: 400 clamp(30px, 3.2vw, 44px)/.95 var(--f-display); text-transform: uppercase; max-width: 16ch; margin-bottom: 10px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero__show { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 520px; }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero__slides img.is-active { opacity: 1; }
.hero__caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no meta" "title title";
  gap: 2px 12px; padding: 14px 18px; border-radius: 6px; background: var(--ink); color: var(--bone);
}
.hero__caption #hero-no { grid-area: no; }
.hero__caption #hero-meta { grid-area: meta; justify-self: end; text-align: right; }
.hero__caption-title { grid-area: title; font: 400 34px/1 var(--f-display); text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(16px, 2vw, 24px) !important; border-top: 1px solid var(--line-dark); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat__n { font: 400 clamp(44px, 5vw, 72px)/.9 var(--f-display); }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: var(--bone); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { flex: none; padding: 16px 0; font: 400 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; white-space: pre; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; align-items: start; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 980px; color: var(--bone); }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.split .photo { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 21 / 9; }
.photo--band { aspect-ratio: 7 / 3; }

.quote { min-height: 120px; }
.quote__text { font: 400 clamp(26px, 3vw, 40px)/1 var(--f-display); text-transform: uppercase; padding: 28px clamp(20px, 3vw, 40px); }
.belief { display: flex; flex-direction: column; gap: 14px; }

.vision { padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 14px; }
.vision p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; max-width: 64ch; }

.mission { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); }
.mission li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--bone-deep); }
.mission li .mono { padding-top: 4px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line-dark); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card h3 { font: 400 32px/1 var(--f-display); text-transform: uppercase; }
.card p { color: var(--grey); font-size: 15px; line-height: 1.55; }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.featured__photo { aspect-ratio: 4 / 5; }
.featured__text { display: flex; flex-direction: column; gap: 22px; }
.featured__text .h-sub { margin-top: -10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { background: var(--bone); color: var(--ink); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font: 400 30px/1 var(--f-display); text-transform: uppercase; }
.fact span { font-size: 13px; color: var(--grey-ink); }

/* ---------- Events ---------- */
.events__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.events__head .lead { margin-top: 16px; }
.filters { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.filter { min-height: 44px; padding: 0 20px; border: 0; background: transparent; cursor: pointer; font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.filter + .filter { border-left: 1.5px solid var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.filter:hover:not([aria-pressed="true"]) { background: var(--bone-deep); }

.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event { background: var(--ink); color: var(--bone); border-radius: var(--radius); display: flex; flex-direction: column; }
.event[hidden] { display: none; }
.event__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event:hover .event__media img { transform: scale(1.03); }
.event__type { width: 100%; height: 100%; display: grid; place-items: center; font: 400 clamp(56px, 6vw, 84px)/1 var(--f-display); color: var(--red); text-transform: uppercase; background: var(--surface); }
.event .perf { color: var(--grey); }
.event .perf::before, .event .perf::after { background: var(--bone); }
.event__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.event__title { font: 400 34px/.95 var(--f-display); text-transform: uppercase; }
.event__sub { color: var(--red); font: 400 22px/1 var(--f-display); text-transform: uppercase; }
.event__venue { color: var(--grey); }
.badge { background: var(--red); color: var(--bone); padding: 4px 8px; border-radius: 3px; font: 700 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.event details { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.event summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.event summary::-webkit-details-marker { display: none; }
.event summary::after { content: "+"; font: 400 22px/1 var(--f-body); color: var(--red); transition: transform .2s ease; }
.event details[open] summary::after { transform: rotate(45deg); }
.event details p { font-size: 15px; line-height: 1.55; color: var(--bone-deep); margin-top: 10px; }
.event details .event__sponsors { color: var(--grey); font-size: 13px; }

.next { grid-template-columns: auto auto 1fr auto; gap: 0; padding-right: clamp(20px, 3vw, 36px); }
.next__body { padding: 28px clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 8px; }
.next__list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* ---------- Partners ---------- */
.benefits { border-top: 1px solid var(--line-dark); }
.benefits li { display: grid; grid-template-columns: 48px minmax(200px, 300px) 1fr; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.benefits h3 { font: 400 32px/1 var(--f-display); text-transform: uppercase; }
.benefits p { color: var(--grey); }
.sponsors { display: flex; flex-direction: column; gap: 18px; }
.sponsors__list { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.sponsors__list li { font: 400 clamp(26px, 2.6vw, 36px)/1.15 var(--f-display); text-transform: uppercase; color: var(--bone); }
.sponsors__list li:nth-child(odd) { color: var(--red); }
.talk { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px); }
.talk .mono { display: block; margin-bottom: 10px; }
.talk .h-md { max-width: 30ch; }
.talk .btn { flex: none; }

/* ---------- Future ---------- */
.direction { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.direction .h-md { font-size: clamp(30px, 3.4vw, 48px); }

/* ---------- Contact ---------- */
.contact__top .h-xxl { margin-top: clamp(20px, 3vw, 36px); max-width: 12ch; }
.contact__bottom { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact__list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--bone-deep); }
.contact__list > div:first-child { padding-top: 0; }
.contact__list dt { color: var(--grey-ink); font-weight: 700; }
.contact__list dd { font-size: 18px; }
.contact__list a { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .2s ease; }
.contact__list a:hover { background-size: 100% 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--grey); border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__show { min-height: 0; aspect-ratio: 4 / 3; }
  .cards, .events { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
  .nav__menu a::after { display: none; }
  .nav__cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .split, .split--even, .cols, .mission, .featured, .contact__bottom { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { padding-top: 20px; }
  .photo--wide, .photo--band { aspect-ratio: 16 / 10; }
  .benefits li { grid-template-columns: 40px 1fr; }
  .benefits li p { grid-column: 2; }
  .talk { flex-direction: column; align-items: flex-start; }
  .next { grid-template-columns: auto auto 1fr; }
  .next .btn { grid-column: 1 / -1; margin: 0 20px 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .events { grid-template-columns: 1fr; }
  .hero__stub { flex-direction: column; align-items: flex-start; }
  .stamp { position: absolute; right: 18px; top: 18px; width: 76px; height: 76px; font-size: 20px; }
  .hero__ticket { position: relative; }
  .hero__main .meta-row .muted { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .ticket--row { grid-template-columns: 1fr; }
  .ticket--row .ticket__no { padding: 22px 22px 0; }
  .ticket--row .perf--v { display: none; }
  .quote__text { padding: 12px 22px 24px; }
  .next { grid-template-columns: 1fr; padding-right: 0; }
  .next__body { padding: 12px 22px 18px; }
  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .hero__caption-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slides img { transition: none; }
  * { transition-duration: 0s !important; }
}
