/* Themes: black (default), gray, white. Neutral, no tint. */
:root, html[data-theme="black"] {
  --bg: #0b0b0b;
  --fg: #ededed;
  --mute: #8a8a8a;
  --line: rgba(237, 237, 237, 0.14);
  --panel: #0b0b0b;
  --neg: #fff;
}
html[data-theme="gray"] {
  --bg: #8c8c8c;
  --fg: #4d0b10;            /* dark red text, 4.6:1 on the gray */
  --mute: #5a1418;
  --line: rgba(77, 11, 16, 0.28);
  --panel: #8c8c8c;
  /* the negative-blend title and home header: chosen so that
     difference against #8c8c8c lands on the same dark red */
  --neg: rgb(63, 129, 124);
}
html[data-theme="white"] {
  --bg: #f5f5f5;
  --fg: #111111;
  --mute: #6b6b6b;
  --line: rgba(17, 17, 17, 0.14);
  --panel: #f5f5f5;
  --neg: #fff;
}
:root {
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/1.6 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  color: var(--fg);
  background: linear-gradient(var(--bg) 55%, transparent);
  padding-bottom: 34px;
}
/* home: header and title float over the photos in negative */
body[data-page="home"] .site-head { background: none; padding-bottom: 22px; mix-blend-mode: difference; color: var(--neg, #fff); }
.head-right { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); line-height: 12px; }
.mark {
  font: 500 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
}
.mark sup { font-size: 8px; letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav a, .small-caps {
  font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.nav a { opacity: .6; transition: opacity .3s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
body[data-page="home"] .nav a { opacity: .9; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; font: inherit; }

/* theme switcher: three swatches */
.themes {
  position: fixed; top: 22px; right: var(--gutter); z-index: 30;
  display: flex; gap: 7px; height: 12px; align-items: center;
}
.head-right { margin-right: 74px; }
.sw {
  width: 13px; height: 13px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(128, 128, 128, .9); opacity: .6; transition: opacity .2s, transform .2s;
}
.sw:hover { opacity: 1; }
.sw[aria-pressed="true"] { opacity: 1; transform: scale(1.18); }
.sw-black { background: #0b0b0b; }
.sw-gray { background: #8c8c8c; }
.sw-white { background: #f5f5f5; }

@media (max-width: 860px) {
  .nav-toggle { display: block; font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center;
    gap: 28px; background: var(--panel); color: var(--fg);
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: -1;
  }
  .nav a { font: 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; opacity: 1; }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  body.nav-open .site-head { mix-blend-mode: normal; color: var(--fg); }
}

/* ---------- plates (images / placeholders) ---------- */
.plate {
  position: relative; width: 100%; overflow: hidden;
  background: var(--a, #222);
}
.plate img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.plate.loaded img { opacity: 1; }
.pending { color: var(--mute); font-style: italic; text-transform: none; letter-spacing: .02em; }
.plate.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 38% 52% at 50% 48%, var(--b) 0%, transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(0,0,0,.45), transparent 60%);
  filter: blur(2px);
}
.plate.ph::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font: 400 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); mix-blend-mode: difference;
}
.plate .plate-text {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font: 400 clamp(20px, 4vw, 44px)/1 var(--serif); letter-spacing: .02em; color: var(--b); z-index: 1;
}
.plate.has-text::before { display: none; }

/* ---------- home ---------- */
.home-title {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 15;
  font: 400 clamp(36px, 7.4vw, 108px)/.9 var(--serif); letter-spacing: -.01em;
  color: var(--neg, #fff); mix-blend-mode: difference; pointer-events: none;
}
.home-title em { font-style: italic; }
.intro { height: 100svh; position: relative; overflow: hidden; background: #0b0b0b; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  /* zoom toward bottom-right so the magazine logo baked into the top-left corner
     doesn't collide with the site name; the credit stays in the caption */
  transform: scale(1.1); transform-origin: 75% 85%;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.intro.loaded .hero-img { opacity: 1; }
.intro::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .68), rgba(0, 0, 0, .3) 55%, transparent);
}
.intro-line, .hero-cap {
  position: absolute; right: var(--gutter); text-align: right; z-index: 2;
  color: #fff; mix-blend-mode: difference;
}
.intro-line { bottom: 30px; }
.hero-cap { bottom: 52px; opacity: .7; font-size: 10px; }
.rows { display: flex; flex-direction: column; gap: clamp(60px, 14vh, 160px); padding-bottom: 30vh; }
.row .cell { display: block; position: relative; }
.row .cap { display: block; margin-top: 12px; color: var(--mute); font-size: 10px; }
.row.full .cell { height: 100svh; }
.row.full .plate { height: 100%; }
.row.full .cap { position: absolute; right: var(--gutter); bottom: 18px; color: #fff; mix-blend-mode: difference; }
.row.group {
  display: flex; gap: clamp(10px, 1.6vw, 24px); align-items: flex-start;
  width: 100%; max-width: calc(84svh * var(--sum)); margin: 0 auto; padding: 0 var(--gutter);
}
.row.group .cell { flex-basis: 0; min-width: 0; }
@media (max-width: 720px) {
  .row.full .cell { height: 70svh; }
  .row.group.n3 { flex-wrap: wrap; }
  .row.group.n3 .cell:first-child { flex-basis: 100%; }
}

/* ---------- generic page ---------- */
.page { padding: 140px var(--gutter) 80px; min-height: 100svh; }
.kicker { color: var(--mute); }
h1.display { font: 400 clamp(44px, 9vw, 132px)/.92 var(--serif); letter-spacing: -.015em; margin: 18px 0 0; }
h1.display em { font-style: italic; }
.lede { font: 400 clamp(20px, 2.3vw, 30px)/1.3 var(--serif); max-width: 30ch; }
.prose { max-width: 58ch; font-size: 15px; color: var(--fg); }
.prose p + p { margin-top: 1em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }
.draft {
  display: inline-block; margin-top: 10px; padding: 3px 7px; border: 1px dashed var(--mute);
  color: var(--mute); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- works index ---------- */
.works-list { list-style: none; margin-top: 72px; border-top: 1px solid var(--line); }
.works-list li { border-bottom: 1px solid var(--line); }
.works-list a {
  display: grid; grid-template-columns: 3.5em 1fr auto; align-items: baseline; gap: 16px;
  padding: 22px 0; transition: padding .5s var(--ease), color .3s;
}
.works-list .n { color: var(--mute); font-size: 11px; letter-spacing: .14em; }
.works-list .t { font: 400 clamp(30px, 5.4vw, 76px)/1 var(--serif); }
.works-list .m { color: var(--mute); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-align: right; }
.works-list:hover a { color: var(--mute); }
.works-list a:hover { color: var(--fg); padding-left: 18px; }
.peek {
  position: fixed; z-index: 10; width: 260px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.works-list .thumb { display: none; }
@media (max-width: 720px) {
  .peek { display: none; }
  .works-list a { grid-template-columns: 1fr; gap: 10px; }
  .works-list .n { order: -1; }
  .works-list .m { text-align: left; }
  .works-list .thumb { display: block; width: 62%; margin-top: 6px; }
}

/* ---------- series ---------- */
.series-intro {
  padding: 140px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end;
}
.series-intro .meta { color: var(--mute); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 2; }
.series-intro .credit { margin-top: 18px; font-size: 12px; color: var(--mute); max-width: 52ch; line-height: 1.6; }
.sequence {
  position: relative; display: flex; gap: clamp(24px, 6vw, 120px); align-items: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 40px var(--gutter) 30px; height: calc(100svh - 120px); min-height: 520px;
}
.sequence::-webkit-scrollbar { display: none; }
.sequence figure {
  flex: 0 0 auto; height: 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.sequence figure .plate { height: calc(100% - 44px); width: auto; }
.sequence figcaption {
  height: 44px; padding-top: 14px; display: flex; justify-content: space-between; gap: 24px;
  font-size: 11px; letter-spacing: .08em; color: var(--mute);
}
.sequence figcaption b { font-weight: 400; color: var(--fg); font-style: italic; font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
.seq-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter) 28px; color: var(--mute);
}
.seq-bar button {
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 8px 0;
}
.seq-bar button:hover { color: var(--fg); }
.series-next {
  display: block; padding: 90px var(--gutter) 110px; border-top: 1px solid var(--line);
}
.series-next .t { font: 400 clamp(40px, 7vw, 100px)/1 var(--serif); font-style: italic; margin-top: 12px; display: block; }
@media (max-width: 720px) {
  .series-intro { grid-template-columns: 1fr; gap: 24px; padding-top: 110px; }
  .sequence { flex-direction: column; height: auto; overflow: visible; gap: 56px; scroll-snap-type: none; }
  .sequence figure { height: auto; width: 100%; }
  .sequence figure .plate { height: auto; width: 100%; }
  .seq-bar { display: none; }
}

/* ---------- about / cv ---------- */
.portrait {
  width: min(320px, 70vw); aspect-ratio: 1; margin-bottom: 36px;
  border-radius: 50%; overflow: hidden; background: #0b0b0b;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); margin-top: 72px; }
.cv h3 { font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin: 40px 0 14px; }
.cv h3:first-child { margin-top: 0; }
.cv ul { list-style: none; }
.cv li { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cv li span:first-child { color: var(--mute); }
.cv li em { font-family: var(--serif); font-size: 16px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- exhibitions ---------- */
.ex { padding: 56px 0; border-top: 1px solid var(--line); margin-top: 0; align-items: start; }
.ex:first-child { margin-top: 64px; }
.ex-title { font: 400 clamp(36px, 5.5vw, 80px)/1 var(--serif); margin-top: 12px; }
.ex-img .plate { max-width: min(560px, calc(78svh * var(--r, 0.8))); }
.ex-text { margin-top: 28px; font-family: var(--serif); font-size: 18px; line-height: 1.5; max-width: 46ch; }
.ex-extra { margin-top: 18px; color: var(--mute); font-size: 13px; }
.ex-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.ex-links a { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.ex-installs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 260px)); gap: 20px; padding: 0 0 56px; }
blockquote.lede { quotes: none; }

/* ---------- commissions ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px 24px; margin-top: 64px;
}
.grid figcaption { margin-top: 10px; font-size: 12px; color: var(--mute); }
.clients { margin-top: 72px; font: 400 clamp(18px, 2vw, 24px)/1.6 var(--serif); max-width: 50ch; }
.clients span { color: var(--mute); }

/* ---------- contact ---------- */
.big-link {
  display: inline-block; font: 400 clamp(30px, 6.6vw, 96px)/1.05 var(--serif); font-style: italic;
  border-bottom: 1px solid var(--line); transition: border-color .3s; margin-top: 56px; word-break: break-word;
}
.big-link:hover { border-color: var(--fg); }

/* ---------- footer ---------- */
.site-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--mute);
}
.site-foot a:hover { color: var(--fg); }
.site-foot nav { display: flex; gap: 24px; }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
