@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2?v=4xC1Wn_ZZ39e') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2?v=zgk7NB2cEGWO') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --header-height: 108px;
  /* Film grain laid over blurred artwork backdrops (soft-light). */
  --grain-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.14'/%3E%3C/svg%3E");
  --night: #151b1a;
  --night-soft: #202925;
  --canvas: #eee8dc;
  --surface: #f7f3eb;
  --paper: #eee8dc;
  --paper-light: #f7f3eb;
  --stone: #ded5c5;
  --moss: #687b6b;
  --moss-dark: #405449;
  --ember: #b97858;
  --mist: #aeb9b0;
  --ink: #1f2924;
  --muted: #69716b;
  --line: rgb(31 41 36 / 20%);
  /* Stronger than --line, for the edge around gallery photos; follows each palette's ink. */
  --edge-line: color-mix(in srgb, var(--ink) 40%, transparent);
  --action-bg: #1f2924;
  --action-text: #f7f3eb;
  --display: 'Manrope', Arial, Helvetica, sans-serif;
  --sans: 'Manrope', Arial, Helvetica, sans-serif;
  --content-width: 1360px;
  --section-padding: clamp(40px, 6vw, 88px);
  --type-caption: clamp(0.6875rem, 0.67rem + 0.08vw, 0.75rem);
  --type-small: clamp(0.75rem, 0.71rem + 0.18vw, 0.875rem);
  --type-body: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
  --type-lead: clamp(1rem, 0.92rem + 0.45vw, 1.25rem);
  --type-subheading: clamp(1.25rem, 1.08rem + 0.8vw, 1.75rem);
  --type-heading: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --type-display: clamp(1.75rem, 1.15rem + 3vw, 3.5rem);
  --type-hero: clamp(2.5rem, 1.35rem + 5.4vw, 5.75rem);
  --type-contact: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

:root[data-palette="clay"] {
  --night: #2f2c27;
  --night-soft: #44453a;
  --canvas: #e9e1d3;
  --surface: #f5f0e8;
  --paper: #f5f0e8;
  --paper-light: #f5f0e8;
  --stone: #cfc3af;
  --moss: #68705c;
  --moss-dark: #2f2c27;
  --ember: #a8664d;
  --mist: #c1c2b5;
  --ink: #2f2c27;
  --muted: #625d53;
  --line: rgb(47 44 39 / 20%);
  --action-bg: #2f2c27;
  --action-text: #f5f0e8;
}

:root[data-palette="nocturne"] {
  --night: #171817;
  --night-soft: #292b27;
  --canvas: #171817;
  --surface: #292b27;
  --paper: #e4ded1;
  --paper-light: #e4ded1;
  --stone: #292b27;
  --moss: #526257;
  --moss-dark: #526257;
  --ember: #b79a63;
  --mist: #b8baaf;
  --ink: #e4ded1;
  --muted: #b8baaf;
  --line: rgb(228 222 209 / 20%);
  --action-bg: #b79a63;
  --action-text: #171817;
}

:root[data-palette="earth"] {
  --night: #20241f;
  --night-soft: #31483c;
  --canvas: #e2d7c2;
  --surface: #f0e8da;
  --paper: #f5efe2;
  --paper-light: #f5efe2;
  --stone: #c8aa63;
  --moss: #31483c;
  --moss-dark: #31483c;
  --ember: #96553f;
  --mist: #bac5bb;
  --ink: #20241f;
  --muted: #596158;
  --line: rgb(32 36 31 / 20%);
  --action-bg: #31483c;
  --action-text: #f5efe2;
}

:root[data-palette="veil"] {
  --night: #2d312b;
  --night-soft: #3c433c;
  --canvas: #f4f0e6;
  --surface: #d9ddd3;
  --paper: #f4f0e6;
  --paper-light: #f4f0e6;
  --stone: #87928c;
  --moss: #87928c;
  --moss-dark: #2d312b;
  --ember: #a76d63;
  --mist: #c1c8bf;
  --ink: #2d312b;
  --muted: #59625c;
  --line: rgb(45 49 43 / 20%);
  --action-bg: #2d312b;
  --action-text: #f4f0e6;
}

* {
  box-sizing: border-box;
}

/* The admin's hero crop preview frames the home page at one screen size; only the hero shows. */
html.is-hero-preview {
  overflow: hidden;
}

/* Overscrolling past the page edges shows the footer colour; the page itself keeps the body background. */
html {
  background: var(--night);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--night);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: var(--header-height);
  padding: 16px 2.4vw 12px;
  color: var(--paper-light);
  --header-gradient-color: var(--night);
  background: linear-gradient(180deg, var(--header-gradient-color) 0%, color-mix(in srgb, var(--header-gradient-color) 90%, transparent) 22%, color-mix(in srgb, var(--header-gradient-color) 74%, transparent) 46%, color-mix(in srgb, var(--header-gradient-color) 52%, transparent) 68%, color-mix(in srgb, var(--header-gradient-color) 28%, transparent) 86%, transparent 100%);
}

/* Client navigation progress: creeps toward 80% while the next page loads, then fills and fades.
   Reduced motion drops the transitions, so it simply shows and hides. */
.page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: var(--ember);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

.page-loading-bar.is-loading {
  opacity: 1;
  transform: scaleX(0.8);
  transition: transform 8s cubic-bezier(0.1, 0.6, 0.2, 1), opacity 150ms ease;
}

.page-loading-bar.is-done {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 200ms ease, opacity 300ms ease 200ms;
}

.header-brand {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 52px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url('gage-kelsey-logo.png?v=V0EkFzMAkqky') center / contain no-repeat;
  mask: url('gage-kelsey-logo.png?v=V0EkFzMAkqky') center / contain no-repeat;
}

.brand-copy {
  display: grid;
}

.brand-name,
.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-subheading);
  font-weight: 500;
}

.brand-tagline,
.footer-tagline {
  margin: 0;
  font-size: var(--type-small);
}

.site-nav {
  display: flex;
  align-self: end;
  align-items: center;
  justify-self: end;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-link {
  position: relative;
  padding: 8px 0 10px;
  color: inherit;
  font-size: var(--type-body);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: inherit;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* The cart tab: same look as the shop tabs, plus the card stack before the label and the count on the right.
   Lives at the end of the shop tabs and under the product page buttons. */
.cart-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-small);
  text-decoration: none;
  transition: color 180ms ease;
}

.cart-toggle:hover,
.cart-toggle[aria-current] {
  color: var(--ink);
}

.cart-toggle[aria-current] {
  font-weight: 700;
}

.cart-toggle .cart-count {
  margin-left: auto;
}

.cart-flyer {
  position: fixed;
  z-index: 19;
  margin: 0;
  pointer-events: none;
  transform-origin: center;
}

/* Stacked photo cards in the cart. Depth 0 is the top card; offsets scale with card size. */
.stack-card {
  border: 3px solid var(--paper);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgb(31 41 36 / 24%);
  transform: rotate(-2deg);
  transition: transform 260ms ease;
}

.stack-card[data-stack-depth="0"] {
  z-index: 2;
}

.stack-card[data-stack-depth="1"] {
  z-index: 1;
  transform: translate(10%, -5%) rotate(5deg);
}

.stack-card[data-stack-depth="2"] {
  z-index: 0;
  transform: translate(-10%, -7%) rotate(-7deg);
}

.cart-stack {
  position: relative;
  display: block;
  flex: none;
  isolation: isolate;
  width: 28px;
  height: 34px;
}

.cart-stack-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-width: 2px;
  border-radius: 4px;
  background: var(--image-color, var(--stone));
  box-shadow: 0 1px 3px rgb(31 41 36 / 18%);
}

.cart-stack-card.is-empty {
  border: 2px dashed color-mix(in srgb, var(--ink) 60%, transparent);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: none;
}

.cart-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  color: var(--action-text);
  background: var(--action-bg);
  font-size: var(--type-caption);
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.mobile-menu-toggle span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  min-height: clamp(560px, 100svh, 920px);
  overflow: hidden;
  color: var(--paper);
  --hero-overlay-rgb: 21 27 26;
  background: var(--night);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 40px 6vw;
}

.hero h1,
.practice-copy h2,
.commission-copy h2,
.home-contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 1000px;
  font-size: var(--type-hero);
}

.hero-title-break {
  display: block;
  transition: filter 1200ms ease, opacity 1200ms ease, transform 1200ms ease;
}

.hero-media figcaption.is-transitioning {
  opacity: 0;
}

.hero-title-break.is-transitioning,
.hero-summary.is-transitioning {
  filter: blur(12px);
  opacity: 0;
  transform: translateY(4px);
}

.hero h1 em,
.section-heading h2 em,
.practice-copy h2 em,
.commission-copy h2 em {
  color: var(--ember);
  font-style: normal;
  font-weight: 400;
}

.hero-summary:empty {
  display: none;
}

.hero-summary {
  max-width: 380px;
  transition: filter 1200ms ease, opacity 1200ms ease, transform 1200ms ease;
  margin: 34px 0 0;
  color: var(--mist);
  font-size: var(--type-body);
  line-height: 1.7;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 20%;
  min-height: 0;
  margin: 0;
  overflow: visible;
  background: var(--night);
  /* Slide crops are sized in this frame's container units (getHeroCropProperties in render.js). */
  container-type: size;
}

.hero-media::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 -25%;
  --hero-scrim-start: 20%;
  --hero-scrim-span: calc(100% - var(--hero-scrim-start));
  background: linear-gradient(90deg, rgb(var(--hero-overlay-rgb) / 100%) var(--hero-scrim-start), rgb(var(--hero-overlay-rgb) / 76%) calc(var(--hero-scrim-start) + var(--hero-scrim-span) * 0.38), rgb(var(--hero-overlay-rgb) / 24%) calc(var(--hero-scrim-start) + var(--hero-scrim-span) * 0.68), transparent 100%), linear-gradient(0deg, rgb(var(--hero-overlay-rgb) / 62%), transparent 28%);
  content: '';
  opacity: 0;
  transition: background 1400ms ease;
}

.hero.has-hero-artwork .hero-media::before {
  opacity: 1;
}

.hero:not(.has-hero-artwork) .hero-media img,
.hero:not(.has-hero-artwork) .hero-media video,
.hero:not(.has-hero-artwork) .hero-title-break {
  visibility: hidden;
}

/* A slide without a title or summary leaves no gap: the other one centres on its own. */
.hero h1:has(.hero-title-break:empty) {
  display: none;
}

.hero h1:has(.hero-title-break:empty) + .hero-summary {
  margin-top: 0;
}

.hero-media img,
.hero-media video {
  position: absolute;
  /* A slide's crop sizes and shifts the image box (getHeroCropProperties in render.js); without one it covers
     the frame at heroDefaultPosition. */
  top: var(--hero-desktop-top, 0%);
  left: var(--hero-desktop-left, 0%);
  display: block;
  width: var(--hero-desktop-width, 100%);
  max-width: none;
  height: var(--hero-desktop-height, 100%);
  object-fit: cover;
  object-position: 50% 43%;
  opacity: 0;
  transition: opacity 1400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The artwork shows in full colour; the scrim alone keeps the hero text readable. */
.hero-media img.is-active {
  opacity: 1;
}

/* A video covers its poster only once it is actually playing. */
.hero-media video.is-active.is-playing {
  opacity: 1;
}

.hero-media figcaption {
  transition: opacity 1200ms ease;
  position: absolute;
  right: 5vw;
  bottom: 42px;
  z-index: 2;
  width: 210px;
  color: rgb(238 232 220 / 72%);
  font-size: var(--type-caption);
  text-align: right;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  right: 5vw;
  z-index: 3;
  display: flex;
  gap: 8px;
  width: 210px;
  justify-content: flex-end;
}

.hero-dot {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: rgb(238 232 220 / 72%);
  background: transparent;
  opacity: 0.65;
  transition: background-color 1400ms ease, opacity 1400ms ease, transform 1400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-dot.is-active {
  border: 0;
  background: currentColor;
  opacity: 1;
  transform: scale(1.35);
}

/* The whole hero, text included, leads down to the Fine Art gallery. */
.hero-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
}

.hero-link:focus-visible {
  outline-offset: -6px;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  width: 24px;
  height: 42px;
  color: rgb(238 232 220 / 72%);
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-scroll-cue span {
  position: relative;
  display: block;
  width: 24px;
  height: 14px;
  animation: hero-scroll-slide 1.6s ease-in-out infinite;
}

.hero-scroll-cue span::before,
.hero-scroll-cue span::after {
  position: absolute;
  top: 2px;
  width: 15px;
  height: 1px;
  background: currentColor;
  content: '';
}

.hero-scroll-cue span::before {
  right: 50%;
  transform: rotate(35deg);
  transform-origin: right center;
}

.hero-scroll-cue span::after {
  left: 50%;
  transform: rotate(-35deg);
  transform-origin: left center;
}

@keyframes hero-scroll-slide {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(-5px);
  }

  50% {
    opacity: 1;
    transform: translateY(7px);
  }
}

.content-width {
  width: min(calc(100% - 10vw), var(--content-width));
  margin: 0 auto;
}

.home-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  padding-block: var(--section-padding);
}

.intro-statement {
  max-width: 750px;
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-display);
  line-height: 0.98;
}

.intro-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.6;
}

/* Same fixed edge as the Environments gallery: heading and tiles share one edge, up to wide-screen widths. */
.works-section {
  width: min(100%, 1920px);
  padding: var(--section-padding) 22px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2 {
  letter-spacing: normal;
  font-size: var(--type-display);
  text-align: center;
}

#works-title,
#works-title em {
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 12px 16px;
  border: 0;
  color: var(--action-text);
  background: var(--action-bg);
  font-size: var(--type-small);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.text-link span {
  color: var(--ember);
  font-size: var(--type-lead);
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--action-text);
  background: var(--action-bg);
}

.text-link:hover span {
  transform: translate(3px, 3px);
}

.text-link--light {
  border-color: rgb(238 232 220 / 55%);
  color: var(--paper-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 22px;
  aspect-ratio: auto;
  align-items: stretch;
}

.work-feature,
.work-tile {
  display: block;
  min-width: 0;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.work-feature {
  grid-column: auto;
  grid-row: auto;
}

.work-tile--top-right {
  grid-column: auto;
  grid-row: auto;
}

.work-tile--bottom-left {
  grid-column: auto;
  grid-row: auto;
}

.work-tile--bottom-right {
  grid-column: auto;
  grid-row: auto;
}

.work-feature figure,
.work-tile figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: auto;
  margin: 0;
}

.work-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 500ms ease;
}

/* Same hover zoom as the Environments photos. */
.work-feature:hover .work-image img,
.work-tile:hover .work-image img {
  transform: scale(1.02);
}

.work-feature figcaption,
.work-tile figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  color: var(--muted);
  font-size: var(--type-caption);
}

.work-feature figcaption span:first-child,
.work-tile figcaption span:first-child {
  color: var(--ink);
  font-size: var(--type-small);
  font-weight: 700;
}

/* Home tiles get the same hairline as the Environments photos, and a fill in the photo's colour that stays behind when it morphs away. */
.works-grid .work-image {
  background: var(--image-color, var(--stone));
  box-shadow: 0 0 0 1px var(--edge-line);
}

/* The shop tile fills the image square with the action colour; its arrow nudges on hover like the text links. */
.work-tile--shop .work-image {
  display: grid;
  place-items: center;
  color: var(--action-text);
  background: var(--action-bg);
}

.shop-tile-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: 12px;
  font-size: var(--type-subheading);
}

/* Sized from the lead type so the arrow stays put when the label text grows. */
.shop-tile-icon {
  width: calc(var(--type-lead) * 1.2);
  height: calc(var(--type-lead) * 1.2);
  color: var(--ember);
  transition: transform 180ms ease;
}

.work-tile--shop:hover .shop-tile-icon {
  transform: translate(3px, 3px);
}

.practice-section,
.commission-section {
  display: grid;
  grid-template-columns: minmax(0, clamp(8.5rem, 42vw, 33rem)) minmax(0, 1fr);
  min-height: clamp(300px, 36vw, 420px);
  color: var(--paper);
  background: var(--night-soft);
}

.practice-image,
.commission-image {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--stone);
}

.section-photo {
  height: 100%;
  margin: 0;
  background: var(--image-color, var(--stone));
}

.practice-image img,
.commission-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.practice-image img {
  object-position: center 48%;
}

.commission-image img {
  object-position: center 44%;
}

.practice-image:hover img,
.commission-image:hover img {
  transform: scale(1.025);
}

.image-stamp {
  position: absolute;
  right: 26px;
  bottom: 26px;
  padding: 7px 10px;
  border: 1px solid rgb(238 232 220 / 48%);
  color: var(--night);
  background: rgb(255 255 255 / 80%);
  font-size: var(--type-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-copy,
.commission-copy {
  align-self: center;
  min-height: 0;
  min-width: 0;
  width: 100%;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 3vw, 42px);
}

.practice-copy h2,
.commission-copy h2 {
  font-size: var(--type-subheading);
}

.practice-copy p,
.commission-copy p {
  max-width: 380px;
  margin: clamp(14px, 2vw, 24px) 0;
  color: var(--mist);
  font-size: var(--type-body);
  line-height: 1.55;
}

.practice-copy .text-link,
.commission-copy .text-link {
  border: 0;
  color: var(--ink);
  background: var(--surface);
}

.practice-copy .text-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.commission-section {
  grid-template-columns: minmax(0, clamp(7rem, 30vw, 21rem)) minmax(0, 1fr);
  color: var(--ink);
  background: var(--stone);
}

.commission-copy p {
  color: var(--muted);
}

.commission-copy .text-link {
  border: 0;
  color: var(--action-text);
  background: var(--action-bg);
}

.commission-copy .text-link:hover {
  color: var(--action-text);
  background: var(--action-bg);
}

:root[data-palette="nocturne"] .practice-copy .text-link,
:root[data-palette="nocturne"] .practice-copy .text-link:hover,
:root[data-palette="nocturne"] .commission-copy .text-link,
:root[data-palette="nocturne"] .commission-copy .text-link:hover {
  color: var(--action-text);
  background: var(--action-bg);
}

.home-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--section-padding);
  text-align: center;
}

.home-contact h2 {
  font-size: var(--type-contact);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: var(--type-contact);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-email span {
  color: var(--ember);
  font-family: var(--sans);
  font-size: var(--type-lead);
  transition: transform 180ms ease;
}

.contact-email:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.contact-email:hover span {
  transform: translate(4px, 4px);
}

/* Like the header, the footer floats over the page; pages reserve its height as bottom padding. */
body > main {
  padding-bottom: var(--footer-height, 226px);
}

.site-footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 10;
  display: grid;
  grid-template-areas:
    "brand newsletter"
    "bottom bottom";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 30px;
  align-items: center;
  min-height: 170px;
  padding: 28px 5vw;
  color: var(--paper);
  background: var(--night);
}

/* Small print bar: copyright and theme on the left, socials pushed right. */
.footer-bottom {
  grid-area: bottom;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, rgb(255 255 255 / 18%) 25%, rgb(255 255 255 / 18%) 75%, transparent) 1;
}

.site-footer .social-row {
  margin-left: auto;
}

.footer-newsletter {
  grid-area: newsletter;
  display: grid;
  gap: 6px;
  justify-self: end;
  width: min(360px, 100%);
}

.footer-newsletter-title {
  margin: 0;
  font-size: var(--type-small);
  font-weight: 700;
}

/* The field is the panel; the button sits flush against its right edge. */
.newsletter-form {
  display: flex;
  align-items: stretch;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-right: 0;
  border-radius: 0;
  color: inherit;
  background: rgb(255 255 255 / 10%);
  font: inherit;
}

.newsletter-form input::placeholder {
  color: var(--mist);
}

/* Focus recolours the panel edge instead of adding a box outline. */
.newsletter-form input:focus-visible {
  outline: none;
  border-color: var(--ember);
}

.newsletter-submit {
  flex: none;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  color: var(--night);
  background: var(--paper);
  font-size: var(--type-small);
  transition: color 180ms ease, background 180ms ease;
}

.newsletter-submit:hover {
  color: var(--paper);
  background: transparent;
}

.footer-brand {
  grid-area: brand;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
}

.footer-brand-copy {
  min-width: 0;
}

.footer-mark {
  display: block;
  width: 64px;
  height: 52px;
  background: currentColor;
  -webkit-mask: url('gage-kelsey-logo.png?v=V0EkFzMAkqky') center / contain no-repeat;
  mask: url('gage-kelsey-logo.png?v=V0EkFzMAkqky') center / contain no-repeat;
}

.footer-copy {
  margin: 0;
  color: var(--mist);
  font-size: var(--type-small);
  line-height: 1.6;
  text-align: left;
}

.footer-tagline {
  color: var(--mist);
}

.brand-tagline {
  color: inherit;
  font-weight: 500;
}

.palette-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.palette-option {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.palette-option::before {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--mist);
  border-radius: 50%;
  background: conic-gradient(var(--swatch-paper) 0 33.33%, var(--swatch-ink) 33.33% 66.66%, var(--swatch-accent) 66.66% 100%);
  content: '';
}

.palette-option[data-palette="clay"] {
  --swatch-paper: #e9e1d3;
  --swatch-ink: #2f2c27;
  --swatch-accent: #a8664d;
}

.palette-option[data-palette="nocturne"] {
  --swatch-paper: #171817;
  --swatch-ink: #e4ded1;
  --swatch-accent: #b79a63;
}

.palette-option[data-palette="earth"] {
  --swatch-paper: #e2d7c2;
  --swatch-ink: #31483c;
  --swatch-accent: #96553f;
}

.palette-option[data-palette="veil"] {
  --swatch-paper: #d9ddd3;
  --swatch-ink: #2d312b;
  --swatch-accent: #c49c58;
}

.palette-option[aria-pressed="true"]::before {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.social-row {
  display: flex;
  gap: 9px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  color: rgb(174 185 176 / 78%);
  font-size: var(--type-caption);
  text-decoration: none;
  transition: color 180ms ease;
}

.social-icon {
  display: block;
  width: 28px;
  height: 28px;
  background: currentColor;
  opacity: 0.9;
  transition: opacity 180ms ease;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.social-icon--instagram {
  --social-icon: url('instagram-logo.svg?v=W0a1EQFjHDhJ');
}

.social-icon--facebook {
  --social-icon: url('facebook-logo.svg?v=UeNidw-Za3tE');
}

.social-link:hover {
  color: var(--ember);
}

.social-link:hover .social-icon {
  opacity: 1;
}

.site-footer .social-link {
  color: var(--paper);
}

.site-footer .social-icon {
  opacity: 1;
}

.contact-panel .social-link {
  border-color: var(--line);
  color: var(--ink);
}

.page-main {
  min-height: calc(100vh - var(--header-height));
  background: var(--canvas);
}

.portfolio-main {
  background: var(--canvas);
}

.shop-main {
  background: var(--surface);
}

.page-heading-row {
  width: 100%;
  max-width: none;
  padding: 154px 5vw 58px;
  color: var(--paper);
  background-color: var(--night);
  background-image: none;
  background-position: center;
  background-size: cover;
}

.page-heading-row.has-heading-artwork {
  background-color: rgb(var(--page-heading-overlay-rgb) / 100%);
  background-image: linear-gradient(90deg, rgb(var(--page-heading-overlay-rgb) / 100%) 0%, rgb(var(--page-heading-overlay-rgb) / 76%) 38%, rgb(var(--page-heading-overlay-rgb) / 24%) 68%, transparent 100%), var(--page-heading-image);
}

.about-page-heading,
.project-page-heading {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.about-page-heading {
  overflow: visible;
  overflow-x: clip;
}

.about-page-heading:not(.has-heading-artwork) {
  background-color: transparent;
}

.about-page-heading:not(.has-heading-artwork)::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(to bottom, var(--night) 0%, transparent 100%);
  content: '';
}

.page-heading-row.about-page-heading {
  padding-bottom: 88px;
}

body:has(.about-page-heading) .site-header,
body:has(.project-page-heading) .site-header {
  background: transparent;
}

/* Artwork pages sit on the painting's own blurred backdrop, so header and footer need no scrim. */
body:has(.artwork-page) .site-header,
body:has(.artwork-page) .site-footer {
  background: transparent;
}

body:has(.about-page-heading) .brand-copy,
body:has(.about-page-heading) .nav-link,
body:has(.artwork-page) .brand-copy,
body:has(.artwork-page) .nav-link,
body:has(.artwork-page) .footer-brand-copy,
body:has(.artwork-page) .footer-copy {
  text-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

body:has(.about-page-heading) .brand-mark,
body:has(.artwork-page) .brand-mark,
body:has(.artwork-page) .footer-mark,
body:has(.artwork-page) .site-footer .social-link,
body:has(.artwork-page) .palette-switcher {
  filter: drop-shadow(0 1px 5px rgb(0 0 0 / 10%));
}

.about-page-heading.has-heading-artwork {
  background-color: transparent;
  --page-heading-scrim-opacity: 50%;
}

.about-page-heading.has-heading-artwork,
.project-page-heading.has-heading-artwork {
  background-image: none;
}

.about-page-heading.has-heading-artwork::before,
.project-page-heading.has-heading-artwork::before {
  background: var(--page-heading-image) center / cover no-repeat;
  content: '';
  filter: blur(32px);
  inset: -40px;
  position: absolute;
  transform: scale(1.08);
  z-index: 0;
}

.about-page-heading.has-heading-artwork::before {
  filter: blur(32px) saturate(2.7);
}

.about-page-heading.has-heading-artwork::before,
.about-page-heading.has-heading-artwork::after {
  -webkit-mask-image: linear-gradient(to bottom, #fff 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #fff 0%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.about-page-heading.has-heading-artwork::after,
.project-page-heading.has-heading-artwork::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgb(0 0 0 / var(--page-heading-scrim-opacity, 36%)), rgb(0 0 0 / var(--page-heading-scrim-opacity, 36%))),
    var(--grain-texture);
  background-blend-mode: normal, soft-light;
  content: '';
  pointer-events: none;
}

.about-page-heading .page-heading,
.project-page-heading .page-heading {
  position: relative;
  z-index: 2;
}

.about-page-heading .page-heading {
  text-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

.page-heading {
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-hero);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.page-heading::after {
  display: none;
}

.page-note {
  max-width: 190px;
  margin: 18px 0 0 auto;
  color: var(--mist);
  font-size: var(--type-small);
  line-height: 1.55;
  text-align: right;
}

.art-gallery,
.environments-gallery {
  width: min(calc(100% - 10vw), var(--content-width));
  margin: 0 auto;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 48px;
  padding-bottom: 100px;
}

.media-card {
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--image-color, var(--stone));
}

.media-card.tall {
  aspect-ratio: 4 / 5;
}

.media-card.short {
  aspect-ratio: 5 / 4;
}

.media-card img,
.about-photo img,
.portrait-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.media-card:hover img {
  transform: scale(1.02);
}

.media-card-link {
  display: block;
  height: 100%;
}

/* One fixed gap around and between the photos, up to wide-screen widths. */
.environments-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 1920px);
  padding: 22px;
}

/* The Fine Art page keeps the home tiles inside the Environments gallery's edge. */
.fine-art-gallery {
  width: min(100%, 1920px);
  padding: 22px;
}

/* A hairline sets each photo off the page. */
.environments-gallery .media-card {
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px var(--edge-line);
}

.project-content {
  width: min(calc(100% - 10vw), var(--content-width));
  margin: 0 auto;
  padding: 40px 0;
}

.video-section {
  min-width: 0;
}

.video-section .media-subheading {
  margin: 0 0 18px;
  font-size: var(--type-subheading);
  line-height: 1.2;
}

.video-section .local-video {
  margin: 0;
}

/* The live painting video sits on a full-width stone band: video left, heading right, on every screen size. */
.home-video {
  padding: var(--section-padding) 22px;
  background: var(--stone);
}

.home-video .video-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 60px);
  align-items: center;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.home-video .media-subheading {
  order: 2;
  margin: 0;
  font-size: clamp(1.5rem, 5vw, var(--type-display));
  font-weight: 500;
  line-height: 1.02;
}

.home-video .local-video {
  order: 1;
  width: 100%;
  max-height: 480px;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0;
}

.video-placeholder,
.local-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto 58px;
  background: var(--night);
  object-fit: cover;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
}

.video-play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: auto;
  border: 1px solid rgb(238 232 220 / 55%);
  border-radius: 50%;
  color: var(--paper);
  background: transparent;
}

.media-subheading {
  margin: 70px 0 22px;
  font-family: var(--display);
  font-size: var(--type-heading);
  font-weight: 400;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

/* The divider only separates the gallery from content above it. */
.project-gallery:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Each mural or brand is a row: cover photo left, title, details and a button right. */
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
}

.project-row-image {
  display: block;
}

.project-row-image .work-image {
  aspect-ratio: 4 / 3;
  background: var(--image-color, var(--stone));
  box-shadow: 0 0 0 1px var(--edge-line);
}

.project-row-image:hover .work-image img {
  transform: scale(1.02);
}

.project-row-title,
.project-row-place {
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-subheading);
  font-weight: 400;
  line-height: 1.25;
}

.project-row-place {
  color: var(--muted);
}

.project-row-details .add-button {
  margin-top: 14px;
}

/* Two projects side by side on wide screens; tablets and phones list one per line. */
@media (max-width: 980px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* A brand still waiting on its images keeps its place with an empty frame. */
.work-image--placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--type-small);
}

.project-intro {
  max-width: 650px;
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-subheading);
  line-height: 1.35;
}

/* The collaboration steps sit under the brand rows, split off by the same line as the gallery. */
.collab-process {
  display: grid;
  justify-items: start;
  gap: 28px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.collab-heading {
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-heading);
  font-weight: 400;
}

.collab-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collab-step h3 {
  margin: 8px 0 6px;
  font-size: var(--type-small);
  font-weight: 700;
}

.collab-step p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.55;
}

.collab-step-number {
  color: var(--muted);
  font-family: var(--display);
  font-size: var(--type-subheading);
}

.about-content,
.contact-content {
  width: min(calc(100% - 10vw), var(--content-width));
  margin: 0 auto;
  padding: 74px 0 110px;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  column-gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.about-intro {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  align-items: start;
  padding-bottom: 0;
}

.about-photos {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.about-photo-group,
.portrait-slot {
  display: contents;
}

.about-photo,
.portrait-media {
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--image-color, var(--stone));
}

.about-photo--wide {
  max-width: none;
}

.about-copy {
  max-width: none;
  padding-top: 7px;
}

.about-content > .about-section,
.about-list-grid {
  grid-column: 1 / -1;
}

.about-content > .about-section {
  width: 100%;
  max-width: none;
  margin: clamp(56px, 6vw, 90px) 0 0;
}

.about-content > .about-section > * {
  max-width: min(100%, 1200px);
  margin-right: auto;
  margin-left: auto;
}

.about-copy h2,
.about-section h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: var(--type-heading);
  font-weight: 600;
  line-height: 0.95;
}

.about-copy h2:not(:first-child) {
  margin-top: 60px;
}

.about-copy p,
.about-section p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
}

.about-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 0 0;
  border-top: 1px solid var(--line);
}

.list-copy {
  --timeline-label-width: 3.5rem;
  --timeline-node-width: 1.5rem;
  --timeline-gap: 0.75rem;
  --timeline-center: calc(var(--timeline-label-width) + var(--timeline-gap) + (var(--timeline-node-width) / 2));
  position: relative;
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 14px 0 0;
  list-style: none;
}

.list-copy li {
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-label-width) var(--timeline-node-width) minmax(0, 1fr);
  column-gap: var(--timeline-gap);
  align-items: start;
  padding: 16px 0;
}

.list-copy li:not(:last-child)::after {
  position: absolute;
  top: 26px;
  right: auto;
  bottom: -26px;
  left: var(--timeline-center);
  width: 1px;
  background: var(--line);
  content: '';
  transform: translateX(-50%);
}

.list-copy li::before {
  position: absolute;
  top: 22px;
  left: calc(var(--timeline-center) - 4px);
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 2px solid var(--ember);
  border-radius: 50%;
  background: var(--ember);
  content: '';
  z-index: 1;
}

.list-year {
  grid-column: 1;
  padding-top: 2px;
  color: var(--ember);
  font-size: var(--type-small);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.6;
}

.list-detail {
  grid-column: 3;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.list-detail strong {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.4;
}

.list-detail span {
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.5;
}

/* About page map: world-map.svg drawn in the palette's ink, borders as hairlines in the page colour, pins in ember.
   Popups open beside their pin. */
.world-map {
  --map-land: color-mix(in srgb, var(--ink) 16%, transparent);
  --map-border: var(--canvas);
  margin: 34px 0 28px;
}

.world-map-canvas {
  position: relative;
  aspect-ratio: 1000 / 486;
}

.world-map-shape {
  display: block;
  width: 100%;
  height: 100%;
}

/* A 32px target around a small dot, centred on the place; its name sits beside it. */
.map-pin {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.map-pin::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface) 85%, transparent);
  transition: transform 160ms ease, background-color 160ms ease;
}

.map-pin:hover::before,
.map-pin:focus-visible::before,
.map-pin[aria-expanded="true"]::before {
  background: var(--ink);
  transform: scale(1.35);
}

.map-pin:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* The place name beside its dot, on the side the pin sets (render.js); a halo in the page colour keeps it readable
   over land and borders. */
.map-pin-label {
  position: absolute;
  top: 50%;
  left: calc(100% - 6px);
  color: var(--ink);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 3px var(--canvas), 0 0 3px var(--canvas), 0 0 2px var(--canvas);
  white-space: nowrap;
  transform: translateY(-50%);
  transition: color 160ms ease;
}

.map-label--left .map-pin-label {
  right: calc(100% - 6px);
  left: auto;
}

.map-label--above .map-pin-label,
.map-label--below .map-pin-label {
  left: 50%;
  transform: translateX(-50%);
}

.map-label--above .map-pin-label {
  top: auto;
  bottom: calc(100% - 8px);
}

.map-label--below .map-pin-label {
  top: calc(100% - 8px);
}

.map-pin:hover .map-pin-label,
.map-pin[aria-expanded="true"] .map-pin-label {
  color: var(--ember);
}

.map-popup {
  --popup-shift-x: -50%;
  --popup-shift-y: calc(-100% - 22px);
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  z-index: 3;
  width: min(300px, 80vw);
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
  transform: translate(var(--popup-shift-x), var(--popup-shift-y));
}

.map-popup[hidden] {
  display: none;
}

.map-popup--start {
  --popup-shift-x: -24px;
}

.map-popup--end {
  --popup-shift-x: calc(-100% + 24px);
}

.map-popup--below {
  --popup-shift-y: 22px;
}

.map-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.map-popup-close:hover,
.map-popup-close:focus-visible {
  color: var(--ink);
}

.map-popup-close-icon {
  width: 18px;
  height: 18px;
}

.map-popup-title {
  margin: 0 32px 10px 0;
  font-family: var(--display);
  font-size: var(--type-lead);
  font-weight: 600;
  line-height: 1.1;
}

.map-popup-text {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.6;
}

.map-popup-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.map-popup-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--image-color, var(--stone));
}

.map-popup-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Phones: the map keeps a readable size and scrolls sideways (app.js centres it on the pins);
   the popup becomes a sheet along the bottom of the screen. */
@media (max-width: 680px) {
  .world-map {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .world-map-canvas {
    min-width: 640px;
  }

  .map-popup {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    width: auto;
    max-height: 70svh;
    overflow-y: auto;
    transform: none;
  }
}

.about-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  max-width: 1080px;
  margin: 90px auto 0;
}

.about-list-grid .about-section {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.about-list-grid .about-section h2 {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-panel {
  width: min(100%, 960px);
  margin: 0 auto;
}

.contact-intro {
  max-width: 650px;
  margin: 28px 0 50px;
  font-family: var(--display);
  font-size: var(--type-heading);
  line-height: 1.02;
}

/* Native controls like the date picker take the palette accent where the browser allows it. */
.contact-form {
  display: grid;
  gap: 32px;
  accent-color: var(--ember);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--muted);
  font-size: var(--type-small);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  resize: vertical;
}

.form-field textarea {
  min-height: 76px;
}

.form-field select {
  font: inherit;
}

.form-field select option {
  color: var(--ink);
  background: var(--paper);
}

/* Focus recolours the existing underline instead of adding a box outline. */
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-bottom-color: var(--ember);
}

.contact-audience-title {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-lead);
  font-weight: 700;
}

/* Audience chips: radios styled as square buttons, one tap swaps the fields below.
   They share one line and stretch to fill it; narrow screens, too tight for every chip, wrap them. */
.contact-audiences {
  display: flex;
  gap: 8px;
}

.contact-audience {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}

.contact-audience input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.contact-audience span {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-size: var(--type-small);
  transition: color 180ms ease, background 180ms ease;
}

@media (max-width: 820px) {
  .contact-audiences {
    flex-wrap: wrap;
  }
}

.contact-audience input:checked + span {
  color: var(--action-text);
  background: var(--action-bg);
}

.contact-audience input:focus-visible + span {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.contact-audience-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form-details {
  display: grid;
  gap: inherit;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form-details[hidden],
.contact-audience-fields[hidden] {
  display: none;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.contact-page .page-heading-row {
  padding: 154px 5vw 30px;
}

.contact-page .contact-content {
  padding: 32px 0 52px;
}

.contact-page .contact-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 52px);
  width: min(100%, 1160px);
}

/* Like the artwork page: the info column stays put while the form scrolls past. */
.contact-info {
  position: sticky;
  top: 24px;
}

.contact-page .contact-intro {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--type-lead);
  line-height: 1.45;
}

.contact-details {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: var(--type-body);
  font-style: normal;
}

.contact-details a {
  color: var(--ink);
}

.contact-page .contact-details {
  gap: 12px;
  margin-top: 28px;
}

.contact-page .contact-info > .social-row {
  margin-top: 24px;
}

.contact-topics {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.contact-topic h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-lead);
  font-weight: 600;
}

.contact-topic p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

/* The form stretches to the panel height so the divider runs full length. */
.contact-page .contact-form {
  align-self: stretch;
  align-content: start;
  gap: 14px;
  padding-left: clamp(24px, 4vw, 52px);
  border-left: 1px solid var(--line);
}

.contact-page .form-row {
  gap: 20px;
}

.contact-page .form-field {
  gap: 2px;
}

.contact-page .form-field textarea {
  min-height: 40px;
}

@media (max-width: 820px) {
  .contact-page .page-heading-row {
    padding: 138px 7vw 28px;
  }

  .contact-page .contact-content {
    padding: 24px 0 40px;
  }

  .contact-page .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-info {
    position: static;
  }

  .contact-topics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 36px;
  }

  .contact-page .contact-form {
    margin-top: 36px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .contact-page .page-heading-row {
    padding: 112px 7vw 24px;
  }

  .contact-page .contact-content {
    padding: 18px 0 32px;
  }

  .contact-page .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-page .contact-form {
    gap: 12px;
    margin-top: 28px;
  }
}

.submit-button,
.add-button {
  width: max-content;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--action-text);
  background: var(--action-bg);
  font-size: var(--type-small);
  transition: color 180ms ease, background 180ms ease;
}

.submit-button:hover {
  color: var(--ink);
  background: transparent;
}

.add-button {
  border: 0;
}

[data-lucide-icon] {
  display: inline-flex;
  flex: none;
  width: 1em;
  height: 1em;
}

.lucide-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.added-check-icon {
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.4em;
  vertical-align: -0.2em;
}

.form-success {
  display: none;
  margin: -8px 0 0;
  color: var(--moss-dark);
  font-size: var(--type-small);
}

.form-success.visible {
  display: block;
}

.shop-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  width: min(calc(100% - 10vw), var(--content-width));
  margin: 0 auto;
  padding: 60px 0 120px;
}

.shop-sidebar {
  position: sticky;
  top: 24px;
}

.shop-sidebar h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: var(--type-heading);
  font-weight: 600;
}

.shop-tabs {
  display: grid;
}

.shop-tab {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-small);
  text-decoration: none;
  transition: color 180ms ease;
}

.shop-tab:hover,
.shop-tab[aria-current] {
  color: var(--ink);
}

.shop-tab[aria-current] {
  font-weight: 700;
}

.shop-panel[hidden] {
  display: none;
}

.shop-empty {
  color: var(--muted);
  font-size: var(--type-small);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  min-width: 0;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.86;
  overflow: hidden;
  color: var(--paper);
  background: var(--image-color, var(--stone));
  box-shadow: 0 0 0 1px var(--edge-line);
}

.product-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art > span {
  font-size: var(--type-caption);
}

.product-name {
  margin: 10px 0 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--type-lead);
  font-weight: 600;
}

.product-price {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
}

.load-more {
  display: block;
  margin: 48px auto 0;
  padding: 12px 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: var(--type-small);
}

.load-more:hover {
  color: var(--action-text);
  background: var(--action-bg);
}

.product-card-link {
  display: block;
}

.product-card[hidden],
.load-more[hidden] {
  display: none;
}

.add-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

a.add-button {
  display: inline-block;
  text-decoration: none;
}

.product-page {
  padding: 154px 0 120px;
}

.product-main.has-product-backdrop,
.artwork-main {
  --ink: var(--paper-light);
  --muted: rgb(247 243 235 / 72%);
  --line: rgb(247 243 235 / 22%);
  --action-bg: var(--paper-light);
  --action-text: var(--night);
}

.product-main.has-product-backdrop {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--ink);
}

/* Until the backdrop photo loads, artwork pages rest on the palette's darkest tone. */
.artwork-main {
  color: var(--ink);
  background: var(--night);
}

.product-backdrop-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--layer-image) center / cover no-repeat;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0;
  transform: scale(1.3);
  transition: opacity 1400ms ease;
}

.product-backdrop-layer.is-visible {
  opacity: 1;
}

/* A fixed scrim with grain sits above the crossfading photos and below the page, built like the page headings'. */
.product-main.has-product-backdrop::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(0 0 0 / 50%), rgb(0 0 0 / 50%)),
    var(--grain-texture);
  background-blend-mode: normal, soft-light;
  content: '';
  pointer-events: none;
}

.product-main.has-product-backdrop .product-page-option select option {
  color: var(--night);
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--ink);
  font-size: var(--type-small);
  text-decoration: none;
  text-underline-offset: 4px;
}

.product-back:hover,
.product-back:focus-visible {
  text-decoration: underline;
}

.product-back-icon {
  width: 18px;
  height: 18px;
}

.product-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "media info";
  gap: 40px 60px;
  align-items: start;
}

.product-page-media {
  grid-area: media;
  min-width: 0;
}

.product-page-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78svh;
  margin-inline: auto;
}

.product-page-image--empty {
  aspect-ratio: 0.86;
  background: var(--stone);
}

.product-page-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.product-page-thumbnail {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  background: var(--image-color, var(--stone));
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-page-thumbnail.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.product-page-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page-image[hidden],
.product-page-video[hidden] {
  display: none;
}

/* Videos play in the main image spot at full stage width, since they have no size until loaded. */
.product-page-video {
  display: block;
  width: 100%;
  max-height: 78svh;
  background: var(--night);
}

.product-page-main-image.is-showing-video {
  width: 100%;
}

.product-page-thumbnail {
  position: relative;
}

.product-page-thumbnail-play {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  color: #fff;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 70%));
  pointer-events: none;
}

.product-page-info {
  position: sticky;
  top: 24px;
  grid-area: info;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.product-page-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--type-heading);
  font-weight: 600;
  line-height: 1.1;
}

.product-page-price {
  margin: -6px 0 0;
  color: var(--ink);
  font-size: var(--type-lead);
}

/* Original and print share one page: the tabs swap which offer's price, options, buttons and sections show. */
.product-offer-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.product-offer-tab {
  margin-bottom: -1px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: none;
  font: inherit;
  font-size: var(--type-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.product-offer-tab:hover,
.product-offer-tab[aria-pressed="true"] {
  color: var(--ink);
}

.product-offer-tab[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  font-weight: 700;
}

/* Each offer's parts sit straight in the info column's grid. */
.product-offer {
  display: contents;
}

.product-offer[hidden] {
  display: none;
}

.product-page-option {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--type-small);
}

.product-page-option select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.product-page-option-error {
  margin: -10px 0 0;
  color: var(--ember);
  font-size: var(--type-small);
}

.product-page-option-error[hidden] {
  display: none;
}

.product-page-add {
  width: 100%;
}

/* One line above each section and even space inside, so every gap matches. */
.product-page-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-page-section-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 500;
}

.product-page-section-body {
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.7;
}

.product-page-section-body p:last-child {
  margin-bottom: 0;
}

/* On product pages the cart is a compact link sized to its contents, with no line or outline. */
.product-page-info .cart-toggle {
  width: max-content;
  padding: 4px 0;
  border: 0;
  color: var(--ink);
}

.product-page-info .cart-toggle .cart-count {
  margin-left: 4px;
}

.product-page-section-body p {
  margin: 0 0 10px;
}

.product-page-message {
  color: var(--muted);
}

.artwork-page-story {
  display: grid;
  gap: 8px;
}

.artwork-page-story h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The font's own line spacing; Manrope's is about 1.37em, so the collapsed box holds four lines. */
.artwork-story-text {
  max-height: calc(1.37em * 4);
  overflow: hidden;
  color: var(--ink);
  font-size: var(--type-lead);
  line-height: normal;
  transition: max-height 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.artwork-story-text p {
  margin: 0 0 12px;
}

.artwork-story-text.is-collapsed {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.artwork-story-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  font-size: var(--type-small);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.artwork-story-toggle[hidden] {
  display: none;
}

/* Details read as one line split by centered dots, wrapping on narrow screens. */
.artwork-page-details {
  display: flex;
  flex-wrap: wrap;
  margin: -6px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--type-body);
  list-style: none;
}

.artwork-page-details li + li::before {
  margin: 0 0.5em;
  content: '·' / '';
}

.product-page-add--secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

a.product-page-add {
  text-align: center;
}

.artwork-room-view {
  display: grid;
  gap: 8px;
}

.artwork-room-view[hidden] {
  display: none;
}

/* A camera pill floating on the painting's lower corner. Its own dark fill keeps it legible on any painting;
   the painting itself is never dimmed around it. */
.product-page-main-image .artwork-room-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  line-height: normal;
}

.product-page-main-image .room-view-button {
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-color: rgb(247 243 235 / 35%);
  color: var(--paper-light);
  background: rgb(17 18 17 / 72%);
  font-size: var(--type-caption);
}

.product-page-main-image .room-view-icon,
.product-page-main-image [data-room-view-state="preparing"] .room-view-button::before {
  width: 15px;
  height: 15px;
}

.product-page-main-image .room-view-button:hover,
.product-page-main-image .room-view-button:focus-visible {
  border-color: var(--paper-light);
  background: rgb(17 18 17 / 88%);
}

.room-view-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: var(--type-small);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.room-view-button:hover,
.room-view-button:focus-visible {
  border-color: var(--ink);
}

.room-view-icon {
  width: 20px;
  height: 20px;
}

.room-view-button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

.room-view-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* While preparing, a spinner takes the icon's place (same box, so the pill keeps its width). */
[data-room-view-state="preparing"] .room-view-icon {
  display: none;
}

[data-room-view-state="preparing"] .room-view-button::before {
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: room-view-spin 800ms linear infinite;
  content: '';
}

[data-room-view-state="ready"] .room-view-button {
  color: var(--action-text);
  background: var(--action-bg);
}

/* Floating banner for short messages: slides up, dismisses itself or on its close button. */
.site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 18px;
  border-left: 3px solid var(--paper-light);
  color: var(--paper-light);
  background: rgb(17 18 17 / 94%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
  font-size: var(--type-small);
  transform: translateX(-50%);
  animation: site-toast-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-toast--error {
  border-left-color: var(--ember);
}

.site-toast-message {
  margin: 0;
}

.site-toast-close {
  display: inline-flex;
  flex: none;
  padding: 4px;
  border: 0;
  color: inherit;
  background: none;
  opacity: 0.7;
}

.site-toast-close:hover,
.site-toast-close:focus-visible {
  opacity: 1;
}

.site-toast-icon {
  width: 16px;
  height: 16px;
}

@keyframes site-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* Laptop AR popup: a QR code that opens the artwork on a phone. Light in every theme so it scans. */
.room-view-qr {
  width: min(360px, calc(100vw - 32px));
  padding: 36px 32px 32px;
  border: 0;
  color: var(--night);
  background: var(--paper-light);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
  text-align: center;
}

/* The popup takes focus on open, so the close button doesn't start with a focus ring. */
.room-view-qr:focus {
  outline: none;
}

.room-view-qr::backdrop {
  background: rgb(17 18 17 / 70%);
}

.room-view-qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  padding: 6px;
  border: 0;
  color: inherit;
  background: none;
  opacity: 0.7;
}

.room-view-qr-close:hover,
.room-view-qr-close:focus-visible {
  opacity: 1;
}

.room-view-qr-icon {
  width: 20px;
  height: 20px;
}

.room-view-qr-title {
  margin: 0;
  font-size: var(--type-lead);
  font-weight: 700;
}

.room-view-qr-summary {
  margin: 8px 0 24px;
  color: color-mix(in srgb, var(--night) 65%, transparent);
  font-size: var(--type-small);
  line-height: 1.6;
}

/* Dots take the popup's text colour on a transparent background. */
.room-view-qr-code {
  width: 240px;
  margin: 0 auto;
  padding: 16px;
}

.room-view-qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes room-view-spin {
  to {
    transform: rotate(360deg);
  }
}

.artwork-room-viewer {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.artwork-room-viewer[ar-status="session-started"] {
  z-index: 40;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 820px) {
  .product-page {
    padding-top: 112px;
  }

  .product-page-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "info";
  }

  .product-page-info {
    position: static;
  }
}

/* Artwork page: the whole section fills the viewport like the home hero.
   Its own layer above the blurred backdrop stops Safari redrawing the content with the backdrop's fade. */
.artwork-page {
  position: relative;
  z-index: 0;
  will-change: transform;
  --artwork-edge-space: 36px;
  --detail-sequence-space: 0px;
  --artwork-stage-height: calc(100svh - var(--header-height) - var(--artwork-edge-space) * 2 - var(--detail-sequence-space));
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  /* Extra room below so the page doesn't crowd the footer. */
  padding: calc(var(--header-height) + var(--artwork-edge-space)) 0 clamp(120px, 18svh, 220px);
}

.artwork-page .product-back {
  margin-bottom: 0;
}

/* The strip over the stage: previous piece, place in the gallery, next piece.
   The stage gives up its height so the whole piece still fits the first screen. */
.artwork-page:has(.detail-sequence) {
  --detail-sequence-space: 92px;
}

.detail-sequence {
  grid-area: sequence;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-sequence-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

/* Pinned to the outer columns: pieces outside the gallery (wall shots only) have no counter in the middle. */
.detail-sequence-link--previous {
  grid-column: 1;
  justify-self: start;
}

.detail-sequence-link--next {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.detail-sequence-icon {
  flex: none;
  width: 24px;
  height: 24px;
  opacity: 0.75;
  transition: opacity 160ms ease, transform 160ms ease;
}

.detail-sequence-link:hover .detail-sequence-icon,
.detail-sequence-link:focus-visible .detail-sequence-icon {
  opacity: 1;
}

.detail-sequence-link--previous:hover .detail-sequence-icon {
  transform: translateX(-3px);
}

.detail-sequence-link--next:hover .detail-sequence-icon {
  transform: translateX(3px);
}

.detail-sequence-text,
.detail-sequence-position {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* Same small caps as "The Story", in the muted tone so the titles lead. */
.detail-sequence-eyebrow {
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-sequence-title {
  overflow: hidden;
  font-size: var(--type-small);
  text-overflow: ellipsis;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.detail-sequence-link:hover .detail-sequence-title,
.detail-sequence-link:focus-visible .detail-sequence-title {
  text-decoration: underline;
}

.detail-sequence-position {
  margin: 0;
  font-size: var(--type-small);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.artwork-page .product-page-body {
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.3fr);
  grid-template-rows: auto;
  grid-template-areas:
    "sequence sequence"
    "media info";
  gap: 0 clamp(24px, 3vw, 40px);
  align-items: center;
}

.artwork-page .product-page-media {
  position: sticky;
  top: calc(var(--header-height) + var(--artwork-edge-space));
  display: grid;
  gap: 12px;
  align-content: center;
  align-self: start;
  min-height: var(--artwork-stage-height);
}

.artwork-page .product-page-image {
  max-height: calc(var(--artwork-stage-height) - 88px);
}

.artwork-page .product-page-video {
  max-height: calc(var(--artwork-stage-height) - 88px);
}

.artwork-page .product-page-main-image {
  position: relative;
  grid-area: image;
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
}

/* The image and thumbnails stay centered in the column. */
.artwork-page .product-page-media {
  grid-template-columns: fit-content(100%);
  /* The image row keeps one fixed height so the thumbnails never move when switching images. */
  grid-template-rows: calc(var(--artwork-stage-height) - 88px) auto;
  justify-content: center;
  grid-template-areas:
    "image"
    "thumbs";
}

.artwork-page .product-page-thumbnails {
  grid-area: thumbs;
}

.artwork-page .product-page-thumbnails {
  margin-top: 0;
}

/* Compact thumbnails keep the row close to the painting's width. */
.artwork-page .product-page-thumbnail {
  width: 44px;
  height: 44px;
}

.artwork-page .product-page-thumbnails {
  gap: 8px;
}

/* Detail info (artwork, mural, brand, product) always starts at the same height, whatever its length, so every detail page lines up. */
.artwork-page .product-page-info {
  position: static;
  align-self: start;
  padding-top: clamp(32px, 7svh, 80px);
}

/* Action buttons sit side by side, each sized to its label. */
.artwork-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.artwork-page-actions .product-page-add {
  width: max-content;
  padding-inline: 28px;
}

@media (max-width: 820px) {
  .artwork-page .product-page-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "sequence"
      "media"
      "info";
    gap: 28px;
  }

  .artwork-page:has(.detail-sequence) {
    --detail-sequence-space: 0px;
  }

  .detail-sequence {
    margin-bottom: 0;
  }

  .artwork-page .product-page-media {
    position: static;
    min-height: 0;
  }

  .artwork-page .product-page-info {
    padding-top: 0;
  }

  .artwork-page .product-page-media {
    grid-template-rows: 58svh auto;
  }

  .artwork-page .product-page-image {
    max-height: 58svh;
  }

  .artwork-page .product-page-video {
    max-height: 58svh;
  }

}

/* The cart view replaces the product grid when the cart box is picked, like a tab: items left, summary right. */
.shop-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "heading summary"
    "empty summary"
    "items summary";
  gap: 24px clamp(24px, 4vw, 60px);
  align-items: start;
}

.shop-cart[hidden] {
  display: none;
}

.shop-cart .cart-heading {
  grid-area: heading;
}

.shop-cart .cart-empty {
  grid-area: empty;
}

.shop-cart .cart-items {
  grid-area: items;
}

.cart-heading {
  margin: 0;
  font-family: var(--display);
  font-size: var(--type-heading);
  font-weight: 600;
}

.cart-heading span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--type-small);
}

.cart-remove {
  display: inline-grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: var(--type-subheading);
  line-height: 1;
}

.cart-icon {
  width: 1em;
  height: 1em;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
}

.cart-empty a {
  color: var(--ink);
}

.cart-items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 1px solid var(--line);
}

.cart-item-art {
  width: 120px;
  height: 146px;
  overflow: hidden;
  background: var(--image-color, var(--stone));
  box-shadow: 0 0 0 1px var(--edge-line);
}

.cart-item-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name,
.cart-item-price {
  margin: 0;
}

.cart-item-name {
  font-family: var(--display);
  font-size: var(--type-lead);
  line-height: 0.95;
}

.cart-item-option {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-caption);
}

.cart-item-price {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--type-small);
}

/* The summary spans the right column from the "Cart" heading down, so both start level. */
.cart-footer {
  position: sticky;
  top: 24px;
  grid-area: summary;
  display: grid;
  gap: 12px;
}

.cart-footer[hidden] {
  display: none;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 700;
}

.cart-demo-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-caption);
}

.cart-checkout {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}

[data-lightbox-group] img {
  cursor: zoom-in;
}

[data-lightbox-group] [data-action] img {
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* Pinching inside the lightbox zooms the image, never the page behind it. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  touch-action: pan-x pan-y;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  color: #f2efe9;
  background: #000;
}

.lightbox:focus {
  outline: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.lightbox-button[hidden] {
  display: none;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  opacity: 1;
}

.lightbox-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.lightbox-icon {
  width: 28px;
  height: 28px;
}

.lightbox-fullscreen,
.lightbox-close {
  position: absolute;
  top: 20px;
  z-index: 2;
}

.lightbox-fullscreen {
  left: 20px;
}

.lightbox-close {
  right: 20px;
}

.lightbox-close .lightbox-icon {
  width: 36px;
  height: 36px;
}

.lightbox-nav {
  position: relative;
  z-index: 2;
  justify-self: center;
}

.lightbox-nav .lightbox-icon {
  width: 40px;
  height: 40px;
}

.lightbox-nav--previous {
  grid-column: 1;
  grid-row: 1;
}

.lightbox-nav--next {
  grid-column: 3;
  grid-row: 1;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
  gap: 32px;
  height: 100svh;
  min-height: 0;
  margin: 0;
  padding: 88px 0 40px;
}

.lightbox-image {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 220ms ease;
}

.lightbox-image.is-zoomed {
  position: relative;
  z-index: 1;
  cursor: zoom-out;
}

.lightbox-image.is-gesturing {
  transition: none;
}

.lightbox-caption {
  flex: 0 0 auto;
  text-align: center;
}

.lightbox-caption[hidden] {
  display: none;
}

.lightbox-thumbnails {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lightbox-thumbnails[hidden] {
  display: none;
}

.lightbox-thumbnail {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgb(242 239 233 / 40%);
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lightbox-thumbnail.is-active {
  border-color: #f2efe9;
  box-shadow: 0 0 0 1px #f2efe9;
}

.lightbox-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-title {
  margin: 0;
  font-size: var(--type-subheading);
  line-height: 1.2;
}

.lightbox-details {
  margin: 8px 0 0;
  white-space: pre-line;
  color: rgb(242 239 233 / 72%);
  font-size: var(--type-body);
}

@media (max-width: 680px) {
  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .lightbox-fullscreen {
    left: 10px;
  }

  .lightbox-close {
    right: 10px;
  }

  .lightbox-figure {
    gap: 20px;
    padding: 76px 0 28px;
  }

  .lightbox-nav .lightbox-icon {
    width: 30px;
    height: 30px;
  }
}

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

}

@media (min-width: 981px) {
  .practice-copy h2,
  .commission-copy h2 {
    font-size: var(--type-heading);
  }
}

@media (max-width: 980px) {
  .hero-media img,
  .hero-media video {
    top: var(--hero-tablet-top, 0%);
    left: var(--hero-tablet-left, 0%);
    width: var(--hero-tablet-width, 100%);
    height: var(--hero-tablet-height, 100%);
  }

  :root {
    --header-height: 96px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: var(--header-height);
    gap: clamp(20px, 3vw, 40px);
  }

  .page-main {
    min-height: calc(100vh - var(--header-height));
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 5vw;
    left: 5vw;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
  }

  .site-nav.open {
    display: flex;
  }

  .site-header::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgb(0 0 0 / 70%);
    content: '';
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .site-header:has(.site-nav.open)::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 0;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .mobile-menu-toggle {
    display: block;
    justify-self: end;
  }

  .environments-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
    padding: 40px 8vw;
  }

  .home-intro,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading {
    row-gap: 0;
  }

  .intro-note {
    margin: 0;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    aspect-ratio: auto;
    align-items: start;
  }

  .work-feature,
  .work-tile {
    grid-column: auto;
    grid-row: auto;
  }

  .work-feature figure,
  .work-tile figure {
    display: block;
    height: auto;
  }

  .about-intro {
    grid-template-columns: minmax(0, 680px);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 80px;
  }

  .site-header {
    min-height: var(--header-height);
    gap: 12px;
    padding: 10px 4vw;
  }

  .page-main {
    min-height: calc(100vh - var(--header-height));
  }

  .brand-mark {
    height: 44px;
  }

  .brand-name {
    font-size: var(--type-subheading);
  }

  .brand-tagline {
    font-size: var(--type-small);
  }

  .hero-copy {
    min-height: 0;
    padding: 36px 7vw;
  }

  .hero h1 {
    font-size: var(--type-hero);
  }

  .hero-summary {
    margin-top: 28px;
    font-size: var(--type-body);
  }

  .hero-media {
    inset: 0;
  }

  .hero-media::before {
    left: 0;
    --hero-scrim-start: 0%;
  }

  .hero-media img,
  .hero-media video {
    top: var(--hero-phone-top, 0%);
    left: var(--hero-phone-left, 0%);
    width: var(--hero-phone-width, 100%);
    height: var(--hero-phone-height, 100%);
    opacity: 0;
  }

  .hero-media figcaption {
    right: 7vw;
  }

  .hero-dots {
    right: 7vw;
  }

  .content-width,
  .art-gallery,
  .about-content,
  .contact-content,
  .shop-layout {
    width: min(calc(100% - 14vw), var(--content-width));
  }

  .home-intro {
    padding-block: var(--section-padding);
  }

  .intro-statement {
    font-size: var(--type-display);
  }

  .works-section {
    width: min(100%, 1920px);
    padding: var(--section-padding) 16px;
  }

  .works-grid {
    gap: 16px;
  }

  .home-video {
    padding-inline: 16px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2 {
    font-size: var(--type-display);
  }

  .about-intro,
  .about-list-grid,
  .form-row,
  .contact-audience-fields,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  /* minmax(0, …): the phone map's wide canvas scrolls inside it instead of widening the page. */
  .about-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-intro {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 70px;
  }

  .about-photos {
    grid-column: 1;
    grid-row: 2;
  }

  .practice-image .image-stamp {
    right: 12px;
    bottom: 12px;
    padding: 6px 7px;
    font-size: var(--type-caption);
  }

  .home-contact {
    padding-block: var(--section-padding);
  }

  .home-contact h2 {
    font-size: var(--type-contact);
  }

  .contact-email {
    font-size: var(--type-contact);
  }

  .site-footer {
    gap: 28px 20px;
    padding: 28px 7vw;
    grid-template-areas:
      "brand"
      "newsletter"
      "bottom";
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-newsletter {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .social-row {
    order: -1;
    margin-left: 0;
  }

  .footer-mark {
    width: 54px;
    height: 44px;
  }

  .page-heading-row {
    width: 100%;
    padding: clamp(112px, 18vw, 132px) 7vw 40px;
  }

  .page-heading {
    font-size: var(--type-hero);
  }

  .art-gallery,
  .environments-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 30px;
    padding-bottom: 80px;
  }

  .environments-gallery,
  .fine-art-gallery {
    gap: 16px;
    width: 100%;
    padding: 16px;
  }

  .project-content {
    width: min(calc(100% - 14vw), var(--content-width));
    padding-block: 36px;
  }

  .about-photos {
    grid-template-columns: repeat(4, minmax(180px, 72vw));
    gap: 14px;
    margin-bottom: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
  }

  .about-photo,
  .portrait-media {
    scroll-snap-align: start;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .collab-steps {
    grid-template-columns: 1fr 1fr;
  }

  .about-content,
  .contact-content {
    padding-top: 46px;
    padding-bottom: 80px;
  }

  .about-intro {
    gap: 42px;
    padding-bottom: 18px;
  }

  .about-content > .about-section {
    margin-top: 40px;
    padding-top: 32px;
  }

  .about-list-grid {
    margin-top: 70px;
  }

  .contact-intro {
    font-size: var(--type-heading);
  }

  .shop-layout {
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .shop-sidebar {
    position: static;
  }

  .shop-sidebar h2 {
    margin-bottom: 4px;
  }

  /* Tabs become one swipeable row above the grid. */
  .shop-tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .shop-tab {
    flex: none;
    border-bottom: 0;
  }

  .shop-cart {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "heading"
      "empty"
      "items"
      "summary";
  }

  .cart-footer {
    position: static;
  }

  .shop-tabs .cart-toggle {
    flex: none;
    width: max-content;
    margin-left: auto;
    padding: 6px 0;
    border-bottom: 0;
  }

  .products-grid {
    gap: 16px;
  }


}

/* Tile <-> artwork page morph: the image moves and resizes while the rest of the page crossfades. */
::view-transition-group(artwork-morph) {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

::view-transition-old(artwork-morph),
::view-transition-new(artwork-morph) {
  height: 100%;
  object-fit: cover;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 300ms;
}

/* Image reveal: app.js marks each image loaded once fully downloaded. Until then the box shows only the photo's own
   colour (site data imageColors, stone when missing): the half-painted picture is pushed outside its box and clipped. */
.images-reveal img:not(.is-loaded) {
  background-color: var(--image-color, var(--stone));
  object-fit: none;
  object-position: -100000px 0;
}
