/* Alise Loebelsohn — two modes, named for her two practices.
   paintings  = marmorino plaster + lamp black + cadmium sphere
   decorative = lamp black + silver leaf + gold-leaf sphere */

:root,
:root[data-mode="paintings"] {
  --bg: #edece8;
  --panel: #e1dfd9;
  --ink: #191714;
  --muted: #9b968c;
  --line: rgba(25, 23, 20, 0.14);
  --tick: #b9b4aa;
  --sphere-hi: #ffb48c;
  --sphere-1: #f06a36;
  --sphere-2: #a52d16;
  color-scheme: light;
}

:root[data-mode="decorative"] {
  --bg: #0f0e0d;
  --panel: #1c1a17;
  --ink: #ece6da;
  --muted: #7a7367;
  --line: rgba(236, 230, 218, 0.14);
  --tick: #6e5d37;
  --sphere-hi: #fff1c9;
  --sphere-1: #e2bd6f;
  --sphere-2: #7d5a22;
  color-scheme: dark;
}

:root {
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(10px, 1.1vw, 16px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* no rubber-band dragging past the top or bottom of the page */
html, body { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sphere-1); outline-offset: 3px; }
main:focus { outline: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.display { font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; }
.eyebrow { margin: 0; font-size: 0.7rem; font-weight: 500; font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; height: 1.8rem; padding: 0 0.75rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.72rem; font-weight: 500; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tag-year { border-color: currentColor; }
.arrow-link {
  display: inline-flex; gap: 0.3em; align-items: center;
  font-size: 0.78rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.arrow-link:hover { border-color: currentColor; }

/* "(small works)" note beside a collection title */
.sub { font-size: 0.42em; font-weight: 500; font-stretch: 100%; text-transform: none; letter-spacing: 0.01em; color: var(--muted); vertical-align: middle; white-space: nowrap; }
.menu-title .sub, .index-row .sub { font-size: 0.72em; }

/* the big two-tone name, used on every page */
.name { margin: 0; display: grid; font-size: clamp(2rem, 11.4cqi, 7.2rem); }
.name-a { color: var(--muted); transition: color 0.7s var(--ease); }
.name-b { justify-self: end; }
.page-name { display: block; container-type: inline-size; }
.page-name:hover .name-a { color: var(--ink); }

/* ---------- featured event: a sticker under her name ---------- */
.event {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  max-width: 100%; margin: 0; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: linear-gradient(120deg, #ffc15e, #f06a36);
  color: #241005;
  font-size: 0.78rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0.035em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 0 8px 20px rgba(240, 106, 54, 0.32);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
a.event:hover, a.event:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240, 106, 54, 0.42); }
[data-mode="decorative"] .event { background: linear-gradient(120deg, #f6dc9a, #c9973e); box-shadow: 0 8px 20px rgba(201, 151, 62, 0.28); }
.event-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: event-pulse 1.8s ease-out infinite;
}
@keyframes event-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
.event-text { text-wrap: balance; } /* if it must wrap, wrap evenly instead of orphaning a word */
.event-dates { flex: none; padding-left: 10px; border-left: 1px solid rgba(36, 16, 5, 0.3); font-weight: 500; }
.event .arrow-icon { width: 1.25em; height: 1.25em; }

/* ---------- sphere: mode-switch knob, button bullet ---------- */
.sphere {
  display: block; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, var(--sphere-hi) 0 7%, transparent 26%),
    radial-gradient(circle at 40% 38%, var(--sphere-1) 0 38%, var(--sphere-2) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset -2px -3px 5px rgba(0, 0, 0, 0.25);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 13px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 0.78rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.25s var(--ease-out), background-color 0.7s var(--ease), color 0.7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .sphere { width: 24px; height: 24px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 0 20px; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--gutter) + 10px) calc(var(--gutter) + 12px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-nav { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.pill {
  height: 38px; display: inline-flex; align-items: center; padding: 0 16px;
  border-radius: 999px; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease), border-color 0.2s;
}
.pill:hover { border-color: var(--ink); }
.pill-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.back-pill { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); white-space: nowrap; gap: 0.35em; }
[data-view="home"] .back-pill { display: none; }
.menu-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
  display: grid; place-content: center; gap: 4px; transition: background-color 0.7s var(--ease);
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 250; background: var(--bg); overflow-y: auto; animation: rise 0.45s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }
.menu-inner {
  min-height: 100%; padding: 90px calc(var(--gutter) + 12px) 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}
.menu h2 { margin: 0 0 14px; }
.menu-list a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 12px; }
.menu-list li:nth-child(odd) a { background: var(--panel); }
.menu-list li a:hover, .menu-list li a:focus-visible { background: var(--ink); color: var(--bg); }
.menu-list li a:hover .menu-year, .menu-list li a:hover .sub { color: var(--bg); }
.menu-title { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 500; font-stretch: 115%; text-transform: uppercase; }
.menu-title small { font-size: 0.65em; color: var(--muted); letter-spacing: 0.06em; margin-left: 0.5em; }
.menu-year { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-big { container-type: inline-size; }
.menu-big a { display: block; font-size: min(10.5cqi, 3.2rem); margin-bottom: 0.32em; }
.menu-big a:nth-of-type(even) { padding-left: 0.6em; }
.menu-big a:hover { color: var(--muted); }

/* ======================================================================
   HOME — sticky frame over a scroll track; scrolling advances the tiles
   ====================================================================== */
/* one snap point per collection: each scroll gesture moves exactly one */
html.snap { scroll-snap-type: y mandatory; }
.home-track { position: relative; height: calc(var(--n, 12) * 100svh); }
.snaps { position: absolute; inset: 0; pointer-events: none; }
.snaps span { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; }
.home-rest { scroll-snap-align: start; }
.home-frame {
  position: sticky; top: 0; height: 100svh;
  padding: var(--gutter);
  display: grid; gap: var(--gutter);
  grid-template-columns: minmax(0, 40fr) minmax(0, 30fr) minmax(0, 12fr) minmax(0, 15fr);
  grid-template-rows: minmax(0, 1fr) clamp(210px, 33svh, 330px);
  grid-template-areas:
    "name stage  stage strip"
    "now  detail plate plate";
  overflow: hidden;
}

.h-name { grid-area: name; padding: 18px 12px 0; display: flex; flex-direction: column; gap: 22px; container-type: inline-size; }

/* mode switch */
.switch { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; }
.switch-track { position: relative; width: 52px; height: 28px; border-radius: 999px; border: 1px solid var(--line); flex: none; }
.switch-track .sphere { position: absolute; top: 2px; left: 2px; transition: transform 0.6s var(--ease); }
[data-mode="decorative"] .switch-track .sphere { transform: translateX(24px) rotate(200deg); }
.switch-labels { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.74rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; }
.switch-labels span { color: var(--muted); transition: color 0.4s; }
[data-mode="paintings"] .switch-labels [data-l="paintings"],
[data-mode="decorative"] .switch-labels [data-l="decorative"] { color: var(--ink); }
.switch:hover .switch-track { border-color: var(--ink); }

/* current collection, tucked into the bottom-left corner */
.h-now { grid-area: now; padding: 0 12px 6px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; min-width: 0; }
.now-title { margin: 0; font-size: clamp(1.5rem, 2.9vw, 3.3rem); overflow-wrap: anywhere; }
.now-title a:hover { color: var(--muted); }
.arrow-icon { display: block; flex: none; width: 1.3em; height: 1.3em; }
.now-link {
  display: inline-flex; align-items: center; gap: 0.3em; align-self: flex-start;
  font-size: 1rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase;
}
.now-link span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.now-link:hover { color: var(--muted); }

/* the cycle: tiles move between these slots; the plate never moves */
.slot { visibility: hidden; pointer-events: none; }
.slot[data-slot="stage"] { grid-area: stage; }
.slot[data-slot="strip"] { grid-area: strip; }
.slot[data-slot="detail"] { grid-area: detail; }

.set { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tile { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform, width, height; }
.set[data-on="false"] .tile { pointer-events: none; }
.tile-inner {
  position: absolute; inset: 0; overflow: hidden; background: var(--panel);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  transition-delay: calc(0.38s + var(--k, 1) * 80ms);
}
/* switching modes turns every tile over like a card */
.set[data-on="false"] .tile-inner {
  transform: perspective(1400px) rotateY(90deg); opacity: 0;
  transition-delay: calc(var(--k, 1) * 80ms);
}
.no-anim .tile-inner { transition: none !important; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile-inner { container-type: inline-size; }
.tile-inner::after {
  content: ""; position: absolute; inset: 0; background: var(--bg);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.tile-label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 0.35em;
  color: var(--ink); pointer-events: none;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem); font-weight: 600; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.7s var(--ease);
}
.tl-text { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.tile:hover .tile-inner::after, .tile:focus-visible .tile-inner::after { opacity: 0.55; }
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; transform: none; }
/* too narrow for the words (the right-hand strip): just the arrow */
@container (max-width: 230px) {
  .tl-text { display: none; }
  .tile-label .arrow-icon { width: 2.4em; height: 2.4em; }
}
.tile:focus-visible { outline-offset: -4px; }

.plate {
  grid-area: plate; position: relative; z-index: 50;
  background: var(--panel);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 16px;
  transition: background-color 0.7s var(--ease);
}
.plate-body { display: grid; gap: 10px; justify-items: center; }
.plate-title { margin: 0; font-size: clamp(1rem, 1.6vw, 1.6rem); font-weight: 500; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; }
.plate-meta { margin: 0; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }

/* all-collections index below the tiles */
.index {
  position: relative; z-index: 2; background: var(--bg);
  padding: 90px calc(var(--gutter) + 12px) 40px;
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 57fr); gap: var(--gutter);
  transition: background-color 0.7s var(--ease);
}
.index-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.index-intro h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.4rem); }
.index-intro p { margin: 0; max-width: 34ch; color: var(--muted); }
.index-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.index-list h3 { margin: 0 0 10px; }
.index-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.index-row img { width: 56px; height: 56px; object-fit: cover; filter: grayscale(1); transition: filter 0.4s; }
.index-row:hover img, .index-row:focus-visible img { filter: none; }
.index-row .t { font-weight: 500; font-stretch: 115%; text-transform: uppercase; line-height: 1.1; }
.index-row .t small { display: block; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 3px; }
.index-row .y { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

.footer {
  padding: 60px calc(var(--gutter) + 12px) 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end;
  border-top: 1px solid var(--line);
}
.footer-name { font-size: clamp(1.6rem, 4vw, 3.4rem); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ======================================================================
   COLLECTION — short header, then a wall of art
   ====================================================================== */
.page-head {
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 57fr); gap: var(--gutter);
  align-items: end;
  padding: 78px calc(var(--gutter) + 12px) 26px;
}
.coll-meta {
  justify-self: end; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  padding: 0 0 4px 28px; border-left: 1px solid var(--line);
}
.coll-meta .tags { justify-content: flex-end; }
/* page titles use the body face so her name stays the one display-type moment */
.page-title { margin: 0; font-size: clamp(2rem, 3.8vw, 3.8rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1; overflow-wrap: anywhere; }

.gallery {
  --row: clamp(200px, 44svh, 520px);
  display: flex; flex-wrap: wrap; gap: var(--gutter);
  padding: 0 var(--gutter);
}
.gallery::after { content: ""; flex: 10000 1 0; } /* keeps the last row from stretching */
.g-item {
  flex: var(--ar) 1 calc(var(--ar) * var(--row));
  aspect-ratio: var(--ar);
  max-height: 86svh;
  min-width: 0;
}
.g-btn { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.g-btn:hover img { transform: scale(1.03); }
.g-cap {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; text-align: left;
  padding: 40px 14px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  opacity: 0; transition: opacity 0.3s;
}
.g-btn:hover .g-cap, .g-btn:focus-visible .g-cap { opacity: 1; }
.cap-title { margin: 0; font-size: 0.86rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }
.cap-meta { font-size: 0.78rem; opacity: 0.85; margin: 0; }
.coll { padding-bottom: 60px; }

/* ---------- viewer ---------- */
.viewer { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f0e0d; color: #ece6da; }
.viewer::backdrop { background: #0f0e0d; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: rise 0.35s var(--ease-out); }
.viewer-top, .viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.viewer-count { font-size: 0.72rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.viewer-stage { position: relative; min-height: 0; }
.viewer-stage img {
  position: absolute; top: 0; bottom: 0; left: 72px; right: 72px;
  width: calc(100% - 144px); height: 100%; object-fit: contain;
  animation: fade 0.4s var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }
.viewer-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236, 230, 218, 0.3); display: grid; place-items: center; font-size: 1.1rem; }
.viewer-btn:hover { background: rgba(236, 230, 218, 0.1); }
.viewer-prev, .viewer-next { position: absolute; top: 50%; translate: 0 -50%; }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-cap .cap-title { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.viewer-cap .cap-meta { color: #9a9387; opacity: 1; }
.viewer .btn { background: #ece6da; color: #0f0e0d; }

/* ======================================================================
   ARTIST + CONTACT
   ====================================================================== */
.artist { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 57fr); gap: var(--gutter); padding: var(--gutter); }
.artist-side {
  position: sticky; top: var(--gutter); align-self: start; height: calc(100svh - 2 * var(--gutter));
  display: flex; flex-direction: column; gap: 20px; padding: 70px 12px 6px;
}
.portrait { margin: 0; position: relative; flex: 1 1 auto; min-height: 0; background: var(--panel); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--bg); }
.artist-toc a:hover { background: var(--ink); color: var(--bg); }

.artist-main { padding: 70px 12px 60px; display: grid; gap: 90px; }
.section-h { margin: 0 0 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.section-h h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.contact-page { height: 100svh; overflow: hidden; }
.contact-main { gap: 56px; align-content: start; }
.socials .eyebrow { margin-bottom: 10px; }
.social-list { border-top: 1px solid var(--line); max-width: 520px; }
.social-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; }
.social-list a:hover { color: var(--muted); }
.contact-lede { margin: 0 0 18px; max-width: 30ch; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.3; }
.contact-actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.statement p { margin: 0 0 1em; max-width: 62ch; font-size: 1.12rem; line-height: 1.65; }

.show { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.show-year { font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.show-venue { margin: 0; font-weight: 500; font-stretch: 112%; text-transform: uppercase; line-height: 1.2; }
.show-title { margin: 3px 0 0; }
.show-meta { margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); }
.show-side { display: flex; gap: 12px; align-items: center; }
.show-img { width: 84px; height: 64px; object-fit: cover; background: var(--panel); }
.show a.go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.show a.go .arrow-icon { width: 1.1em; height: 1.1em; }
.show a.go:hover { background: var(--ink); color: var(--bg); }

.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.press li { border-bottom: 1px solid var(--line); }
.press a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 0; font-weight: 500; font-stretch: 110%; }
.press a:hover { color: var(--muted); }

/* ======================================================================
   View transitions
   ====================================================================== */
::view-transition-group(hero) { animation-duration: 0.75s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
  .home-frame { grid-template-columns: minmax(0, 34fr) minmax(0, 32fr) minmax(0, 12fr) minmax(0, 18fr); }
}

@media (max-width: 760px) {
  .hide-sm { display: none; }
  .home-frame {
    grid-template-columns: minmax(0, 64fr) minmax(0, 36fr);
    grid-template-rows: auto minmax(0, 1fr) 24svh auto;
    grid-template-areas: "name name" "stage strip" "detail plate" "now now";
    gap: 8px;
  }
  .h-name { padding: 60px 4px 0; gap: 14px; }
  .event { font-size: 0.7rem; gap: 8px; padding: 8px 13px 8px 10px; }
  .h-now { padding: 4px 4px 4px; gap: 8px; justify-content: flex-start; }
  /* always reserve two lines for the collection name, so switching between a
     one-line and a two-line name never resizes the tiles above it */
  .now-title {
    font-size: clamp(1.3rem, 7vw, 2rem); line-height: 1; min-height: 2em;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  .plate { padding: 10px 8px; }
  .plate-title { font-size: 1rem; }
  .plate .eyebrow, .plate-meta { font-size: 0.6rem; }
  .index, .artist, .page-head { grid-template-columns: minmax(0, 1fr); }
  .index { padding-top: 60px; }
  .page-head { padding: 70px 14px 20px; gap: 18px; }
  .coll-meta { justify-self: stretch; text-align: left; align-items: flex-start; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .coll-meta .tags { justify-content: flex-start; }
  .gallery { --row: 30svh; }
  .g-cap { display: none; }
  .artist-side { position: static; height: auto; padding: 60px 4px 10px; }
  .portrait { height: 56svh; flex: none; }
  /* on phones the contact page can scroll */
  .contact-page { height: auto; overflow: visible; }
  .contact-page .artist-side { padding-top: 58px; gap: 12px; }
  .contact-page .portrait { height: 28svh; }
  .contact-page .artist-main { padding-top: 14px; gap: 22px; }
  .contact-page .contact-lede { font-size: 1.05rem; margin-bottom: 12px; }
  .contact-page .contact-actions { margin-top: 8px; }
  .artist-main { padding: 20px 4px 40px; gap: 60px; }
  .show { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .show-side { grid-column: 2; }
  .viewer-stage img { left: 8px; right: 8px; width: calc(100% - 16px); }
  .viewer-bottom { flex-direction: column; align-items: flex-start; }
  .viewer-prev, .viewer-next { top: auto; bottom: 8px; translate: none; }
  .viewer-prev { left: auto; right: 64px; }
  .viewer-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
