/* comfyarts — Explore, /image and /video.

   Art direction: a print catalogue. Warm black, bone-white type, one vermilion signal
   colour, a condensed display face and a mono for the numbers. Square corners, hairline
   rules, catalogue numbers. Nothing glows, nothing is a pill, and nothing moves unless
   the visitor moves it: the motion here is all response to scroll, pointer and click.

   Loaded after comfyarts.css. Rules are scoped under .x-page so the marketplace pages
   that share that file are untouched. */

.x-page {
  --bg: #0B0A09;
  --bg-2: #12100F;
  --bg-3: #1A1816;
  --paper: #F1EDE4;
  --dim: #A8A196;
  --mute: #6F6A61;
  --rule: rgba(241, 237, 228, .13);
  --rule-2: rgba(241, 237, 228, .3);
  --sig: #FF4A1C;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --m: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --e: cubic-bezier(.19, 1, .22, 1);
  --pad: clamp(16px, 3.2vw, 48px);
  background: var(--bg); color: var(--paper);
  font-family: var(--f); font-size: 16px; line-height: 1.5;
}
.x-page ::selection { background: var(--sig); color: #0B0A09; }
.x-wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }
.x-page img, .x-page video { display: block; max-width: 100%; }
.x-page :focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; }


/* ───────────────────────────── header ───────────────────────────── */

/* Complete on its own: pages that never load comfyarts.css (profile, sign-in, legal)
   use the same header markup and get the same header. */
.x-page #nav .nav-in { display: flex; align-items: center; box-sizing: border-box; }
.x-page #nav .brand { display: flex; align-items: center; color: var(--paper); text-decoration: none; white-space: nowrap; }
.x-page #nav .nav-links { display: flex; }
.x-page #nav .nav-links a { position: relative; color: inherit; text-decoration: none; transition: color .2s; }
.x-page #nav .nav-links a:hover, .x-page #nav .nav-links a.active { color: var(--paper); }
.x-page #nav .nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; }
.x-page #nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.x-page #nav .nav-right a { color: var(--paper); text-decoration: none; }
.x-page #nav .nav-upload, .x-page #nav .nav-account { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.x-page #nav .menu-btn { display: none; margin-left: 8px; padding: 6px; border: 0; background: none; cursor: pointer; }
.x-page #nav .mobile { display: none; flex-direction: column; }
.x-page #nav .mobile.open { display: flex; }
.x-page #nav .mobile a { text-decoration: none; }

.x-page #nav {
  position: sticky; top: 0; z-index: 70; height: 64px;
  background: rgba(11, 10, 9, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: transform .5s var(--e);
}
.x-page #nav.is-away { transform: translateY(-100%); }
.x-page .nav-in { width: auto; max-width: 1680px; margin-inline: auto; padding-inline: var(--pad); height: 64px; gap: clamp(18px, 3vw, 44px); }
.x-page .brand { font: 800 19px/1 var(--f); font-stretch: 100%; letter-spacing: -.03em; gap: 10px; }
.x-page .brand img { width: 20px; height: 20px; }
.x-page .nav-links { gap: clamp(14px, 2vw, 30px); font: 500 14px/1 var(--f); color: var(--dim); }
.x-page .nav-links a { padding: 8px 0; }
.x-page .nav-links a.active::after { background: var(--paper); height: 1px; bottom: 2px; }
.x-page .nav-right { font: 500 14px/1 var(--f); }
.x-page .nav-right > a, .x-page .nav-upload, .x-page .nav-account { border-radius: 2px !important; }
.x-page .mobile { background: var(--bg-2); border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 20px; }
.x-page .mobile a { font: 700 26px/1.1 var(--f); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; color: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .x-page #nav .nav-links { display: none; } .x-page #nav .menu-btn { display: block; } }
.x-page .menu-btn, .x-page .menu-btn svg, .x-page .menu-btn .pxi { color: var(--paper) !important; }

/* ───────────────────────────── type ───────────────────────────── */

.xkick { margin: 0; font: 500 12px/1.4 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.xkick b { color: var(--paper); font-weight: 500; }
.xkick i { font-style: normal; color: var(--sig); }

.disp {
  margin: 0; font-family: var(--f); font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.012em; line-height: .86;
}
/* masked line reveal: each line slides up out of its own clip */
.ln { display: block; overflow: hidden; padding-block: .04em; }
.ln > span { display: block; }
.js .ln > span { transform: translateY(108%); transition: transform 1.1s var(--e); transition-delay: calc(var(--d, 0) * 90ms); }
.js .in .ln > span, .js .ln.in > span { transform: none; }
.sig { color: var(--sig); }

/* ───────────────────────────── buttons ───────────────────────────── */

/* Primary: a two-cell block. The label sits still while a vermilion sheet rises behind
   it and the arrow is replaced by the next one sliding in from the left. */
.btn-go {
  position: relative; display: inline-flex; align-items: stretch; height: 56px; padding: 0; border: 0; border-radius: 2px;
  background: var(--paper); color: #0B0A09; cursor: pointer; overflow: hidden; text-decoration: none;
  font: 800 14px/1 var(--f); font-stretch: 100%; letter-spacing: .09em; text-transform: uppercase;
  transition: transform .5s var(--e);
}
.btn-go::before { content: ""; position: absolute; inset: 0; background: var(--sig); transform: translateY(101%); transition: transform .5s var(--e); }
.btn-go > span { position: relative; display: flex; align-items: center; padding: 0 24px; }
.btn-go > i { position: relative; width: 56px; border-left: 1px solid rgba(11, 10, 9, .22); overflow: hidden; }
.btn-go > i::before, .btn-go > i::after {
  content: "\2192"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 500 20px/1 var(--f); font-style: normal; transition: transform .5s var(--e);
}
.btn-go > i::after { transform: translateX(-110%); }
.btn-go:hover::before, .btn-go:focus-visible::before { transform: none; }
.btn-go:hover > i::before, .btn-go:focus-visible > i::before { transform: translateX(110%); }
.btn-go:hover > i::after, .btn-go:focus-visible > i::after { transform: none; }
.btn-go:active { transform: scale(.98); }
.btn-go.sm { height: 44px; font-size: 12.5px; } .btn-go.sm > span { padding: 0 16px; } .btn-go.sm > i { width: 44px; }

/* Text link: the rule under it is redrawn from the left on hover. */
.xlk { position: relative; display: inline-flex; align-items: baseline; gap: 10px; padding-bottom: 6px; color: var(--paper); font: 600 14px/1.2 var(--f); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.xlk::before, .xlk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-2); }
.xlk::after { background: var(--paper); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--e); }
.xlk:hover::after { transform: none; }
.xlk b { font-weight: 500; transition: transform .5s var(--e); }
.xlk:hover b { transform: translateX(5px); }

/* Key: a square that presses down. */
.xkey {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--rule-2); background: var(--bg-2); color: var(--paper); font: 500 18px/1 var(--f);
  box-shadow: 0 4px 0 var(--rule); transition: transform .12s, box-shadow .12s, background .2s, color .2s;
}
.xkey:hover { background: var(--paper); color: #0B0A09; }
.xkey:active { transform: translateY(4px); box-shadow: 0 0 0 var(--rule); }
.xkey:disabled { opacity: .3; pointer-events: none; }

/* Two-way switch: a block slides under the labels and inverts them. */
.tog { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 44px; border: 1px solid var(--rule-2); border-radius: 2px; isolation: isolate; flex: none; }
.tog button { position: relative; z-index: 1; padding: 0 18px; border: 0; background: none; cursor: pointer; color: var(--paper); font: 700 12.5px/1 var(--f); letter-spacing: .09em; text-transform: uppercase; mix-blend-mode: difference; }
.tog-mark { position: absolute; z-index: 0; inset: 3px auto 3px 3px; width: calc(50% - 3px); background: var(--paper); border-radius: 1px; transition: transform .55s var(--e); }
.tog[data-on="1"] .tog-mark { transform: translateX(100%); }

/* Text tabs with counts */
.xtabs { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.xtabs::-webkit-scrollbar { display: none; }
.xtabs button { position: relative; flex: none; padding: 8px 0 10px; border: 0; background: none; cursor: pointer; color: var(--mute); font: 600 14px/1 var(--f); letter-spacing: .03em; text-transform: uppercase; transition: color .25s; }
.xtabs button sup { margin-left: 5px; font: 400 10px/1 var(--m); color: var(--mute); }
.xtabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--e); }
.xtabs button:hover { color: var(--paper); }
.xtabs button.on { color: var(--paper); }
.xtabs button.on::after { transform: none; }

/* ───────────────────────────── hero ───────────────────────────── */

.xh { position: relative; padding: clamp(24px, 3.4vw, 52px) 0 clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.xh-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.xh h1 { margin-top: clamp(16px, 2vw, 28px); font-size: clamp(3.1rem, 6.9vw, 7.6rem); }
.xh-sub { margin: clamp(18px, 2vw, 28px) 0 0; max-width: 46ch; color: var(--dim); font-size: clamp(1rem, 1.15vw, 1.14rem); line-height: 1.55; }

/* composer */
.cmp { margin-top: clamp(24px, 3vw, 40px); border: 1px solid var(--rule-2); border-radius: 2px; background: var(--bg-2); transition: border-color .3s; }
.cmp:focus-within { border-color: var(--paper); }
.cmp-field { display: block; padding: 16px 18px 6px; }
.cmp-lab { display: flex; justify-content: space-between; font: 500 11px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.cmp textarea { display: block; width: 100%; min-height: 62px; resize: none; border: 0; outline: 0; background: none; color: var(--paper); caret-color: var(--sig); font: 500 clamp(1.05rem, 1.5vw, 1.35rem)/1.35 var(--f); }
.cmp textarea::placeholder { color: var(--mute); }
.cmp-row { display: flex; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); }
.cmp-row .tog { height: 56px; border: 0; border-right: 1px solid var(--rule); border-radius: 0; }
.cmp-sel { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 34px 0 18px; border-right: 1px solid var(--rule); cursor: pointer; }
.cmp-sel span { font: 500 10px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cmp-sel select { appearance: none; -webkit-appearance: none; width: 100%; margin-top: 5px; border: 0; outline: 0; background: none; color: var(--paper); font: 600 14.5px/1.2 var(--f); cursor: pointer; text-overflow: ellipsis; }
.cmp-sel select option { background: #12100F; color: #F1EDE4; }
.cmp-sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--dim); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cmp-row .btn-go { border-radius: 0; flex: none; }
@media (max-width: 620px) {
  .cmp-row { flex-wrap: wrap; }
  .cmp-row .tog { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cmp-sel { flex: 1 1 100%; padding-block: 12px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cmp-row .btn-go { flex: 1 1 100%; justify-content: space-between; }
}

/* the deck: loose prints on a table. Pointer moves them in depth; a click brings one up. */
.deck { position: relative; aspect-ratio: 1 / 1.06; max-height: 78vh; margin-inline: auto; width: 100%; touch-action: pan-y; }
.pr {
  position: absolute; left: 50%; top: 50%; width: 47%; aspect-ratio: 4 / 5; margin: -29.4% 0 0 -23.5%;
  padding: 7px 7px 0; background: var(--paper); color: #0B0A09; border-radius: 1px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 30px 60px -20px rgba(0, 0, 0, .75);
  transform: translate(calc(var(--x, 0) * 1% + var(--px, 0px)), calc(var(--y, 0) * 1% + var(--py, 0px))) rotate(calc(var(--r, 0) * 1deg)) scale(var(--s, 1));
  transition: transform 1s var(--e), filter .6s;
  z-index: var(--z, 1); will-change: transform; display: flex; flex-direction: column;
}
.pr img { flex: 1; min-height: 0; width: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.pr-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 30px; flex: none; font: 500 10.5px/1 var(--m); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.pr-cap b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.pr-cap i { font-style: normal; opacity: .6; }
.pr:not(.top) { filter: brightness(.62) saturate(.8); }
.pr:not(.top):hover { filter: brightness(.9); }
.pr.top { --s: 1.08; }
.js .deck:not(.in) .pr { transform: translate(0, 40%) rotate(0deg) scale(.9); opacity: 0; }
.pr { transition: transform 1s var(--e), filter .6s, opacity .6s; transition-delay: calc(var(--n, 0) * 70ms); }
.deck.live .pr { transition-delay: 0ms; }
.deck-hint { position: absolute; right: 0; bottom: -4px; font: 500 11px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 1020px) {
  .xh-grid { grid-template-columns: minmax(0, 1fr); }
  .deck { aspect-ratio: 1 / .82; max-width: 620px; order: 2; }
  .pr { width: 40%; margin: -25% 0 0 -20%; }
}
@media (max-width: 520px) { .deck { aspect-ratio: 1 / .98; margin-top: 18px; } .pr { width: 50%; margin: -31% 0 0 -25%; } .deck-hint, .pr-cap i { display: none; } }

/* ───────────────────────────── section heads ───────────────────────────── */

.sec { padding-top: clamp(64px, 9vw, 140px); }
.sh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(14px, 2vw, 30px); align-items: end; padding-bottom: clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--rule-2); }
.sh-no { align-self: start; padding-top: .5em; font: 500 12px/1 var(--m); letter-spacing: .1em; color: var(--sig); }
.sh h2 { font-size: clamp(2.6rem, 7.4vw, 7.6rem); }
.sh p { grid-column: 2; margin: 14px 0 0; max-width: 56ch; color: var(--dim); font-size: 15.5px; }
.sh .xlk { grid-column: 3; grid-row: 1; align-self: end; margin-bottom: 8px; }
@media (max-width: 760px) { .sh { grid-template-columns: auto minmax(0, 1fr); } .sh .xlk { grid-column: 2; grid-row: auto; justify-self: start; margin: 18px 0 0; } }

.xbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 16px 0; }
.xbar .xtabs { flex: 1 1 320px; min-width: 0; }

/* ───────────────────────────── plates ───────────────────────────── */

.mi-plate, .fr-plate { position: relative; overflow: hidden; background: var(--bg-3); container-type: inline-size; }
.mi-plate img, .mi-plate video, .fr-plate img, .fr-plate video { width: 100%; height: 100%; object-fit: cover; }

/* Typographic specimen, for a model with no sample art yet. Family ink, one of four
   print patterns, and the name set as large as the plate allows. */
.spec { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 7cqw; background: #171513; color: var(--ink, var(--paper)); overflow: hidden; }
.spec::before { content: ""; position: absolute; inset: 0; opacity: .34; }
.spec[data-pat="0"]::before { background: radial-gradient(circle, currentColor 1.1px, transparent 1.7px) 0 0 / 3.4cqw 3.4cqw; mask: linear-gradient(200deg, #000 5%, transparent 62%); }
.spec[data-pat="1"]::before { background: repeating-radial-gradient(circle at 82% 16%, currentColor 0 1px, transparent 1px 4.4cqw); mask: linear-gradient(180deg, #000 20%, transparent 78%); }
.spec[data-pat="2"]::before { background: repeating-linear-gradient(128deg, currentColor 0 1px, transparent 1px 3.2cqw); mask: linear-gradient(160deg, #000, transparent 66%); }
.spec[data-pat="3"]::before { background: linear-gradient(currentColor 1px, transparent 1px) 0 0 / 100% 6cqw, linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / 6cqw 100%; mask: radial-gradient(120% 90% at 100% 0, #000, transparent 70%); }
.spec b { position: relative; display: block; font: 900 var(--fs, 30cqw)/.82 var(--f); font-stretch: 62%; letter-spacing: -.02em; white-space: nowrap; }
.spec i { position: relative; margin-top: 4cqw; font: 500 max(9px, 3.1cqw)/1 var(--m); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.mi-tag { margin-left: .5em; font: 500 10px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--sig); vertical-align: top; position: relative; top: .5em; font-stretch: 100%; }
.mi-no { font: 500 11.5px/1 var(--m); letter-spacing: .06em; color: var(--mute); }
.mi-cost { font: 500 13px/1 var(--m); color: var(--paper); white-space: nowrap; }
.mi-cost b { font-weight: 500; }
.mi-cost small { font-size: 11px; color: var(--mute); }
.mi-hit { position: absolute; inset: 0; z-index: 2; }
.mi-more { position: relative; z-index: 3; font: 500 11px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 0; border-bottom: 1px solid var(--rule-2); transition: color .2s, border-color .2s; }
.mi-more:hover { color: var(--paper); border-color: var(--paper); }

/* image "develops" as it enters: up from the bottom edge, from grey to full colour */
.js .dv :is(img, video, .spec) { clip-path: inset(100% 0 0 0); filter: grayscale(1) contrast(1.25) brightness(.7); transform: scale(1.08); transition: clip-path 1.2s var(--e), filter 1.6s ease .2s, transform 1.6s var(--e); }
.js .dv.in :is(img, video, .spec) { clip-path: inset(0); filter: none; transform: none; }

/* ───────────────────────────── filmstrip (video) ───────────────────────────── */

.fstrip { position: relative; margin-top: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding: 34px 0; -webkit-overflow-scrolling: touch;
  /* sprocket holes, top and bottom */
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, var(--rule) 16px 30px) 0 9px / 100% 12px no-repeat local,
    repeating-linear-gradient(90deg, transparent 0 16px, var(--rule) 16px 30px) 0 calc(100% - 9px) / 100% 12px no-repeat local;
}
.fstrip::-webkit-scrollbar { display: none; }
.fstrip.drag { cursor: grabbing; }
.fstrip.drag .mi-hit { pointer-events: none; }
.strip-track { display: flex; gap: 2px; width: max-content; padding-inline: var(--pad); }
.fr { position: relative; flex: none; width: clamp(236px, 23vw, 344px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--rule); transition: background .4s, border-color .4s; }
.fr[hidden] { display: none; }
.fr-plate { aspect-ratio: 4 / 5; }
.fr-plate :is(img, video) { transition: transform 1.4s var(--e); }
.fr:hover { background: var(--bg-3); border-color: var(--rule-2); }
.fr:hover .fr-plate :is(img, video) { transform: scale(1.05); }
.fr-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 16px 16px 0; }
.fr-cap h3 { margin: 0; font: 800 clamp(1.35rem, 1.9vw, 1.8rem)/.95 var(--f); font-stretch: 68%; text-transform: uppercase; letter-spacing: -.005em; }
.fr-cap .mi-cost { grid-column: 2; }
.fr > p { margin: 10px 16px 0; color: var(--dim); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.fr-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 16px; font: 500 11px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.strip-ctl { display: flex; align-items: center; gap: 12px; padding-top: 18px; }
.strip-bar { flex: 1; height: 1px; background: var(--rule-2); position: relative; margin-inline: 8px; }
.strip-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 18%; background: var(--paper); transform: translateX(0); will-change: transform, width; }
.strip-count { font: 500 12px/1 var(--m); letter-spacing: .08em; color: var(--dim); min-width: 8ch; text-align: right; }

/* ───────────────────────────── index (list ⇄ plates) ───────────────────────────── */

.idx { position: relative; }
.mi { position: relative; }
.mi[hidden] { display: none !important; }
.idx.is-collapsed .mi:nth-of-type(n + 13) { display: none; }

/* list */
.idx.is-list .mi {
  display: grid; grid-template-columns: 52px minmax(0, 1.55fr) minmax(0, .5fr) minmax(0, 1.25fr) minmax(110px, auto) 56px;
  column-gap: clamp(12px, 2vw, 28px); align-items: center; padding: clamp(14px, 1.5vw, 22px) clamp(8px, 1vw, 16px);
  border-bottom: 1px solid var(--rule); transition: background .35s var(--e), color .35s var(--e), padding .5s var(--e);
}
.idx.is-list .mi-plate { display: none; }
.idx.is-list .mi-name { margin: 0; font: 800 clamp(1.6rem, 2.9vw, 2.9rem)/.9 var(--f); font-stretch: 64%; text-transform: uppercase; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .5s var(--e), font-stretch .5s var(--e); }
.idx.is-list .mi-fam { font: 500 12px/1.35 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; gap: 3px; }
.idx.is-list .mi-fam em { font-style: normal; color: var(--mute); }
.idx.is-list .mi-blurb { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idx.is-list .mi-cost { text-align: right; }
.idx.is-list .mi-more { justify-self: end; }
@media (hover: hover) {
  .idx.is-list .mi:hover { background: var(--paper); color: #0B0A09; }
  .idx.is-list .mi:hover .mi-name { transform: translateX(10px); font-stretch: 74%; }
  .idx.is-list .mi:hover :is(.mi-no, .mi-fam, .mi-fam em, .mi-blurb, .mi-cost, .mi-cost small, .mi-more) { color: #0B0A09; }
  .idx.is-list .mi:hover .mi-more { border-color: rgba(11, 10, 9, .4); }
}
@media (max-width: 1100px) { .idx.is-list .mi { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.3fr) auto 48px; } .idx.is-list .mi-fam { display: none; } }
@media (max-width: 760px), (hover: none) {
  .idx.is-list .mi { grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; padding: 12px 0; }
  .idx.is-list .mi-no, .idx.is-list .mi-blurb, .idx.is-list .mi-more { display: none; }
  .idx.is-list .mi-plate { display: block; grid-row: 1 / 3; width: 60px; aspect-ratio: 4 / 5; }
  .idx.is-list .mi-name { grid-column: 2; align-self: end; font-size: clamp(1.4rem, 6vw, 2rem); }
  .idx.is-list .mi-fam { display: flex; grid-column: 2; grid-row: 2; align-self: start; flex-direction: row; gap: 8px; font-size: 11px; }
  .idx.is-list .mi-cost { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* plates */
.idx.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 232px), 1fr)); gap: clamp(22px, 2.4vw, 40px) clamp(10px, 1.4vw, 22px); padding-top: clamp(18px, 2vw, 30px); }
.idx.is-grid .mi { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-content: start; }
.idx.is-grid .mi-plate { grid-column: 1 / -1; aspect-ratio: 4 / 5; margin-bottom: 12px; }
.idx.is-grid .mi-plate :is(img, video, .spec) { transition: transform 1.4s var(--e), clip-path 1.2s var(--e), filter 1.6s ease .2s; }
.idx.is-grid .mi:hover .mi-plate :is(img, video) { transform: scale(1.05); }
/* crop marks open at the corners on hover */
.idx.is-grid .mi::before, .idx.is-grid .mi::after { content: ""; position: absolute; z-index: 1; width: 14px; height: 14px; border: 0 solid var(--paper); opacity: 0; transition: opacity .3s, transform .5s var(--e); pointer-events: none; }
.idx.is-grid .mi::before { left: 8px; top: 8px; border-width: 1px 0 0 1px; transform: translate(8px, 8px); }
.idx.is-grid .mi::after { right: 8px; top: 8px; border-width: 1px 1px 0 0; transform: translate(-8px, 8px); }
.idx.is-grid .mi:hover::before, .idx.is-grid .mi:hover::after { opacity: 1; transform: none; }
.idx.is-grid .mi-no { position: absolute; left: 0; top: 0; z-index: 1; padding: 7px 8px; background: var(--bg); color: var(--dim); }
.idx.is-grid .mi-name { grid-column: 1; margin: 0; font: 800 clamp(1.25rem, 1.7vw, 1.6rem)/.95 var(--f); font-stretch: 68%; text-transform: uppercase; }
.idx.is-grid .mi-cost { grid-column: 2; grid-row: 2; align-self: start; padding-top: 3px; }
.idx.is-grid .mi-fam { display: none; }
.idx.is-grid .mi-blurb { grid-column: 1 / -1; margin: 8px 0 0; color: var(--dim); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idx.is-grid .mi-more { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
@media (max-width: 520px) { .idx.is-grid .mi-blurb, .idx.is-grid .mi-more { display: none; } .idx.is-grid .mi { grid-template-columns: minmax(0, 1fr); } .idx.is-grid .mi-cost { grid-column: 1; grid-row: auto; padding-top: 6px; } }

.idx-more { display: flex; justify-content: center; padding-top: clamp(24px, 3vw, 44px); }

/* the print that follows the cursor over the list */
.pv { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(200px, 17vw, 280px); aspect-ratio: 4 / 5; padding: 6px; background: var(--paper); pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0) scale(.86) rotate(-3deg); transition: opacity .25s, scale .5s var(--e); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); container-type: inline-size; }
.pv.on { opacity: 1; }
.pv > * { position: absolute; inset: 6px; width: auto; height: auto; }
.pv :is(img, video) { width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; }
.pv .spec { inset: 6px; }
@media (hover: none), (max-width: 760px) { .pv { display: none; } }

/* ───────────────────────────── community feed ───────────────────────────── */

.x-search { position: relative; flex: 0 1 300px; }
.x-search input { width: 100%; height: 44px; padding: 0 0 0 26px; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: none; color: var(--paper); font: 500 15px/1 var(--f); outline: 0; transition: border-color .3s; }
.x-search input:focus { border-color: var(--paper); }
.x-search input::placeholder { color: var(--mute); }
.x-search svg { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--dim); }
@media (max-width: 720px) { .x-search { flex-basis: 100%; } }

.x-feed { columns: 5 230px; column-gap: clamp(8px, 1vw, 16px); padding-top: 8px; }
.fc { position: relative; display: block; break-inside: avoid; margin-bottom: clamp(8px, 1vw, 16px); background: var(--bg-2); overflow: hidden; }
.fc-media { position: relative; aspect-ratio: 1 / var(--r, 1.25); overflow: hidden; }
.fc-media img, .fc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e); }
.fc:hover .fc-media :is(img, video) { transform: scale(1.04); }
.fc-over { position: absolute; inset: auto 0 0 0; padding: 40px 12px 11px; background: linear-gradient(180deg, transparent, rgba(11, 10, 9, .9)); display: flex; justify-content: space-between; align-items: end; gap: 10px; transform: translateY(101%); transition: transform .55s var(--e); }
.fc:hover .fc-over, .fc:focus-visible .fc-over { transform: none; }
.fc-over strong { font: 700 15px/1.1 var(--f); font-stretch: 80%; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-over span { font: 500 10.5px/1 var(--m); letter-spacing: .06em; color: var(--dim); white-space: nowrap; }
.fc-price, .fc-vid { position: absolute; top: 0; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; background: var(--bg); font: 500 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; }
.fc-price { right: 0; color: var(--paper); } .fc-price.free { color: var(--sig); }
.fc-price img { width: 11px; height: 11px; }
.fc-vid { left: 0; color: var(--dim); }
@media (hover: none) { .fc-over { transform: none; } }
.x-empty { margin-top: 20px; padding: clamp(40px, 6vw, 80px) 20px; text-align: center; border: 1px solid var(--rule); color: var(--dim); }
.x-empty h3 { margin: 0 0 10px; font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--f); font-stretch: 66%; text-transform: uppercase; color: var(--paper); }
.x-empty a { color: var(--paper); border-bottom: 1px solid var(--sig); }
.x-sentinel { height: 1px; }
.x-skel { break-inside: avoid; margin-bottom: 12px; background: var(--bg-2); }

/* ───────────────────────────── tools: panels that open sideways ───────────────────────────── */

.acc { display: flex; min-height: clamp(360px, 40vw, 520px); border-bottom: 1px solid var(--rule-2); }
.acc-p { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 30px); border-right: 1px solid var(--rule); color: var(--paper); text-decoration: none; overflow: hidden; transition: flex-grow .9s var(--e), background .5s; }
.acc-p:last-child { border-right: 0; }
.acc-p .mi-no { color: var(--sig); }
.acc-p h3 { margin: 0; font: 800 clamp(1.6rem, 2.6vw, 2.8rem)/.9 var(--f); font-stretch: 62%; text-transform: uppercase; writing-mode: vertical-rl; rotate: 180deg; align-self: flex-start; white-space: nowrap; transition: opacity .3s; }
.acc-body { position: absolute; inset: auto clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px); width: min(440px, 34vw); opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .7s var(--e); pointer-events: none; }
.acc-body h4 { margin: 0 0 14px; font: 800 clamp(2rem, 3.6vw, 3.8rem)/.88 var(--f); font-stretch: 62%; text-transform: uppercase; }
.acc-body p { margin: 0 0 22px; color: var(--dim); font-size: 15.5px; line-height: 1.55; }
.acc-p.on { flex-grow: 3.6; background: var(--bg-2); }
.acc-p.on h3 { opacity: 0; }
.acc-p.on .acc-body { opacity: 1; transform: none; transition-delay: .18s; pointer-events: auto; }
@media (max-width: 900px) {
  .acc { flex-direction: column; min-height: 0; }
  .acc-p { border-right: 0; border-bottom: 1px solid var(--rule); gap: 14px; padding: 22px 0; background: none !important; }
  .acc-p:last-child { border-bottom: 0; }
  .acc-p h3 { display: none; }
  .acc-body { position: static; width: auto; opacity: 1; transform: none; pointer-events: auto; }
}

/* ───────────────────────────── faq ───────────────────────────── */

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 90px); align-items: start; padding-top: clamp(20px, 2vw, 30px); }
.faq-side { position: sticky; top: 96px; }
.faq-side h2 { font-size: clamp(2.6rem, 6vw, 6rem); }
.faq-side p { margin: 18px 0 0; color: var(--dim); max-width: 34ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: baseline; padding: 22px 0; font: 700 clamp(1.05rem, 1.5vw, 1.35rem)/1.25 var(--f); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q, decimal-leading-zero); counter-increment: q; font: 500 11.5px/1 var(--m); color: var(--mute); }
.faq summary::after { content: "+"; justify-self: end; font: 400 22px/1 var(--f); color: var(--dim); transition: rotate .5s var(--e), color .2s; }
.faq details[open] summary::after { rotate: 135deg; color: var(--sig); }
.faq-list { counter-reset: q; }
.faq details p { margin: 0 0 24px 44px; color: var(--dim); line-height: 1.65; max-width: 62ch; }
.faq details a { color: var(--paper); border-bottom: 1px solid var(--sig); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq-side { position: static; } }

/* ───────────────────────────── footer ───────────────────────────── */

.x-foot { margin-top: clamp(80px, 10vw, 160px); border-top: 1px solid var(--rule-2); padding-top: clamp(32px, 4vw, 56px); overflow: hidden; }
.x-foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 40px); }
.x-foot h4 { margin: 0 0 16px; font: 500 11px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.x-foot-grid a { display: block; width: fit-content; padding: 5px 0; color: var(--dim); font-size: 14.5px; transition: color .2s, transform .5s var(--e); }
.x-foot-grid a:hover { color: var(--paper); transform: translateX(4px); }
.x-foot-lead { margin: 0; max-width: 30ch; font: 700 clamp(1.3rem, 2vw, 1.9rem)/1.1 var(--f); font-stretch: 75%; text-transform: uppercase; }
.x-foot-base { margin-top: clamp(32px, 4vw, 56px); padding-block: 18px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font: 500 11.5px/1.4 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.x-foot-base a { color: var(--dim); } .x-foot-base a:hover { color: var(--paper); }
.x-mark { display: block; margin: 0 0 -0.16em; font: 900 clamp(3.6rem, 18.4vw, 24rem)/.74 var(--f); font-stretch: 62%; letter-spacing: -.02em; text-transform: uppercase; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--rule-2); user-select: none; transition: color 1.2s var(--e), -webkit-text-stroke-color 1.2s; }
.x-foot:hover .x-mark { color: var(--bg-3); }
@media (max-width: 900px) { .x-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .x-foot-grid > div:first-child { grid-column: 1 / -1; } }

/* browse pages (/image, /video) */
.bh { padding: clamp(36px, 6vw, 96px) 0 clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--rule-2); }
.bh h1 { margin-top: 16px; font-size: clamp(3.2rem, 11vw, 11rem); }
.bh p.lead { margin: 18px 0 0; max-width: 58ch; color: var(--dim); font-size: clamp(1rem, 1.15vw, 1.14rem); }

/* generic scroll reveal */
.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s var(--e); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-rv].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .x-page *, .x-page *::before, .x-page *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .ln > span, .js [data-rv], .js .deck:not(.in) .pr { transform: none !important; opacity: 1 !important; }
  .js .dv :is(img, video, .spec) { clip-path: none !important; filter: none !important; transform: none !important; }
}

/* ───────────────────────────── signed-in header ─────────────────────────────
   The balance, Upload and account controls are injected by nav.js and credits-pill.js
   with their own rounded, gold styling. Here they join the rest of the header. */
.x-page .oa-pill, .x-page .nav-upload, .x-page .nav-account, .x-page #navRight > a { border-radius: 2px !important; }
.x-page .oa-pill { height: 36px !important; padding: 0 12px !important; border: 1px solid var(--rule-2) !important; background: none !important; box-shadow: none !important; color: var(--paper) !important; font: 500 13px/1 var(--m) !important; }
.x-page .oa-pill:hover, .x-page .oa-pill.oa-open { border-color: var(--paper) !important; }
.x-page .nav-upload { height: 36px; padding: 0 14px !important; border: 1px solid var(--rule-2) !important; background: none !important; color: var(--paper) !important; font: 700 12px/1 var(--f) !important; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s; }
.x-page .nav-upload:hover { background: var(--paper) !important; color: #0B0A09 !important; }
.x-page .nav-account { width: 36px; height: 36px; border: 1px solid var(--rule-2) !important; background: none !important; color: var(--paper) !important; }
.oa-cp-pop { border-radius: 2px !important; background: #12100F !important; border: 1px solid rgba(241, 237, 228, .3) !important; font-family: "Archivo", sans-serif !important; }
.oa-cp-pop .oa-cp-lbl { color: #6F6A61 !important; font-family: "JetBrains Mono", monospace !important; font-weight: 500 !important; }
.oa-cp-pop .oa-cp-num { font: 800 34px/1 "Archivo", sans-serif !important; font-stretch: 68%; color: #F1EDE4 !important; }
.oa-cp-pop .oa-cp-buy { border-radius: 2px !important; background: #F1EDE4 !important; color: #0B0A09 !important; box-shadow: none !important; font: 800 12.5px/1 "Archivo", sans-serif !important; letter-spacing: .09em; text-transform: uppercase; }
.oa-cp-pop .oa-cp-buy:hover { background: #FF4A1C !important; }

/* Small screens, signed in: the balance stays in the bar; Upload, Admin and Account are
   in the menu, where there is room for them. Together they ran 100px past a phone. */
@media (max-width: 860px) {
  .x-page #nav .nav-in { gap: 10px; }
  .x-page #nav .nav-right { gap: 8px; min-width: 0; }
  .x-page #nav .nav-right > a[href="/admin"], .x-page #nav .nav-right .nav-upload, .x-page #nav .nav-right .nav-account { display: none !important; }
}

/* the plain-language line under a display heading: says what the page is, for people
   skimming and for search engines, without competing with the headline */
.disp > small { display: block; margin-top: 16px; font: 500 12px/1 var(--m); font-stretch: 100%; letter-spacing: .1em; text-transform: uppercase; color: var(--sig); }


/* ── tool index: one row per tool, built to take dozens ─────────────────────── */
.tl { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tl li { border-bottom: 1px solid var(--rule); }
.tl-r { position: relative; display: grid; grid-template-columns: 3.2ch minmax(0, 1.15fr) minmax(0, 1fr) auto 2.4ch; align-items: center; column-gap: clamp(14px, 2.4vw, 40px); padding: clamp(18px, 2.3vw, 34px) clamp(8px, 1.2vw, 20px); color: var(--paper); text-decoration: none; isolation: isolate; }
.tl-r::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--e); }
.tl-no { font: 500 12px/1 var(--m); letter-spacing: .1em; color: var(--sig); transition: color .3s; }
.tl-r h3 { margin: 0; font: 800 clamp(1.9rem, 4.6vw, 4.6rem)/.9 var(--f); font-stretch: 62%; text-transform: uppercase; letter-spacing: -.008em; transition: transform .6s var(--e), color .3s; }
.tl-r p { margin: 0; max-width: 40ch; color: var(--dim); font-size: 15.5px; line-height: 1.5; transition: color .3s; }
.tl-tag { font: 500 11.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; transition: color .3s; }
.tl-go { font: 500 clamp(1.3rem, 2vw, 2rem)/1 var(--f); text-align: right; transition: transform .6s var(--e), color .3s; }
@media (hover: hover) {
  a.tl-r:hover::before { transform: none; }
  a.tl-r:hover, a.tl-r:hover p { color: #0B0A09; }
  a.tl-r:hover h3 { transform: translateX(clamp(8px, 1.2vw, 20px)); }
  a.tl-r:hover .tl-tag { color: #0B0A09; }
  a.tl-r:hover .tl-no, a.tl-r:hover .tl-go { color: var(--sig); }
  a.tl-r:hover .tl-go { transform: translateX(6px); }
}
a.tl-r:active h3 { transform: translateX(4px); }
.tl-r.is-soon h3 { color: transparent; -webkit-text-stroke: 1px var(--mute); }
.tl-r.is-soon p, .tl-r.is-soon .tl-no { color: var(--mute); }
@media (max-width: 900px) {
  .tl-r { grid-template-columns: 3.2ch minmax(0, 1fr) 2.4ch; row-gap: 8px; padding-inline: 0; }
  .tl-r p { grid-column: 2 / 3; grid-row: 2; }
  .tl-tag { grid-column: 2 / 3; grid-row: 3; }
  .tl-go { grid-column: 3; grid-row: 1; }
}
