/* Synthia: Club of the Dead. Palette is the club's own: cherry on graveyard teal, bone paper, mustard light. */
.cotd {
  --night: #0b2627; --deep: #123b3c; --teal: #2a7f7a; --sea: #8fd6c8;
  --cherry: #d7262f; --bone: #f3e6c8; --mustard: #e9b949;
  background: var(--night); color: var(--bone);
}
.cotd .sitebar, .cotd .foot { background: var(--night); }
.cotd .mark { color: var(--mustard); }
.cotd .fat { line-height: .88; }
.cotd video, .cotd canvas { display: block; }
.cotd main { overflow-x: clip; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 1. hero ---------- */
.hero-club { position: relative; height: calc(100vh - 76px); height: calc(100svh - 76px); min-height: 520px; overflow: hidden; background: var(--night); }
.club { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; }
.club .plane { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 50%; backface-visibility: hidden; }
.hero-club::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 18, 19, .55)); }
.hero-copy { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(16px, 4vh, 48px); width: min(46rem, 58vw); padding: clamp(18px, 3vh, 34px) clamp(18px, 2.4vw, 36px); background: var(--bone); color: var(--night); border-radius: 6px; box-shadow: 10px 10px 0 var(--cherry); transform: rotate(1.2deg); }
.hero-copy .meta { display: flex; align-items: center; gap: .6em; color: var(--cherry); }
.beat-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--cherry); display: inline-block; transform: scale(var(--pulse, .6)); }
.stomp { margin: .25em 0 .35em; line-height: .84; }
.stomp-vis { display: block; }
.stomp .w { display: inline-block; font-weight: 900; transform-origin: 50% 100%; will-change: transform; }
.w-a { display: block !important; font-size: clamp(26px, min(6vh, 3.6vw), 58px); font-variation-settings: "wdth" 125, "wght" 900; color: var(--teal); margin-bottom: .1em; }
.w-b, .w-d { font-size: clamp(54px, min(15vh, 9.4vw), 168px); font-variation-settings: "wdth" 62, "wght" 900; letter-spacing: -.01em; text-transform: uppercase; }
.w-c { font-size: clamp(22px, min(5vh, 3vw), 50px); font-variation-settings: "wdth" 100, "wght" 800; vertical-align: .9em; color: var(--teal); }
.w-d { color: var(--cherry); }
.hero-copy .lede { font-size: clamp(16px, min(2.4vh, 1.45vw), 22px); line-height: 1.32; font-weight: 600; max-width: 34em; }
.press { margin-top: .9em; display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; font-weight: 700; font-size: 15px; color: var(--teal); }
.press button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .6em; }
.press button:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 4px; }
.press .hold { margin-left: auto; padding: .45em .8em; border-radius: 4px; border: 2px solid var(--teal); font-size: 14px; }
.press kbd { font: 900 18px/1 Archivo; font-variation-settings: "wdth" 110, "wght" 900; padding: .35em .6em; border-radius: 4px; background: var(--night); color: var(--mustard); box-shadow: 0 4px 0 var(--cherry); }

/* ---------- 2. flipbook ---------- */
.flip { height: 520vh; background: var(--deep); position: relative; }
.flip-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 4vw; align-items: center; padding: 6vh var(--gutter); }
.flip h2 { font-size: min(11vh, 5.8vw); color: var(--mustard); }
.flip-day { margin: 3vh 0 1vh; font-weight: 900; font-variation-settings: "wdth" 62, "wght" 900; font-size: min(14vh, 8vw); line-height: .9; color: var(--bone); }
.flip-of { font-size: .35em; font-variation-settings: "wdth" 100, "wght" 700; color: var(--sea); }
.flip-cap { font-size: clamp(17px, min(2.7vh, 1.6vw), 25px); line-height: 1.32; font-weight: 500; min-height: 6.6em; max-width: 30em; }
.flip-ticks { list-style: none; padding: 0; display: flex; gap: 6px; margin-top: 2vh; }
.flip-ticks li { flex: 1; height: 6px; border-radius: 3px; background: rgba(243, 230, 200, .18); overflow: hidden; }
.flip-ticks li i { display: block; height: 100%; width: 100%; background: var(--cherry); transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }
.flip-pages { position: relative; aspect-ratio: 16 / 9; perspective: 1800px; min-width: 0; width: 100%; }
.flip-pages figure { position: absolute; inset: 0; transform-origin: 50% 0; backface-visibility: hidden; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: var(--night); }
.flip-pages figure img { width: 100%; height: 100%; object-fit: cover; }
.flip-pages figcaption { padding: 10px 14px 14px; font-size: 16px; line-height: 1.35; background: var(--night); }
.flip-pages figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, var(--shade, 0))); pointer-events: none; }

/* ---------- 3. how a character gets made ---------- */
.make { height: 520vh; background: var(--bone); color: var(--night); position: relative; }
.make-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4vw; align-items: center; padding: 5vh var(--gutter); }
.make h2 { font-size: min(10vh, 5.6vw); color: var(--cherry); margin-bottom: 3vh; }
.mk-steps { list-style: none; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 1.2vh; }
.mk-steps li { counter-increment: s; position: relative; padding-left: 2.6em; font-size: clamp(15px, min(2.2vh, 1.3vw), 21px); line-height: 1.32; opacity: .32; transition: opacity .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1); }
.mk-steps li::before { content: attr(data-n); position: absolute; left: 0; top: -.05em; width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--night); color: var(--mustard); }
.mk-steps li.on { opacity: 1; transform: translateX(.4em); }
.mk-steps li.on::before { background: var(--cherry); color: var(--bone); }
.make-stage { height: 84vh; display: grid; place-items: center; }
.make-stage canvas { width: 100%; height: 100%; object-fit: contain; }

/* ---------- what we threw away ---------- */
.scrap { background: var(--cherry); color: var(--bone); padding: 9vh var(--gutter); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.scrap h2 { font-size: min(13vh, 7.6vw); color: var(--bone); }
.scrap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.scrap article { background: var(--bone); color: var(--night); border-radius: 6px; padding: clamp(18px, 2.6vh, 30px); transform: rotate(var(--r, 0deg)); box-shadow: 6px 6px 0 var(--night); }
.scrap article:nth-child(1) { --r: -1.2deg; } .scrap article:nth-child(2) { --r: .8deg; } .scrap article:nth-child(3) { --r: -.5deg; }
.scrap article:nth-child(4) { --r: 1deg; } .scrap article:nth-child(5) { --r: -.9deg; } .scrap article:nth-child(6) { --r: .6deg; }
.scrap h3 { font-size: clamp(22px, min(3.8vh, 2.2vw), 38px); font-weight: 900; font-variation-settings: "wdth" 80, "wght" 900; line-height: 1; margin-bottom: .45em; color: var(--cherry); text-decoration: line-through; text-decoration-thickness: .12em; text-decoration-color: var(--night); }
.scrap p { font-size: clamp(15px, min(2.2vh, 1.25vw), 20px); line-height: 1.34; }
.scrap-note { font-weight: 700; font-size: clamp(16px, min(2.4vh, 1.4vw), 22px); max-width: 44em; }

/* ---------- 4. the fight ---------- */
.fight { background: var(--night); padding: 9vh var(--gutter); display: flex; flex-direction: column; gap: 4vh; }
.fight-head { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 3vw; align-items: center; }
.fight h2 { font-size: min(13vh, 7.4vw); color: var(--bone); }
.fight-head p { font-size: clamp(16px, min(2.5vh, 1.45vw), 23px); line-height: 1.32; font-weight: 500; max-width: 32em; }
.fill123 { display: flex; gap: clamp(8px, 1vw, 16px); }
.fill123 i { --k: 0; position: relative; width: clamp(38px, 4.6vw, 70px); aspect-ratio: 1; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 4px var(--bone); }
.fill123 i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mustard); transform: scale(var(--k)); }
.fill123 i.hit { box-shadow: inset 0 0 0 4px var(--bone), 0 0 0 5px var(--cherry); }
.fight-main { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; box-shadow: 12px 12px 0 var(--cherry); }
.fight-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.fight-cards figure { background: var(--deep); border-radius: 8px; overflow: hidden; }
.fight-cards video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.fight-cards figcaption { padding: 14px 16px 18px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.35; }
.fight-cards b { color: var(--mustard); }

/* ---------- 5. planes ---------- */
.planes { height: 420vh; background: var(--deep); position: relative; }
.planes-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3vw; align-items: center; padding: 6vh var(--gutter); }
.planes h2 { font-size: min(10vh, 5.4vw); color: var(--mustard); margin-bottom: 2.4vh; }
.planes-text p { font-size: clamp(16px, min(2.4vh, 1.4vw), 22px); line-height: 1.33; font-weight: 500; }
.plane-list { list-style: none; padding: 0; margin-top: 3vh; display: flex; flex-direction: column-reverse; gap: .5vh; }
.plane-list li { font-weight: 800; font-size: clamp(14px, min(2.1vh, 1.2vw), 19px); padding: .35em .7em; border-left: 5px solid rgba(243, 230, 200, .2); opacity: .45; transition: opacity .3s, border-color .3s; }
.plane-list li.on { opacity: 1; border-color: var(--cherry); }
.club-boxed { position: relative; inset: auto; aspect-ratio: 16 / 9; width: 100%; overflow: visible; perspective: 2200px; }
.club-boxed .stack { position: absolute; inset: 0; transform-style: preserve-3d; }
.club-boxed .plane { outline: 1px solid rgba(243, 230, 200, var(--edge, 0)); border-radius: 4px; }

/* ---------- 6. cast ---------- */
.cast { background: var(--bone); color: var(--night); padding: 9vh var(--gutter); }
.cast h2 { font-size: min(11vh, 6.4vw); color: var(--cherry); }
.cast-lede { font-size: clamp(16px, min(2.5vh, 1.45vw), 23px); line-height: 1.32; font-weight: 500; max-width: 40em; margin: 2vh 0 5vh; }
.cast-group { margin-bottom: 6vh; }
.cast-group h3 { font-weight: 900; font-variation-settings: "wdth" 62, "wght" 900; font-size: clamp(30px, min(6vh, 3.6vw), 60px); line-height: .9; text-transform: uppercase; color: var(--teal); border-bottom: 4px solid var(--night); padding-bottom: .15em; margin-bottom: 2vh; }
.cast-row { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 22px); align-items: flex-end; }
.who { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 12px; border-radius: 8px; background: radial-gradient(70% 60% at 50% 70%, rgba(42, 127, 122, .22), transparent 70%); transition: transform .3s cubic-bezier(.34, 1.3, .64, 1); }
.who:hover, .who:focus-visible { transform: translateY(-6px) rotate(-1deg); }
.who:focus-visible { outline: 3px solid var(--cherry); outline-offset: 2px; }
.sprite { height: var(--h, 200px); width: calc(var(--h, 200px) * var(--ar)); background-repeat: no-repeat; background-size: auto 100%; }
.who b { font-weight: 900; font-variation-settings: "wdth" 90, "wght" 900; font-size: 17px; line-height: 1.05; text-align: center; }
.who small { font-weight: 600; font-size: 14px; color: var(--teal); text-align: center; max-width: 13em; line-height: 1.2; }
.sheet-box { margin: auto; border: 0; padding: 0; max-width: min(1200px, 94vw); background: var(--bone); color: var(--night); border-radius: 8px; box-shadow: 14px 14px 0 var(--cherry); }
.sheet-box::backdrop { background: rgba(5, 18, 19, .82); }
.sheet-box img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.sheet-box p { padding: 12px 18px 16px; font-weight: 700; }
.sheet-close { position: absolute; right: 10px; top: 10px; font: 800 15px/1 Archivo; padding: 10px 14px; border: 0; border-radius: 4px; background: var(--night); color: var(--bone); cursor: pointer; }

/* ---------- 7. crew ---------- */
.crew { background: var(--mustard); color: var(--night); padding: 9vh var(--gutter); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.crew h2 { font-size: min(12vh, 7vw); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2vw; }
.stats div { border-top: 5px solid var(--night); padding-top: 1vh; display: flex; flex-direction: column-reverse; }
.stats dd { font-weight: 900; font-variation-settings: "wdth" 62, "wght" 900; font-size: min(17vh, 10vw); line-height: .85; font-variant-numeric: tabular-nums; color: var(--cherry); }
.stats dt { font-weight: 800; font-size: clamp(15px, 1.3vw, 19px); }
.crew-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.crew-grid article { background: var(--bone); border-radius: 6px; padding: clamp(16px, 2.4vh, 28px); }
.crew-grid h3 { font-weight: 900; font-variation-settings: "wdth" 100, "wght" 900; font-size: clamp(22px, min(3.6vh, 2vw), 34px); margin-bottom: .3em; color: var(--teal); }
.crew-grid p { font-size: clamp(15px, min(2.1vh, 1.2vw), 19px); line-height: 1.34; }
.next-up { font-weight: 900; font-variation-settings: "wdth" 110, "wght" 900; font-size: clamp(20px, min(3.6vh, 2.2vw), 34px); }

/* ---------- small screens ---------- */
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .hero-copy { width: auto; left: var(--gutter); right: var(--gutter); transform: rotate(-.8deg); }
  .flip { height: 460vh; }
  .flip-pin, .make-pin, .planes-pin { grid-template-columns: 1fr; align-content: center; gap: 3vh; padding-block: 3vh; }
  .flip h2, .make h2, .planes h2 { font-size: 10vw; }
  .flip-day { font-size: 13vw; margin: 1vh 0; }
  .flip-cap { min-height: 5.4em; font-size: 16px; }
  .make-stage { height: 46vh; }
  .make-pin { grid-template-rows: auto auto; }
  .mk-steps { display: block; }
  .mk-steps li { font-size: 15px; display: none; }
  .mk-steps li.on { display: block; transform: none; }
  .scrap-grid, .fight-cards, .crew-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vw; }
  .fight-head { grid-template-columns: 1fr; }
  .scrap h2, .fight h2, .cast h2, .crew h2 { font-size: 12vw; }
  .plane-list { display: none; }
  .planes-pin { grid-template-rows: auto auto; }
  .club-boxed { margin-top: 6vh; }
}
@media (prefers-reduced-motion: reduce) {
  .flip, .make, .planes { height: auto; }
  .flip-pin, .make-pin, .planes-pin { position: static; height: auto; }
  .flip-pages { aspect-ratio: auto; display: grid; gap: 12px; }
  .flip-pages figure { position: static; aspect-ratio: 16 / 9; }
  .mk-steps li { opacity: 1; }
}

/* ---------- project nav and the D / A pad ---------- */
.proj-nav .navlinks a { font-variation-settings: "wdth" 90, "wght" 800; }
.proj-nav .navlinks a[aria-current="true"] { color: var(--mustard); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.press-hint { flex-basis: 100%; font-weight: 600; font-size: 14px; color: var(--teal); }
.press .dkey + .dkey { margin-left: .4em; }
.pad { position: fixed; z-index: 40; right: var(--gutter); bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: var(--night); color: var(--bone); box-shadow: 6px 6px 0 var(--cherry); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.pad.on { opacity: 1; transform: none; pointer-events: auto; }
.pad button { all: unset; cursor: pointer; }
.pad button:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 4px; }
.pad kbd { display: inline-block; font: 900 18px/1 Archivo; padding: .4em .62em; border-radius: 4px; background: var(--bone); color: var(--night); box-shadow: 0 4px 0 var(--cherry); }
.pad button:active kbd { transform: translateY(3px); box-shadow: 0 1px 0 var(--cherry); }
.pad-at { font-weight: 800; font-size: 14px; min-width: 7.5em; text-align: center; }
@media (max-width: 820px) { .pad { left: var(--gutter); right: var(--gutter); justify-content: space-between; } }

/* ---------- cast: versus portraits and busts ---------- */
.vs-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); margin-bottom: 7vh; }
.vs, .bust { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.vs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 8px 8px 0 var(--night); transition: transform .3s cubic-bezier(.34, 1.3, .64, 1); }
.vs:nth-child(odd) img { transform: rotate(-1deg); } .vs:nth-child(even) img { transform: rotate(1deg); }
.vs:hover img, .vs:focus-visible img { transform: translateY(-8px) rotate(0) scale(1.02); }
.vs b { font-weight: 900; font-variation-settings: "wdth" 80, "wght" 900; font-size: clamp(18px, 1.6vw, 26px); line-height: 1; margin-top: 8px; }
.vs small, .bust small { font-weight: 600; font-size: 14px; color: var(--teal); }
.bust-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.bust img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--night); transition: transform .3s cubic-bezier(.34, 1.3, .64, 1); }
.bust:hover img, .bust:focus-visible img { transform: scale(1.06) rotate(-2deg); }
.bust b { font-weight: 900; font-size: 16px; line-height: 1.1; text-align: center; } .bust small { text-align: center; }
.vs:focus-visible, .bust:focus-visible { outline: 3px solid var(--cherry); outline-offset: 4px; border-radius: 8px; }
.box-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; background: var(--bone); }
.box-sprite { height: min(46vh, 380px); width: calc(min(46vh, 380px) * var(--ar, .5)); background-repeat: no-repeat; margin: 0 16px 8px 0; }
.box-sprite[hidden] { display: none; }
.cine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.cine figure { background: var(--deep); border-radius: 8px; overflow: hidden; }
.cine video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.cine figcaption { padding: 14px 16px 18px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.35; }
.cine b { color: var(--mustard); }
@media (max-width: 820px) {
  .vs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-row .vs:first-child { grid-column: span 2; }
  .bust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-body, .cine { grid-template-columns: 1fr; } .box-sprite { justify-self: center; }
}
