/* ─────────────────────────────────────────────────────────────────────────────
   Design B · "Guld & bläck"
   A dimly lit gallery: ink-navy walls, warm paper text, gold-leaf accents.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0f17;
  --bg-2: #0f141e;
  --wall: #121925;
  --wall-hi: #19222f;
  --text: #efe7da;
  --soft: #e4ddd1;
  --muted: #bfb8aa;
  --line: rgba(226, 201, 148, 0.15);
  --line-strong: rgba(226, 201, 148, 0.34);
  --gold: #c8a265;
  --gold-hi: #ecd7a6;
  --gold-lo: #8f6b37;
  --copper: #b8764a;
  --red: #d4483c;
  --gilt: linear-gradient(105deg, #9a7340 0%, #ecd7a6 34%, #c8a265 54%, #f4e6c3 74%, #a77d45 100%);
  --hairline: linear-gradient(90deg, transparent, var(--gold-lo) 18%, var(--gold-hi) 50%, var(--gold-lo) 82%, transparent);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;   /* headings and painting titles */
  --serif-text: "Cormorant Garamond", Georgia, serif;          /* body text (weight 500: it is delicate) */
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --nav-h: 76px;
  --space: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Light text on dark: regular weight, a little larger and airier, and default font smoothing
     (antialiased smoothing makes light-on-dark text noticeably thinner on macOS). */
  font: 400 1.125rem/1.75 var(--sans);
  letter-spacing: 0.005em;
  overflow-x: clip;
}
/* A whisper of film grain, so the dark never feels flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(200, 162, 101, 0.4); color: #fff; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 2px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px; background: var(--gold-hi); color: var(--bg);
  text-decoration: none; font-weight: 500; transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* ── Type ─────────────────────────────────────────────────────────────────── */

.gilt {
  background: var(--gilt);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 500 0.72rem/1.4 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gilt); flex: none; }
.h2 {
  font: 400 clamp(2.3rem, 5.2vw, 4rem)/1.04 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-top: 18px;
}
.rule { height: 1px; background: var(--hairline); border: 0; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  font: 500 0.78rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-align: center;
  text-decoration: none; border-radius: 0; cursor: pointer;
  transition: background-position 0.9s var(--ease), color 0.4s, border-color 0.4s, box-shadow 0.5s, transform 0.5s var(--ease);
}
.btn--gold {
  color: #1b150c;
  background: var(--gilt);
  background-size: 220% 100%;
  background-position: 0% 0;
  border: 0;
  box-shadow: 0 10px 30px -12px rgba(200, 162, 101, 0.55);
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 16px 40px -14px rgba(236, 215, 166, 0.7); transform: translateY(-2px); }
.btn--ghost { color: var(--gold-hi); border: 1px solid var(--line-strong); background: rgba(11, 15, 23, 0.25); }
.btn--ghost:hover { border-color: var(--gold-hi); background: rgba(200, 162, 101, 0.08); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.round {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--gold-hi);
  cursor: pointer; transition: border-color 0.4s, background 0.4s, opacity 0.4s;
}
.round:hover:not(:disabled) { border-color: var(--gold-hi); background: rgba(200, 162, 101, 0.1); }
.round:disabled { opacity: 0.3; cursor: default; }
.round svg { width: 18px; height: 18px; }

/* ── Status dots (gallery convention: red dot = sold) ─────────────────────── */

.status {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 0.7rem/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft);
}
.status i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status--available i { border: 1.5px solid var(--gold); box-shadow: 0 0 10px rgba(236, 215, 166, 0.35); }
.status--reserved i { background: linear-gradient(90deg, var(--copper) 50%, transparent 50%); border: 1.5px solid var(--copper); }
.status--sold i { background: var(--red); box-shadow: 0 0 10px rgba(212, 72, 60, 0.55); }

/* ── The painting, cropped from its photo ─────────────────────────────────── */

.art { position: relative; display: block; overflow: hidden; aspect-ratio: var(--r); background: var(--wall-hi); }
.art img { position: absolute; max-width: none; }
.art--full img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Navigation ───────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.5s, border-color 0.5s;
}
.nav--solid { background: rgba(11, 15, 23, 0.82); border-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 2; }
.brand__mono {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font: italic 400 0.9rem/1 var(--serif); color: var(--gold-hi); letter-spacing: 0.02em;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.brand:hover .brand__mono { border-color: var(--gold-hi); box-shadow: 0 0 18px rgba(236, 215, 166, 0.25); }
.brand__name { font: 400 1.14rem/1 var(--serif); letter-spacing: 0.02em; white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.nav__links a {
  position: relative; display: block; padding: 10px 0;
  font: 400 0.76rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--soft); text-decoration: none; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gilt); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current], .nav__links a.is-section { color: var(--gold-hi); }
.nav__links a:hover::after, .nav__links a[aria-current]::after, .nav__links a.is-section::after { transform: scaleX(1); }

.lang { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font: 500 0.74rem/1 var(--sans); letter-spacing: 0.16em; }
.lang button {
  min-width: 36px; min-height: 36px; padding: 0 6px; background: none; border: 0; cursor: pointer;
  color: var(--muted); letter-spacing: inherit; transition: color 0.3s;
}
.lang button:hover { color: var(--text); }
.lang button.is-active { color: var(--gold-hi); }

.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px; position: relative; z-index: 2;
    width: 46px; height: 46px; margin-right: -8px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 24px; height: 1px; background: var(--gold-hi); transition: transform 0.5s var(--ease); }
  .nav--open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav--open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* backdrop-filter would make the overlay below position against the bar, not the screen */
  .nav--open { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-color: transparent; }

  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 48px;
    padding: var(--nav-h) var(--gutter) 40px;
    background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(200, 162, 101, 0.1), transparent 70%), var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
  }
  .nav--open .nav__menu { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__links { flex-direction: column; align-items: center; gap: 8px; }
  .nav__links a { font: italic 400 2.2rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; padding: 8px 4px; }
  .lang { font-size: 0.9rem; }
  .lang button { min-width: 48px; min-height: 48px; }
}

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */

html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  --hero-h: clamp(250px, 50svh, 470px);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 96px;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero__bg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.hero__bg-slide.is-active { opacity: 1; }
.hero__bg-slide .art {
  position: absolute; inset: -12%; aspect-ratio: auto; background: none;
  filter: blur(42px) saturate(1.3) brightness(0.5);
  animation: kenburns 28s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 72% 46%, transparent 0%, rgba(11, 15, 23, 0.4) 55%, rgba(11, 15, 23, 0.9) 100%),
    linear-gradient(180deg, rgba(11, 15, 23, 0.7) 0%, transparent 26%, transparent 70%, var(--bg) 100%);
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__kicker { flex-wrap: wrap; row-gap: 6px; }
.hero__loc::before { content: "·"; margin-right: 14px; }
.hero__name {
  margin-top: 28px;
  font: 400 clamp(3.1rem, 9.2vw, 8.4rem)/0.94 var(--serif);
  letter-spacing: -0.02em;
}
.hero__name span { display: block; }
.hero__name .gilt { font-style: italic; padding: 0.04em 0.1em 0.12em 0; margin-left: 0.04em; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.hero__tag { margin-top: 26px; max-width: 30ch; font: italic 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.4 var(--serif-text); color: var(--soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero__stage { position: relative; width: 100%; display: grid; place-items: center; min-height: var(--hero-h); }
.hero__stage::before {
  content: ""; position: absolute; inset: -30% -20%; pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 42%, rgba(236, 215, 166, 0.16), transparent 70%);
}
.hero__piece {
  grid-area: 1 / 1; width: 100%; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: scale(0.97);
  transition: opacity 1.6s var(--ease), transform 1.8s var(--ease), visibility 0s 1.6s;
}
.hero__piece.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hero__piece .art {
  width: min(calc(var(--hero-h) * var(--r)), 100%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(236, 215, 166, 0.12), 0 0 80px -10px rgba(236, 215, 166, 0.14);
}
.hero__piece.is-active .art img { animation: drift 16s ease-in-out infinite alternate; }

.hero__meta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hero__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; font: 400 0.95rem/1.4 var(--sans); color: var(--soft); }
.hero__caption.swap { animation: fadeUp 1s var(--ease); }
.hero__caption a { text-decoration: none; }
.hero__caption a:hover em { color: var(--gold-hi); }
.hero__caption em { font: italic 500 1.2rem/1 var(--serif); transition: color 0.3s; }
.hero__no { font: 500 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero__dots { display: flex; gap: 4px; }
.hero__dot { width: 40px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--line-strong); transition: background 0.4s, height 0.4s; }
.hero__dot[aria-current="true"]::before { background: var(--gilt); height: 2px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 0.64rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.hero__scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--gold-hi), transparent); transform-origin: top; animation: scrollcue 2.6s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  .hero { --hero-h: clamp(220px, 40svh, 380px); padding-bottom: 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .hero__name { margin-top: 20px; }
  .hero__scroll { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section { padding-block: var(--space); position: relative; }

.intro__in { max-width: 920px; }
.intro__text {
  margin-top: 30px;
  font: 500 clamp(1.6rem, 3.1vw, 2.5rem)/1.36 var(--serif-text);
  text-wrap: pretty;
}
.intro__text::first-letter { font-style: italic; color: var(--gold-hi); }

/* Featured: works hung side by side at eye level, scroll-snap strip */
.works { padding-top: 0; }
.strip-nav { display: flex; gap: 10px; }
.strip-nav[hidden] { display: none; }
.strip {
  --art-h: clamp(240px, 46vh, 430px);
  --wall-pad: clamp(24px, 4vw, 56px);
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 40px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 6px var(--edge) 28px;
  scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent;
}
.strip:focus-visible { outline-offset: -2px; }
.piece { position: relative; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 22px; }
.piece__wall {
  position: relative; display: grid; place-items: center; padding: var(--wall-pad);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236, 215, 166, 0.13), transparent 70%),
    linear-gradient(180deg, var(--wall-hi), var(--wall));
  border: 1px solid var(--line);
  transition: border-color 0.6s;
}
.piece__wall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(236, 215, 166, 0.12), transparent 70%);
}
.piece .art {
  width: min(calc(var(--art-h) * var(--r)), calc(100vw - 2 * var(--gutter) - 2 * var(--wall-pad)));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(236, 215, 166, 0.1);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}
.piece__no {
  position: absolute; top: 16px; left: 18px;
  font: 500 0.68rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.piece:hover .piece__wall, .piece:focus-within .piece__wall { border-color: var(--line-strong); }
.piece:hover .piece__wall::after, .piece:focus-within .piece__wall::after { opacity: 1; }
.piece:hover .art, .piece:focus-within .art {
  transform: translateY(-6px);
  box-shadow: 0 44px 70px -26px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(236, 215, 166, 0.22), 0 0 60px -6px rgba(236, 215, 166, 0.22);
}

/* Museum wall label */
.label { width: 0; min-width: 100%; display: grid; gap: 8px; padding-left: 2px; }
.label__title { font: 500 1.35rem/1.25 var(--serif); }
.label__title a { text-decoration: none; }
.label__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.label__title em { font-style: italic; }
.label__meta { font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.label .status { margin-top: 4px; }

.piece--end {
  align-self: stretch; justify-content: center; align-items: flex-start; gap: 14px;
  width: clamp(240px, 26vw, 300px); min-height: calc(var(--art-h) + 2 * var(--wall-pad));
  padding: 36px 32px; text-decoration: none;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(200, 162, 101, 0.08), transparent 60%);
  transition: border-color 0.5s, background 0.5s;
}
.piece--end:hover { border-color: var(--gold-hi); }
.piece__end-t { font: italic 500 2rem/1.1 var(--serif); }
.piece__end-s { font-size: 0.9rem; color: var(--muted); }
.piece__end-arrow { font: 400 1.6rem/1 var(--serif); color: var(--gold-hi); transition: transform 0.6s var(--ease); }
.piece--end:hover .piece__end-arrow { transform: translateX(8px); }

/* Quote */
.quote { padding-block: var(--space); text-align: center; position: relative; overflow: hidden; }
.quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200, 162, 101, 0.08), transparent 70%);
}
.quote::after { content: ""; position: absolute; left: 50%; top: 0; width: min(640px, 80%); height: 1px; transform: translateX(-50%); background: var(--hairline); }
.quote__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.quote__mark { font: 400 clamp(7rem, 16vw, 12rem)/0.7 var(--serif); height: 0.5em; margin-bottom: 0.2em; }
.quote__text p {
  max-width: 24ch; font: italic 500 clamp(1.9rem, 4.6vw, 3.6rem)/1.24 var(--serif);
  text-wrap: balance; letter-spacing: -0.01em;
}
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 40px; font: 500 0.74rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.quote__by::before, .quote__by::after { content: ""; width: 28px; height: 1px; background: var(--gilt); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.step__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); background: var(--wall); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; filter: saturate(0.92); transition: filter 0.8s; }
.step:hover .step__img img { filter: saturate(1.05); }
.step__num { margin-top: 28px; font: italic 400 2.6rem/1 var(--serif); }
.step__title { margin-top: 14px; font: 500 1.5rem/1.2 var(--serif); }
.step__text { margin-top: 12px; color: var(--muted); max-width: 34ch; }

/* About */
.about { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__portrait { position: relative; padding: 0 18px 18px 0; }
.about__portrait::before { content: ""; position: absolute; inset: 18px 0 0 18px; border: 1px solid var(--line-strong); pointer-events: none; }
.about__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wall); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.14); will-change: transform; }
.about__body { display: grid; gap: 20px; margin-top: 32px; }
.about__body p { color: var(--soft); max-width: 58ch; }
.about__body p:first-child { font: 500 clamp(1.45rem, 2.3vw, 1.75rem)/1.42 var(--serif-text); color: var(--text); }
.signature { margin-top: 36px; font: italic 400 3rem/1 var(--serif); }

/* Contact */
.contact { text-align: center; }
.contact__in { display: flex; flex-direction: column; align-items: center; padding-block: clamp(56px, 8vw, 96px); position: relative; }
.contact__in::before, .contact__in::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--hairline); }
.contact__in::before { top: 0; }
.contact__in::after { bottom: 0; }
.contact .kicker::after { content: ""; width: 34px; height: 1px; background: var(--gilt); }
.contact__lede { max-width: 52ch; margin-top: 22px; color: var(--soft); }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.foot { padding: 72px 0 36px; border-top: 1px solid var(--line); margin-top: var(--space); }
.page-home .foot { margin-top: 0; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__name { font: 400 1.6rem/1.1 var(--serif); }
.foot__tag { margin-top: 10px; font: italic 500 1.2rem/1.4 var(--serif-text); color: var(--muted); }
.foot__nav, .foot__social { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot__nav a, .foot__social a { padding: 4px 0; color: var(--soft); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.foot__nav a:hover, .foot__social a:hover { color: var(--gold-hi); }
.foot__social span { color: var(--gold); }
.foot__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.foot__base .lang { margin-left: -6px; }

/* ── Shop: the catalogue ──────────────────────────────────────────────────── */

.page-head { padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 0; position: relative; }
.page-head::before {
  content: ""; position: absolute; inset: 0 0 -200px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 70% 0%, rgba(200, 162, 101, 0.1), transparent 70%);
}
.page-title { margin-top: 22px; font: 400 clamp(3.2rem, 10vw, 7.5rem)/0.95 var(--serif); letter-spacing: -0.02em; }
.page-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 28px; }
.page-lede { max-width: 46ch; font: italic 500 clamp(1.3rem, 2vw, 1.6rem)/1.45 var(--serif-text); color: var(--soft); }
.page-summary { font: 500 0.74rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 48px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.filter {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 0 16px;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font: 500 0.76rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; transition: color 0.3s;
}
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gilt); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { color: var(--gold-hi); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter__n { font: 400 0.85rem/1 var(--sans); letter-spacing: 0; color: var(--gold); }

.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 44px); margin-top: clamp(48px, 6vw, 72px); }
.lots__empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; font: italic 500 1.6rem/1.4 var(--serif-text); color: var(--muted); }

.lot { position: relative; display: flex; flex-direction: column; gap: 24px; height: 100%; }
.lot__wall {
  position: relative; container-type: size; aspect-ratio: 4 / 5; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(236, 215, 166, 0.12), transparent 70%),
    linear-gradient(180deg, var(--wall-hi), var(--wall));
  border: 1px solid var(--line); transition: border-color 0.6s;
}
.lot__wall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(236, 215, 166, 0.12), transparent 70%);
}
.lot .art {
  width: min(74cqw, calc(70cqh * var(--r)));
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(236, 215, 166, 0.1);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease), filter 0.9s;
}
.lot:hover .lot__wall, .lot:focus-within .lot__wall { border-color: var(--line-strong); }
.lot:hover .lot__wall::after, .lot:focus-within .lot__wall::after { opacity: 1; }
.lot:hover .art, .lot:focus-within .art {
  transform: translateY(-6px);
  box-shadow: 0 40px 60px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(236, 215, 166, 0.22), 0 0 50px -6px rgba(236, 215, 166, 0.22);
}
.lot--sold .art { filter: saturate(0.75) brightness(0.8); }
.lot--sold:hover .art, .lot--sold:focus-within .art { filter: saturate(0.9) brightness(0.92); }
.lot__dot { position: absolute; right: 18px; bottom: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(212, 72, 60, 0.16), 0 0 16px rgba(212, 72, 60, 0.6); }

.lot__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lot__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lot__no { font: 500 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.lot__title { font: italic 500 clamp(1.5rem, 2.2vw, 1.85rem)/1.15 var(--serif); }
.lot__title a { text-decoration: none; transition: color 0.3s; }
.lot__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lot:hover .lot__title a { color: var(--gold-hi); }
.lot__meta { font-size: 0.88rem; color: var(--muted); }
.lot__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.lot__price-k { font: 500 0.68rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.lot__leader { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.lot__price-v { font: 400 1.02rem/1.2 var(--sans); color: var(--gold-hi); text-align: right; }
.lot--sold .lot__price-v { color: var(--muted); font-style: italic; }

/* How to buy */
.howto { margin-top: var(--space); }
.howto__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); padding: clamp(40px, 6vw, 80px); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(200, 162, 101, 0.06), transparent 50%), var(--bg-2); position: relative; }
.howto__grid::before { content: ""; position: absolute; left: clamp(40px, 6vw, 80px); right: clamp(40px, 6vw, 80px); top: -1px; height: 1px; background: var(--hairline); }
.howto .h2 { font-size: clamp(2rem, 4vw, 3rem); }
.howto__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.howto__list { display: grid; gap: 0; }
.howto__list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.howto__list li:first-child { padding-top: 4px; }
.howto__list li:last-child { border-bottom: 0; }
.howto__list .gilt { font: italic 400 1.5rem/1.1 var(--serif); }

/* ── Single work ──────────────────────────────────────────────────────────── */

.crumbs { padding-top: calc(var(--nav-h) + 28px); }
.crumbs a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs a span { transition: transform 0.5s var(--ease); }
.crumbs a:hover span { transform: translateX(-4px); }

.work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(36px, 6vw, 96px); align-items: start; margin-top: 28px; }
.work__stage {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: clamp(14px, 3vw, 36px);
  border: 1px solid var(--line); cursor: zoom-in;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(236, 215, 166, 0.12), transparent 70%), linear-gradient(180deg, var(--wall-hi), var(--wall));
  transition: border-color 0.5s;
}
.work__stage:hover { border-color: var(--line-strong); }
.work__stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); transition: opacity 0.5s; }
.work__stage.is-loading img { opacity: 0.2; }
.work__zoom {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(11, 15, 23, 0.7); color: var(--gold-hi);
}
.work__zoom svg { width: 16px; height: 16px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.thumbs button {
  width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); background: var(--wall); cursor: pointer; overflow: hidden;
  opacity: 0.55; transition: opacity 0.4s, border-color 0.4s;
}
.thumbs button:hover { opacity: 0.9; }
.thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--gold-hi); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.work__info { position: sticky; top: calc(var(--nav-h) + 24px); }
.work__title { margin-top: 18px; font: italic 500 clamp(2.6rem, 6vw, 4.6rem)/1 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.work__artist { margin-top: 14px; color: var(--muted); }
.work__info .rule { margin: 28px 0; }
.work__price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.work__price { font: 400 1.5rem/1.2 var(--sans); }
.facts { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: 32px; font: 500 0.7rem/1.9 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--text); }
.work__story { margin-top: 36px; }
.work__story p { margin-top: 16px; padding-left: 22px; border-left: 1px solid var(--gold-lo); font: 500 1.4rem/1.5 var(--serif-text); color: var(--soft); }
.work__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.work__cta .btn { width: 100%; }

.notfound { padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 140px)); max-width: 760px; }
.notfound .page-title { font-size: clamp(2.6rem, 7vw, 5rem); font-style: italic; }
.notfound p:not(.kicker) { margin-top: 24px; color: var(--soft); max-width: 48ch; }
.notfound .btn { margin-top: 36px; }

.more { margin-top: var(--space); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 9, 14, 0.97); color: var(--text); overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn 0.5s var(--ease); }
.lightbox::backdrop { background: rgba(7, 9, 14, 0.9); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 72px 32px; max-width: 100%; }
.lightbox__fig img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 1); }
.lightbox__fig figcaption { font: italic 500 1.2rem/1.4 var(--serif-text); color: var(--soft); text-align: center; }
.lightbox .round { position: absolute; background: rgba(11, 15, 23, 0.6); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

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

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 72px; }
  .step:nth-child(3n + 2) { margin-top: 0; }
  .step { display: grid; grid-template-columns: minmax(0, 1fr); }
  .step__img { aspect-ratio: 4 / 5; }
  .about__grid, .howto__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 460px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .head { flex-direction: column; align-items: flex-start; }
  .strip-nav { display: none; }
  /* Selected works: even padding around each painting, the number above it (not on it),
     and the next card peeking in so it's clear the row scrolls. */
  .strip { container-type: inline-size; --wall-pad: 24px; gap: 14px; }
  .piece__wall { padding-top: 46px; }
  .piece .art { width: min(calc(var(--art-h) * var(--r)), calc(100cqw - 2 * var(--wall-pad) - 34px)); }
  .piece:not(.piece--end) { width: calc(100cqw - 34px); }
  .piece:not(.piece--end) .piece__wall { width: 100%; }
  .piece--end { width: calc(100cqw - 34px); min-height: 0; }
  .brand__name { font-size: 1.02rem; }
  .brand__mono { width: 34px; height: 34px; font-size: 0.82rem; }
  .hero__cta .btn, .contact__cta .btn, .howto__cta .btn { flex: 1 1 100%; }
  .howto__grid { padding: 32px 20px; }
  .howto__grid::before { left: 20px; right: 20px; }
  .lightbox__fig { padding: 72px 8px 88px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .foot__in { grid-template-columns: 1fr; gap: 28px; }
  .facts dt { padding-right: 20px; }
}

/* ── Reduced motion: keep it calm and still ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .step__img img, .about__frame img { transform: none; }
}

/* Body text in Cormorant Garamond. Small UI text (labels, meta, prices, nav, buttons) keeps Jost. */
.about__body p, .contact__lede, .step__text, main p:not([class]) {
  font-family: var(--serif-text); font-weight: 500; font-size: 1.3rem; line-height: 1.55; letter-spacing: 0;
}
