/* ==========================================================================
   Yous Paintings -- colour, type and layout system
   ========================================================================== */

:root {
  /* Cool museum white, softened: gentler ink, a dustier accent, lighter
     hairlines. Every text pair here clears WCAG AA at small sizes. */
  --paper:        #F9F9FA;
  --paper-2:      #F2F3F5;
  --paper-3:      #E9EAEE;
  --ink:          #26282E;
  --ink-soft:     #575B63;
  --ink-faint:    #6B6F78;
  --line:         #E6E8EC;
  --accent:       #547294;
  --accent-deep:  #435C79;

  /* Wide and faint rather than tight and dark. */
  --shadow-sm:    0 1px 2px rgba(38, 40, 46, .04);
  --shadow-md:    0 18px 44px -20px rgba(38, 40, 46, .16);
  --shadow-lg:    0 40px 90px -40px rgba(38, 40, 46, .22);

  --radius:       12px;
  --radius-lg:    16px;
  --radius-sm:    8px;
  --radius-art:   5px;

  --header-h:     82px;
  --page-max:     1280px;
  --ease:         cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* The decorative blobs deliberately bleed past the edges, so any section that
   holds them has to clip -- otherwise they widen the page and create a
   horizontal scrollbar. */
.hero,
.section:has(> .blobs) { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

/* One focus ring for the whole site, only for keyboard users. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.lightbox :focus-visible { outline-color: var(--paper); }
.lightbox:focus { outline: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, .display {
  font-family: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -.004em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1.15em; max-width: 62ch; }

.script {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-size: 1.45em;
  line-height: 1.35;
  color: var(--accent);
}

.eyebrow {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--ink-faint);
}

.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-soft); }

.italic-serif {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 3.5rem);
}

.section { padding-block: clamp(3.4rem, 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 4.5vw, 4rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.section-head > div { flex: 1 1 min(30rem, 100%); }
.section-head h2 { margin-bottom: .25em; }

/* --------------------------------------------------------------------------
   Buttons + chips
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.55rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .005em;
  transition: background .28s var(--ease), color .28s var(--ease),
              box-shadow .28s var(--ease);
}
.btn:hover { background: var(--ink-soft); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ig { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--ig:hover { background: var(--ink-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-size: .86rem;
  font-weight: 450;
  color: var(--ink-soft);
  transition: border-color .25s var(--ease), color .25s var(--ease),
              background .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  flex: none;
}
.brand__mark {
  width: auto;
  height: 46px;
  flex: none;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  position: relative;
  padding: .5rem .85rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .32rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 16px; height: 1.6px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0; width: 16px; height: 1.6px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }
body.nav-open .nav-toggle span { transform: rotate(45deg); }
body.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(-90deg); }
body.nav-open .nav-toggle span::after  { opacity: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(2.6rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }

.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}
.hero h1 { margin-bottom: 0; }
.hero h1 .word {
  font-style: italic;
  color: var(--accent);
}
.hero__lede p { margin-bottom: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0 0; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .85rem;
  font-size: .82rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Credentials strip
   -------------------------------------------------------------------------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 2rem;
  margin: 0;
  padding: 1.15rem 0;
  list-style: none;
}
.strip li {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Artwork grid
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(248px, 100%), 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.1rem, 2vw, 1.8rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
/* One uniform tile per painting so the rows line up, with the canvas shown
   whole on a matte tinted from its own palette -- nothing gets cropped. */
.card__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  transition: background .5s var(--ease);
}
.card__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.card__frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-art);
  box-shadow: 0 12px 30px -14px rgba(38, 40, 46, .24),
              0 1px 3px rgba(38, 40, 46, .07);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}

.card:hover .card__frame { background: var(--paper-3); }
.card:hover .card__frame img {
  transform: scale(1.02);
  box-shadow: 0 22px 48px -18px rgba(38, 40, 46, .28), 0 2px 5px rgba(38, 40, 46, .08);
}

.card__body { padding-top: .95rem; }
.card__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  /* Two lines are reserved so the size line sits level across a row, however
     long the titles happen to be. */
  min-height: 2.5em;
  margin: 0 0 .15rem;
  transition: color .3s var(--ease);
}
.card:hover .card__title { color: var(--accent); }
.card__meta {
  margin: 0;
  font-size: .82rem;
  color: var(--ink-faint);
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.card__sold {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .05rem .4rem;
}
.card__status {
  flex: none;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Toolbar (gallery filters)
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.3rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.toolbar__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: .3rem;
}
.toolbar__count { margin-left: auto; font-size: .88rem; color: var(--ink-faint); }
.toolbar select {
  font: inherit;
  font-size: .88rem;
  padding: .45rem 2rem .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355514A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 14px;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}

.empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__logo,
.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.about__logo img { width: 100%; mix-blend-mode: multiply; }
.about__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2.2rem;
  border-block: 1px solid var(--line);
}
.fact {
  padding: 1.15rem 1.2rem 1.15rem 0;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.fact span {
  display: block;
  margin-top: .3rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Contact band
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.band h2, .band h3 { color: var(--paper); }
.band p { color: color-mix(in oklab, var(--paper) 74%, transparent); margin-inline: auto; }
.band .btn--ig { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.band .btn--ig:hover { background: var(--paper-2); }
.band .btn--ghost { --btn-fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(249, 249, 250, .32); }
.band .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--paper); color: var(--paper); }
.band > * { position: relative; z-index: 1; }
.band .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Artwork detail page
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-block: 1.5rem .5rem;
  font-size: .85rem;
  color: var(--ink-faint);
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.work__stage { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.work__canvas {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: zoom-in;
}
.work__canvas img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius-art);
  box-shadow: 0 26px 60px -24px rgba(38, 40, 46, .3), 0 2px 6px rgba(38, 40, 46, .08);
  transition: transform .6s var(--ease);
}
.work__canvas:hover img { transform: scale(1.012); }
.work__canvas::after {
  content: 'Click to zoom';
  position: absolute;
  right: 1rem; bottom: 1rem;
  padding: .35rem .8rem;
  border-radius: 100px;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.work__canvas:hover::after { opacity: 1; }

.thumbs { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.thumbs button {
  width: 74px; height: 74px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 0 0 1.5px var(--line);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.thumbs button { display: grid; place-items: center; padding: 6px; }
.thumbs img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.thumbs button:hover { transform: translateY(-3px); }
.thumbs button[aria-current='true'] { box-shadow: 0 0 0 2.5px var(--accent); }

.work__info h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: .3em; }

/* Real dividers rather than a background showing through 1px gaps: with
   rounded corners the old trick left grey arcs at each corner. */
.specs {
  display: grid;
  margin: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .1rem;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.spec dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.spec dd { margin: 0; font-weight: 500; text-align: right; }

.note {
  padding: .2rem 0;
  margin: 1.6rem 0;
}
.note p { margin: 0; color: var(--ink-soft); }

.work__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* --------------------------------------------------------------------------
   Zoomable image viewer
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #1C1F24;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem clamp(.8rem, 2vw, 1.6rem);
  border-bottom: 1px solid rgba(249, 249, 250, .1);
}
.lightbox__caption {
  margin: 0;
  max-width: none;
  font-size: .84rem;
  color: rgba(249, 249, 250, .72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox__tools { display: flex; align-items: center; gap: .35rem; flex: none; }
.lightbox__tools button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .5rem;
  border: 0;
  border-radius: var(--radius);
  background: rgba(249, 249, 250, .1);
  color: #F9F9FA;
  font-size: 1rem;
  line-height: 1;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.lightbox__tools button:hover:not(:disabled) { background: rgba(249, 249, 250, .24); }
.lightbox__tools button:disabled { opacity: .32; cursor: default; }
.lightbox__level {
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  min-width: 3.4em;
}
.lightbox__close { margin-left: .4rem; }

/* The stage clips the painting so a zoomed image cannot spill onto the page,
   and takes over touch gestures so a pinch zooms instead of scrolling. */
.lightbox__stage {
  position: relative;
  flex: 1;
  display: grid;
  /* Definite tracks, so the painting's max-height: 100% has a real height to
     measure against and it always starts fully inside the stage. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(.6rem, 2vw, 2rem);
  touch-action: none;
  cursor: zoom-in;
}
.lightbox.is-zoomed .lightbox__stage { cursor: grab; }
.lightbox.is-panning .lightbox__stage { cursor: grabbing; }

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-art);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .22s var(--ease);
}
.lightbox.is-panning .lightbox__stage img { transition: none; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(249, 249, 250, .1);
  color: #F9F9FA;
  font-size: 1.3rem;
  line-height: 1;
  transition: background .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(249, 249, 250, .24); }
.lightbox__nav--prev { left: clamp(.5rem, 1.5vw, 1.2rem); }
.lightbox__nav--next { right: clamp(.5rem, 1.5vw, 1.2rem); }

.lightbox__hint {
  margin: 0;
  max-width: none;
  padding: .7rem 1rem 1rem;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .04em;
  color: rgba(249, 249, 250, .45);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.6rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding-bottom: 2.2rem;
}
.footer__grid h4 {
  font-family: 'Inter', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .9rem;
}
.footer__links { display: grid; gap: .45rem; font-size: .95rem; }
.footer__links a { color: var(--ink-soft); transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-faint);
}
.footer__dots { display: none; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .work { grid-template-columns: 1fr; }
  .work__stage { position: static; }
}

@media (max-width: 900px) {
  .hero__intro, .about { grid-template-columns: 1fr; align-items: start; }
  .hero__intro { gap: 1.5rem; }
  .about__logo, .about__photo { max-width: 420px; }
  .strip ul { justify-content: flex-start; gap: .5rem 1.6rem; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; }
  .brand__mark { height: 38px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1.15rem, 4vw, 3.5rem) 1.6rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-118%);
    transition: transform .45s var(--ease);
    z-index: 55;
  }
  body.nav-open .nav { transform: none; }
  .nav a { padding: .8rem .2rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { left: .2rem; right: auto; width: 22px; bottom: .55rem; }
  /* Two across on a phone: ten paintings in one column is a long scroll. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .8rem; }
  .card__frame { padding: .7rem; }
  .card__title { font-size: 1rem; min-height: 2.6em; }
  .card__meta { font-size: .76rem; }
  .toolbar__count { margin-left: 0; width: 100%; }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1.5rem;
  }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .lightbox__nav { width: 40px; height: 40px; margin-top: -20px; }
  .lightbox__caption { font-size: .76rem; }
  .lightbox__hint { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
