/* ============================================================
   NEZUYAKI — shared design system
   Layout concept: scrapbook/zine — torn-edge cards tacked onto a
   halftone-dotted paper ground, rotated slightly off-grid, bold
   folded-corner tags standing in for washi tape.
   ============================================================ */


:root {
  /* ---- locked brand tokens (Oct 7, 2026) ---- */
  --yellow: #FFCF4A;
  --pink: #FF3B96;
  --ink: #000000;
  --paper: #FFFFFF;

  /* ---- supporting neutrals, warm-biased toward yellow ---- */
  --paper-warm: #FFFBF1;
  --paper-dim: #FFF4D9;
  --ink-soft: #2A2420;

  /* ---- fonts ---- */
  --font-display: 'Climate Crisis', 'Impact', sans-serif;
  --font-body: 'Lexend', 'Helvetica Neue', Arial, sans-serif;

  /* ---- scaled border weights ---- */
  --border-sm: 2px;
  --border-md: 3px;
  --border-lg: 11px;

  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* ---- halftone texture, used liberally ---- */
.halftone {
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.09) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
}

.halftone-pink {
  background-image:
    radial-gradient(circle, rgba(255,59,150,0.35) 2px, transparent 2.1px);
  background-size: 16px 16px;
}

.halftone-yellow {
  background-image:
    radial-gradient(circle, rgba(255,207,74,0.5) 2px, transparent 2.1px);
  background-size: 16px 16px;
}

/* ============================================================
   Folded-corner tag component
   ============================================================ */
.tag {
  position: relative;
  display: inline-block;
  padding: 6px 18px 6px 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm) solid var(--ink);
  transform: rotate(-2deg);
}
.tag::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  background: var(--paper);
  border-left: var(--border-sm) solid var(--ink);
  border-bottom: var(--border-sm) solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.tag.pink { background: var(--pink); color: var(--paper); }
.tag.straight { transform: rotate(1.5deg); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border-md) solid var(--ink);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 12px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.wordmark .dot { color: var(--pink); font-family: var(--font-body); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.btn-pink { background: var(--pink); color: var(--paper); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn:active { transform: translateY(1px); }

.hamburger {
  width: 42px; height: 42px;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 20px; height: 2.5px; background: var(--ink);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--yellow);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.nav-overlay[hidden] { display: none; }
.nav-overlay .close-row {
  display: flex; justify-content: flex-end;
}
.nav-overlay .close-btn {
  width: 42px; height: 42px;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 11vw, 56px);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: var(--border-sm) solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { border-bottom-color: var(--ink); }
.nav-foot {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 16px;
  border-top: var(--border-sm) solid var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
}
.nav-foot a { text-decoration: underline; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  border-bottom: var(--border-lg) solid var(--ink);
  background: var(--paper-warm);
  overflow: hidden;
}
.hero .container {
  position: relative;
  padding-block: 56px 48px;
  display: grid;
  gap: 18px;
}
.hero .eyebrow-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 11vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--pink); }
.hero p.lede {
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.hero-strip {
  margin-top: 28px;
  display: flex;
  gap: 0;
  border-top: var(--border-sm) solid var(--ink);
}
.hero-strip .cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 16px;
  border-right: var(--border-sm) solid var(--ink);
}
.hero-strip .cell:last-child { border-right: none; }
.hero-strip .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--pink);
}
.hero-strip .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  padding-block: 52px;
  border-bottom: var(--border-md) solid var(--ink);
  position: relative;
}
.section.texture { }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 48px);
}
.section-head .view-all {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-bottom: var(--border-sm) solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* generic torn-edge card */
.card {
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  padding: 18px;
  position: relative;
}
.card.rot-l { transform: rotate(-1.4deg); }
.card.rot-r { transform: rotate(1.4deg); }
.card .kicker {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.card .go {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: var(--border-sm) solid var(--ink);
}

.grid-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* ---- featured content carousel (horizontal scroll) ---- */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--ink); }
.carousel .card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

/* ---- Kuneho link-out, secondary weight ---- */
.kuneho-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--paper-dim);
  border: var(--border-sm) solid var(--ink);
  padding: 16px 20px;
}
.kuneho-card .txt { font-size: 14px; color: var(--ink-soft); max-width: 48ch; }
.kuneho-card strong { font-family: var(--font-body); font-weight: 800; color: var(--ink); }

/* ---- footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 40px 28px;
}
.site-footer .container {
  display: grid;
  gap: 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.footer-top .wordmark { color: var(--paper); }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 14px;
}
.footer-links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 18px;
}

/* ---- stub page ---- */
.stub {
  padding-block: 64px;
  text-align: left;
}
.stub .tag { margin-bottom: 18px; }
.stub h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 72px);
  margin-bottom: 14px;
}
.stub p {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.stub .back {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: var(--border-sm) solid var(--ink);
}

@media (max-width: 640px) {
  .hero-strip { flex-wrap: wrap; }
  .hero-strip .cell { flex: 1 1 50%; border-bottom: var(--border-sm) solid var(--ink); }
}

/* ============================================================
   v2 additions — nav redesign, social icons, motion system
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- hamburger -> X morph ---- */
.hamburger span {
  transition: transform .32s cubic-bezier(.65,0,.35,1), opacity .2s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- comic speech-bubble nav panel ---- */
.nav-overlay {
  background: transparent;
  pointer-events: none;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
}
.nav-overlay .scrim {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: rgba(10,8,6,0.28);
  opacity: 0;
  transition: opacity .28s ease;
}
.nav-overlay.is-open .scrim { opacity: 1; }
.nav-overlay .bubble {
  position: relative;
  pointer-events: auto;
  margin: calc(14px + env(safe-area-inset-top, 0px)) 16px 0 0;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--yellow);
  border: var(--border-md) solid var(--ink);
  border-radius: 26px 26px 6px 26px;
  box-shadow: 8px 8px 0 0 var(--ink);
  padding: 22px 22px 20px;
  transform: scale(.85) translateY(-16px);
  opacity: 0;
  transform-origin: top right;
  transition: transform .34s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
}
.nav-overlay.is-open .bubble { transform: scale(1) translateY(0); opacity: 1; }
/* speech-bubble tail, pointing up toward the hamburger */
.nav-overlay .bubble::after {
  content: "";
  position: absolute;
  top: -16px; right: 34px;
  width: 30px; height: 20px;
  background: var(--yellow);
  border-left: var(--border-md) solid var(--ink);
  border-top: var(--border-md) solid var(--ink);
  clip-path: polygon(0% 100%, 100% 100%, 55% 0%);
  transform: rotate(14deg);
}
.nav-overlay .close-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.nav-overlay .close-btn {
  width: 36px; height: 36px;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-links li {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.nav-overlay.is-open .nav-links li { opacity: 1; transform: translateX(0); }
.nav-overlay.is-open .nav-links li:nth-child(1) { transition-delay: .06s; }
.nav-overlay.is-open .nav-links li:nth-child(2) { transition-delay: .11s; }
.nav-overlay.is-open .nav-links li:nth-child(3) { transition-delay: .16s; }
.nav-overlay.is-open .nav-links li:nth-child(4) { transition-delay: .21s; }
.nav-overlay.is-open .nav-links li:nth-child(5) { transition-delay: .26s; }

.nav-links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 34px);
  text-decoration: none;
  padding-block: 7px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), color .2s ease;
}
.nav-links a .squiggle {
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 10px;
  overflow: visible;
}
.nav-links a .squiggle path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset .38s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translate(5px, -2px);
  color: var(--pink);
}
.nav-links a:hover .squiggle path,
.nav-links a:focus-visible .squiggle path {
  stroke-dashoffset: 0;
}

.nav-foot {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: var(--border-sm) solid var(--ink);
}

/* ---- social icon badges (shared: nav bubble + footer) ---- */
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: var(--border-sm) solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-soft);
  color: var(--paper);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), background-color .18s ease;
  text-decoration: none;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover,
.social-icon:focus-visible { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.social-icon.twitch:hover { background: #9146FF; }
.social-icon.tiktok:hover { background: #111111; }
.social-icon.instagram:hover { background: #D6249F; }
.social-icon.youtube:hover { background: #FF0000; }
.social-icon.discord:hover { background: #5865F2; }
.footer-socials .social-icon { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }

/* ---- scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- float + pulse (CTA attention) ---- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,150,0.45); }
  50% { box-shadow: 0 0 0 10px rgba(255,59,150,0); }
}
.btn-attn {
  animation: float-y 2.6s ease-in-out infinite, pulse-glow 2.6s ease-in-out infinite;
}

/* ---- count-up number ---- */
.num[data-count] { font-variant-numeric: tabular-nums; }

/* ---- "pick a card from your hand" fan hover ---- */
.fan-row { display: flex; gap: 22px; flex-wrap: wrap; }
.fan-row .card {
  transition: transform .3s cubic-bezier(.34,1.2,.64,1), box-shadow .3s ease;
  cursor: pointer;
}
.fan-row.is-hovering .card { transform: translateX(var(--fan-x, 0)) scale(0.97); }
.fan-row .card.is-active {
  transform: translateY(-14px) scale(1.06) !important;
  box-shadow: 10px 12px 0 0 var(--ink);
  z-index: 5;
  background: var(--yellow) !important;
}

/* ---- media/illustration card overlay (Portfolio / Blog / Featured) ---- */
.media-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.media-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-card .thumb img, .media-card .thumb video {
  width: 100%; height: 100%; object-fit: cover;
}
.media-card .overlay {
  position: absolute; inset: 0;
  background: var(--pink);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
  transition: opacity .25s ease;
}
.media-card:hover .overlay,
.media-card:focus-visible .overlay { opacity: 0.6; }
.media-card .overlay .meta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease .05s, transform .25s ease .05s;
  color: var(--paper);
  font-family: var(--font-body);
}
.media-card:hover .overlay .meta,
.media-card:focus-visible .overlay .meta { opacity: 1; transform: translateY(0); }
.media-card .overlay .meta strong { display: block; font-size: 15px; }
.media-card .overlay .meta span { font-size: 12.5px; opacity: .85; }
.media-card .zoom-icon {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: var(--border-sm) solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease, transform .2s ease;
}
.media-card:hover .zoom-icon, .media-card:focus-visible .zoom-icon { opacity: 1; transform: scale(1); }
.media-card .zoom-icon svg { width: 15px; height: 15px; }

/* ---- platform stamp (Featured Moments) ---- */
.platform-stamp {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: var(--border-sm) solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(12deg);
  color: var(--paper);
  z-index: 2;
}
.platform-stamp svg { width: 17px; height: 17px; fill: currentColor; }
.platform-stamp.yt { background: #FF0000; }
.platform-stamp.tw { background: #9146FF; }
.platform-stamp.ig { background: #D6249F; }
.platform-stamp.tt { background: #111111; }

/* ---- vertical stacked stat cards (Plaguefest) ---- */
.stat-columns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.stat-col {
  flex: 1 1 180px;
  min-width: 150px;
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 260px;
}
.stat-col:nth-child(odd) { transform: rotate(-1.2deg); }
.stat-col:nth-child(even) { transform: rotate(1.2deg); margin-top: 16px; }
.stat-col .stat-tag {
  font-family: var(--font-body); font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: .07em; color: var(--pink);
}
.stat-col .stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1;
  margin-top: auto;
}
.stat-col .stat-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   v3 — jagged comic nav panel, worm squiggle, marquees,
   horizontal stat rows, varied photo cards
   ============================================================ */

/* header sits above the nav layer so the hamburger -> X stays visible */
.site-header { z-index: 120; }
.nav-overlay { z-index: 100; }
.nav-overlay .close-row { display: none; }

/* bubble: shape is drawn by injected SVG polygons (see interactions.js) */
.nav-overlay .bubble {
  margin: calc(68px + env(safe-area-inset-top, 0px)) max(16px, calc((100vw - 1120px) / 2 + 20px)) 0 0;
  width: min(400px, calc(100vw - 32px));
  max-height: none;
  overflow: visible;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 66px 34px 36px 30px;
  isolation: isolate;
}
.nav-overlay .bubble::after { display: none; }
.bubble-shadow, .bubble-shape, .bubble-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}
.bubble-shadow { transform: translate(9px, 9px); }
.bubble-shadow polygon { fill: var(--ink); }
.bubble-shape polygon {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.bubble-dots {
  clip-path: polygon(2% 13%, 78% 9.5%, 91% 0%, 89% 6.5%, 96% 5%, 95% 8.5%, 99% 8%, 100% 96%, 3% 100%, 0% 55%);
  background-image: radial-gradient(circle, rgba(0,0,0,0.16) 1.6px, transparent 1.7px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 0% 100%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 0% 100%, #000 0%, transparent 62%);
}

.nav-links { align-items: flex-end; text-align: right; gap: 0; }
.nav-links li { transform: translateX(18px); }
.nav-links a {
  border-bottom: none !important;
  white-space: nowrap;
  font-size: clamp(24px, 7.4vw, 33px);
  line-height: 1.05;
  padding-block: 7px 9px;
}
.nav-links a:hover,
.nav-links a:focus-visible { transform: translateY(-4px); color: var(--pink); }

/* worm squiggle: revealed left-to-right on hover, waves crawl continuously */
.nav-links a .squiggle {
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 12px;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .38s cubic-bezier(.65,0,.35,1);
}
.nav-links a .squiggle path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  animation: worm .7s linear infinite;
}
.nav-links a:hover .squiggle,
.nav-links a:focus-visible .squiggle { clip-path: inset(0 0 0 0); }
@keyframes worm { from { transform: translateX(0); } to { transform: translateX(-20px); } }

.nav-foot { justify-content: flex-end; }

/* buttons grow slightly on hover; float uses `translate` so the two compose */
.btn { transition: scale .2s cubic-bezier(.34,1.56,.64,1), background-color .18s ease; }
.btn:hover, .btn:focus-visible { scale: 1.07; }
@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* links styled as cards */
a.card { display: block; text-decoration: none; color: inherit; }

/* ---- marquee carousels ---- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 26px 32px;
  margin-block: -14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee-track,
.marquee-track.fan-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  align-items: center;
  animation: marquee-rtl var(--marquee-dur, 40s) linear infinite;
}
.marquee[data-dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee-track > .card {
  flex: 0 0 auto;
  width: var(--w, 240px);
  margin-right: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .marquee-track.fan-row { animation: none !important; }
  .marquee { overflow-x: auto; }
}

/* portfolio: photo-print cards in varied sizes */
.photo-card { padding: 10px; }
.photo-card .thumb { aspect-ratio: var(--ar, 4/3); }
.thumb.tone-yellow { background-color: var(--yellow); }
.thumb.tone-pink { background-color: var(--pink); }
.thumb.tone-dim { background-color: var(--paper-dim); }
.thumb .ph {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  opacity: .55;
}
.thumb.tone-pink .ph { color: var(--paper); opacity: .8; }

/* ---- Plaguefest: stacked horizontal stat rows ---- */
.stat-rows { display: grid; gap: 18px; }
.stat-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px 24px;
}
.stat-row:nth-child(odd) { transform: rotate(-0.6deg); margin-right: 7%; }
.stat-row:nth-child(even) { transform: rotate(0.6deg); margin-left: 7%; }
.stat-row.yellow { background: var(--yellow); }
.stat-row.pink { background: var(--pink); }
.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 5.5ch;
  font-variant-numeric: tabular-nums;
}
.stat-row .stat-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 4px; }
.stat-row .stat-tag {
  font-family: var(--font-body); font-weight: 800; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--pink);
}
.stat-row.pink .stat-tag { color: var(--ink); }
.stat-row .stat-label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.stat-row.pink .stat-label { color: var(--ink); }
@media (max-width: 640px) {
  .stat-row:nth-child(odd), .stat-row:nth-child(even) { margin-inline: 0; }
}

/* ============================================================
   v4 — roomier nav, page wipe, Nez art, sparkles, outlines,
   asymmetric section buttons, countdown badge
   ============================================================ */

:root {
  --alert: #FF2E2E;
  --outline-light: -1.5px -1.5px 0 var(--paper), 1.5px -1.5px 0 var(--paper), -1.5px 1.5px 0 var(--paper), 1.5px 1.5px 0 var(--paper), 0 1.5px 0 var(--paper), 0 -1.5px 0 var(--paper), 1.5px 0 0 var(--paper), -1.5px 0 0 var(--paper);
  --outline-dark: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink), 0 1.5px 0 var(--ink), 0 -1.5px 0 var(--ink), 1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink);
  --outline-light-thin: -1px -1px 0 var(--paper), 1px -1px 0 var(--paper), -1px 1px 0 var(--paper), 1px 1px 0 var(--paper);
}

/* ---- nav: more room so the longest link clears the panel edge ---- */
.nav-overlay .bubble {
  width: min(460px, calc(100vw - 32px));
  padding: 74px 46px 44px 48px;
}
.nav-links a { font-size: clamp(21px, 6vw, 33px); }

/* ---- header + metric outlines ---- */
.hero h1, .section-head h2, .stub h1, .stat-row .stat-num { text-shadow: var(--outline-light); }
.card h3 { text-shadow: var(--outline-light-thin); }
.hero h1 .accent, .hero-strip .num { text-shadow: var(--outline-dark); }

/* ---- asymmetric "see the full page" buttons ---- */
.section-head .view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm) solid var(--ink);
  border-radius: 3px 18px 5px 22px / 16px 4px 18px 3px;
  padding: 9px 18px 9px 15px;
  box-shadow: 4px 4px 0 var(--ink);
  rotate: -2deg;
  transition: scale .22s cubic-bezier(.34,1.56,.64,1), rotate .22s ease, box-shadow .22s ease, background-color .18s ease;
}
.section-head .view-all:hover,
.section-head .view-all:focus-visible {
  scale: 1.1;
  rotate: 1.5deg;
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ---- About Nez: illustration + cards ---- */
.about-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) 2fr;
  gap: 32px;
  align-items: center;
}
.about-split > * { min-width: 0; }
.nez-art {
  position: relative;
  margin: 0;
  opacity: 0;
  translate: -70px 0;
  transition: opacity .8s ease .15s, translate .9s cubic-bezier(.22,1,.36,1) .15s;
}
.reveal.is-visible .nez-art { opacity: 1; translate: 0 0; }
.nez-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.85));
  animation: art-bob 4.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes art-bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}
.nez-art .twinkle {
  position: absolute;
  width: 22px; height: 22px;
  animation: twinkle 2.4s ease-in-out infinite;
}
.nez-art .twinkle svg { width: 100%; height: 100%; }
.nez-art .twinkle.t1 { top: 4%; left: 6%; }
.nez-art .twinkle.t2 { top: 38%; right: -2%; width: 16px; height: 16px; animation-delay: .8s; }
.nez-art .twinkle.t3 { bottom: 12%; left: -2%; width: 18px; height: 18px; animation-delay: 1.5s; }
@keyframes twinkle {
  0%, 100% { scale: .2; opacity: 0; rotate: 0deg; }
  40%, 60% { scale: 1; opacity: 1; rotate: 45deg; }
}
@media (max-width: 820px) {
  .about-split { grid-template-columns: 1fr; }
  .nez-art { max-width: 280px; }
}

/* ---- starburst sparkles spawned on card hover ---- */
.sparkle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.sparkle {
  position: absolute;
  width: var(--s, 20px);
  height: var(--s, 20px);
  margin: calc(var(--s, 20px) / -2) 0 0 calc(var(--s, 20px) / -2);
  animation: sparkle-pop .85s cubic-bezier(.22,1,.36,1) forwards;
}
.sparkle svg { width: 100%; height: 100%; overflow: visible; }
@keyframes sparkle-pop {
  0%   { scale: 0; rotate: 0deg; opacity: 1; translate: 0 0; }
  45%  { scale: 1; rotate: 70deg; opacity: 1; }
  100% { scale: 0; rotate: 160deg; opacity: 0; translate: var(--dx, 0) var(--dy, 0); }
}

/* ---- countdown badge in the hero ---- */
.tag.countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 26px 9px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  animation: cd-nudge 4.5s ease-in-out infinite;
}
@keyframes cd-nudge {
  0%, 86%, 100% { scale: 1; }
  90% { scale: 1.09; }
  94% { scale: .97; }
}
.cd-dot {
  position: relative;
  flex: 0 0 auto;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 2px var(--paper);
}
.cd-dot::before, .cd-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--alert);
  animation: cd-ripple 1.8s ease-out infinite;
}
.cd-dot::after { animation-delay: .9s; }
@keyframes cd-ripple {
  from { scale: 1; opacity: .9; }
  to   { scale: 3.2; opacity: 0; }
}
.cd-num {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--pink);
  font-variant-numeric: tabular-nums;
}
.cd-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cd-clock {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

/* ---- comic page wipe between pages ---- */
html.wipe-arrive::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--pink);
}
.page-wipe { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.page-wipe .panel {
  position: absolute;
  top: -10%; bottom: -10%;
  left: -50%;
  width: 200%;
  border-inline: 8px solid var(--ink);
  transform: translateX(-120%) skewX(-12deg);
}
.page-wipe .p1 { background: var(--yellow); }
.page-wipe .p2 {
  background-color: var(--pink);
  background-image: radial-gradient(circle, rgba(0,0,0,0.18) 2px, transparent 2.1px);
  background-size: 14px 14px;
}
.page-wipe.is-covering .panel { transform: translateX(0) skewX(-12deg); }
.page-wipe.is-leaving .panel { animation: wipe-in .5s cubic-bezier(.65,0,.35,1) forwards; }
.page-wipe.is-leaving .p2 { animation-delay: .09s; }
.page-wipe.is-arriving .panel { animation: wipe-out .55s cubic-bezier(.65,0,.35,1) forwards; }
.page-wipe.is-arriving .p1 { animation-delay: .1s; }
@keyframes wipe-in  { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(0) skewX(-12deg); } }
@keyframes wipe-out { from { transform: translateX(0) skewX(-12deg); } to { transform: translateX(120%) skewX(-12deg); } }
/* failsafe: never leave the arrival cover up if the script doesn't run */
html.wipe-arrive::after { animation: wipe-failsafe .2s ease 1.6s forwards; }
@keyframes wipe-failsafe { to { opacity: 0; visibility: hidden; } }
.about-split .fan-row .card { flex: 1 1 calc(50% - 22px); min-width: 200px; }

/* ============================================================
   v5 — art overlap, cleaner outlines, bigger countdown
   ============================================================ */

/* ---- outlines: none on black text; thicker, smooth strokes on pink + Plaguefest metrics ---- */
.hero h1, .section-head h2, .stub h1, .card h3,
.hero h1 .accent, .hero-strip .num, .stat-row .stat-num { text-shadow: none; }
.hero h1 .accent, .hero-strip .num, .stat-row .stat-num { paint-order: stroke fill; }
.hero h1 .accent { -webkit-text-stroke: 7px var(--ink); }
.hero-strip .num { -webkit-text-stroke: 5px var(--ink); }
.stat-row .stat-num { -webkit-text-stroke: 7px var(--paper); }
.stat-row.pink .stat-num, .stat-row.yellow .stat-num { filter: drop-shadow(3px 3px 0 var(--ink)); }

/* ---- About Nez: art spans both card rows and overlaps into them ---- */
.about-split {
  grid-template-columns: 340px 1fr;
  align-items: stretch;
}
.nez-art {
  position: relative;
  z-index: 6;
  pointer-events: none;
  min-height: 300px;
}
.nez-art img {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
.about-split .fan-row { align-content: center; }
.about-split .fan-row .card:nth-child(odd) { padding-left: 58px; }
@media (max-width: 820px) {
  .about-split { grid-template-columns: 1fr; }
  .nez-art { height: 320px; max-width: none; }
  .nez-art img { left: 50%; translate: -50% 0; }
  .about-split .fan-row .card:nth-child(odd) { padding-left: 18px; }
}

/* ---- countdown: bigger, all-white text, tucked over the headline's corner ---- */
.hero .eyebrow-row { position: relative; z-index: 2; margin-bottom: -30px; margin-left: -14px; }
.tag.countdown {
  gap: 16px;
  padding: 13px 34px 13px 20px;
  transform: rotate(-4deg);
  box-shadow: 6px 6px 0 var(--pink);
}
.cd-dot { width: 18px; height: 18px; }
.cd-num { font-size: 56px; color: var(--paper); text-shadow: none; }
.cd-txt { font-size: 15px; color: var(--paper); gap: 4px; }
.cd-clock { font-size: 19px; color: var(--paper); }
@media (max-width: 640px) {
  .hero .eyebrow-row { margin-left: -6px; margin-bottom: -22px; }
  .cd-num { font-size: 44px; }
  .cd-txt { font-size: 13px; }
  .cd-clock { font-size: 16px; }
}
/* countdown: only nip the headline's corner, not cover it */
.hero .eyebrow-row { margin-bottom: -16px; margin-left: -22px; }
@media (max-width: 640px) {
  .hero .eyebrow-row { margin-bottom: -10px; margin-left: -8px; }
  .hero-strip .num { -webkit-text-stroke: 4px var(--ink); }
}
/* bottom row of About cards sits above the illustration so its text stays clear */
.about-split .fan-row .card:nth-child(n+3) { position: relative; z-index: 7; }
.about-split .fan-row .card:nth-child(3) { padding-left: 18px; }
/* breathing room between the pulse (and its ripples) and the day number */
.cd-dot { margin: 0 10px 0 6px; }

/* ============================================================
   v6 — Plaguefest page system: year banner, guest cards, GMG
   badges, embed slot, milestone ladder, Hall of Infestation
   ============================================================ */

:root {
  --bone: #F3EBD8;
  --candle: #F6A93B;
  --candle-deep: #C9671A;
  --moon: #D7DEEA;
  --moon-deep: #8E9AB0;
}

/* shared asymmetric button (also used by "Back to Home") */
.btn-asym, .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm) solid var(--ink);
  border-bottom: var(--border-sm) solid var(--ink);
  border-radius: 3px 18px 5px 22px / 16px 4px 18px 3px;
  padding: 9px 18px 9px 15px;
  box-shadow: 4px 4px 0 var(--ink);
  rotate: -2deg;
  cursor: pointer;
  transition: scale .22s cubic-bezier(.34,1.56,.64,1), rotate .22s ease, box-shadow .22s ease, background-color .18s ease;
}
.btn-asym:hover, .btn-asym:focus-visible, .back:hover, .back:focus-visible {
  scale: 1.1; rotate: 1.5deg; background: var(--pink); box-shadow: 6px 6px 0 var(--ink);
}
.back { margin-top: 30px; }
.btn-asym.pink { background: var(--pink); }
.btn-asym.pink:hover { background: var(--yellow); }

/* ---- full-width asymmetric year banner ---- */
.pf-banner {
  position: relative;
  background: var(--ink);
  clip-path: polygon(0 7%, 100% 0, 100% 89%, 0 100%);
  padding: 64px 0 74px;
  margin-top: 18px;
}
.pf-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--pink);
  background-image: radial-gradient(circle, rgba(0,0,0,0.16) 2px, transparent 2.1px);
  background-size: 15px 15px;
  clip-path: polygon(0 calc(7% + 11px), 100% 11px, 100% calc(89% - 11px), 0 calc(100% - 11px));
}
.pf-banner .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 34px;
}
.pf-year {
  font-family: var(--font-display);
  font-size: clamp(64px, 15vw, 170px);
  line-height: .85;
  color: var(--yellow);
  -webkit-text-stroke: 10px var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(6px 6px 0 var(--ink));
  rotate: -4deg;
  margin: 0;
}
.pf-year small { display: block; font-size: .32em; letter-spacing: .04em; color: var(--paper); }
.pf-banner-text { display: grid; gap: 8px; rotate: -2deg; min-width: 0; }
.pf-banner-text .pf-theme {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: .95;
  color: var(--paper);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
}
.pf-banner-text .pf-dates {
  display: inline-block;
  justify-self: start;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 28px);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--yellow);
  padding: 6px 16px;
  rotate: 1.5deg;
}
.pf-banner-text .pf-where { font-weight: 800; font-size: 15px; color: var(--ink); }

.pf-intro { padding-block: 36px 50px; display: grid; gap: 22px; }
.pf-intro p { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.pf-intro .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Tiltify embed slot ---- */
.embed-slot {
  border: var(--border-md) dashed var(--ink);
  background: var(--paper);
  padding: 26px;
  display: grid;
  gap: 16px;
  rotate: -.5deg;
}
.embed-slot .embed-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.embed-slot .raised { font-family: var(--font-display); font-size: clamp(30px, 6vw, 48px); line-height: 1; }
.embed-slot .raised span { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.progress {
  height: 30px;
  border: var(--border-md) solid var(--ink);
  background: var(--paper-dim);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}
.progress .fill {
  height: 100%;
  width: var(--pct, 0%);
  min-width: 6px;
  background-color: var(--pink);
  background-image: radial-gradient(circle, rgba(0,0,0,0.18) 1.8px, transparent 1.9px);
  background-size: 11px 11px;
  border-right: var(--border-md) solid var(--ink);
}
.embed-slot .note { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---- guest cards ---- */
.guest-card { display: flex; gap: 16px; align-items: center; }
.marquee-track > .guest-card { width: var(--w, 340px); }
.guest-avatar { position: relative; flex: 0 0 96px; width: 96px; height: 108px; }
.guest-avatar svg, .guest-avatar img { width: 100%; height: 100%; display: block; }
.guest-avatar img { object-fit: cover; clip-path: polygon(8% 2%, 98% 7%, 92% 98%, 2% 90%); }
.guest-info { min-width: 0; display: grid; gap: 4px; }
.guest-info h3 { margin: 0; font-size: 20px; line-height: 1.1; }
.guest-info .role { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.guest-info .joining { font-size: 12.5px; color: var(--ink-soft); }
.gmg-badge {
  position: absolute;
  top: -12px; left: -12px;
  width: 40px; height: 40px;
  rotate: -14deg;
  z-index: 2;
  animation: badge-spin 6s linear infinite;
}
.gmg-badge svg { width: 100%; height: 100%; overflow: visible; }
@keyframes badge-spin { 0%, 100% { rotate: -14deg; } 50% { rotate: 6deg; } }
.gmg-tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--pink);
  color: var(--paper);
  border: var(--border-sm) solid var(--ink);
  border-radius: 999px 6px 999px 6px;
  padding: 2px 8px;
  text-shadow: none;
}
.guest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.guest-grid.fan-row { display: grid; }
.year-block { display: grid; gap: 18px; padding-block: 8px 34px; }
.year-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.year-head .yr {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
}
.year-head .yr-note { font-size: 13.5px; color: var(--ink-soft); }
.year-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.year-chips a {
  font-family: var(--font-display);
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-sm) solid var(--ink);
  padding: 6px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: scale .2s cubic-bezier(.34,1.56,.64,1), background-color .18s;
}
.year-chips a:nth-child(odd) { rotate: -2deg; }
.year-chips a:nth-child(even) { rotate: 2deg; }
.year-chips a:hover, .year-chips a:focus-visible { scale: 1.1; background: var(--yellow); }

/* ---- milestone ladder ---- */
.tiers { display: grid; gap: 20px; }
.tier {
  border: var(--border-md) solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}
.tier:nth-child(odd) { rotate: -.4deg; }
.tier:nth-child(even) { rotate: .4deg; }
.tier > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 18px 22px;
}
.tier > summary::-webkit-details-marker { display: none; }
.tier .tier-name { font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px); line-height: 1; }
.tier .tier-range {
  font-weight: 800; font-size: 14px; letter-spacing: .05em;
  background: var(--yellow); border: var(--border-sm) solid var(--ink); padding: 3px 10px;
}
.tier .chev {
  margin-left: auto;
  width: 34px; height: 34px;
  border: var(--border-sm) solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  transition: rotate .3s cubic-bezier(.34,1.56,.64,1);
}
.tier[open] .chev { rotate: 180deg; }
.tier[open] > summary { border-bottom: var(--border-sm) solid var(--ink); background: var(--paper-dim); }
.ms-list { list-style: none; margin: 0; padding: 8px 22px 18px; display: grid; }
.ms {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1.5px dashed rgba(0,0,0,.25);
}
.ms:last-child { border-bottom: none; }
.ms-amt { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.ms-body { display: grid; gap: 3px; min-width: 0; }
.ms-name { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.ms-body strong { font-size: 16px; }
.ms-body small { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.ms.is-big .ms-amt { color: var(--pink); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
/* crossed off once Tiltify passes the amount */
.ms.is-reached .ms-body strong, .ms.is-reached .ms-amt { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.ms.is-reached::after {
  content: "INFECTED!";
  position: absolute;
  right: 4px; top: 50%;
  translate: 0 -50%;
  rotate: -10deg;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--pink);
  border: 3px solid var(--pink);
  padding: 2px 8px;
  background: var(--paper);
}

/* locked stretch tier */
.tier.locked {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--paper);
  padding: 28px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  cursor: not-allowed;
}
.tier.locked::before, .tier.locked::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  height: 22px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
  border-block: 2px solid var(--ink);
}
.tier.locked::before { top: 10px; rotate: -3deg; }
.tier.locked::after { bottom: 10px; rotate: 2deg; }
.tier.locked .lock { position: relative; z-index: 1; width: 54px; height: 62px; flex: 0 0 auto; }
.tier.locked .lock-text { position: relative; z-index: 1; display: grid; gap: 4px; min-width: 0; padding-block: 18px; }
.tier.locked .tier-name { color: var(--yellow); }
.tier.locked .lock-text small { color: rgba(255,255,255,.75); font-size: 14px; }
.tier.locked.shake { animation: lock-shake .45s ease; }
@keyframes lock-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -8px 0; } 40% { translate: 7px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; }
}

/* ---- Hall of Infestation ---- */
.hall {
  background-color: var(--ink);
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  color: var(--paper);
}
.hall .section-head h2 { color: var(--paper); }
.hall .hall-lede { max-width: 60ch; color: rgba(255,255,255,.8); font-size: 15.5px; line-height: 1.55; margin: 0 0 26px; }
.head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.info-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: var(--border-sm) solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--pink);
  animation: info-bob 2.8s ease-in-out infinite;
  transition: scale .2s cubic-bezier(.34,1.56,.64,1);
}
.info-btn:hover, .info-btn:focus-visible { scale: 1.15; }
@keyframes info-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

.plaque-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 24px; padding-top: 10px; }
.plaque-wall.fan-row { display: grid; }
.card.plaque {
  --plaque-bg: var(--bone);
  position: relative;
  background: var(--plaque-bg);
  color: var(--ink);
  border: var(--border-md) solid var(--ink);
  box-shadow: 5px 5px 0 rgba(255,255,255,.18);
  padding: 22px 16px 18px;
  text-align: center;
  display: grid;
  gap: 6px;
  justify-items: center;
}
.fan-row .card.plaque.is-active { background: var(--plaque-bg) !important; box-shadow: 8px 10px 0 var(--pink); }
.plaque .p-icon { width: 46px; height: 46px; }
.plaque .p-name { font-family: var(--font-display); font-size: 20px; line-height: 1.05; }
.plaque .p-tier { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.plaque .ribbons { display: flex; gap: 4px; justify-content: center; min-height: 14px; }
.plaque .ribbons i { width: 10px; height: 16px; background: var(--pink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.plaque .ribbons i:nth-child(2) { background: var(--yellow); }
.plaque .ribbons i:nth-child(3) { background: var(--moon-deep); }
/* bone: dog-bone knobs on the corners */
.plaque.bone { border-radius: 18px; }
.plaque.bone::before, .plaque.bone::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bone);
  border: var(--border-md) solid var(--ink);
  box-shadow: 0 calc(100% + 0px) 0 0 transparent;
}
.plaque.bone::before { left: -14px; }
.plaque.bone::after { right: -14px; }
/* candlelit: arched top, warm glow, flickering flame */
.plaque.candle { --plaque-bg: linear-gradient(180deg, #FFD58A, var(--candle)); border-radius: 90px 90px 8px 8px; padding-top: 30px; }
.plaque.candle .flame { transform-origin: 50% 100%; animation: flicker 1.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { scale: 1 1; rotate: -3deg; } 30% { scale: .9 1.1; rotate: 4deg; } 60% { scale: 1.05 .92; rotate: -1deg; } }
/* moonsilver: cut-corner octagon, cool metal */
.plaque.moon {
  --plaque-bg: linear-gradient(135deg, #F2F5FA, var(--moon) 45%, var(--moon-deep));
  border: none;
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
  outline: none;
  box-shadow: inset 0 0 0 var(--border-md) var(--ink);
}
.fan-row .card.plaque.moon.is-active { box-shadow: inset 0 0 0 var(--border-md) var(--ink); }
/* radiant: rays spinning behind a gold-to-pink plate */
.plaque.radiant { --plaque-bg: linear-gradient(160deg, var(--yellow), #FF8FC2 70%, var(--pink)); overflow: visible; isolation: isolate; }
.plaque.radiant .rays {
  position: absolute;
  inset: -22px;
  z-index: -1;
  background: repeating-conic-gradient(var(--yellow) 0 10deg, transparent 10deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
          mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  animation: rays-spin 14s linear infinite;
}
@keyframes rays-spin { to { rotate: 360deg; } }
.plaque-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.8); }
.plaque-legend b { color: var(--yellow); }

/* ---- info modal ---- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal .modal-scrim { position: absolute; inset: 0; background: rgba(10,8,6,.55); }
.modal .modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border-md) solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  border-radius: 6px 26px 6px 26px;
  padding: 28px 28px 24px;
  rotate: -1deg;
  animation: modal-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-pop { from { scale: .8; opacity: 0; } to { scale: 1; opacity: 1; } }
.modal h3 { font-family: var(--font-display); font-size: 28px; margin: 0 40px 14px 0; }
.modal ol { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.modal .tier-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; background: var(--paper); border: var(--border-sm) solid var(--ink); padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.modal .tier-list b { font-variant-numeric: tabular-nums; }
.modal .modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper);
  font-size: 20px;
  cursor: pointer;
}
/* radiant plaque: card is a transparent frame; .plate draws the face above the rays */
.card.plaque.radiant { --plaque-bg: transparent; border: none; box-shadow: none; }
.fan-row .card.plaque.radiant.is-active { background: transparent !important; box-shadow: none; }
.plaque.radiant .rays { mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); z-index: 0; }
.plaque.radiant .plate {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--yellow), #FF8FC2 70%, var(--pink));
  border: var(--border-md) solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 rgba(255,255,255,.18);
}
.plaque.radiant > :not(.rays):not(.plate) { position: relative; z-index: 1; }
/* hidden always wins (modals, nav) even outside the artifact skeleton */
[hidden] { display: none !important; }
/* keep plaque rays / bone knobs from causing sideways scroll on phones */
.hall { overflow-x: clip; }

/* ============================================================
   v7 — Plaguefest polish: modal close, tracker type, bigger
   guests, tag wiggle, squash/stretch tiers, construction tape
   ============================================================ */

/* ---- modal: visible X, animated in AND out ---- */
.modal .modal-close {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  color: var(--ink);
  transition: scale .2s cubic-bezier(.34,1.56,.64,1), background-color .15s;
}
.modal .modal-close svg { width: 18px; height: 18px; }
.modal .modal-close:hover, .modal .modal-close:focus-visible { scale: 1.12; background: var(--pink); color: var(--paper); }
.modal .modal-scrim { animation: scrim-in .25s ease both; }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
.modal.is-closing .modal-scrim { animation: scrim-out .26s ease both; }
.modal.is-closing .modal-card { animation: modal-out .26s cubic-bezier(.55,0,.75,.3) both; }
@keyframes scrim-out { to { opacity: 0; } }
@keyframes modal-out { to { scale: .78; opacity: 0; rotate: 4deg; translate: 0 18px; } }
.modal-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 14px;
  font-weight: 800; font-size: 14px;
  background: none; border: none; cursor: pointer;
  border-bottom: var(--border-sm) solid var(--ink);
  padding: 2px 0;
  font-family: var(--font-body);
}

/* ---- tracker: big, loud raised amount ---- */
.embed-slot .raised {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.embed-slot .raised-amt {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 104px);
  line-height: .9;
  color: var(--pink);
  -webkit-text-stroke: 9px var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(5px 5px 0 var(--ink));
  rotate: -3deg;
  animation: amt-pulse 2.4s ease-in-out infinite;
}
@keyframes amt-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }
.embed-slot .raised-of {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 32px);
  line-height: 1;
  background: var(--ink);
  color: var(--yellow);
  padding: 8px 16px;
  rotate: 2deg;
}

/* ---- guests: bigger cards and photo slots ---- */
.marquee-track > .guest-card { width: var(--w, 430px); }
.guest-card { gap: 20px; padding: 20px; }
.guest-avatar { flex: 0 0 150px; width: 150px; height: 168px; }
.guest-info h3 { font-size: 23px; }
.guest-info .role { font-size: 14px; }
.guest-info .joining { font-size: 13.5px; }
@media (max-width: 520px) {
  .marquee-track > .guest-card { width: 300px; }
  .guest-avatar { flex-basis: 104px; width: 104px; height: 118px; }
}

/* ---- GMG badge + tag: breathing room and a two-frame wiggle ---- */
.gmg-badge { top: -16px; left: -16px; width: 52px; height: 52px; }
.gmg-tag {
  margin-left: 10px;
  padding: 4px 12px 3px;
  animation: two-frame 0.9s steps(1, end) infinite;
}
@keyframes two-frame { 0% { rotate: -5deg; } 50% { rotate: 4deg; } }

/* ---- milestone rows: amount column wide enough, never overlapping ---- */
.ms { grid-template-columns: 168px 1fr; gap: 22px; }
.ms-amt { font-size: 23px; white-space: nowrap; }
@media (max-width: 560px) {
  .ms { grid-template-columns: 1fr; gap: 6px; }
}
/* squash & stretch when a tier opens or closes */
.tier.squash { animation: squash .5s cubic-bezier(.34,1.4,.64,1); }
@keyframes squash {
  0%   { scale: 1 1; }
  25%  { scale: 1.03 .93; }
  55%  { scale: .985 1.04; }
  80%  { scale: 1.005 .99; }
  100% { scale: 1 1; }
}
.tier .ms-list { overflow: hidden; }

/* ---- plaques: every shape gets the pink hover shadow ---- */
.fan-row .card.plaque.is-active { box-shadow: 8px 10px 0 var(--pink); }
.card.plaque.moon { --plaque-bg: transparent; clip-path: none; box-shadow: none; }
.fan-row .card.plaque.moon.is-active { background: transparent !important; box-shadow: none; filter: drop-shadow(8px 10px 0 var(--pink)); }
.plaque.moon .plate {
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
}
.plaque.moon .plate::after {
  content: ""; position: absolute; inset: 3px;
  background: linear-gradient(135deg, #F2F5FA, var(--moon) 45%, var(--moon-deep));
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
}
.plaque.moon > :not(.plate) { position: relative; z-index: 1; }
.fan-row .card.plaque.radiant.is-active .plate { box-shadow: 8px 10px 0 var(--pink); }

/* ---- Hall: white ? on pink, caution-tape border (asymmetric) ---- */
.hall .info-btn { background: var(--pink); color: var(--paper); box-shadow: 3px 3px 0 var(--yellow); }
.hall .info-btn:hover, .hall .info-btn:focus-visible { background: var(--ink); }
.hall.taped { position: relative; padding-block: 86px 92px; }
.hall.taped::before, .hall.taped::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 20px, var(--ink) 20px 40px);
  border-block: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
  pointer-events: none;
}
.hall.taped::before { top: 14px; height: 30px; rotate: -1.6deg; left: -6%; }
.hall.taped::after { bottom: 18px; height: 22px; rotate: 1.1deg; right: -8%; }

/* ---- construction / work-in-progress theme ---- */
.wip-tape {
  overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
  border-block: 3px solid var(--ink);
  rotate: -1deg;
  margin: 18px -2% 0;
  padding: 6px 0;
}
.wip-tape .wip-track {
  display: flex;
  width: max-content;
  animation: marquee-rtl 26s linear infinite;
}
.wip-tape span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .04em;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 14px;
  margin-right: 26px;
  white-space: nowrap;
  border: 2px solid var(--ink);
}
.wip-panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border: var(--border-md) dashed var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(255,207,74,.28) 26px 52px);
  padding: 22px 24px;
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -.6deg;
}
.year-block:nth-of-type(even) .wip-panel { rotate: .6deg; }
.wip-panel .cone { width: 58px; height: 62px; flex: 0 0 auto; animation: cone-wobble 2.2s steps(1, end) infinite; }
@keyframes cone-wobble { 0% { rotate: -6deg; } 50% { rotate: 5deg; } }
.wip-panel .wip-text { display: grid; gap: 4px; min-width: 0; }
.wip-panel strong { font-family: var(--font-display); font-size: 24px; line-height: 1.05; }
.wip-panel small { font-size: 14px; color: var(--ink-soft); }
.hall .wip-panel { background-color: #161310; color: var(--paper); border-color: var(--yellow); box-shadow: 5px 5px 0 var(--yellow); }
.hall .wip-panel small { color: rgba(255,255,255,.75); }
/* tracker type: beat the older `.embed-slot .raised span` rule */
.embed-slot .raised .raised-amt { font-family: var(--font-display); font-size: clamp(56px, 11vw, 104px); font-weight: 400; color: var(--pink); }
.embed-slot .raised .raised-of { font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 32px); font-weight: 400; color: var(--yellow); }
/* guest grid: roomier columns that still fit a phone */
.guest-grid { grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); }
/* rotated tape strips never cause sideways scroll */
main { overflow-x: clip; }

/* ============================================================
   v8 — challenger reveal, milestone alignment, lock outline,
   guest squiggle + bottom tags, ribbon flags, EXAMPLE stamps
   ============================================================ */

/* ---- "A New Infestation Approaches" reveal ---- */
.challenger {
  position: fixed; inset: 0; z-index: 260;
  display: grid; place-items: center;
  background: rgba(0,0,0,.88);
  overflow: hidden;
  cursor: pointer;
  animation: ch-dim 2.6s ease forwards;
}
@keyframes ch-dim { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.ch-band {
  position: relative;
  width: 116vw;
  margin-left: -8vw;
  padding: 26px 0;
  rotate: -6deg;
  border-block: 6px solid var(--paper);
  outline: 4px solid var(--ink);
  background: var(--pink);
  transform-origin: left center;
  animation: ch-band 2.6s cubic-bezier(.2,.9,.3,1) forwards;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  overflow: hidden;
}
@keyframes ch-band {
  0%   { scale: 0 1; }
  14%  { scale: 1 1; }
  80%  { scale: 1 1; translate: 0 0; }
  100% { scale: 1 .1; translate: 30vw 0; }
}
/* faceted, low-poly sheen sliding across the band */
.ch-facets {
  position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255,255,255,.14) 18% 31%, transparent 31% 47%, rgba(0,0,0,.16) 47% 58%, transparent 58% 74%, rgba(255,255,255,.1) 74% 83%, transparent 83%),
    linear-gradient(64deg, rgba(0,0,0,.12) 0 22%, transparent 22% 51%, rgba(255,255,255,.08) 51% 66%, transparent 66%),
    radial-gradient(circle, rgba(0,0,0,.18) 2px, transparent 2.1px) 0 0 / 15px 15px;
  animation: ch-sheen 2.6s linear forwards;
}
@keyframes ch-sheen { from { translate: -14% 0; } to { translate: 14% 0; } }
.ch-text { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; }
.ch-small {
  font-family: var(--font-body); font-weight: 800; font-size: clamp(13px, 2vw, 18px);
  letter-spacing: .3em; text-transform: uppercase; color: var(--yellow);
  opacity: 0; animation: ch-in-r .35s ease .38s forwards;
}
.ch-big {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 84px);
  line-height: .95;
  color: var(--paper);
  -webkit-text-stroke: 9px var(--ink);
  paint-order: stroke fill;
  opacity: 0;
  animation: ch-in-r .42s cubic-bezier(.2,1.4,.4,1) .3s forwards;
}
@keyframes ch-in-r { from { opacity: 0; translate: 40vw 0; skew: -18deg; } to { opacity: 1; translate: 0 0; skew: 0deg; } }
.ch-bang {
  position: relative;
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: clamp(56px, 8vw, 96px); height: clamp(56px, 8vw, 96px);
  background: var(--yellow);
  border: 5px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--ink);
  rotate: 8deg;
  scale: 0;
  animation: ch-bang .4s cubic-bezier(.3,1.8,.5,1) .62s forwards, ch-blink .32s steps(1, end) 1.05s 3;
}
@keyframes ch-bang { to { scale: 1; } }
@keyframes ch-blink { 0% { background: var(--paper); } 50% { background: var(--yellow); } }
.ch-flash { position: absolute; inset: 0; background: var(--paper); opacity: 0; animation: ch-flash 2.6s ease forwards; pointer-events: none; }
@keyframes ch-flash { 0%, 76% { opacity: 0; } 80% { opacity: .9; } 100% { opacity: 0; } }
/* the banner slams in as the reveal clears */
.pf-banner.slam .pf-year { animation: slam .6s cubic-bezier(.2,1.6,.4,1) both; }
.pf-banner.slam .pf-banner-text { animation: slam .6s cubic-bezier(.2,1.6,.4,1) .12s both; }
.pf-banner.slam { animation: shake .45s ease .1s; }
@keyframes slam { from { scale: 2.2; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -10px 6px; } 40% { translate: 9px -5px; } 60% { translate: -6px 3px; } 80% { translate: 3px -2px; } }

/* ---- milestones: amount sits middle-left ---- */
.ms { align-items: center; }

/* ---- locked tier: outlined title ---- */
.tier.locked .tier-name { -webkit-text-stroke: 6px var(--paper); paint-order: stroke fill; color: var(--ink); }
.tier.locked .lock-text .tier-name { color: var(--yellow); -webkit-text-stroke: 7px var(--paper); }
.tier.locked .lock-text .tier-name { filter: drop-shadow(3px 3px 0 var(--ink)); }

/* ---- guest cards: crawling squiggle between name and role, tag last ---- */
.name-squiggle { display: block; width: 120px; height: 10px; overflow: hidden; margin: 2px 0 4px; }
.name-squiggle path {
  fill: none; stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: worm 1.1s linear infinite;
}
.guest-info .gmg-tag { justify-self: start; margin: 8px 0 0; }

/* ---- plaques: outlined ribbon flags hanging out the bottom ---- */
.plaque-wall { row-gap: 64px; }
.plaque .ribbons {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% - 8px);
  display: flex; justify-content: center; gap: 6px;
  min-height: 0;
  z-index: 2;
  pointer-events: none;
}
.plaque .ribbons .flag { width: 15px; height: 38px; transform-origin: 50% 0; animation: flag-sway 3s ease-in-out infinite; }
.plaque .ribbons .flag:nth-child(2) { animation-delay: .4s; }
.plaque .ribbons .flag:nth-child(3) { animation-delay: .8s; }
@keyframes flag-sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
.example-stamp {
  position: absolute;
  top: 8px; right: -10px;
  rotate: 14deg;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--paper);
  border: 3px solid var(--pink);
  outline: 2px solid var(--ink);
  padding: 2px 8px;
  pointer-events: none;
}

/* ---- Hall: outlined ? and readable WIP titles ---- */
.hall .info-btn { -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.hall .wip-panel strong { color: var(--paper); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; filter: drop-shadow(2px 2px 0 var(--ink)); }
.plaque .ribbons, .plaque .example-stamp { position: absolute !important; }
.plaque .ribbons { z-index: 2 !important; }
.plaque .example-stamp { z-index: 3 !important; }
/* room for the hanging ribbon flags above the legend */
.plaque-legend { margin-top: 64px; }

/* ============================================================
   v9 — site-wide banners + slam, About/Portfolio/Work Together
   systems, lightbox, partner tiles, coming-soon buttons
   ============================================================ */

/* ---- banner color variants ---- */
.pf-banner.tone-yellow::before { background-color: var(--yellow); }
.pf-banner.tone-yellow .pf-year { color: var(--pink); }
.pf-banner.tone-ink::before { background-color: #1d1916; background-image: radial-gradient(circle, rgba(255,207,74,0.2) 2px, transparent 2.1px); }
.pf-banner.tone-ink .pf-where { color: var(--paper); }

/* ---- banner slides in, then slams with a screen shake (once per load) ---- */
html.js .pf-banner:not(.slam) { visibility: hidden; animation: banner-failsafe 0s 1.8s forwards; }
@keyframes banner-failsafe { to { visibility: visible; } }
.pf-banner.slam { animation: banner-slide .5s cubic-bezier(.2,.9,.3,1) both, shake .5s ease .62s; }
.pf-banner.slam .pf-year { animation: slam .55s cubic-bezier(.2,1.6,.4,1) .36s both; }
.pf-banner.slam .pf-banner-text { animation: slam .55s cubic-bezier(.2,1.6,.4,1) .48s both; }
@keyframes banner-slide { from { transform: translateX(-105%); } to { transform: translateX(0); } }

/* ---- stretch goals + lock: black outline, then white outline ---- */
.tier.locked .lock-text .tier-name {
  color: var(--yellow);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(2.5px 0 0 var(--paper)) drop-shadow(-2.5px 0 0 var(--paper)) drop-shadow(0 2.5px 0 var(--paper)) drop-shadow(0 -2.5px 0 var(--paper));
}
.tier.locked .lock { width: 64px; height: 72px; }

/* ---- generic page intro block (under banners) ---- */
.page-intro { padding-block: 34px 48px; display: grid; gap: 22px; }
.page-intro > p { max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.page-intro .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.section-lede { max-width: 62ch; color: var(--ink-soft); margin: -8px 0 24px; font-size: 15.5px; line-height: 1.55; }

/* ---- About: art + bio split ---- */
.bio-split { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 36px; align-items: center; }
.bio-split > * { min-width: 0; }
.bio-split .nez-art { opacity: 1; translate: 0 0; min-height: 0; pointer-events: auto; }
.bio-split .nez-art img { position: static; width: 100%; height: auto; }
.bio-text { display: grid; gap: 14px; }
.bio-text p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.bio-text .hi { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); line-height: 1; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-weight: 800; font-size: 13px;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper);
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.chip:nth-child(3n+1) { rotate: -2deg; background: var(--yellow); }
.chip:nth-child(3n+2) { rotate: 1.5deg; }
.chip:nth-child(3n) { rotate: -1deg; background: var(--pink); color: var(--paper); }
@media (max-width: 760px) { .bio-split { grid-template-columns: 1fr; } .bio-split .nez-art { max-width: 300px; } }

/* ---- Lore: classified dossier ---- */
.dossier {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  border: var(--border-md) solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  margin-bottom: 26px;
  rotate: -.4deg;
}
.dossier > * { min-width: 0; }
.dossier .file-id { background: var(--ink); color: var(--paper); padding: 24px; display: grid; gap: 12px; align-content: start; }
.dossier .file-id .serial { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--yellow); }
.dossier dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.dossier dt { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; color: var(--yellow); padding-top: 2px; }
.dossier dd { margin: 0; color: rgba(255,255,255,.9); }
.dossier .file-body { padding: 24px 26px; display: grid; gap: 12px; align-content: start; }
.dossier .file-body p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.classified-stamp {
  position: absolute;
  top: -16px; right: 18px;
  rotate: 8deg;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--alert);
  background: var(--paper);
  border: 4px solid var(--alert);
  outline: 2px solid var(--ink);
  padding: 4px 12px;
  animation: two-frame 1.1s steps(1, end) infinite;
}
@media (max-width: 760px) { .dossier { grid-template-columns: 1fr; } }
.lore-quote { font-family: var(--font-display); font-size: 20px; color: var(--pink); }

/* ---- Affiliates / partners: logo slot on top of each card ---- */
.logo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.logo-cards.fan-row { display: grid; }
.logo-card { display: grid; gap: 8px; align-content: start; }
.logo-slot {
  height: 108px;
  display: grid; place-items: center;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper-dim);
  margin: -4px -4px 8px;
  overflow: hidden;
}
.logo-slot img { max-width: 80%; max-height: 76px; object-fit: contain; }
.logo-slot .wordmark-ph {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-align: center;
  padding: 0 10px;
}
.logo-card.callout { border-style: dashed; background: var(--yellow); }
.logo-card.callout .logo-slot { background: var(--paper); border-style: dashed; }

/* ---- coming-soon (gray) buttons with a cone ---- */
.btn-soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 14px;
  background: #D8D4CC; color: #4A4640;
  border: var(--border-sm) dashed #4A4640;
  padding: 8px 14px;
  cursor: not-allowed;
}
.btn-soon svg { width: 22px; height: 24px; flex: 0 0 auto; }
.btn-soon small { font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }

/* ---- two-column media kit + contact ---- */
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.panel {
  border: var(--border-md) solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px;
  display: grid; gap: 14px; align-content: start;
}
.panel h3 { font-family: var(--font-display); font-size: 26px; margin: 0; }
.panel.tilt-l { rotate: -.6deg; }
.panel.tilt-r { rotate: .5deg; }
.kit-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kit-stats div { border: var(--border-sm) solid var(--ink); padding: 10px 12px; background: var(--paper-dim); }
.kit-stats b { display: block; font-family: var(--font-display); font-size: 22px; }
.kit-stats span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 5px; font-weight: 800; font-size: 13px; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; font-weight: 400; font-size: 15px;
  padding: 10px 12px;
  border: var(--border-sm) solid var(--ink);
  background: var(--paper-warm);
  border-radius: 0;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid var(--pink); outline-offset: 1px; }

/* sponsor tier rows reuse the milestone ladder; label column is text */
.ms.row-label .ms-amt { font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }

/* ---- Portfolio: full-width featured image banner ---- */
.art-banner {
  position: relative;
  background: var(--ink);
  clip-path: polygon(0 5%, 100% 0, 100% 92%, 0 100%);
  height: clamp(340px, 62vh, 600px);
  margin-top: 18px;
}
.art-banner .art-img {
  position: absolute; inset: 0;
  clip-path: polygon(0 calc(5% + 10px), 100% 10px, 100% calc(92% - 10px), 0 calc(100% - 10px));
  overflow: hidden;
  background: var(--paper-dim);
}
.art-banner .art-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1.02; } to { scale: 1.1; } }
.art-banner .art-caption {
  position: absolute;
  left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  bottom: 13%;
  display: grid; gap: 8px; justify-items: start;
}
.art-banner .art-caption .pf-year { font-size: clamp(56px, 11vw, 128px); color: var(--yellow); }
html.js .art-banner:not(.slam) { visibility: hidden; animation: banner-failsafe 0s 1.8s forwards; }
.art-banner.slam { animation: banner-slide .5s cubic-bezier(.2,.9,.3,1) both, shake .5s ease .62s; }
.art-banner.slam .art-caption { animation: slam .55s cubic-bezier(.2,1.6,.4,1) .4s both; }

/* ---- commissions status card ---- */
.commission-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 34px 28px 28px;
  rotate: -.5deg;
  overflow: hidden;
}
.commission-card::before {
  content: "";
  position: absolute; left: -4%; right: -4%; top: 0; height: 16px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--ink) 16px 32px);
  border-bottom: 2px solid var(--ink);
}
.closed-sign {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  color: var(--paper);
  background: var(--alert);
  border: 4px solid var(--ink);
  padding: 10px 18px;
  rotate: -6deg;
  box-shadow: 5px 5px 0 var(--ink);
  animation: two-frame 1.2s steps(1, end) infinite;
}
.commission-card .cc-text { display: grid; gap: 6px; min-width: 0; }
.commission-card .cc-text strong { font-family: var(--font-display); font-size: 24px; line-height: 1.05; }
.commission-card .cc-text span { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .commission-card { grid-template-columns: 1fr; justify-items: start; } }

/* ---- comic-panel masonry gallery ---- */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
  gap: 16px;
}
.panel-grid.fan-row { display: grid; }
.art-panel {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  cursor: zoom-in;
}
.art-panel.w2 { grid-column: span 2; }
.art-panel.h2 { grid-row: span 2; }
.art-panel.h3 { grid-row: span 3; }
.art-panel .thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.art-panel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-panel:nth-child(4n+1) { clip-path: polygon(0 2%, 100% 0, 98% 100%, 1% 97%); }
.art-panel:nth-child(4n+2) { clip-path: polygon(2% 0, 100% 3%, 100% 98%, 0 100%); }
.art-panel:nth-child(4n+3) { clip-path: polygon(0 0, 97% 2%, 100% 100%, 3% 98%); }
.art-panel .art-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  border: var(--border-sm) solid var(--ink);
  border-radius: 999px 6px 999px 6px;
  padding: 3px 10px;
  background: var(--yellow);
  animation: two-frame .9s steps(1, end) infinite;
}
.art-panel .art-tag.commission { background: var(--pink); color: var(--paper); }
@media (max-width: 520px) { .art-panel.w2 { grid-column: span 1; } }

/* ---- lightbox: image left, info right ---- */
.modal .lightbox-card { width: min(980px, 100%); background: var(--paper); padding: 22px; rotate: 0deg; border-radius: 4px 22px 4px 22px; }
.lb-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.lb-grid > * { min-width: 0; }
.lb-img { border: var(--border-md) solid var(--ink); background: var(--paper-dim); min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.lb-img img { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; background: var(--paper-warm); }
.lb-img .ph { font-family: var(--font-body); font-weight: 600; font-size: 18px; opacity: .6; }
.lb-info { display: grid; gap: 10px; align-content: start; padding-top: 30px; }
.lb-info h3 { margin: 0 !important; font-size: 30px !important; }
.lb-info .lb-year { font-weight: 800; color: var(--pink); margin: 0; }
.lb-info p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.lb-info .gmg-tag { justify-self: start; margin: 0; }
@media (max-width: 720px) { .lb-grid { grid-template-columns: 1fr; } .lb-info { padding-top: 4px; } }

/* ---- official art reference notes ---- */
.ref-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ref-note { border: var(--border-sm) solid var(--ink); background: var(--paper); padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 6px; }
.ref-note b { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 30px; height: 30px; border: var(--border-sm) solid var(--ink); border-radius: 50%; }
.wip-panel .cone svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   v10 — static banner backdrops (text slams + screen shake),
   2x2 stack, redactions, consistent gallery, hover-only tags
   ============================================================ */

/* no stray ligatures in display type (fixes the odd "ff" in headings) */
h1, h2, h3, .pf-year, .pf-theme, .tier-name { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

/* ---- banners: backdrop stays put; only the text slams in, then the page shakes ---- */
html.js .pf-banner:not(.slam) { visibility: visible; animation: none; }
html.js .pf-banner:not(.slam) .pf-year,
html.js .pf-banner:not(.slam) .pf-banner-text { visibility: hidden; animation: banner-failsafe 0s 1.8s forwards; }
.pf-banner.slam { animation: none; }
/* bleed past the screen edges so the shake never reveals a seam */
.pf-banner { margin-inline: -28px; }
main.shake-it > * { animation: shake .5s ease .5s; }

/* "Hi ho! I'm Nez" strip: pink on black */
.pf-banner.tone-yellow .pf-dates { color: var(--pink); }

/* ---- About: four-function stack as a 2x2 grid ---- */
.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.stack-grid.fan-row { display: grid; }
.stack-grid .card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; padding: 24px; min-height: 170px; }
.stack-grid .card .stack-num {
  grid-row: span 3;
  font-family: var(--font-display);
  font-size: 54px; line-height: .9;
  color: var(--yellow);
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill;
}
.stack-grid .card:nth-child(2) .stack-num, .stack-grid .card:nth-child(3) .stack-num { color: var(--pink); }
.stack-grid .card:nth-child(1) { border-radius: 4px 20px 4px 4px; }
.stack-grid .card:nth-child(2) { border-radius: 20px 4px 4px 4px; }
.stack-grid .card:nth-child(3) { border-radius: 4px 4px 4px 20px; }
.stack-grid .card:nth-child(4) { border-radius: 4px 4px 20px 4px; }
.stack-grid .card h3, .stack-grid .card p, .stack-grid .card .kicker, .stack-grid .card .go { grid-column: 2; }
@media (max-width: 680px) { .stack-grid { grid-template-columns: 1fr; } }

/* ---- Lore: redacted bars (hover or tap to "peek") ---- */
.redact {
  position: relative;
  display: inline-block;
  background: var(--ink);
  color: transparent;
  padding: 0 4px;
  margin: 0 1px;
  border-radius: 2px;
  cursor: help;
  user-select: none;
  line-height: 1.2;
}
.redact::after {
  content: attr(data-quip);
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  translate: -50% 6px;
  white-space: nowrap;
  font-family: var(--font-body); font-weight: 800; font-size: 12px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm) solid var(--ink);
  padding: 4px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, translate .18s ease;
  z-index: 5;
}
.redact:hover::after, .redact:focus-visible::after { opacity: 1; translate: -50% 0; }
.file-id .redact { background: var(--paper); }
.file-id .redact::after { color: var(--ink); }
.ms-body .redact { font-size: inherit; }

/* ---- Portfolio: featured piece section ---- */
.featured-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: center; }
.featured-split > * { min-width: 0; }
@media (max-width: 820px) { .featured-split { grid-template-columns: 1fr; } }
.featured-split .art-panel { height: clamp(320px, 46vw, 520px); }
.featured-info { display: grid; gap: 12px; align-content: start; }
.featured-info h3 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 0; }
.featured-info .year { font-weight: 800; color: var(--pink); }
.featured-info p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* ---- gallery: consistent outlined panels, asymmetric corners, black pop shadow ---- */
.panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 22px; }
.art-panel {
  clip-path: none !important;
  border: var(--border-md) solid var(--ink) !important;
  overflow: hidden;
  background: var(--paper);
}
.art-panel:nth-child(4n+1) { border-radius: 4px 26px 6px 18px; rotate: -.8deg; }
.art-panel:nth-child(4n+2) { border-radius: 22px 4px 18px 6px; rotate: .7deg; }
.art-panel:nth-child(4n+3) { border-radius: 6px 18px 26px 4px; rotate: -.5deg; }
.art-panel:nth-child(4n)   { border-radius: 18px 6px 4px 24px; rotate: .9deg; }
.fan-row .card.art-panel.is-active { box-shadow: 10px 12px 0 var(--ink); background: var(--paper) !important; }
.art-panel .thumb { border-radius: inherit; }
/* hover info sits above the tag, with breathing room */
.art-panel .overlay { padding: 18px 18px 58px; }
.art-panel .art-tag { left: 14px; bottom: 14px; animation: none; }
.art-panel:hover .art-tag, .art-panel:focus-visible .art-tag { animation: two-frame .9s steps(1, end) infinite; }
.art-panel .zoom-icon { top: 14px; right: 14px; }
@media (max-width: 760px) { .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 460px) { .panel-grid { grid-template-columns: 1fr; } .art-panel.w2 { grid-column: span 1; } }

/* tags everywhere: only wiggle on hover */
.gmg-tag { animation: none; }
.card:hover .gmg-tag, .card:focus-within .gmg-tag { animation: two-frame .9s steps(1, end) infinite; }

/* ---- Credits ---- */
.credit-list { display: grid; gap: 4px; }
main.shake-it > .pf-banner.slam { animation: shake .5s ease .5s; }

/* ============================================================
   v11 — banner plays once, fitted long titles, comic gallery,
   full-bleed featured piece, contact card, fact cards, checklist,
   neon stamps, blog feed
   ============================================================ */

/* ---- banners: already seen this visit = static, no slam, no shake ---- */
.pf-banner.settled .pf-year, .pf-banner.settled .pf-banner-text { animation: none !important; visibility: visible !important; }
/* long single words shrink so they never run off screen */
.pf-banner.long-title .pf-year { font-size: clamp(46px, 9.4vw, 128px); }
.pf-year small { margin-top: .22em; }
.pf-banner .container { row-gap: 22px; }
.pf-banner-text .pf-theme { padding-top: 4px; }

/* ---- tags: roomier padding everywhere ---- */
.art-panel .art-tag { padding: 6px 14px 5px; font-size: 11px; }
.gmg-tag { padding: 6px 14px 5px; line-height: 1.2; }
.lb-info .gmg-tag { padding: 6px 14px 5px; }

/* ---- "Closed" + "Declassified": neon pink, outlined in black ---- */
.closed-sign {
  background: var(--pink);
  color: var(--paper);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  border: 4px solid var(--ink);
}
.classified-stamp {
  color: var(--pink);
  background: var(--paper);
  border: 4px solid var(--pink);
  outline: 3px solid var(--ink);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  font-size: 22px;
  padding: 6px 14px;
}

/* ---- "Hi ho!" uses the site display font ---- */
.lore-quote {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--pink);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
}

/* ---- lightbox squiggle between subtitle and description ---- */
.lb-info .lb-squiggle { width: 140px; height: 12px; margin: 0; }

/* ---- Portfolio: full-bleed featured piece (no overlay, no zoom) ---- */
.feature-bleed {
  position: relative;
  overflow: hidden;
  border-top: var(--border-md) solid var(--ink);
  border-bottom: var(--border-md) solid var(--ink);
  background-color: var(--yellow);
  background-image: radial-gradient(circle, rgba(0,0,0,.14) 2px, transparent 2.2px);
  background-size: 14px 14px;
  min-height: clamp(460px, 52vw, 640px);
  display: grid;
  align-items: center;
}
.feature-bleed .fb-art { position: absolute; inset: 0 32% 0 0; }
.feature-bleed .fb-art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 98%);
          mask-image: linear-gradient(90deg, #000 55%, transparent 98%);
}
/* duotone halftone wash: pink dots fade in from the right edge of the art */
.feature-bleed .fb-art::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--pink) 2.6px, transparent 2.8px);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.feature-bleed .fb-grid { position: relative; display: grid; justify-items: end; padding-block: 48px; }
.feature-bleed .fb-card {
  width: min(430px, 100%);
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  border-radius: 6px 26px 6px 26px;
  padding: 28px;
  rotate: 1.2deg;
}
.feature-bleed .fb-card h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 0; }
@media (max-width: 760px) {
  .feature-bleed { min-height: 0; display: block; }
  .feature-bleed .fb-art { position: relative; inset: auto; height: 380px; }
  .feature-bleed .fb-art img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .feature-bleed .fb-art::after { -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000 100%); mask-image: linear-gradient(180deg, transparent 50%, #000 100%); }
  .feature-bleed .fb-grid { justify-items: stretch; padding-block: 0 36px; margin-top: -60px; }
}

/* ---- Gallery: comic book page with thick panel outlines ---- */
.comic-page {
  background: var(--paper);
  border: 7px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 18px;
  border-radius: 4px;
}
.comic-page .panel-grid { gap: 16px; }
.comic-page .art-panel { border-width: 6px !important; rotate: 0deg !important; }
.comic-page .art-panel:nth-child(4n+1) { border-radius: 3px 14px 3px 8px; }
.comic-page .art-panel:nth-child(4n+2) { border-radius: 12px 3px 10px 3px; }
.comic-page .art-panel:nth-child(4n+3) { border-radius: 3px 8px 14px 3px; }
.comic-page .art-panel:nth-child(4n)   { border-radius: 10px 3px 3px 14px; }
.comic-page .art-panel .thumb.tone-dim, .comic-page .art-panel .thumb.tone-yellow, .comic-page .art-panel .thumb.tone-pink {
  background-image: radial-gradient(circle, rgba(0,0,0,.12) 1.6px, transparent 1.8px);
  background-size: 10px 10px;
}
@media (max-width: 560px) { .comic-page { padding: 10px; border-width: 5px; } .comic-page .panel-grid { gap: 10px; } }

/* ---- Work Together: download buttons under their sections ---- */
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---- Work Together: big contact card ---- */
.contact-card {
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  border-radius: 6px 30px 6px 30px;
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  gap: 22px;
}
.contact-card .cc-head { display: grid; gap: 8px; }
.contact-card .cc-head h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); line-height: 1; margin: 0; }
.contact-card .cc-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; line-height: 1.6; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.contact-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Affiliates: big question mark for "Your Brand Here" ---- */
.logo-slot .wordmark-ph.big-q {
  font-family: var(--font-display);
  font-size: 84px; line-height: 1;
  color: var(--pink);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
}
.logo-card .btn-asym { margin-top: 6px; }

/* ---- Art references: floating fact cards ---- */
.fact-cloud { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 4px 10px; }
.fact-card {
  flex: 1 1 180px;
  display: grid; gap: 2px;
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  border-radius: 4px 16px 4px 16px;
  padding: 12px 14px;
  animation: float-bob 3.6s ease-in-out var(--d, 0s) infinite;
}
.fact-card:nth-child(even) { border-radius: 16px 4px 16px 4px; }
.fact-card b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.fact-card strong { font-size: 16px; line-height: 1.2; }
.fact-card span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.fact-card.pink { background: var(--pink); color: var(--paper); }
.fact-card.pink b { color: var(--yellow); }
.fact-card.pink span { color: rgba(255,255,255,.9); }
.fact-card.yellow { background: var(--yellow); }
.fact-card.yellow b { color: var(--ink); }
@keyframes float-bob { 0%, 100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -6px; rotate: 1deg; } }
.featured-info { overflow: visible; }
.featured-info h3, .featured-info p { overflow-wrap: anywhere; }

/* ---- Design checklist ---- */
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.checklist.fan-row { display: grid; }
.check-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px !important; }
.check-note:nth-child(odd) { border-radius: 4px 18px 4px 4px; }
.check-note:nth-child(even) { border-radius: 18px 4px 4px 4px; }
.check-note .box {
  width: 30px; height: 30px;
  border: var(--border-md) solid var(--ink);
  background: var(--yellow);
  display: grid; place-items: center;
  rotate: -4deg;
  box-shadow: 3px 3px 0 var(--ink);
}
.check-note:nth-child(even) .box { background: var(--pink); rotate: 3deg; }
.check-note .check { width: 22px; height: 22px; color: var(--ink); translate: 2px -4px; }
.check-note div { display: grid; gap: 6px; min-width: 0; }
.check-note b { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.check-note span { color: var(--ink-soft); line-height: 1.5; font-size: 14.5px; }

/* palette swatches: hex code tooltip on hover/focus */
.swatches { flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.swatches i { position: relative; cursor: help; transition: scale .15s ease; }
.swatches i:hover, .swatches i:focus-visible { scale: 1.15; outline: none; }
.swatches i::after {
  content: attr(data-hex);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  translate: -50% 6px;
  font-family: var(--font-body); font-style: normal; font-weight: 800; font-size: 12px;
  color: var(--ink); background: var(--paper);
  border: var(--border-sm) solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 3px 8px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, translate .15s ease;
  z-index: 5;
}
.swatches i:hover::after, .swatches i:focus-visible::after { opacity: 1; translate: -50% 0; }

/* ---- Blog: 3-column feed of big cards + scrollable post modal ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-grid.fan-row { display: grid; }
.post-card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; cursor: pointer; padding: 18px !important; }
.post-card .post-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-date { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.post-card .thumb { aspect-ratio: 16 / 10; }
.post-card h3 { margin: 4px 0 0; font-size: 22px; line-height: 1.15; }
.post-card p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.post-card .go { font-weight: 800; color: var(--pink); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.modal .post-card-modal { width: min(760px, 100%); background: var(--paper); rotate: 0deg; max-height: calc(100vh - 40px); overscroll-behavior: contain; padding: 30px; }
.post-card-modal .post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.post-card-modal .post-head .gmg-tag { margin: 0; }
.post-card-modal h3 { font-size: clamp(26px, 4vw, 38px); line-height: 1.05; margin: 0 44px 6px 0; }
.post-card-modal .name-squiggle { width: 150px; height: 12px; margin: 4px 0 18px; }
.post-card-modal .post-hero { aspect-ratio: 16 / 9; border: var(--border-md) solid var(--ink); margin-bottom: 18px; display: grid; place-items: center; }
.post-card-modal p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.post-card-modal .post-lede { font-weight: 800; color: var(--ink); }
.post-card-modal .post-note { font-size: 13px; font-style: italic; border-top: var(--border-sm) dashed var(--ink); padding-top: 12px; margin-top: 20px; }
/* v11 fixes */
.check-note .swatches { display: flex; flex-wrap: wrap; }
.feature-bleed .fb-art img { mix-blend-mode: multiply; }
.feature-bleed .fb-art::after {
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 70%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 35%, #000 70%, transparent 100%);
}
@media (max-width: 760px) {
  .feature-bleed .fb-art::after { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, transparent 40%, #000 75%, transparent 100%); }
}

/* ============================================================
   v12 — scroll-locked pop-ups, bigger checks, bulleted checklist,
   taped featured art, merged gallery cards, header downloads,
   featured content player
   ============================================================ */

/* pop-ups: the page behind stays put, the card scrolls */
html.modal-open { overflow: hidden; }
.modal .modal-card { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }

/* ---- checklist: oversized checkmarks that spill out of the box ---- */
.check-note .box { position: relative; width: 34px; height: 34px; overflow: visible; }
.check-note .check {
  position: absolute;
  width: 46px; height: 46px;
  left: 2px; top: -18px;
  translate: 0 0;
  color: var(--ink);
  filter: drop-shadow(2px 2px 0 var(--paper)) drop-shadow(-1px -1px 0 var(--paper));
  transition: scale .2s cubic-bezier(.34,1.56,.64,1);
}
.check-note .check path { stroke-width: 4.5; }
.check-note.is-active .check, .check-note:hover .check { scale: 1.15; }
.check-note { padding: 22px 18px 18px !important; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bullets li { position: relative; padding-left: 20px; color: var(--ink-soft); line-height: 1.45; font-size: 14.5px; }
.bullets li::before {
  content: "";
  position: absolute; left: 2px; top: .42em;
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 10px solid var(--pink);
}
.check-note:nth-child(even) .bullets li::before { border-bottom-color: var(--ink); }
.check-note .swatches { margin-top: 10px; }

/* ---- Portfolio featured art: caution tape top and bottom ---- */
.feature-bleed.taped-feature::before, .feature-bleed.taped-feature::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  z-index: 2;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 20px, var(--ink) 20px 40px);
  border-block: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
  pointer-events: none;
}
.feature-bleed.taped-feature::before { top: 12px; height: 28px; rotate: -1.2deg; left: -6%; }
.feature-bleed.taped-feature::after { bottom: 14px; height: 22px; rotate: .9deg; right: -8%; }
.feature-bleed.taped-feature .fb-grid { z-index: 3; padding-block: 72px; }
@media (max-width: 760px) { .feature-bleed.taped-feature .fb-grid { padding-block: 0 56px; } }

/* ---- Gallery: wider, and each panel is a matted print like the homepage cards ---- */
.container.wide { max-width: 1320px; }
.comic-page .art-panel { background: var(--paper) !important; }
.comic-page .art-panel .thumb {
  inset: 10px;
  border: var(--border-md) solid var(--ink);
  border-radius: 3px;
}
.comic-page .fan-row .card.art-panel.is-active,
.comic-page .panel-grid.fan-row .card.art-panel.is-active { background: var(--yellow) !important; box-shadow: 10px 12px 0 var(--ink); }
.comic-page .art-panel .art-tag { left: 22px; bottom: 22px; }
.comic-page .art-panel .zoom-icon { top: 22px; right: 22px; }
.comic-page .panel-grid { grid-auto-rows: 230px; }

/* ---- Work Together: download button sits in the section header ---- */
.section-head .btn-soon { flex: none; }
@media (max-width: 560px) { .section-head:has(.btn-soon) { flex-wrap: wrap; gap: 12px; } }

/* "Your Brand Here" ? matches the yellow card */
.logo-slot .wordmark-ph.big-q { color: var(--yellow); }

/* ---- Featured content pop-up ---- */
.modal .content-card { width: min(860px, 100%); background: var(--paper); rotate: 0deg; padding: 22px; display: grid; gap: 16px; }
.cv-player {
  aspect-ratio: 16 / 9;
  border: var(--border-md) solid var(--ink);
  background: #161310;
  background-image: radial-gradient(circle, rgba(255,59,150,.22) 2px, transparent 2.2px);
  background-size: 14px 14px;
  display: grid; place-items: center;
  overflow: hidden;
  margin-top: 34px;
}
.cv-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cv-ph { display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.8); font-weight: 800; }
.cv-play {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--pink); border: var(--border-md) solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
  display: grid; place-items: center;
}
.cv-play svg { width: 34px; height: 34px; fill: var(--paper); translate: 3px 0; }
.cv-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cv-info h3 { margin: 0 !important; flex: 1 1 260px; font-size: clamp(22px, 3.4vw, 30px) !important; }
.cv-info .gmg-tag { margin: 0; }
.gmg-tag.plat-yt { background: #FF0000; }
.gmg-tag.plat-tw { background: #9146FF; }
.gmg-tag.plat-ig { background: #D6249F; }
.gmg-tag.plat-tt { background: var(--ink); }
/* wide gallery: heading stays aligned with the rest of the page */
.container.wide > .section-head { padding-inline: max(0px, calc((100% - 1080px) / 2)); }
.container.wide > .section-lede { margin-left: max(0px, calc((100% - 1080px) / 2)); }

/* ============================================================
   v13 — performance pass
   ============================================================ */
/* looping animations pause while their section is off screen (toggled in JS) */
.anim-paused, .anim-paused * { animation-play-state: paused !important; }

/* skip rendering work for sections far below the fold until you scroll near them */
main > section.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* squiggles: crawl a repeating background instead of moving the SVG path
   (moving the path forced a full page re-layout every frame) */
.name-squiggle {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M0 6 Q5 0.5 10 6 T20 6' fill='none' stroke='%23FF3B96' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 50% / 20px 12px;
  animation: worm-bg 1.1s linear infinite;
}
.name-squiggle path { visibility: hidden; animation: none !important; }
@keyframes worm-bg { from { background-position-x: 0; } to { background-position-x: -20px; } }

/* snappier page-to-page wipe */
.page-wipe.is-leaving .panel { animation-duration: .36s; }
.page-wipe.is-leaving .p2 { animation-delay: .06s; }
.page-wipe.is-arriving .panel { animation-duration: .4s; }
.page-wipe.is-arriving .p1 { animation-delay: .07s; }
/* candle flame flickers as its own layer (no per-frame re-layout) */
.plaque .candle-icon { position: relative; display: inline-block; }
.plaque .candle-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plaque .candle-icon .flame-svg { transform-origin: 50% 46%; animation: flicker 1.4s ease-in-out infinite; will-change: transform; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- 404 page: big Nez behind the report card, warning sticker on top ---- */
main > section.lost-section { content-visibility: visible; position: relative; z-index: 2; overflow: visible; padding-block: 40px 90px; }
.lost-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: 560px; }
.lost-art { position: absolute; left: -2%; top: -190px; width: min(640px, 58%); margin: 0; z-index: 1; pointer-events: none; rotate: -4deg; filter: drop-shadow(8px 8px 0 var(--ink)); }
.lost-art img { width: 100%; height: auto; display: block; }
.lost-card {
  grid-column: 2; position: relative; z-index: 2;
  display: grid; gap: 12px;
  background: var(--paper);
  border: var(--border-md) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  border-radius: 6px 28px 6px 28px;
  padding: 44px 30px 30px;
  rotate: 1deg;
}
.lost-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 16px; }
.lost-card .kicker { font-family: var(--font-body); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); font-size: 12.5px; }
.lost-title { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 46px); line-height: 1; margin: 0; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.lost-stamp { text-transform: uppercase; font-weight: 900; letter-spacing: .06em; font-size: 24px; top: -20px; right: 20px; }
.warn-sticker { position: absolute; left: -26px; top: -46px; width: 86px; rotate: -12deg; filter: drop-shadow(4px 4px 0 var(--ink)); animation: info-bob 2.8s ease-in-out infinite; }
.warn-sticker svg { width: 100%; height: auto; display: block; }
.warn-sticker::before { content: ""; position: absolute; inset: -6px; background: var(--paper); border: var(--border-sm) solid var(--ink); border-radius: 16px; z-index: -1; rotate: 4deg; }
@media (max-width: 860px) {
  .lost-grid { grid-template-columns: 1fr; min-height: 0; }
  .lost-art { position: relative; left: auto; top: -70px; width: min(420px, 92%); justify-self: center; margin-bottom: -150px; }
  .lost-card { grid-column: 1; }
  .warn-sticker { left: -10px; width: 70px; top: -40px; }
}
/* banners bleed 28px past each edge for the shake; pad the content back in on narrower screens */
@media (max-width: 1180px) { .pf-banner > .container { padding-inline: 48px; } }
@media (max-width: 520px) { .pf-banner > .container { padding-inline: 44px; } }
.lost-art { top: -95px; }
.lost-stamp { font-family: var(--font-body); font-weight: 900; font-size: 26px; letter-spacing: .14em; -webkit-text-stroke: 4px var(--ink); padding: 4px 14px 4px 18px; }
@media (max-width: 860px) { .lost-art { top: -60px; } }
/* header fits narrow phones with the real (wide) display font */
.site-header .bar { gap: 10px; }
.site-header .wordmark { min-width: 0; flex-shrink: 1; }
@media (max-width: 560px) {
  .wordmark { font-size: clamp(17px, 5.2vw, 24px); }
  .header-actions { gap: 8px; flex-shrink: 0; }
  .header-actions .btn { padding: 8px 10px; font-size: 12.5px; }
}
@media (max-width: 360px) { .header-actions .btn { display: none; } }
/* headline sizes scale with the screen so the widest words in Climate Crisis always fit */
.hero h1 { font-size: clamp(30px, calc(10.2vw - 5px), 92px); }
.pf-year { font-size: clamp(40px, calc(13.2vw - 14px), 170px); }
.pf-banner.long-title .pf-year { font-size: clamp(34px, calc(10.8vw - 11px), 128px); }

/* ============================================================
   v14 — phone polish pass
   ============================================================ */
/* About: bio illustration was being shifted off-screen by the homepage art rule */
.bio-split .nez-art img { translate: none !important; left: auto; }
@media (max-width: 820px) {
  .bio-split .nez-art { height: auto; min-height: 0; max-width: 320px; justify-self: center; }
}

/* Home: countdown badge sits above the headline on phones instead of covering it */
@media (max-width: 560px) {
  .hero .eyebrow-row { margin-bottom: 14px !important; margin-left: -6px !important; }
}

/* stat strips: big numbers never collide in the 2-column phone layout */
@media (max-width: 560px) {
  .hero-strip .num { font-size: clamp(20px, 6.4vw, 28px); -webkit-text-stroke: 3px var(--ink); }
  .hero-strip .cell { min-width: 0; overflow-wrap: anywhere; }
}

/* four-function stack: number sits on its own row on phones so titles get full width */
@media (max-width: 680px) {
  .stack-grid .card { grid-template-columns: 1fr; }
  .stack-grid .card .stack-num { grid-row: auto; font-size: 46px; }
  .stack-grid .card h3, .stack-grid .card p, .stack-grid .card .kicker, .stack-grid .card .go { grid-column: 1; }
}

/* stamps: same bold, outlined Lexend lettering as the 404 "MISSING" stamp */
.classified-stamp, .example-stamp {
  font-family: var(--font-body) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.classified-stamp { font-size: 20px; -webkit-text-stroke: 3.5px var(--ink); }
.example-stamp { -webkit-text-stroke: 0; }
@media (max-width: 560px) {
  .hero-strip .cell { overflow-wrap: normal; }
  .hero-strip .num { font-size: clamp(18px, 5.4vw, 26px); white-space: nowrap; }
}

/* ============================================================
   v15 — Mincey hunt, smaller phone plaques
   ============================================================ */
/* a Mincey hiding behind a card: the button sits right on the OUTER edge of the card's top
   border and clips only its bottom edge, so she's tucked behind the border line */
.mincey-spot {
  position: absolute;
  bottom: calc(100% + var(--bt, 3px));
  width: 92px; height: 120px;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  clip-path: inset(-220px -80px 0 -80px);   /* open above and to the sides, hard cut at the card edge */
  pointer-events: none;                     /* only Mincey herself is clickable */
  -webkit-tap-highlight-color: transparent;
}
.mincey-spot.side-left { left: 30px; }
.mincey-spot.side-center { left: calc(50% - 46px); }
.mincey-spot.side-right { right: 30px; }
.mincey-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: block;
  translate: 0 74%;                          /* resting: ears + forehead triangle peek over */
  transition: translate .45s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
}
.mincey-body img { display: block; width: 92px; height: auto; }
.mincey-spot:hover .mincey-body,
.mincey-spot:focus-visible .mincey-body { translate: 0 46%; }   /* hover: slides up to show her eyes */
.mincey-spot:focus-visible { outline: none; }
.mincey-spot:focus-visible .mincey-body img { filter: drop-shadow(0 0 0 var(--pink)) drop-shadow(0 0 4px var(--pink)); }
/* one-time hello when she first scrolls into view */
.mincey-spot.say-hi .mincey-body { animation: mincey-hello 1.1s cubic-bezier(.34,1.56,.64,1) .3s 1; }
@keyframes mincey-hello { 0%, 100% { translate: 0 74%; } 40% { translate: 0 50%; } 60% { translate: 0 56%; } }
/* found: pops all the way out with a heart over her head... */
.mincey-spot.is-popped .mincey-body { animation: mincey-pop .9s cubic-bezier(.34,1.56,.64,1) both; pointer-events: none; }
@keyframes mincey-pop {
  0% { translate: 0 74%; scale: 1; rotate: 0deg; }
  45% { translate: 0 -8%; scale: 1.18; rotate: -6deg; }
  70% { translate: 0 0%; scale: 1.12; rotate: 4deg; }
  100% { translate: 0 0%; scale: 1.12; rotate: 0deg; }
}
/* ...then ducks down behind the card and is removed */
.mincey-spot.is-leaving .mincey-body { animation: mincey-leave .5s cubic-bezier(.6,-0.3,.75,.4) both; }
@keyframes mincey-leave { from { translate: 0 0%; scale: 1.12; } to { translate: 0 105%; scale: 1; } }
.mincey-heart {
  position: absolute; left: 50%; top: -6px;
  translate: -50% 0; scale: 0;
  font-size: 26px; line-height: 1; color: var(--pink);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  pointer-events: none;
}
.mincey-spot.is-popped .mincey-heart { animation: heart-pop .7s cubic-bezier(.34,1.56,.64,1) .25s both; }
@keyframes heart-pop { 0% { scale: 0; translate: -50% 10px; } 60% { scale: 1.3; translate: -50% -14px; } 100% { scale: 1; translate: -50% -10px; } }

/* progress tracker: appears after the first find */
.mincey-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 140;
  display: grid; gap: 8px; justify-items: stretch;
  padding: 12px 16px 12px 14px;
  background: var(--paper); color: var(--ink);
  border: var(--border-md) solid var(--ink);
  border-radius: 6px 20px 6px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  rotate: -2deg;
  cursor: pointer;
  animation: modal-pop .35s cubic-bezier(.34,1.56,.64,1);
  font-family: var(--font-body);
}
.mincey-badge:hover { background: var(--yellow); }
.mb-slots { display: flex; gap: 8px; }
.mb-slot { width: 44px; height: auto; filter: brightness(0); opacity: .82; transition: filter .4s ease, opacity .4s ease; }
.mb-slot.is-found { filter: none; opacity: 1; }
.mb-slot.is-new { animation: slot-pop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes slot-pop { 0% { scale: .4; } 60% { scale: 1.3; } 100% { scale: 1; } }
.mb-row { display: flex; align-items: center; gap: 10px; }
.mb-bar {
  position: relative; flex: 1; height: 14px;
  background: var(--paper-dim);
  border: var(--border-sm) solid var(--ink);
  clip-path: polygon(0 18%, 100% 0, 97% 100%, 2% 86%);   /* asymmetric, comic-panel bar */
  overflow: hidden;
}
.mb-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: var(--pink);
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px);
  transition: width .6s cubic-bezier(.34,1.3,.64,1);
}
.mb-count { font-weight: 900; font-size: 18px; line-height: 1; min-width: 2.4em; text-align: right; }

/* toast */
.mincey-toast {
  position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 160;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 10px;
  background: var(--pink); color: var(--paper);
  border: var(--border-md) solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: 15px;
  white-space: nowrap;
  animation: modal-pop .35s cubic-bezier(.34,1.56,.64,1);
  transition: opacity .4s ease, translate .4s ease;
}
.mincey-toast img { width: 40px; height: auto; }
.mincey-toast.is-out { opacity: 0; translate: -50% 12px; }
@media (max-width: 560px) { .mincey-toast { bottom: 120px; font-size: 14px; } }

/* hunt pop-up */
.mincey-modal .modal-card { text-align: center; display: grid; justify-items: center; gap: 10px; background: var(--paper); }
.mincey-modal .mincey-hero { width: 150px; height: auto; }
.mincey-modal h3 { margin: 0 !important; }
.mincey-modal .mincey-msg { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.mincey-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .mincey-body, .mb-fill, .mb-slot { transition: none; }
  .mincey-spot.say-hi .mincey-body { animation: none; }
}

/* Hall of Infestation: plaques narrower on phones so they don't touch the screen edges */
@media (max-width: 560px) {
  .plaque-wall { grid-template-columns: minmax(0, 280px); justify-content: center; }
}
/* Mincey reference panel: show the whole sticker on a soft halftone */
.mincey-panel .thumb { background: var(--paper); background-image: radial-gradient(circle, rgba(255,59,150,.16) 2px, transparent 2.2px); background-size: 14px 14px; }
.mincey-panel .thumb img { object-fit: contain !important; padding: 8%; }

/* ============================================================
   v16 — optimization sweep
   ============================================================ */
/* attention-button glow: animate an outline ring's scale/opacity on the GPU
   instead of repainting a box-shadow every frame */
.btn-attn { position: relative; animation: float-y 2.6s ease-in-out infinite; isolation: isolate; }
.btn-attn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 6px rgba(255,59,150,.45);
  animation: glow-ring 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes glow-ring { 0% { opacity: 1; scale: 1; } 70%, 100% { opacity: 0; scale: 1.18; } }

/* floating fact cards: compositor-only, and stop once the visitor stops looking */
.fact-card { will-change: auto; }
.anim-paused .fact-card, .anim-paused .mincey-body { animation-play-state: paused !important; }

/* hidden Minceys: nothing renders or loops until her card is near the screen */
.mincey-spot { contain: layout style; }

/* the tracker stays light: no backdrop effects, one composited layer */
.mincey-badge { contain: layout paint style; }
html.tab-hidden *, html.tab-hidden *::before, html.tab-hidden *::after { animation-play-state: paused !important; }

/* ============================================================
   v17 — thick tracker bar, back-to-top button
   ============================================================ */
/* tracker bar: a solid black skewed frame with the track inset inside it,
   so the outline is thick and clean instead of clipped */
.mb-bar {
  position: relative; flex: 1; height: 18px;
  background: var(--ink);
  border: 0;
  padding: 3px;
  clip-path: polygon(0 14%, 100% 0, 97.5% 100%, 1.5% 88%);
  overflow: visible;
}
.mb-track {
  position: relative; display: block; width: 100%; height: 100%;
  background: var(--paper-dim);
  clip-path: polygon(0 14%, 100% 0, 97.5% 100%, 1.5% 88%);
  overflow: hidden;
}

/* back to top: bottom-right, rises and fades in once you scroll down */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 139;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px 9px 11px;
  font-family: var(--font-body); font-weight: 900; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  border: var(--border-md) solid var(--ink);
  border-radius: 6px 18px 6px 18px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  opacity: 0; translate: 0 24px; pointer-events: none;
  transition: opacity .3s ease, translate .35s cubic-bezier(.34,1.56,.64,1), background .15s ease;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--pink); color: var(--paper); }
.to-top:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 560px) { .to-top span { display: none; } .to-top { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s ease; translate: 0 0; } }

/* ---- guest headshots: same tilted panel as the silhouettes, with a thick black outline ---- */
.guest-avatar:has(> img) {
  background: var(--ink);
  clip-path: polygon(8% 2%, 98% 7%, 92% 98%, 2% 90%);
  padding: 4px;
  filter: drop-shadow(4px 4px 0 var(--ink));
}
.guest-avatar > img {
  object-fit: cover;
  object-position: 50% 18%;
  clip-path: polygon(7.6% 1.6%, 98% 6.4%, 92% 98%, 1.6% 89.6%);
  background: var(--paper-dim);
}


/* ---- partner logos: full-bleed rectangular banner panel across the top of each card ---- */
.logo-card { padding-top: 0; }
.logo-slot {
  position: relative; height: auto; aspect-ratio: 72 / 34;
  margin: 0 -18px 10px; border: 0; border-bottom: var(--border-md) solid var(--ink);
  background: var(--paper-dim); overflow: hidden; display: block;
}
.logo-slot img.logo-banner {
  display: block; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.logo-card:hover .logo-slot img.logo-banner { transform: scale(1.05); }
/* comic halftone tucked into the corner of each panel */
.logo-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,.22) 1.4px, transparent 1.8px) 0 0 / 9px 9px;
  -webkit-mask: linear-gradient(135deg, transparent 72%, #000 100%);
          mask: linear-gradient(135deg, transparent 72%, #000 100%);
}
.logo-card.callout .logo-slot { display: grid; place-items: center; background: var(--paper); border-bottom-style: dashed; }
.logo-card.callout .logo-slot::after { display: none; }
@media (prefers-reduced-motion: reduce) { .logo-card:hover .logo-slot img.logo-banner { transform: none; } }
.btn-download {
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), scale .28s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background-color .18s ease;
}
.btn-download:hover, .btn-download:focus-visible {
  transform: rotate(-3deg) translate(-2px,-2px); scale: 1.1;
  box-shadow: 7px 7px 0 var(--ink);
}
.btn-download:active { transform: rotate(-1deg); scale: 1.02; box-shadow: 2px 2px 0 var(--ink); }

/* ---- marquees: JS drives the scroll so visitors can click/press and hold to drag ---- */
.marquee.mq-js { cursor: grab; touch-action: pan-y; overflow: hidden; }
.marquee.mq-js .marquee-track { animation: none !important; will-change: transform; }
.marquee.mq-js.is-dragging { cursor: grabbing; }
.marquee.mq-js.is-dragging, .marquee.mq-js.is-dragging * { user-select: none; -webkit-user-select: none; }
.marquee.mq-js.is-dragging .card { pointer-events: none; }
.marquee.mq-js img { -webkit-user-drag: none; user-select: none; }

/* ---- "Coming soon" placeholders: section icon sticker + tag ---- */
.thumb .ph.ph-soon {
  display: grid; justify-items: center; align-content: center; gap: 10px;
  opacity: 1; text-align: center; padding: 10px;
}
.ph-soon .soon-icon {
  width: clamp(66px, 38%, 104px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--paper);
  border: var(--border-sm) solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  rotate: -6deg;
  transition: rotate .35s cubic-bezier(.34,1.56,.64,1), scale .35s cubic-bezier(.34,1.56,.64,1);
}
.ph-soon .soon-icon svg { width: 68%; height: auto; display: block; }
.ph-soon b {
  font-family: var(--font-body); font-weight: 900; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  background: var(--ink); color: var(--yellow);
  padding: 6px 10px 5px; rotate: 2deg;
}
.thumb.tone-yellow .ph-soon b { color: var(--pink); }
.card:hover .ph-soon .soon-icon, .card:focus-visible .ph-soon .soon-icon { rotate: 8deg; scale: 1.1; }
.post-hero .ph-soon .soon-icon { width: 90px; }
.soon-panel { cursor: default; }
@media (prefers-reduced-motion: reduce) { .card:hover .ph-soon .soon-icon { rotate: -6deg; scale: 1; } }

/* ---- live Tiltify tracker ---- */
.tilt-live { border-style: solid; box-shadow: 8px 8px 0 var(--ink); gap: 18px; }
.tilt-live .raised-of [data-goal-label] { font: inherit; color: inherit; }
.tl-status {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 6px 12px 5px; rotate: -1.5deg;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--paper); animation: live-blink 1.4s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: .25; } }
.tilt-live.is-offline .live-dot { background: var(--yellow); animation: none; }
.tl-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tl-pct { margin: -4px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.tl-pct b { color: var(--ink); font-weight: 900; }
.tl-grid { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: start; }
.tl-recent h3 { margin: 0 0 10px; font-size: 20px; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 9px 14px; background: var(--paper-dim); border: var(--border-sm) solid var(--ink);
  animation: tl-in .45s cubic-bezier(.34,1.56,.64,1) both;
}
.tl-list li:nth-child(odd) { rotate: -.6deg; }
.tl-list li:nth-child(even) { rotate: .5deg; background: var(--paper); }
.tl-list .tl-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-list .tl-amt { font-family: var(--font-display); font-size: 18px; color: var(--pink); -webkit-text-stroke: 1px var(--ink); }
.tl-list small { color: var(--ink-soft); font-size: 12.5px; min-width: 52px; text-align: right; }
.tl-list .tl-empty { display: block; font-weight: 600; color: var(--ink-soft); }
@keyframes tl-in { from { opacity: 0; translate: 0 8px; } }
.tl-qr {
  display: grid; justify-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--yellow); border: var(--border-md) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 14px 14px 12px; rotate: 2deg; width: 210px;
  transition: rotate .3s cubic-bezier(.34,1.56,.64,1), scale .3s cubic-bezier(.34,1.56,.64,1);
}
.tl-qr:hover, .tl-qr:focus-visible { rotate: -1deg; scale: 1.04; }
.tl-qr img { width: 100%; height: auto; display: block; background: #fff; border: var(--border-sm) solid var(--ink); image-rendering: pixelated; }
.tl-qr span { display: grid; text-align: center; line-height: 1.2; }
.tl-qr b { font-family: var(--font-display); font-size: 19px; }
.tl-qr small { font-size: 12.5px; font-weight: 600; }
/* before the feed connects (or if it can't), show only the ways to give */
.tilt-live.is-offline .raised, .tilt-live.is-offline .progress, .tilt-live.is-offline .tl-pct, .tilt-live.is-offline .tl-recent { display: none; }
.tilt-live.is-offline .embed-head { justify-content: flex-start; }
.tilt-live.is-offline .tl-grid { grid-template-columns: 1fr; justify-items: start; }
@media (max-width: 720px) {
  .tl-grid { grid-template-columns: 1fr; }
  .tl-qr { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .live-dot, .tl-list li { animation: none; } }
.tl-offline-note { display: none; margin: 0; max-width: 46ch; font-size: 16px; }
.tilt-live.is-offline { grid-template-columns: 1fr auto; align-items: center; }
.tilt-live.is-offline > :not(.tl-grid) { grid-column: 1; }
.tilt-live.is-offline .tl-grid { grid-column: 2; grid-row: 1 / span 6; }
.tilt-live.is-offline .tl-offline-note { display: block; }
@media (max-width: 720px) {
  .tilt-live.is-offline { grid-template-columns: 1fr; }
  .tilt-live.is-offline .tl-grid { grid-column: 1; grid-row: auto; justify-items: center; }
}

/* ---- About: quote on the Entertainer card ---- */
.card-quote {
  margin: 12px 0 0; padding: 12px 14px 10px;
  background: var(--yellow); border: var(--border-sm) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 600; font-size: 14.5px; line-height: 1.45; rotate: -1deg;
}
.card-quote cite { display: block; margin-top: 6px; font-style: normal; font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.card-quote cite::before { content: "\2014\00a0"; }

/* ---- Credits: status tags + links ---- */
.soon-tag, .cur-tag, .wip-chip {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--font-body); font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: 5px 9px 4px; border: 2px solid var(--ink);
}
.soon-tag { background: var(--pink); color: var(--paper); animation: two-frame .9s steps(1, end) infinite; }
.cur-tag { background: var(--yellow); color: var(--ink); rotate: 3deg; }
.wip-chip { margin-left: 0; background: var(--paper-dim); color: var(--ink-soft); border-style: dashed; }
.credit-link { font-weight: 800; color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.credit-link:hover { color: var(--pink); }
.lb-credit { margin: 0; font-weight: 800; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .soon-tag { animation: none; } }
.stack-grid .card .card-quote { grid-column: 1 / -1; justify-self: stretch; }
.mincey-spot.side-far-left { left: 6px; }
.mincey-spot.side-far-right { right: 6px; }
/* Entertainer quote: neon pink so it pops against the yellow hover state */
.card-quote { background: var(--pink); color: var(--paper); }
.card-quote cite {
  color: var(--paper); font-family: var(--font-display); font-size: 16px; letter-spacing: .04em;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
}
.cur-tag { rotate: none; animation: two-frame .9s steps(1, end) infinite; animation-delay: -.45s; }
@media (prefers-reduced-motion: reduce) { .cur-tag { animation: none; } }
.card-quote cite { font-size: 17px; letter-spacing: .1em; -webkit-text-stroke: 2.5px var(--ink); }
