/* Arvin Atelier
   Layout: a quiet gallery wall. White walls, light grey mats, works hung on an
   open grid with museum-style wall labels. The paintings carry all the colour;
   the site itself stays white, light grey and near-black. One light theme, by choice. */
:root {
  --bg: #FFFFFF;          /* gallery wall */
  --surface: #F5F5F5;     /* light grey mats behind each work */
  --raw: #F5F5F5;         /* light grey bands: footer, callouts */
  --ink: #1C1C1C;
  --ink-soft: #5C5C5C;
  --line: #E3E3E3;
  --accent: #1C1C1C;      /* buttons and links stay near-black */
  --accent-strong: #000000;
  --on-accent: #FFFFFF;
  --gold: #CFCFCF;        /* fine decorative lines, light grey */
  --gold-text: #6B6B6B;   /* small uppercase labels */
  --sold: #C62828;        /* the gallery red dot */
  --avail: #3B7A4C;
  --ph: rgba(0, 0, 0, 0.055);
  --ph-line: #8C8C8C;
  --weave: transparent;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px -12px rgba(0, 0, 0, .16);
  --sheen: rgba(255, 255, 255, 0.30);

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 2px;
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
/* The name "Arvin" is always set in the heading font, upright, wherever it appears. */
.name { font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 1.1em; }
:is(h1, h2, h3, h4, .wordmark__name, .quote, .intro__text) .name { font-size: 1em; }
/* In uppercase buttons the name keeps its own case, like the wordmark: CONTACT Arvin */
:is(.btn, .nav__cta) .name { text-transform: none; letter-spacing: .02em; font-size: 1.3em; line-height: 1; margin-left: .12em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
.prose { max-width: 66ch; display: grid; gap: 1em; }
.prose h2 { margin-top: 0.6em; font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text); font-weight: 600;
}
.muted { color: var(--ink-soft); }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* Placeholder text: easy to spot, easy to replace */
.ph {
  background: var(--ph);
  box-shadow: inset 0 -1px 0 var(--ph-line);
  text-decoration: none;
  border-radius: 2px;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { display: grid; gap: 10px; min-width: 0; }
.stack { display: grid; gap: 18px; }

/* Raw silk weave for quiet bands */
.weave {
  background-color: var(--raw);
  background-image:
    repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 3px);
}

/* The resist line divider */
.resist { display: block; width: 100%; height: 18px; color: var(--gold); opacity: .85; }
.resist path { fill: none; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font: 600 0.82rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap;
}

/* ── Preview notice ───────────────────────────────────────────────────── */
.preview-bar {
  background: var(--raw); color: var(--ink); border-bottom: 1px solid var(--line);
  font-size: 0.85rem; line-height: 1.45;
}
.preview-bar .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 8px; }
.preview-bar button {
  flex: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 2px;
  font: inherit; font-size: 0.78rem; padding: 3px 10px; cursor: pointer;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.5em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark__name { font-family: var(--font-display); font-style: normal; font-size: 1.7rem; line-height: 1; font-weight: 500; }
.wordmark__suffix { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.wordmark:hover { color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav a.nav__cta { border: 1px solid var(--ink); padding: 8px 16px; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.nav a.nav__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav ul { align-items: center; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font: inherit; font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase;
  min-height: 44px; padding: 0 14px; cursor: pointer; align-items: center; gap: 10px;
}
.menu-toggle__bars { width: 18px; height: 10px; position: relative; display: inline-block; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s ease;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 760px) {
  /* every item stays in the top bar: the name on the first row, the links on the second */
  .site-header .container { flex-wrap: wrap; row-gap: 6px; min-height: 0; padding-block: 12px 10px; }
  .nav { width: 100%; }
  .nav ul { justify-content: space-between; gap: 10px; }
  .nav a { font-size: .9rem; }
}
@media (max-width: 380px) { .nav a { font-size: .84rem; } .nav ul { gap: 6px; } }
/* On phones (upright or sideways) the top bar scrolls away with the page instead of staying on screen */
@media (max-width: 760px), (max-height: 500px) {
  .site-header { position: relative; top: auto; }
}
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__text { display: grid; gap: 22px; }
.hero__text h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.hero__media { display: grid; gap: 14px; justify-items: start; }
.hero__frame { position: relative; background: var(--surface); padding: clamp(14px, 2.4vw, 30px); box-shadow: var(--shadow); max-width: 100%; }
.hero__frame img { width: 100%; max-height: 72vh; object-fit: contain; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__frame img { max-height: none; }
}

/* Silk sheen: light sliding across fabric */
.sheen { position: relative; overflow: hidden; display: block; }
.sheen::after {
  content: ""; position: absolute; inset: -10% -60%;
  background: linear-gradient(105deg, transparent 38%, var(--sheen) 50%, transparent 62%);
  transform: translateX(-60%);
  animation: sheen 11s ease-in-out 1.2s infinite;
  pointer-events: none; mix-blend-mode: soft-light;
}
@keyframes sheen {
  0% { transform: translateX(-60%); }
  45%, 100% { transform: translateX(60%); }
}

/* ── Wall labels and status ───────────────────────────────────────────── */
.label { display: grid; gap: 2px; font-size: 0.92rem; line-height: 1.45; }
.label__title { font-family: var(--font-display); font-style: italic; font-size: 1.22rem; line-height: 1.25; color: var(--ink); }
.label__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink-soft); }
.label__row > span { min-width: 0; }
.label__price { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; letter-spacing: 0.04em; white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--avail); flex: none; }
.status--sold::before { background: var(--sold); }
.status--available { color: var(--avail); }
.status--sold { color: var(--sold); }
.badge {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 4px 8px; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 2px; background: var(--surface);
  white-space: nowrap;
}
.badge--print { border-color: var(--gold); color: var(--gold-text); }
.badge--wearable { border-color: var(--accent); color: var(--accent); }

/* ── Work cards (shop, featured) ──────────────────────────────────────── */
.works { display: grid; gap: clamp(28px, 3.5vw, 48px) clamp(18px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.works--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .works--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .works--4 { grid-template-columns: 1fr; } }
.work { display: grid; gap: 16px; align-content: start; min-width: 0; position: relative; }
.work__mat {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--surface); padding: 9%; text-decoration: none;
  transition: box-shadow .3s ease;
}
.work__mat img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .5s ease; }
.work__mat { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.work__mat--photo { padding: 0; display: block; overflow: hidden; }
.work__mat--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 30%; box-shadow: none; }
.work__mat:hover { box-shadow: var(--shadow); }
.work__mat:hover img { transform: scale(1.015); }
.work__badge { position: absolute; top: 10px; left: 10px; }
.work--sold .work__mat img { filter: saturate(.92); }
.work .label a { color: inherit; text-decoration: none; }
.work .label a:hover .label__title { color: var(--accent); }
.work .label a::after { content: ""; position: absolute; inset: 0; }

/* Placeholder media panels (portraits, studio photos, video) */
.media-ph {
  display: grid; place-items: center; text-align: center; gap: 10px;
  aspect-ratio: 4 / 5; max-width: 100%; padding: 24px;
  border: 1px dashed var(--ph-line); color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5;
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 3px);
}
.media-ph svg { width: 34px; height: 34px; color: var(--gold); }
.media-ph--wide { aspect-ratio: 16 / 9; }
.media-ph--land { aspect-ratio: 3 / 2; }
.media-ph strong { color: var(--ink); font-weight: 600; font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ── Home: why silk, artist, wearable, commission band ────────────────── */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.why__item { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--gold); }
.why__item h3 { font-size: 1.45rem; }
.why__item p { color: var(--ink-soft); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split, .split--flip { grid-template-columns: 1fr; } }

.quote { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.35; color: var(--ink); border-left: 1px solid var(--gold); padding-left: 20px; }

.wear-feature__images { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: start; }
.wear-feature__images a { display: block; overflow: hidden; background: var(--surface); }
.wear-feature__images a:nth-child(2) { margin-top: clamp(24px, 6vw, 72px); }
.wear-feature__images img { width: 100%; aspect-ratio: 864 / 1232; object-fit: cover; transition: transform .6s ease; }
.wear-feature__images a:hover img { transform: scale(1.02); }

.band { text-align: center; }
.band .container { display: grid; gap: 18px; justify-items: center; max-width: 760px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(48px, 6vw, 80px) 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-soft); font-size: 0.85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 6px; }
.contact-list dt { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { margin: 0 0 8px; overflow-wrap: anywhere; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 0.3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch { display: inline-flex; }
.swatch i { width: 12px; height: 12px; border-radius: 50%; display: block; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface); }
.swatch i:first-child { margin-left: 0; }
.form-status { min-height: 1.5em; font-size: 0.95rem; }
.form-status--ok { color: var(--avail); }
.form-status--error { color: var(--sold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel { background: var(--bg); padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); }

.newsletter { display: grid; gap: 12px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter__row input { flex: 1; min-width: 0; }
.newsletter__row .btn { padding-inline: 18px; }
@media (max-width: 400px) { .newsletter__row { flex-direction: column; } }

/* ── Shop ─────────────────────────────────────────────────────────────── */
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .shop { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
@media (max-width: 960px) { .filters { position: static; } }
.filters > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
.filters[open] > summary::after { content: "–"; }
@media (min-width: 961px) { .filters > summary { display: none; } }
.filters__body { display: grid; gap: 26px; padding-top: 20px; }
.filter-group { display: grid; gap: 12px; }
.filter-group > legend, .filter-group > .filter-title { font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin-bottom: 4px; padding: 0; }
.filter-group .chip-set { gap: 6px; }
.filter-group .chip > span { min-height: 36px; padding: 6px 12px; font-size: 0.86rem; }
.shop__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop__bar select { width: auto; min-height: 42px; padding: 8px 12px; }
.shop__bar label { font-size: 0.9rem; color: var(--ink-soft); display: inline-flex; gap: 10px; align-items: center; }
.reset { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; justify-self: start; }
.empty { padding: 48px 0; text-align: center; color: var(--ink-soft); display: grid; gap: 14px; justify-items: center; }

/* ── Artwork page ─────────────────────────────────────────────────────── */
.crumbs { font-size: 0.88rem; color: var(--ink-soft); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: 28px clamp(48px, 6vw, 88px); }
@media (max-width: 900px) { .art { grid-template-columns: 1fr; } }
.art__media { display: grid; gap: 14px; min-width: 0; }
.art__stage {
  position: relative; display: grid; place-items: center; background: var(--surface);
  padding: clamp(14px, 4vw, 48px); border: 0; width: 100%; cursor: zoom-in; color: inherit; font: inherit;
  min-height: 280px;
}
.art__stage img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; }
.art__stage--photo { padding: 0; }
.art__zoom { position: absolute; right: 12px; bottom: 12px; background: var(--bg); color: var(--ink); font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; box-shadow: var(--shadow); }
.thumbs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.thumbs button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; aspect-ratio: 1; overflow: hidden;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.art__caption { font-size: 0.9rem; color: var(--ink-soft); }
.art__info { display: grid; gap: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); min-width: 0; }
@media (max-width: 900px) { .art__info { position: static; } }
.art__info h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.3rem); font-style: italic; font-weight: 400; }
.art__by { color: var(--ink-soft); }
.art__by a { color: var(--ink); }
.art__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.art__price { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.art__buy { display: grid; gap: 12px; padding: 22px 0; border-block: 1px solid var(--line); }
.secure { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); }
.secure svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--avail); }
.buy-note { font-size: 0.92rem; padding: 14px 16px; background: var(--raw); border-left: 2px solid var(--gold); }
.type-note { font-size: 0.92rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; font-size: 0.95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-family: var(--font-display); font-size: 1.25rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.4rem; color: var(--gold-text); flex: none; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-bottom: 22px; display: grid; gap: 12px; max-width: 70ch; }
.accordion ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ── Gallery ──────────────────────────────────────────────────────────── */
.gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.gallery-section { display: grid; gap: 24px; padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.gallery-section:first-of-type { border-top: 0; padding-top: 0; }
.gallery-section header { display: grid; gap: 8px; max-width: 70ch; }
.masonry { columns: 3 300px; column-gap: clamp(18px, 2.4vw, 32px); }
/* Even grid: every picture shown at the same size (used for wearable art) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 32px); align-items: start; }
.tile-grid .tile { margin: 0; }
.tile-grid .tile__open img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: 50% 25%; }
.tile-grid--square .tile__open img { aspect-ratio: 1 / 1; object-position: 50% 50%; }
.tile__title { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ink); }
.tile__type { color: var(--ink-soft); font-size: .85rem; text-align: right; white-space: nowrap; }
.tile { break-inside: avoid; margin: 0 0 clamp(22px, 3vw, 36px); display: grid; gap: 12px; }
.tile__open {
  display: block; width: 100%; padding: clamp(10px, 1.6vw, 18px); border: 0; background: var(--surface);
  cursor: zoom-in; position: relative;
}
.tile__open--photo { padding: 0; }
.tile__open img { width: 100%; }
.tile__open:hover { box-shadow: var(--shadow); }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; }
.tile figcaption a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }
.tile figcaption a:hover { color: var(--accent); }

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  --lb-side: clamp(60px, 7vw, 88px);
  width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.lightbox::backdrop { background: rgba(20, 16, 14, .5); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px; gap: 12px; font-size: 0.88rem; color: var(--ink-soft); }
/* The whole picture always fits on screen, with its details directly underneath (never on top of it). */
.lightbox__figure {
  margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, auto) auto;
  align-content: center; justify-items: center;
  padding: 0 var(--lb-side) calc(env(safe-area-inset-bottom, 0px) + 14px);
}
.lightbox__figure img {
  min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .14));
}
.lightbox__bottom {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 22px;
  padding-top: 18px; text-align: center;
}
.lightbox__caption { max-width: 70ch; font-size: 0.95rem; }
.lightbox__caption strong { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover { border-color: var(--ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.lightbox__nav--next { right: max(8px, env(safe-area-inset-right, 0px)); }
/* Phones: the picture uses the full width and the arrows sit in the top bar (swiping also works). */
@media (max-width: 700px) {
  .lightbox { --lb-side: 12px; }
  .lightbox__nav { top: calc(env(safe-area-inset-top, 0px) + 12px); transform: none; }
  .lightbox__nav--prev { left: calc(50% - 50px); }
  .lightbox__nav--next { right: auto; left: calc(50% + 6px); }
}

/* ── Process, commissions, info ───────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 80px); counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; counter-increment: step; }
.step:nth-child(even) .step__media { order: -1; }
.step__text { display: grid; gap: 14px; min-width: 0; }
.step__text h3::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: .16em; color: var(--gold-text); margin-bottom: 10px; font-weight: 600; }
.studio-note { font-size: 0.95rem; padding: 14px 16px; border-left: 2px solid var(--gold); background: var(--surface); }
.studio-note b { display: block; font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 4px; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } .step:nth-child(even) .step__media { order: 0; } }

.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.glossary div { padding: 18px 0; border-top: 1px solid var(--line); }
.glossary dt { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 700px) { .glossary { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); counter-reset: step; }
.timeline li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--gold); }
.timeline li::before { content: counter(step); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold-text); }
.timeline h3 { font-size: 1.3rem; }
.timeline p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .timeline { grid-template-columns: 1fr; } }

.terms { display: grid; gap: 0; margin: 0; }
.terms div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .terms div { grid-template-columns: 1fr; } }

.faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 5vw, 64px); padding-block: 28px; border-top: 1px solid var(--line); }
.faq-group h2 { font-size: var(--step-2); }
@media (max-width: 860px) { .faq-group { grid-template-columns: 1fr; } }
.faq-group .accordion summary { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.92rem; }

.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.notfound .container { display: grid; gap: 18px; justify-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Custom requests (made noticeable on purpose) ────────────────────── */
.nav a.nav__cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; letter-spacing: 0.04em;
}
.nav a.nav__cta:hover { background: var(--accent-strong); color: var(--bg); border-bottom-color: var(--accent-strong); }
.nav a.nav__cta[aria-current="page"] { border-bottom-color: var(--ink); }
.nav ul { align-items: center; }
@media (max-width: 760px) {
  .nav a.nav__cta { min-height: 36px; padding: 6px 10px; font-size: .74rem; }
}
.band--dark { background: var(--ink); color: #FFFFFF; }
.band--dark .eyebrow { color: #BDBDBD; }
.band--dark .lede { color: #E6E6E6; }
.band--dark .ph { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5); }
.btn--light { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn--light:hover { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.custom-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px);
  border: 1px solid var(--ink); border-left-width: 4px; background: var(--surface);
  margin-block: clamp(20px, 3vw, 32px);
}
.custom-strip__text { display: grid; gap: 6px; flex: 1 1 320px; min-width: 0; }
.custom-strip__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.custom-strip .btn { flex: none; }
.art__info .custom-strip { margin-block: 0; }
.art__info .custom-strip__title { font-size: 1.35rem; }
.mto-note { font-size: 0.93rem; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--ink); }
.chip > span .muted { color: var(--ink-soft); }
.works--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 700px) { .works--2 { grid-template-columns: 1fr; } }

/* ── Brand introduction, artist page chapters and Contact Arvin ────────── */
.intro { padding-block: clamp(40px, 7vw, 96px); }
.intro__text {
  margin: 0 auto; max-width: 30ch; text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.25rem); line-height: 1.4; color: var(--ink);
}
.intro__text--left { margin: 0; text-align: left; max-width: 28ch; }
.prose--lede { font-size: var(--step-1); line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 6vw, 96px); align-items: start; }
.chapter__head { display: grid; gap: 10px; }
.chapter__head h2 { font-size: var(--step-3); }
.chapter .prose { font-size: 1.08rem; line-height: 1.8; }
.chapter-band { background: var(--surface); }
.plans { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: plan; }
.plans li { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); counter-increment: plan; }
.plans li::before { content: counter(plan, decimal-leading-zero); font-size: .78rem; letter-spacing: .16em; color: var(--gold-text); font-weight: 600; }
.plans h3 { font-size: 1.4rem; }
.plans p { color: var(--ink-soft); }
.contact-cta { display: grid; gap: 18px; justify-items: start; max-width: 62ch; }
.contact-cta :is(h1, h2) { font-size: var(--step-3); }
.contact-cta .contact-list { margin: 4px 0; }
.about-intro { align-items: start; }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .intro__text { max-width: 24ch; }
}

/* ── Contact Arvin form (window and FAQ page) ─────────────────────────── */
.contact-form .hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.contact-form__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form__people .cf-name, .contact-form__people .cf-reach { grid-column: 1 / -1; }
.contact-form__people .cf-reach { margin-top: -10px; }
.contact-form__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; align-items: center; }
.contact-form__foot .form-status { grid-column: 1 / -1; min-height: 0; }
.contact-form__foot .form-status:empty { display: none; }
.contact-split { align-items: start; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.panel__title { font-size: var(--step-2); margin-bottom: 20px; }
#contact-form:focus { outline: none; }
/* Anchored sections stop below the sticky header */
[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 96px); }
/* (on phones the top bar scrolls away, so less room is needed) */
@media (max-width: 760px), (max-height: 500px) { [id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 16px); } }
.newsletter-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.contact-dialog {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(22px, 4vw, 40px);
  border: 0; background: var(--bg); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); overflow: auto; overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgba(20, 16, 14, .45); }
.contact-dialog[open] { display: grid; gap: 18px; }
.contact-dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.contact-dialog__head h2 { font-size: var(--step-3); margin-top: 6px; }
.contact-dialog__intro { margin: 0; }
.contact-dialog .form { gap: 18px; }
.contact-dialog textarea { min-height: 104px; }
/* Keep the Send button in view at the bottom of the window */
.contact-dialog .contact-form__foot {
  position: sticky; bottom: calc(-1 * clamp(22px, 4vw, 40px)); z-index: 1;
  margin: 0 calc(-1 * clamp(22px, 4vw, 40px)) calc(-1 * clamp(22px, 4vw, 40px));
  padding: 14px clamp(22px, 4vw, 40px) clamp(18px, 3vw, 28px);
  background: var(--bg); border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .contact-dialog { width: min(760px, calc(100% - 32px)); }
  .contact-dialog .contact-form__people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-dialog .contact-form__people .cf-name { grid-column: auto; }
}
html:has(dialog[open]) { overflow: hidden; }
@media (max-width: 860px) {
  .contact-split, .newsletter-panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-form__people { grid-template-columns: 1fr; }
  .contact-form__foot { grid-template-columns: 1fr; }
  .contact-dialog .contact-form__foot { margin: 0 -16px calc(-1 * (env(safe-area-inset-bottom, 0px) + 24px)); padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); bottom: calc(-1 * (env(safe-area-inset-bottom, 0px) + 24px)); }
  .contact-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); }
}

/* ── Home page: three paintings that fill the screen ───────────────────── */
.wall { --pad: clamp(6px, .6vw, 10px); --head: 73px; background: #E9E9E9; padding: var(--pad); }
.wall__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pad); }
.wall__grid a { display: block; position: relative; overflow: hidden; background: #DADADA; }
/* side by side, exactly as tall as the screen below the top bar; the paintings are cropped to fit */
.wall__grid img { display: block; width: 100%; height: calc(100vh - var(--head) - 2 * var(--pad)); height: calc(100dvh - var(--head) - 2 * var(--pad)); min-height: 280px; object-fit: cover; object-position: 50% 45%; transition: transform .8s ease; }
.wall__grid a:hover img { transform: scale(1.03); }
.wall__grid a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .wall { --head: 94px; } }
/* upright screens (phones, tablets held upright): three bands, one under the other, that together fill the screen */
@media (max-aspect-ratio: 1/1) {
  .wall__grid { grid-template-columns: 1fr; }
  .wall__grid img { height: calc((100vh - var(--head) - 4 * var(--pad)) / 3); height: calc((100dvh - var(--head) - 4 * var(--pad)) / 3); min-height: 150px; object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { .wall__grid img { transition: none; } .wall__grid a:hover img { transform: none; } }
.artist-name { font-size: var(--step-4); font-weight: 500; line-height: 1.05; }
.price-ask { font-size: .82em; }
.intro__sub { margin: 22px auto 0; max-width: 60ch; text-align: center; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.65; }
