/* ============================================================================
   Atlas — public + client stylesheet.

   One deliberate look: a print room after hours. Matte near-black ground with
   no colour cast (prints read true), a single warm brass accent taken from the
   tungsten-lit portrait work, museum-placard caption grammar, photographs at
   reverence scale. All values live in :root so the site can be rethemed here
   without hunting through rules.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* ---- ground ---- */
  --bg:        oklch(14.5% 0 0);
  --bg-raise:  oklch(18% 0 0);
  --bg-high:   oklch(22.5% 0 0);
  --line:      oklch(100% 0 0 / 0.11);
  --line-strong: oklch(100% 0 0 / 0.26);

  /* ---- ink ---- */
  --ink:       oklch(93% 0 0);
  --ink-soft:  oklch(80% 0 0);
  --ink-mute:  oklch(68% 0 0);

  /* ---- voice ---- */
  --brass:      oklch(80% 0.115 84);
  --brass-deep: oklch(70% 0.125 78);
  --danger:     oklch(72% 0.15 25);
  --ok:         oklch(80% 0.1 150);

  /* ---- type ---- */
  --font: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-hero: clamp(2.4rem, 6.5vw, 4.6rem);
  --t-title: clamp(1.9rem, 4vw, 3rem);
  --t-sub: clamp(1.25rem, 2.4vw, 1.6rem);
  --t-body: 1rem;
  --t-fine: 0.855rem;
  --t-cap: 0.72rem;          /* placard meta: caps, tracked */
  --track-cap: 0.17em;
  --track-brand: 0.34em;

  /* ---- rhythm ---- */
  --s1: 0.375rem; --s2: 0.75rem; --s3: 1.25rem; --s4: 2rem;
  --s5: 3.25rem; --s6: 5.25rem; --s7: 8rem;
  --measure: 64ch;
  --page: 1280px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 2px;

  /* ---- z scale ---- */
  --z-lift: 2; --z-nav: 10; --z-veil: 40;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);   /* ease-out-expo-ish */
}

/* ------------------------------------------------------------------ base */

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

html {
  background: var(--bg);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: var(--t-title); }
h2 { font-size: var(--t-sub); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--s3); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}
a:hover { color: var(--brass); text-decoration-color: var(--brass); }

::selection { background: var(--brass); color: oklch(15% 0 0); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

.fine { font-size: var(--t-fine); color: var(--ink-mute); }
.muted { color: var(--ink-mute); }

/* placard meta line — the museum-label voice used under titles */
.cap {
  font-size: var(--t-cap);
  font-weight: 600;
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  color: var(--ink-mute);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: var(--s3); top: -4rem;
  z-index: var(--z-nav);
  background: var(--bg-high); color: var(--ink);
  padding: 0.5rem 1rem; border-radius: var(--radius);
  transition: top 0.15s var(--ease);
}
.skip:focus { top: var(--s3); }

/* ---------------------------------------------------------------- header */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) var(--gutter);
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: var(--track-brand);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  /* optical balance for the tracked final letter */
  margin-right: calc(-1 * var(--track-brand));
}
.brand:hover { color: var(--brass); }

.site-head nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.9rem);
  align-items: baseline;
  flex-wrap: wrap;
}
.site-head nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-head nav a:hover { color: var(--brass); }
.site-head nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.4em;
}
.site-head nav .nav-client { color: var(--ink-mute); }

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: var(--s7);
  padding: var(--s4) var(--gutter) var(--s5);
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-left: auto; margin-right: auto;
  width: 100%;
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  align-items: baseline; justify-content: space-between;
}
.site-foot p { margin: 0; }
.site-foot .foot-brand {
  font-size: var(--t-cap); font-weight: 600;
  letter-spacing: var(--track-cap); text-transform: uppercase;
  color: var(--ink-soft);
}
.site-foot .fine a { color: var(--ink-mute); }
.site-foot .fine a:hover { color: var(--brass); }

/* -------------------------------------------------------------- sections */

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

.page-head { padding: var(--s6) 0 var(--s4); }
.page-head h1 { margin-bottom: var(--s2); }
.page-head .lede {
  font-size: var(--t-sub);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: var(--measure);
  text-wrap: pretty;
  margin: 0;
}

.prose { max-width: var(--measure); text-wrap: pretty; }
.prose p { color: var(--ink-soft); }
.prose p:first-child { color: var(--ink); }

.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: oklch(16% 0 0);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 0.62rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: oklch(14% 0 0); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: transparent; border-color: var(--brass); color: var(--brass); }

.btn-quiet {
  background: transparent; border: 0;
  color: var(--ink-mute); font: inherit; font-size: var(--t-fine);
  cursor: pointer; padding: 0.3rem 0.5rem;
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
}
.btn-quiet:hover { color: var(--brass); }

.btn-danger {
  background: transparent; border-color: var(--danger); color: var(--danger);
}
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: oklch(15% 0 0); }

.actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* ----------------------------------------------------------------- forms */

.field { margin-bottom: var(--s3); max-width: 30rem; }
.field label {
  display: block;
  font-size: var(--t-fine);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  font: inherit;
  width: 100%;
  color: var(--ink);
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  transition: border-color 0.15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:hover, select:hover, textarea:hover { border-color: oklch(100% 0 0 / 0.4); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--brass);
}
input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; accent-color: var(--brass);
  margin: 0 0.5rem 0 0; vertical-align: -0.15rem;
}
textarea { resize: vertical; min-height: 7rem; }

.check { display: flex; align-items: center; font-size: var(--t-fine); color: var(--ink-soft); }
.check input { width: auto; }

.form-status { min-height: 1.5em; color: var(--ink-soft); }
.form-status[data-tone="err"] { color: var(--danger); }
.form-status[data-tone="ok"] { color: var(--ok); }

/* honeypot — visually removed, never display:none */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------------------------------------------------------------- photos */

.ph {
  background-color: var(--bg-raise);
  background-size: cover;
  background-position: center;
}
.ph img {
  width: 100%; height: auto;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.ph img.loading { opacity: 0; }

/* a photograph presented on its own — reverence scale */
.plate { margin: 0 0 var(--s6); }
.plate .ph { display: flex; justify-content: center; background-color: transparent; }
.plate img {
  width: auto;
  max-width: 100%;
  max-height: 88svh;
  background: var(--bg-raise);
}
.plate figcaption {
  margin-top: var(--s2);
  font-size: var(--t-fine);
  color: var(--ink-mute);
  text-align: center;
}
.plate-btn {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}

/* ------------------------------------------------------------------ home */

.hero {
  position: relative;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) var(--gutter) var(--s6);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 82svh;
}
.hero-copy h1 {
  font-size: var(--t-hero);
  font-weight: 250;
  letter-spacing: -0.015em;
  margin-bottom: var(--s3);
}
.hero-copy .lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 44ch;
  text-wrap: pretty;
}
.hero-copy .cap { display: block; margin-bottom: var(--s3); }
.hero-copy .actions { margin-top: var(--s4); }
.hero-art { position: relative; margin: 0; }
.hero-art img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
  object-position: center;
}
/* the photograph dissolves into the page ground */
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg), transparent 22%),
    linear-gradient(to top, var(--bg), transparent 30%),
    linear-gradient(to bottom, var(--bg), transparent 20%);
  pointer-events: none;
}
.hero-art figcaption {
  position: absolute; right: 0; bottom: -1.6rem;
  font-size: var(--t-cap); letter-spacing: var(--track-cap);
  text-transform: uppercase; color: var(--ink-mute);
}

.home-intro {
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
}
.home-intro p {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
  color: var(--ink-soft);
  margin: 0;
}

/* featured collections — exhibition posters */
.feature {
  display: block;
  position: relative;
  margin: 0 0 var(--s5);
  text-decoration: none;
}
.feature .ph { overflow: hidden; }
.feature img {
  width: 100%;
  height: clamp(20rem, 68svh, 42rem);
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease);
}
.feature:hover img { transform: scale(1.015); }
.feature-plq {
  display: flex; align-items: baseline; gap: var(--s3);
  justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  margin-top: var(--s2); padding-top: var(--s2);
}
.feature-plq h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 300; margin: 0;
}
.feature:hover .feature-plq h3 { color: var(--brass); }
.feature-plq .cap { white-space: nowrap; }

/* the full index — a wall list */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { border-top: 1px solid var(--line); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list a {
  display: flex; align-items: baseline; gap: var(--s3);
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  text-decoration: none;
  transition: padding-left 0.25s var(--ease);
}
.index-list a:hover { padding-left: 0.9rem; }
.index-list .t { font-size: 1.05rem; font-weight: 400; }
.index-list a:hover .t { color: var(--brass); }
.index-list .cap { white-space: nowrap; }

/* ------------------------------------------------------------ work index */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
  margin-top: var(--s4);
}
.work-item { text-decoration: none; display: block; }
.work-item.wide { grid-column: 1 / -1; }
.work-item .ph { overflow: hidden; }
.work-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease);
}
.work-item.wide img { aspect-ratio: 21 / 9; }
.work-item:hover img { transform: scale(1.02); }
.work-item .plq {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  margin-top: var(--s2); padding-top: var(--s2);
}
.work-item h2 { font-size: 1.35rem; font-weight: 300; margin: 0; }
.work-item:hover h2 { color: var(--brass); }
.work-item .blurb {
  flex-basis: 100%;
  font-size: var(--t-fine); color: var(--ink-mute); margin: 0;
  text-wrap: pretty;
}

/* -------------------------------------------------------- collection page */

.col-head { padding: var(--s6) 0 var(--s3); }
.col-head h1 { margin-bottom: var(--s2); }
.col-head .cap { display: block; }
.statement {
  max-width: var(--measure);
  color: var(--ink-soft);
  text-wrap: pretty;
  margin: var(--s4) 0 0;
}
.statement p { margin-bottom: 1em; }
.col-photos { padding-top: var(--s6); }

.back-link {
  font-size: var(--t-fine);
  color: var(--ink-mute);
  text-decoration: none;
}
.back-link:hover { color: var(--brass); }

/* ---------------------------------------------------- the great machine */

.machine-stage {
  position: relative;
  padding: var(--s4) var(--gutter) 0;
}
.machine-frame {
  position: relative;
  margin: 0 auto;
  max-width: min(100%, calc(88svh * var(--m-aspect, 1)));
}
.machine-frame > .ph { background: transparent; }
.machine-frame > .ph img { width: 100%; }

.spot {
  position: absolute;
  padding: 0; margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: var(--z-lift);
}
.spot .lift {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  opacity: 0;
  /* --unrot counter-rotates the crop inside rotated hotspots */
  transform: rotate(var(--unrot, 0deg)) scale(1);
  transition: opacity 0.16s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  pointer-events: none;
}
.spot:hover, .spot:focus-visible { z-index: 3; }
.spot:hover .lift, .spot:focus-visible .lift {
  opacity: 1;
  transform: rotate(var(--unrot, 0deg)) scale(1.05);
  box-shadow:
    0 0 0 1px oklch(100% 0 0 / 0.25),
    0 6px 18px oklch(0% 0 0 / 0.65),
    0 0 34px oklch(90% 0.05 84 / 0.28);
  filter: brightness(1.06);
}
.spot:focus-visible { outline-offset: 1px; }

.machine-tools {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s3); flex-wrap: wrap;
  max-width: min(100%, calc(88svh * var(--m-aspect, 1)));
  margin: var(--s2) auto 0;
}

/* small screens: the layout is opt-in and pannable */
.machine-pan { display: contents; }
@media (max-width: 719px) {
  .machine-pan {
    display: block;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .machine-frame { width: 250vw; max-width: none; margin: 0; }
  .machine-stage { padding-left: 0; padding-right: 0; }
  .machine-tools { padding: 0 var(--gutter); }
}

[hidden] { display: none !important; }

/* -------------------------------------------------------------- lightbox */

.lb {
  border: 0; padding: 0; margin: auto;
  width: 100vw; height: 100svh;
  max-width: 100vw; max-height: 100svh;
  background: oklch(8% 0 0 / 0.96);
  color: var(--ink);
  overflow: hidden;
}
.lb::backdrop { background: oklch(8% 0 0 / 0.9); }
.lb figure {
  margin: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(0.75rem, 3vh, 2.5rem);
  gap: var(--s2);
}
.lb .lb-img-wrap {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lb img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  box-shadow: 0 10px 60px oklch(0% 0 0 / 0.6);
  background-color: var(--bg-raise);
  background-size: cover; background-position: center;
}
.lb figcaption {
  flex: none;
  display: flex; gap: var(--s3); align-items: baseline;
  font-size: var(--t-fine); color: var(--ink-soft);
  max-width: var(--measure); text-align: center;
}
.lb .lb-count { color: var(--ink-mute); white-space: nowrap; letter-spacing: 0.1em; }

.lb-btn {
  position: absolute;
  background: oklch(20% 0 0 / 0.75);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  width: 2.75rem; height: 2.75rem;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lb-btn:hover { border-color: var(--brass); color: var(--brass); }
.lb-close { top: clamp(0.5rem, 2vh, 1.5rem); right: clamp(0.5rem, 2vw, 1.5rem); }
.lb-prev { left: clamp(0.4rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.4rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) {
  .lb-prev, .lb-next { top: auto; bottom: 4.5rem; transform: none; }
}

/* --------------------------------------------------------------- pricing */

.rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 var(--s5);
  margin: var(--s4) 0 var(--s6);
}
.rate {
  border-top: 1px solid var(--line-strong);
  padding: var(--s3) 0;
}
.rate h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: 0.01em; margin-bottom: var(--s2); }
.rate-num {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 250;
  color: var(--brass);
  margin: 0 0 var(--s1);
}
.rate-num .from { font-size: var(--t-fine); font-weight: 400; color: var(--ink-mute); letter-spacing: 0.05em; }
.rate-inc { font-size: var(--t-fine); color: var(--ink-soft); margin-bottom: var(--s2); }
.rate p:last-of-type { color: var(--ink-mute); font-size: var(--t-fine); text-wrap: pretty; }

.estimator {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 58rem;
}
.estimator h2 { font-weight: 300; }
.est-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--s2) var(--s3);
}
.est-grid .field { margin-bottom: 0; max-width: none; }
.est-grid input, .est-grid select { background: var(--bg-high); }
.est-out { display: block; margin-top: var(--s4); min-height: 3rem; }
.est-total {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 250;
  color: var(--brass);
  letter-spacing: -0.01em;
}
.est-total span { color: var(--ink-mute); margin: 0 0.15em; }
.est-quote { font-size: var(--t-sub); font-weight: 300; margin: 0 0 var(--s1); }
.est-lines {
  list-style: none; margin: var(--s3) 0; padding: 0;
  max-width: 30rem;
}
.est-lines li {
  display: flex; justify-content: space-between; gap: var(--s3);
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-fine);
  color: var(--ink-soft);
}
.est-lines b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.estimator .actions { margin-top: var(--s3); }

/* --------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s5) var(--s6);
  align-items: start;
}
.contact-alt {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s3);
}
.contact-alt p { margin-bottom: var(--s2); }
.big-link { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300; overflow-wrap: anywhere; }

/* ----------------------------------------------------------- client area */

.auth-panels { max-width: 34rem; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: var(--s3);
}
.panel h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: var(--s2); }
.panel .fine { text-wrap: pretty; }
.panel-sub { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.panel input, .panel textarea, .panel select { background: var(--bg-high); }

details.panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
}
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::before { content: "+"; margin-right: 0.6rem; color: var(--ink-mute); }
details[open].panel summary::before { content: "–"; }
details[open].panel summary { margin-bottom: var(--s3); color: var(--ink); }

.chip {
  display: inline-block;
  font-size: var(--t-cap);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip[data-tone="locked"] { color: var(--brass); border-color: var(--brass); }
.chip[data-tone="ok"] { color: var(--ok); border-color: var(--ok); }
.chip[data-tone="warn"] { color: var(--danger); border-color: var(--danger); }

/* gallery list */
.gal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: var(--s4);
  margin-top: var(--s4);
}
.gal-card { text-decoration: none; display: block; }
.gal-card .ph { overflow: hidden; background: var(--bg-raise); }
.gal-card img, .gal-card .no-cover {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
}
.gal-card .no-cover {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-size: var(--t-cap);
  letter-spacing: var(--track-cap); text-transform: uppercase;
}
.gal-card .plq {
  border-top: 1px solid var(--line-strong);
  margin-top: var(--s2); padding-top: var(--s2);
  display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline;
}
.gal-card h2 { font-size: 1.15rem; font-weight: 400; margin: 0; }
.gal-card:hover h2 { color: var(--brass); }
.gal-card .fine { margin: 0.25rem 0 0; }

/* gallery view */
.gal-head { padding: var(--s5) 0 var(--s3); }
.gal-head .cap { display: block; margin-bottom: var(--s2); }
.gal-head h1 { margin-bottom: var(--s2); }
.gal-status-row {
  display: flex; gap: var(--s2) var(--s3); align-items: center; flex-wrap: wrap;
  margin-top: var(--s2);
}
.gal-msg {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: var(--radius);
  padding: var(--s3);
  max-width: var(--measure);
  color: var(--ink-soft);
  margin: var(--s3) 0 0;
  text-wrap: pretty;
}

.pay-band {
  border: 1px solid oklch(80% 0.115 84 / 0.45);
  background: oklch(80% 0.115 84 / 0.07);
  border-radius: var(--radius);
  padding: var(--s3);
  margin: var(--s3) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  align-items: center; justify-content: space-between;
  max-width: 58rem;
}
.pay-band .amount { font-size: 1.6rem; font-weight: 300; color: var(--brass); }
.pay-band p { margin: 0; }

.proofs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.proof { position: relative; }
.proof .ph { overflow: hidden; }
.proof img { width: 100%; height: auto; cursor: zoom-in; }
.proof-bar {
  display: flex; align-items: center; gap: var(--s1);
  padding-top: 0.4rem;
  font-size: var(--t-fine); color: var(--ink-mute);
}
.proof-bar .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.heart {
  background: none; border: 0; cursor: pointer;
  font-size: 1.15rem; line-height: 1;
  color: var(--ink-mute);
  padding: 0.25rem 0.4rem;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.heart:hover { color: var(--brass); transform: scale(1.12); }
.heart[aria-pressed="true"] { color: var(--brass); }

.dl-link { color: var(--ink-mute); text-decoration: none; font-size: 1.05rem; padding: 0.25rem 0.4rem; }
.dl-link:hover { color: var(--brass); }
.dl-done { color: var(--ok); }

.note-row { padding-top: 0.3rem; }
.note-row textarea { min-height: 2.4rem; font-size: var(--t-fine); background: var(--bg-raise); }
.note-row .actions { margin-top: 0.3rem; gap: var(--s1); }

.selection-meter { font-variant-numeric: tabular-nums; }

/* account */
.keys-list { list-style: none; margin: 0; padding: 0; }
.keys-list li {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.keys-list li:last-child { border-bottom: 1px solid var(--line); }
.keys-list .kid { font-size: var(--t-fine); color: var(--ink-soft); overflow-wrap: anywhere; }

/* --------------------------------------------------------- misc states */

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-mute);
  padding: var(--s5) var(--s3);
  text-align: center;
  max-width: 40rem;
}

.spinner { color: var(--ink-mute); font-size: var(--t-fine); letter-spacing: 0.1em; text-transform: uppercase; }

noscript .empty { margin-top: var(--s4); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: var(--s3); }
  .hero-art { order: -1; }
  .hero-art img { max-height: 58svh; width: 100%; object-fit: cover; }
  .hero-art figcaption { position: static; margin-top: 0.5rem; text-align: right; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  .work-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .work-item img, .work-item.wide img { aspect-ratio: 3 / 2; }
  .rates { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- motion policy */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .feature:hover img, .work-item:hover img { transform: none; }
  .spot:hover .lift, .spot:focus-visible .lift {
    transform: rotate(var(--unrot, 0deg));
  }
  .heart:hover { transform: none; }
}
