/* ============================================================
   TARYN MÖLLER NICOLL — Quiet Gallery
   Modeled after the websites of Hockney, Akunyili Crosby,
   Theaster Gates, Wiley, Eliasson, Auerbach.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..600&display=swap');

:root {
  --bg: #F7F3E9;          /* warm archival cream */
  --paper: #FBF8EF;        /* slightly lighter inset */
  --paper-deep: #EFE9DA;   /* deeper warm */
  --ink: #1C1814;          /* warm near-black */
  --ink-soft: #3A332B;
  --muted: #6E6358;        /* warm gray, AA contrast on cream */
  --line: #DCD3BE;         /* warm rule */
  --line-soft: #E8E0CA;
  --line-strong: #BFB29A;
  --accent: #7A3F2E;       /* restrained terracotta-brown */
  --hover: #000000;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Newsreader', 'Times New Roman', serif;

  --pad-x: clamp(1.25rem, 2.6vw, 2.5rem);
  --pad-y: clamp(2.5rem, 5vw, 4.5rem);
  --max: 1480px;
  --gutter: clamp(1rem, 1.6vw, 1.6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection { background: #111; color: #fff; }

/* ============================================================
   Skip link (accessibility)
   ============================================================ */
.skip {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  z-index: 200;
  transform: translateY(-110%);
  transition: transform 0.2s ease;
}
.skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Custom focus styles — visible on cream */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.lightbox :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead .name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.masthead nav {
  display: flex;
  gap: 1.6rem;
}

.masthead nav a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}

.masthead nav a:hover,
.masthead nav a.active {
  color: var(--ink);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

main {
  min-height: 70vh;
}

/* ============================================================
   HOME — CINEMATIC FULL-BLEED HERO
   ============================================================ */
.hero-cover {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  background: #1a1410;
  /* offset for the fixed masthead so the image doesn't tuck under */
  margin-top: -4.4rem;
}

.hero-cover-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: zoom-in;
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.05);
  transition: transform 8s cubic-bezier(.2,.6,.2,1);
}

.hero-cover-link:hover .hero-cover-img {
  transform: scale(1.03);
}

.hero-cover-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(15,12,9,0.66) 0%, rgba(15,12,9,0.18) 35%, transparent 60%),
    linear-gradient(to bottom, rgba(15,12,9,0.42) 0%, transparent 28%);
}

.hero-cover-text {
  position: absolute;
  left: clamp(1.5rem, 3.5vw, 3.5rem);
  right: clamp(1.5rem, 3.5vw, 3.5rem);
  bottom: clamp(2rem, 4.5vw, 4rem);
  color: #f8f1e4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  color: rgba(248, 241, 228, 0.78);
}

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fcf6e9;
  font-variation-settings: "opsz" 72;
  text-shadow: 0 2px 32px rgba(0,0,0,0.45);
  margin: 0.2rem 0 0.4rem;
}
.hero-name em {
  font-style: italic;
  font-variation-settings: "opsz" 72;
}

.hero-caption {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: rgba(248, 241, 228, 0.86);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  border-top: 1px solid rgba(248, 241, 228, 0.22);
  padding-top: 0.7rem;
  max-width: 30rem;
}
.hero-caption em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #fcf6e9;
  font-variation-settings: "opsz" 16;
}

.hero-cover-scroll {
  position: absolute;
  right: clamp(1.5rem, 3.5vw, 3.5rem);
  bottom: clamp(2rem, 4.5vw, 4rem);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 241, 228, 0.7);
  pointer-events: none;
  animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 720px) {
  .hero-cover { height: 78vh; min-height: 480px; }
  .hero-cover-scroll { display: none; }
  .hero-caption { font-size: 0.84rem; }
}

/* Transparent masthead while sitting over the hero */
.masthead-over {
  background: transparent;
  border-bottom: 1px solid rgba(248, 241, 228, 0.16);
  backdrop-filter: blur(2px) saturate(1.1);
  -webkit-backdrop-filter: blur(2px) saturate(1.1);
}
.masthead-over .name { color: #fcf6e9; }
.masthead-over nav a { color: rgba(248, 241, 228, 0.82); }
.masthead-over nav a:hover,
.masthead-over nav a.active { color: #fff; }

/* When scrolled past the hero, masthead reverts to solid */
.masthead-solid {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.masthead-solid .name { color: var(--ink); }
.masthead-solid nav a { color: var(--muted); }
.masthead-solid nav a:hover,
.masthead-solid nav a.active { color: var(--ink); }

/* ============================================================
   MARQUEE — continuous right-to-left scroll of selected works
   (Kehinde Wiley homepage style)
   ============================================================ */
.section-flush {
  padding-bottom: 0;
}

.marquee {
  width: 100%;
  overflow: hidden;
  padding: clamp(1.5rem, 2.5vw, 2.2rem) 0 clamp(2rem, 3.5vw, 3rem);
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: clamp(1.4rem, 2.2vw, 2.2rem);
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  width: clamp(220px, 22vw, 320px);
  display: block;
}

.marquee-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-deep);
  margin-bottom: 0.7rem;
}

.marquee-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.marquee-item:hover .marquee-thumb img {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-cover-img,
  .hero-cover-scroll { animation: none !important; transition: none !important; }
}

/* On narrow screens disable the marquee fade mask so items don't get clipped */
@media (max-width: 720px) {
  .marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.6rem, 2.6vw, 2.6rem);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}

.section-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}

.section-head .more {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.section-head .more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   WORK GRID — uniform thumbnails
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3vw, 3rem) var(--gutter);
}

.work-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.work {
  display: block;
}

.work-thumb {
  width: 100%;
  background: var(--paper-deep);
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 0.75rem;
}

.work-thumb.square { aspect-ratio: 1/1; }
.work-thumb.wide { aspect-ratio: 4/3; }

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.work:hover .work-thumb img { opacity: 0.85; }

.work-meta {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.work-meta .work-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
  font-variation-settings: "opsz" 16;
}

/* ============================================================
   EXHIBITION LIST — chronological CV-style
   ============================================================ */
.exh-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.exh-row {
  display: grid;
  grid-template-columns: 5rem 1fr 1.5fr 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  font-size: 0.92rem;
  transition: padding-left 0.3s ease, color 0.3s ease;
  position: relative;
}

.exh-row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateY(-0.5px);
}
.exh-row:hover { padding-left: 1.1rem; }
.exh-row:hover::before { width: 0.7rem; }

.exh-row .yr {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: oldstyle-nums;
  color: var(--accent);
  font-size: 1.05rem;
}

.exh-row .title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--ink);
  font-variation-settings: "opsz" 18;
}

.exh-row .venue {
  color: var(--ink);
}

.exh-row .place {
  color: var(--muted);
  text-align: right;
  font-size: 0.85rem;
}

/* Plain list (used for programs, teaching, lectures) */
.plain-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.plain-list li {
  display: grid;
  grid-template-columns: 5rem 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  font-size: 0.92rem;
}

.plain-list .yr {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variant-numeric: oldstyle-nums;
  font-size: 1rem;
  font-variation-settings: "opsz" 16;
}

.plain-list .lbl {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================================================
   BIO PAGE — asymmetric prose spread with marginalia
   ============================================================ */
.bio {
  display: grid;
  grid-template-columns: 0.85fr 1.55fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.bio-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-deep);
  align-self: start;
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  filter: contrast(1.02) saturate(0.95);
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }

.bio-portrait .pp-cap {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  display: block;
}

/* Prose with chapter-style marginalia */
.bio-prose {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

.bio-prose .ch-mark {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.6rem;
}

.bio-prose .ch-mark .yr {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--accent);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-top: 0.45rem;
  font-variation-settings: "opsz" 36;
}

.bio-prose .ch-body {
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
}

.bio-prose .ch-body p {
  margin-bottom: 1.1rem;
}
.bio-prose .ch-body p:last-child { margin-bottom: 0; }

.bio-prose .ch-body p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.6rem;
  font-variation-settings: "opsz" 48;
}

.bio-prose .ch-body em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05em;
  color: var(--ink);
  font-variation-settings: "opsz" 20;
}

.bio-prose .ch-body strong {
  font-weight: 600;
  color: var(--ink);
}

/* Pull quote inside prose */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 2.2rem 0;
  font-variation-settings: "opsz" 60;
}
.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Chapter divider — small ornament */
.bio-divider {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.6em;
  padding: 1.5rem 0;
  user-select: none;
}

/* Inline image inset within bio prose */
.bio-inset {
  grid-column: 1 / -1;
  margin: 1.6rem 0 1.2rem;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.bio-inset .inset-cap {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 0.5rem;
}
.bio-inset .inset-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-deep);
}
.bio-inset .inset-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .bio-prose,
  .bio-inset { grid-template-columns: 1fr; gap: 0.6rem; }
  .bio-prose .ch-mark { position: static; padding-top: 0; }
  .bio-prose .ch-mark .yr { font-size: 1.2rem; margin-top: 0; }
}

/* ============================================================
   CV
   ============================================================ */
.cv {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad-x) clamp(3rem, 5vw, 4.5rem);
}

.cv-block {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2.4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.cv-block:last-child {
  border-bottom: 1px solid var(--line);
}

.cv-block h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}

.cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cv-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
}

.cv-list .yr {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: oldstyle-nums;
  font-size: 1rem;
  font-variation-settings: "opsz" 16;
}

.cv-list .place {
  color: var(--muted);
}

/* ============================================================
   PAGE HEADER (interior)
   ============================================================ */
.page-head {
  padding: clamp(3rem, 5vw, 4.5rem) var(--pad-x) clamp(2rem, 3vw, 2.6rem);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.page-head .ph-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.page-head h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

.page-head h1 .it {
  font-style: italic;
}

.page-head h1 .roman {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 0.6em;
  letter-spacing: -0.015em;
  display: block;
  color: var(--ink);
  margin-bottom: 0.2em;
}

.page-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 36rem;
  font-variation-settings: "opsz" 28;
}

@media (max-width: 880px) {
  .page-head {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ============================================================
   FILTER BAR (works page)
   ============================================================ */
.filter {
  display: flex;
  gap: 1.4rem;
  padding: 1.1rem var(--pad-x);
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.85rem;
}

.filter a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.filter a:hover, .filter a.active {
  color: var(--ink);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.contact-info .row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:last-child { border-bottom: none; }
.contact-info .lbl {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info a:hover { text-decoration: underline; }

.contact-info .ci-socials {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.contact-info .ci-socials a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-info .ci-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label {
  font-size: 0.8rem;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 8rem; }

.btn {
  align-self: start;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: #000; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--pad-x);
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.footer a {
  position: relative;
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--accent); }

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-left a {
  color: var(--ink);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
}
.footer-links a {
  color: var(--ink);
  font-size: 0.85rem;
}

/* ============================================================
   LIGHTBOX SPOTLIGHT
   ============================================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: none;
  background: rgba(12, 12, 12, 0.97);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.open {
  display: block;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 380px);
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  height: 100vh;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  pointer-events: none;
}

.lightbox-stage > * {
  pointer-events: auto;
}

/* Image side */
.lightbox-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(6px);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.55s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.lightbox.open .lightbox-image img {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Stepping (prev/next) — quick opacity-only crossfade,
   no scale/blur replay. Overrides the open transition. */
.lightbox.open.stepping .lightbox-image img {
  transition: opacity 0.18s ease;
  transform: scale(1);
  filter: blur(0);
}

.lightbox-counter {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* Info side */
.lightbox-info {
  color: #f4f4f4;
  align-self: center;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.25s, transform 0.7s cubic-bezier(.2,.7,.2,1) 0.25s;
}

.lightbox.open .lightbox-info {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.lightbox-title {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.lightbox-meta-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
}

.lightbox-meta-row .lbl {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 0.05rem;
}

.lightbox-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

/* Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 1.05rem;
  height: 1.05rem;
}

@media (max-width: 880px) {
  .lightbox-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 1.2rem;
    padding: 4rem 1rem 2rem;
  }
  .lightbox-info { max-width: 100%; }
  .lightbox-prev { left: 0.5rem; top: 36%; }
  .lightbox-next { right: 0.5rem; top: 36%; }
}

body.lightbox-locked {
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bio { grid-template-columns: 1fr; }
  .bio-portrait { position: static; max-width: 22rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .exh-row { grid-template-columns: 4rem 1fr; }
  .exh-row .venue { grid-column: 1 / -1; padding-left: 5rem; margin-top: 0.2rem; font-size: 0.85rem; }
  .exh-row .place { grid-column: 1 / -1; padding-left: 5rem; text-align: left; margin-top: 0.1rem; }
  .plain-list li { grid-template-columns: 4rem 1fr; }
  .plain-list li .lbl { grid-column: 2; padding-top: 0.1rem; font-size: 0.8rem; }
  .cv-block { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 600px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .masthead nav { gap: 1.1rem; flex-wrap: wrap; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid.grid-4 { grid-template-columns: 1fr; }
}
