/* ==========================================================================
   Inna Zolkina — cinematic gallery
   Dark gallery walls, ivory type, colour only from the paintings.
   ========================================================================== */

:root {
  --bg: #0d0d0c;
  --bg-2: #141412;
  --bg-3: #1c1b18;
  --ivory: #ece5d8;
  --ivory-2: rgba(236, 229, 216, 0.66);
  --ivory-3: rgba(236, 229, 216, 0.42);
  --line: rgba(236, 229, 216, 0.14);
  --ochre: #b9925a;
  --umber: #6b5a45;
  --sea: #46c3c6;        /* sampled from the shallows */
  --deep: #23509f;       /* sampled from the skies */
  --sold: #c4674c;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", "Instrument Serif", cursive;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lock { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--sea); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ivory); color: var(--bg); padding: 10px 16px; font-size: 14px;
}
.skip:focus { top: 16px; }

.eyebrow {
  margin: 0 0 22px;
  font: 400 11px/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ivory-2);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.display {
  margin: 0;
  font: 400 clamp(52px, 9vw, 156px)/0.9 var(--serif);
  letter-spacing: -0.025em;
}
.display em { font-style: italic; color: var(--ivory-2); }

.section-head { position: relative; }

/* Masked line reveals. JS wraps each line as .ln > .ln-in. */
.ln { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 0.04em 0.1em; margin: 0 -0.04em -0.1em; }
.ln-in { display: block; will-change: transform; }

.mini-title {
  margin: 0 0 10px;
  font: 400 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3);
}

/* ---------- Film grain ---------- */

.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 180;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--bg);
}
.seen .loader, html:not(.js) .loader { display: none; }
.loader-sign {
  font: 400 clamp(64px, 11vw, 150px)/1 var(--script); color: var(--ivory);
  clip-path: inset(0 100% 0 0);
  padding: 0 0.2em;
}
.loader-line { width: min(220px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--ivory); transform-origin: left; transform: scaleX(0); }

/* ---------- Custom cursor (fine pointers only) ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 170; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid rgba(236, 229, 216, 0.55);
    transition: width 360ms var(--ease-expo), height 360ms var(--ease-expo), margin 360ms var(--ease-expo),
                background-color 300ms ease, border-color 300ms ease, opacity 300ms ease;
    opacity: 0;
  }
  .cursor.on { opacity: 1; }
  .cursor.label {
    width: 96px; height: 96px; margin: -48px 0 0 -48px;
    background: var(--ivory); border-color: var(--ivory);
  }
  .cursor.press { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .cursor-label {
    font: 500 10.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bg);
    opacity: 0; transform: scale(0.8);
    transition: opacity 200ms ease, transform 300ms var(--ease-expo);
  }
  .cursor.label .cursor-label { opacity: 1; transform: none; }
}

/* ---------- Header & menu ---------- */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  padding-top: max(22px, env(safe-area-inset-top));
  mix-blend-mode: difference;
  color: #f2ece2;
  transition: transform 700ms var(--ease-expo);
}
.top.hide { transform: translateY(-110%); }
.wordmark { font: 400 26px/1 var(--serif); letter-spacing: -0.01em; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a, .menu-btn {
  position: relative;
  font: 400 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.menu-btn { display: none; align-items: center; gap: 12px; height: 40px; }
.menu-btn-icon { display: grid; gap: 6px; width: 22px; }
.menu-btn-icon i { display: block; height: 1px; background: currentColor; transition: transform 500ms var(--ease-expo); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
}
.menu-inner { display: grid; gap: 4px; }
.menu-inner a {
  display: flex; align-items: baseline; gap: 18px;
  font: 400 clamp(44px, 12vw, 84px)/1.05 var(--serif); letter-spacing: -0.02em;
  overflow: hidden;
}
.menu-inner a small { font: 400 11px/1 var(--sans); letter-spacing: 0.2em; color: var(--ivory-3); }
.menu-foot { margin-top: 48px; }

/* ---------- Buttons ---------- */

.cta {
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  height: 56px; padding: 0 10px 0 28px; border-radius: 999px;
  border: 1px solid rgba(236, 229, 216, 0.4);
  font: 400 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: border-color 300ms ease, color 300ms ease;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  border-radius: inherit; transform: translateY(101%); transition: transform 600ms var(--ease-expo);
}
.cta-arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ivory); color: var(--bg); transition: background-color 300ms ease, color 300ms ease;
}
.cta.solid { padding: 0 30px; background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.cta.solid::before { background: var(--sea); }
.cta:active { transform: scale(0.97); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { color: var(--bg); border-color: var(--ivory); }
  .cta:hover::before { transform: translateY(0); }
  .cta:hover .cta-arrow { background: var(--bg); color: var(--ivory); }
}

.link-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  font: 400 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  transition: border-color 300ms ease, gap 400ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover { border-color: var(--ivory); gap: 18px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(36px, 7vh, 80px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-frame { position: absolute; inset: 0; overflow: hidden; }
.hero-img { width: 100%; height: 118%; object-fit: cover; object-position: center 40%; transform-origin: 50% 40%; }
.hero-light {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(255, 244, 222, 0.16), transparent 70%),
    radial-gradient(35% 30% at 75% 60%, rgba(70, 195, 198, 0.12), transparent 70%);
  mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to { transform: translate3d(5%, 3%, 0) scale(1.08); }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,12,0.55) 0%, rgba(13,13,12,0) 26%, rgba(13,13,12,0) 48%, rgba(13,13,12,0.85) 100%),
    linear-gradient(90deg, rgba(13,13,12,0.55) 0%, rgba(13,13,12,0) 60%);
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  gap: clamp(18px, 3vh, 30px);
  max-width: var(--max); width: 100%; margin: 0 auto;
}
.hero-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.hero-title {
  grid-column: 1 / -1;
  margin: 0; max-width: 13ch;
  font: 400 clamp(56px, 9.6vw, 184px)/0.88 var(--serif);
  letter-spacing: -0.035em;
}
.hero-side {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  padding-top: clamp(8px, 2vh, 24px); border-top: 1px solid rgba(236, 229, 216, 0.18);
}
.hero-intro { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ivory-2); max-width: 46ch; }

.hero-caption {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  transform: rotate(90deg) translateX(50%); transform-origin: right top;
  font: 400 10.5px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-2);
  white-space: nowrap;
}
.hero-caption em { font: italic 400 15px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ivory); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font: 400 9.5px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-3);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--ivory), transparent); transform-origin: top; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Statement ---------- */

.statement {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px);
}
.statement-text {
  margin: 0;
  font: 400 clamp(32px, 4.6vw, 72px)/1.08 var(--serif); letter-spacing: -0.015em;
  text-wrap: pretty;
}
.statement-text .w { display: inline-block; opacity: 0.16; }
.no-motion .statement-text .w { opacity: 1; }
.statement-sign { margin: 36px 0 0; font: 400 clamp(40px, 5vw, 64px)/1 var(--script); color: var(--ivory-2); }

/* ---------- Collection ---------- */

.collection { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 14vh, 160px); }
.collection .section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 32px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: clamp(56px, 10vh, 120px);
}
.collection .section-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.collection-count { margin: 0; font: italic 400 22px/1 var(--serif); color: var(--ivory-2); grid-column: 2; grid-row: 2; align-self: end; }
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line);
  font: 400 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-2);
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 160ms var(--ease-out);
}
.filter sup { font-size: 9px; margin-left: 4px; color: var(--ivory-3); }
.filter[aria-pressed="true"] { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.filter[aria-pressed="true"] sup { color: var(--umber); }
.filter:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .filter:not([aria-pressed="true"]):hover { border-color: var(--ivory-3); color: var(--ivory); }
}

.works { display: grid; gap: clamp(96px, 16vh, 200px); }

/* Each work is laid out like a magazine spread; layouts rotate a, b, c. */
.work { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; column-gap: clamp(16px, 2vw, 32px); }
.work-media { position: relative; grid-row: 1; cursor: pointer; }
.work-frame { position: relative; overflow: hidden; background: var(--bg-3); }
.work-frame img { width: 100%; height: 116%; object-fit: cover; transition: transform 1400ms var(--ease-expo), filter 800ms ease; }
.work-num {
  position: absolute; z-index: 2; top: -0.55em;
  font: italic 400 clamp(64px, 8vw, 128px)/1 var(--serif); color: var(--ivory);
  pointer-events: none; mix-blend-mode: difference;
}
.work-text { grid-row: 1; position: relative; z-index: 2; padding-bottom: 6px; }
.work-collection { margin: 0 0 14px; font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3); }
.work-title {
  margin: 0;
  font: 400 clamp(46px, 6.4vw, 108px)/0.92 var(--serif); letter-spacing: -0.025em;
}
.work-title button { text-align: left; }
.work-meta { margin: 22px 0 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ivory-2); }
.work-meta span { display: block; }
.work-details {
  margin-top: 22px; max-width: 38ch; font-size: 14.5px; line-height: 1.7; color: var(--ivory-2);
}
.work-open { margin-top: 26px; }

.status { display: inline-flex; align-items: center; gap: 10px; font: 400 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 4px rgba(70, 195, 198, 0.16); }
.status.sold::before { background: var(--sold); box-shadow: 0 0 0 4px rgba(196, 103, 76, 0.18); }
.status.reserved::before { background: var(--ochre); box-shadow: 0 0 0 4px rgba(185, 146, 90, 0.18); }

.work.a .work-media { grid-column: 1 / span 8; }
.work.a .work-frame { aspect-ratio: 4 / 3.2; }
.work.a .work-num { left: -0.12em; }
.work.a .work-text { grid-column: 9 / span 4; }
.work.a .work-title { margin-left: -42%; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35); }

.work.b .work-media { grid-column: 6 / span 7; }
.work.b .work-frame { aspect-ratio: 4 / 4.6; }
.work.b .work-num { right: -0.1em; }
.work.b .work-text { grid-column: 1 / span 6; align-self: center; }

.work.c .work-media { grid-column: 3 / span 9; }
.work.c .work-frame { aspect-ratio: 16 / 10.5; }
.work.c .work-num { left: -0.5em; }
.work.c .work-text { grid-column: 1 / span 6; grid-row: 2; margin-top: -0.6em; }

@media (hover: hover) and (pointer: fine) {
  .work-media:hover .work-frame img { transform: scale(1.04); }
}

/* ---------- Studio ---------- */

.studio { position: relative; background: var(--bg-2); }
.studio-pin {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: clamp(100px, 14vh, 140px) 0 40px;
}
.studio-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 24px 48px;
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 48px;
}
.studio-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.studio-lead { margin: 0; font-size: 15px; color: var(--ivory-2); }
.studio-track {
  display: flex; align-items: stretch; gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.step {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 18px;
  width: clamp(280px, 30vw, 460px);
}
.step.wide { width: clamp(320px, 44vw, 680px); }
.step-media { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bg-3); aspect-ratio: 4 / 5; }
.step.wide .step-media { aspect-ratio: 16 / 11; }
.step-media img { width: 118%; height: 100%; max-width: none; object-fit: cover; }
.step-card {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5; padding: 30px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(185, 146, 90, 0.16), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(35, 80, 159, 0.22), transparent 60%);
}
.step-card p { margin: 0; font: 400 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); }
.step-card small { font-size: 13px; color: var(--ivory-2); line-height: 1.6; }
.step-cap { display: flex; gap: 14px; align-items: baseline; }
.step-cap b { font: italic 400 22px/1 var(--serif); color: var(--ivory-3); }
.step-cap span { font: 400 11px/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-2); }
.studio-progress { max-width: var(--max); width: calc(100% - 2 * var(--gutter)); margin: 36px auto 0; height: 1px; background: var(--line); }
.studio-progress i { display: block; height: 100%; background: var(--ivory); transform-origin: left; transform: scaleX(0); }

/* ---------- Featured ---------- */

.featured {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(110px, 16vh, 180px) var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.featured-light {
  position: absolute; left: 25%; top: -10%; width: 70%; height: 110%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 238, 205, 0.13), transparent);
  transform: translateX(-30%);
}
.featured-eyebrow { position: absolute; top: clamp(60px, 10vh, 110px); left: var(--gutter); }
.featured-figure { margin: 0; position: relative; }
.featured-art {
  display: block; width: 100%; cursor: pointer;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(236, 229, 216, 0.04);
}
.featured-art img { width: 100%; height: auto; }
.featured-title { margin: 0; font: 400 clamp(48px, 6vw, 104px)/0.92 var(--serif); letter-spacing: -0.025em; }
.featured-meta { margin: 20px 0 0; font: 400 11px/1.6 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); }
.featured-desc { margin: 26px 0 30px; max-width: 42ch; font-size: 16px; line-height: 1.75; color: var(--ivory-2); }

/* ---------- About ---------- */

.about {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
}
.about-visual { position: relative; padding-bottom: 30%; }
.about-img { overflow: hidden; background: var(--bg-3); }
.about-img img { width: 100%; height: 120%; object-fit: cover; }
.about-img.a1 { aspect-ratio: 4 / 5; width: 82%; }
.about-img.a2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.about-name { font-size: clamp(56px, 8vw, 132px); margin-bottom: 40px; }
.prose p { margin: 0 0 1.1em; }
.about-bio { font-size: 17px; line-height: 1.8; color: var(--ivory-2); max-width: 58ch; }
.about-bio p:first-child { font: 400 clamp(24px, 2.2vw, 30px)/1.35 var(--serif); color: var(--ivory); letter-spacing: -0.005em; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-cols p { margin: 0; font-size: 14.5px; color: var(--ivory-2); }
.milestones { margin-top: 36px; }
.milestones ul { list-style: none; margin: 0; padding: 0; }
.milestones li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ivory-2); }
.placeholder { color: var(--ochre); }

/* ---------- Collect ---------- */

.collect { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter); border-top: 1px solid var(--line); }
.collect .section-head { margin-bottom: clamp(56px, 9vh, 100px); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.offer {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 40px clamp(20px, 2.4vw, 40px) 36px 0;
}
.offer + .offer { padding-left: clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.offer-num { font: italic 400 20px/1 var(--serif); color: var(--ochre); }
.offer h3 { margin: 56px 0 16px; font: 400 clamp(30px, 2.8vw, 44px)/1 var(--serif); letter-spacing: -0.01em; }
.offer p { margin: 0 0 14px; font-size: 14.5px; color: var(--ivory-2); max-width: 36ch; }
.offer .link-btn { margin-top: auto; padding-top: 20px; }
.offer-avail { font-size: 13px !important; }
.offer-avail a { border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */

.contact {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px);
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.contact .display { font-size: clamp(52px, 7vw, 120px); }
.contact-lead { margin: 32px 0 26px; max-width: 40ch; color: var(--ivory-2); }
.contact-email { margin: 0 0 30px; font: italic 400 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); }
.contact-email a { border-bottom: 1px solid var(--line); transition: border-color 300ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-email a:hover { border-color: var(--ivory); } }

.social-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 11.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-2);
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .social-links a:hover { color: var(--ivory); } }

.contact-form { display: grid; gap: 8px; align-content: start; padding-top: 12px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 30px 0 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ivory); font: 300 17px/1.5 var(--sans);
  transition: border-color 300ms ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { cursor: pointer; }
.field.select::after { content: "↓"; position: absolute; right: 2px; bottom: 16px; color: var(--ivory-3); pointer-events: none; }
.field select option { background: var(--bg-2); color: var(--ivory); }
.field label {
  position: absolute; left: 0; top: 30px; pointer-events: none;
  font: 300 17px/1.5 var(--sans); color: var(--ivory-3);
  transform-origin: left top; transition: transform 400ms var(--ease-expo), color 300ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ivory); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field input:not(:placeholder-shown) + label, .field input:focus + label,
.field textarea:not(:placeholder-shown) + label, .field textarea:focus + label,
.field.select label {
  transform: translateY(-22px) scale(0.72); color: var(--ivory-2); letter-spacing: 0.04em;
}
.field.invalid input, .field.invalid textarea { border-color: var(--sold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 28px; }
.form-status { margin: 0; font-size: 14px; color: var(--ivory-2); }
.form-status.ok { color: var(--sea); }
.form-status.err { color: var(--sold); }
.contact-form.sending .cta { opacity: 0.6; pointer-events: none; }

/* ---------- Footer ---------- */

.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.foot-sign { margin: 0 0 10px; font: 400 clamp(90px, 18vw, 280px)/1.1 var(--script); color: var(--ivory); text-align: center; white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-size: 12.5px; color: var(--ivory-3); }
.back-top { font: 400 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-2); }

/* ---------- Viewer ---------- */

.viewer {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #080807; color: var(--ivory);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: transparent; }
.viewer-bar, .viewer-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  font: 400 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-2);
}
.viewer-bar { padding-top: max(20px, env(safe-area-inset-top)); }
.viewer-nav { padding-bottom: max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.viewer-close, .viewer-art { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .viewer-close:hover, .viewer-art:hover { color: var(--ivory); } }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); min-height: 0; }
.viewer-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px clamp(56px, 6vw, 96px) 24px; }
.viewer-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9); }
.viewer-photo {
  position: absolute; top: 50%; margin-top: -24px; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); color: var(--ivory-2);
  transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.viewer-photo:active { transform: scale(0.94); }
.viewer-photo.prev { left: var(--gutter); }
.viewer-photo.next { right: 12px; }
.viewer-photo[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .viewer-photo:hover { border-color: var(--ivory); color: var(--ivory); } }
.viewer-info { overflow-y: auto; padding: 8px var(--gutter) 32px 8px; display: flex; flex-direction: column; }
.viewer-collection { margin-bottom: 18px; }
.viewer-title { margin: 0; font: 400 clamp(40px, 4vw, 64px)/0.95 var(--serif); letter-spacing: -0.02em; }
.viewer-meta { margin: 26px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 13.5px; }
.viewer-meta dt { font: 400 10.5px/1.9 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); }
.viewer-meta dd { margin: 0; color: var(--ivory-2); }
.viewer-desc { margin: 24px 0 0; font-size: 15px; line-height: 1.75; color: var(--ivory-2); }
.viewer-desc:empty { display: none; }
.viewer-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 28px 0; }
.thumb { aspect-ratio: 1; overflow: hidden; opacity: 0.4; transition: opacity 250ms ease, transform 160ms var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { opacity: 1; outline: 1px solid var(--ivory); outline-offset: 2px; }
.thumb:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .thumb:hover { opacity: 1; } }
.viewer-enquire { margin-top: auto; align-self: flex-start; }

/* ---------- Tablet & phone compositions ---------- */

@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-side { padding: 0; }
  .hero-caption { display: none; }
  .work { row-gap: 24px; }
  .work.a .work-media, .work.b .work-media, .work.c .work-media { grid-column: 1 / -1; }
  .work.b .work-media { grid-column: 3 / -1; }
  .work.a .work-text, .work.b .work-text, .work.c .work-text { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .work.c .work-frame { aspect-ratio: 4 / 3; }
  .work.a .work-title { margin-left: 0; }
  .work-details { max-width: 52ch; }
  .featured { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 560px; }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer + .offer { padding: 36px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .offer h3 { margin-top: 24px; }
  .contact { grid-template-columns: 1fr; }
  .viewer-body { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .viewer-stage { padding: 0 var(--gutter) 12px; height: 56dvh; touch-action: pan-y; }
  .viewer-photo { display: none; }
  .viewer-info { padding: 16px var(--gutter) 24px; overflow: visible; }

  /* Studio becomes a native swipe strip on touch screens. */
  .studio-pin { min-height: 0; }
  .studio-head { grid-template-columns: 1fr; }
  .studio-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 8px; scroll-padding-left: var(--gutter); }
  .studio-track::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; width: min(78vw, 400px); }
  .step.wide { width: min(86vw, 560px); }
  .step-media img { width: 100%; }
  .studio-progress { display: none; }
}

@media (max-width: 600px) {
  .top { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px; }
  .wordmark { font-size: 22px; }
  .hero { min-height: 560px; }
  .hero-title { font-size: clamp(54px, 16vw, 84px); }
  .hero-intro { font-size: 14px; }
  .scroll-cue { display: none; }
  .collection .section-head { grid-template-columns: 1fr; }
  .collection-count { grid-column: 1; grid-row: auto; }
  .work.b .work-media { grid-column: 1 / -1; }
  .work-num { font-size: 56px; }
  .work-title { font-size: clamp(42px, 13vw, 64px); }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-sign { font-size: 15vw; }
  .viewer-nav .lbl { display: none; }
}

/* ---------- Reduced motion: still, but never hidden ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain, .hero-light, .scroll-cue i { animation: none; }
  .loader { display: none; }
  .work-frame img, .hero-img { transform: none !important; }
}

/* ---------- How to buy page ---------- */

.buy { max-width: 980px; margin: 0 auto; padding: clamp(130px, 20vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); }
.buy-head { margin-bottom: clamp(48px, 8vh, 90px); }
.buy-title { font-size: clamp(56px, 9vw, 128px); }
.buy-intro { margin: 32px 0 0; max-width: 52ch; font-size: 18px; line-height: 1.7; color: var(--ivory-2); }
.buy-block { padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px 48px; }
.buy-block > .mini-title { margin-top: 6px; }
.buy-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 22px; }
.buy-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; font-size: 16px; color: var(--ivory-2); }
.buy-steps li::before { content: counter(step, decimal-leading-zero); font: italic 400 22px/1.1 var(--serif); color: var(--ochre); }
.buy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.buy-list li { padding-left: 22px; position: relative; color: var(--ivory-2); }
.buy-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--ivory-3); }
.buy-bank { margin: 0; padding: 22px 24px; border: 1px solid var(--line); background: var(--bg-2); font: 400 15px/1.8 var(--sans); color: var(--ivory); white-space: pre-wrap; }
.buy-note { grid-column: 2; margin: 0; font-size: 13.5px; color: var(--ivory-3); }
.buy-prose { color: var(--ivory-2); }
.buy-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 48px; }
.page-buy .top { mix-blend-mode: normal; background: linear-gradient(var(--bg), rgba(13, 13, 12, 0)); }
@media (max-width: 700px) {
  .buy-block { grid-template-columns: 1fr; }
  .buy-note { grid-column: 1; }
  .page-buy .nav { gap: 16px; }
}

/* ---------- Single painting page ---------- */

.art { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 16vh, 160px) var(--gutter) clamp(60px, 10vh, 120px); }
.crumbs { margin-bottom: 36px; font: 400 11px/1.6 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-3); }
.crumbs a { color: var(--ivory-2); }
.art-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.art-main { margin: 0; }
.art-main img { width: 100%; height: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
.art-info { position: sticky; top: 110px; }
.art-title { margin: 0; font: 400 clamp(48px, 5.4vw, 88px)/0.95 var(--serif); letter-spacing: -0.02em; }
.art-by { margin: 16px 0 0; color: var(--ivory-2); }
.art-by a { border-bottom: 1px solid var(--line); }
.art .buy-cta { margin-top: 32px; }
.art-more { margin-top: clamp(64px, 10vh, 110px); padding-top: 32px; border-top: 1px solid var(--line); }
.art-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.art-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.art-others { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.art-others a { display: grid; gap: 12px; }
.art-others img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 300ms ease; }
.art-others span { font: 400 24px/1.1 var(--serif); }
@media (hover: hover) and (pointer: fine) { .art-others a:hover img { opacity: 0.8; } }
@media (max-width: 900px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-info { position: static; }
}
