/* ==========================================================================
   Reimon's Workshop Art Gallery
   A contemporary gallery, as if hung by a 1990s demogroup.
   Palette extracted from reimonsworkshop.com (see README for sources).
   ========================================================================== */

:root {
  /* --- extracted from reimonsworkshop.com ---------------------------------- */
  --rw-bg: #002a1a;        /* body background, tailwind `terminal-bg` */
  --rw-dark: #003018;      /* `terminal-dark` */
  --rw-accent: #009c49;    /* `terminal-accent` */
  --rw-accent-hi: #00b359; /* accent hover */
  --rw-text: #cee3b1;      /* `terminal-text`, body colour */
  --rw-teal: #007782;
  --rw-teal-hi: #008b98;
  --rw-aqua: #13c1ac;
  --rw-cyan: #00b0c0;
  --rw-sage: #b8dba0;
  --rw-mint: #cfe7bc;
  --rw-scene: #001a10;     /* three.js scene background + fog */
  --rw-gb: #9bbc0f;        /* Game Boy screen in the 3D scene */
  --rw-hot: #ff0055;       /* emissive buttons in the 3D scene */

  /* --- roles ---------------------------------------------------------------- */
  --wall: var(--rw-scene);
  --wall-deep: #000e08;    /* derived: scene green pushed toward black */
  --room: #050d09;         /* derived: near-neutral viewing room for single works */
  --panel: var(--rw-bg);
  --panel-2: var(--rw-dark);
  --ink: var(--rw-text);
  --ink-hi: #f1f7e8;       /* derived: mint lifted toward white for titles */
  --ink-mute: rgb(206 227 177 / 0.7);
  --ink-faint: rgb(206 227 177 / 0.5);
  --line: rgb(206 227 177 / 0.13);
  --line-strong: rgb(206 227 177 / 0.26);
  --link: var(--rw-aqua);
  --focus: var(--rw-gb);
  --fiction: var(--rw-hot);
  --fiction-ink: #ff5c8d;  /* derived: --rw-hot lightened for small text on dark (>= 6:1) */

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-pixel: "Silkscreen", "IBM Plex Mono", monospace;
  --font-logo: "Black Ops One", "Inter Tight", sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1480px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* A copper bar, Amiga style: one vertical gradient per bar. */
  --copper: linear-gradient(
    180deg,
    #002a1a 0%,
    #007782 14%,
    #13c1ac 30%,
    #cfe7bc 48%,
    #f1f7e8 52%,
    #9bbc0f 66%,
    #009c49 82%,
    #003018 100%
  );

  color-scheme: dark;
}

/* ---------------------------------------------------------------- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--wall);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  display: block;
  overflow-x: clip; /* decorative glows may bleed past the edge; never let them cause sideways scroll */
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--rw-mint);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection {
  background: var(--rw-accent);
  color: #fff;
}
h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--ink-hi);
}
p {
  margin: 0 0 1em;
}
button {
  font: inherit;
  color: inherit;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--rw-gb);
  color: var(--wall-deep);
  padding: 10px 14px;
  font-family: var(--font-pixel);
  font-size: 12px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------- demo vocabulary ---- */
.copper {
  height: 6px;
  background: var(--copper);
  background-size: 100% 100%;
  position: relative;
}
.copper::after {
  /* raster shimmer: slow horizontal sheen, like a copper list being rewritten */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 0.55) 50%, transparent 100%);
  background-size: 30% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  animation: sheen 9s linear infinite;
}
.copper--thin {
  height: 3px;
}
@keyframes sheen {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}
.pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-gb);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 7px;
  background: var(--copper);
  flex: none;
}
.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgb(0 0 0 / 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------------- header -- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.site-header--over {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-hi);
  min-width: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  image-rendering: pixelated;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-workshop {
  font-family: var(--font-logo);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rw-mint);
}
.brand-gallery {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-hi);
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 26px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav a[aria-current="page"] {
  color: var(--ink-hi);
}

/* ------------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  min-height: min(100vh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 50% 40%, #003a24 0%, var(--wall) 55%, var(--wall-deep) 100%);
}
@supports (min-height: 100svh) {
  .hero {
    min-height: min(100svh, 980px);
  }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-canvas.is-live {
  opacity: 1;
}
.hero::after {
  /* vignette + floor so the copy reads and the bottom melts into the wall */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 46% at 50% 50%, rgb(0 14 8 / 0.72) 0%, rgb(0 14 8 / 0.35) 55%, transparent 80%),
    linear-gradient(180deg, transparent 62%, var(--wall) 100%);
}
.hero .scanlines {
  z-index: -1;
}
.hero-inner {
  text-align: center;
  padding: 120px var(--gutter) 150px;
  max-width: 1100px;
}
.hero-presents {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.32em;
  color: var(--rw-gb);
  margin: 0 0 22px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 216px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--ink-hi);
  text-shadow: 0 2px 40px rgb(0 0 0 / 0.55);
  margin: 0 0 0.2em;
}
.hero-title em {
  font-style: italic;
  color: var(--rw-mint);
}
.hero-kicker {
  font-family: var(--font-logo);
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rw-mint);
  margin: 0 0 30px;
  text-shadow: 0 0 14px rgb(0 14 8 / 0.95), 0 1px 2px rgb(0 0 0 / 0.9);
}
.hero-lede {
  font-size: clamp(16px, 1.45vw, 19px);
  color: var(--ink);
  max-width: 40em;
  margin: 0 auto 34px;
  text-wrap: pretty;
  text-shadow: 0 0 14px rgb(0 14 8 / 0.95), 0 1px 2px rgb(0 0 0 / 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-scroller {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 64px;
  width: 100%;
}

/* ---------------------------------------------------------------- buttons -- */
.btn {
  --b: var(--rw-mint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--b);
  background: transparent;
  color: var(--ink-hi);
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
  border-radius: 0;
}
.btn:hover {
  background: var(--rw-mint);
  color: var(--wall-deep);
}
.btn--solid {
  background: var(--rw-accent);
  border-color: var(--rw-accent);
  color: #fff;
}
.btn--solid:hover {
  background: var(--rw-accent-hi);
  border-color: var(--rw-accent-hi);
  color: #fff;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn .arrow {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 16px;
}
.text-link {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rw-mint);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.text-link:hover {
  border-color: var(--rw-mint);
  color: var(--ink-hi);
}

/* --------------------------------------------------------------- sections -- */
.section {
  padding: clamp(64px, 9vw, 140px) 0;
}
.section--tight {
  padding: clamp(40px, 5vw, 72px) 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 84px);
  letter-spacing: -0.015em;
}
.section-title em {
  font-style: italic;
  color: var(--rw-mint);
}
.section-intro {
  max-width: 36em;
  color: var(--ink-mute);
  margin: 0;
}
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.rule--section {
  margin-bottom: clamp(64px, 8vw, 120px);
}
.section--flush-top {
  padding-top: 0;
}
.after-grid {
  margin: 56px 0 0;
}
.pair-card h3 em {
  font-style: italic;
  color: var(--rw-mint);
}

/* ------------------------------------------------------- marks / badges ---- */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-pixel);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px 5px 7px;
  border: 1px solid currentColor;
  white-space: nowrap;
  vertical-align: middle;
}
.mark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex: none;
}
.mark--fiction {
  color: var(--fiction-ink);
  background: rgb(255 0 85 / 0.08);
}
.mark--fiction::before {
  transform: rotate(45deg);
}
.mark--ai {
  color: var(--rw-aqua);
  background: rgb(19 193 172 / 0.06);
}
.fiction-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: 3px solid var(--fiction);
  background: linear-gradient(90deg, rgb(255 0 85 / 0.1), rgb(255 0 85 / 0.02) 70%, transparent);
  padding: 12px 16px;
  color: var(--ink-hi);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.fiction-note strong {
  color: var(--fiction-ink);
  font-weight: 600;
}
.ai-note {
  border-left: 3px solid var(--rw-aqua);
  background: linear-gradient(90deg, rgb(19 193 172 / 0.09), transparent 70%);
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-hi);
}

/* ---------------------------------------------------------- work cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(48px, 5vw, 80px) clamp(28px, 3.5vw, 56px);
}
.card {
  margin: 0;
  min-width: 0;
}
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-hang {
  /* Every work hangs on the same centre line, whatever its proportions. */
  height: clamp(260px, 30vw, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
  position: relative;
}
.card-hang::after {
  /* a soft gallery spotlight on the wall behind the work */
  content: "";
  position: absolute;
  inset: -6% -2%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 42%, rgb(206 227 177 / 0.07), transparent 70%);
  opacity: 0.6;
  transition: opacity 0.5s var(--ease);
}
.card-hang img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.05),
    0 30px 50px -24px rgb(0 0 0 / 0.9),
    0 10px 18px -8px rgb(0 0 0 / 0.6);
  background: var(--panel);
  transition: transform 0.6s var(--ease);
}
.card-link:hover .card-hang img {
  transform: translateY(-4px);
}
.card-link:hover .card-hang::after {
  opacity: 1;
}
.card-label {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.card-artist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.1;
  color: var(--ink-hi);
  text-wrap: balance;
}
.card-link:hover .card-title {
  color: var(--rw-mint);
}
.card-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------- featured hang -- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  padding: clamp(40px, 6vw, 96px) 0;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
}
.feature--flip .feature-art {
  order: 2;
}
.feature-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.feature-art a {
  display: contents;
}
.feature-art img {
  max-height: min(78vh, 760px);
  max-width: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 50px 80px -40px rgb(0 0 0 / 0.95), 0 14px 30px -12px rgb(0 0 0 / 0.6);
}
.feature-art::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  background: radial-gradient(45% 50% at 50% 45%, rgb(206 227 177 / 0.09), transparent 72%);
}
.feature-num {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rw-gb);
  margin-bottom: 18px;
}

/* ------------------------------------------------------------ wall label -- */
.label {
  max-width: 36rem;
}
.label-artist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label-artist a {
  color: var(--ink-hi);
  text-decoration: none;
}
.label-artist a:hover {
  color: var(--rw-mint);
  text-decoration: underline;
}
.label-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.label-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.label-technique {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.label-technique b {
  display: block;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--rw-gb);
  margin-bottom: 6px;
}
.label-statement p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}
.label-statement--clamp p:nth-child(n + 2) {
  display: none;
}
.label .fiction-note,
.label .ai-note {
  margin: 0 0 24px;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  border: 1px solid var(--line-strong);
  padding: 3px 9px;
}

/* -------------------------------------------------------- viewing room ---- */
.work-page,
body.is-room {
  background: var(--room);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  padding-top: 8px;
  padding-bottom: 8px;
}
.crumbs a {
  color: var(--ink-mute);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink-hi);
}
.crumbs [aria-current] {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}
.room {
  padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.room-frame {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  max-width: 100%;
}
.room-frame img {
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  max-width: min(100%, 1400px);
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 60px 100px -50px rgb(0 0 0 / 1), 0 20px 40px -20px rgb(0 0 0 / 0.7);
  background: #0b1510;
}
.room-caption {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.room-caption button {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--font-pixel);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.room-caption button:hover {
  border-color: var(--rw-mint);
  color: var(--ink-hi);
}
.work-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.work-body .label {
  max-width: 44rem;
}

/* --------------------------------------------------------- provenance (NFO) */
.nfo-box {
  position: relative;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgb(0 42 26 / 0.55), rgb(0 26 16 / 0.35));
  padding: 26px 22px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}
.nfo-box > h2 {
  position: absolute;
  top: -9px;
  left: 16px;
  background: var(--room);
  padding: 0 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--rw-gb);
  line-height: 18px;
  text-transform: uppercase;
}
.nfo-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 18px;
}
.nfo-box dt {
  color: var(--ink-faint);
  text-transform: lowercase;
}
.nfo-box dt::after {
  content: " ....";
  color: rgb(206 227 177 / 0.22);
}
.nfo-box dd {
  margin: 0;
  color: var(--ink-hi);
  overflow-wrap: anywhere;
}
.nfo-box dd code {
  font: inherit;
}
.copy-btn {
  margin-left: 6px;
  background: none;
  border: 0;
  color: var(--rw-aqua);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline dotted;
}
.nfo-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-faint);
  font-size: 12px;
}
.side-stack {
  display: grid;
  gap: 36px;
  position: sticky;
  top: 24px;
}

/* --------------------------------------------------------- process strip -- */
.process {
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.process-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: 30px;
}
.process-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
}
.process-head p {
  margin: 0;
  color: var(--ink-mute);
  max-width: 34em;
  font-size: 15px;
}
.strip {
  list-style: none;
  margin: 0;
  padding: 0 0 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--rw-teal) transparent;
}
.strip li {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.strip-thumb {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--wall-deep);
  padding: 12px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  position: relative;
  width: 100%;
}
.strip-thumb:hover {
  border-color: var(--line-strong);
}
.strip-thumb img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
}
.strip-thumb .rn {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--rw-gb);
  color: var(--wall-deep);
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 3px 7px;
}
.strip-empty {
  height: 230px;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  padding: 16px;
}
.strip-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.strip-intent {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* ------------------------------------------------------------ reflection -- */
.reflection {
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.reflection details {
  max-width: 48rem;
}
.reflection summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  color: var(--ink-hi);
}
.reflection summary::-webkit-details-marker {
  display: none;
}
.reflection summary::before {
  content: "+";
  font-family: var(--font-pixel);
  font-size: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--rw-gb);
  flex: none;
}
.reflection details[open] summary::before {
  content: "\2212";
}
.reflection .reflection-body {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.reflection-hint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 8px 0 0 46px;
}

/* ----------------------------------------------------------------- pager -- */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 70px;
}
.pager a {
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 4px;
}
.pager a:hover .pager-title {
  color: var(--rw-mint);
}
.pager .next {
  text-align: right;
}
.pager-dir {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rw-gb);
  text-transform: uppercase;
}
.pager-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink-hi);
  line-height: 1.15;
}

/* --------------------------------------------------------------- lightbox -- */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: #020805;
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 0.85);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
}
.lb-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-tools {
  display: flex;
  gap: 8px;
  flex: none;
}
.lb-tools button {
  background: rgb(0 0 0 / 0.4);
  border: 1px solid var(--line-strong);
  color: var(--ink-hi);
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.lb-tools button:hover {
  border-color: var(--rw-mint);
}
.lb-stage {
  overflow: auto;
  display: grid;
  place-items: center;
  min-height: 0;
  cursor: zoom-in;
  overscroll-behavior: contain;
}
.lb-stage img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
}
.lb-stage.is-zoomed {
  cursor: zoom-out;
  place-items: start;
}
.lb-stage.is-zoomed img {
  max-width: none;
  max-height: none;
  margin: auto; /* stays centred when the image is smaller than the screen */
}
.lb-stage:focus-visible {
  outline-offset: -3px;
}
.lb-caption {
  padding: 10px 16px 16px;
  font-size: 13.5px;
  color: var(--ink-mute);
  text-align: center;
  min-height: 44px;
}

/* ------------------------------------------------------------ page heads -- */
.page-head {
  padding: clamp(48px, 7vw, 120px) 0 clamp(32px, 4vw, 56px);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 150px);
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.page-title em {
  font-style: italic;
  color: var(--rw-mint);
}
.page-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 40em;
  margin: 28px 0 0;
  color: var(--ink);
  text-wrap: pretty;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.filters .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-radius: 0;
}
.chip:hover {
  border-color: var(--rw-mint);
}
.chip[aria-pressed="true"] {
  background: var(--rw-mint);
  border-color: var(--rw-mint);
  color: var(--wall-deep);
}
.chip .n {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.7;
}

/* --------------------------------------------------------- artist pages -- */
.artist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
  padding: clamp(48px, 7vw, 110px) 0 clamp(40px, 5vw, 72px);
}
.artist-kind {
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.artist-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.artist-name em {
  font-style: italic;
  color: var(--rw-mint);
}
.artist-copy p {
  font-size: 17.5px;
  line-height: 1.7;
}
.artist-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 28px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}
.artist-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  color: var(--ink-hi);
  line-height: 1;
  margin-bottom: 4px;
}
.artist-ai-note {
  margin: 0 0 clamp(48px, 6vw, 80px);
  max-width: 60rem;
}
.fiction-panel {
  position: relative;
  border: 1px solid rgb(255 0 85 / 0.55);
  background:
    repeating-linear-gradient(135deg, rgb(255 0 85 / 0.06) 0 2px, transparent 2px 10px),
    rgb(30 0 12 / 0.35);
  padding: clamp(24px, 3vw, 40px);
  margin: 0 0 clamp(48px, 6vw, 80px);
}
.fiction-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  margin: 14px 0 18px;
}
.fiction-panel h2 em {
  font-style: italic;
  color: var(--fiction-ink);
}
.fiction-panel p {
  max-width: 50em;
  font-size: 17px;
  line-height: 1.7;
}
.fiction-panel ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  max-width: 50em;
}
.fiction-panel li {
  margin: 0 0 6px;
}
.fiction-panel li::marker {
  color: var(--fiction-ink);
}

/* ---------------------------------------------------------- artists pair -- */
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.pair-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(0 42 26 / 0.45), transparent 80%);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s;
}
.pair-card:hover {
  border-color: var(--line-strong);
}
.pair-card h3 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 0.95;
}
.pair-card p {
  color: var(--ink-mute);
  margin: 0;
  max-width: 30em;
}
.pair-thumbs {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 150px;
}
.pair-thumbs img {
  height: 100%;
  width: auto;
  max-width: 34%;
  object-fit: cover;
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.9);
}

/* -------------------------------------------------------------- NFO page -- */
.nfo {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.7;
  max-width: 82ch;
  margin: 0 auto;
  color: var(--ink);
}
.nfo-ascii {
  font-family: var(--font-mono);
  white-space: pre;
  line-height: 1.12;
  font-size: clamp(7px, 2.35vw, 21px);
  color: var(--rw-aqua);
  margin: 0 0 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #13c1ac, #cfe7bc 45%, #9bbc0f 60%, #009c49);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nfo section {
  margin: 0 0 36px;
}
.nfo h2 {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--rw-gb);
  margin: 0 0 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-transform: uppercase;
}
.nfo h2::before,
.nfo h2::after {
  content: "";
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px);
  flex: 1;
}
.nfo h2::before {
  flex: 0 0 24px;
}
.nfo p,
.nfo li {
  color: var(--ink);
}
.nfo ul {
  padding-left: 0;
  list-style: none;
}
.nfo li {
  padding-left: 2ch;
  text-indent: -2ch;
  margin-bottom: 6px;
}
.nfo li::before {
  content: "\bb\a0";
  color: var(--rw-accent-hi);
}
.nfo dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  margin: 0;
}
.nfo dt {
  color: var(--ink-faint);
}
.nfo dd {
  margin: 0;
}
.nfo strong {
  color: var(--ink-hi);
  font-weight: 500;
}
.nfo .fiction {
  color: var(--fiction-ink);
}
.greets {
  columns: 2 16ch;
  column-gap: 4ch;
}

/* ---------------------------------------------------------------- footer -- */
.site-footer {
  margin-top: auto;
  background: var(--wall-deep);
  position: relative;
}
.footer-scroller {
  display: block;
  width: 100%;
  height: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px clamp(24px, 5vw, 80px);
  padding-top: 40px;
  padding-bottom: 32px;
  font-size: 14.5px;
  color: var(--ink-mute);
}
.footer-grid h2 {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--rw-gb);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer-grid a {
  color: var(--ink);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--ink-hi);
  text-decoration: underline;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink-hi);
  line-height: 1.05;
  margin: 0 0 12px;
}
.footer-brand em {
  color: var(--rw-mint);
}
.footer-fine {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-fine a {
  color: var(--ink-mute);
}
.chip-toggle {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.chip-toggle .eq {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.chip-toggle .eq i {
  width: 3px;
  height: 4px;
  background: var(--rw-gb);
}
.chip-toggle[aria-pressed="true"] {
  border-color: var(--rw-gb);
  color: var(--ink-hi);
}
.chip-toggle[aria-pressed="true"] .eq i {
  animation: eq 0.5s steps(3) infinite alternate;
}
.chip-toggle[aria-pressed="true"] .eq i:nth-child(2) {
  animation-delay: -0.2s;
}
.chip-toggle[aria-pressed="true"] .eq i:nth-child(3) {
  animation-delay: -0.35s;
}
@keyframes eq {
  to {
    height: 12px;
  }
}

/* -------------------------------------------------------------- states ---- */
.loading {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--rw-gb);
  padding: 80px 0;
  text-align: center;
}
.loading::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.notice {
  border: 1px solid var(--line-strong);
  padding: 20px 22px;
  margin: 40px 0;
  font-size: 15px;
}
.skeleton-room {
  min-height: calc(100vh - 170px);
}

/* ---------------------------------------------------------- 404 / misc ---- */
.center-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px var(--gutter);
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 960px) {
  .feature,
  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--flip .feature-art {
    order: 0;
  }
  .feature-art {
    height: auto;
    max-height: 72vh;
  }
  .feature-art img {
    max-height: 72vh;
  }
  .work-body,
  .artist-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-stack {
    position: static;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .site-nav {
    justify-content: flex-start;
    gap: 2px 18px;
  }
  .site-nav a {
    font-size: 13.5px;
  }
  .hero-inner {
    padding: 150px var(--gutter) 130px;
  }
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .pair-thumbs {
    height: 110px;
  }
  .card-hang {
    height: auto;
    max-height: 70vh;
    padding: 0;
  }
  .card-hang img {
    max-height: 70vh;
  }
  .label-statement p {
    font-size: 16.5px;
  }
  .room {
    padding-left: 12px;
    padding-right: 12px;
  }
  .room-frame img {
    max-height: 72vh;
  }
  .strip {
    grid-auto-columns: 78%;
  }
  .filters .count {
    width: 100%;
    margin-left: 0;
  }
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager .next {
    text-align: left;
  }
  .nfo-box dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .nfo-box dd {
    margin-bottom: 8px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mark {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- uploader -- */
.page-head--compact {
  padding-bottom: 24px;
}
.page-head--compact .page-title {
  font-size: clamp(52px, 7vw, 110px);
}
.up-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: 24px 0 96px;
  border-top: 1px solid var(--line);
}
.up-col {
  min-width: 0;
}
.up-h {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-hi);
  margin: 28px 0 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.up-h span {
  color: var(--rw-gb);
}
.up-h small {
  font-size: 10px;
  color: var(--ink-faint);
}
.drop {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, rgb(206 227 177 / 0.025) 0 2px, transparent 2px 12px),
    var(--wall-deep);
  padding: 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.drop:hover,
.drop.is-over {
  border-color: var(--rw-gb);
}
.drop:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.drop img {
  max-height: 360px;
  width: auto;
  height: auto;
}
.drop-empty {
  color: var(--ink-mute);
  font-size: 15px;
}
.drop-empty b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--ink-hi);
  margin-bottom: 4px;
}
.up-file {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  min-height: 1.5em;
  margin: 10px 0;
}
.up-file.is-error,
.issues li,
#status {
  color: var(--fiction-ink);
}
.up-file.is-warn {
  color: #e8c547;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-mute);
}
.check input {
  margin-top: 4px;
  accent-color: var(--rw-accent);
}
.up-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.up-tools .chip {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
textarea.code {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  background: var(--wall-deep);
  color: var(--rw-mint);
  border: 1px solid var(--line-strong);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
  border-radius: 0;
}
textarea.code:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.issues {
  margin-top: 12px;
  font-size: 14px;
}
.issues ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.issues code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-hi);
  background: rgb(255 0 85 / 0.12);
  padding: 1px 6px;
}
.issue-ok {
  color: var(--rw-accent-hi);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0;
}
.up-preview {
  border: 1px solid var(--line);
  background: var(--room);
  padding: clamp(20px, 3vw, 36px);
  min-height: 260px;
}
.up-preview-img {
  max-height: 340px;
  width: auto;
  height: auto;
  margin: 0 auto 28px;
  box-shadow: 0 30px 50px -28px rgb(0 0 0 / 0.95);
}
.up-preview .label-title {
  font-size: clamp(30px, 3vw, 44px);
}
.up-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin: 24px 0 0;
}
.up-submit p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.up-result {
  margin-top: 20px;
  border-left: 3px solid var(--rw-accent);
  padding: 12px 16px;
  background: rgb(0 156 73 / 0.08);
}
.up-result p {
  margin: 0 0 6px;
}
.up-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.muted {
  color: var(--ink-mute);
}
.small {
  font-size: 13.5px;
}
@media (max-width: 960px) {
  .up-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- salon wall ----
   /gallery/: only the works, hung close together like a salon wall. Rows are justified in JS
   (each work keeps its proportions, each row fills the width); the text lives on the work page. */
.salon-page {
  background:
    radial-gradient(70% 50% at 50% 0%, rgb(19 193 172 / 0.06), transparent 70%),
    radial-gradient(120% 80% at 50% 30%, #00261a 0%, var(--wall) 55%, var(--wall-deep) 100%);
  min-height: 100vh;
  padding-block: 18px 72px;
}
.salon-bar {
  max-width: 1880px;
  margin-inline: auto;
  padding-inline: clamp(12px, 2.4vw, 40px);
  margin-bottom: clamp(14px, 2vw, 26px);
}
.salon-bar .filters { margin: 0; }
.salon {
  max-width: 1880px;
  margin-inline: auto;
  padding-inline: clamp(12px, 2.4vw, 40px);
  display: grid;
  gap: var(--salon-gap, 14px);
}
.salon-row {
  display: flex;
  gap: var(--salon-gap, 14px);
  justify-content: center;
}
.salon-item {
  position: relative;
  display: block;
  flex: none;
  padding: var(--salon-frame, 6px);
  background: linear-gradient(160deg, #18201b 0%, #0a0f0c 60%, #050806 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.06),
    inset 0 0 0 calc(var(--salon-frame, 6px) - 1px) rgb(0 0 0 / 0.35),
    0 22px 34px -18px rgb(0 0 0 / 0.95),
    0 6px 12px -6px rgb(0 0 0 / 0.7);
  text-decoration: none;
  color: var(--ink-hi);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.salon-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--panel);
}
.salon-item:hover,
.salon-item:focus-visible {
  transform: translateY(-3px) scale(1.012);
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    inset 0 0 0 calc(var(--salon-frame, 6px) - 1px) rgb(0 0 0 / 0.35),
    0 34px 50px -20px rgb(0 0 0 / 1),
    0 0 0 1px rgb(19 193 172 / 0.35);
}
.salon-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.salon-cap {
  position: absolute;
  left: var(--salon-frame, 6px);
  right: var(--salon-frame, 6px);
  bottom: var(--salon-frame, 6px);
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgb(0 10 6 / 0.88));
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .salon-item:hover .salon-cap,
  .salon-item:focus-visible .salon-cap { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .salon { --salon-gap: 8px; --salon-frame: 4px; }
  .salon-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .salon-item, .salon-cap { transition: none; }
  .salon-item:hover, .salon-item:focus-visible { transform: none; }
}
