/* Anna Katsur — portfolio
   Gallery-white paper, black ink. The only red on screen comes from the paintings. */

@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Light_0.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Regular_0.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Medium_0.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --paper: #EDEBE6;
  --paper-2: #E4E1DA;
  --ink: #111110;
  --mute: #7D7A74;
  --rule: rgba(17, 17, 16, .16);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Gilroy", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- type ---------- */
.label {
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.label--mute { color: var(--mute); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
em, .it { font-style: italic; }

.display {
  font: 400 clamp(56px, 13.2vw, 260px)/.82 var(--serif);
  letter-spacing: -.035em;
  margin: 0;
}
.h1 { font: 400 clamp(44px, 8vw, 150px)/.9 var(--serif); letter-spacing: -.03em; margin: 0; }
.h2 { font: 400 clamp(34px, 4.6vw, 80px)/.95 var(--serif); letter-spacing: -.02em; margin: 0; }
.lead { font: 400 clamp(24px, 2.9vw, 46px)/1.12 var(--serif); letter-spacing: -.01em; margin: 0; }
.body { font-size: 16px; line-height: 1.6; max-width: 34em; }
.body p { margin: 0 0 1em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.site-header a, .site-header button { pointer-events: auto; }
.site-header .brand { justify-self: start; }
.site-header .hmail { justify-self: center; }
.site-header .hmail:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-header nav { justify-self: end; display: flex; gap: clamp(14px, 2.4vw, 36px); }
.site-header nav a { position: relative; }
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0d0d0c; color: #fff; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, rgba(0,0,0,.08) 30%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.55) 100%); }
.hero__inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--gutter) clamp(18px, 3vw, 36px);
}
.hero__meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(10px, 1.6vw, 22px); }
.hero__slogan { font: italic 400 clamp(22px, 2.4vw, 38px)/1 var(--serif); }
.hero .display { white-space: nowrap; margin-left: -.04em; }
.hero__foot { display: flex; justify-content: space-between; margin-top: 14px; }
.scroll-cue { display: inline-flex; gap: 10px; align-items: center; }
.scroll-cue i { width: 34px; height: 1px; background: currentColor; display: inline-block; transform-origin: left; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 200px) var(--gutter); }
.section--tight { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(36px, 6vw, 96px);
}
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }

.bio .lead { grid-column: 1 / span 10; text-indent: 16.6%; }
.statement { margin-top: clamp(64px, 9vw, 150px); }
.statement .label { grid-column: 1 / span 3; }
.statement .body { grid-column: 4 / span 5; }
.statement .quote { grid-column: 9 / span 4; align-self: end; font: italic 400 clamp(26px, 2.6vw, 42px)/1.05 var(--serif); }

/* ---------- the wall (true scale) ---------- */
.series-title { margin-bottom: clamp(24px, 3vw, 48px); }
.series-title .h1 .it { padding-right: .05em; }
.series-intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-bottom: clamp(40px, 6vw, 90px); }
.series-intro .meta { grid-column: 1 / span 4; }
.series-intro .lead { grid-column: 5 / span 8; }

.wall {
  --cm: min(.37vh, .5vw);
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  overflow-x: auto; overflow-y: hidden;
  cursor: grab; scrollbar-width: none;
  background: var(--paper-2);
}
.wall::-webkit-scrollbar { display: none; }
.wall.is-drag { cursor: grabbing; }
.wall__track {
  display: flex; align-items: flex-end; gap: calc(var(--cm) * 38);
  width: max-content;
  padding: calc(var(--cm) * 22) calc(var(--gutter) + var(--cm) * 30) 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.wall__item { flex: none; width: calc(var(--w) * var(--cm)); margin-bottom: calc(var(--cm) * 34); }
.wall__item img { width: 100%; height: auto; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 30px -18px rgba(0,0,0,.45); user-select: none; -webkit-user-drag: none; }
.wall__item figcaption { position: absolute; transform: translateY(10px); white-space: nowrap; }
.wall__item { position: relative; }
.wall__figure { flex: none; align-self: flex-end; width: calc(var(--cm) * 46); height: calc(var(--cm) * 172); color: var(--ink); }
.wall__figure svg { width: 100%; height: 100%; display: block; }
.wall__ruler {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter) 0;
}

/* ---------- captions ---------- */
.cap { margin-top: 12px; font-size: 13px; line-height: 1.35; }
.cap .t { font-style: italic; font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.cap .m { color: var(--mute); }

/* ---------- series index (other series) ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a, .index .row {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--gutter); align-items: baseline;
  padding: clamp(14px, 1.8vw, 26px) 0;
  transition: padding .5s var(--ease), color .3s;
}
.index .name { font: 400 clamp(32px, 4.4vw, 72px)/1 var(--serif); letter-spacing: -.02em; }
.index a:hover { padding-left: clamp(12px, 2vw, 32px); }
.index a:hover .arrow { transform: translateX(6px); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 14px 22px; transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- available ---------- */
.available { background: var(--ink); color: var(--paper); }
.available .section-head { border-color: var(--paper); }
.available .h1 { grid-column: 1 / span 9; }
.available .body { grid-column: 9 / span 4; margin-top: 32px; color: #bdbab3; }
.available .btn { border-color: var(--paper); }
.available .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- footer / contact ---------- */
.site-footer { padding: clamp(80px, 10vw, 160px) var(--gutter) 22px; border-top: 1px solid var(--ink); }
.mail {
  display: block; font: 400 clamp(36px, 8.4vw, 160px)/.9 var(--serif); letter-spacing: -.035em;
  word-break: break-word; margin: 20px 0 clamp(56px, 8vw, 120px);
  transition: font-style .2s;
}
.mail:hover { font-style: italic; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.site-footer .cols a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- works page ---------- */
.page-top { padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(30px, 4vw, 60px); }
.subnav {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: clamp(14px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none;
  padding: 58px var(--gutter) 14px; background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; color: var(--mute); transition: color .3s; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }

.series { padding: clamp(70px, 9vw, 150px) var(--gutter) 0; scroll-margin-top: 90px; }
.series + .series { margin-top: clamp(40px, 6vw, 90px); }

/* rows: item widths proportional to real canvas widths, bottom-aligned like a hang */
.hang { display: flex; flex-direction: column; gap: clamp(70px, 9vw, 160px); }
.hang__row { display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 70px); width: min(100%, calc(var(--sum) / 300 * 100%)); }
.hang__row--right { margin-left: auto; }
.hang__row--center { margin-left: auto; margin-right: auto; }
.hang__row--hero { width: 100%; }
.hang__row > figure { margin: 0; flex: var(--w) 1 0; min-width: 0; }
.hang img, .views img { width: 100%; height: auto; cursor: zoom-in; }

.views { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gutter); align-items: end; margin-top: clamp(70px, 9vw, 150px); }
.views figure { margin: 0; }

.textonly {
  border: 1px solid var(--rule); padding: clamp(24px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
}
.textonly .body { grid-column: 1 / span 7; }
.textonly .label { grid-column: 9 / span 4; align-self: end; justify-self: end; text-align: right; }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.about-hero figure { grid-column: 1 / span 5; margin: 0; }
.about-hero .lead { grid-column: 7 / span 6; }
.cv { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.cv h3 { grid-column: 1 / span 3; margin: 0; }
.cv ol { grid-column: 4 / span 9; list-style: none; margin: 0 0 clamp(48px, 6vw, 90px); padding: 0; border-top: 1px solid var(--ink); }
.cv li { display: grid; grid-template-columns: 90px 1fr auto; gap: var(--gutter); padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cv li .what { font: 400 clamp(20px, 1.7vw, 26px)/1.15 var(--serif); }
.cv li .what small { display: block; font: 400 13px/1.4 var(--sans); color: var(--mute); margin-top: 4px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.strip::-webkit-scrollbar { display: none; }
.strip img { height: clamp(260px, 38vw, 560px); width: auto; max-width: none; cursor: zoom-in; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__top, .lb__bot { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.lb__stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0; }
.lb__nav { display: flex; gap: 28px; }
.lb .cap { margin: 0; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .hmail { display: none; }
  .hero .display { font-size: 17.5vw; white-space: normal; }
  .hero__meta { flex-direction: column; align-items: start; gap: 8px; }
  .bio .lead, .statement .label, .statement .body, .statement .quote,
  .series-intro .meta, .series-intro .lead, .available .h1, .available .body,
  .about-hero figure, .about-hero .lead, .cv h3, .cv ol,
  .textonly .body, .textonly .label { grid-column: 1 / -1; }
  .bio .lead { text-indent: 0; }
  .statement .body, .statement .quote, .series-intro .lead, .about-hero .lead { margin-top: 24px; }
  .textonly .label { justify-self: start; text-align: left; margin-top: 20px; }
  .wall { --cm: .58vw; }
  .wall__ruler { flex-direction: column; gap: 8px; }
  .hang__row { flex-direction: column; align-items: stretch; }
  .hang__row { width: 100%; }
  .hang__row > figure { width: 100%; flex: none; }
  .views { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .cv li { grid-template-columns: 56px 1fr; }
  .cv li .tag { grid-column: 2; }
  .index a, .index .row { grid-template-columns: 1fr auto; }
  .index .yr { display: none; }
}

/* ---------- placeholders: text in [brackets] still to be filled ---------- */
.tbd { color: var(--mute); border-bottom: 1px dashed currentColor; font-style: normal; }
.available .tbd, .dark .tbd { color: #8f8b84; }
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed rgba(17,17,16,.3); color: var(--mute); width: 100%;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17,17,16,.035) 14px 15px);
}

/* ---------- dark band ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .section-head { border-color: var(--paper); }
.dark .label--mute, .dark .cap .m { color: #9a968f; }
.dark .btn { border-color: var(--paper); }
.dark .btn:hover { background: var(--paper); color: var(--ink); }
.dark img { cursor: zoom-in; }

/* ---------- home ---------- */
.wall__item .cap { position: absolute; left: 0; top: 100%; white-space: nowrap; margin-top: 10px; }
.wall__item .cap .m { font-size: 12px; }
.archive-mini { list-style: none; margin: clamp(40px, 5vw, 70px) 0 0; padding: 0; columns: 2; column-gap: calc(var(--gutter) * 2); font-size: 14px; }
.archive-mini li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; align-items: baseline; }
.archive-mini .m { color: var(--mute); }
.links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.artist .h2 { font-size: clamp(32px, 4.2vw, 72px); }

/* ---------- footer ---------- */
.site-footer .slogan { font: italic 400 clamp(48px, 11vw, 210px)/.86 var(--serif); letter-spacing: -.035em; margin: 0 0 clamp(48px, 7vw, 110px); }
.site-footer .clock { justify-self: end; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- paintings sequence ---------- */
.seq { padding: clamp(40px, 6vw, 100px) var(--gutter) 0; display: flex; flex-direction: column; gap: clamp(90px, 12vw, 220px); }
.seq__item { margin: 0; position: relative; width: min(100%, calc(var(--w) / 160 * 100%)); scroll-margin-top: 90px; }
.seq__item--l { align-self: flex-start; }
.seq__item--r { align-self: flex-end; }
.seq__item--c { align-self: center; }
.seq__item img { width: 100%; height: auto; cursor: zoom-in; }
.seq__no {
  position: absolute; top: -.1em; font: 400 clamp(56px, 7vw, 130px)/.8 var(--serif); letter-spacing: -.03em;
}
.seq__no span { font-size: .28em; letter-spacing: 0; color: var(--mute); vertical-align: top; }
.seq__item--l .seq__no, .seq__item--c .seq__no { left: calc(100% + var(--gutter)); }
.seq__item--r .seq__no { right: calc(100% + var(--gutter)); }
.detail { aspect-ratio: 4 / 3; background-size: 520% auto; background-position: 66% 93%; background-repeat: no-repeat; }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); padding-top: 24px; }
.pager a:hover .arrow { transform: translateX(8px); }

/* ---------- exhibitions ---------- */
.story { padding: clamp(60px, 8vw, 130px) var(--gutter) 0; scroll-margin-top: 60px; }
.story__views { display: grid; grid-template-columns: 6fr 4fr 2.4fr; gap: var(--gutter); align-items: end; margin-top: clamp(32px, 4vw, 64px); }
.story__views .ph:nth-child(1) { aspect-ratio: 3 / 2; }
.story__views .ph:nth-child(2) { aspect-ratio: 4 / 5; }
.story__views .ph:nth-child(3) { aspect-ratio: 3 / 4; }
.table-wrap { overflow-x: auto; }
.archive { width: 100%; border-collapse: collapse; min-width: 760px; }
.archive th { text-align: left; font-weight: 500; padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.archive td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14px; }
.archive td.ttl { font: 400 clamp(20px, 1.7vw, 26px)/1.15 var(--serif); }
.thumbs { display: flex; gap: 6px; margin-top: 10px; }
.thumbs img { height: 54px; width: auto; cursor: zoom-in; filter: grayscale(1); transition: filter .3s; }
.thumbs img:hover { filter: none; }

@media (max-width: 820px) {
  .archive-mini { columns: 1; }
  .seq__item { width: 100%; }
  .seq__no { position: static; margin-bottom: 14px; font-size: 56px; }
  .story__views { grid-template-columns: 1fr 1fr; }
  .story__views .ph:nth-child(1) { grid-column: 1 / -1; }
  .artist figure, .artist > div, .about-hero .display { grid-column: 1 / -1 !important; }
  .artist > div { margin-top: 24px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .clock { justify-self: start; text-align: left; }
  .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .grid > [style*="grid-column"] + [style*="grid-column"] { margin-top: 24px; }
}

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

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px var(--gutter);
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1);
}
.loader__n { font: 400 clamp(120px, 30vw, 520px)/.8 var(--serif); letter-spacing: -.04em; align-self: flex-end; font-variant-numeric: tabular-nums; }
.loader.is-done { transform: translateY(-101%); }
html:not(.js) .loader { display: none; }

/* ---------- page curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 250; background: var(--ink); pointer-events: none; transform: translateY(0); }
html:not(.js) .curtain { display: none; }
.curtain.is-out { transform: translateY(-101%); transition: transform 1s cubic-bezier(.76, 0, .24, 1) .05s; }
.curtain.is-gone { visibility: hidden; }
.curtain.is-in { animation: curtainIn .65s cubic-bezier(.76, 0, .24, 1) forwards; }
@keyframes curtainIn { from { transform: translateY(101%); } to { transform: translateY(0); } }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 260; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 280; pointer-events: none; mix-blend-mode: difference;
  width: 0; height: 0;
}
.cursor::before {
  content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff; transition: transform .45s var(--ease), opacity .3s;
}
.cursor span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); color: #000;
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .25s;
}
.cursor[data-mode="link"]::before { transform: scale(3.2); }
.cursor[data-mode="view"]::before, .cursor[data-mode="drag"]::before, .cursor[data-mode="play"]::before { transform: scale(8.6); }
.cursor[data-mode="view"] span, .cursor[data-mode="drag"] span, .cursor[data-mode="play"] span { opacity: 1; }
.cursor[data-mode="zoom"]::before { transform: scale(.5); }
.cursor[data-mode="trail"]::before { transform: scale(1.8); }
.cursor.is-hidden::before { opacity: 0; }

/* ---------- loupe ---------- */
.loupe {
  position: fixed; left: 0; top: 0; z-index: 90; width: 260px; height: 260px; border-radius: 50%;
  pointer-events: none; background-repeat: no-repeat; background-color: var(--paper);
  box-shadow: 0 0 0 1px rgba(17,17,16,.9), 0 30px 60px -20px rgba(0,0,0,.5);
  opacity: 0; scale: .6; transition: opacity .3s, scale .45s var(--ease);
}
.loupe.is-on { opacity: 1; scale: 1; }

/* ---------- hero: the film closes into a doorway ---------- */
.hero-wrap { position: relative; }
.hero { position: relative; }
.hero::after { display: none; }
.hero__film { position: absolute; inset: 0; background: #0d0d0c; }
.hero__film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, rgba(0,0,0,.08) 30%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.55) 100%); }
.hero__inner { color: #fff; }
.ch { display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0; transition: transform 1.3s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 55ms + .15s); }
html.is-ready .ch { transform: none; opacity: 1; }
html:not(.js) .ch { transform: none; opacity: 1; }
.hero__meta, .hero__foot { opacity: 0; transition: opacity 1.2s var(--ease) .9s; }
html.is-ready .hero__meta, html.is-ready .hero__foot, html:not(.js) .hero__meta, html:not(.js) .hero__foot { opacity: 1; }

/* ---------- introduction: scrubbed words + image trail ---------- */
.intro { position: relative; overflow: hidden; }
.intro .grid, .intro .section-head { position: relative; z-index: 5; }
.scrub .w { opacity: calc(.13 + var(--o, 0) * .87); transition: opacity .25s linear; }
.trail {
  position: absolute; z-index: 2; width: clamp(150px, 15vw, 240px); height: auto; pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(.6); opacity: 0;
  animation: trailIn .55s var(--ease) forwards;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.5);
}
.trail.is-gone { transition: opacity .8s var(--ease), transform .8s var(--ease); opacity: 0 !important; transform: translate(-50%, -40%) rotate(var(--rot)) scale(.85); }
@keyframes trailIn { to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); } }

/* ---------- studio: pinned horizontal film strip ---------- */
.studio { height: 460vh; position: relative; background: var(--ink); color: var(--paper); }
.studio__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.studio__head { display: flex; align-items: center; gap: 20px; padding: 78px var(--gutter) 0; }
.studio__bar { flex: 1; height: 1px; background: rgba(237,235,230,.2); }
.studio__bar i { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(var(--p, 0)); }
.studio__track { flex: 1; display: flex; align-items: center; gap: clamp(28px, 4vw, 70px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.st { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.st video, .st img { height: 100%; width: auto; max-width: none; display: block; object-fit: cover; }
.st > :first-child { height: var(--h); }
.st--a { --h: 64vh; }
.st--b { --h: 42vh; align-self: flex-start; margin-top: 16vh; }
.st--c { --h: 52vh; align-self: flex-end; margin-bottom: 12vh; }
.st figcaption { color: #8f8b84; }

/* ---------- parallax frames ---------- */
.par-frame, .portrait { overflow: hidden; }
.par-frame img { transform: translateY(var(--py, 0)) scale(1.16); }
.portrait img { transform: translateY(var(--py, 0)) scale(1.12); transition: filter .6s; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1) clamp(30px, 4vw, 60px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; }
.marquee__inner { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee span { font: italic 400 clamp(54px, 8vw, 150px)/1 var(--serif); letter-spacing: -.03em; padding: 0 .3em; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-style: normal; }
.marquee i { width: .5em; height: .5em; font-size: clamp(20px, 2.4vw, 40px); border-radius: 50%; background: var(--ink); flex: none; }

/* ---------- paintings: curtain reveal ---------- */
.frame { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(.76, 0, .24, 1); }
.frame img { transform: scale(1.22); transition: transform 2.2s var(--ease); }
.frame.is-in { clip-path: inset(0 0 0 0); }
.frame.is-in img { transform: scale(1); }
html:not(.js) .frame { clip-path: none; }
.seq__item.rv { opacity: 1; transform: none; }
.seq__no { transition: opacity 1s var(--ease) .6s; }

.interlude { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: var(--gutter); align-items: end; width: min(100%, 980px); align-self: center; }
.interlude figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.interlude video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.interlude img { width: 100%; height: auto; }

/* ---------- strips & thumbs with video ---------- */
.strip video { height: clamp(260px, 38vw, 560px); width: auto; max-width: none; flex: none; }
.strip img { flex: none; }
.strip { cursor: grab; }
.thumbs video { height: 54px; width: auto; }

@media (max-width: 820px) {
  .studio { height: 380vh; }
  .st--a { --h: 52vh; } .st--b { --h: 36vh; margin-top: 10vh; } .st--c { --h: 44vh; margin-bottom: 8vh; }
  .interlude { grid-template-columns: 1fr 1fr; }
  .interlude figure:last-child { grid-column: 1 / -1; }
  .marquee span { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .frame, .frame img { transition: none; clip-path: none; transform: none; }
  .studio { height: auto; }
  .studio__sticky { position: static; height: auto; }
  .studio__track { overflow-x: auto; width: auto; padding-bottom: 40px; }
}

/* exhibition stories: real photos only, one row */
.story__views { display: flex; gap: var(--gutter); align-items: flex-end; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.story__views::-webkit-scrollbar { display: none; }
.story__views figure { margin: 0; flex: none; }
.story__views img, .story__views video { height: clamp(280px, 36vw, 560px); width: auto; max-width: none; display: block; }
.story__views img { cursor: zoom-in; }
.xlink { font-family: var(--sans); font-size: 10px; vertical-align: middle; margin-left: 8px; border-bottom: 1px solid currentColor; }
.bigquote { font: italic 400 clamp(64px, 12vw, 230px)/.86 var(--serif); letter-spacing: -.04em; margin: 0; }
.bigquote + .label a { border-bottom: 1px solid currentColor; }
