/* =============================================================
   EIRDÍS — "Emergence"
   A dark, warm-neutral gallery shell. The paintings supply all
   the colour; the interface stays quiet and lets work surface.
   ============================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@300;400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --ink:        #f7f4ee;   /* page background, warm near-white      */
  --ink-2:      #efeae1;   /* raised surfaces                      */
  --ink-3:      #e7e1d6;   /* cards / hover                        */
  --bone:       #1a1714;   /* primary text, warm near-black        */
  --bone-2:     #5f584e;   /* secondary text                       */
  --bone-dim:   rgba(26, 23, 20, 0.55);
  --line:       rgba(26, 23, 20, 0.14);
  --line-soft:  rgba(26, 23, 20, 0.08);
  --gold:       #a9772e;   /* sparing accent, deepened for white   */
  --gold-soft:  rgba(169, 119, 46, 0.16);
  --sold:       #d9483b;
  --avail:      #3f8c63;   /* deepened for contrast on white       */

  /* text that sits OVER colourful artwork (dark over-image scrims) */
  --on-media:     #f4efe6;
  --on-media-dim: rgba(244, 239, 230, 0.72);

  --maxw: 1480px;
  --gut: clamp(20px, 5vw, 80px);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

/* Visible keyboard focus (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 2px; }
.room__sw:focus-visible { outline-offset: 4px; }

/* screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Atmosphere: grain + vignette ---------- */
.atmosphere {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 120% at 50% 0%, transparent 55%, rgba(120,110,95,0.10) 100%);
  mix-blend-mode: multiply;
}
.atmosphere::after {
  content: ""; position: absolute; inset: -50%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.u-label {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.u-display {
  font-family: var(--f-display);
  font-weight: 340;
  line-height: 0.96;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h1, h2, h3 { font-weight: 340; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { position: relative; z-index: 2; }
main { position: relative; z-index: 2; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--f-sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 1.8em; border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--bone);
  transition: border-color .5s var(--ease), color .5s var(--ease), background .5s var(--ease);
  will-change: transform;
}
.btn:hover { border-color: var(--bone); }
.btn--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--ink); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-u {
  position: relative; display: inline-block; color: var(--bone);
  padding-bottom: 2px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid var(--bone); border-radius: 50%;
  transition: width .4s var(--ease), height .4s var(--ease),
              background .4s var(--ease), border-color .4s var(--ease), opacity .3s;
  mix-blend-mode: difference; opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: var(--bone); }
.cursor.is-view  { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--bone); }
.cursor__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .3s; mix-blend-mode: normal;
}
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9500; background: #fff;
  display: grid; place-items: center;
}
.preloader__inner { text-align: center; }
.preloader__name {
  font-family: var(--f-display); font-size: clamp(34px, 7vw, 84px);
  letter-spacing: 0.02em; color: var(--bone);
  opacity: 1;
}
.preloader__count {
  margin-top: 1.4rem; font-size: 12px; letter-spacing: 0.3em;
  color: var(--bone-dim); font-variant-numeric: tabular-nums;
}
.preloader__bar {
  margin: 1.1rem auto 0; width: min(280px, 60vw); height: 1px;
  background: var(--line); position: relative; overflow: hidden;
}
.preloader__bar span {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  z-index: 800; display: flex; align-items: center;
  /* --nav-a (0..1) is driven by scroll in main.js so the bar fades in gradually */
  background: rgba(247, 244, 238, calc(var(--nav-a, 0) * 0.86));
  -webkit-backdrop-filter: blur(calc(var(--nav-a, 0) * 14px)) saturate(120%);
  backdrop-filter: blur(calc(var(--nav-a, 0) * 14px)) saturate(120%);
  border-bottom: 1px solid rgba(26, 23, 20, calc(var(--nav-a, 0) * 0.12));
}
.nav.is-scrolled { --nav-a: 1; }   /* content pages render dark from the top */
.nav.is-hidden { transform: translateY(-100%); }
.nav__row {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav__brand {
  font-family: var(--f-display); font-size: 21px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-self: start;
}
.nav__logo {
  height: 42px; width: auto; display: block;
  filter: brightness(0); opacity: 0.92;
  transition: opacity .4s var(--ease);
}
.nav__brand:hover .nav__logo { opacity: 1; }
@media (max-width: 760px) { .nav__logo { height: 30px; } }
.nav__links { display: flex; gap: clamp(24px, 3.4vw, 56px); align-items: center; justify-self: center; }
.nav__links a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-2); }
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__toggle { display: none; justify-self: end; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); }
}

/* Mobile menu overlay (built by main.js from .nav__links) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 780;
  background: rgba(247,244,238,0.98); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.mobile-menu__nav a {
  font-family: var(--f-display); font-size: clamp(34px, 9vw, 58px); font-weight: 320;
  color: var(--bone); padding: 8px 0; letter-spacing: -0.01em;
}
.mobile-menu__nav a.is-active { color: var(--gold); }

/* ---------- Reveal base states ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal="fade"] { transform: none; }
.is-in[data-reveal] { opacity: 1; transform: none; }

/* =============================================================
   HOME
   ============================================================= */

/* Hero */
.hero { position: relative; height: 100svh; min-height: 620px; }
.hero__stage { position: relative; height: 100%; overflow: hidden; }
/* scroll-scrub mode (enabled by hero-scrub.js only when frames exist) */
.hero.hero--scrub { height: 240vh; }
.hero.hero--scrub .hero__stage { position: sticky; top: 0; height: 100svh; }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; opacity: 0; }
.hero--scrub .hero__canvas { filter: brightness(1); }   /* opacity driven by scroll in JS */
/* poster (her REAL painting) stays as the bright resting state; the splash
   canvas fades in over it only as you scroll. */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  transform: scale(1.08); filter: blur(22px) brightness(0.92);
  opacity: 0; will-change: transform, filter, opacity;
}
/* rest state must match the scrub canvas exactly (scale 1, brightness 1,
   centred) so the poster->canvas cross-fade is a pure dissolve, no resize. */
.hero.is-ready .hero__media img {
  transition: transform 2.4s var(--ease), filter 2.2s var(--ease), opacity 1.6s ease;
  transform: scale(1); filter: blur(0) brightness(1); opacity: 1;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* restrained legibility lift only behind the text — a soft light band at the
     top (so the dark nav/logo read over the bright painting) and at the bottom
     (so the dark title/sub read over the dark blue wave). Centre stays vivid. */
  background:
    linear-gradient(to bottom, rgba(248,245,239,0.66) 0%, rgba(248,245,239,0.18) 9%, transparent 17%),
    linear-gradient(to top, rgba(248,245,239,0.58) 0%, rgba(248,245,239,0.14) 24%, transparent 40%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(48px, 9vh, 110px);
}
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 30px); overflow: hidden; }
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 12vw, 230px);
  line-height: 0.86; letter-spacing: -0.02em; font-weight: 320;
}
/* overflow:hidden only masks the slide-up reveal; once revealed we let
   descenders (g, y, p) show fully. padding gives a little safety margin. */
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.12em; }
.hero__title.is-revealed .line { overflow: visible; }
.hero__title .line > span { display: block; will-change: transform; padding-right: 0.06em; }
.hero__title em { font-style: italic; font-weight: 300; }
.hero__sub {
  margin-top: clamp(22px, 4vh, 42px); max-width: 40ch;
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: baseline;
  color: var(--bone); font-size: clamp(15px, 1.4vw, 18px);
}
.hero__scroll {
  position: absolute; bottom: clamp(24px, 4vh, 40px); right: var(--gut); z-index: 2;
  display: flex; align-items: center; gap: 0.8em; color: var(--bone-dim);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll .tick { width: 46px; height: 1px; background: var(--bone-dim); position: relative; overflow: hidden; }
.hero__scroll .tick::after { content:""; position:absolute; inset:0; background: var(--bone); transform: translateX(-100%); animation: tick 2.4s var(--ease-io) infinite; }
@keyframes tick { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }

/* Manifesto */
.manifesto { padding: clamp(120px, 20vh, 240px) 0; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 320;
  font-size: clamp(26px, 4vw, 62px); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 22ch;
}
.manifesto__text .dim { color: var(--bone-dim); }
.manifesto__meta {
  margin-top: clamp(40px, 6vh, 72px); display: flex; gap: clamp(40px, 8vw, 120px);
  flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line);
}
.manifesto__meta .stat .n { font-family: var(--f-display); font-size: clamp(30px, 4vw, 50px); display: block; }
.manifesto__meta .stat .l { margin-top: 6px; }

/* Featured */
.featured { padding-bottom: clamp(60px, 12vh, 140px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding-bottom: clamp(34px, 5vh, 60px); flex-wrap: wrap;
}
.section-head h2 { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 46px); }

.feat-list { display: flex; flex-direction: column; gap: clamp(80px, 16vh, 200px); }
.feat {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 4vw, 60px); align-items: center;
}
.feat__media { position: relative; overflow: hidden; }
.feat__media img {
  width: 100%; height: auto; will-change: transform; transform: scale(1.06);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.feat:hover .feat__media img { transform: scale(1.01); }
.feat__media::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(to top, rgba(11,10,12,0.5), transparent 45%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.feat:hover .feat__media::after { opacity: 1; }
.feat__cap .idx { font-family: var(--f-display); font-size: 14px; color: var(--gold); }
.feat__cap h3 { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 56px); margin: 0.4em 0 0.5em; line-height: 1; }
.feat__cap .meta { color: var(--bone-2); font-size: 14.5px; line-height: 1.9; }
.feat__cap .meta span { display: block; }
.feat__cap .go { margin-top: clamp(22px, 3vh, 36px); }
/* alternating */
.feat:nth-child(odd) .feat__media { grid-column: 1 / 8; }
.feat:nth-child(odd) .feat__cap   { grid-column: 9 / 13; }
.feat:nth-child(even) .feat__media { grid-column: 6 / 13; order: 2; }
.feat:nth-child(even) .feat__cap   { grid-column: 1 / 5; order: 1; }
@media (max-width: 820px) {
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat:nth-child(n) .feat__media,
  .feat:nth-child(n) .feat__cap { grid-column: 1 / -1; order: initial; }
}

/* Series index */
.series { padding: clamp(100px, 18vh, 220px) 0; }
.series-list { border-top: 1px solid var(--line); }
.series-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 28px; padding: clamp(26px, 4vh, 46px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left .6s var(--ease);
}
.series-row:hover { padding-left: clamp(10px, 2vw, 34px); }
.series-row .s-idx { font-family: var(--f-display); color: var(--gold); font-size: 15px; }
.series-row .s-name { font-family: var(--f-display); font-size: clamp(30px, 5.5vw, 84px); line-height: 1; letter-spacing: -0.02em; transition: color .5s; }
.series-row .s-meta { text-align: right; color: var(--bone-2); font-size: 13px; }
.series-row .s-meta .c { color: var(--bone); }
.series-row:hover .s-name { color: var(--gold); }
.series-row__peek {
  position: absolute; right: 22%; top: 50%; width: 220px; height: 150px;
  transform: translateY(-50%) scale(0.92); opacity: 0; pointer-events: none;
  overflow: hidden; z-index: 5; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.series-row__peek img { width: 100%; height: 100%; object-fit: cover; }
.series-row:hover .series-row__peek { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 760px) {
  .series-row { grid-template-columns: auto 1fr; }
  .series-row .s-meta { display: none; }
  .series-row__peek { display: none; }
}

/* About teaser */
.about-t { padding: clamp(40px, 8vh, 90px) 0 clamp(100px, 18vh, 200px); }
.about-t__grid { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(20px,4vw,60px); align-items: end; }
.about-t__media { grid-column: 1 / 6; overflow: hidden; }
.about-t__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-t__body { grid-column: 7 / 13; }
.about-t__body p { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; font-weight: 320; }
.about-t__body .sig { margin-top: 2rem; }
@media (max-width: 820px) {
  .about-t__media, .about-t__body { grid-column: 1 / -1; }
  .about-t__media { margin-bottom: 32px; max-width: 320px; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-top: clamp(70px, 12vh, 130px); }
.footer__cta { padding-bottom: clamp(70px, 12vh, 130px); }
.footer__cta h2 { font-family: var(--f-display); font-size: clamp(34px, 7vw, 110px); line-height: 0.95; letter-spacing: -0.02em; max-width: 14ch; }
.footer__cta .sub { margin-top: 1.5rem; max-width: 44ch; color: var(--bone-2); }
.signup { margin-top: clamp(34px, 5vh, 54px); display: flex; gap: 12px; max-width: 480px; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 220px; background: transparent; border: 1px solid var(--line);
  border-radius: 100px; padding: 1.05em 1.5em; color: var(--bone); font: inherit; font-size: 15px;
  transition: border-color .4s;
}
.signup input:focus { border-color: var(--bone); }
.signup input::placeholder { color: var(--bone-dim); }

/* ---------- Subscribe / Collector Circle (early drops, first dibs) ---------- */
.signup--lg input { font-size: 16px; padding: 1.15em 1.6em; }
.signup__note { flex-basis: 100%; margin-top: 12px; font-size: 13px; color: var(--bone-dim); }
.signup__note a { text-decoration: underline; text-underline-offset: 3px; }
.signup.is-invalid input { border-color: var(--sold); }
.signup__ok { font-family: var(--f-display); font-size: clamp(18px, 2vw, 24px); line-height: 1.4; max-width: 32ch; }

.manifesto__note { margin-top: clamp(22px, 3.4vh, 40px); max-width: 56ch; color: var(--bone-2); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.5; }

.subscribe { background: var(--bone); color: var(--on-media); }
.subscribe .wrap { padding-top: clamp(64px, 9vh, 110px); padding-bottom: clamp(64px, 9vh, 110px); }
.subscribe__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.subscribe__copy .u-label { color: var(--on-media-dim); }
.subscribe__copy h2 { font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 58px); line-height: 1.0; letter-spacing: -0.02em; margin-top: 14px; }
.subscribe__copy p { margin-top: 1.1rem; max-width: 46ch; color: var(--on-media-dim); }
.subscribe .signup { margin-top: 0; max-width: 540px; }
.subscribe .signup input { border-color: rgba(244, 239, 230, 0.30); color: var(--on-media); }
.subscribe .signup input::placeholder { color: rgba(244, 239, 230, 0.50); }
.subscribe .signup input:focus { border-color: var(--on-media); }
.subscribe .signup__note { color: var(--on-media-dim); }
.subscribe .signup__ok { color: var(--on-media); }
.subscribe .btn--solid { background: var(--on-media); color: var(--bone); border-color: var(--on-media); }
.subscribe .btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (max-width: 860px) { .subscribe__inner { grid-template-columns: 1fr; gap: 30px; } }

/* contact-page subscribe (on the light about page) */
.about__subscribe { margin-top: clamp(40px, 6vh, 72px); padding-top: clamp(32px, 4vh, 48px); border-top: 1px solid var(--line); }
.about__subscribe p { margin-top: 10px; max-width: 48ch; color: var(--bone-2); }
.about__subscribe .signup { max-width: 540px; }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  padding: clamp(32px,5vh,46px) 0; border-top: 1px solid var(--line);
}
.footer__base .socials { display: flex; gap: 26px; }
.footer__base .socials a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-2); }
.footer__base .socials a:hover { color: var(--bone); }
.footer__base .fine { color: var(--bone-dim); font-size: 12.5px; }

/* =============================================================
   WORKS PAGE
   ============================================================= */
.works-head { padding: calc(var(--nav-h) + clamp(48px,9vh,110px)) 0 clamp(30px,5vh,56px); }
.works-head h1 { font-family: var(--f-display); font-size: clamp(44px, 9vw, 150px); line-height: 0.9; letter-spacing: -0.02em; }
.works-head .lede { margin-top: 1.4rem; max-width: 46ch; color: var(--bone-2); }

.filterbar {
  position: sticky; top: var(--nav-h); z-index: 600;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 18px 0 22px; margin-bottom: clamp(20px,4vh,44px);
  background: linear-gradient(var(--ink) 86%, transparent);
}
.filterbar button {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7em 1.2em; border-radius: 100px; border: 1px solid var(--line); color: var(--bone-2);
  transition: color .4s, border-color .4s, background .4s;
}
.filterbar button:hover { color: var(--bone); border-color: var(--line); }
.filterbar button.is-active { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.filterbar .count { margin-left: auto; color: var(--bone-dim); font-size: 12.5px; letter-spacing: 0.1em; }

/* Masonry via columns */
.grid {
  column-count: 3; column-gap: clamp(14px, 1.6vw, 26px);
  padding-bottom: clamp(80px,14vh,160px);
}
@media (max-width: 1040px) { .grid { column-count: 2; } }
@media (max-width: 600px)  { .grid { column-count: 1; } }
/* few works (e.g. Available) -> larger, fewer columns so no empty column */
@media (min-width: 1041px) { .grid.is-few { column-count: 2; } }
@media (min-width: 1800px) { .grid.is-few { column-count: 2; max-width: 1280px; } }

.card {
  display: block;   /* cards are <a> (inline by default) — block restores the vertical gap */
  break-inside: avoid; margin-bottom: clamp(14px, 1.6vw, 26px);
  position: relative; cursor: pointer;
}
.card__media { position: relative; overflow: hidden; background: var(--ink-2); }
.card__media img {
  width: 100%; display: block; will-change: transform, filter;
  transform: scale(1.04); filter: blur(12px); opacity: 0;
  transition: transform 1s var(--ease), filter .9s var(--ease), opacity .8s ease;
}
.card.is-loaded .card__media img { filter: blur(0); opacity: 1; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after {
  content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(11,10,12,0.66), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }
.card__info {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.card:hover .card__info { opacity: 1; transform: none; }
/* touch devices have no hover — keep titles/prices + scrim visible */
@media (hover: none), (pointer: coarse) {
  .card__info { opacity: 1; transform: none; }
  .card__media::after { opacity: 1; }
}
.card__info h3 { font-family: var(--f-display); font-size: 21px; line-height: 1.05; color: var(--on-media); }
.card__info .yr { color: var(--on-media-dim); font-size: 13px; }
.card__price { font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; color: var(--on-media); }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: rgba(11,10,12,0.6);
  backdrop-filter: blur(6px); color: var(--on-media);
}
.card__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--avail); }

/* =============================================================
   ABOUT PAGE
   ============================================================= */
.about { padding: calc(var(--nav-h) + clamp(60px,12vh,140px)) 0 clamp(80px,14vh,160px); }
.about__lead { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(20px,4vw,60px); align-items: end; margin-bottom: clamp(70px,12vh,150px); }
.about__lead h1 { grid-column: 1 / 9; font-family: var(--f-display); font-size: clamp(36px, 6vw, 96px); line-height: 1.02; letter-spacing: -0.02em; }
.about__lead .meta { grid-column: 10 / 13; color: var(--bone-2); font-size: 14px; }
.about__cols { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(20px,4vw,60px); }
.about__statement { grid-column: 1 / 7; }
.about__statement p { font-family: var(--f-display); font-size: clamp(20px,2.2vw,30px); line-height: 1.4; margin-bottom: 1.2em; font-weight: 320; }
.about__cv { grid-column: 8 / 13; }
.cv-block { margin-bottom: 2.6rem; }
.cv-block h3 { margin-bottom: 1rem; }
.cv-block .row { display: flex; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.cv-block .row .y { color: var(--bone-dim); min-width: 84px; font-variant-numeric: tabular-nums; }
@media (max-width: 880px) {
  .about__lead h1, .about__lead .meta, .about__statement, .about__cv { grid-column: 1 / -1; }
  .about__cv { margin-top: 40px; }
}
.about__portrait { overflow: hidden; margin: clamp(30px,5vh,56px) 0; }
.about__portrait img { width: 100%; height: auto; }
.about__portrait--tall { margin: 0 0 clamp(36px,5vh,60px); }
.about__statement p { font-family: var(--f-display); font-size: clamp(20px,2.2vw,30px); line-height: 1.4; margin-bottom: 1.2em; font-weight: 320; }
.about__contact { margin-top: clamp(90px,16vh,180px); }
.about__contact-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.about__email { font-family: var(--f-display); font-size: clamp(30px,5.5vw,76px); line-height: 1; letter-spacing: -0.02em; display: block; margin-top: 14px; transition: color .5s var(--ease); }
.about__email:hover { color: var(--gold); }
.about__social { display: flex; gap: 28px; padding-bottom: 10px; }

/* preloader logo (brush wordmark, inverted to bone) */
.preloader__logo {
  height: clamp(42px, 8vw, 92px); width: auto; margin: 0 auto;
  filter: brightness(0); opacity: 0.95;
  --p: 0;   /* 0 = hidden, 1 = fully painted on; driven by the preloader JS */
  -webkit-mask-image: linear-gradient(95deg, #000 calc(var(--p) * 132% - 32%), rgba(0,0,0,0) calc(var(--p) * 132%));
          mask-image: linear-gradient(95deg, #000 calc(var(--p) * 132% - 32%), rgba(0,0,0,0) calc(var(--p) * 132%));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* home preloader: the Higgsfield paint-on video + the real-mark settle target */
.preloader__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #fff;
}
.preloader__settle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60vw; max-width: 1400px; height: auto;
  filter: brightness(0); opacity: 0;
}

/* scroll progress bar (CSS scroll-driven; degrades to nothing) */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 850;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress-grow linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* CV rows — clean two-part layout, no dash separators */
.cv-block .row { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; }
.cv-block .row .d { display: block; }
.cv-block .row .t { color: var(--bone); }
.cv-block .row .v { color: var(--bone-dim); display: block; font-size: 13px; margin-top: 1px; }

/* Collaborations strip (About) — text, reliable across brand marks */
.collabs { margin: clamp(50px,8vh,96px) 0 0; padding-top: clamp(34px,5vh,56px); border-top: 1px solid var(--line); }
.collabs .u-label { display: block; margin-bottom: 22px; }
.collabs__names { display: flex; flex-wrap: wrap; gap: clamp(20px,4vw,60px); align-items: baseline; }
.collabs__names span {
  font-family: var(--f-display); font-size: clamp(22px,3vw,42px); font-weight: 320;
  color: var(--bone-dim); transition: color .4s var(--ease);
}
.collabs__names span:hover { color: var(--bone); }

/* =============================================================
   WORK (per-painting detail page)
   ============================================================= */
.work { padding-top: var(--nav-h); }
.work__hero { display: grid; grid-template-columns: 1.5fr 1fr; min-height: calc(100svh - var(--nav-h)); }
.work__stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  padding: clamp(36px,6vh,80px) clamp(24px,4vw,72px);
}
.work__img {
  max-width: 100%; max-height: 78vh; width: auto; cursor: zoom-in;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  opacity: 0; transform: scale(0.97) translateY(16px);
}
.work__img.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.work__img.is-zoomed { cursor: zoom-out; max-width: none; max-height: none; }
.work__panel {
  position: relative; padding: clamp(40px,7vh,96px) clamp(28px,3.4vw,64px);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center;
}
.work__series { color: var(--gold); }
.work__title { font-family: var(--f-display); font-size: clamp(38px,4.6vw,68px); line-height: 0.98; margin: 0.45em 0 0.9em; }
.work__specs { border-top: 1px solid var(--line); margin-bottom: clamp(22px,3vh,34px); }
.work__specs .row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.work__specs dt { color: var(--bone-dim); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.work__specs dd { color: var(--bone); text-align: right; }
.work__price { font-family: var(--f-display); font-size: 18px; margin-bottom: 1.3rem; }
.work__price .status { display: block; font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 8px; }
.work__actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.work__note { margin-top: 1.5rem; color: var(--bone-dim); font-size: 13px; line-height: 1.7; max-width: 42ch; }
@media (max-width: 900px) {
  .work__hero { grid-template-columns: 1fr; min-height: 0; }
  .work__panel { border-left: none; border-top: 1px solid var(--line); }
  .work__img { max-height: 64vh; }
  /* stack spec rows so the right-aligned values can't clip off a narrow screen */
  .work__specs .row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .work__specs .row dd { text-align: left; }
}

/* In-situ "view in a room" */
.room { padding: clamp(90px,16vh,180px) 0; }
.room__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px,4vh,48px); }
.room__head h2 { font-family: var(--f-display); font-size: clamp(26px,3.2vw,44px); }
.room__swatches { display: flex; gap: 10px; align-items: center; }
.room__swatches .u-label { margin-right: 6px; }
.room__sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.room__sw.is-active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--bone); }
.room__sw:hover { transform: scale(1.12); }
.room__scene {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  background-color: var(--wall-color, #f4f2ee);
  transition: background-color .6s var(--ease);
  border: 1px solid var(--line);
}
/* Concrete texture overlay — desaturated + soft-light so it adds light/dark variation
   to the wall WITHOUT shifting its true colour (works on both light and dark swatches,
   unlike multiply which crushes dark walls). Sits behind the artwork/figure (z-index 0). */
.room__scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url(/assets/film/wall-industrial.webp) center / cover no-repeat;
  filter: grayscale(1) contrast(1.12);
  mix-blend-mode: soft-light;
  opacity: 0.72;
}
/* keep painting, floor, shadow, figure, dimensions above the texture */
.room__scene > * { position: relative; z-index: 1; }
.room__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: rgba(0,0,0,0.16); }
.room__shadow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.28), transparent); filter: blur(4px); }
.room__person { position: absolute; bottom: 18%; }
.room__person svg { display: block; height: 100%; width: auto; fill: rgba(0,0,0,0.28); }
.room__scene.is-dark .room__person svg { fill: rgba(255,255,255,0.24); }
.room__scene.is-dark .room__floor { background: rgba(255,255,255,0.05); }
.room__scene.is-dark .room__dim { color: rgba(255,255,255,0.55); }
.room__art {
  position: absolute; background-size: cover; background-position: center;
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
  border: 2px solid rgba(255,255,255,0.5);
  outline: 1px solid rgba(0,0,0,0.12);
}
.room__dim {
  position: absolute; font-size: 11px; letter-spacing: 0.08em; color: rgba(0,0,0,0.72);
  font-variant-numeric: tabular-nums;
}
.room__note { margin-top: 16px; color: var(--bone-dim); font-size: 13px; }
@media (max-width: 640px) { .room__scene { aspect-ratio: 4 / 3; } }

/* Work story + more */
.work__story { padding: clamp(20px,4vh,40px) 0 clamp(60px,10vh,120px); }
.work__story .lede { font-family: var(--f-display); font-size: clamp(22px,2.6vw,36px); line-height: 1.3; max-width: 24ch; font-weight: 320; }
.work__story p { max-width: 60ch; color: var(--bone-2); margin-top: 1.4rem; }
.work__more { padding-bottom: clamp(80px,14vh,160px); }
.work__more .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.6vw,26px); }
@media (max-width: 760px) { .work__more .grid3 { grid-template-columns: repeat(2,1fr); } }

/* =============================================================
   COLLABORATIONS
   ============================================================= */
/* Home band — brand cred for agencies landing from the film/festival */
.home-collab { padding: clamp(90px,16vh,200px) 0; }
.home-collab__tiles {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 0.8vw, 14px); margin-top: clamp(30px,5vh,56px);
}
.home-collab__tile {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); display: block;
}
.home-collab__tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease); will-change: transform;
}
.home-collab__tile:hover img { transform: scale(1.07); }
.home-collab__tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,10,12,0.75), transparent 55%);
}
.home-collab__tile span {
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-media);
}
@media (max-width: 760px) { .home-collab__tiles { grid-template-columns: repeat(3, 1fr); } }

/* Dedicated collaborations page */
.collab-hero {
  position: relative; height: 76svh; min-height: 540px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.collab-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
}
.collab-hero__scrim {
  position: absolute; inset: 0;
  /* over-image scrim STAYS DARK so the light title reads on the artwork;
     bottom is darkest (text floor) and dissolves to the light page edge. */
  background: linear-gradient(to top, rgba(11,10,12,0.86) 0%, rgba(11,10,12,0.74) 9%, rgba(11,10,12,0.42) 50%, rgba(11,10,12,0.28) 100%),
              linear-gradient(to right, rgba(11,10,12,0.5), transparent 62%);
}
.collab-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(44px,8vh,96px); }
.collab-hero h1 {
  font-family: var(--f-display); font-size: clamp(40px,7.5vw,120px);
  line-height: 0.94; letter-spacing: -0.02em; color: var(--on-media);
}
.collab-hero p { margin-top: 1.5rem; max-width: 60ch; color: var(--on-media-dim); font-size: clamp(15px,1.4vw,18px); }
.collab-credit { margin-top: 1rem; color: var(--on-media-dim); font-size: 12px; letter-spacing: 0.06em; }

.collab-section { padding: clamp(70px,12vh,150px) 0 clamp(90px,16vh,180px); }
.collab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px,2.4vw,44px); }
.collab-tile { display: block; }
.collab-tile__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink-2); }
.collab-tile__media img {
  width: 100%; height: 100%; object-fit: cover; will-change: transform, filter;
  transform: scale(1.03); filter: blur(12px); opacity: 0;
  transition: transform 1s var(--ease), filter .9s var(--ease), opacity .8s ease;
}
.collab-tile.is-loaded .collab-tile__media img { filter: blur(0); opacity: 1; }
.collab-tile:hover .collab-tile__media img { transform: scale(1.06); }
.collab-tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 2px 0; }
.collab-tile__cap h3 { font-family: var(--f-display); font-size: clamp(22px,2.5vw,36px); }
.collab-tile__cap .kind { color: var(--bone-dim); font-size: 13px; letter-spacing: 0.04em; text-align: right; white-space: nowrap; }
@media (max-width: 680px) { .collab-grid { grid-template-columns: 1fr; } .collab-tile__cap .kind { white-space: normal; } }

/* =============================================================
   IMMERSIVE ROOM (3D spherical gallery)
   ============================================================= */
.room-body { overflow: hidden; height: 100vh; }
.room-canvas { position: fixed; inset: 0; z-index: 1; display: block; touch-action: none; }
.room-vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 48%, transparent 42%, rgba(247,244,238,0.92) 100%);
}
.room-loader {
  position: fixed; inset: 0; z-index: 900; background: var(--ink);
  display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s;
}
.room-loader.is-done { opacity: 0; visibility: hidden; }
.room-loader__bar { width: min(240px, 50vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.room-loader__bar i { position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: room-load 1.2s var(--ease-io) infinite; }
@keyframes room-load { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }

.room-hud { position: fixed; left: 0; right: 0; bottom: 26px; z-index: 10; text-align: center; pointer-events: none; }
.room-cap {
  position: fixed; left: 50%; bottom: 58px; transform: translateX(-50%) translateY(8px);
  z-index: 11; pointer-events: none; color: var(--bone);
  font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px);
  padding: 0.5em 1.1em; border-radius: 100px;
  background: rgba(255,255,255,0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  opacity: 0; transition: opacity .4s var(--ease), transform .4s var(--ease); white-space: nowrap;
}
.room-cap.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.room-cap strong { font-weight: 360; }

.room-detail {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(247,244,238,0.94); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.room-detail.is-open { opacity: 1; visibility: visible; }
.room-detail__inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px,4vw,64px);
  width: min(1100px, 90vw); align-items: center;
  transform: scale(0.96) translateY(12px); transition: transform .6s var(--ease);
}
.room-detail.is-open .room-detail__inner { transform: none; }
.room-detail__media img { width: 100%; max-height: 76vh; object-fit: contain; box-shadow: 0 36px 90px rgba(0,0,0,0.22); }
.room-detail__series { color: var(--gold); }
.room-detail__title { font-family: var(--f-display); font-size: clamp(32px,4vw,56px); line-height: 1; margin: 0.45em 0 0.9em; }
.room-detail__specs { border-top: 1px solid var(--line); margin-bottom: 1.4rem; }
.room-detail__specs .row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.room-detail__specs dt { color: var(--bone-dim); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.room-detail__specs dd { text-align: right; }
.room-detail__price { font-family: var(--f-display); font-size: clamp(24px,2.6vw,36px); margin-bottom: 1.6rem; }
.room-detail__price .status { display: block; font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 8px; }
.room-detail__close {
  position: fixed; top: 24px; right: 26px; z-index: 5; width: 50px; height: 50px;
  border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center;
  background: rgba(247,244,238,0.6); backdrop-filter: blur(6px); transition: background .4s, color .4s, border-color .4s;
}
.room-detail__close:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
@media (max-width: 820px) {
  .room-detail__inner { grid-template-columns: 1fr; gap: 24px; max-height: 80vh; overflow-y: auto; }
  .room-detail__media img { max-height: 42vh; }
}

/* =============================================================
   COLLABORATION PROJECT (detail page)
   ============================================================= */
.cproj { padding-top: var(--nav-h); }
.cproj__hero { max-width: 70ch; margin: 0 auto; text-align: center; padding: clamp(70px,13vh,150px) var(--gut) clamp(50px,8vh,90px); }
.cproj__hero .u-label { color: var(--gold); display: block; margin-bottom: 1.4rem; }
.cproj__title { font-family: var(--f-display); font-size: clamp(40px,7vw,98px); line-height: 0.98; letter-spacing: -0.02em; }
.cproj__role { color: var(--bone-2); font-size: clamp(15px,1.6vw,19px); margin: 0.7em 0 1.5rem; }
.cproj__intro { color: var(--bone-2); max-width: 58ch; margin: 0 auto; line-height: 1.8; }
.cproj__intro + .cproj__intro { margin-top: 1.1rem; }
.cproj__section { max-width: 60ch; margin: clamp(30px,5vh,56px) auto 0; text-align: center; }
.cproj__section h3 { font-family: var(--f-display); font-size: clamp(22px,2.6vw,32px); margin-bottom: 0.6em; }
.cproj__section p { color: var(--bone-2); line-height: 1.8; }

.cproj__gallery { column-count: 2; column-gap: clamp(12px,1.6vw,26px); padding-bottom: clamp(40px,7vh,90px); }
.cproj__gallery figure { margin: 0 0 clamp(12px,1.6vw,26px); overflow: hidden; background: var(--ink-2); break-inside: avoid; }
.cproj__gallery img { width: 100%; height: auto; display: block; transform: scale(1.02); transition: transform 1s var(--ease), filter .9s var(--ease), opacity .8s ease; filter: blur(10px); opacity: 0; }
.cproj__gallery figure.is-loaded img { filter: blur(0); opacity: 1; }
.cproj__gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 680px) { .cproj__gallery { column-count: 1; } }

.cproj__film { max-width: 1100px; margin: 0 auto clamp(50px,9vh,120px); }
.cproj__film .frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); overflow: hidden; }
.cproj__film video, .cproj__film iframe { width: 100%; height: 100%; display: block; border: 0; }
.cproj__film .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cproj__film .play { position: absolute; inset: 0; display: grid; place-items: center; }
.cproj__film .play span { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--on-media); display: grid; place-items: center; background: rgba(11,10,12,0.4); backdrop-filter: blur(4px); color: var(--on-media); font-size: 22px; }
.cproj__film .note { text-align: center; color: var(--bone-dim); font-size: 13px; margin-top: 14px; }

.cproj__next { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(40px,7vh,90px) 0; border-top: 1px solid var(--line); }
.cproj__next .u-label { color: var(--bone-dim); }
.cproj__next a { font-family: var(--f-display); font-size: clamp(28px,4.5vw,60px); line-height: 1; color: var(--bone); transition: color .45s var(--ease); }
.cproj__next a:hover { color: var(--gold); }

/* =============================================================
   LARGE SCREENS / 4K — lift the fixed-size UI so it fills the wall.
   (clamp()-based headings already scale with the viewport.)
   ============================================================= */
@media (min-width: 1800px) {
  :root { --maxw: 1680px; --nav-h: 94px; }
  body { font-size: 19px; }
  .nav__logo { height: 34px; }
  .nav__links { gap: clamp(28px, 2.6vw, 48px); }
  .nav__links a { font-size: 15px; }
  .u-label { font-size: 12.5px; }
  .btn { font-size: 14px; }
  .card__info h3 { font-size: 24px; }
}
@media (min-width: 2560px) {
  :root { --maxw: 2120px; --nav-h: 116px; }
  body { font-size: 22px; }
  .nav__logo { height: 44px; }
  .nav__links { gap: 56px; }
  .nav__links a { font-size: 18px; }
  .u-label { font-size: 14px; letter-spacing: 0.24em; }
  .btn { font-size: 16px; padding: 1.15em 2.1em; }
  .card__info h3 { font-size: 30px; }
  .card__info .yr, .card__price { font-size: 16px; }
  .card__badge { font-size: 12.5px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card__media img, .hero__media img, .work__img { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ---------- Enquiry modal (acquire / ask / enquire) ---------- */
.enquiry { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 40px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.enquiry.is-open { opacity: 1; visibility: visible; }
.enquiry__scrim { position: absolute; inset: 0; background: rgba(26, 23, 20, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.enquiry__panel { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: clamp(26px, 4vw, 46px); box-shadow: 0 40px 120px rgba(26, 23, 20, 0.30); transform: translateY(16px); transition: transform .5s var(--ease); }
.enquiry.is-open .enquiry__panel { transform: none; }
.enquiry__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; color: var(--bone-2); transition: color .3s, border-color .3s; }
.enquiry__close:hover { color: var(--bone); border-color: var(--bone); }
.enquiry__panel h2, .enquiry__ok h3 { font-family: var(--f-display); font-weight: 360; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.05; letter-spacing: -0.01em; margin-top: 10px; }
.enquiry__work { margin-top: 12px; color: var(--bone); font-size: 15px; }
.enquiry__intro { margin-top: 6px; color: var(--bone-2); font-size: 14px; max-width: 46ch; }
.enquiry__form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.enquiry__form label { display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-2); }
.enquiry__form .req { color: var(--gold); }
.enquiry__form .opt { color: var(--bone-dim); text-transform: none; letter-spacing: 0; }
.enquiry__form input[type=text], .enquiry__form input[type=email], .enquiry__form input[type=tel], .enquiry__form textarea {
  background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 0.85em 1em; color: var(--bone); font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; transition: border-color .3s; }
.enquiry__form input:focus, .enquiry__form textarea:focus { outline: none; border-color: var(--bone); }
.enquiry__form textarea { resize: vertical; min-height: 84px; }
.eq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eq-choice { border: 0; }
.eq-choice legend { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-2); margin-bottom: 10px; padding: 0; }
.eq-pills { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.eq-pills .pill { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--bone); cursor: pointer; }
.eq-pills .pill input { accent-color: var(--gold); }
.enquiry__form #eqSubmit { align-self: flex-start; margin-top: 4px; }
.enquiry__note { font-size: 12.5px; color: var(--bone-dim); text-transform: none; letter-spacing: 0; }
.enquiry__note a { text-decoration: underline; text-underline-offset: 3px; }
.enquiry__form.eq-bad-name [name=name], .enquiry__form.eq-bad-email [name=email] { border-color: var(--sold); }
.enquiry__ok { padding: 6px 0 4px; }
.enquiry__ok p { margin-top: 12px; color: var(--bone-2); max-width: 46ch; }
.enquiry__ok .btn { margin-top: 24px; }
@media (max-width: 520px) { .eq-row2 { grid-template-columns: 1fr; } }


/* ===== v8: LIMINAL COLLECTIONS gallery — SVG-mask feathered portal reveal =====
   The plate is a real photo of a white-cube gallery with 5 real blank canvases
   (3 frontal, 2 on the angled side walls). On hover the painting MATERIALISES
   inside the exact canvas quad — perspective-correct on the slanted side walls
   (two-triangle affine texture map) — and its perimeter is GENUINELY FEATHERED
   (an SVG <mask> of the quad polygon, Gaussian-blurred via feGaussianBlur) so it
   fades to transparent BEFORE the canvas edge: a glowing, contained portal. No
   clip-path hard line; no rectangle; no spill. The reveal is a smooth eased fade
   (~0.85s): opacity in + a centre bloom growing + blur->sharp crossfade.
   Geometry (quad corners, tri1/tri2 affine matrices, centroids) measured &
   verified against the plate in _proto/sim/. Ported from
   _proto/collections-v2-svgmask.html. */
.lim { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #eceae3;
  --reveal: .85s; }
/* The stage IS the plate's own box (its native aspect), scaled to COVER the
   viewport and centred. Hotspots / SVG units are % / px of THIS box, so they
   track the plate's canvases identically at every screen aspect (no crop drift). */
.lim__stage {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -42%);
  aspect-ratio: 1920 / 1434;
  width: max(100%, calc(100svh * 1920 / 1434));
  height: auto;
}
.lim__parallax {
  position: relative; width: 100%; height: 100%;
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.03);
  will-change: transform;
}
/* over the gallery, drop the custom cursor for a clean native pointer */
body.lim-nocursor .cursor { display: none !important; }
.lim__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
/* The reveal SVG sits exactly over the plate, same box, plate-px viewBox. */
.lim__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; overflow: visible; }
/* Invisible hotspot layer carries pointer + focus, aligned to each quad's
   bounding box so hover/keyboard work without blocking the parallax. */
.lim__hotspots { position: absolute; inset: 0; }

/* Each .hot is an INVISIBLE hotspot aligned (bbox in %) to one of the film's own
   blank canvases. At rest nothing is drawn — the real photographed canvas shows
   through. On hover JS toggles .is-on on the matching SVG group + plaque. */
.hot {
  position: absolute; display: block; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent; outline: none;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
}
.hot:focus-visible { outline: 2px solid var(--bone); outline-offset: 6px; border-radius: 2px; }

/* One revealed painting group (inside the SVG). At rest opacity 0 and softly
   blurred + scaled down a hair (bloom-from-centre). On reveal it eases to full
   opacity, sharp, scale 1. The group is MASKED by the feathered quad + bloom so
   its edges are always soft. */
.art-g {
  opacity: 0;
  /* No transform on the resting state and opacity-only transition: the group
     stays pinned in its quad and just fades. The old scale(.965) about a
     --ox/--oy origin (plate-px inside a responsive SVG, so mis-scaled) made the
     group scale toward the wrong pivot on hover-OFF, which is what produced the
     detached/offset painting frame shifted to the bottom-right for ~0.5s. */
  transition: opacity var(--reveal) var(--ease);
  will-change: opacity;
}
/* the blur->sharp lives on a filter so it doesn't fight the mask */
.art-blur { filter: url(#soft); }
/* Two stacked copies: a blurred ghost (fades OUT) and a sharp layer (fades IN)
   give the photographic "develop" without animating filter primitives. */
.art-sharp { opacity: 0; transition: opacity var(--reveal) var(--ease) .08s; }
.art-ghost { opacity: 0; transition: opacity calc(var(--reveal) * .7) var(--ease); }
/* The bloom: a growing ellipse from the centroid INSIDE the mask, so the
   painting is unveiled from the centre outward. */
.bloom-g {
  transform: scale(.18);
  transform-box: fill-box;
  transform-origin: var(--ox) var(--oy);
  transition: transform calc(var(--reveal) * 1.1) var(--ease);
}
/* REVEAL trigger: JS sets .is-on on the SVG group (and the plaque) on hover/focus. */
.art-g.is-on { opacity: 1; }
.art-g.is-on .art-sharp { opacity: 1; }
.art-g.is-on .art-ghost { opacity: 0; }
.art-g.is-on .bloom-g { transform: scale(1.18); }

/* plaque — HTML, % positioned at each quad's centre / bottom */
.lim__plaques { position: absolute; inset: 0; pointer-events: none; }
.plaque {
  position: absolute; left: calc(var(--cx) * 1%); top: calc(var(--by) * 1%);
  transform: translate(-50%, 12px);
  text-align: center; white-space: nowrap;
  opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.plaque.is-on { opacity: 1; transform: translate(-50%, 16px); }
.plaque__name {
  display: block; font-family: var(--f-display); font-weight: 360;
  font-size: clamp(14px, 1.15vw, 19px); letter-spacing: 0.01em; color: var(--bone);
  text-shadow: 0 1px 14px rgba(247, 244, 238, .7);
}
.plaque__meta {
  display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  text-shadow: 0 1px 12px rgba(247, 244, 238, .7);
}

.lim__head {
  position: absolute; z-index: 5; left: 0; right: 0;
  top: calc(var(--nav-h) + clamp(6px, 2.4vh, 28px));
  text-align: center; padding: 0 var(--gut); pointer-events: none;
}
.lim__eyebrow { display: block; margin-bottom: 8px; color: var(--bone-2); }
.lim__title { font-family: var(--f-display); font-weight: 330; font-size: clamp(26px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.lim__title em { font-style: italic; font-weight: 300; }
.lim__scroll {
  position: absolute; left: 50%; bottom: clamp(14px, 3vh, 28px); transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; gap: 0.6em; color: var(--bone-dim); pointer-events: none;
}

/* click → zoom into the chosen canvas, then navigate */
.lim.is-entering .lim__parallax { transition: transform 2.4s var(--ease), opacity 2.2s ease; transform: scale(2.5); opacity: 0; }
.lim.is-entering .lim__head, .lim.is-entering .lim__scroll { opacity: 0; transition: opacity .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .lim__parallax { transform: scale(1.03); }
  .art-g { transition: opacity .3s linear; transform: none; }
  .art-g.is-on { transform: none; }
  .bloom-g { transition: none; transform: scale(1.25); }
  .art-sharp, .art-ghost { transition: opacity .3s linear; }
}

/* ===== v8: per-work artwork lightbox (full-res, move to pan across the brushwork) ===== */
.work__zoom-hint {
  position: absolute; left: 50%; bottom: clamp(12px, 2.6vh, 24px); transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-2); opacity: 0.6; pointer-events: none; white-space: nowrap;
  transition: opacity .4s var(--ease);
}
.work__stage:hover .work__zoom-hint { opacity: 0.95; }
.work__img { cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 1000; visibility: hidden; display: grid; place-items: center; }
.lightbox.is-open { visibility: visible; }
.lightbox__scrim {
  position: absolute; inset: 0; background: rgba(8, 7, 9, 0.93); opacity: 0;
  backdrop-filter: blur(10px); transition: opacity .5s var(--ease); cursor: zoom-out;
}
.lightbox.is-open .lightbox__scrim { opacity: 1; }
.lightbox__stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; z-index: 1; }
.lightbox__img {
  max-width: 92vw; max-height: 92vh; width: auto; height: auto;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  opacity: 0; transform: scale(0.96); cursor: zoom-in; will-change: transform;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.lightbox.is-open .lightbox__img { opacity: 1; transform: none; }
.lightbox__img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; transition: none; box-shadow: none; }
.lightbox__close {
  position: absolute; top: clamp(16px,2.4vw,28px); right: clamp(16px,2.4vw,28px);
  width: 46px; height: 46px; border-radius: 50%; z-index: 3; cursor: pointer;
  border: 1px solid rgba(236,231,221,0.32); background: rgba(12,11,13,0.5); color: #ece7dd;
  font-size: 16px; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.lightbox__close:hover { background: #ece7dd; color: #111; border-color: #ece7dd; }
.lightbox__hint {
  position: absolute; bottom: clamp(14px,2.6vh,24px); left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(236,231,221,0.6); pointer-events: none;
}
@media (max-width: 640px) { .lightbox__img { max-width: 96vw; max-height: 86vh; } }

/* ===== v8: one-at-a-time collection viewer ===== */
/* A single big painting centred per screen; scroll down for the next.
   Scroll-snap settles each work in the centre of the viewport.
   All selectors scoped under .collection so nothing leaks. */
.collection {
  scroll-snap-type: y proximity;
  /* the page itself is the scroll container, so snapping reads off the document scroll */
}

/* ---- Collection header (eyebrow + title) ---- */
.collection__header {
  padding: calc(var(--nav-h) + clamp(26px, 5vh, 56px)) var(--gut) clamp(18px, 3vh, 34px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.collection__eyebrow { display: block; color: var(--gold); }
.collection__title {
  margin-top: 0.4rem;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.96;
}
.collection__back {
  margin-top: 1.8rem;
  align-self: flex-start;
  color: var(--bone-2);
  transition: color .4s var(--ease);
}
.collection__back:hover { color: var(--bone); }

/* ---- One work per screen ---- */
.collection__work {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 96px) var(--gut);
  scroll-snap-align: center;
}
.collection__index {
  position: absolute;
  top: clamp(20px, 4vh, 48px);
  left: var(--gut);
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}

.collection__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.6vh, 34px);
  text-align: center;
  max-width: 100%;
}
.collection__frame {
  display: block;
  max-width: min(92vw, 1100px);
}
.collection__frame img {
  width: auto;
  max-width: min(92vw, 1100px);
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 30px 70px -34px rgba(26, 23, 20, 0.45);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.collection__work.is-loaded .collection__frame img { opacity: 1; transform: none; }

/* ---- Caption ---- */
.collection__cap { max-width: 52ch; }
.collection__name {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.05;
}
.collection__meta {
  margin-top: 0.6rem;
  color: var(--bone-2);
  font-size: 14.5px;
  letter-spacing: 0.01em;
}
.collection__price {
  margin-top: 0.5rem;
  font-size: 16px;
  color: var(--bone);
}
.collection__cur { font-size: 12.5px; color: var(--bone-dim); }
.collection__view {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--bone-2);
}
.collection__view:hover { color: var(--bone); }

/* ---- Subtle prev / next affordances (scroll is the primary interaction) ---- */
.collection__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(8px, 2vw, 28px);
  pointer-events: none;
}
.collection__arrow {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--bone-2);
  font-size: 22px;
  line-height: 1;
  background: rgba(247, 244, 238, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0.4;
  transition: opacity .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.collection__work:hover .collection__arrow { opacity: 0.85; }
.collection__arrow:hover { opacity: 1; color: var(--bone); border-color: var(--bone); }

/* ---- Graceful empty state (mudi / sjalf) ---- */
.collection__empty {
  min-height: calc(86svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  padding: clamp(40px, 10vh, 120px) var(--gut);
}
.collection__empty-lede { font-size: clamp(28px, 5vw, 58px); }
.collection__empty-note { max-width: 46ch; color: var(--bone-2); }
.collection__empty .btn { margin-top: 0.8rem; }

@media (max-width: 760px) {
  .collection__frame img { max-height: 64vh; }
  .collection__arrow { width: 44px; height: 44px; font-size: 19px; opacity: 0.7; }
}

/* ===== v8: Collections — mobile fallback (the liminal room is desktop-only) ===== */
.lim-mobile { display: none; }
@media (max-width: 768px) {
  .lim { display: none; }
  .lim-mobile {
    display: block;
    padding: calc(var(--nav-h) + 26px) var(--gut) 64px;
    max-width: 640px; margin: 0 auto;
  }
  .lim-mobile__eyebrow { display: block; color: var(--gold); margin-bottom: 8px; }
  .lim-mobile__title {
    font-family: var(--f-display); font-weight: 330;
    font-size: clamp(38px, 13vw, 60px); line-height: 0.95; letter-spacing: -0.02em;
  }
  .lim-mobile__list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
  .mcoll {
    position: relative; display: block; text-decoration: none; color: var(--bone);
    border-radius: 5px; overflow: hidden; background: #eceae3;
    box-shadow: 0 16px 36px -22px rgba(26,23,20,0.5);
  }
  .mcoll__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .mcoll__cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
    background: linear-gradient(to top, rgba(20,18,17,0.72), rgba(20,18,17,0.18) 55%, transparent);
  }
  .mcoll__name { display: block; font-family: var(--f-display); font-weight: 360; font-size: 23px; line-height: 1; color: #f7f4ee; }
  .mcoll__meta { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247,244,238,0.85); }
}

/* collections desktop: a quiet cue that the blank canvases reveal on hover */
.lim__hint { display: block; margin-top: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); }
.lim.is-entering .lim__hint { opacity: 0; transition: opacity .35s ease; }

