:root {
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --atlas-height: min(74vh, 760px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 400 17px/1.5 var(--display); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
h1, h2, h3 { font-weight: 700; }
ul, ol { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--yellow);
  border: 0;
  border-radius: 0;
  color: var(--on-yellow);
  font: 700 17px var(--display);
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--cut);
  transition: background-color .1s linear;
}
.btn:hover, .btn:focus-visible { background: #fff; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: var(--panel-2); color: var(--yellow); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--yellow); color: var(--on-yellow); }
.btn.danger { background: var(--alert); }
.link-btn { min-height: 44px; padding: 0; background: none; border: 0; color: var(--yellow); font: 500 15px var(--display); text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Directory */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; padding: clamp(18px, 3vw, 32px) var(--gutter) 18px; }
.hero h1 { color: var(--yellow); font: 700 clamp(38px, 6vw, 76px)/.95 var(--display); text-transform: uppercase; }
.hero-intro { max-width: 52ch; margin-top: 8px; color: var(--muted); font-size: 18px; line-height: 1.35; }

.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 390px; height: var(--atlas-height); border-top: 1px solid var(--yellow); border-bottom: 1px solid var(--yellow); }
.map-wrap { position: relative; min-width: 0; background: #070706; }
.map { position: absolute; inset: 0; }
.map-hint { position: absolute; left: 50%; top: 12px; padding: 6px 14px; background: var(--yellow); color: var(--on-yellow); font-size: 15px; font-weight: 500; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.map-failed { padding: 24px; color: var(--muted); }

.maplibregl-ctrl-group { background: var(--panel) !important; border: 1px solid var(--yellow); border-radius: 0 !important; box-shadow: none !important; }
.maplibregl-ctrl-group button { width: 38px; height: 38px; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--yellow) !important; }
.maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1) sepia(1) saturate(20) hue-rotate(5deg); }
.maplibregl-ctrl-attrib { background: rgba(7, 7, 6, .75) !important; color: var(--muted); }
.maplibregl-ctrl-attrib a { color: var(--muted); }

.panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--yellow); }
.tools { display: grid; gap: 8px; padding: 12px; }
.tools input, .tools select { width: 100%; min-height: 44px; padding: 0 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0; color: var(--text); font: 500 16px var(--display); }
.tools input::placeholder { color: var(--muted); }
.segments { display: flex; gap: 4px; }
.segments label { flex: 1; position: relative; cursor: pointer; }
.segments input { position: absolute; opacity: 0; }
.segments span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; background: var(--panel-2); font-size: 15px; font-weight: 500; }
.segments input:checked + span { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.segments input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 12px; border-top: 1px solid var(--line); }
.panel-title { font-size: 17px; font-weight: 500; color: var(--muted); }
.people { flex: 1; min-height: 0; padding: 0 12px 12px; overflow-y: auto; }
.people-note { padding: 8px 0 14px; color: var(--muted); }
.person { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px; text-decoration: none; }
.person:hover, .person:focus-visible, .person.on { background: var(--yellow); color: var(--on-yellow); }
.person-photo { display: block; width: 68px; height: 68px; object-fit: cover; }
.person-blank { border-radius: 50%; background: radial-gradient(circle, var(--yellow) 0 22%, #000 22.5%); }
.person.on .person-blank, .person:hover .person-blank { background: radial-gradient(circle, #000 0 22%, var(--panel) 22.5%); }
.person-text { display: grid; min-width: 0; }
.person-name { font-size: 20px; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-meta, .person-genres { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-genres { opacity: .72; }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 24px var(--gutter) 40px; }
.more a { display: block; padding: 20px; background: var(--panel); border-left: 4px solid var(--yellow); text-decoration: none; }
.more a:hover, .more a:focus-visible { background: var(--yellow); color: var(--on-yellow); }
.more h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.more p { margin-top: 6px; color: var(--muted); }
.more a:hover p, .more a:focus-visible p { color: var(--on-yellow); }

.state { padding: clamp(28px, 5vw, 64px) var(--gutter); }
.state h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1; }
.state p { margin: 14px 0 22px; max-width: 46ch; color: var(--muted); font-size: 19px; }
.link-box { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin-top: 8px; }
.link-box input { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 10px; background: var(--panel-2); border: 1px solid var(--yellow); border-radius: 0; color: var(--yellow); font: 400 15px var(--display); }

/* Profile */
.back { display: inline-flex; align-items: center; min-height: 44px; margin: 8px var(--gutter) 0; color: var(--yellow); font-size: 15px; }
.record-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(60px, 9vw, 120px); max-width: 1180px; padding: 12px var(--gutter) 36px; }
.sleeve { position: relative; align-self: start; aspect-ratio: 1; background: var(--panel); border: 1px solid var(--yellow); }
.sleeve::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 3%;
  left: 24%;
  width: 94%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--void) 0 2%, var(--yellow) 2.2% 17%, transparent 17.2%), repeating-radial-gradient(circle, #000 0 2px, #26261f 2px 4px);
}
.sleeve img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sleeve-blank { width: 100%; height: 100%; background: var(--hazard); }
.head-copy { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding-left: 8px; background: var(--void); }
.head-copy h1 { font-size: clamp(44px, 7vw, 92px); line-height: .98; text-transform: uppercase; overflow-wrap: anywhere; }
.head-facts { font-size: 20px; }
.head-languages { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 3px 12px; background: var(--panel-2); font-size: 15px; font-weight: 500; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; }
.head-actions a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

.sheet { max-width: 1180px; margin: 0 var(--gutter) 34px; padding-top: 14px; border-top: 2px solid var(--yellow); }
.sheet > h2 { margin-bottom: 14px; font-size: clamp(24px, 3vw, 34px); }
.sheet .pills { margin-top: 16px; }
.players { display: grid; gap: 14px; max-width: 860px; }
.player-yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.player-sc { display: block; width: 100%; height: 166px; border: 0; }

.booth { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.booth-art { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--panel); }
.art-deck { display: block; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle, var(--void) 0 4%, var(--yellow) 4.5% 30%, transparent 30.5%), repeating-radial-gradient(circle, #000 0 2px, #26261f 2px 4px); }
.art-mixer { display: flex; align-items: flex-end; justify-content: center; gap: 7px; width: 72px; height: 104px; padding: 10px 8px; background: var(--panel-2); }
.art-mixer span { display: block; flex: 1; height: 62%; background: var(--yellow); }
.art-mixer span:nth-child(2n) { height: 38%; }
.gear { flex: 1 1 280px; }
.gear div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.gear dt { color: var(--muted); font-size: 14px; }
.gear dd { font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.bio { max-width: 62ch; font-size: 20px; line-height: 1.42; white-space: pre-line; overflow-wrap: anywhere; }
.subhead { margin: 24px 0 6px; color: var(--yellow); font-size: 18px; }
.tracklist { counter-reset: t; max-width: 720px; }
.tracklist li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; padding: 7px 0; border-top: 1px solid var(--line); font-size: 18px; overflow-wrap: anywhere; }
.tracklist li::before { content: counter(t); color: var(--yellow); font-weight: 700; }

/* Contact requests */
.contact-form { display: grid; gap: 8px; max-width: 560px; margin-top: 8px; }
.contact-form textarea { min-height: 90px; padding: 10px 12px; background: var(--panel-2); border: 1px solid transparent; border-radius: 0; color: var(--text); font: 500 17px/1.4 var(--display); resize: vertical; }
.contact-form textarea:focus { outline: 0; border-color: var(--yellow); }
.contact-form .btn { justify-self: start; }
.contact-done { color: var(--yellow); font-size: 18px; font-weight: 700; }
.requests-page { max-width: 920px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) var(--gutter) 56px; }
.requests-page h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }
.requests { display: grid; gap: 8px; margin-top: 22px; }
.request { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px; background: var(--panel); }
.request.is-new { border-left: 4px solid var(--yellow); }
.request-body { min-width: 0; grid-column: 2; }
.request > .request-body:first-child { grid-column: 1 / 3; }
.request-name { font-size: 22px; font-weight: 700; text-underline-offset: 4px; }
.request-message { max-width: 62ch; margin-top: 8px; font-size: 18px; white-space: pre-line; overflow-wrap: anywhere; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.request-state { color: var(--yellow); font-weight: 500; }

/* Open slots */
.gigs-intro { max-width: 52ch; margin: 10px 0 18px; color: var(--muted); font-size: 19px; }
.gigs-heading { margin: 34px 0 12px; font-size: clamp(24px, 3vw, 34px); }
.gigs { display: grid; gap: 8px; }
.gig-search { display: block; width: 100%; min-height: 48px; margin-bottom: 10px; padding: 0 12px; background: var(--panel-2); border: 1px solid transparent; border-radius: 0; color: var(--text); font: 500 17px var(--display); }
.gig-search:focus { outline: 0; border-color: var(--yellow); }
.gig { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; background: var(--panel); color: var(--text); text-decoration: none; }
.gig:hover, .gig:focus-visible { background: var(--panel-2); }
.gig.is-new { box-shadow: inset 4px 0 0 var(--yellow); }
.gig-date { display: grid; justify-items: center; align-content: center; width: 76px; min-height: 76px; background: var(--yellow); color: var(--on-yellow); }
.gig-day { font-size: 32px; font-weight: 700; line-height: 1; }
.gig-month { font-size: 15px; font-weight: 700; }
.gig-text { display: grid; min-width: 0; gap: 2px; }
.gig-title { font-size: 22px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.gig-note { max-width: 170px; color: var(--yellow); font-weight: 500; text-align: right; }
.requests-page .back { margin-left: 0; }
.gig-page h1 { overflow-wrap: anywhere; }
.gig-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 14px; }
.gig-head .gig-date { width: 104px; min-height: 104px; }
.gig-head .gig-day { font-size: 46px; }
.gig-promoter { display: inline-block; margin-top: 6px; color: var(--yellow); font-size: 19px; font-weight: 700; text-underline-offset: 4px; }
.gig-facts { margin: 18px 0 12px; font-size: 19px; font-weight: 500; }
.gig-page .pills { margin-bottom: 8px; }
.gig-page .contact-form, .gig-page .contact-done { margin-top: 22px; }
.gig-page > .request-actions { margin-top: 22px; }
.gig-form { margin-top: 22px; }
.gig-form .wide, .gig-form-end { grid-column: 1 / -1; }
.gig-form input[type='date'] { color-scheme: dark; }
.gig-form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.request.is-selected { outline: 2px solid var(--yellow); outline-offset: -2px; }
@media (max-width: 620px) {
  .gig { grid-template-columns: auto minmax(0, 1fr); }
  .gig-note { grid-column: 2; max-width: none; text-align: left; }
  .gig-form { grid-template-columns: minmax(0, 1fr); }
  .gig-head .gig-date { width: 76px; min-height: 76px; }
  .gig-head .gig-day { font-size: 32px; }
}

/* Demos */
.demo-link { display: block; margin-top: 4px; color: var(--yellow); font-size: 15px; overflow-wrap: anywhere; text-underline-offset: 3px; }
.gig-form input[type='file'] { padding: 10px 12px; }
.gig-form .toggle span { padding: 10px 14px; }

/* Notifications */
.notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 14px; background: var(--panel); color: var(--text); font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.notice:hover, .notice:focus-visible { background: var(--panel-2); }
.notice.is-new { box-shadow: inset 4px 0 0 var(--yellow); font-weight: 700; }
.notice .person-meta { font-weight: 400; }
@media (max-width: 620px) {
  .notice { grid-template-columns: minmax(0, 1fr); }
}

/* Form */
.presskit-form { max-width: 920px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) var(--gutter) 56px; }
.presskit-form > h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 20px 0 26px; }
.steps button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 12px; background: var(--panel); border: 0; color: var(--muted); font: 500 16px var(--display); text-align: left; cursor: pointer; }
.steps button[aria-current] { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.step-no { font-size: 22px; font-weight: 700; }
.pane-stack { display: grid; gap: 34px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 26px; }
.fields.nested { margin-top: 14px; }
.fields-title { font-size: 26px; color: var(--yellow); }
.wide { grid-column: 1 / -1; }
.field { display: block; min-width: 0; }
.field-label { display: block; margin-bottom: 6px; padding: 0; color: var(--muted); font-size: 15px; }
.field input, .field select, .field textarea, .links-box input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 8px 12px;
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--text);
  font: 500 18px var(--display);
}
.field optgroup { color: var(--yellow); font-weight: 700; }
.field option { color: var(--text); font-weight: 400; }
.field textarea { min-height: 130px; line-height: 1.4; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .links-box input:focus { outline: 0; border-color: var(--yellow); }
.field input::placeholder, .links-box input::placeholder { color: var(--muted); }
.hint { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.pick { display: grid; gap: 6px; }

.photo-field { display: grid; justify-items: start; gap: 2px; }
.photo-pick { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--panel-2); cursor: pointer; }
.photo-pick:focus-within { outline: 2px solid var(--yellow); outline-offset: 2px; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-prompt { padding: 20px; color: var(--yellow); font-size: 19px; font-weight: 700; text-align: center; }
.who { display: grid; align-content: start; gap: 20px; min-width: 0; }

.account-badge { align-self: start; padding: 10px 14px; background: var(--yellow); color: var(--on-yellow); font-size: 18px; font-weight: 700; }
.cards { display: grid; gap: 4px; }
.card { position: relative; cursor: pointer; }
.card input { position: absolute; opacity: 0; }
.card span { display: flex; align-items: center; min-height: 52px; padding: 0 14px; background: var(--panel-2); font-size: 18px; font-weight: 500; }
.card input:checked + span { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.card input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.chips-box { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; background: var(--panel-2); font-size: 15px; font-weight: 500; }
.chip input:checked + span { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.chip input:disabled + span { opacity: .4; }

.decks-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px 24px; }
.decks-field .art-deck { width: 88px; height: 88px; }
.decks-field .art-mixer { height: 88px; width: 62px; }
.decks-controls { display: grid; gap: 14px; min-width: 0; }

.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; background: var(--panel-2); font-size: 16px; }
.toggle input:checked + span { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.toggle input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.links-box { display: grid; gap: 6px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; align-items: center; gap: 10px; }
.link-badge { color: var(--yellow); font-size: 14px; font-weight: 500; }
.more-links summary { min-height: 44px; color: var(--yellow); font-weight: 500; cursor: pointer; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.form-status { flex: 1 1 240px; color: var(--alert); font-weight: 500; }

@media (max-width: 900px) {
  .atlas { grid-template-columns: minmax(0, 1fr); height: auto; }
  .map-wrap { height: 56vh; }
  .panel { border-left: 0; border-top: 1px solid var(--yellow); }
  .people { max-height: none; overflow: visible; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .record-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sleeve { width: 72%; }
}

@media (max-width: 620px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .steps button { flex-direction: column; justify-content: center; gap: 0; padding: 6px; font-size: 13px; text-align: center; }
  .photo-pick { width: 62%; }
  .decks-field { grid-template-columns: minmax(0, 1fr); }
  .booth-slot { display: flex; justify-content: center; }
  .art-deck { width: 82px; height: 82px; }
  .art-mixer { width: 58px; height: 82px; }
  .booth-art { padding: 8px; gap: 6px; }
  .link-row { grid-template-columns: minmax(0, 1fr) 84px; }
}

:lang(ja) h1, :lang(ja) h2 { line-height: 1.2; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Demo preview: waveform with the Daily Ride stretch in yellow, and its controls. */
.demo-preview { margin-top: 4px; padding: 14px; background: var(--void); border-left: 3px solid var(--yellow); }
.demo-preview[hidden] { display: none; }
.request .demo-preview { margin-top: 14px; }
.demo-wave { display: block; width: 100%; height: clamp(64px, 12vw, 104px); cursor: pointer; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.demo-controls .toggle { min-height: 44px; }
.demo-play { min-width: 128px; }
.demo-ride[hidden] { display: none; }
.demo-time { margin-left: auto; color: var(--muted); font: 400 15px var(--data); font-variant-numeric: tabular-nums; }
.demo-preview .hint { margin-top: 8px; }
@media (max-width: 560px) {
  .demo-time { margin-left: 0; }
  .demo-play { flex: 1 1 100%; }
}

.review-date { display: inline-flex; align-items: center; gap: 8px; }
.review-date input, .review-date select { min-height: 44px; padding: 0 10px; background: var(--void); border: 1px solid var(--line); color: var(--text); font: 400 16px var(--data); color-scheme: dark; }
.demo-stats { color: var(--yellow); }

/* Newsletter */
.news-signup { display: grid; gap: 14px; max-width: 620px; padding: 18px; background: var(--panel); border-left: 4px solid var(--yellow); }
.news-signup .field input { width: 100%; }
.news-signup-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.news-leave { margin-top: 12px; color: var(--muted); font: 400 15px var(--data); }
.news-leave summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.news-leave-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.news-leave-form input { min-height: 44px; min-width: min(100%, 280px); padding: 0 10px; background: var(--void); border: 1px solid var(--line); color: var(--text); font: 400 16px var(--data); }
.news-admin { margin-top: 10px; }
.news-composer textarea { width: 100%; min-height: 180px; }
.news-played { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.news-played li { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 12px 14px; background: var(--panel); }
.news-played strong { overflow-wrap: anywhere; }
.news-played a { color: var(--yellow); text-underline-offset: 3px; }
.news-date { color: var(--muted); font: 400 14px var(--data); }
.news-issues { display: grid; gap: 14px; }
.news-issue { padding: 18px 20px; background: var(--panel); }
.news-issue h3 { margin: 4px 0 10px; font-size: clamp(22px, 3vw, 30px); }
.news-body { display: grid; gap: 10px; max-width: 68ch; color: var(--text); line-height: 1.55; white-space: pre-line; }
@media (max-width: 640px) {
  .news-played li { grid-template-columns: 1fr; }
}

/* Home: a portfolio of the collective's parties, then the newsletter and the ride. */
.home { display: grid; gap: clamp(40px, 7vw, 88px); width: min(100%, 1440px); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px); }
.home-hero { max-width: 980px; }
.home-kicker { color: var(--yellow); font: 400 clamp(14px, .8rem + .3vw, 18px) var(--data); }
.home-title { margin-top: 10px; color: var(--yellow); font: 700 clamp(44px, 7.2vw, 112px)/.92 var(--display); text-transform: uppercase; }
.home-about { display: grid; gap: 12px; max-width: 62ch; margin-top: 20px; color: var(--text); font-size: clamp(17px, .9rem + .45vw, 22px); line-height: 1.5; }
.home-rules { margin-top: 18px; color: var(--muted); font: 400 clamp(13px, .75rem + .25vw, 16px) var(--data); }
.home-heading { font: 700 clamp(30px, 4.5vw, 60px)/1 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.home-ig { display: inline-flex; align-items: center; min-height: 44px; }
.party-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.party-actions .btn { text-decoration: none; }

.party-next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 3vw, 44px); align-items: start; padding: clamp(14px, 2vw, 24px); background: var(--panel); border-left: 4px solid var(--yellow); }
.party-poster { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel-2); }
.party-poster.is-empty { display: grid; place-items: center; color: var(--yellow); font: 700 clamp(28px, 5vw, 54px) var(--display); }
.party-kicker { color: var(--yellow); font: 400 15px var(--data); text-transform: uppercase; }
.party-date { margin-top: 6px; color: var(--yellow); font: 700 clamp(48px, 8vw, 110px)/.9 var(--display); }
.party-date.small { font-size: clamp(26px, 3vw, 36px); }
.party-title { margin-top: 10px; font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--display); overflow-wrap: anywhere; }
.party-note { margin-top: 6px; color: var(--muted); font: 400 15px var(--data); }
.party-lineup { margin: 14px 0 0; padding: 0; list-style: none; font: 700 clamp(16px, 1.4vw, 20px)/1.35 var(--display); text-transform: uppercase; }
.party-lineup.is-lead { font-size: clamp(20px, 2.2vw, 30px); }
.party-lineup.is-lead li:first-child { color: var(--yellow); font-size: 1.5em; line-height: 1.1; }
.party-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 18px 0 0; color: var(--muted); font: 400 15px/1.4 var(--data); }
.party-facts dt { color: var(--yellow); }
.party-facts dd { margin: 0; color: var(--text); }

.party-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 20px; }
.party-card { display: grid; align-content: start; background: var(--panel); }
.party-card-body { padding: 16px 18px 20px; }
.party-card.is-past .party-poster { filter: grayscale(.35); transition: filter .2s; }
.party-card.is-past:hover .party-poster { filter: none; }
.party-tools { margin-top: 14px; }
.party-edit-slot { flex-basis: 100%; }
.party-form { margin-top: 12px; }
.news-admin-title { margin: 22px 0 6px; font-size: clamp(20px, 2.4vw, 28px); }
.home-newsletter .news-issues { margin-top: 24px; }

@media (max-width: 760px) {
  .party-next { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .party-card.is-past .party-poster { transition: none; }
}

/* Residents */
.residents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.resident { display: grid; grid-template-columns: clamp(110px, 16vw, 180px) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; padding: clamp(14px, 2vw, 22px); background: var(--panel); border-left: 4px solid var(--yellow); }
.resident-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel-2); }
.resident-photo.is-empty { display: grid; place-items: center; }
.resident-photo.is-empty img { width: 62%; height: auto; }
.resident-name { font: 700 clamp(30px, 4vw, 52px)/1 var(--display); color: var(--yellow); text-transform: uppercase; overflow-wrap: anywhere; }
.resident-tags { margin-top: 6px; color: var(--muted); font: 400 15px var(--data); }
.resident-bio { display: grid; gap: 8px; margin-top: 12px; line-height: 1.5; }
.resident-nights { margin-top: 12px; color: var(--text); font: 400 15px/1.5 var(--data); }
.resident-nights strong { color: var(--yellow); font-weight: 400; }
@media (max-width: 480px) {
  .resident { grid-template-columns: 96px minmax(0, 1fr); }
}

/* Party portfolio: a masonry wall of photos per night, and a full-screen viewer. */
.gallery { margin: 8px 0 36px; }
.gallery-head { display: grid; gap: 4px; margin-bottom: 16px; }
.gallery-title { font: 700 clamp(24px, 3.2vw, 42px)/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.gallery-meta { color: var(--muted); font: 400 15px var(--data); }
.gallery-grid { columns: 4 240px; column-gap: 10px; margin: 0; padding: 0; list-style: none; }
.gallery-grid li { break-inside: avoid; margin-bottom: 10px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--panel-2); cursor: zoom-in; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; filter: saturate(.9); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.03); filter: none; }
.gallery-item:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.gallery-upload { margin-top: 14px; max-width: 560px; }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 7, 6, .96); color: var(--text); }
.lightbox::backdrop { background: rgba(7, 7, 6, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure { display: grid; justify-items: center; gap: 10px; margin: 0; padding: 56px 64px 18px; max-width: 100%; max-height: 100%; }
.lightbox-img { display: block; max-width: calc(100vw - 128px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox-count { color: var(--muted); font: 400 14px var(--data); }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--panel); color: var(--yellow); font: 700 24px/1 var(--display); cursor: pointer; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: var(--yellow); color: var(--on-yellow); }
.lightbox-btn.is-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-btn.is-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-btn.is-close { right: 10px; top: 10px; }
@media (max-width: 640px) {
  .gallery-grid { columns: 2; column-gap: 6px; }
  .gallery-grid li { margin-bottom: 6px; }
  .lightbox-figure { padding: 60px 8px 76px; }
  .lightbox-img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 150px); }
  .lightbox-btn.is-prev, .lightbox-btn.is-next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
}

/* A minimal opening: one photo of the room, the name, one line. */
.home-hero.has-photo { position: relative; display: grid; align-items: end; min-height: min(86vh, 860px); margin: calc(-1 * clamp(28px, 5vw, 64px)) calc(-1 * var(--gutter)) 0; padding: clamp(28px, 5vw, 64px) var(--gutter); max-width: none; overflow: hidden; }
.home-hero-media { position: absolute; inset: 0; }
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 6, .15) 0%, rgba(7, 7, 6, .35) 45%, var(--void) 100%); }
.home-hero-text { position: relative; max-width: 900px; }
.home-lede { margin-top: 14px; color: var(--text); font: 400 clamp(17px, .9rem + .5vw, 24px)/1.4 var(--display); }

/* About us: an intro, then photo-and-text blocks that alternate sides. */
.about-intro { display: grid; gap: 12px; max-width: 60ch; margin-bottom: clamp(28px, 5vw, 56px); font-size: clamp(18px, .9rem + .6vw, 24px); line-height: 1.5; }
.about-block { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 4vw, 64px); align-items: center; margin-bottom: clamp(28px, 6vw, 80px); }
.about-block.is-flipped .about-media { order: 2; }
.about-block.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 60ch; }
.about-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.about-title { font: 700 clamp(26px, 3.4vw, 46px)/1 var(--display); text-transform: uppercase; color: var(--yellow); }
.about-body { display: grid; gap: 10px; margin-top: 14px; max-width: 46ch; color: var(--text); font-size: clamp(16px, .85rem + .35vw, 20px); line-height: 1.55; }
.about-edit-rows { display: grid; gap: 14px; grid-column: 1 / -1; }
.about-edit-row { margin: 0; padding: 14px; border: 1px solid var(--line); }
.about-edit-row select, .home-about-edit select { min-height: 44px; width: 100%; background: var(--void); border: 1px solid var(--line); color: var(--text); font: 400 15px var(--data); }
@media (max-width: 760px) {
  .about-block { grid-template-columns: 1fr; }
  .about-block.is-flipped .about-media { order: 0; }
  .home-hero.has-photo { min-height: 78vh; }
}

/* REC presents Negativo: a teaser, under construction. The photo is shown as a film negative. */
.negativo { position: relative; display: grid; align-items: end; min-height: clamp(360px, 62vh, 640px); padding: clamp(18px, 5vw, 64px); overflow: hidden; background: var(--panel); }
.negativo-media { position: absolute; inset: 0; }
.negativo-media img { width: 100%; height: 100%; object-fit: cover; filter: invert(1) grayscale(1) contrast(1.15); opacity: .55; }
.negativo-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--void) 0%, rgba(7, 7, 6, .55) 55%, rgba(7, 7, 6, .2) 100%); }
.negativo-text { position: relative; }
.negativo-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--yellow); color: var(--yellow); font: 400 14px var(--data); text-transform: uppercase; letter-spacing: .06em; }
.negativo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: negativo-blink 1.6s steps(2, start) infinite; }
.negativo-kicker { margin-top: 22px; color: var(--muted); font: 500 clamp(16px, 1.4vw, 20px) var(--display); text-transform: uppercase; letter-spacing: .08em; }
.negativo-title { margin-top: 2px; color: var(--text); font: 800 clamp(40px, 14vw, 200px)/.85 var(--display); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.negativo-soon { margin-top: 12px; color: var(--yellow); font: 700 clamp(20px, 2.4vw, 30px) var(--display); }
@keyframes negativo-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .negativo-dot { animation: none; }
}

/* Phones: tighter grouping, the opening title above its photo, and each party's date and name
   before its poster. */
@media (max-width: 760px) {
  .home { gap: 48px; }
  .home-heading { margin-bottom: 14px; font-size: clamp(28px, 8vw, 40px); }
  .home-section .gigs-intro { margin: 0 0 14px; font-size: 17px; }

  /* On phones the photo sits behind the title, filling the first screen. */
  .home-hero.has-photo { min-height: calc(100svh - 64px); padding-bottom: 32px; }
  .home-hero-media::after { background: linear-gradient(180deg, rgba(7, 7, 6, .25) 0%, rgba(7, 7, 6, .35) 40%, rgba(7, 7, 6, .85) 78%, var(--void) 100%); }
  .home-title { font-size: clamp(40px, 12vw, 64px); }

  .party-next { display: flex; flex-direction: column; gap: 0; padding: 16px; }
  .party-next-body { display: contents; }
  .party-next > * { order: 10; }
  .party-next .party-kicker { order: 1; }
  .party-next .party-date { order: 2; }
  .party-next .party-title { order: 3; }
  .party-next .party-note { order: 4; }
  .party-next .party-poster { order: 5; margin-top: 16px; max-height: 70vh; object-fit: contain; background: none; }
  .party-next .party-lineup { order: 6; }
  .party-next .party-facts { order: 7; }
  .party-next .party-actions { order: 8; }
  .party-next .party-actions .btn { width: 100%; }

  .about-intro { margin-bottom: 28px; }
  .about-block { gap: 14px; margin-bottom: 36px; }
  .about-body { margin-top: 8px; }
  .gallery { margin-bottom: 28px; }
  .negativo { min-height: 320px; }
}

/* Taste pass on the home page (rules from Taste Skill, applied by hand):
   one typeface, one card style, no labels over headings, no thin rules or side stripes,
   nothing blinking, and a single entrance for the opening when the page loads. */
.home { --data: var(--display); }
.home .party-next, .home .resident, .home .news-signup { border-left: 0; }
.home .party-facts { font-size: 16px; }
.home .party-facts dt { font-weight: 700; }
.party-soon { margin-top: 6px; color: var(--muted); font: 500 clamp(16px, 1.4vw, 19px) var(--display); }
.party-soon::first-letter { text-transform: uppercase; }
.negativo-status { display: block; padding: 0; border: 0; color: var(--yellow); font: 700 15px var(--display); text-transform: none; letter-spacing: 0; }
.home .resident-nights, .home .gallery-meta, .home .news-date, .home .resident-tags { font-family: var(--display); }

@keyframes home-enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes home-settle { from { transform: scale(1.04); } }
.home-hero-text { animation: home-enter .7s cubic-bezier(.2, .7, .2, 1) both; }
.home-hero-media img { animation: home-settle 1.6s cubic-bezier(.2, .7, .2, 1) backwards; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); }

.lightbox-count { position: absolute; top: 22px; left: 18px; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .home-hero-text, .home-hero-media img { animation: none; }
}
@media (max-width: 760px) {
  .party-next .party-soon { order: 2; }
}

/* Scroll movement (home-motion.js). Only what the script marks waits to come in. */
.will-reveal { opacity: 0; transform: translateY(28px); }
.will-reveal.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
.about-media, .negativo-media { overflow: hidden; }
.is-drifting { transform: translateY(var(--drift, 0)) scale(1.12); will-change: transform; }
.home-hero-media img { transform: scale(var(--hero-zoom, 1)); will-change: transform; }
.home-hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--void); opacity: var(--hero-dim, 0); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; }
  .is-drifting, .home-hero-media img { transform: none; }
}
