:root {
  --paper: #f1efea;
  --ink: #121212;
  --mute: #6f6c66;
  --line: #d5d1c8;
  --signal: #d8361c;
  --gutter: clamp(16px, 3vw, 40px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

.label, .mono {
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.mono { text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 1.8; color: var(--ink); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  color: #fff;
  transition: background .3s, color .3s, padding .3s;
}
.top.is-solid { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding-block: 12px; }
.top__name { font-weight: 700; font-size: 15px; font-variation-settings: "wdth" 85; text-transform: uppercase; letter-spacing: .02em; }
.top__nav { display: flex; gap: clamp(14px, 2.5vw, 32px); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.top__nav a { position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .25s; }
.top__nav a:hover::after { right: 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; background: #0b0b0b; color: #fff; overflow: hidden; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s linear;
}
.hero__slides img.is-on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 20%); pointer-events: none; }
.hero__title {
  position: absolute; z-index: 2; left: var(--gutter); bottom: calc(var(--gutter) + 8px);
  font-size: clamp(64px, 15vw, 240px); line-height: .82; font-weight: 800;
  font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__meta {
  position: absolute; z-index: 2; right: var(--gutter); bottom: calc(var(--gutter) + 12px);
  width: min(300px, 40vw);
  display: grid; gap: 4px;
  font: 400 11px/1.5 var(--mono); color: rgba(255,255,255,.85);
}
.hero__count { color: #fff; }
.hero__caption { text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.hero__bar { display: block; height: 1px; background: rgba(255,255,255,.25); margin-top: 8px; }
.hero__bar i { display: block; height: 100%; width: 0; background: #fff; }
.hero__bar i.run { width: 100%; transition: width 6s linear; }

/* ---------- intro ---------- */
.intro {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter);
  padding: clamp(64px, 10vw, 140px) var(--gutter) clamp(48px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}
.intro__text { margin: 0; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.12; font-weight: 500; font-variation-settings: "wdth" 88; letter-spacing: -.01em; max-width: 22ch; }

/* ---------- section heads ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px;
  padding: clamp(48px, 7vw, 96px) var(--gutter) 24px;
}
.section-head h2 { font-size: clamp(32px, 5vw, 64px); line-height: .9; text-transform: uppercase; font-weight: 800; font-variation-settings: "wdth" 70; }

/* ---------- works index ---------- */
.index { list-style: none; margin: 0; padding: 0 var(--gutter); }
.index li { border-top: 1px solid var(--ink); }
.index li:last-child { border-bottom: 1px solid var(--ink); }
.index button {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 56px 1fr 180px 160px 90px; align-items: baseline; gap: 16px;
  padding: 22px 0;
  transition: padding .25s, color .2s;
}
.index .n, .index .meta { font: 400 12px var(--mono); color: var(--mute); }
.index .t { font-size: clamp(24px, 3.4vw, 46px); line-height: 1; font-weight: 700; font-variation-settings: "wdth" 75; text-transform: uppercase; }
.index .y { text-align: right; }
.index button:hover { padding-left: 14px; }
.index button:hover .n { color: var(--signal); }
.peek {
  position: fixed; z-index: 15; left: 0; top: 0; width: 320px; aspect-ratio: 4/3; object-fit: cover;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.peek.is-on { opacity: 1; }

/* ---------- archive ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.filters button { color: var(--mute); padding: 4px 0; }
.filters button sup { font-size: 9px; margin-left: 2px; }
.filters button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.filters button:hover { color: var(--ink); }

.grid { columns: 3 320px; column-gap: 14px; padding: 8px var(--gutter) 0; }
.tile { break-inside: avoid; margin: 0 0 28px; cursor: zoom-in; }
.tile .ph { background: #ddd9d0; overflow: hidden; }
.tile img { width: 100%; height: auto; transition: transform .6s ease, opacity .5s; opacity: 0; }
.tile img.ok { opacity: 1; }
.tile:hover img { transform: scale(1.025); }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font: 400 11px/1.4 var(--mono); color: var(--mute); }
.tile figcaption b { font-weight: 500; color: var(--ink); }
.tile.is-hidden { display: none; }

/* ---------- info ---------- */
.info { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
.info__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); padding: 0 var(--gutter); }
.info__bio p { margin: 0 0 1em; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; max-width: 34ch; }
.info__side .label { margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.info__side .label:not(:first-child) { margin-top: 36px; }
.services { margin: 0; display: grid; gap: 14px; }
.services dt { font-weight: 700; text-transform: uppercase; font-variation-settings: "wdth" 80; font-size: 17px; }
.services dd { margin: 2px 0 0; color: var(--mute); font-size: 15px; }
.pubs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; }
.pubs li:not(:last-child)::after { content: "/"; color: var(--line); margin: 0 10px; }

/* ---------- contact ---------- */
.contact {
  margin-top: clamp(64px, 10vw, 140px);
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  background: var(--ink); color: var(--paper);
}
.contact .label { color: #9a968e; }
.contact__mail {
  display: inline-block; margin: 18px 0 40px;
  font-size: clamp(26px, 6.2vw, 104px); line-height: .95; font-weight: 800;
  font-variation-settings: "wdth" 62; letter-spacing: -.01em;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s;
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 10px 40px; font: 400 13px var(--mono); }
.contact__row a:hover { color: var(--signal); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 20px var(--gutter); background: var(--ink); color: #8b877f;
  border-top: 1px solid #2a2a2a; font: 400 11px var(--mono);
}
.foot a:hover { color: var(--paper); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: #0b0b0b; color: #eee; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; gap: 12px; justify-items: start; max-width: calc(100vw - 2 * var(--gutter)); }
.lb__fig img { max-width: calc(100vw - 160px); max-height: calc(100svh - 120px); width: auto; height: auto; object-fit: contain; }
.lb__cap { display: flex; flex-wrap: wrap; gap: 4px 24px; font: 400 11px var(--mono); color: #9a968e; }
.lb__cap #lbTitle { color: #eee; text-transform: uppercase; letter-spacing: .05em; }
.lb__close { position: absolute; top: 18px; right: var(--gutter); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; padding: 20px; color: #9a968e; }
.lb__nav:hover, .lb__close:hover { color: #fff; }
.lb__prev { left: 8px; } .lb__next { right: 8px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (max-width: 860px) {
  .intro, .info__cols { grid-template-columns: 1fr; }
  .index button { grid-template-columns: 36px 1fr auto; row-gap: 4px; }
  .index .meta.l { display: none; }
  .index .meta.s { grid-column: 2; grid-row: 2; }
  .index .y { grid-column: 3; grid-row: 1; }
  .peek { display: none; }
  .hero__meta { left: var(--gutter); right: auto; bottom: auto; top: 76px; width: auto; max-width: 70vw; }
  .lb__fig img { max-width: calc(100vw - 32px); }
  .lb__nav { top: auto; bottom: 10px; transform: none; }
}
@media (max-width: 520px) {
  .top__nav { gap: 12px; font-size: 10.5px; }
  .top__nav a[href="#info"] { display: none; }
  .grid { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 18px; }
  .tile figcaption span { display: none; }
  .top__name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
