:root {
  --bg: #f3f0ea;
  --bg-raised: #e8e4dc;
  --ink: #171615;
  --ink-soft: #57534c;
  --ink-faint: #8a857c;
  --rule: #dad5cc;
  --wound: #c0161d; /* the one accent: used only where something is open */
  --serif-display: "Instrument Serif", Georgia, serif;
  --serif-text: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34rem;
  --header-h: 84px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- header ---------- */
header {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
header .name {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
header nav a:hover {
  color: var(--ink);
}
.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 10px;
  margin-right: -10px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle .lines {
  position: relative;
  width: 22px;
  height: 9px;
}
.menu-toggle .lines::before,
.menu-toggle .lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.35s ease,
    top 0.35s ease;
}
.menu-toggle .lines::before {
  top: 0;
}
.menu-toggle .lines::after {
  top: 7.5px;
}
.menu-open .menu-toggle .lines::before {
  top: 3.75px;
  transform: rotate(45deg);
}
.menu-open .menu-toggle .lines::after {
  top: 3.75px;
  transform: rotate(-45deg);
}

/* ---------- hero: fits the first screen ---------- */
.hero {
  --hero-pad-top: clamp(16px, 4vh, 56px);
  --hero-pad-bottom: clamp(40px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: var(--hero-pad-top) var(--gutter) var(--hero-pad-bottom);
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, min(5.8vw, 9vh), 92px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 18px 0 0;
  max-width: 13ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--wound);
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: end;
}
.portrait figcaption {
  margin-top: 12px;
}

/* image frames: show a quiet placeholder until the file exists */
.frame {
  position: relative;
  background: var(--bg-raised);
  overflow: hidden;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame.missing img {
  display: none;
}
.frame.missing::after {
  content: attr(data-file);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border: 1px dashed var(--rule);
}
.portrait .frame {
  /* height-led so the portrait never pushes the headline off screen */
  height: clamp(300px, calc(100svh - var(--header-h) - 150px), 760px);
  aspect-ratio: 4 / 5;
  max-width: 40vw;
}
.portrait .frame img {
  object-position: 62% 30%;
}

/* ---------- statement ---------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(24px, 6vw, 96px);
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.statement p {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.62;
}
.statement p + p {
  margin-top: 1.1em;
}
.statement .close {
  color: var(--ink-soft);
  font-style: italic;
}

.method {
  list-style: none;
  margin: 2.2em 0 0;
  padding: 0;
  max-width: var(--measure);
  counter-reset: m;
}
.method li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.method li::before {
  counter-increment: m;
  content: "0" counter(m);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 5px;
}
.method h3 {
  margin: 0 0 4px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}
.method p {
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--ink-soft);
}

/* ---------- works: carousel ---------- */
.works {
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.works > .label {
  display: block;
  margin-bottom: 28px;
}
.carousel:focus-visible {
  outline: 1px solid var(--ink-faint);
  outline-offset: 8px;
}
.stage {
  --stage-h: min(62vh, 720px);
  --pad-y: clamp(36px, 7vh, 80px);
  --pad-x: clamp(24px, 6vw, 96px);
  position: relative;
  height: var(--stage-h);
  background: var(--bg-raised);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage:active {
  cursor: grabbing;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.slides.dragging {
  transition: none;
}
.slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
}
.slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(var(--stage-h) - 2 * var(--pad-y));
  object-fit: contain;
  pointer-events: none;
  box-shadow:
    0 2px 4px rgba(23, 22, 21, 0.08),
    0 40px 70px -40px rgba(23, 22, 21, 0.5);
}
.works-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-top: 20px;
}
.bars {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.bars button {
  position: relative;
  flex: 1 1 0;
  max-width: 52px;
  min-width: 14px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.bars button::before,
.bars button i {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  height: 2px;
}
.bars button::before {
  right: 0;
  background: var(--rule);
}
.bars button i {
  width: 0;
  background: var(--ink);
}
.works-title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
}
.works-sub {
  display: block;
  margin-top: 10px;
}
.works-count {
  padding-top: 44px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.fade {
  transition: opacity 0.35s ease;
}
.fade.out {
  opacity: 0;
}

/* ---------- exhibitions ---------- */
.exhibitions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(24px, 6vw, 96px);
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.exhibitions ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exhibitions li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.exhibitions li:first-child {
  padding-top: 0;
}
.exhibitions .year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  padding-top: 4px;
}
.exhibitions .what {
  font-size: 19px;
  line-height: 1.45;
}
.exhibitions .where {
  display: block;
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-top: 2px;
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(72px, 14vh, 160px) var(--gutter) clamp(48px, 8vh, 96px);
  border-top: 1px solid var(--rule);
}
.contact .intro p {
  font-family: var(--serif-display);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.12;
  margin: 18px 0 32px;
  max-width: 16ch;
}
.contact .links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.contact .links a:hover {
  border-color: var(--wound);
}
.contact form {
  padding-top: 6px;
}
.field {
  display: block;
  margin-bottom: 30px;
}
.field .label {
  display: block;
  margin-bottom: 4px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-faint);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.gotcha {
  position: absolute;
  left: -9999px;
}
.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.contact button[type="submit"] {
  padding: 16px 30px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact button[type="submit"]:hover {
  background: var(--wound);
}
.contact button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: wait;
}
.form-status {
  margin: 0;
  font-size: 17px;
  color: var(--ink-soft);
}
.form-status.error {
  color: var(--wound);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px var(--gutter) 32px;
}

/* ---------- quiet entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 1.1s ease,
      transform 1.1s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  body.menu-open {
    overflow: hidden;
  }
  .menu-toggle {
    display: inline-flex;
  }
  header nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: var(--header-h) var(--gutter) 48px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s ease,
      visibility 0s linear 0.35s;
  }
  .menu-open header nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease;
  }
  header nav a {
    font-family: var(--serif-display);
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }
  body {
    font-size: 18px;
  }
  .hero,
  .statement,
  .exhibitions,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    align-items: start;
    gap: 36px;
    padding-top: 12px;
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 52px);
    max-width: none;
  }
  .portrait {
    justify-self: stretch;
  }
  .portrait .frame {
    height: auto;
    max-width: none;
    aspect-ratio: 1 / 1;
  }
  .stage {
    --stage-h: calc((100vw - 2 * var(--gutter)) * 1.2);
    --pad-y: 24px;
    --pad-x: 20px;
  }
  .bars button {
    max-width: 40px;
  }
  .works-count {
    padding-top: 40px;
  }
  .exhibitions li {
    grid-template-columns: 3.6rem minmax(0, 1fr);
  }
}

/* ---------- links out of the home ---------- */
.more-link {
  display: inline-block;
  margin-top: 2em;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.more-link:hover {
  border-color: var(--wound);
}
.more-link .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.more-link:hover .arrow {
  transform: translateX(4px);
}
header nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---------- text pages: statement, biography ---------- */
.page-head {
  padding: clamp(40px, 10vh, 128px) var(--gutter) clamp(48px, 9vh, 112px);
}
.page-head h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, min(5.4vw, 9vh), 84px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 18px 0 0;
  max-width: 17ch;
}
.page-head h1 em {
  font-style: italic;
  color: var(--wound);
}
.page-head .sub {
  display: block;
  margin-top: 28px;
}
.statement .coda {
  margin-top: 2.2em;
  font-family: var(--serif-display);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.18;
}
.statement .coda em {
  font-style: italic;
  color: var(--wound);
}
.page-next {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(56px, 10vh, 112px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.page-next a.big {
  font-family: var(--serif-display);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  text-decoration: none;
}
.page-next a.big .arrow {
  display: inline-block;
  margin-left: 12px;
  transition: transform 0.25s ease;
}
.page-next a.big:hover {
  color: var(--wound);
}
.page-next a.big:hover .arrow {
  transform: translateX(6px);
}
.page-next .back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.page-next .back:hover {
  color: var(--ink);
}
@media (max-width: 760px) {
  .page-next {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
