/* ==========================================================================
   Pikturë: modern gallery theme
   Scroll animation states live in the "Motion" section near the end.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper: #f6f5f1;
  --wall: #e8e8e4;
  --wall-deep: #dcdcd6;
  --line: #d9d8d1;
  --ink: #2f3a12;
  --ink-soft: #3f4926;
  --muted: #525a3d;
  --night: #29330f;
  --night-soft: #ccd1b2;
  --night-line: #4a572a;

  --info: #2f4a5c;
  --info-hover: #233a49;
  --buy: #96552f;
  --buy-hover: #7c4524;
  --sold: #a3281f;

  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --page: 1360px;
  --section: clamp(80px, 12vw, 180px);
  --radius: 16px;
  --radius-lg: clamp(24px, 3vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; outline: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus { top: 10px; }

.page {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(120px, 15vw, 190px) var(--gutter) var(--section);
}

.page-title { font-size: clamp(4rem, 13vw, 12rem); line-height: .92; letter-spacing: -.03em; }

.page-intro {
  max-width: 44ch;
  margin-top: clamp(20px, 3vw, 36px);
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.4;
}

.eyebrow { font-size: .92rem; color: var(--muted); }

/* Scroll progress and header
   ========================================================================== */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  padding-inline: var(--gutter);
  transition: transform .55s var(--ease);
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-120%); }

.site-header__inner {
  position: relative;
  pointer-events: auto;
  max-width: 1040px;
  margin-inline: auto;
  padding: 0 10px 0 24px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: rgba(246, 245, 241, .74);
  border: 1px solid rgba(47, 58, 18, .08);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(44, 53, 19, .06);
}

.wordmark {
  display: inline-block;
  padding-block: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 2px; }

.site-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color .25s, color .25s;
}
.site-nav a:hover { background: rgba(47, 58, 18, .07); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.cart-button, .nav-toggle, .text-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.header-tools { justify-self: end; display: flex; align-items: center; gap: 4px; }

.lang-toggle {
  min-width: 44px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 500 .85rem/1 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.lang-toggle:hover { border-color: var(--ink); background: rgba(47, 58, 18, .07); }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  font-size: .95rem;
}

.cart-button__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
}

.text-button { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; }

/* Buttons
   ========================================================================== */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--info { background: var(--info); color: #fff; }
.btn--info:hover { background: var(--info-hover); }
.btn--buy { background: var(--buy); color: #fff; }
.btn--buy:hover { background: var(--buy-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #47551f; }
.btn--ghost { border-color: var(--ink-soft); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn[disabled] { background: var(--wall-deep); color: var(--muted); cursor: default; }
.btn--block { width: 100%; }

/* Picture frames
   ========================================================================== */

.framed {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(20, 16, 10, .3));
}

/* Homepage: hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100svh;
  min-height: 460px;
  padding: 92px var(--gutter) 64px;
  overflow: clip;
  background: #0a0a09;
  color: #fff;
  text-align: center;
}

.hero__panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, .6vw, 10px);
}
.hero__panels::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
}
.hero__panel { min-width: 0; overflow: hidden; }
.hero__panel svg { display: block; width: 100%; height: 100%; }

.hero__title {
  position: relative;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(5.4rem, min(23vw, 30svh), 19rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  color: #fff;
}

.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
}
.hero__cue::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleX(0); }
  60%, 100% { transform: scaleX(1); opacity: 0; }
}

/* Homepage: marquee and statement
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: clamp(22px, 3vw, 40px);
  border-block: 1px solid var(--line);
}

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.marquee__track span { padding-right: .55em; }
.marquee__track span:nth-child(even) { font-style: italic; color: var(--muted); }

.statement {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}

.statement__title { font-size: clamp(3.2rem, 9.4vw, 9rem); line-height: .95; letter-spacing: -.03em; }
.statement__title em { color: var(--muted); }

.statement__body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  margin-top: clamp(40px, 6vw, 88px);
}

.statement__by { margin-bottom: 14px; color: var(--muted); }
.statement__by a { text-underline-offset: 4px; }

.statement__text {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--wall-deep);
  text-decoration: none;
  transition: background-color .35s, color .35s;
}
.cta-card:hover { background: var(--ink); color: var(--paper); }
.cta-card span { font-size: 1rem; }
.cta-card strong { font: 400 clamp(1.9rem, 3vw, 2.8rem)/1.02 var(--serif); }

/* Homepage: selected works
   ========================================================================== */

.selected {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background: var(--paper);
}

.selected__title {
  margin-bottom: clamp(36px, 5vw, 72px);
  font: 400 clamp(3.8rem, 9vw, 7.5rem)/1.15 var(--script);
  letter-spacing: 0;
  text-align: center;
}

.selected__more { margin-top: clamp(40px, 5vw, 72px); text-align: center; }
.selected__more a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font: italic 400 1.25rem/1 var(--serif);
  text-decoration: none;
}
.selected__more a::before,
.selected__more a::after {
  content: "";
  width: clamp(36px, 7vw, 96px);
  height: 1px;
  background: var(--ink);
  transition: width .5s var(--ease);
}
.selected__more a:hover::before,
.selected__more a:hover::after { width: clamp(48px, 9vw, 128px); }

/* Homepage: digital paintings and drawings
   ========================================================================== */

.digital {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}

.digital__head h2 { font-size: clamp(3.2rem, 9.4vw, 9rem); line-height: .95; letter-spacing: -.03em; }
.digital__head h2 em { color: var(--muted); }
.digital__head p {
  max-width: 34ch;
  margin-top: clamp(16px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.4;
}

.digital__grid {
  display: grid;
  gap: clamp(32px, 4vw, 64px) clamp(20px, 3vw, 48px);
  margin-top: clamp(36px, 5vw, 72px);
}
.digital__grid--paintings { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.digital__grid--drawings { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.digital__item { display: block; text-decoration: none; }
.digital__image { overflow: hidden; border-radius: var(--radius); background: var(--wall); }
.digital__image svg { width: 100%; height: auto; transition: transform .9s var(--ease); }
.digital__item:hover .digital__image svg { transform: scale(1.04); }
.digital__item h3 { margin-top: 14px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.digital__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }

.digital__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 5vw, 64px); }

/* Shop
   ========================================================================== */

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 48px);
}

.category {
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 400 1rem/1.2 var(--sans);
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.category:hover { border-color: var(--ink); }
.category[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
  margin-top: clamp(24px, 3vw, 40px);
}

.field { display: grid; gap: 4px; }
.field label { font-size: .92rem; color: var(--muted); line-height: 1.3; }
.field--push { margin-left: auto; }

.field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.1rem/1.4 var(--sans);
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-bottom: 2px solid var(--info); }

.field select {
  appearance: none;
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232f3a12' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center;
  cursor: pointer;
}

.filters .field { min-width: 200px; }
.field textarea { min-height: 150px; resize: vertical; }

.results-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin: 14px 0 clamp(28px, 4vw, 56px);
  color: var(--muted);
}

/* Staggered columns: every work keeps its own proportions. */
.grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 40px);
}

.grid__column {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  row-gap: clamp(44px, 5vw, 72px);
}

.work { font-size: 1rem; line-height: 1.4; }
.work a { text-decoration: none; }
.work a:hover { text-decoration: underline; text-underline-offset: 3px; }

.work__image {
  display: block;
  overflow: hidden;
  outline: 1px solid rgba(47, 58, 18, .1);
  outline-offset: -1px;
}
.work__art {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .7s var(--ease);
}
.work__image:hover .work__art { transform: scale(1.025); }

.work__actions { display: flex; gap: 10px; margin-top: 10px; }
.work__cart {
  width: 44px;
  height: 44px;
  margin-left: -9px;
  padding: 9px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.work__cart svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.work__cart.is-added svg path:first-child { fill: currentColor; }

.work__price { margin-top: 12px; }
.work__actions + .work__price { margin-top: 2px; }
.work__title { margin-top: 2px; font: 400 1rem/1.4 var(--sans); }
.work__title span { color: var(--muted); }
.work__artist { font: italic 400 1.08rem/1.4 var(--serif); }
.work__spec { color: var(--muted); font-size: .9rem; }

.sold-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--sold);
}

.empty {
  flex: 1;
  padding: 64px 16px;
  text-align: center;
  background: var(--wall);
  border-radius: var(--radius);
}
.empty h2 { font-size: 2.4rem; margin-bottom: 8px; }

/* About
   ========================================================================== */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}

.bio__figure { margin: 0; position: sticky; top: 104px; }
.bio__portrait { background: var(--wall-deep); border-radius: var(--radius); overflow: hidden; }
.bio__portrait svg { width: 100%; height: auto; }
.bio__caption { margin-top: 8px; font-size: .9rem; color: var(--muted); }

.bio__name { font-size: clamp(3.6rem, 9vw, 9rem); line-height: .94; letter-spacing: -.03em; margin: 6px 0 clamp(28px, 4vw, 56px); }
.bio__label { font-size: 1rem; font-family: var(--sans); letter-spacing: 0; color: var(--muted); margin-bottom: 14px; }
.bio__text { max-width: 30em; }
.bio__text p { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.26; letter-spacing: -.01em; }
.bio__text p + p { margin-top: 1em; }

.honors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 7vw, 110px);
  margin-top: var(--section);
}

.honors__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.honors__head svg { width: 42px; height: 42px; flex: none; color: var(--ink-soft); }
.honors__head h2 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }

.record {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 8px;
  padding-block: 16px;
}
.record::before,
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.record__year { color: var(--muted); font-variant-numeric: tabular-nums; }
.record__place { display: block; color: var(--muted); font-size: .95rem; }

/* Artwork detail
   ========================================================================== */

.back-link { display: inline-block; padding: 6px 0; margin-bottom: 20px; text-underline-offset: 4px; color: var(--ink-soft); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}

.detail__sticky { position: sticky; top: 104px; }

.detail__art {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.detail__image {
  display: block;
  width: min(100%, calc((100svh - 170px) * var(--ratio, 1)));
  height: auto;
  margin-inline: auto;
}

.detail__hint { margin-top: 12px; text-align: center; color: var(--muted); font-size: .92rem; }

.detail__title { font-size: clamp(3.2rem, 6vw, 6rem); line-height: .96; letter-spacing: -.025em; margin-top: 6px; }
.detail__desc { margin-top: 20px; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.5; }

.specs { margin: 32px 0 0; }
.specs div {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.detail__price-label { margin-top: 28px; color: var(--muted); }
.detail__price { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.015em; }

.detail__actions { display: grid; gap: 10px; margin-top: 20px; max-width: 380px; }
.detail__note { margin-top: 12px; color: var(--muted); max-width: 42ch; }

.detail__artist { margin-top: 10px; font-size: 1.15rem; }
.detail__artist a { text-underline-offset: 4px; }

.related { margin-top: var(--section); }

/* About: marketplace, steps, artists
   ========================================================================== */

.about__lead {
  max-width: 24em;
  margin-top: clamp(32px, 5vw, 64px);
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -.015em;
}

.steps, .artists, .join { margin-top: var(--section); }
.steps h2 { font-size: clamp(2.8rem, 6vw, 5.6rem); letter-spacing: -.025em; }

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(28px, 4vw, 56px);
}

.step { position: relative; padding-top: 18px; }
.step__number { color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: clamp(28px, 4vw, 64px); font-size: clamp(1.9rem, 3vw, 2.8rem); }
.step p { margin-top: 10px; color: var(--ink-soft); }

.artists__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 48px);
}

.artist-card { display: block; text-decoration: none; }
.artist-card__image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--wall); }
.artist-card__image svg { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.artist-card:hover .artist-card__image svg { transform: scale(1.04); }
.artist-card h3 { margin-top: 14px; font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.artist-card__meta { color: var(--muted); }

.join {
  padding: clamp(36px, 6vw, 88px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--paper);
}
.join h2 { font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.025em; }
.join p { max-width: 36ch; margin-block: 16px 24px; color: var(--night-soft); font-size: 1.15rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head h2 { font-size: clamp(2.8rem, 6vw, 5.6rem); letter-spacing: -.025em; }


/* Contact
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 7vw, 110px);
  margin-top: clamp(40px, 6vw, 80px);
}

.contact__details h2 { font: 400 .92rem/1.3 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 26px; margin-bottom: 4px; }
.contact__details h2:first-child { margin-top: 0; }
.contact__details p { font-size: 1.2rem; line-height: 1.4; }
.page-intro + .contact__details { margin-top: clamp(32px, 5vw, 56px); }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form .btn { justify-self: start; }

.form__trap { position: absolute; left: -9999px; }

.form__status {
  padding: 14px 16px;
  background: var(--wall);
  border-left: 3px solid var(--info);
}
.form__status--error { border-left-color: var(--sold); }

/* Cart drawer
   ========================================================================== */

.drawer {
  width: min(460px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.drawer[open] { display: flex; flex-direction: column; animation: slide-in .5s var(--ease); }
.drawer::backdrop, .lightbox::backdrop { background: rgba(44, 53, 19, .55); backdrop-filter: blur(4px); }

@keyframes slide-in { from { transform: translateX(100%); } }

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 2.4rem; }

.drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cart-lines { flex: 1; overflow-y: auto; padding: 0 24px; }

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-line__thumb { background: var(--wall); border-radius: 8px; overflow: hidden; align-self: start; }
.cart-line__thumb svg { width: 100%; height: auto; }
.cart-line h3 { font-size: 1.4rem; }
.cart-line__type { color: var(--muted); font-size: .9rem; }

.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-line__end .text-button { font-size: .9rem; color: var(--muted); padding: 2px 0; }

.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; font: 400 1.8rem/1.1 var(--serif); }
.drawer__note { margin: 8px 0 16px; color: var(--muted); font-size: .94rem; }

.drawer__empty { padding: 40px 24px; }
.drawer__empty p { color: var(--ink-soft); margin-bottom: 18px; }

/* Lightbox
   ========================================================================== */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: zoom-in .6s var(--ease); }
@keyframes zoom-in { from { transform: scale(.94); opacity: 0; } }
.lightbox__close { position: absolute; top: 12px; right: 20px; color: #fff; z-index: 1; }
.lightbox__art svg { width: min(100vw - 32px, (100dvh - 88px) * var(--ratio, 1.33)); height: auto; }

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--night);
  color: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: clip;
}

.site-footer__inner {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(56px, 8vw, 120px) var(--gutter) 28px;
}

.site-footer__cta h2 { font-size: clamp(3.2rem, 9.4vw, 9rem); line-height: .95; letter-spacing: -.03em; }
.site-footer__cta h2 em { color: var(--night-soft); }
.site-footer__cta .btn { margin-top: clamp(24px, 3vw, 40px); }

.site-footer__mark {
  margin-top: clamp(40px, 7vw, 100px);
  font-family: var(--script);
  font-size: min(30vw, 32rem);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { text-underline-offset: 4px; }
.site-footer nav a { padding: 6px 0; }
.site-footer__note { color: var(--night-soft); }

/* Motion
   Hidden starting states apply only while .has-motion is on <html>, so people
   with reduced motion get the complete, static page.
   ========================================================================== */

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .05em .16em 0; margin: -.08em -.05em -.16em 0; }
.w > i { display: inline-block; font-style: inherit; }

.has-motion [data-reveal="words"] .w > i {
  transform: translateY(125%) rotate(4deg);
  transform-origin: left top;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.has-motion [data-reveal="words"].is-in .w > i { transform: none; }

.has-motion [data-reveal="up"] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .9s ease var(--delay, 0ms), transform 1.2s var(--ease) var(--delay, 0ms);
}
.has-motion [data-reveal="up"].is-in { opacity: 1; transform: none; }

.has-motion [data-reveal="clip"] {
  clip-path: inset(14% 10% 14% 10% round var(--radius));
  opacity: 0;
  transition: clip-path 1.3s var(--ease) var(--delay, 0ms), opacity .5s ease var(--delay, 0ms);
}
.has-motion [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }
.has-motion [data-reveal="clip"] > svg { scale: 1.2; transition: scale 1.5s var(--ease) var(--delay, 0ms); }
.has-motion [data-reveal="clip"].is-in > svg { scale: 1; }

.has-motion [data-reveal="frame"] {
  opacity: 0;
  transform: scale(.86) translateY(32px);
  transition: opacity .9s ease var(--delay, 0ms), transform 1.4s var(--ease) var(--delay, 0ms);
}
.has-motion [data-reveal="frame"].is-in { opacity: 1; transform: none; }

.has-motion [data-reveal="line"] { opacity: 0; transition: opacity .8s ease var(--delay, 0ms); }
.has-motion [data-reveal="line"].is-in { opacity: 1; }
.has-motion [data-reveal="line"]::before { transform: scaleX(0); transition: transform 1.3s var(--ease) var(--delay, 0ms); }
.has-motion [data-reveal="line"].is-in::before { transform: none; }

[data-illuminate] .lit-word { transition: opacity .35s ease; }
.has-motion [data-illuminate] .lit-word { opacity: .16; }
.has-motion [data-illuminate] .lit-word.is-lit { opacity: 1; }

.has-motion [data-speed] { will-change: transform; }

/* Hero entrance: the panels rise in and the title writes itself on. */
.has-motion .hero__panel { animation: panel-in 1.4s var(--ease) both; }
.has-motion .hero__panel:nth-child(2) { animation-delay: .12s; }
.has-motion .hero__panel:nth-child(3) { animation-delay: .24s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5%); } }
.has-motion .hero__title span {
  display: block;
  animation: write-on 1.8s var(--ease) both;
}
@keyframes write-on {
  from { clip-path: inset(-30% 100% -30% -5%); }
  to { clip-path: inset(-30% -5% -30% -5%); }
}

/* Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .artists__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .detail__sticky { position: static; }
  .detail__actions { max-width: none; }
}

@media (max-width: 760px) {
  .site-header { top: 10px; }
  .site-header__inner {
    grid-template-columns: 1fr auto auto;
    height: 54px;
    padding-left: 20px;
    gap: 14px;
  }
  .nav-toggle { display: block; order: 2; font-size: .95rem; }
  .header-tools { order: 3; }
  .cart-button { padding-left: 4px; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 20px 16px;
    background: var(--paper);
    border: 1px solid rgba(47, 58, 18, .08);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgba(44, 53, 19, .16);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 8px 0;
    font: 400 2.4rem/1.1 var(--serif);
    color: var(--ink);
    border-radius: 0;
    animation: menu-in .7s var(--ease) both;
  }
  .site-nav a:nth-child(2) { animation-delay: 40ms; }
  .site-nav a:nth-child(3) { animation-delay: 80ms; }
  .site-nav a:nth-child(4) { animation-delay: 120ms; }
  .site-nav a:nth-child(5) { animation-delay: 160ms; }
  .site-nav a:nth-child(6) { animation-delay: 200ms; }
  .site-nav a:hover { background: none; }
  .site-nav a[aria-current="page"] { background: none; color: var(--ink); font-style: italic; }

  .statement__body,
  .digital__grid--paintings,
  .steps__list,
  .bio,
  .honors,
  .contact,
  .form__row { grid-template-columns: 1fr; }

  .bio__figure { position: static; max-width: 300px; }

  .filters .field { flex: 1 1 200px; }
  .field--push { margin-left: 0; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 560px) {
  .digital__grid--drawings,
  .artists__grid { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Accounts, dashboard and admin
   ========================================================================== */

[hidden] { display: none !important; }

.page--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.page-title--small { font-size: clamp(3rem, 8vw, 6rem); }
.page-actions { margin-top: 28px; }

.form--account { margin-top: clamp(28px, 4vw, 48px); }
.form__switch { color: var(--ink-soft); }
.form__switch a { text-underline-offset: 4px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; flex: none; }

.field input[type="file"] { border-bottom: 0; padding-inline: 0; }
.field input:disabled { opacity: .45; }
.listing-preview { max-width: 320px; max-height: 300px; border-radius: 8px; }

.dash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(20px, 3vw, 36px); }

.notice {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--wall);
  border-left: 3px solid var(--sold);
}

.manage { margin-top: clamp(48px, 7vw, 96px); }
.manage h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 18px; }
.manage__empty { padding-block: 20px; color: var(--muted); border-top: 1px solid var(--line); }

.manage-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.manage-row__thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--wall); }
.manage-row__thumb svg { width: 100%; height: 100%; }
.manage-row__title { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.1 var(--serif); text-decoration: none; }
.manage-row__title:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.manage-row__meta { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.manage-row__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-row__actions .btn { min-height: 44px; padding-inline: 20px; }

.admin-search { max-width: 480px; margin-bottom: 8px; }

.removal { padding-block: 14px; border-top: 1px solid var(--line); }

.confirm {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.confirm::backdrop { background: rgba(44, 53, 19, .55); }
.confirm h2 { font-size: 2.4rem; }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.confirm .form .btn { justify-self: auto; }

@media (max-width: 760px) {
  .manage-row { grid-template-columns: 72px minmax(0, 1fr); }
  .manage-row__actions { grid-column: 1 / -1; }
}

/* Social sign-in and orders
   ========================================================================== */

.auth-error { margin-top: 24px; }
.social { display: grid; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.social__note { color: var(--muted); font-size: .94rem; }
.social__divider { margin-top: 24px; color: var(--muted); text-align: center; }
.social__divider + .form--account { margin-top: 12px; }

.order__commission { font-weight: 500; }
.order__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.order-summary { margin-top: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); list-style: none; padding: 0; }
.order-summary li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-summary em { display: block; color: var(--muted); font-size: .92rem; }
.order-summary__total { font: 400 1.5rem/1.2 var(--serif); }
.order-summary__note { margin: 14px 0 clamp(24px, 3vw, 36px); color: var(--muted); }

.order { display: grid; gap: 4px; justify-items: start; padding-block: 16px; border-top: 1px solid var(--line); }
.order .btn { min-height: 44px; margin-top: 8px; }
