/* The cover: a scroll stage, then one comic page of panels. */

/* ---- 1. Cover stage ----
   --p runs 0 -> 1 as you scroll through the stage (set by dvent.js).
   0: the black box fills the screen and the lips are smaller, pinned near the top.
   1: the box has shrunk into a framed comic panel and the lips have grown to break out of it. */
.cover-stage {
  --p: 0;
  --d: 1;
  --side: max(1rem, (100vw - var(--wrap)) / 2);
  --box-top: 3.5rem;
  --box-bottom: 1.75rem;
  --head: 6.5rem; /* the header above the stage on load; bottom items lift by this until the stage pins */
  --lift: calc((1 - var(--p)) * var(--head));
  position: relative;
  height: 140svh;
  margin: 0 calc(50% - 50vw);
}
.cover-sticky { position: sticky; top: 0; height: 100svh; }
.cover-box {
  position: absolute; z-index: 1; overflow: hidden;
  top: calc(var(--p) * var(--box-top));
  left: calc(var(--p) * var(--side));
  right: calc(var(--p) * var(--side));
  bottom: calc(var(--p) * var(--box-bottom));
  background-color: var(--ink);
  background-image: radial-gradient(rgba(246, 244, 239, 0.14) 1px, transparent 1.4px);
  background-size: 0.4375rem 0.4375rem;
  border: var(--frame) solid var(--ink);
  box-shadow: 0 0 0 calc(var(--p) * 0.875rem) var(--white); /* the white sheet edge appears as it frames up */
}
.cover-box .benday { /* red halftone burst behind the lips */
  position: absolute; inset: 0;
  background: radial-gradient(var(--red) 1.7px, transparent 2.1px) 0 0 / 10px 10px;
  -webkit-mask-image: radial-gradient(circle at 28% 40%, #000 0 14%, rgba(0, 0, 0, 0.45) 30%, transparent 52%);
          mask-image: radial-gradient(circle at 28% 40%, #000 0 14%, rgba(0, 0, 0, 0.45) 30%, transparent 52%);
}
.cover-art { /* anchored at its top-left corner; it grows down and right */
  position: absolute; z-index: 8;
  top: 0.375rem;
  left: calc(var(--p) * var(--side) + 3vw);
  height: calc(100svh - 4.375rem);
  width: auto;
  transform-origin: 0 0;
  transform: scale(calc(0.78 + 0.22 * var(--p))); /* starts at the old cover size, ends at full size */
  filter: drop-shadow(0 1.125rem 1.75rem rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.cover-sticky > .caption {
  position: absolute; z-index: 10; left: auto;
  top: calc(var(--p) * var(--box-top) + 0.1875rem);
  right: calc(var(--p) * var(--side) + 0.1875rem);
  border-right: none; border-left: var(--frame) solid var(--ink);
}
/* DVENT masthead: top-right of the cover, in the open black space beside the lips */
.cover-mast {
  position: absolute; z-index: 9; margin: 0;
  top: calc(var(--p) * var(--box-top) + 3.375rem);
  right: calc(var(--p) * var(--side) + 3vw);
  font-size: clamp(5.5rem, 10.5vw, 10.25rem);
  color: var(--paper);
}
/* under DVENT: the starring label, one line, and the way in */
.cover-copy {
  position: absolute; z-index: 9;
  right: calc(var(--p) * var(--side) + 3vw);
  top: calc(var(--p) * var(--box-top) + 3.375rem + clamp(5.5rem, 10.5vw, 10.25rem) * 0.82 + 1.625rem);
  width: min(30vw, 27.5rem);
  display: grid; justify-items: start; gap: 1.125rem;
}
.cover-copy .starring { margin: 0; }
.cover-line { margin: 0; color: var(--paper); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; max-width: 30ch; }
.portrait { margin: 0 0 0.25rem; display: grid; justify-items: center; width: clamp(9.375rem, 14vw, 13.75rem); transform: rotate(2.5deg); }
.portrait-frame {
  position: relative; width: 100%; aspect-ratio: 1;
  border: 0.5rem solid var(--white);
  background: var(--ink);
  box-shadow: 0 1.25rem 2.125rem -1.125rem rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.starring {
  position: relative; z-index: 1;
  padding: 0.5rem 0.875rem;
  background: var(--red); color: var(--white);
  transform: rotate(-4deg);
  box-shadow: 0 0.5rem 0.875rem -0.5rem rgba(0, 0, 0, 0.7);
}
/* the way in: visible on the first screen, with a short entrance as the page loads */
.cover-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.75rem; }
.cover-copy > * { animation: copy-in 520ms var(--ease-out) both; }
.cover-copy > :nth-child(2) { animation-delay: 70ms; }
.cover-copy > :nth-child(3) { animation-delay: 140ms; }
.cover-copy > :nth-child(4) { animation-delay: 210ms; }
@keyframes copy-in { from { opacity: 0; transform: translateY(0.625rem); } }
.hand-link {
  display: inline-block;
  padding: 0.375rem 2px;
  font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--f-tag);
  color: var(--paper);
  text-decoration: underline 0.1875rem var(--red);
  text-underline-offset: 0.22em;
  transform: rotate(-2deg);
  transition: text-shadow 160ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hand-link:hover { text-shadow: 0.1875rem 0.1875rem 0 var(--red); transform: rotate(-2deg) translate(-1px, -1px); }
}
.hand-link:focus-visible { text-shadow: 0.1875rem 0.1875rem 0 var(--red); }
.hand-link:active { transform: rotate(-2deg) scale(0.98); }

.issue-box { /* the comic-cover corner box */
  position: absolute; z-index: 9;
  right: calc(var(--p) * var(--side) + 1.375rem);
  bottom: calc(var(--p) * var(--box-bottom) + var(--lift) + 1.375rem);
  display: grid; grid-template-columns: auto auto; gap: 2px 0.75rem; align-items: end;
  padding: 0.625rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.issue-box b { font-size: 1.875rem; font-weight: 900; font-variation-settings: "wdth" 70; line-height: 0.9; }
.issue-box .barcode {
  grid-row: span 2;
  width: 4rem; height: 2.375rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 11px);
}
.turn-cue {
  position: absolute; z-index: 9;
  left: 50%; translate: -50% 0;
  bottom: calc(var(--p) * var(--box-bottom) + var(--lift) + 1.5rem);
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--paper);
  text-decoration: none;
}
.turn-cue .icon { transform: rotate(90deg); animation: cue 2.4s var(--ease-in-out) 1.5s 3; }
@keyframes cue { 0%, 70%, 100% { translate: 0 0; } 35% { translate: 0 0.3125rem; } }

/* No scroll effect: reduced motion shows the finished cover on one screen */
@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
  .cover-stage { --p: 1; height: 100svh; }
}

/* ---- The comic page below ---- */
.cover-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 20rem 21.25rem minmax(22.5rem, auto) auto;
  grid-template-areas:
    "art art art art art closet closet closet closet closet closet closet"
    "art art art art art indian indian indian non non non non"
    "social social social social social social social about about about about about"
    "next next next next next next next next next next next next";
}
.p-art { grid-area: art; } .p-closet { grid-area: closet; }
.p-indian { grid-area: indian; } .p-non { grid-area: non; }
.p-about { grid-area: about; } .p-social { grid-area: social; } .p-next { grid-area: next; }
.cover-sheet { margin-top: 0; }
#panels { scroll-margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- 2. Art: three real pieces as a strip of small panels, inked in paper-white ---- */
.p-art .strip {
  position: relative; z-index: 2;
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.625rem;
  padding: 1.125rem 1.125rem 0;
}
.p-art .t1 { grid-row: span 2; }
.p-art .t1 img { object-position: 50% 30%; }
.p-art .t2 img { object-position: 50% 30%; }
.p-art .foot-label { padding-top: 1.125rem; }
.p-art .foot-label h2 { font-size: clamp(3.5rem, 6.4vw, 6rem); }
.p-art .foot-label p { flex-basis: 100%; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  a.p-art:hover .tile img, a.p-social:hover .tile img { transform: scale(1.05); }
  a.p-art:hover .t2 img { transition-delay: 40ms; }
  a.p-art:hover .t3 img { transition-delay: 80ms; }
}

/* ---- 3. Closet: the newest cards fanned out on the halftone, real names and prices ---- */
.p-closet .fan { position: absolute; z-index: 2; right: 3%; top: 9%; width: 56%; height: 80%; }
.mini-card {
  position: absolute; top: 6%;
  width: 35%; aspect-ratio: 5 / 7;
  display: flex; flex-direction: column; gap: 0.3125rem;
  padding: 0.375rem;
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: 0.625rem;
  box-shadow: 0 0.75rem 1.25rem -0.875rem rgba(17, 17, 17, 0.7);
  transition: transform 260ms var(--ease-out);
}
.mini-top { display: flex; justify-content: space-between; gap: 0.25rem; padding: 0.25rem 0.375rem; background: var(--red); color: var(--white); border-radius: 0.25rem; font-size: 0.6875rem; white-space: nowrap; }
.mini-face { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); border-radius: 0.375rem; }
.mini-face img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.mini-name { font-size: clamp(1.25rem, 2vw, 1.875rem); color: var(--ink); }
.mini-flag { position: absolute; top: -1.25rem; left: 50%; padding: 0.3125rem 0.5625rem; background: var(--ink); color: var(--paper); transform: translateX(-50%) rotate(-5deg); }
.mini-card.f1 { left: 0; transform: rotate(-8deg); }
.mini-card.f3 { right: 0; transform: rotate(8deg); }
.mini-card.f2 { left: 32.5%; top: 0; z-index: 2; transform: rotate(-1.5deg); }
@media (hover: hover) and (pointer: fine) {
  a.p-closet:hover .mini-card.f1 { transform: translateX(-0.5rem) rotate(-14deg); }
  a.p-closet:hover .mini-card.f3 { transform: translateX(0.5rem) rotate(13deg); }
  a.p-closet:hover .mini-card.f2 { transform: translateY(-0.375rem) rotate(-1.5deg); }
}
.p-closet .bubble { left: 4%; top: 22%; max-width: min(15.625rem, 40%); }
.p-closet .foot-label { max-width: 42%; }

/* ---- 4. Type panels (cover tweaks) ---- */
.p-indian .big em { font-style: normal; color: var(--red); }
.p-non .big em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }

/* ---- 5. About: the name, spelled out; social: the feed ---- */
.about-word { margin: 0; font-size: clamp(2.125rem, 4.2vw, 3.75rem); line-height: 0.95; }
.about-word span { display: block; }
.about-word em { font-style: normal; color: var(--red); }
.p-social .handle { margin: 0; font: 400 clamp(2.5rem, 5.2vw, 4.5rem)/1 var(--f-tag); color: var(--paper); transform: rotate(-3deg); transform-origin: left; }
.p-social .handle span { color: var(--red); }
.p-social .feed { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin: 1.375rem 0 1.125rem; }
.p-social .feed .tile { aspect-ratio: 1; border-width: 2px; }

/* ---- 6. Print Club: a membership card ---- */
.member-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  border: var(--frame) solid var(--ink); border-radius: 1.125rem;
  background: var(--white);
  box-shadow: 0 1.125rem 1.875rem -1.375rem rgba(17, 17, 17, 0.6);
  transform: rotate(-0.6deg);
  overflow: hidden;
}
.mc-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: center; padding: clamp(1.125rem, 2.4vw, 1.875rem); }
.mc-stub {
  display: grid; justify-items: center; align-content: center; gap: 0.75rem;
  padding: 1.125rem 1.375rem;
  border-left: 0.1875rem dashed var(--ink);
  background: var(--red); color: var(--white);
}
.mc-barcode { width: 46px; height: 120px; background: repeating-linear-gradient(0deg, var(--white) 0 2px, transparent 2px 4px, var(--white) 4px 5px, transparent 5px 8px, var(--white) 8px 11px, transparent 11px 12px); }
.mc-brand, .mc-no { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.75rem; }
.p-next h2 { margin: 0; font-size: clamp(2.125rem, 4vw, 3.375rem); }
.p-next h2 em { font-style: normal; color: var(--red); }
.club-soon { display: grid; gap: 0.875rem; }
.club-soon-line { margin: 0; max-width: 40ch; }
.club-soon-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.mc-stub { padding-block: 0.875rem; }
.mc-barcode { height: 4rem; }
@media (min-width: 901px) { .mc-no { display: none; } }
@media (max-width: 900px) {
  .member-card { grid-template-columns: 1fr; transform: none; }
  .mc-main { grid-template-columns: 1fr; }
  .mc-stub { border-left: none; border-top: 0.1875rem dashed var(--ink); grid-auto-flow: column; justify-content: space-between; padding: 0.875rem 1.125rem; }
  .mc-barcode { width: 120px; height: 34px; background: repeating-linear-gradient(90deg, var(--white) 0 2px, transparent 2px 4px, var(--white) 4px 5px, transparent 5px 8px, var(--white) 8px 11px, transparent 11px 12px); }
  .mc-brand, .mc-no { writing-mode: horizontal-tb; transform: none; }
}


/* ---- Tablet ---- */
@media (max-width: 1000px) {
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas: "art closet" "indian non" "about social" "next next";
  }
  .p-art, .p-closet, .p-about { min-height: 23.75rem; }
  .p-indian, .p-non, .p-social { min-height: 15rem; }
  .p-closet .fan { width: 62%; top: 16%; height: 62%; }
  .p-closet .bubble { top: 20%; max-width: 36%; }
}

/* ---- Phone + small tablet: the cover is one static panel, then a vertical webtoon ---- */
@media (max-width: 900px) {
  .cover-stage { --p: 1; height: auto; margin: 0 0 var(--gutter); }
  .cover-sticky { position: relative; height: auto; display: flex; flex-direction: column; padding: 3rem 1.125rem 1.25rem; }
  .cover-box { inset: 3rem 0 0 0; box-shadow: none; }
  .cover-box .benday { -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0 16%, rgba(0,0,0,.45) 32%, transparent 56%); mask-image: radial-gradient(circle at 50% 22%, #000 0 16%, rgba(0,0,0,.45) 32%, transparent 56%); }
  .cover-sticky > .caption { position: relative; top: auto; right: auto; order: 2; align-self: flex-start; margin: 0.625rem 0 0 -1.125rem; border-left: none; border-right: var(--frame) solid var(--ink); border-top: var(--frame) solid var(--ink); }
  .cover-art { order: 1; }
  .cover-mast { order: 3; position: relative; top: auto; right: auto; font-size: clamp(3.5rem, 17vw, 8.75rem); margin-top: 0.625rem; }
  .cover-copy { order: 4; }
  .issue-box { order: 5; }
  .portrait { width: min(46vw, 11.875rem); }
  .cover-art { position: relative; top: auto; left: auto; height: auto; width: min(100%, 32.5rem); transform: none; margin: -2.5rem auto 0; align-self: center; }
  .cover-copy { position: relative; top: auto; right: auto; bottom: auto; width: auto; margin-top: 1.125rem; justify-items: start; }
  .issue-box { position: relative; right: auto; bottom: auto; align-self: flex-start; margin-top: 1.125rem; }
  .turn-cue { display: none; }
}
@media (max-width: 640px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "closet" "indian" "non" "about" "social" "next"; }
  .p-art { min-height: 0; }
  .p-art .strip { flex: none; height: min(96vw, 25rem); }
  .p-closet { min-height: 28.125rem; }
  .p-closet .fan { left: 6%; right: 6%; width: auto; top: 3.875rem; height: 14.375rem; }
  .p-closet .bubble { top: auto; bottom: 5.25rem; max-width: 80%; }
  .p-closet .foot-label { max-width: none; }
  .p-about { min-height: 0; }
  .about-word { font-size: clamp(1.875rem, 10vw, 3rem); margin-bottom: 1.75rem; }
  .p-indian, .p-non { min-height: 0; gap: 2.25rem; }
  .p-social .feed { gap: 0.375rem; }
}

/* The cover has no header logo (DVENT is the masthead); the menu sits right. */
.home .top { justify-content: flex-end; }
/* the fan shows the product photos edge to edge */
.mini-card.has-photo .mini-face { background: var(--white); }
.mini-card.has-photo .mini-face img { padding: 0; object-fit: cover; }

/* the drop panels carry their shirts as small tilted prints */
.stamps { position: absolute; z-index: 4; top: clamp(1rem, 1.8vw, 1.375rem); right: clamp(1rem, 1.8vw, 1.375rem); display: flex; gap: 0.5rem; }
.stamp { display: block; width: clamp(3.75rem, 5.6vw, 5.25rem); aspect-ratio: 1; overflow: hidden; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 0.625rem 1rem -0.625rem rgba(17, 17, 17, 0.6); transition: transform 240ms var(--ease-out); }
.stamp img { width: 100%; height: 100%; object-fit: cover; }
.stamp:nth-child(1) { transform: rotate(-6deg); }
.stamp:nth-child(2) { transform: rotate(5deg); }
.p-indian .big, .p-non .big { margin-top: auto; margin-bottom: 0.875rem; }
@media (hover: hover) and (pointer: fine) {
  a.panel:hover .stamp:nth-child(1) { transform: rotate(-9deg) translateY(-0.1875rem); }
  a.panel:hover .stamp:nth-child(2) { transform: rotate(8deg) translateY(-0.1875rem); }
}
@media (max-width: 640px) {
  .stamps { position: static; align-self: flex-end; margin-bottom: 0.25rem; }
  .p-indian .big, .p-non .big { margin-top: 0; }
}
.p-indian .foot-label, .p-non .foot-label { margin-top: 0; } /* the title takes the spare space, so it sits below the stamps */

/* ---- comic speed lines radiating from the lips ---- */
.cover-box .speed {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 30% 42%, rgba(246, 244, 239, 0.035) 0deg 1.3deg, transparent 1.3deg 6.5deg);
  -webkit-mask-image: radial-gradient(circle at 30% 42%, transparent 0 16%, #000 42%);
          mask-image: radial-gradient(circle at 30% 42%, transparent 0 16%, #000 42%);
}
/* CHOMP!: rides with the lips as they grow */
.cover-burst {
  --size: clamp(7.75rem, 11.5vw, 10.625rem);
  z-index: 9;
  left: calc(var(--p) * var(--side) + 3vw + (100svh - 4.375rem) * 0.6 * (0.78 + 0.22 * var(--p)));
  top: calc(0.375rem + (100svh - 4.375rem) * 0.68 * (0.78 + 0.22 * var(--p)));
  rotate: -12deg;
}
/* the self-portrait on the cover, with its starring label tucked under the frame */
.cover-copy .portrait { transform: rotate(-3deg); }
.cover-copy .portrait-frame { background: var(--white); }
.cover-copy .portrait + .starring { margin-top: -1.875rem; margin-left: 1.125rem; }

/* ---- About panel: the sketch, thinking ---- */
.p-about .about-word { margin-top: auto; margin-bottom: 0.875rem; position: relative; z-index: 2; }
.p-about .foot-label { margin-top: 0; }
.about-sketch { position: absolute; z-index: 1; top: 1rem; right: 1rem; width: 40%; aspect-ratio: 1; }
.about-sketch img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.p-about:hover .about-sketch img { transform: rotate(-3deg) scale(1.04); } }
.thought {
  position: absolute; right: 88%; top: 6%;
  padding: 0.75rem 1rem;
  background: var(--white); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 50%;
  font-weight: 800; font-variation-settings: "wdth" 85; font-size: 0.875rem; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.thought i { position: absolute; display: block; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; }
.thought i:nth-of-type(1) { width: 0.8125rem; height: 0.8125rem; right: -0.375rem; bottom: -0.75rem; }
.thought i:nth-of-type(2) { width: 0.5rem; height: 0.5rem; right: -1rem; bottom: -1.375rem; }

@media (max-width: 900px) {
  .cover-burst { left: auto; right: 6%; top: calc(3rem + min(52vw, 18.75rem)); --size: clamp(6rem, 24vw, 8.125rem); }
  .cover-box .speed { background: repeating-conic-gradient(from 0deg at 50% 22%, rgba(246, 244, 239, 0.035) 0deg 1.3deg, transparent 1.3deg 6.5deg); -webkit-mask-image: radial-gradient(circle at 50% 22%, transparent 0 14%, #000 40%); mask-image: radial-gradient(circle at 50% 22%, transparent 0 14%, #000 40%); }
}
@media (max-width: 640px) {
  .p-about .foot-label { order: 4; }
  .about-sketch { position: relative; top: auto; right: auto; order: 3; align-self: flex-end; width: 56%; margin: -0.5rem 0 0.75rem; }
  .p-about .about-word { margin-top: 0; }
  .thought { right: 82%; }
}

/* ================= Comic page, take 3: bigger art, real panels ================= */
.cover-grid {
  grid-template-rows: 24rem 28rem minmax(36rem, auto) auto auto;
  grid-template-areas:
    "art art art art art closet closet closet closet closet closet closet"
    "art art art art art indian indian indian non non non non"
    "cast cast cast cast cast cast cast about about about about about"
    "social social social social social social social social social social social social"
    "next next next next next next next next next next next next";
}
.p-cast { grid-area: cast; }

/* Cast: Riff Rider, the mascot, breaks out of the top of his panel */
.p-cast { overflow: visible; justify-content: flex-end; }
.cast-hero { position: absolute; z-index: 7; top: -1.25rem; right: 1%; bottom: 1.25rem; width: 60%; pointer-events: none; }
.cast-hero img { width: 100%; height: 100%; object-fit: contain; object-position: right center; filter: drop-shadow(0 1.25rem 1.25rem rgba(17, 17, 17, 0.45)); transition: transform 320ms var(--ease-out); transform-origin: 60% 80%; }
.cast-copy { position: relative; z-index: 5; max-width: 42%; display: grid; justify-items: start; gap: 0.75rem; color: var(--white); }
.cast-copy .starring { margin: 0; background: var(--ink); }
.cast-copy h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); }
.cast-line { margin: 0; max-width: 28ch; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { a.p-cast:hover .cast-hero img { transform: rotate(-3deg) translateY(-0.5rem); } }

/* About: the self-portrait fills the panel, the name underneath */
.p-about { justify-content: flex-end; }
.p-about .about-sketch { position: relative; top: auto; right: auto; order: 0; width: auto; aspect-ratio: auto; flex: 1 1 auto; min-height: 14rem; margin: 2.25rem 0 0.75rem; }
.p-about .about-sketch img { position: absolute; inset: 0; }
.p-about .thought { right: auto; left: 0; top: 8%; }
.p-about .about-word { margin: 0 0 0.875rem; font-size: clamp(2.25rem, 3.6vw, 3.25rem); }

/* Social: the feed as a strip of panels across the page */
.p-social { gap: 1.25rem; }
.social-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; }
.p-social .feed { display: grid; grid-template-columns: 1.25fr 1fr 1.45fr 1fr 1.25fr; height: clamp(12rem, 22vw, 18rem); gap: 0.625rem; margin: 0; }
.p-social .feed .tile { aspect-ratio: auto; height: 100%; border-width: var(--frame); }
.p-social .feed .tile img { position: absolute; inset: 0; }

/* drop panels: the real artwork as the prints; Naughty or Nice in its own lettering */
.p-indian .stamp img { object-position: 50% 30%; }
.non-logo img { width: min(100%, 20rem); height: auto; filter: drop-shadow(0.2rem 0.2rem 0 var(--ink)); }
.p-non .big.non-logo { margin-bottom: 0.5rem; }

@media (max-width: 1000px) {
  .cover-grid { grid-template-areas: "art closet" "indian non" "cast cast" "about about" "social social" "next next"; }
  .p-cast { min-height: 26rem; }
  .p-about { min-height: 30rem; }
}
@media (max-width: 640px) {
  .cover-grid { grid-template-areas: "art" "closet" "indian" "non" "cast" "about" "social" "next"; }
  .p-cast { min-height: 0; padding-top: 0; }
  .cast-hero { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: 19rem; margin: -1.25rem 0 0.5rem; order: -1; }
  .cast-hero img { object-position: center; }
  .cast-copy { max-width: none; }
  .p-cast > .caption { position: relative; align-self: flex-start; margin: 0 0 0 -1.125rem; order: -2; }
  .p-about .about-sketch { width: auto; margin: 2.75rem 0 0.75rem; min-height: 17rem; align-self: stretch; }
  .p-about .thought { left: 0; right: auto; }
  .p-social .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 8rem 8rem; height: auto; }
  .p-social .feed .tile:nth-child(1) { grid-row: span 2; }
}

/* ================= Drop panels + closet fan: the prints cover the panel ================= */
/* the fan takes most of the closet panel; the shirt photos fill their frames */
.mini-card.has-photo .mini-face img { transform: scale(1.22); }
.p-closet .bubble { max-width: min(15.625rem, 34%); }

/* drop panels: the prints fill every bit of the panel above the title */
.p-indian .stamps, .p-non .stamps { position: relative; z-index: 4; top: auto; right: auto; flex: 1 1 auto; min-height: 9rem; margin: 0 0 1.25rem; display: block; }
.p-indian .stamp, .p-non .stamp { position: absolute; width: auto; aspect-ratio: auto; border-width: var(--frame); box-shadow: 0 1rem 1.5rem -0.875rem rgba(17, 17, 17, 0.7); }
.p-indian .stamp:nth-child(1) { left: 0; top: 0; width: 52%; height: 100%; transform: rotate(-4deg); }
.p-indian .stamp:nth-child(2) { right: 0; top: 20%; width: 60%; height: 62%; z-index: 1; transform: rotate(4deg); }
.p-indian .stamp:nth-child(1) img { object-position: 50% 40%; }
.p-indian .stamp:nth-child(2) img { object-position: 30% 50%; }
.p-non .stamp:nth-child(1) { left: 3%; top: 0; height: 100%; aspect-ratio: 551 / 800; transform: rotate(-5deg); }
.p-non .stamp:nth-child(2) { right: 3%; top: 10%; height: 84%; aspect-ratio: 1; z-index: 1; transform: rotate(5deg); }
.p-indian .big, .p-non .big { margin-top: 0; }
@media (hover: hover) and (pointer: fine) {
  a.p-indian:hover .stamp:nth-child(1), a.p-non:hover .stamp:nth-child(1) { transform: rotate(-7deg) translateY(-0.25rem); }
  a.p-indian:hover .stamp:nth-child(2), a.p-non:hover .stamp:nth-child(2) { transform: rotate(7deg) translateY(-0.25rem); }
}
@media (max-width: 1000px) {
  .p-indian, .p-non { min-height: 28rem; }
}
@media (max-width: 640px) {
  .p-indian .stamps, .p-non .stamps { position: relative; align-self: stretch; flex: none; height: min(70vw, 17rem); margin-bottom: 0.5rem; }
  .p-indian, .p-non { min-height: 0; gap: 1.25rem; }
}

/* Eye Candy!: two stacked words in the burst by the lips */
@media (min-width: 901px) { .cover-burst { --size: clamp(8.5rem, 12.5vw, 11.5rem); } }
.burst-word { text-align: center; }

/* Naughty or Nice: one big Street Santa (the crewneck's back print) fills the panel above the lettering */
.p-non .stamps.solo .stamp:nth-child(1) { left: 50%; top: -0.25rem; height: calc(100% + 0.5rem); aspect-ratio: 551 / 800; translate: -50% 0; transform: rotate(-4deg); }
@media (hover: hover) and (pointer: fine) { a.p-non:hover .stamps.solo .stamp:nth-child(1) { transform: rotate(-6deg) translateY(-0.25rem); } }

/* ================= Take 4: the art becomes the panel ================= */
/* D, V, ENT in the opening narration box: red and heavy */
.caption em { font-style: normal; font-weight: 900; color: var(--red); }

/* Naughty or Nice: Street Santa is the whole panel; the lettering glows and HO HO HO! lands on hover; snow falls */
.p-non .stamps.solo { position: absolute; inset: 0; z-index: 0; margin: 0; height: auto; min-height: 0; }
.p-non .stamps.solo .stamp:nth-child(1) { inset: 0; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; translate: none; transform: none; border: 0; box-shadow: none; }
.p-non .stamps.solo .stamp img { object-position: 50% 22%; transition: transform 600ms var(--ease-out); }
.p-non .stamps.solo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(197, 30, 30, 0.96) 0, rgba(197, 30, 30, 0.75) 32%, rgba(197, 30, 30, 0) 62%); }
.p-non .big.non-logo { position: relative; z-index: 3; margin-top: auto; }
.p-non .foot-label { position: relative; z-index: 3; }
.non-logo img { width: min(100%, 24rem); filter: drop-shadow(0.2rem 0.2rem 0 var(--ink)); transform-origin: 20% 80%; transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 360ms var(--ease-out); }
.p-non[data-sfx]::after { font-size: clamp(1.75rem, 2.6vw, 2.75rem); color: var(--red); -webkit-text-stroke: 2px var(--white); top: 1rem; right: 1rem; }
.snow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 0.09rem, transparent 0.16rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 0.06rem, transparent 0.12rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 0.16rem, transparent 0.24rem);
  background-size: 7rem 7rem, 4.5rem 4.5rem, 11rem 11rem;
  background-position: 0 0, 2rem 1rem, 4rem 3rem;
  transition: opacity 400ms var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .snow { animation: snow 14s linear infinite; }
  @keyframes snow { to { background-position: 0 7rem, 2rem 10rem, 4rem 14rem; } }
}
@media (hover: hover) and (pointer: fine) {
  a.p-non:hover .stamps.solo .stamp:nth-child(1) { transform: none; }
  a.p-non:hover .stamps.solo .stamp img { transform: scale(1.05); }
  a.p-non:hover .non-logo img { transform: scale(1.1) rotate(-2deg); filter: drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.9)) drop-shadow(0 0 1.25rem rgba(255, 236, 160, 0.75)) drop-shadow(0.2rem 0.2rem 0 var(--ink)); }
  a.p-non:hover .snow { opacity: 1; }
}
@media (max-width: 640px) {
  .p-non { min-height: 30rem; }
  .p-non .stamps.solo { position: absolute; height: auto; }
}

/* Closet: the trading cards are so big they are the panel; the title sits in its own box on top */
@media (min-width: 641px) {
  .p-closet .fan { top: 4%; right: -3%; bottom: auto; width: 82%; height: 100%; }
  .mini-card { width: 42%; top: 7%; }
  .mini-card.f2 { left: 29%; top: 1%; }
}
.p-closet .foot-label { position: relative; z-index: 5; align-self: flex-start; max-width: none; padding: 0.75rem 1.125rem 0.875rem; background: var(--paper); border: var(--frame) solid var(--ink); box-shadow: 0.3rem 0.3rem 0 var(--ink); }
.p-closet .bubble { z-index: 6; }

/* Riff Rider on a rich brown */
.panel.brown { background: radial-gradient(rgba(0, 0, 0, 0.16) 18%, transparent 20%) 0 0 / 0.75rem 0.75rem, #5a2f17; color: var(--white); }
.panel.brown::after { z-index: 7; }

/* About: the self-portrait is the whole panel */
.p-about .about-sketch { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; min-height: 0; margin: 0; aspect-ratio: auto; order: 0; }
.p-about .about-sketch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.p-about .about-sketch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0.7) 26%, rgba(255, 255, 255, 0) 52%); }
.p-about .thought { left: clamp(1rem, 2vw, 1.5rem); top: 4.5rem; z-index: 3; }
.p-about .about-word, .p-about .foot-label { position: relative; z-index: 2; }
.p-about .about-word { margin-top: auto; }
@media (max-width: 640px) {
  .p-about { min-height: 30rem; }
  .p-about .about-sketch { margin: 0; min-height: 0; }
}
@media (max-width: 640px) {
  .p-closet { min-height: 36rem; }
  .p-closet .fan { left: -5%; right: -5%; width: auto; top: 3rem; height: 23rem; }
  .p-closet .mini-card { width: 41%; }
  .p-closet .mini-card.f2 { left: 29.5%; }
  .p-closet .bubble { top: auto; bottom: 6.5rem; max-width: 88%; }
}
/* the desktop row heights stop at tablet width: panels stack at their own heights */
@media (max-width: 1000px) { .cover-grid { grid-template-rows: none; } }
@media (max-width: 640px) {
  .p-closet { min-height: 33rem; }
  .p-closet .mini-card { width: 47%; }
  .p-closet .mini-card.f2 { left: 26.5%; }
  .p-closet .bubble { bottom: 5.75rem; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .p-closet .fan { left: -5%; right: -5%; width: auto; top: 3.25rem; height: 60%; }
  .p-closet .mini-card { width: 47%; }
  .p-closet .mini-card.f2 { left: 26.5%; }
  .p-closet .bubble { top: auto; bottom: 5.75rem; max-width: 88%; }
}

/* Naughty or Nice: Santa's face sits in the top of the panel, above the lettering, at any panel shape.
   The face is ~45% down the art; at 130% of the panel's height, shifted up 30.5%, it lands ~28% down. */
.p-non .stamps.solo .stamp img { position: absolute; left: 50%; top: -30.5%; width: auto; height: 130%; min-width: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; translate: -50% 0; }
.p-non .stamps.solo::after { background: linear-gradient(to top, rgba(197, 30, 30, 0.96) 0, rgba(197, 30, 30, 0.78) 28%, rgba(197, 30, 30, 0) 54%); }

/* ================= Toned down (2026-12-04): Cast + About open the page, fewer words ================= */
.cover-grid {
  grid-template-rows: minmax(36rem, auto) 24rem 28rem auto auto;
  grid-template-areas:
    "cast cast cast cast cast cast cast about about about about about"
    "art art art art art closet closet closet closet closet closet closet"
    "art art art art art indian indian indian non non non non"
    "social social social social social social social social social social social social"
    "next next next next next next next next next next next next";
}
/* the second way in, next to See the art: outlined in paper on the dark cover */
.btn.btn-closet { color: var(--paper); border-color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn.btn-closet:hover { background: var(--paper); color: var(--ink); } }
.cover-links { gap: 0.875rem 1rem; }
.cover-links .hand-link { flex-basis: 100%; }
@media (max-width: 1000px) {
  .cover-grid { grid-template-rows: none; grid-template-areas: "cast cast" "about about" "art closet" "indian non" "social social" "next next"; }
}
@media (max-width: 640px) {
  .cover-grid { grid-template-areas: "cast" "about" "art" "closet" "indian" "non" "social" "next"; }
}

/* Riff Rider, bigger: he fills the right of his panel and his guitar breaks out of the top */
.cast-hero { top: -5.5rem; right: 0; bottom: -0.75rem; width: 70%; }
.cast-copy { max-width: 36%; }
@media (max-width: 1000px) {
  .p-cast { min-height: 30rem; margin-top: 3rem; }
  .cast-hero { top: -4.5rem; width: 66%; }
}
@media (max-width: 640px) {
  .p-cast { min-height: 0; margin-top: 2.5rem; }
  .cast-hero { top: auto; bottom: auto; width: 100%; height: 25rem; margin: -4rem 0 0.5rem; }
}
@media (min-width: 1001px) {
  .cover-grid { grid-template-rows: minmax(33rem, auto) 24rem 28rem auto auto; }
  .p-cast { margin-top: 3rem; }
  .p-about { margin-top: 3rem; }
  .cast-hero { top: -6.5rem; bottom: auto; right: -1%; width: 82%; height: auto; }
  .cast-hero img { height: auto; }
  .cast-copy { z-index: 8; }
}
@media (max-width: 640px) {
  .cast-hero { height: auto; margin: -3.5rem -0.5rem 0.75rem; width: calc(100% + 1rem); }
  .cast-hero img { height: auto; }
}
@media (max-width: 640px) { .p-cast > .caption { z-index: 9; } .cast-hero { margin-top: -2.75rem; } }

/* HO HO HO: a black comic outline */
.p-non[data-sfx]::after { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0.2rem 0.2rem 0 var(--ink); }
/* the self-portrait opens the page, Riff Rider beside it */
@media (min-width: 1001px) {
  .cover-grid { grid-template-areas:
    "about about about about about cast cast cast cast cast cast cast"
    "art art art art art closet closet closet closet closet closet closet"
    "art art art art art indian indian indian non non non non"
    "social social social social social social social social social social social social"
    "next next next next next next next next next next next next"; }
}
@media (max-width: 1000px) { .cover-grid { grid-template-areas: "about about" "cast cast" "art closet" "indian non" "social social" "next next"; } }
@media (max-width: 640px) { .cover-grid { grid-template-areas: "about" "cast" "art" "closet" "indian" "non" "social" "next"; } }

/* Social: two big buttons, one per platform; the feed itself opens Instagram */
.social-head { align-items: center; }
.social-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3.5rem;
  padding: 0.75rem 1.5rem 0.75rem 1.125rem;
  font: 800 clamp(1.125rem, 1.6vw, 1.5rem)/1 var(--f-display); font-variation-settings: "wdth" 85; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); background: var(--paper); text-decoration: none;
  border: var(--frame) solid var(--paper); box-shadow: 0.3rem 0.3rem 0 var(--red);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms;
}
.social-btn.tt { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0.3rem 0.3rem 0 var(--paper); }
.social-btn svg { width: 1.6em; height: 1.6em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.social-btn svg .dot { fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .social-btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 0.45rem 0.45rem 0 var(--red); }
  .social-btn.tt:hover { box-shadow: 0.45rem 0.45rem 0 var(--paper); }
  a.feed:hover .tile img { transform: scale(1.05); }
}
.social-btn:active { transform: scale(0.97); }
.social-btn:focus-visible, a.feed:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
a.feed { text-decoration: none; cursor: pointer; }
.p-social .feed .tile img { transition: transform 320ms var(--ease-out); }
@media (max-width: 640px) {
  .social-btns { width: 100%; }
  .social-btn { flex: 1 1 0; justify-content: center; padding-inline: 0.75rem; }
}
/* Art panel: Blue Tiger tall on the left, the two horses stacked beside it, heads in frame */
.p-art .t1 img { object-position: 50% 25%; }
.p-art .t2 img { object-position: 70% 45%; }
.p-art .t3 img { object-position: 30% 45%; }
