/* ===========================================================================
   WISCRIPT — THE QUACK INNOVATION AWARDS
   The billing on the page, and the theatre it opens into. Two registers: the
   ceremony (gold, velvet, moonlight) and the reel that was not supposed to be
   in the machine (red, grain, tape). Same bones, different lamps.
   =========================================================================== */

/* ------------------------------------------------------------- the billing */
.qia-bill { text-align: center; }
.qia-bill .legend { color: var(--duck); }
.qia-bill h2 {
  font-size: clamp(30px, 6.4vw, 54px); line-height: 1.04;
  margin: 12px 0 0; font-variation-settings: 'opsz' 48;
}
.qia-bill p { margin: 12px auto 0; max-width: 54ch; }
.qia-bill__bulbs {
  display: flex; justify-content: center; gap: 9px;
  margin: var(--base) 0 var(--wide); list-style: none; padding: 0;
}
.qia-bill__bulbs i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--duck); opacity: .22;
  animation: qia-bulb 1.9s infinite steps(1, end);
}
.qia-bill__bulbs i:nth-child(2) { animation-delay: .19s; }
.qia-bill__bulbs i:nth-child(3) { animation-delay: .38s; }
.qia-bill__bulbs i:nth-child(4) { animation-delay: .57s; }
.qia-bill__bulbs i:nth-child(5) { animation-delay: .76s; }
.qia-bill__bulbs i:nth-child(6) { animation-delay: .95s; }
.qia-bill__bulbs i:nth-child(7) { animation-delay: 1.14s; }
@keyframes qia-bulb {
  0%, 22%   { opacity: 1; box-shadow: 0 0 10px rgba(255,210,63,.75); }
  23%, 100% { opacity: .22; box-shadow: none; }
}
.switch.qia-open {
  background: var(--duck); color: var(--ink-on-duck);
  padding: 14px 22px; font-size: 12px;
}
.switch.qia-open:hover { background: #ffdd70; }
.switch.qia-open:active { background: #e6bd2f; }
.qia-bill__fine { margin-top: var(--base) !important; }

/* ---------------------------------------------------------------- theatre */
.qia {
  position: fixed; inset: 0; z-index: 9800;
  background: #04080a;
  color: #f4ecdc;
  font-family: 'Newsreader', Georgia, serif;
  opacity: 0; transition: opacity .55s ease;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  --qia-gold: #ffd23f;
  --qia-warm: #f6ead2;
  --qia-vel1: #52101a;
  --qia-vel2: #7a1a26;
  --qia-vel3: #380a12;
}
.qia.is-in { opacity: 1; }
.qia--dark {
  --qia-gold: #ff3b5c;
  --qia-warm: #ffd9de;
  --qia-vel1: #2a0208;
  --qia-vel2: #4a0410;
  --qia-vel3: #170105;
  background: #0a0203;
}

/* the room: a pool of light on a dark floor, plus dust */
.qia__room {
  position: relative; overflow: hidden; min-height: 0;
  display: grid; place-items: center;
  padding: clamp(18px, 4vw, 46px);
}
.qia__room::before {
  content: ''; position: absolute; inset: -10%;
  background:
    radial-gradient(60% 46% at 50% 34%, rgba(255,210,63,.13), transparent 70%),
    radial-gradient(90% 70% at 50% 120%, rgba(255,210,63,.07), transparent 70%);
  pointer-events: none;
}
.qia--dark .qia__room::before {
  background:
    radial-gradient(58% 44% at 50% 34%, rgba(255,59,92,.16), transparent 70%),
    radial-gradient(90% 70% at 50% 120%, rgba(120,0,30,.22), transparent 70%);
}
.qia__grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .05;
  background-image: var(--shimmer); background-size: 120px 120px;
  animation: qia-grain 1.1s steps(3, end) infinite;
}
.qia--dark .qia__grain { opacity: .16; }
@keyframes qia-grain {
  0%   { transform: translate3d(0,0,0); }
  33%  { transform: translate3d(-18px, 9px, 0); }
  66%  { transform: translate3d(11px, -14px, 0); }
  100% { transform: translate3d(0,0,0); }
}

/* two spotlights crossing the stage */
.qia__beam {
  position: absolute; top: -34%; width: 46vmax; height: 120vmax;
  pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(to bottom, rgba(255,210,63,.16), rgba(255,210,63,0) 62%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  opacity: 0; transition: opacity .9s ease;
}
.qia--dark .qia__beam { background: linear-gradient(to bottom, rgba(255,59,92,.2), rgba(255,59,92,0) 62%); }
.qia.is-lit .qia__beam { opacity: 1; }
.qia__beam--l { left: -18vmax; animation: qia-sweep-l 13s ease-in-out infinite alternate; }
.qia__beam--r { right: -18vmax; animation: qia-sweep-r 11s ease-in-out infinite alternate; }
@keyframes qia-sweep-l { from { transform: rotate(9deg); } to { transform: rotate(26deg); } }
@keyframes qia-sweep-r { from { transform: rotate(-9deg); } to { transform: rotate(-26deg); } }

/* velvet */
.qia__curtain {
  position: absolute; top: 0; bottom: 0; width: 52%;
  background:
    repeating-linear-gradient(90deg,
      var(--qia-vel3) 0 10px, var(--qia-vel1) 10px 26px,
      var(--qia-vel2) 26px 34px, var(--qia-vel1) 34px 50px);
  box-shadow: 0 0 80px rgba(0,0,0,.7) inset;
  transition: transform 1.5s cubic-bezier(.65,.02,.2,1);
  z-index: 4;
}
.qia__curtain--l { left: 0; transform: translateX(0); }
.qia__curtain--r { right: 0; transform: translateX(0); }
.qia.is-open .qia__curtain--l { transform: translateX(-101%); }
.qia.is-open .qia__curtain--r { transform: translateX(101%); }
.qia__pelmet {
  position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 5;
  background:
    repeating-linear-gradient(90deg,
      var(--qia-vel3) 0 10px, var(--qia-vel1) 10px 26px,
      var(--qia-vel2) 26px 34px, var(--qia-vel1) 34px 50px);
  -webkit-mask-image: radial-gradient(22px 26px at 22px 100%, transparent 98%, #000 100%);
  mask-image: radial-gradient(22px 26px at 22px 100%, transparent 98%, #000 100%);
  -webkit-mask-size: 44px 100%; mask-size: 44px 100%;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}

/* --------------------------------------------------------------- the stage */
.qia__stage {
  position: relative; z-index: 6;
  width: min(760px, 100%); text-align: center;
  max-height: 100%; min-height: 0; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,210,63,.3) transparent;
}
.qia__scene { min-height: min(52vh, 430px); display: grid; align-content: center; gap: var(--base); padding: 6px 2px; }
.qia p { max-width: none; margin: 0; }
.qia .qia__cite   { max-width: 56ch; margin: 0 auto; }
.qia .qia__speech { max-width: 52ch; margin: 0 auto; }
.qia .qia__say    { max-width: 54ch; margin: 0 auto; }

.qia__marquee {
  font-size: clamp(26px, 5.6vw, 58px); line-height: 1.02; font-weight: 560;
  letter-spacing: -.02em; color: var(--qia-warm);
  text-shadow: 0 0 38px rgba(255,210,63,.3);
}
.qia--dark .qia__marquee { text-shadow: 0 0 34px rgba(255,59,92,.45); }
.qia__marquee b { color: var(--qia-gold); font-weight: 560; }
.qia__sub {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244,236,220,.55);
}

.qia__nomlabel { transition: opacity .4s ease, max-height .5s var(--ease); max-height: 2em; }
.qia__nomlabel.is-out { opacity: 0; max-height: 0; overflow: hidden; }
.qia__cat {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: clamp(11px, 1.6vw, 13px); letter-spacing: .26em; text-transform: uppercase;
  color: var(--qia-gold);
}
.qia__rule {
  width: 62px; height: 2px; margin: 0 auto; background: var(--qia-gold); opacity: .55;
  transform: scaleX(0); transform-origin: 50%;
  animation: qia-rule .7s var(--ease) forwards;
}
@keyframes qia-rule { to { transform: scaleX(1); } }

.qia__noms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qia__noms li {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,210,63,.14);
  border-radius: 10px; padding: 13px 16px;
  display: grid; gap: 3px; text-align: left;
  opacity: 0; transform: translateY(10px);
  animation: qia-nom .5s var(--ease) forwards;
}
.qia--dark .qia__noms li { border-color: rgba(255,59,92,.22); }
.qia__noms li:nth-child(2) { animation-delay: .5s; }
.qia__noms li:nth-child(3) { animation-delay: 1s; }
.qia__noms li:nth-child(4) { animation-delay: 1.5s; }
@keyframes qia-nom { to { opacity: 1; transform: none; } }
.qia__nom-n { font-size: 19px; font-weight: 600; color: var(--qia-warm); }
.qia__nom-m {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 12.5px; color: rgba(244,236,220,.55); line-height: 1.5;
}
.qia__noms {
  transition: opacity .45s ease, max-height .55s var(--ease), margin .45s ease;
  max-height: 600px;
}
.qia__noms.is-out { opacity: 0; max-height: 0; margin: 0; overflow: hidden; }
.qia__noms li.is-won {
  border-color: var(--qia-gold);
  background: rgba(255,210,63,.1);
  box-shadow: 0 0 0 1px var(--qia-gold), 0 18px 40px -22px rgba(255,210,63,.5);
}

/* the envelope */
.qia__env { display: grid; place-items: center; gap: 12px; }
.qia__env-card {
  width: 210px; height: 128px; position: relative;
  background: linear-gradient(#fbf3e2, #e8dcc2);
  border-radius: 6px; box-shadow: 0 22px 44px -18px rgba(0,0,0,.8);
  animation: qia-shake 1.5s ease-in-out infinite;
}
.qia__env-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(#d9cbaa, #cabb98);
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  transform-origin: top; transition: transform .7s cubic-bezier(.4,1.4,.5,1);
}
.qia__env-card::after {
  content: ''; position: absolute; left: 50%; top: 58%; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #e2604f, #8a1d15);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.qia__env.is-open .qia__env-card { animation: none; }
.qia__env.is-open .qia__env-card::before { transform: rotateX(178deg); }
.qia__env.is-open .qia__env-card::after { opacity: 0; transition: opacity .2s; }
@keyframes qia-shake {
  0%, 100% { transform: rotate(-1.4deg) translateY(0); }
  50%      { transform: rotate(1.4deg) translateY(-4px); }
}

/* the winner */
.qia__winner { display: grid; gap: 12px; justify-items: center; }
.qia__trophy { width: 84px; height: 84px; filter: drop-shadow(0 10px 22px rgba(255,210,63,.35)); }
.qia__win-n {
  font-size: clamp(30px, 6vw, 56px); line-height: 1.05; font-weight: 600;
  color: var(--qia-gold); letter-spacing: -.02em;
  animation: qia-stamp .5s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes qia-stamp {
  from { transform: scale(1.5); opacity: 0; filter: blur(8px); }
  to   { transform: none; opacity: 1; filter: none; }
}
.qia__cite { max-width: 56ch; margin: 0 auto; color: rgba(244,236,220,.85); font-size: 17px; }
.qia__speech {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 13px; color: rgba(244,236,220,.55); max-width: 52ch; margin: 0 auto;
}

/* the host */
.qia__host { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.qia__host svg { width: 92px; height: 74px; animation: qia-bob 2.6s ease-in-out infinite; }
@keyframes qia-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
.qia__podium {
  width: 118px; height: 78px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(#1c2f3a, #10202a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 30px -20px #000;
  display: grid; place-items: center;
}
.qia__podium span {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: .2em; color: var(--qia-gold); opacity: .8;
}
.qia__say {
  min-height: 3.2em; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.5;
  max-width: 54ch; margin: 0 auto; color: var(--qia-warm);
}
.qia__say i { font-style: normal; opacity: .35; }

/* the projector panel — dark reel only */
.qia__proj {
  position: relative; width: min(420px, 84vw); max-height: 30vh; aspect-ratio: 16/10;
  margin: 0 auto; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -28px #000, 0 0 0 1px rgba(255,59,92,.3);
}
.qia__proj::before {
  content: ''; position: absolute; inset: -14px;
  background:
    repeating-conic-gradient(#3a2a30 0 25%, #171114 0 50%) 0 0 / 26px 26px,
    radial-gradient(60% 60% at 40% 40%, #5a3038, #170f12);
  filter: blur(9px) saturate(.7);
}
.qia__proj::after {
  content: 'CENSORED'; position: absolute; inset: 42% 0 auto;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 17px; letter-spacing: .44em; text-indent: .44em; text-align: center;
  color: #0c0406; background: var(--qia-gold); padding: 8px 0;
}
.qia__projwrap { position: relative; margin-bottom: 26px; }
.qia__projtag {
  position: absolute; inset: auto 0 -26px; text-align: center;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .2em; color: rgba(255,217,222,.6);
}

/* the tape button */
.qia__tape {
  border: 0; border-radius: 9px; cursor: pointer;
  background: var(--qia-gold); color: #16060a;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 22px;
  box-shadow: 0 0 0 0 rgba(255,59,92,.6);
  animation: qia-pulse 1.8s ease-out infinite;
}
@keyframes qia-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,92,.55); }
  100% { box-shadow: 0 0 0 22px rgba(255,59,92,0); }
}
.qia__tape:hover { filter: brightness(1.08); }

/* redaction */
.qia__red { background: currentColor; border-radius: 2px; }

/* glitch, for when the wrong reel loads */
.qia.is-glitch .qia__stage { animation: qia-glitch .42s steps(2, end) 3; }
@keyframes qia-glitch {
  0%   { transform: translate(0,0);   filter: none; }
  25%  { transform: translate(-9px,3px); filter: hue-rotate(-60deg) saturate(2); }
  50%  { transform: translate(7px,-4px); filter: invert(1); }
  75%  { transform: translate(-4px,-2px); filter: hue-rotate(80deg); }
  100% { transform: translate(0,0); filter: none; }
}
.qia__bars {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,.06) 0 2px, transparent 2px 5px);
}
.qia.is-glitch .qia__bars { opacity: 1; }

/* ------------------------------------------------------------- the console */
.qia__console {
  position: relative; z-index: 7;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px clamp(14px, 3vw, 28px);
  background: rgba(4,8,10,.9);
  border-top: 1px solid rgba(255,210,63,.16);
}
.qia--dark .qia__console { border-top-color: rgba(255,59,92,.24); }
.qia__rail { display: flex; gap: 5px; flex: 1 1 auto; min-width: 100px; }
.qia__rail i {
  height: 3px; flex: 1 1 0; border-radius: 2px; background: rgba(244,236,220,.16);
  transition: background-color .3s ease;
}
.qia__rail i.is-done { background: rgba(255,210,63,.45); }
.qia__rail i.is-now  { background: var(--qia-gold); }
.qia__btn {
  border: 1px solid rgba(244,236,220,.22); background: transparent; color: var(--qia-warm);
  border-radius: 8px; padding: 9px 13px; cursor: pointer;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.qia__btn:hover { border-color: var(--qia-gold); color: var(--qia-gold); }
.qia__btn--x { border-color: rgba(244,236,220,.4); }

/* ------------------------------------------------------------------ confetti */
.qia__fall { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.qia__fall span { position: absolute; top: -40px; font-size: 22px; line-height: 1; }

@media (max-width: 620px) {
  .qia__scene { min-height: 62vh; }
  .qia__host svg { width: 66px; height: 54px; }
  .qia__podium { width: 92px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .qia__beam, .qia__grain, .qia__fall { display: none; }
  .qia__curtain { transition: none; }
  .qia__env-card, .qia__host svg, .qia__tape { animation: none; }
  .qia__noms li { animation-duration: .01s; }
}

.qia__trophy { color: var(--qia-gold); }
.qia-bill__bulbs li { display: contents; }

/* ------------------------------------------------------------- the clips */
/* the showcase reel: every winner cuts to a few seconds of itself. no video
   ships with the page, so each clip is divs pretending to be footage. */
.qia__clip { margin: 2px auto 0; width: min(460px, 86vw); }
.qia__clip-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px; background: #060d0f;
  box-shadow: 0 30px 60px -30px #000, 0 0 0 1px rgba(255,210,63,.22);
  animation: qia-clipin .5s cubic-bezier(.2,.9,.3,1) both;
}
.qia--dark .qia__clip-frame { box-shadow: 0 30px 60px -30px #000, 0 0 0 1px rgba(255,59,92,.3); }
@keyframes qia-clipin {
  from { transform: scaleY(.04); opacity: 0; filter: brightness(3); }
  60%  { transform: scaleY(1.02); opacity: 1; }
  to   { transform: none; opacity: 1; }
}
.qia__clip-bars, .qia__clip-flick { position: absolute; inset: 0; pointer-events: none; }
.qia__clip-bars {
  background:
    linear-gradient(#000 0 7%, transparent 7% 93%, #000 93% 100%),
    repeating-linear-gradient(rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.qia__clip-flick {
  background: radial-gradient(120% 80% at 50% 40%, rgba(255,240,200,.09), transparent 70%);
  animation: qia-flick .16s steps(2, end) infinite;
}
@keyframes qia-flick { 0% { opacity: .35; } 100% { opacity: .85; } }
.qia__clip-tag {
  margin: 8px auto 0; text-align: center;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,236,220,.42);
}
.qia__clip-tag b { color: var(--qia-gold); font-weight: 500; margin-right: 8px; }

/* the citation waits for the footage to finish */
.qia__winner.is-clipped .qia__cite   { animation: qia-late .7s ease both 4.3s; }
.qia__winner.is-clipped .qia__speech { animation: qia-late .7s ease both 4.9s; }
.qia__winner.is-clipped .qia__tape   { animation: qia-late .7s ease both 5.3s; }
@keyframes qia-late { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* shared clip furniture */
.qc {
  position: absolute; inset: 7% 0; display: grid; place-items: center;
  padding: 12px 16px 30px; color: #eadfc9;
  font-family: 'Spline Sans Mono', ui-monospace, monospace; font-size: 10px;
}
.qc-cap {
  position: absolute; inset: auto 12px 8px; text-align: center;
  font-size: 9.5px; letter-spacing: .04em; color: rgba(234,223,201,.62);
  animation: qia-late .6s ease both 1.3s;
}
.qc-type {
  overflow: hidden; white-space: nowrap; margin: 0 auto; max-width: 90%;
  animation: qia-late .01s ease both 1.2s, qc-type 2.2s steps(46, end) both 1.3s;
}
@keyframes qc-type { from { max-width: 0; } to { max-width: 92%; } }

/* quack tv */
.qc-tv { background: radial-gradient(75% 90% at 50% 35%, #14313d, #050b0e); }
.qc-tv::before {
  content: 'NOW PLAYING'; position: absolute; top: 12px; left: 0; right: 0; text-align: center;
  font-size: 9px; letter-spacing: .3em; color: rgba(255,210,63,.6);
  animation: qia-late .5s ease both .9s;
}
.qc-tv__play {
  width: 0; height: 0; border-left: 30px solid rgba(255,210,63,.92);
  border-top: 19px solid transparent; border-bottom: 19px solid transparent;
  filter: drop-shadow(0 0 18px rgba(255,210,63,.45));
  animation: qc-play 2.6s cubic-bezier(.3,1.5,.4,1) infinite;
}
@keyframes qc-play {
  0%   { transform: scale(.3); opacity: 0; }
  22%  { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
.qc-tv__bar {
  position: absolute; left: 14%; right: 14%; bottom: 30%; height: 3px;
  background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden;
}
.qc-tv__bar i { display: block; height: 100%; width: 0; background: var(--qia-gold); animation: qc-fill 4s linear both .4s; }
@keyframes qc-fill { to { width: 100%; } }
.qc-tv__scan {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(transparent, rgba(160,220,255,.09), transparent);
  animation: qc-scan 2.4s linear infinite;
}
@keyframes qc-scan { from { transform: translateY(-110%); } to { transform: translateY(260%); } }

/* the replay terminal */
.qc-chart { align-items: flex-end; justify-content: center; grid-auto-flow: column; gap: 4px; background: #06100f; }
.qc-candle {
  width: 7px; height: var(--h); margin-bottom: var(--b);
  background: #3ddc97; border-radius: 1px; transform-origin: bottom;
  box-shadow: 0 0 10px rgba(61,220,151,.28);
  animation: qc-grow .34s cubic-bezier(.2,1.4,.4,1) both var(--d);
}
.qc-candle.is-dn { background: #ff5f7a; box-shadow: 0 0 10px rgba(255,95,122,.3); }
@keyframes qc-grow { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
.qc-chart__edge {
  position: absolute; top: 8%; bottom: 22%; right: 12%; width: 1px;
  background: repeating-linear-gradient(var(--qia-gold) 0 4px, transparent 4px 9px);
  animation: qia-late .4s ease both 2.1s;
}

/* the memories page */
.qc-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; align-content: center; width: 78%; }
.qc-grid i {
  aspect-ratio: 4 / 3; border-radius: 4px;
  background: linear-gradient(140deg, #2b4a58, #14252d);
  box-shadow: 0 8px 18px -10px #000, inset 0 0 0 1px rgba(255,255,255,.07);
  animation: qc-photo .5s cubic-bezier(.2,1.3,.4,1) both var(--d);
}
@keyframes qc-photo {
  from { opacity: 0; transform: translateY(10px) rotate(var(--r)) scale(.9); filter: saturate(0); }
  to   { opacity: 1; transform: rotate(var(--r)); filter: none; }
}

/* the mischief layer */
.qc-brow { align-content: center; gap: 7px; width: 82%; }
.qc-brow__dots { display: flex; gap: 5px; align-self: start; }
.qc-brow__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); }
.qc-brow__url {
  position: relative; width: 100%; height: 22px; border-radius: 11px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.qc-brow__url b {
  position: absolute; inset: 0; display: grid; align-content: center;
  padding-left: 12px; font-weight: 400; font-size: 10px;
}
.qc-u1 { color: rgba(234,223,201,.8); animation: qc-out .3s ease both 1.6s; }
.qc-u2 { color: #ff5f7a; animation: qia-late .35s ease both 1.75s; }
@keyframes qc-out { to { opacity: 0; transform: translateX(-8px); } }
.qc-brow__page {
  width: 100%; height: 42px; border-radius: 6px; background: rgba(255,255,255,.05);
  animation: qc-redirect 1.4s steps(1, end) both 1.7s;
}
@keyframes qc-redirect {
  0%, 24% { background: rgba(255,255,255,.05); }
  25%, 49% { background: rgba(255,95,122,.28); }
  50%, 74% { background: rgba(255,255,255,.05); }
  75%, 100% { background: rgba(255,95,122,.4); }
}

/* the lyric pipeline */
.qc-wave { align-items: center; justify-content: center; grid-auto-flow: column; gap: 3px; }
.qc-wave i {
  width: 4px; height: var(--h); border-radius: 2px;
  background: linear-gradient(#ffd23f, #f4912b); opacity: .75;
  animation: qc-bounce 1.1s ease-in-out infinite alternate var(--d);
}
@keyframes qc-bounce { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.qc-words { position: absolute; inset: auto 0 34%; display: flex; justify-content: center; gap: 8px; }
.qc-words b {
  font-family: 'Newsreader', Georgia, serif; font-size: 17px; font-weight: 500;
  color: #fff6e0; text-shadow: 0 2px 16px rgba(0,0,0,.8);
  animation: qc-word .5s cubic-bezier(.2,1.6,.4,1) both var(--d);
}
@keyframes qc-word { from { opacity: 0; transform: translateY(12px) scale(.8); } to { opacity: 1; transform: none; } }

/* the bother system */
.qc-nags { align-content: center; }
.qc-nags i {
  position: absolute; left: 50%; top: 32%; width: 54%; height: 26px; border-radius: 6px;
  translate: calc(-50% + var(--x)) var(--y);
  background: linear-gradient(90deg, rgba(255,210,63,.24), rgba(255,210,63,.07));
  box-shadow: inset 0 0 0 1px rgba(255,210,63,.3), 0 10px 20px -12px #000;
  animation: qc-nag .45s cubic-bezier(.2,1.5,.4,1) both var(--d);
}
@keyframes qc-nag { from { opacity: 0; translate: calc(-50% + var(--x)) calc(var(--y) - 14px); } to { opacity: 1; } }

/* watchdog */
.qc-up { align-items: flex-end; justify-content: center; grid-auto-flow: column; gap: 2px; }
.qc-up i {
  width: 6px; height: 46%; border-radius: 1px; background: #3ddc97; opacity: .85;
  transform-origin: bottom; animation: qc-grow .2s ease both var(--d);
}
.qc-up i.is-bad { background: #ff5f7a; height: 12%; animation: qc-grow .2s ease both var(--d), qc-blip .7s ease-in-out 2 3s; }
@keyframes qc-blip { 50% { box-shadow: 0 0 14px 3px rgba(255,95,122,.7); } }

/* the design canvas */
.qc-canvas { background: repeating-conic-gradient(rgba(255,255,255,.035) 0 25%, transparent 0 50%) 0 0 / 18px 18px; }
.qc-canvas__box {
  position: absolute; left: 14%; top: 22%; width: 34%; height: 26%; border-radius: 5px;
  background: rgba(255,210,63,.16); box-shadow: inset 0 0 0 1px var(--qia-gold);
  animation: qc-drag 2s cubic-bezier(.5,0,.2,1) both .3s;
}
@keyframes qc-drag {
  from { translate: 0 0; scale: .7; }
  60%  { translate: 62% 14%; scale: 1; }
  to   { translate: 62% 14%; scale: 1; }
}
.qc-canvas__cur {
  position: absolute; left: 14%; top: 22%; width: 0; height: 0;
  border-left: 8px solid #fff; border-bottom: 11px solid transparent; border-right: 5px solid transparent;
  animation: qc-drag 2s cubic-bezier(.5,0,.2,1) both .3s;
}
.qc-code { position: absolute; inset: auto 12px 22%; display: grid; gap: 3px; text-align: left; }
.qc-code b { font-weight: 400; font-size: 9px; color: rgba(255,210,63,.78); animation: qia-late .4s ease both var(--d); }

/* the fleet */
.qc-fleet { grid-auto-flow: column; gap: 6px; }
.qc-fleet i { font-size: 19px; filter: grayscale(1) brightness(.5); animation: qc-lightup .5s ease both var(--d); }
@keyframes qc-lightup {
  from { filter: grayscale(1) brightness(.4); transform: translateY(6px); opacity: .3; }
  to   { filter: none; transform: none; opacity: 1; }
}

/* paint the world */
.qc-paint { grid-template-columns: repeat(10, 1fr); gap: 3px; width: 74%; align-content: center; }
.qc-paint i {
  aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.06);
  animation: qc-splat .4s cubic-bezier(.2,1.5,.4,1) both var(--d);
}
@keyframes qc-splat {
  from { transform: scale(.2); opacity: .2; background: rgba(255,255,255,.06); }
  to   { transform: none; opacity: 1; background: hsl(var(--c) 72% 58%); }
}

/* the art pipeline */
.qc-rig svg { width: 68%; overflow: visible; }
.qc-rig__p {
  fill: none; stroke: var(--qia-gold); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: qc-draw 1.6s ease both .2s;
}
@keyframes qc-draw { to { stroke-dashoffset: 0; } }
.qc-rig__j circle { fill: #fff; animation: qia-late .4s ease both 1.5s; }
.qc-rig__s { fill: rgba(255,210,63,.22); stroke: rgba(255,210,63,.5); stroke-width: 1; animation: qc-skin .9s ease both 2.1s; }
@keyframes qc-skin { from { opacity: 0; filter: blur(7px); } to { opacity: 1; filter: none; } }

/* the memory system */
.qc-notes { align-content: center; gap: 6px; width: 72%; justify-items: start; }
.qc-notes i {
  height: 4px; width: var(--w); border-radius: 2px; background: rgba(234,223,201,.3);
  animation: qc-write .45s ease both var(--d); transform-origin: left;
}
@keyframes qc-write { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.qc-card {
  margin-top: 6px; padding: 7px 11px; border-radius: 6px; font-size: 9.5px;
  background: rgba(255,210,63,.12); box-shadow: inset 0 0 0 1px rgba(255,210,63,.32);
  color: #ffe9a8; animation: qia-late .5s ease both 1.9s;
}

/* the voice duck */
.qc-mic { align-content: center; gap: 12px; }
.qc-meter { display: flex; align-items: center; gap: 4px; height: 34px; }
.qc-meter i {
  width: 4px; height: 100%; border-radius: 2px; background: var(--qia-gold); opacity: .8;
  animation: qc-bounce .62s ease-in-out infinite alternate var(--d);
}
.qc-bubble {
  padding: 7px 12px; border-radius: 12px 12px 12px 3px; font-size: 10px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  animation: qia-late .5s ease both 1.2s;
}

/* lifetime achievement */
.qc-mont { overflow: hidden; }
.qc-mont__strip { display: flex; gap: 14px; font-size: 24px; animation: qc-slide 7s linear both; }
@keyframes qc-slide { from { transform: translateX(28%); } to { transform: translateX(-46%); } }

/* reel two */
.qc-red { align-content: center; gap: 8px; justify-items: center; background: #160a0d; }
.qc-red i {
  height: 13px; width: var(--w); border-radius: 2px; background: #0b0406;
  box-shadow: 0 0 0 1px rgba(255,59,92,.35);
  animation: qc-redact .35s steps(2, end) both var(--d);
}
@keyframes qc-redact { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .qia__clip { width: 92vw; }
  .qc-cap { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .qia__clip-flick, .qc-tv__scan { animation: none; opacity: .4; }
  .qc-mont__strip { animation-duration: 14s; }
  .qia__winner.is-clipped .qia__cite,
  .qia__winner.is-clipped .qia__speech,
  .qia__winner.is-clipped .qia__tape { animation-delay: 0s; }
}
