/* timothyhunter.com — the paintings as the ground */

@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0f0f0f;
  --bg-2: #181818;
  --ink: #f2efe9;
  --muted: #a29e96;
  --faint: #75716b;
  --line: rgba(255, 255, 255, 0.14);
  --veil: rgba(10, 10, 14, 0.3);
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --maxw: 1600px;
  --rowh: 300px;
  --gap: clamp(10px, 1.6vw, 22px);
  --tile-h: 300px;
  --shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
i { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--gutter);
  padding-top: max(20px, env(safe-area-inset-top));
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
.name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: opacity .3s; }
.site-nav { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.site-nav a {
  font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 4px 0; position: relative;
  transition: opacity .2s;
}
.site-nav a:hover { opacity: .6; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink);
}
.menu-btn {
  display: none; appearance: none; background: none; border: 0; color: var(--ink);
  font: 500 15px/1 var(--sans); padding: 10px 0 10px 16px; margin: -10px 0; cursor: pointer;
}

/* home: the header floats over the cover until the page scrolls */
.home .site-head { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: var(--shadow); }
.home .site-head .name { opacity: 0; pointer-events: none; }
.home .site-head.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
.home .site-head.scrolled .name { opacity: 1; pointer-events: auto; }

/* ---------- cover ---------- */
.cover { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--bg-2); color: #fff; }
.cover-img, .cover-img img, .cover-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-img img, .cover-fallback { object-fit: cover; }
.cover-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,14,.32) 0, rgba(10,10,14,0) 16%, rgba(10,10,14,0) 48%, rgba(10,10,14,.46) 100%); }
.cover-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) max(8px, env(safe-area-inset-bottom)); }
.cover-row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(10px, 1.6vw, 22px); font-size: 15px; font-weight: 500; text-shadow: var(--shadow); }
.cover-cap, .cover-enter { text-decoration: none; }
.cover-cap:hover, .cover-enter:hover { opacity: .65; }
.cover-enter { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.cover-name {
  font-size: clamp(64px, 12.6vw, 250px); font-weight: 600; line-height: 0.84; letter-spacing: -0.05em;
  white-space: nowrap; margin-left: -0.04em; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.18); pointer-events: none;
}

/* ---------- the wall of paintings ---------- */
.wall-sec { position: relative; background: var(--bg); scroll-margin-top: 0; }
.wall-intro {
  position: absolute; left: var(--gutter); top: 92px; z-index: 2;
  pointer-events: none; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.wall-intro h2 { font-size: clamp(56px, 8vw, 120px); font-weight: 600; line-height: 0.86; letter-spacing: -0.045em; }
.wall-intro p { font-size: 15px; font-weight: 500; margin-top: 12px; }
/* rows are laid out at build time: each row is as tall as it must be for its paintings to fill the width uncropped */
.mosaic { display: flex; flex-direction: column; gap: 3px; }
.mrow { display: flex; gap: 3px; aspect-ratio: var(--sr) / 1; width: 100%; }
.tile {
  position: relative; display: block; overflow: hidden; background: var(--bg-2);
  flex: var(--r) 1 0; min-width: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, filter .4s ease, transform .4s ease; }
.tile img.loaded { opacity: 1; }
.tile-cap {
  position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 13px; font-weight: 500; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity .3s; pointer-events: none;
}
/* haze at rest, focus under the pointer: only where there is a real pointer */
@media (hover: hover) and (pointer: fine) {
  .tile img { filter: blur(3px) brightness(0.72) saturate(0.9); transform: scale(1.04); }
  .tile:hover img, .tile:focus-visible img { filter: none; transform: scale(1); }
  .tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
}
.tile:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---------- series cards ---------- */
.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 3px; }
.series-card {
  position: relative; overflow: hidden; min-height: clamp(300px, 34vw, 460px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(20px, 2.4vw, 32px); text-decoration: none; color: #fff; background: var(--bg-2);
}
.series-card > * { position: relative; }
.series-bg { position: absolute !important; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) saturate(1.15); }
.series-card::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 14, 0.34); z-index: 0; }
.series-card .label { color: rgba(255, 255, 255, 0.82); }
.series-title { font-size: clamp(40px, 4.6vw, 72px); font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; }
.series-meta { font-size: 14px; font-weight: 500; line-height: 1.5; max-width: 30em; }
.series-meta a { text-decoration: underline; text-underline-offset: 3px; }
.series-more { font-size: 14px; font-weight: 500; border-bottom: 1.5px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
a.series-card:hover .series-bg { filter: blur(22px) saturate(1.25); }

/* ---------- inner pages ---------- */
main { max-width: none; }
.inner-page main, .section { max-width: var(--maxw); margin: 0 auto; }
.inner-page main { padding: 0 var(--gutter); }
.section { padding: clamp(40px, 7vw, 100px) 0 0; }
.section-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .label { display: block; margin-bottom: 14px; }
.display { font-size: clamp(64px, 11vw, 180px); font-weight: 600; line-height: 0.86; letter-spacing: -0.05em; }
.title { font-size: clamp(40px, 6vw, 88px); font-weight: 600; line-height: 0.92; letter-spacing: -0.04em; }
.meta { font-size: 14px; color: var(--muted); margin-top: 16px; line-height: 1.55; }
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; margin-top: 22px; max-width: 34em; font-weight: 500; }
.more {
  display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 500;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.more:hover { opacity: .65; }

/* band with a hazed painting behind the title (Phosphenes page) */
.band { position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1); min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; color: #fff; }
.band-bg { position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); max-width: none; object-fit: cover; filter: blur(44px) saturate(1.2); }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 14, 0.3); z-index: 1; }
.band-inner { position: relative; z-index: 2; padding: 120px var(--gutter) clamp(28px, 4vw, 48px); max-width: var(--maxw); width: 100%; margin: 0 auto; text-shadow: var(--shadow); }
.band-inner .label { color: rgba(255, 255, 255, 0.85); display: block; margin-bottom: 16px; }

.group { margin-top: clamp(40px, 6vw, 72px); }
.group:first-child { margin-top: 0; }
.group-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 22px; }
.group-head h3 { font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.group-head p { font-size: 14px; color: var(--muted); max-width: 60em; }

/* justified painting grid (inner pages) */
.grid { display: flex; flex-wrap: wrap; gap: calc(var(--gap) * 1.4) var(--gap); }
.grid::after { content: ""; flex-grow: 999999; }
.work { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--rowh)); min-width: 0; }
.work a { display: block; cursor: zoom-in; }
.work .frame { aspect-ratio: var(--r); background: var(--bg-2); overflow: hidden; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .6s ease; opacity: 0; }
.work img.loaded { opacity: 1; }
.work a:hover img { transform: scale(1.012); }
.work figcaption { margin-top: 10px; line-height: 1.35; }
.work figcaption i { font-size: 15px; display: block; font-weight: 500; font-style: normal; }
.work figcaption span { font-size: 13px; color: var(--muted); }

.prose { max-width: 36em; }
.prose p { margin-bottom: 1.05em; font-size: 18px; line-height: 1.62; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-underline-offset: 3px; }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
.facts { font-size: 15px; line-height: 1.6; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.facts dt:first-child { margin-top: 0; }

/* CV */
.cv-block { padding: 26px 0 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 5vw, 80px); }
.cv-block h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.cv-block ul { list-style: none; }
.cv-block li { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; font-size: 16px; line-height: 1.45; padding: 4px 0; }
.cv-block .yr { font-size: 14px; color: var(--muted); padding-top: 1px; }
.cv-block a { text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-foot { max-width: var(--maxw); margin: clamp(64px, 10vw, 140px) auto 0; padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom)); }
.home .site-foot { margin-top: clamp(48px, 7vw, 96px); }
.site-foot .inner { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.site-foot .contact { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline; }
.site-foot a { text-decoration: none; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.site-foot a:hover { border-color: var(--ink); }
.site-foot small { font-size: 13px; color: var(--faint); align-self: end; }

/* ---------- viewer: the painting on a haze of itself ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: #0b0b0b; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 460px); grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; overflow: hidden;
}
.viewer.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.v-haze { position: absolute; inset: -90px; width: calc(100% + 180px); height: calc(100% + 180px); max-width: none; object-fit: cover; filter: blur(46px) saturate(1.2); transition: opacity .35s ease; }
.v-veil { position: absolute; inset: 0; background: rgba(10, 10, 14, 0.32); }
.v-stage { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.v-stage.zoomed { cursor: grab; }
.v-stage.dragging { cursor: grabbing; }
.v-img {
  position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; will-change: transform;
  -webkit-user-drag: none; user-select: none; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}
.v-img.anim { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
.v-side {
  grid-column: 2; grid-row: 1; position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 80px var(--gutter) 24px 8px; text-shadow: var(--shadow); min-width: 0;
}
.v-group { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.v-title { font-size: clamp(40px, 5.2vw, 88px); font-weight: 500; line-height: 0.95; letter-spacing: -0.035em; overflow-wrap: break-word; }
.v-info { font-size: 16px; }
.v-ctrls { display: flex; align-items: center; gap: 4px; margin: 10px 0 0 -12px; }
.v-count { font-size: 14px; font-weight: 500; min-width: 4.6em; text-align: center; font-variant-numeric: tabular-nums; }
.v-btn {
  appearance: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .15s;
}
.v-btn:hover { background: rgba(255, 255, 255, 0.12); }
.v-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; filter: drop-shadow(0 1px 6px rgba(0,0,0,.3)); }
.v-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; }
.v-strip {
  grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1;
  display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 10px var(--gutter) max(18px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.v-strip::-webkit-scrollbar { display: none; }
.v-thumb { flex: none; height: 52px; padding: 0; border: 0; background: rgba(255,255,255,.08); cursor: pointer; opacity: .62; transition: opacity .2s; }
.v-thumb img { height: 100%; width: auto; max-width: none; }
.v-thumb:hover { opacity: 1; }
.v-thumb[aria-current="true"] { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.v-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  font-size: 13px; color: #fff; background: rgba(0, 0, 0, 0.42);
  padding: 7px 13px; border-radius: 20px; pointer-events: none; transition: opacity .4s; white-space: nowrap;
}
.v-hint.gone { opacity: 0; }
html.lock, html.lock body { overflow: hidden; }

/* ---------- to scale ---------- */
.wall-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 14px; }
.wall-zoom { display: flex; gap: 6px; }
.wall-zbtn {
  appearance: none; background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; font: 400 19px/1 var(--sans); transition: border-color .2s;
}
.wall-zbtn:hover { border-color: var(--ink); }
.wall-zbtn:focus { outline: none; }
.wall-zbtn:focus-visible, .wall-scroll:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.wall-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 44px; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.wall { --s: 3; --floor: 30px; --top: 70px; position: relative; width: calc(var(--W) * var(--s) * 1px); height: calc(var(--C) * var(--s) * 1px + var(--floor) + var(--top)); }
.wall-floor { position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor); background: var(--bg-2); border-top: 1px solid var(--line); }
.wall-line { position: absolute; left: 0; right: 0; bottom: calc(var(--floor) + 57 * var(--s) * 1px); border-top: 1px dashed var(--line); }
.wall-tick { position: absolute; left: 0; bottom: calc(var(--floor) + var(--y) * var(--s) * 1px); font-size: 11px; color: var(--faint); line-height: 1; transform: translateY(50%); padding-left: 12px; }
.wall-tick::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; border-top: 1px solid var(--line); }
.wall-figure { position: absolute; left: calc(var(--x) * var(--s) * 1px); bottom: var(--floor); width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); fill: #2a2a2a; }
.wall-series { position: absolute; left: calc(var(--x) * var(--s) * 1px); top: 14px; white-space: nowrap; display: flex; align-items: baseline; gap: 10px; }
.wall-series i { font-size: 17px; font-weight: 600; font-style: normal; }
.wall-series span { font-size: 12px; color: var(--muted); }
.wall-work { position: absolute; left: calc(var(--x) * var(--s) * 1px); bottom: calc(var(--floor) + var(--y) * var(--s) * 1px); width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); }
.wall-work a { display: block; width: 100%; height: 100%; cursor: zoom-in; background: var(--bg-2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.wall-work img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.wall-work a:hover, .wall-work a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.wall-work a:focus { outline-style: none; }
.wall-work a:focus-visible { outline-style: solid; }
.wall-work figcaption { position: absolute; left: 0; top: calc(100% + 8px); width: max-content; max-width: 220px; line-height: 1.3; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; background: var(--bg); padding: 2px 4px 3px 0; }
.wall-work figcaption i { font-size: 14px; display: block; font-style: normal; font-weight: 500; }
.wall-work figcaption span { font-size: 12px; color: var(--muted); }
.wall-work:hover figcaption, .wall-work:focus-within figcaption { opacity: 1; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  :root { --rowh: 240px; --tile-h: 230px; }
  .wall { --s: 2.2; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --rowh: 150px; --tile-h: 148px; }
  body { font-size: 16px; }

  /* header: name and a Menu button; the menu opens as a full-screen sheet */
  .site-head .inner { align-items: center; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; }
  .menu-btn { display: block; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: flex-end; gap: 2px;
    padding: 96px var(--gutter) max(40px, calc(env(safe-area-inset-bottom) + 24px));
    background: rgba(12, 12, 12, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
    text-shadow: none;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  .site-nav a { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; padding: 2px 0; align-self: flex-start; }
  .site-nav a[aria-current="page"]::after { bottom: 4px; height: 2px; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  .nav-open .site-head, .nav-open .home .site-head, html.nav-open .site-head.scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; text-shadow: none; }
  .nav-open .site-head .name { opacity: 1; pointer-events: auto; position: relative; z-index: 2; }

  /* cover: tall close-up, the name set in two lines */
  .cover { min-height: 560px; }
  .cover-foot { padding-bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px)); }
  .cover-row { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 14px; }
  .cover-name { font-size: 25.5vw; line-height: 0.82; white-space: normal; letter-spacing: -0.055em; }
  .cover-name span { display: block; }

  /* wall: clear, rows reflowed for the narrow screen, the heading above the paintings */
  .wall-intro { position: static; padding: 84px var(--gutter) 16px; text-shadow: none; color: var(--ink); }
  .wall-intro h2 { font-size: 56px; }
  .wall-intro p { color: var(--muted); font-size: 14px; }
  .mosaic { flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .mosaic::after { content: ""; flex-grow: 999999; }
  .mrow { display: contents; }
  .tile { flex: 0 1 auto; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--tile-h)); height: var(--tile-h); cursor: pointer; }

  .series { grid-template-columns: 1fr; gap: 2px; margin-top: 2px; }
  .series-card { min-height: 300px; }

  .band { min-height: 440px; }
  .band-inner { padding-top: 100px; }
  .twocol, .cv-block { grid-template-columns: 1fr; }
  .cv-block { gap: 12px; }
  .cv-block li { font-size: 15px; grid-template-columns: 3.6em 1fr; }
  .work figcaption i { font-size: 14px; }
  .work figcaption span { font-size: 12px; }
  .prose p { font-size: 17px; }
  .wall { --s: 1.6; --top: 60px; }
  .wall-series i { font-size: 15px; }
  .site-foot a { font-size: 17px; }

  /* viewer: painting above, caption and strip below */
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
  .v-stage { grid-column: 1; grid-row: 1; }
  .v-side { grid-column: 1; grid-row: 2; padding: 6px var(--gutter) 2px; gap: 4px; justify-content: flex-start; }
  .v-group { font-size: 11px; }
  .v-title { font-size: 30px; letter-spacing: -0.03em; line-height: 1.02; }
  .v-info { font-size: 14px; }
  .v-ctrls { margin: 4px 0 0 -12px; }
  .v-strip { grid-row: 3; padding-top: 8px; }
  .v-thumb { height: 46px; }
  .zoom-btn { display: none; }
  .v-hint { bottom: auto; top: max(18px, env(safe-area-inset-top)); }
}

@media (max-width: 380px) {
  .site-nav a { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work img, .tile img, .v-img.anim, .viewer, .v-haze { transition: none; }
}

/* groups of very tall canvases get a taller row */
.group.tall { --rowh: 560px; }
@media (max-width: 1000px) { .group.tall { --rowh: 420px; } }
@media (max-width: 760px) { .group.tall { --rowh: 300px; } }

.v-btn:focus { outline: none; }
.v-btn:focus-visible, .menu-btn:focus-visible { outline: 1.5px solid #fff; outline-offset: 2px; }
