/* STACC Sessions. Black room, one hard yellow, condensed caps. Square corners everywhere. */

:root {
  --ground: #070706;
  --ground-2: #13120F;
  --ground-3: #1C1B17;
  --ink: #F3EFE6;
  --ink-2: rgba(243, 239, 230, 0.72);
  --accent: #FFCC00;
  --accent-hi: #FFE066;
  --on-accent: #070706;
  --error: #FF7A6B;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;

  /* Five sizes do all the work */
  --s-mega: clamp(60px, 8.6vw, 164px);
  --s-h2: clamp(46px, 6.6vw, 120px);
  --s-h3: clamp(24px, 2.4vw, 34px);
  --s-body: 18px;
  --s-small: 15px;

  --gut: clamp(16px, 2.4vw, 32px);
  --gap: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --box: clamp(4px, 0.45vw, 7px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 12px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; }

/* ---------- Type ---------- */
.mega, .h2, .next-date, .foot-mark, .room-num, .total-num, .lineup, .mark {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.mega { font-size: var(--s-mega); line-height: 0.86; font-weight: 900; }
.h2 { font-size: var(--s-h2); line-height: 0.88; font-weight: 900; }
.h3 { font: 800 var(--s-h3)/1.1 var(--display); text-transform: uppercase; }
.statement { font: 600 var(--s-h3)/1.18 var(--text); letter-spacing: -0.01em; max-width: 26ch; }
.small { font-size: var(--s-small); color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent);
  font: 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.btn::after { content: "↗"; font-size: 0.95em; transition: transform .3s var(--ease); }
.btn:hover { background: var(--accent-hi); }
.btn:hover::after { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 17px; }
.btn-lg { min-height: 64px; font-size: 24px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--ground-3); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn-ghost::after { content: none; }

.link {
  font: 800 19px/1 var(--display); text-transform: uppercase; text-decoration: underline;
  text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-color: var(--accent);
  transition: color .25s var(--ease);
}
.link:hover { color: var(--accent); }

/* ---------- The STACC box: the logo's thick outline ---------- */
.mark span, .foot-mark span {
  display: inline-block; border: var(--box) solid currentColor; line-height: 0.82;
}
.mark { text-decoration: none; font-size: 30px; font-weight: 900; line-height: 1; }
.mark span { padding: 4px 8px 3px; border-width: 4px; }

/* ---------- Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 12px var(--gut);
  background: var(--ground);
  transition: transform .4s var(--ease);
}
.bar nav { display: flex; gap: 28px; margin-left: auto; }
.bar nav a {
  font: 600 18px/1 var(--display); text-transform: uppercase; text-decoration: none;
  transition: color .2s var(--ease);
}
.bar nav a:hover { color: var(--accent); }

/* "We're hiring": a live dot that pulses, like an on-air light */
.nav-hiring { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.orb { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(255, 204, 0, 0.65); }
.orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: orb-pulse 1.8s var(--ease) infinite;
}
@keyframes orb-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: calc(100svh - 66px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: clamp(40px, 6vw, 96px) var(--gut) clamp(40px, 5vw, 80px);
}
.hero-next { font: 800 var(--s-h3)/1.1 var(--display); text-transform: uppercase; color: var(--accent); max-width: 30ch; }
.hero-sub { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.hero-photo { position: relative; overflow: hidden; background: var(--ground-2); }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  animation: settle 2.4s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Next night: poster + ticket box ---------- */
.next {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: clamp(32px, 5vw, 88px);
  padding: var(--gap) var(--gut) 0; align-items: start;
}
.next-date { color: var(--accent); font-style: italic; font-size: var(--s-mega); line-height: 0.86; }
.next-poster .h2 { margin-top: 20px; }
.next-genre { margin-top: 36px; font: 800 var(--s-h3)/1.1 var(--display); text-transform: uppercase; color: var(--accent); }
.next-genre:empty { display: none; }
.lineup { list-style: none; margin: 12px 0 0; padding: 0; font-size: var(--s-h2); line-height: 0.9; font-weight: 900; font-style: italic; }
.lineup:empty { display: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; }
.facts dt { color: var(--ink-2); font-size: var(--s-small); }
.facts dd { margin: 4px 0 0; font: 800 var(--s-h3)/1.1 var(--display); text-transform: uppercase; }

.ticket {
  position: sticky; top: 88px;
  border: var(--box) solid var(--accent);
  background: var(--ground-2);
  padding: clamp(22px, 2.4vw, 34px);
}
.ticket [hidden] { display: none !important; }
.ticket-off, .ticket-loading { display: grid; gap: 18px; }
.ticket-on { display: grid; gap: 26px; }
.room-num { font-size: var(--s-mega); line-height: 0.8; font-weight: 900; color: var(--accent); }
.room-label { margin-top: 6px; }
.room-fill { margin-top: 14px; height: 12px; background: var(--ground-3); }
.room-fill span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s var(--ease); }

.types { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.types legend, .tiers-title, .qty label, .total-label { font-size: var(--s-small); color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.type-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ground-3); cursor: pointer; transition: background-color .2s var(--ease); }
.type-opt:hover { background: #26241F; }
.type-opt input { accent-color: var(--accent); width: 20px; height: 20px; margin: 0; }
.type-opt b { font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.type-opt span { margin-left: auto; font-weight: 600; }

.tiers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tiers li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.tiers li b { font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.tiers li.is-gone { color: var(--ink-2); }
.tiers li.is-gone b, .tiers li.is-gone .tier-price { text-decoration: line-through; }
.tiers li.is-active b::after { content: " · on sale now"; font: 600 var(--s-small)/1 var(--text); text-transform: none; color: var(--accent); }
.tier-note { display: block; font-size: var(--s-small); color: var(--ink-2); }
.tier-price { font-weight: 600; white-space: nowrap; }

.qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qty label { margin: 0; color: var(--ink); font-size: var(--s-body); }
.stepper { display: flex; }
.stepper button {
  width: 52px; height: 52px; border: 0; background: var(--ground-3); font-size: 26px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.stepper button:hover { background: var(--accent); color: var(--on-accent); }
.stepper button:active { transform: scale(0.94); }
.stepper input {
  width: 64px; height: 52px; border: 0; background: var(--ground); text-align: center;
  font: 900 28px/1 var(--display); -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.code summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.code-body { display: grid; gap: 8px; margin-top: 16px; }
.code-body label { font-size: var(--s-small); color: var(--ink-2); }
.code-body input {
  height: 48px; padding: 0 14px; background: var(--ground); border: 1px solid #3A3832; border-radius: 0;
}
.code-body input:focus { border-color: var(--accent); outline: none; }
.code-body .btn { margin-top: 8px; }
.code-msg:empty, .form-msg:empty { display: none; }
.code-msg.is-good { color: var(--accent); }
.code-msg.is-bad, .form-msg { color: var(--error); }

.total-num { font-size: var(--s-h2); line-height: 0.85; font-weight: 900; }
.total-note { margin-top: 8px; font-size: var(--s-small); color: var(--ink-2); }

/* ---------- Promise: whole field of yellow ---------- */
.promise {
  margin-top: var(--gap);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--accent); color: var(--on-accent);
}
.promise ::selection { background: var(--on-accent); color: var(--accent); }
.promise-copy { padding: clamp(56px, 8vw, 128px) var(--gut); display: grid; gap: 36px; align-content: center; }
.route { margin: 16px 0 0; display: grid; gap: 22px; }
.route div { display: grid; grid-template-columns: minmax(130px, 0.4fr) 1fr; gap: 16px; align-items: baseline; }
.route dt { font: 900 var(--s-h3)/1 var(--display); text-transform: uppercase; }
.route dd { margin: 0; }
.promise-photo { position: relative; min-height: 520px; overflow: hidden; }
.promise-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

/* ---------- Photos ---------- */
.photos { padding: var(--gap) var(--gut) 0; }
.photos-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.photos-head p { max-width: 42ch; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 300px); grid-auto-flow: dense; gap: 8px; }
.grid button {
  position: relative; padding: 0; border: 0; background: var(--ground-2); cursor: zoom-in; overflow: hidden;
  grid-column: span 4;
}
.grid button.is-tall { grid-row: span 2; }
.grid button.is-wide { grid-column: span 8; grid-row: span 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.grid button:hover img { transform: scale(1.04); }
.grid img[data-loading] { opacity: 0; }
.more { margin-top: 24px; }

/* ---------- Last night ---------- */
.last {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px);
  padding: var(--gap) var(--gut) 0; align-items: center;
}
.last-poster { overflow: hidden; }
.last-poster img { width: 100%; transform: scale(1.012); }
.last-copy { display: grid; gap: 28px; }
.last-copy p:last-child { max-width: 46ch; }

/* ---------- Want to play ---------- */
.play {
  margin-top: var(--gap);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--ground-2);
}
.play-photo { position: relative; min-height: 640px; overflow: hidden; }
.play-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-copy { padding: clamp(56px, 7vw, 120px) var(--gut); display: grid; gap: 32px; align-content: center; justify-items: start; }

/* ---------- Hiring: the second field of yellow ---------- */
.hiring {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 112px);
  padding: clamp(64px, 8vw, 128px) var(--gut);
  background: var(--accent); color: var(--on-accent);
}
.hiring ::selection { background: var(--on-accent); color: var(--accent); }
.hiring-lead { display: grid; gap: 28px; align-content: start; justify-items: start; position: sticky; top: 88px; }
.hiring-lead > p:not(.statement) { max-width: 46ch; }
.hiring-facts { margin: 8px 0 0; display: grid; gap: 16px; }
.hiring-facts dt { font-size: var(--s-small); }
.hiring-facts dd { margin: 2px 0 0; font: 600 20px/1.35 var(--text); }
.hiring-facts div:first-child dd { font: 900 var(--s-h3)/1.1 var(--display); text-transform: uppercase; }
.hiring-detail { display: grid; gap: 8px; }
.hiring-block { background: rgba(7, 7, 6, 0.07); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 14px; }
.hiring-block p { max-width: 62ch; }
.hiring-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hiring-block li b { font-weight: 600; }
.btn-dark { background: var(--on-accent); color: var(--accent); }
.btn-dark:hover { background: var(--ground-3); }
.steps { margin: 0; display: grid; gap: 22px; }
.steps dt { font: 900 var(--s-h3)/1 var(--display); text-transform: uppercase; color: var(--accent); }
.steps dd { margin: 6px 0 0; max-width: 44ch; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px;
  padding: var(--gap) var(--gut) 0; align-items: start;
}
.faq .h2 { position: sticky; top: 96px; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--ground-2); transition: background-color .25s var(--ease); }
.faq details[open] { background: var(--ground-3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 24px; font: 800 var(--s-h3)/1.1 var(--display); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3em; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 24px 24px; max-width: 60ch; }

/* ---------- Footer ---------- */
.foot { padding: var(--gap) var(--gut) 32px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.foot-mark { margin: clamp(48px, 7vw, 112px) 0 32px; font-size: clamp(100px, 36vw, 640px); letter-spacing: -0.03em; font-weight: 900; line-height: 0.8; color: var(--accent); }
.foot-mark span { padding: 0.07em 0.05em 0.03em; border-width: clamp(8px, 1.4vw, 22px); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: var(--s-small); color: var(--ink-2); }
.foot-meta nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-meta a { text-decoration: none; transition: color .2s var(--ease); }
.foot-meta a:hover { color: var(--accent); }
.foot-credit {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  font-size: var(--s-small); color: var(--ink-2); text-decoration: none;
  transition: color .2s var(--ease);
}
.foot-credit img { width: 140px; height: auto; transition: transform .3s var(--ease); }
.foot-credit:hover { color: var(--ink); }
.foot-credit:hover img { transform: rotate(-2deg) scale(1.04); }

/* ---------- Phone dock ---------- */
.dock { display: none; }

/* ---------- Photo viewer ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ground); color: var(--ink);
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: var(--ground); }
.viewer img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); object-fit: contain; }
.viewer-cap { position: absolute; left: var(--gut); bottom: 20px; font-size: var(--s-small); color: var(--ink-2); }
.viewer-btn {
  position: absolute; width: 56px; height: 56px; border: 0; background: var(--ground-3); font-size: 34px; line-height: 1; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.viewer-btn:hover { background: var(--accent); color: var(--on-accent); }
.viewer-prev { left: var(--gut); top: 50%; transform: translateY(-50%); }
.viewer-next { right: var(--gut); top: 50%; transform: translateY(-50%); }
.viewer-close { right: var(--gut); top: 16px; }

/* ---------- Entrances (only when the script is running) ---------- */
.js [data-in] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-in].is-in { opacity: 1; transform: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .next { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .bar { gap: 16px; }
  .bar nav { margin-left: auto; }
  .bar nav a:not(.nav-hiring) { display: none; }
  .bar nav a.nav-hiring { font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 52svh; }
  .hero-copy { padding-top: 32px; }
  .promise, .play, .last, .faq, .photos-head, .hiring { grid-template-columns: 1fr; }
  .promise-photo { min-height: 380px; }
  .play-photo { min-height: 360px; }
  .hiring-lead { position: static; }
  .faq .h2 { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .grid button { grid-column: span 1; }
  .grid button.is-wide { grid-column: span 2; grid-row: span 1; }
  .mega { font-size: clamp(48px, 14.4vw, 96px); }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .route div { grid-template-columns: 1fr; gap: 4px; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ground-3);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .dock[hidden] { display: none; }
  .dock.is-up { transform: none; }
  .dock p { font: 800 18px/1.1 var(--display); text-transform: uppercase; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .js [data-in] { transform: none; }
  .orb::after { animation: none; opacity: 0; }
}
