/* Naughty Corner. One dark-cherry page system: huge type, ticket-stub cards, crew roll call, ledger of past parties.
   Brand: pink F3A7C9, red E80028, cherry 480016, sand D4C8B2, off-white F4F1EC.
   Fonts (licensed by Naughty Corner Music): TT Travels Next ExtraBold / DemiBold, Helvetica Neue Regular / Bold. */
@font-face { font-family: "TT Travels Next"; src: url("fonts/ttt-xb.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "TT Travels Next"; src: url("fonts/ttt-db.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue NC"; src: url("fonts/hn-r.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue NC"; src: url("fonts/hn-b.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cherry: #480016;
  --cherry-2: #5d0a24;
  --cherry-deep: #2e000e;
  --red: #e80028;
  --pink: #f3a7c9;
  --paper: #f4f1ec;
  --muted: #d4c8b2;
  --display: "TT Travels Next", "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Helvetica Neue NC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cherry); color: var(--paper); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
p { margin: 0; max-width: 62ch; }

/* nav */
header { position: sticky; top: 0; z-index: 10; background: rgba(46, 0, 14, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(243, 167, 201, 0.18); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.mark { display: block; line-height: 0; }
.mark img { height: 34px; width: auto; }
/* recolourable logo: the SVG is used as a mask so the colour can rotate through the brand palette */
.logo-mask { display: block; background-color: var(--logo, #f3a7c9); transition: background-color .5s ease; -webkit-mask: var(--m) left center / contain no-repeat; mask: var(--m) left center / contain no-repeat; }
.logo-mask.lg { --m: url("logo.svg"); width: 97px; height: 34px; }
.logo-mask.claim { --m: url("logo-claim.svg"); }
@media (prefers-reduced-motion: reduce) { .logo-mask { transition: none; } }
nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 0.92rem; }
nav a { text-decoration: none; color: #fff; }
nav a:hover, nav a[aria-current="page"] { color: var(--paper); }
.btn { display: inline-block; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; text-decoration: none; padding: 14px 24px; border-radius: 999px; font-size: 0.95rem; letter-spacing: 0.02em; border: 2px solid var(--red); }
.btn:hover { background: #ff3a50; border-color: #ff3a50; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--pink); }
.btn.ghost:hover { background: var(--pink); color: var(--cherry); }
nav .btn { color: #fff; padding: 10px 18px; font-size: 0.82rem; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(72, 0, 22, 0.55) 0%, rgba(72, 0, 22, 0.8) 70%, var(--cherry) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 84px 0 64px; }
.eyebrow { color: var(--pink); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3.2rem, 10.5vw, 8.2rem); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { margin-top: 28px; font-size: 1.25rem; }
.hero .lede-2 { display: block; margin-top: 14px; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* upcoming events */
.upcoming { padding-top: 24px; }
.ev-list { display: grid; gap: 22px; }
.stub { display: grid; grid-template-columns: 1.6fr 1fr; background: var(--paper); color: var(--cherry); border-radius: 20px; overflow: hidden; }
.stub-main { padding: 36px; }
.stub-side { padding: 36px; background: var(--red); color: #fff; border-left: 3px dashed var(--cherry); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stub .tag { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: var(--red); }
.stub h3 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 10px 0 18px; }
.stub dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; }
.stub dt { font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; padding-top: 3px; }
.stub dd { margin: 0; }
.stub .guests b { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.date-big { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.9; }
.date-big .d { font-size: 5.5rem; display: block; }
.date-big .m { font-size: 1.8rem; display: block; }
.stub-side .btn { background: var(--cherry); border-color: var(--cherry); text-align: center; }
.stub-side .btn:hover { background: #000; border-color: #000; }
.stub-side small { display: block; margin-top: 8px; opacity: 0.9; font-size: 0.85rem; }
/* later dates: slimmer stub */
.stub.slim { grid-template-columns: 1fr 200px; }
.stub.slim .stub-main { padding: 26px 30px; }
.stub.slim h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 6px 0 10px; }
.stub.slim .stub-side { padding: 26px; background: var(--pink); color: var(--cherry); }
.stub.slim .date-big .d { font-size: 3.6rem; }
.stub.slim .date-big .m { font-size: 1.3rem; }
.stub.slim .stub-side .btn { background: var(--cherry); color: #fff; }
.stub.soon .stub-side { background: var(--cherry-2); color: var(--pink); }
.stub.soon .date-big .d { font-size: 2.6rem; }
.stub.soon .stub-side .btn { background: var(--pink); color: var(--cherry); border-color: var(--pink); }
.stub.soon .stub-side .btn:hover { background: #fff; border-color: #fff; }
.more-dates { margin-top: 22px; color: var(--muted); }
.more-dates a { color: var(--pink); }

/* sections */
section { padding: 88px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head p { color: var(--muted); }

/* photo gallery */
.gallery { padding-top: 24px; padding-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.grid figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--cherry-2); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.grid figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .grid img { transition: none; } .grid figure:hover img { transform: none; } }
.g1 { grid-column: span 7; aspect-ratio: 7/5; }
.g2 { grid-column: span 5; aspect-ratio: 5/5; }
.g3 { grid-column: span 4; aspect-ratio: 3/4; }
.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.g5 { grid-column: span 4; aspect-ratio: 3/4; }

/* crew */
.crew { background: var(--cherry-2); }
.roll { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243, 167, 201, 0.25); }
.roll li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(243, 167, 201, 0.25); }
.roll .name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 5.5vw, 3.6rem); line-height: 1; }
.roll .role { color: var(--muted); font-size: 0.95rem; text-align: right; }
.roll a { text-decoration: none; }
.roll .role a { color: var(--pink); }
.roll .role a:hover { color: #fff; }
.about { display: grid; gap: 16px; margin-bottom: 44px; }
.about p { font-size: 1.1rem; }
.about .genres { font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--pink); font-size: 1.1rem; letter-spacing: 0.02em; }
.crew-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 44px; }
.crew-photos figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; }
.crew-photos img { width: 100%; height: 100%; object-fit: cover; }
.crew-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(46, 0, 14, 0.9)); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; }
.guests-line { margin-top: 36px; color: var(--muted); display: grid; gap: 20px; }
.guests-line p { margin: 0; }
.guests-line b { color: var(--paper); }
.guests-line a { color: var(--pink); }

/* ledger */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; color: var(--pink); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 12px 12px 0; border-bottom: 2px solid var(--red); }
.ledger td { padding: 18px 12px 18px 0; border-bottom: 1px solid rgba(243, 167, 201, 0.2); vertical-align: top; }
.ledger td:first-child { font-family: var(--display); font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.ledger .what { font-weight: 700; }
.ledger .note { color: var(--muted); font-size: 0.95rem; display: block; }
.scroll-x { overflow-x: auto; }

/* panels */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--cherry-2); border: 1px solid rgba(243, 167, 201, 0.25); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.panel h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.panel p { color: var(--muted); }
.panel .small { font-size: 0.9rem; margin: 16px 0 0; }
.panel .small + .small { margin-top: 10px; }
.panel.hot { background: var(--red); border-color: var(--red); }
.panel.hot p { color: #fff; }
.panel.hot .btn { background: var(--cherry); border-color: var(--cherry); }
.panel.hot .btn:hover { background: #000; border-color: #000; }
.panel.sc { background: var(--pink); border-color: var(--pink); color: var(--cherry); }
.panel.sc p { color: var(--cherry); }
.panel.sc .btn { background: var(--cherry); border-color: var(--cherry); }
.panel.sc .btn:hover { background: #000; border-color: #000; }

/* naughty beats page */
.beats-hero .wrap { padding: 72px 0 40px; }
.beats-hero h1 { font-size: clamp(3.2rem, 12vw, 9rem); }
.beats-hero h1 em { font-style: normal; color: var(--pink); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rules li { background: var(--cherry-2); border: 1px solid rgba(243, 167, 201, 0.25); border-radius: 16px; padding: 22px; }
.rules .k { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; color: var(--pink); margin-bottom: 8px; }
.rules .v { color: var(--muted); font-size: 0.95rem; }
.mix { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; background: var(--paper); color: var(--cherry); border-radius: 20px; padding: 24px; }
.mix .cover { background: var(--red); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; padding: 22px; }
.mix .cover img { width: 100%; height: auto; }
.mix .tag { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: var(--red); }
.mix h3 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 8px 0 10px; }
.mix p { color: var(--cherry); }
.mix .btn { background: var(--cherry); border-color: var(--cherry); white-space: nowrap; }
.mix .btn:hover { background: #000; border-color: #000; }

footer { padding: 56px 0 72px; border-top: 1px solid rgba(243, 167, 201, 0.2); }
.foot { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; row-gap: 28px; align-items: start; }
.foot .logo-mask.foot-logo { height: clamp(60px, 11vw, 105px); width: clamp(172px, 31vw, 300px); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; grid-column: 2; grid-row: 1 / span 2; }
.foot ul a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.foot ul a:hover { color: var(--paper); }
.fine { margin: 0; max-width: 46ch; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero .wrap { padding-top: 52px; }
  .stub, .stub.slim { grid-template-columns: 1fr; }
  .stub-side { border-left: 0; border-top: 3px dashed var(--cherry); }
  .stub-main, .stub-side, .panel { padding: 26px; }
  .stub.slim .stub-side { flex-direction: row; align-items: center; }
  .two { grid-template-columns: 1fr; }
  .roll li { grid-template-columns: 1fr; gap: 4px; }
  .roll .role { text-align: left; }
  .foot ul { text-align: left; }
  section { padding: 64px 0; }
  nav { gap: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .g1, .g2, .g3, .g4, .g5 { grid-column: span 1; aspect-ratio: 3/4; }
  .g1 { grid-column: span 2; aspect-ratio: 4/3; }
  .crew-photos { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .mix { grid-template-columns: 1fr; }
  .mix .cover { max-width: 200px; }
}

.beats-note { margin-top: 20px; color: var(--muted); }

/* gallery page */
.masonry { column-count: 3; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.masonry img { display: block; width: 100%; height: auto; transition: transform .3s; }
.masonry button:hover img { transform: scale(1.03); }
#lb { border: 0; padding: 0; background: rgba(0,0,0,.92); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
#lb[open] { display: grid; place-items: center; }
#lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 10px; }
#lb::backdrop { background: rgba(0,0,0,.92); }
.lb-close, .lb-nav { position: absolute; background: var(--red); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }
@media (max-width: 800px) { .masonry { column-count: 2; } }

/* hamburger */
.burger { display: none; background: none; border: 0; border-radius: 10px; width: 46px; height: 46px; padding: 0; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--paper); transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  header nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 14px; }
  header nav.open { display: flex; }
  header nav a { padding: 14px 4px; font-size: 1.05rem; border-top: 1px solid rgba(243, 167, 201, 0.14); }
  header nav .btn { margin-top: 12px; text-align: center; padding: 14px 18px; border-top: 0; }
}
.two > * { min-width: 0; }
.panel .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
nav a:not(.btn) { font-weight: 400; }


/* glitch on the word naughty */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.glitch.go { animation: gl-shake .45s steps(2, end); }
.glitch.go::before { color: #00e5ff; opacity: .85; mix-blend-mode: screen; animation: gl-a .45s steps(1, end); }
.glitch.go::after { color: #E80028; opacity: .85; mix-blend-mode: screen; animation: gl-b .45s steps(1, end); }
@keyframes gl-shake { 0%{transform:translate(0)} 20%{transform:translate(-.03em,.01em) skewX(-6deg)} 40%{transform:translate(.03em,-.01em) skewX(5deg)} 60%{transform:translate(-.02em,0)} 80%{transform:translate(.02em,.01em) skewX(-3deg)} 100%{transform:none} }
@keyframes gl-a { 0%{clip-path:inset(10% 0 60% 0);transform:translate(-.06em,0)} 25%{clip-path:inset(55% 0 15% 0);transform:translate(.05em,0)} 50%{clip-path:inset(30% 0 40% 0);transform:translate(-.04em,0)} 75%{clip-path:inset(70% 0 5% 0);transform:translate(.06em,0)} 100%{clip-path:inset(0 0 100% 0)} }
@keyframes gl-b { 0%{clip-path:inset(60% 0 10% 0);transform:translate(.06em,0)} 25%{clip-path:inset(15% 0 55% 0);transform:translate(-.05em,0)} 50%{clip-path:inset(45% 0 25% 0);transform:translate(.04em,0)} 75%{clip-path:inset(5% 0 75% 0);transform:translate(-.06em,0)} 100%{clip-path:inset(0 0 100% 0)} }
@media (prefers-reduced-motion: reduce) { .glitch.go, .glitch.go::before, .glitch.go::after { animation: none; } }

/* random photo glitch (gallery) */
.masonry button { position: relative; }
.masonry button.pglitch::before,
.masonry button.pglitch::after { content: ""; position: absolute; inset: 0; background: var(--pg) center / cover no-repeat; pointer-events: none; mix-blend-mode: screen; }
.masonry button.pglitch::before { animation: pg-a .7s steps(1) 1; filter: url(#pg-r); }
.masonry button.pglitch::after { animation: pg-b .7s steps(1) 1; filter: url(#pg-c); }
.masonry button.pglitch img { animation: pg-shake .7s steps(1) 1; }
/* random photo glitch (home gallery) */
.gallery figure { position: relative; overflow: hidden; }
.gallery figure.pglitch::before,
.gallery figure.pglitch::after { content: ""; position: absolute; inset: 0; background: var(--pg) center / cover no-repeat; pointer-events: none; mix-blend-mode: screen; }
.gallery figure.pglitch::before { animation: pg-a .7s steps(1) 1; filter: url(#pg-r); }
.gallery figure.pglitch::after { animation: pg-b .7s steps(1) 1; filter: url(#pg-c); }
.gallery figure.pglitch img { animation: pg-shake .7s steps(1) 1; }
@keyframes pg-shake { 0%,100% { transform: none; } 15% { transform: translate(-6px,0) skewX(2deg); } 30% { transform: translate(5px,0); } 50% { transform: translate(-3px,2px) skewX(-2deg); } 70% { transform: translate(4px,-1px); } 85% { transform: translate(-2px,0); } }
@keyframes pg-a { 0% { clip-path: inset(10% 0 70% 0); transform: translateX(-10px); } 20% { clip-path: inset(55% 0 20% 0); transform: translateX(8px); } 40% { clip-path: inset(30% 0 45% 0); transform: translateX(-6px); } 60% { clip-path: inset(75% 0 5% 0); transform: translateX(10px); } 80% { clip-path: inset(0 0 85% 0); transform: translateX(-8px); } 100% { clip-path: inset(40% 0 40% 0); transform: translateX(0); } }
@keyframes pg-b { 0% { clip-path: inset(60% 0 15% 0); transform: translateX(10px); } 25% { clip-path: inset(5% 0 80% 0); transform: translateX(-9px); } 50% { clip-path: inset(45% 0 35% 0); transform: translateX(7px); } 75% { clip-path: inset(20% 0 60% 0); transform: translateX(-10px); } 100% { clip-path: inset(80% 0 0 0); transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .gallery figure.pglitch::before, .gallery figure.pglitch::after, .gallery figure.pglitch img { animation: none; display: none; }
  .masonry button.pglitch::before, .masonry button.pglitch::after, .masonry button.pglitch img { animation: none; display: none; } }

/* flyers */
.flyers { padding: 56px 0 24px; }
.flyers h2 { margin: 0 0 24px; }
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.flyer-grid button { display: block; width: 100%; padding: 0; border: 0; background: var(--cherry-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.flyer-grid img { display: block; width: 100%; height: auto; transition: transform .3s; }
.flyer-grid button:hover img { transform: scale(1.03); }
#lb.single .lb-nav { display: none; }

/* crew name colour cycling */
.roll .cw { transition: color .5s ease; }
@media (prefers-reduced-motion: reduce) { .roll .cw { transition: none; } }

.flyers h2 em { font-style: normal; color: var(--pink); }
.gtabs { display: flex; gap: 10px; padding-top: 28px; }
.gtabs button { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.9rem; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--pink); background: transparent; color: var(--paper); cursor: pointer; }
.gtabs button:hover { background: rgba(243, 167, 201, 0.18); }
.gtabs button[aria-selected="true"] { background: var(--pink); color: var(--cherry); }
.gtabs button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
section[hidden] { display: none; }

#join-dlg { border: 1px solid rgba(243,167,201,.35); border-radius: 20px; background: var(--cherry-2); color: var(--paper); padding: 0; width: min(92vw, 460px); }
#join-dlg::backdrop { background: rgba(0,0,0,.75); }
#join-form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 32px; }
#join-form h3 { font-size: clamp(1.7rem, 6vw, 2.3rem); padding-right: 36px; }
#join-form p { color: var(--muted); }
#join-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); }
#join-form input[type=text], #join-form input[type=email] { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(243,167,201,.45); background: rgba(0,0,0,.25); color: var(--paper); }
#join-form input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
#join-form .btn { align-self: flex-start; cursor: pointer; }
.join-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--paper); font-size: 2rem; line-height: 1; cursor: pointer; }

.more-wrap { display: block; margin-top: 24px; }
#ledger:not(.open) tbody tr:nth-child(n+6) { display: none; }
.more-parties { cursor: pointer; }

.totop { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--pink); background: var(--cherry); color: var(--pink); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s, color .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover, .totop:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }

body { transition: opacity 1.6s ease; }
html.fonts-loading body { opacity: 0; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; }
  .foot ul { grid-column: 1; grid-row: auto; }
  .foot .fine { order: 3; }
}

.hero-full { min-height: calc(100vh - var(--hh, 69px)); min-height: calc(100svh - var(--hh, 69px)); display: flex; flex-direction: column; justify-content: center; }

.videos { padding-top: 24px; }
.videos .wrap { padding-bottom: 40px; }
.videos h2 em { font-style: normal; color: var(--pink); }
.vid-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch; }
.vid { position: relative; flex: 0 0 clamp(190px, 22vw, 250px); aspect-ratio: 9 / 16; margin: 0; border-radius: 16px; overflow: hidden; background: var(--cherry-deep); scroll-snap-align: start; }
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(transparent 55%, rgba(46, 0, 14, 0.7)); }
.vid-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 60% no-repeat; transition: transform .2s, opacity .2s; }
.vid-play:hover::after, .vid-play:focus-visible::after { transform: scale(1.08); }
.vid.playing .vid-play { background: none; }
.vid.playing .vid-play::after { opacity: 0; }
.vid.playing:hover .vid-play::after { opacity: 0.85; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 6h4v12H7zM13 6h4v12h-4z' fill='%23fff'/%3E%3C/svg%3E"); }

.bfilter { cursor: pointer; font-family: inherit; }
.bfilter[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--cherry); }

.titlecell { display: flex; align-items: center; gap: 14px; }
.titlecell .art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cherry-deep); }
.mix .cover.art-cover { padding: 0; overflow: hidden; }
.mix .cover.art-cover img { width: 100%; height: 100%; object-fit: cover; }

/* homepage section titles: second word in pink */
.sec-head h2 em { font-style: normal; color: var(--pink); }
.foot .credit { margin: 0; font-size: 0.8rem; color: var(--muted); }
.foot .credit a { color: var(--muted); text-underline-offset: 3px; }
.foot .credit a:hover { color: var(--paper); }
@media (max-width: 760px) { .foot .credit { order: 4; } }

/* video expand */
.vid-expand { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: rgba(46, 0, 14, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3a7c9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s ease, background-color .2s ease; }
.vid-expand:hover, .vid-expand:focus-visible { transform: scale(1.1); background-color: rgba(46, 0, 14, 0.95); }
#vlb { border: 0; padding: 0; background: rgba(0,0,0,.94); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
#vlb[open] { display: grid; place-items: center; }
#vlb video { max-width: 92vw; max-height: 90vh; border-radius: 10px; background: #000; }
#vlb::backdrop { background: rgba(0,0,0,.94); }

/* faq */
.faq { max-width: 820px; border-top: 1px solid rgba(243, 167, 201, 0.25); }
.faq details { border-bottom: 1px solid rgba(243, 167, 201, 0.25); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.25rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--pink); font-size: 1.6rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover, .faq summary:focus-visible { color: var(--pink); }
.faq details p { margin: 0 0 24px; max-width: 60ch; color: var(--muted); }

/* gallery tabs fit on small screens */
@media (max-width: 560px) {
  .gtabs { gap: 8px; padding-top: 22px; }
  .gtabs button { flex: 1 1 0; min-width: 0; padding: 10px 6px; font-size: 0.78rem; letter-spacing: 0; }
  .masonry { column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }
}
@media (max-width: 560px) { .videos h2 { margin-bottom: 20px; } .videos .vid-row { margin-top: 0; } }
@media (max-width: 560px) {
  .vid-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .vid { flex: none; width: 100%; }
  .vid-play::after { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}
#faq { padding-bottom: 0; }
#join-list { padding-top: 56px; }
@media (max-width: 760px) { #join-list { padding-top: 40px; } }
.ledger .desc { display: block; margin-top: 4px; max-width: 62ch; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.titlecell { align-items: flex-start; }
.titlecell .art { width: 96px; height: 96px; border-radius: 12px; }
@media (max-width: 560px) { .titlecell { gap: 12px; } .titlecell .art { width: 72px; height: 72px; border-radius: 10px; } }
@media (max-width: 560px) {
  .titlecell { display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; row-gap: 8px; }
  .titlecell > div { display: contents; }
  .titlecell .what, .titlecell .note { grid-column: 2; }
  .titlecell .what { align-self: end; }
  .titlecell .note { align-self: start; }
  .titlecell .desc { grid-column: 1 / -1; margin-top: 0; max-width: none; }
}
@media (max-width: 560px) {
  .titlecell { row-gap: 2px; }
  .titlecell .art { grid-column: 1; grid-row: 1 / span 2; }
  .titlecell .what { grid-row: 1; }
  .titlecell .note { grid-row: 2; }
  .titlecell .desc { grid-row: 3; margin-top: 8px; }
}
/* align column headings with the mix titles, not the artwork */
#series .ledger thead th:nth-child(2), #live .ledger thead th:nth-child(2) { padding-left: 110px; }
@media (max-width: 560px) { #series .ledger thead th:nth-child(2), #live .ledger thead th:nth-child(2) { padding-left: 84px; } }
.ledger td { vertical-align: top; }
.titlecell .art { display: block; margin-top: 2px; }
.titlecell .what { line-height: 1.25; }
