/* Interior page parts: panel heights, FAQ, the art gallery + viewer, closet cards, commissions examples. */

.tall { min-height: clamp(23.75rem, 38vw, 32.5rem); }
.mid { min-height: clamp(16.25rem, 26vw, 21.25rem); }
.short { min-height: 12.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.125rem 2px;
  font-weight: 800; font-variation-settings: "wdth" 80; font-size: clamp(1.25rem, 2vw, 1.625rem); text-transform: uppercase; line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 1.375rem; transition: transform 200ms var(--ease-out); color: var(--red); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 1.25rem; max-width: 62ch; }

/* ---------- Art gallery: one wall, filtered by medium ---------- */
.gallery-panel { gap: 1.375rem; margin-top: var(--gutter); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink);
  font: 800 0.875rem/1 var(--f-display); font-variation-settings: "wdth" 85; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0.1875rem 0.1875rem 0 var(--red); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { background: var(--paper); } }

/* A comic page that reads left to right: justified rows of panels. Each piece grows by its own
   width/height ratio (--r), so every row fills the width at one height and no art is cropped. */
.gallery { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gutter); }
.gallery::after { content: ""; flex: 999 1 0; } /* the last row keeps its natural height instead of stretching */
.gallery > .piece { position: relative; flex: var(--r) 1 calc(var(--r) * 18rem); margin: 0; min-width: 0; }
.piece[hidden] { display: none; }
.piece-link { display: grid; gap: 0.625rem; text-decoration: none; color: var(--ink); }
.gallery .piece-link { display: block; position: relative; height: 100%; }
.piece-frame { position: relative; display: block; height: 100%; overflow: hidden; border: var(--frame) solid var(--ink); background: var(--white); transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.piece-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 420ms var(--ease-out), transform 320ms var(--ease-out); }
/* halftone print flash: full color by default, comic dots only while a piece is pressed */
.piece-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(17, 17, 17, 0.38) 1px, transparent 1.6px) 0 0 / 5px 5px;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.piece-link:active .piece-frame img { filter: grayscale(0.85) contrast(1.1); transition-duration: 80ms; }
.piece-link:active .piece-frame::after { opacity: 1; transition-duration: 80ms; }

/* the piece's name sits in a narration box in the panel's corner */
.piece-label {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: grid; gap: 1px; max-width: calc(100% - 1rem);
  padding: 0.45rem 0.7rem 0.4rem;
  background: var(--white); color: var(--ink);
  border-top: var(--frame) solid var(--ink); border-right: var(--frame) solid var(--ink);
  font-size: 0.6875rem;
}
.piece-label b { font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.04em; }
.piece-label span { color: var(--ink-soft); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .gallery .piece-link:hover img { transform: scale(1.04); }
  .piece-link:hover .piece-label b { color: var(--red); }
}
.piece-link:focus-visible { outline-offset: 0.25rem; }

/* ---------- Viewer (opens a piece large, on the page) ---------- */
.viewer { border: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--paper); }
.viewer::backdrop { background: radial-gradient(ellipse at 40% 45%, rgba(70, 70, 70, 0.86), rgba(10, 10, 10, 0.97) 70%); }
.viewer[open] { display: grid; place-items: center; animation: viewer-in 200ms var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, auto) minmax(13.75rem, 20rem); gap: clamp(1rem, 3vw, 2.25rem); align-items: end;
  max-width: min(75rem, 94vw); max-height: 92svh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.viewer-pin { position: relative; display: block; justify-self: center; transform: rotate(-1deg); filter: drop-shadow(0 1.75rem 2.125rem rgba(0, 0, 0, 0.65)); }
.viewer-pin::before, .viewer-pin::after { /* tape */
  content: ""; position: absolute; top: -0.875rem; z-index: 2;
  width: 6rem; height: 1.75rem;
  background: rgba(246, 244, 239, 0.72);
  box-shadow: 0 2px 0.25rem rgba(0, 0, 0, 0.25);
}
.viewer-pin::before { left: 8%; transform: rotate(-8deg); }
.viewer-pin::after { right: 8%; transform: rotate(7deg); }
.viewer-img { display: block; max-width: 100%; max-height: 82svh; width: auto; height: auto; border: 0.5rem solid var(--paper); background: var(--paper); }
.viewer-info { display: grid; gap: 0.625rem; padding-bottom: 0.375rem; }
.viewer-title { margin: 0; font-size: clamp(1.875rem, 3.4vw, 2.875rem); color: var(--paper); }
.viewer-meta { margin: 0; color: #c9c6bf; }
.viewer-nav { display: flex; gap: 0.5rem; margin-top: 0.375rem; }
.viewer-nav .btn { width: 3.25rem; min-width: 3.25rem; padding: 0; color: var(--paper); border-color: var(--paper); }
.viewer .text-link.red { color: var(--paper); text-decoration: underline 2px var(--red); text-underline-offset: 0.25em; }
.viewer-close {
  position: fixed; top: max(0.875rem, env(safe-area-inset-top)); right: max(0.875rem, env(safe-area-inset-right));
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 2px solid var(--paper); border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.5rem; cursor: pointer;
}
.viewer-close .icon { transform: rotate(45deg); }

/* commissions examples */
.example { margin: 0; padding: 0.625rem; gap: 0.625rem; }
.example img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 2px solid var(--ink); }
.example figcaption { padding: 0 2px 2px; }
.example .piece-link { display: grid; gap: 0.625rem; }
@media (hover: hover) and (pointer: fine) { .example .piece-link:hover figcaption { color: var(--red); } .example .piece-link:hover img { transform: scale(1.02); } }
.example img { transition: transform 280ms var(--ease-out); }

/* buy button on closet cards */
.product-card .meta .buy { margin-top: 0.5rem; min-height: 2.75rem; width: 100%; }

@media (max-width: 760px) {
  .viewer-inner { grid-template-columns: 1fr; align-items: start; justify-items: center; overflow-y: auto; }
  .viewer-img { max-height: 60svh; }
  .viewer-info { justify-self: stretch; }
}
@media (max-width: 640px) {
  .gallery > .piece { flex-basis: calc(var(--r) * 8.5rem); }
  .piece-label { font-size: 0.625rem; padding: 0.3rem 0.5rem; }
  .piece-label b { font-size: 0.6875rem; }
  .piece-label span { display: none; }
  .chip { min-height: 2.5rem; padding: 0.4375rem 0.75rem; font-size: 0.8125rem; }
}

/* closet: one grid of products */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.shop-grid .product-card[hidden] { display: none; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* closet: collectible trading cards */
.trading-card { background: var(--white); padding: 0.625rem; border-radius: 0.875rem; gap: 0.5rem; }
.trading-card::before { border-radius: 0.875rem; }
.card-top { position: relative; z-index: 5; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.375rem 0.5rem; background: var(--red); color: var(--white); border-radius: 0.375rem; font-size: 0.75rem; }
.trading-card .art, .trading-card .pencils { position: relative; inset: auto; aspect-ratio: 4 / 5; border: 2px solid var(--ink); border-radius: 0.5rem; overflow: hidden; }
.trading-card .meta { border-top: none; padding: 0.25rem 0.25rem 2px; background: transparent; }
.trading-card::after { /* foil sheen on hover */
  content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: 0.875rem;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.6) 48%, rgba(255, 255, 255, 0.15) 54%, transparent 62%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .trading-card { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
  .trading-card:hover { transform: translateY(-0.25rem) rotate(-0.6deg); box-shadow: 0 1.375rem 1.875rem -1.25rem rgba(17, 17, 17, 0.6); }
  .trading-card:hover::after { transform: translateX(120%); transition: transform 800ms var(--ease-out); }
}

.viewer-pin:focus { outline: none; }

/* the viewer develops each piece from halftone print to full color */
.viewer-dots {
  position: absolute; inset: 0.5rem; z-index: 1; pointer-events: none;
  background: radial-gradient(rgba(17, 17, 17, 0.4) 1px, transparent 1.6px) 0 0 / 5px 5px;
  mix-blend-mode: multiply;
  opacity: 0;
}
.viewer-pin.develop .viewer-dots { animation: dots-out 900ms var(--ease-out) 120ms both; }
.viewer-pin.develop .viewer-img { animation: develop 900ms var(--ease-out) 120ms both; }
@keyframes dots-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes develop { from { filter: grayscale(0.9) contrast(1.12); } to { filter: none; } }

/* closet: Printify product photos fill the card window (art cutouts keep their padding) */
.product-card .art.photo { background: var(--white); }
.product-card .art.photo img { padding: 0; object-fit: cover; }
.trading-card .art.photo { aspect-ratio: 1; }
/* card band: the number never clips; a long drop name trims instead */
.card-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-top > span:last-child { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .card-top { font-size: 0.6875rem; padding: 0.3125rem 0.4375rem; } }

/* About: the work fills the portrait panel until the self-portrait arrives */
.about-wall .wall { position: absolute; z-index: 2; inset: 3.625rem 1.125rem 1.125rem; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.625rem; }
.about-wall .tile img { object-position: 50% 30%; }
@media (max-width: 1000px) { .about-wall { min-height: 26.25rem; } }

/* About page: the self-portrait sketch, printed on white */
.about-portrait .art { inset: 3.25rem 1.125rem 1.125rem; }
.about-portrait .art img { object-fit: contain; mix-blend-mode: multiply; }

/* ================= Opening tier: every page starts on one row of comic panels ================= */
.tier {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  min-height: clamp(20rem, 30vw, 28rem);
}
.sheet > .tier + * { margin-top: var(--gutter); }
.tier > .tier-title { grid-column: span var(--span, 5); min-height: 0; container-type: inline-size; }
.tier-title h1 { font-size: min(var(--tfs), 8.5rem); max-width: none; text-wrap: balance; }
.tier-title .lede { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.tier-title .lede-cta { margin: 1.25rem 0 0; }
.tier-art { grid-column: span 2; margin: 0; min-height: 0; }
.tier-art.s3 { grid-column: span 3; }
.tier-art.s4 { grid-column: span 4; }
.tier-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); }

/* a narration box in a panel's bottom-left corner */
.caption-b {
  position: absolute; left: 0; bottom: 0; z-index: 5;
  max-width: calc(100% - 1rem); margin: 0;
  padding: 0.5rem 0.75rem 0.45rem;
  background: var(--white); color: var(--ink);
  border-top: var(--frame) solid var(--ink); border-right: var(--frame) solid var(--ink);
}
.panel.red.dotted { background: var(--dots-red), var(--red); }

@media (max-width: 900px) {
  .tier { min-height: 0; }
  .tier > .tier-title { grid-column: 1 / -1; min-height: 15rem; }
  .tier-art, .tier-art.s3, .tier-art.s4 { grid-column: span 4; height: clamp(10rem, 34vw, 15rem); }
  .tier > figure:first-of-type:nth-last-of-type(2), .tier > figure:nth-of-type(2):last-of-type { grid-column: span 6; }
  .tier-art .caption-b { font-size: 0.625rem; padding: 0.3rem 0.45rem; }
}

/* ================= Closet: doors into the two drops ================= */
.door { min-height: clamp(18rem, 28vw, 24rem); justify-content: flex-end; }
.door-art {
  position: absolute; z-index: 1; top: 3.5rem; left: 1.5rem; right: 1.5rem; bottom: 6.25rem;
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
}
.door-art img {
  flex: 0 1 auto; min-width: 0; height: 100%; width: auto; object-fit: contain;
  border: var(--frame) solid var(--ink); background: var(--white);
  box-shadow: 0 1rem 1.5rem -1rem rgba(0, 0, 0, 0.7);
  transition: transform 260ms var(--ease-out);
}
.door-art img:nth-child(1) { rotate: -3deg; }
.door-art img:nth-child(2) { rotate: 2deg; }
.door-non .door-art img:nth-child(2) { border: 0; background: none; box-shadow: none; height: 70%; }
.door-foot { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1rem; flex-wrap: wrap; }
.door-foot b { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 0.92; }
.door-indian .door-foot b em { font-style: normal; color: var(--ink); }
.door-non .door-foot b em { font-style: normal; color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  a.door:hover .door-art img:nth-child(1) { transform: rotate(-3deg) translateY(-0.4rem); }
  a.door:hover .door-art img:nth-child(2) { transform: rotate(3deg) translateY(-0.25rem); }
}
@media (max-width: 1000px) { .doors .door { grid-column: span 12; } }

/* ================= Drop pages ================= */
.art-panel { margin: 0; }
.art-panel .piece-link { position: absolute; inset: 0; display: block; }
.art-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: clamp(1rem, 2vw, 1.75rem); transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .art-panel .piece-link:hover img { transform: scale(1.03); } }
.art-panel .piece-link:focus-visible { outline-offset: -0.5rem; }
.drop-card { display: flex; min-width: 0; }
.drop-card > .product-card { width: 100%; }
@media (max-width: 1000px) { .grid > .drop-card { grid-column: span 6; } }
@media (max-width: 640px) { .grid > .drop-card { grid-column: span 1; } }

/* ================= The Cast ================= */
.riff-hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
  padding: 4rem clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
}
.riff-stage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(0.75rem, 1.5vw, 1.25rem); align-items: end; }
.riff-step { margin: 0; display: grid; gap: 0.5rem; justify-items: start; }
.riff-frame { display: block; width: 100%; padding: clamp(0.5rem, 1vw, 0.9rem); background: var(--white); border: var(--frame) solid var(--ink); box-shadow: 0.4rem 0.4rem 0 var(--ink); }
.riff-frame img { width: 100%; height: auto; }
.riff-step:first-child { rotate: -3deg; }
.riff-step.main { rotate: 1.5deg; }
.riff-card { display: grid; gap: 1rem; justify-items: start; }
.riff-card .starring { margin: 0; padding: 0.5rem 0.875rem; background: var(--ink); color: var(--white); transform: rotate(-3deg); }
.riff-card h2 { margin: 0; font-size: clamp(3.5rem, 8vw, 7.5rem); color: var(--white); }
.riff-line { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); max-width: 30ch; }
.riff-card .note-slot { color: var(--ink-soft); }
@media (max-width: 900px) { .riff-hero { grid-template-columns: 1fr; } }

.cast-card .art { position: relative; inset: auto; }
.cast-card .art.ink { background: var(--ink); }
.cast-card .art.white { background: var(--white); }
.cast-card .art img { padding: 0.5rem; }
.cast-card .meta { display: grid; gap: 0.375rem; align-content: start; }
.cast-card .meta h3 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.cast-card .role { margin: 0; color: var(--red); }
.cast-card .text-link { font-size: 0.9375rem; }
.bio-slot {
  display: flex; align-items: center; gap: 0.4rem; margin: 0.25rem 0 0; padding: 0.5rem 0.625rem;
  background: var(--hatch), var(--paper); border: 1.5px dashed var(--ink-soft); color: var(--ink-soft);
  font-size: 0.8125rem; font-weight: 600;
}
@media (max-width: 1000px) { .grid > .cast-card { grid-column: span 6; } }
@media (max-width: 640px) { .grid > .cast-card { grid-column: span 2; } }

/* ================= Commissions: the request form ================= */
.cform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-top: 1.25rem; }
.cform .span2 { grid-column: 1 / -1; }
.field { display: grid; gap: 0.375rem; min-width: 0; align-content: start; }
.field label { font-weight: 800; font-variation-settings: "wdth" 85; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8125rem; }
.field .opt { color: var(--ink-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }
.cform input, .cform select, .cform textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.875rem;
  border: 2.5px solid var(--ink); border-radius: 0;
  background-color: var(--white); color: var(--ink);
  font: 600 max(16px, 1rem)/1.35 var(--f-display);
  transition: box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.cform textarea { min-height: 8rem; resize: vertical; }
.cform select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.42rem 0.42rem; background-repeat: no-repeat;
}
.cform input[type="file"] { padding: 0.6rem; cursor: pointer; }
.cform :is(input, select, textarea):focus-visible { outline: none; box-shadow: 0.3rem 0.3rem 0 var(--red); }
.cform [aria-invalid="true"] { border-color: var(--red); box-shadow: 0.3rem 0.3rem 0 var(--red); }
.cform .hint { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.cform-send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.cform-msg { margin: 0; flex: 1 1 16rem; font-weight: 700; }
.cform-msg:empty { display: none; }
@media (max-width: 640px) { .cform { grid-template-columns: 1fr; } }

/* the timelapse panel */
.process { padding: 3.25rem clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem); gap: 0.875rem; }
.process-video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1018; max-height: 46rem; object-fit: contain; background: var(--white); border: var(--frame) solid var(--paper); }
.process > .caption-b { position: relative; align-self: flex-start; border: 0; }
.reach { gap: 0.875rem; }
.example .caption-b { font-size: 0.6875rem; }
.cast-card .art img.crop-king { padding: 0; object-fit: cover; object-position: 28% 50%; }

/* ================= Viewer: scroll through a piece's process to the finished image ================= */
.viewer.has-steps .viewer-inner { grid-template-columns: minmax(0, min(60vw, 52rem)) minmax(13.75rem, 20rem); align-items: center; }
.viewer-steps {
  height: 94svh; width: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  display: grid; gap: 8svh; padding: 3svh 0.5rem 6svh;
  scrollbar-width: thin; scrollbar-color: var(--paper) transparent;
}
.viewer-steps:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.viewer-stepfig {
  margin: 0; height: 82svh; scroll-snap-align: center;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.75rem; justify-items: center;
}
.viewer-stepfig img {
  min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; align-self: center;
  border: 0.5rem solid var(--paper); background: var(--paper);
  filter: drop-shadow(0 1.75rem 2rem rgba(0, 0, 0, 0.6));
}
.viewer-stepfig figcaption { color: var(--paper); }
.viewer-stepfig.is-final figcaption { padding: 0.35rem 0.75rem 0.3rem; background: var(--red); color: var(--white); }
.viewer-stepfig.is-after { height: 60svh; }
.viewer-step { margin: 0; color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .viewer-steps { scroll-behavior: smooth; } }
@media (max-width: 760px) {
  .viewer.has-steps .viewer-inner { grid-template-columns: 1fr; }
  .viewer-steps { height: 70svh; }
  .viewer-stepfig { height: 62svh; }
}
.viewer-pin[hidden], .viewer-steps[hidden], .viewer-step[hidden] { display: none; }
.viewer-stepfig video { min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; align-self: center; background: var(--white); border: 0.5rem solid var(--paper); }
@media (max-width: 1000px) { .nav { gap: 2px clamp(0.75rem, 2vw, 1.5rem); } }

/* Desi: the same wall, at a bigger size, so each piece reads close to full size */
.gallery.big > .piece { flex-basis: calc(var(--r) * 30rem); }
@media (max-width: 640px) { .gallery.big > .piece { flex-basis: calc(var(--r) * 16rem); } }

/* Doors fill their panels at every window size: the art is panels inside the panel, cropped to fit, never floating in empty ground */
.door { min-height: clamp(26rem, 40vw, 38rem); justify-content: flex-start; gap: 1.25rem; }
.door-art { position: relative; inset: auto; z-index: 1; flex: 1 1 auto; min-height: 15rem; display: grid; gap: 0.875rem; margin-top: 2.25rem; }
.door-art img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.door-indian .door-art { grid-template-columns: 0.85fr 1.35fr; }
.door-indian .door-art img:nth-child(1) { object-position: 50% 35%; }
.door-indian .door-art img:nth-child(2) { object-position: 35% 50%; }
.door-non .door-art { grid-template-columns: 1.15fr 1fr; align-items: center; }
.door-non .door-art img:nth-child(1) { object-position: 50% 28%; }
.door-non .door-art img:nth-child(2) { height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0.25rem 0.25rem 0 var(--red)); }
.door-foot { margin-top: auto; }
@media (max-width: 640px) {
  .door { min-height: 0; }
  .door-art { min-height: min(90vw, 22rem); }
}

/* Closet door, Naughty or Nice: same as the cover panel. Santa (the crewneck's back print) is the whole door,
   his face in the top of the panel; the lettering sits over a red fade, glows on hover; snow falls. */
.door-non { justify-content: flex-end; }
.door-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.door-bg 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; transition: transform 600ms var(--ease-out); }
.door-bg::after { content: ""; position: absolute; inset: 0; 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%); }
.door-logo { position: relative; z-index: 3; display: block; margin-top: auto; }
.door-logo img { display: block; width: min(80%, 26rem); height: auto; 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); }
.door-non .door-foot { position: relative; z-index: 3; margin-top: 0; align-items: center; }
.door-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.door-non:hover .door-bg img { transform: scale(1.05); }
  a.door-non:hover .door-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.door-non:hover .snow { opacity: 1; }
}
@media (max-width: 640px) { .door-non { min-height: 30rem; } }
.door-non .door-foot b { font-size: inherit; line-height: 1.2; }
/* a wide door (tablet, full width): Santa takes the right side, the lettering stands on red beside him */
@media (min-width: 641px) and (max-width: 1000px) {
  .door-bg img { left: auto; right: 0; translate: none; width: 62%; min-width: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
  .door-bg::after { background: linear-gradient(to top, rgba(197, 30, 30, 0.9) 0, rgba(197, 30, 30, 0) 40%); }
  .door-logo img { width: min(46%, 24rem); }
}

/* About: contact sits beside the self-portrait, settled at the foot of its panel */
.about-contact { justify-content: flex-end; }
.about-contact > .caption { margin-bottom: auto; }
.about-contact h2.t-title { font-size: clamp(3.5rem, 8.5vw, 8rem) !important; line-height: 0.9; }

/* ================= Every artwork opens in the viewer (2026-12-04) ================= */
/* page-header art panels: the whole panel is the link */
.tier-art .piece-link, .tier-art .tier-link { position: absolute; inset: 0; display: block; color: inherit; cursor: zoom-in; }
.tier-art .tier-link { cursor: pointer; }
.tier-art img { transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tier-art a:hover img { transform: scale(1.04); }
  .tier-art a:hover .caption-b { background: var(--red); color: var(--white); }
}
.tier-art a:focus-visible { outline: 3px solid var(--red); outline-offset: -6px; }
/* card and portrait art: the link fills the art window, art keeps its own fit */
.art > .piece-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cast-card .art .piece-link img { object-fit: contain; }
.cast-card .art .piece-link img.crop-king { object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .cast-card .art .piece-link:hover img, .about-portrait .piece-link:hover img { transform: scale(1.03); } }
/* Riff Rider's inks + colors: one link around both frames */
.piece-link.riff-stage { color: inherit; cursor: zoom-in; }
@media (hover: hover) and (pointer: fine) { .piece-link.riff-stage:hover .riff-step.main { rotate: 0deg; } .piece-link.riff-stage:hover .riff-step:first-child { rotate: -5deg; } }
.riff-step { transition: rotate 260ms var(--ease-out); }
/* Desi: two set rows; small basis so each row stays on one line and fills the width */
.gallery-panel > .gallery.big + .gallery.big { margin-top: var(--gutter); }
@media (min-width: 641px) { .gallery.big > .piece { flex-basis: calc(var(--r) * 10rem); } }
/* HO HO HO: a black comic outline */
.door-non[data-sfx]::after { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0.2rem 0.2rem 0 var(--ink); }
@media (min-width: 641px) { .gallery.big::after { content: none; } } /* Desi rows are set by hand: each one fills the width */
/* small labels never drop below a readable 11px on any screen */
.tier-art .caption-b, .example .caption-b { font-size: max(11px, 0.625rem); }
.card-top, .piece-label, .piece-label span { font-size: max(11px, 0.6875rem); }

/* ================= Red & Blue series (/art/red-and-blue/) and The Horses spread ================= */
/* doors: the paintings fill the door edge to edge, cropped to their faces */
.door-series .door-art { grid-template-columns: repeat(4, 1fr); }
.door-series.door-back .door-art, .door-horses .door-art { grid-template-columns: 1fr 1fr; }
.door-series .door-art img, .door-horses .door-art img { object-position: 50% 30%; }
.door-series .door-art img:nth-child(3) { rotate: -2deg; }
.door-series .door-art img:nth-child(4) { rotate: 2.5deg; }
.door-horses .door-foot b em { font-style: normal; color: var(--ink); }
@media (max-width: 640px) {
  .door-series .door-art { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(11rem, 1fr); }
}
@media (hover: hover) {
  a.door-series:hover .door-art img:nth-child(3) { transform: rotate(-2deg) translateY(-0.3rem); }
  a.door-series:hover .door-art img:nth-child(4) { transform: rotate(2deg) translateY(-0.4rem); }
}
/* the horses: one spread, two equal panels, no gap wider than the gutter */
.spread .gallery.big > .piece { flex: 1 1 0; }
/* a title-only header (Red & Blue, The Horses): the lettering fills the panel instead of floating in it */
.tier:has(> .tier-title:only-child) { min-height: 0; }
.tier > .tier-title:only-child { padding-top: 3.75rem; }
.tier > .tier-title:only-child h1 { font-size: clamp(4rem, 15vw, 14rem); line-height: 0.85; }
/* doors: a set height, the art cropped to fill it */
.door-series .door-art, .door-horses .door-art { flex: none; height: clamp(15rem, 34vw, 32rem); min-height: 0; grid-auto-rows: 100%; }
.door-series .door-foot b em { font-style: normal; color: var(--red); }
@media (max-width: 640px) {
  .door-series .door-art { height: auto; grid-auto-rows: 12rem; }
  .door-series.door-back .door-art, .door-horses .door-art { height: 18rem; grid-auto-rows: 100%; }
}
/* phones: big walls (Desi, Red & Blue) run one piece per row, edge to edge; the horses stay a side-by-side spread */
@media (max-width: 640px) {
  .gallery.big::after { content: none; }
  .gallery.big > .piece { flex: 1 1 100%; }
  .spread .gallery.big { flex-wrap: nowrap; }
  .spread .gallery.big > .piece { flex: 1 1 50%; min-width: 0; }
}
