/* wattsy.art — the dark room.
   Warm ceramic black, bone text, gold as material (the kintsugi seam),
   one micro-dose of verdigris reserved for verified receipts.

   Width system: the room is a wall (--page), not a column. Running prose
   keeps a classic reading measure (--measure) centered on the wall; the
   surfaces that are evidence rather than argument — the timeline and its
   two rails, project galleries, the receipt placard — take the wall's
   width. Receipts break the measure to --plate: the evidence gets the
   room the prose declines. */

/* ---------- faces (self-hosted, OFL) ---------- */
@font-face { font-family: 'EB Garamond'; src: url('fonts/eb-garamond-v33-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/eb-garamond-v33-latin-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/eb-garamond-v33-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('fonts/source-serif-4-v14-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('fonts/source-serif-4-v14-latin-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('fonts/source-serif-4-v14-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --ink: #171310;            /* fired ceramic */
  --clay: #201a14;           /* lifted surface */
  --bone: #e9e2d4;           /* primary text */
  --ash: #a2977f;            /* secondary text */
  --line: rgba(233, 226, 212, 0.10);
  --gold: #c9a02f;           /* the seam */
  --gold-bright: #e9c463;
  --gold-dim: rgba(201, 160, 47, 0.38);
  --gold-glow: rgba(201, 160, 47, 0.22);
  --verdigris: #7fa88f;      /* verified — nowhere else */

  --display: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --measure: 42rem;   /* reading measure — running prose only */
  --page: 66rem;      /* the wall — full content width of the room */
  --plate: 54rem;     /* receipts break the measure to this on wide walls */
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
}

/* ---------- ground ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: #3a322a var(--ink); }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold-dim); color: var(--ink); }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-dim); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 120ms ease, text-decoration-color 120ms ease; }
a:hover { color: var(--gold-bright); text-decoration-color: var(--gold-bright); }
a:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; border-radius: 1px; }

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.dim { color: color-mix(in srgb, var(--ash) 70%, var(--ink)); }

/* ---------- the seam ---------- */
.seam { display: block; width: 100%; height: 16px; margin: 1.1rem 0 0.9rem; overflow: visible; }
.seam path {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--gold-glow));
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: seam-draw 1.4s cubic-bezier(0.5, 0, 0.2, 1) both;
}
.seam .seam-fork { stroke-width: 0.9; opacity: 0.55; animation-delay: 0.9s; animation-duration: 0.6s; }
.seam-small { height: 12px; max-width: 13rem; margin: 1.6rem 0 0; }
@keyframes seam-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .seam path { animation: none; }
}

/* ---------- the room ---------- */
:root { --wall: 84rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- the bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  background: linear-gradient(rgba(23, 19, 16, 0.86), rgba(23, 19, 16, 0));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-mark { font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.01em; }
.bar-nav { display: flex; gap: 1.6rem; }
.bar-nav a { text-decoration: none; color: var(--ash); }
.bar-nav a:hover { color: var(--gold-bright); }

/* ---------- the hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {   /* the field fades into the room at the bottom and the left */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(23, 19, 16, 0) 30%),
    radial-gradient(ellipse 60% 55% at 18% 78%, rgba(23, 19, 16, 0.75), rgba(23, 19, 16, 0) 100%);
}
.hero-inner { padding: 0 var(--gutter) clamp(4.5rem, 12vh, 8rem); max-width: calc(var(--wall) + 2 * var(--gutter)); width: 100%; margin: 0 auto; }
.hero-eyebrow { color: var(--gold); margin-bottom: 1rem; }
.hero-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(5rem, 21vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.seam-hero { max-width: min(38rem, 80vw); margin: 1.6rem 0 1.2rem; }
.seam-hero path { animation-delay: 0.7s; }
.seam-hero .seam-fork { animation-delay: 1.6s; }
.hero-line { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--bone); max-width: 30rem; }
.hero-cue {
  position: absolute; right: var(--gutter); bottom: clamp(1.6rem, 5vh, 3rem);
  text-decoration: none; color: var(--ash);
}
.hero-cue span { display: inline-block; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* letters arrive one by one */
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(6px); } }

/* ---------- the ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 0.85rem 0; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: run 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > div { display: flex; align-items: center; }
.ticker span { padding: 0 1.4rem; }
.ticker b { color: var(--bone); font-weight: 500; margin-right: 0.5em; }
.ticker i { color: var(--gold); font-style: normal; font-size: 0.6rem; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- the works ---------- */
.works, .about { max-width: calc(var(--wall) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(4rem, 12vh, 8rem) var(--gutter) 0; scroll-margin-top: 1rem; }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: clamp(2rem, 5vh, 3.2rem); }

.filter { border: 0; display: flex; gap: 0.4rem; }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label {
  cursor: pointer; padding: 0.55em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ash);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.filter label:hover { color: var(--bone); border-color: var(--gold-dim); }
.filter input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.filter input:focus-visible + label { outline: 1.5px solid var(--gold); outline-offset: 3px; }
/* the switch works without JavaScript: the cards that do not match step out */
.works:has(#f-art:checked) .card:not([data-strand="art"], [data-strand="both"]),
.works:has(#f-eng:checked) .card:not([data-strand="engineering"], [data-strand="both"]) { display: none; }

.cards { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.4rem, 5vw, 4rem) clamp(1rem, 2.4vw, 2rem); }
.card { grid-column: span 4; }
.card--feature { grid-column: span 6; }
.card-link { display: block; text-decoration: none; position: relative; }
.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--clay);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.card--feature .card-media { aspect-ratio: 1 / 1; }
.card-media img, .work-media img, .card-media canvas, .work-media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.card-media img, .work-media img {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 600ms ease, transform 2.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card-media img.on, .work-media img.on { opacity: 1; }
.card-link:hover .card-media img { transform: scale(1.09); }
.card-media img.pixel, .work-media img.pixel { image-rendering: pixelated; object-fit: contain; padding: 14%; transform: none; }
/* a soft gold light follows the pointer across the picture */
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(233, 196, 99, 0.2), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
.card-link:hover .card-media::after { opacity: 1; }
.card-link:hover .card-media { border-color: var(--gold-dim); }
.card-text { padding-top: 1rem; }
.card-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.45rem; }
.strand { padding: 0.14em 0.65em; border-radius: 999px; border: 1px solid var(--gold-dim); color: var(--gold); font-size: 0.6rem; }
.strand-engineering { border-color: var(--line); color: var(--ash); }
.strand-trunk { border-color: var(--line); color: var(--bone); }
.card-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.012em;
  display: inline;
  background: linear-gradient(var(--gold-bright), var(--gold-bright)) 0 100% / 0 1px no-repeat;
  transition: background-size 420ms cubic-bezier(0.2, 0.7, 0.1, 1), color 160ms ease;
}
.card--feature .card-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.card-link:hover .card-title { color: var(--gold-bright); background-size: 100% 1px; }
.card-summary { color: var(--ash); font-style: italic; font-size: 1rem; line-height: 1.5; margin-top: 0.5rem; max-width: 34rem; }
.card-by { margin-top: 0.5rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; padding-bottom: 2rem; }
.about-body { margin: 0; font-size: 1.22rem; }

/* ---------- a work's page ---------- */
.work { max-width: calc(var(--wall) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(5.5rem, 14vh, 8rem) var(--gutter) 0; }
.work-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(3rem, 8vh, 5rem); }
.crumb { margin-bottom: clamp(1.6rem, 5vh, 3rem); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--gold-bright); }
.eyebrow { color: var(--gold); margin-bottom: 1rem; }
.eyebrow .sep { margin: 0 0.55em; color: var(--ash); }
.work-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 6.2rem); line-height: 0.95; letter-spacing: -0.025em;
}
.work-standfirst { font-family: var(--display); font-style: italic; color: var(--bone); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; margin-top: 1.3rem; max-width: 34rem; }
.byline { margin-top: 1rem; }
.byline b { color: var(--bone); font-weight: 500; }
.work-link { margin-top: 1.2rem; overflow-wrap: anywhere; }
.work-link a { text-decoration: none; color: var(--gold); }
.work-link a:hover { color: var(--gold-bright); }
.work-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--clay); border: 1px solid var(--line); border-radius: 4px; }
.work-media img { transform: none; }
.lost { min-height: 70vh; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(4rem, 10vh, 6rem); border-top: 1px solid var(--line); }
.step { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.6rem 0; text-decoration: none; }
.step-next { text-align: right; align-items: flex-end; }
.step-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; transition: color 160ms ease, transform 300ms ease; }
.step:hover .step-title { color: var(--gold-bright); }
.step-prev:hover .step-title { transform: translateX(-6px); }
.step-next:hover .step-title { transform: translateX(6px); }

/* ---------- footer ---------- */
.foot { max-width: calc(var(--wall) + 2 * var(--gutter)); margin: clamp(4rem, 12vh, 7rem) auto 0; padding: 0 var(--gutter) 2.4rem; }
.seam-foot { margin: 0 0 1.2rem; height: 12px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.6rem; }
.foot-row a { text-decoration: none; }
.icon { width: 1.05em; height: 1.05em; flex: none; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; }
.social { display: inline-flex; align-items: center; gap: 0.55em; color: var(--bone); }
.social:hover { color: var(--gold-bright); }
.social .icon { width: 1.1rem; height: 1.1rem; }
/* OpenSea: a round mark on the card's picture, and beside the link on its page */
.card { position: relative; }
.card-opensea, .work-opensea { display: inline-flex; color: var(--bone); transition: color 160ms ease, transform 200ms ease; }
.card-opensea { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 1; padding: 0.45rem; border-radius: 50%; background: rgba(23, 19, 16, 0.72); }
.card-opensea .icon { width: 1.35rem; height: 1.35rem; }
.card-opensea:hover, .work-opensea:hover { color: #2081e2; transform: scale(1.08); }
.work-link { display: flex; align-items: center; gap: 1rem; }
.work-opensea .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- motion: blocks rise in (only once motion.js is running) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* pages cross-fade, and a work's picture flies from its card to its page */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 560ms; animation-timing-function: cubic-bezier(0.3, 0.7, 0.1, 1); }

@media (prefers-reduced-motion: reduce) {
  .ch, .hero-cue span, .ticker-track { animation: none; }
  .ticker { white-space: normal; }
  .ticker-track > div + div { display: none; }
  .ticker-track { width: auto; flex-wrap: wrap; }
  .ticker-track > div { flex-wrap: wrap; }
  .card-media img, .work-media img { transition: opacity 200ms ease; transform: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- mid and small rooms ---------- */
@media (max-width: 899px) {
  .card, .card--feature { grid-column: span 6; }
  .card--feature:first-child { grid-column: span 12; }
  .about, .work-head { grid-template-columns: minmax(0, 1fr); }
  .work-media { max-width: 36rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .card, .card--feature { grid-column: span 12; }
  .card--feature .card-media { aspect-ratio: 4 / 3; }
  .hero-cue { display: none; }
  .bar-nav { gap: 1rem; }
  .receipt-row, .receipt-cmd { grid-template-columns: 1fr; gap: 0.15rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery--pixel .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-next { text-align: left; align-items: flex-start; }
}
/* ---------- prose ---------- */
/* running prose never takes the wall: it keeps the reading measure */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.25;
  margin-top: 2.2em;
  letter-spacing: -0.008em;
}
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.28rem; margin-top: 1.9em; }
.prose em { font-family: inherit; }
.prose strong { font-weight: 600; color: #f3edde; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote {
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.1em;
  font-style: italic;
  color: var(--ash);
}
.prose hr {
  border: none;
  height: 1px;
  width: 4rem;
  background: var(--gold-dim);
  margin: 2.4em 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--clay);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: #ddd3bd;
  overflow-wrap: anywhere;  /* long addresses and URLs break rather than overflow small rooms */
}
.prose pre {
  background: var(--clay);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  line-height: 1.55;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.8rem; }
.prose img { max-width: 100%; height: auto; border-radius: 3px; }
.prose figure { margin: 1.6em 0; }

/* ---------- the receipt placard ---------- */
.receipt {
  background: var(--clay);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 3px;
  padding: 0.9rem 1.15rem 1rem;
  margin: 1.8em 0;
  box-shadow: -6px 0 18px -14px var(--gold-glow);
}
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.receipt-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  border: 1px solid;
}
.chip-verified { color: var(--verdigris); border-color: color-mix(in srgb, var(--verdigris) 45%, transparent); }
.chip-pending { color: var(--ash); border-color: var(--line); }
.chip-note { color: var(--gold); border-color: var(--gold-dim); }
.receipt-row {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.8rem;
  padding: 0.3rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  align-items: baseline;
}
.receipt-key {
  color: var(--ash);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.receipt-val { color: var(--bone); overflow-wrap: anywhere; }
.receipt-val a { text-decoration-color: var(--gold-dim); }
.receipt-cmd { grid-template-columns: 6.2rem 1fr; }
.receipt-cmd code {
  display: block;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.5em 0.7em;
  overflow-x: auto;
  white-space: pre;        /* a command is one line; the box scrolls, select-all still grabs it */
  color: #ddd3bd;
  font-size: 0.76rem;
  user-select: all;   /* one click selects the whole command — no JS needed */
}
/* on wide walls the receipt breaks the reading measure to plate width:
   hashes and commands hold one line instead of wrapping */
@media (min-width: 64rem) {
  .prose .receipt {
    width: var(--plate);
    margin-inline: calc((100% - var(--plate)) / 2);
    padding: 1rem 1.5rem 1.1rem;
  }
  .receipt-row { grid-template-columns: 7.5rem 1fr; }
  /* the command is the plate's last word: label above, full width below,
     so a whole cast call holds one unclipped line */
  .receipt-cmd { grid-template-columns: 1fr; gap: 0.25rem; margin-top: 0.35rem; }
}

/* ---------- project gallery ---------- */
.gallery { margin: 0 0 clamp(1.8rem, 4vh, 2.6rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.5rem; }
.shot { position: relative; display: block; border-radius: 3px; overflow: hidden; }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--clay);
}
.shot-seed {
  position: absolute; left: 0.4rem; bottom: 0.4rem;
  font-size: 0.56rem; color: var(--bone);
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  padding: 0.12em 0.45em; border-radius: 2px;
  opacity: 0; transition: opacity 140ms ease;
}
.shot:hover .shot-seed { opacity: 1; }
.gallery-cap { margin-top: 0.65rem; color: var(--ash); }
/* pixel-art variant: tiny on-chain GIFs, upscaled crisp */
.gallery--pixel .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery--pixel .shot img { image-rendering: pixelated; aspect-ratio: 1 / 1; }
/* on the wall, pixel tiles hold a fixed size and center as a specimen row:
   four across lands on the plate width, and a pair reads as a pair */
@media (min-width: 900px) {
  .gallery--pixel .gallery-grid { grid-template-columns: repeat(auto-fit, 13rem); justify-content: center; }
  .gallery--pixel .gallery-cap { text-align: center; }
}
/* filmstrip variant: one subject rendered across a sequence (e.g. decay stages) */
.gallery--filmstrip .gallery-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.gallery--filmstrip .shot { border-radius: 0; }
.gallery--filmstrip .shot img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: none;
  border-right: 1px solid var(--ink);
  border-radius: 0;
}
.gallery--filmstrip .shot:last-child img { border-right: none; }
.gallery--filmstrip .shot-seed { display: none; }
