:root {
  --bg: #050505;
  --bg-alt: #0c0c0c;
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --accent: #d7192a;
  --line: rgba(255, 255, 255, 0.12);
  --pixel: "Doto", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 300 15px/1.75 var(--mono);
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

h1, h2 { font-family: var(--pixel); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
body:not(.home) h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}

body:not(.home) .top { background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }

.brand { font: 900 1.35rem var(--pixel); letter-spacing: 0.04em; }
.brand span { color: var(--accent); animation: blink 1.1s steps(1) infinite; }

.nav {
  display: flex;
  padding: 4px;
  background: #f2f2f2;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
}
.nav a { padding: 0.5rem 1rem; border-radius: 7px; color: #555; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: #000; }
.nav a.active { background: #000; color: #fff; }

.cta, .btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 4px 1.25rem 4px 4px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.cta-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 7px;
  background: #1a1a1a;
  font-size: 1.2rem;
  transition: transform 0.25s;
}
.cta:hover, .btn-accent:hover { border-color: rgba(255, 255, 255, 0.4); }
.cta:hover .cta-icon, .btn-accent:hover .cta-icon { transform: translateX(3px); }

.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #161616, var(--bg) 60%);
}

.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(105vw, 125vh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 70px 34px rgba(255, 255, 255, 0.6),
    0 0 70px 24px rgba(255, 255, 255, 0.3);
  filter: blur(10px);
  -webkit-mask: conic-gradient(#000, rgba(0, 0, 0, 0.15) 110deg, #000 200deg, rgba(0, 0, 0, 0.25) 300deg, #000);
          mask: conic-gradient(#000, rgba(0, 0, 0, 0.15) 110deg, #000 200deg, rgba(0, 0, 0, 0.25) 300deg, #000);
  animation: spin 60s linear infinite, breathe 7s ease-in-out infinite;
}

.hero-subject {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(80vw, 900px);
  translate: -50% 0;
}

/* Portrait is always shown in black & white, its edges fade into the dark */
.hero-img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  object-position: bottom;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
          mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.hero-subject.empty { display: none; }

/* Soaring bird: glides across the sky behind the headline, then comes round again */
.bird-path {
  position: absolute;
  left: 50%;
  top: 30%;
  width: clamp(240px, 30vw, 460px);
  margin-left: calc(clamp(240px, 30vw, 460px) / -2);
  z-index: 1;
  opacity: 0;
  mix-blend-mode: screen; /* makes the video's black background invisible */
  animation: soar 18s linear infinite;
}
.bird {
  display: block;
  width: 100%;
  filter: grayscale(1);
  animation: bob 3.2s ease-in-out infinite;
}

.hero-text {
  position: absolute;
  inset: 22vh var(--gutter) auto;
  z-index: 2;
  text-align: center;
}
.hero-text h1 { text-shadow: 0 0 30px rgba(255, 255, 255, 0.25); }

.hero-note {
  position: absolute;
  left: var(--gutter);
  bottom: 2.5rem;
  z-index: 2;
  max-width: 30rem;
  color: #c9c9c9;
  font-size: 0.9rem;
}

/* Quote in the bottom-left corner of the home hero */
.hero-quote { max-width: 36rem; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.hero-quote p { color: var(--text); font-size: 1rem; font-style: italic; }
.hero-quote cite { display: block; margin-top: 0.5rem; color: var(--accent); font: 900 1.05rem var(--pixel); font-style: normal; letter-spacing: 0.08em; }

.btn-accent {
  position: absolute;
  right: var(--gutter);
  bottom: 2.5rem;
  z-index: 2;
  font-size: 1rem;
  padding-right: 1.5rem;
}
.btn-accent .cta-icon { width: 2.8rem; height: 2.8rem; background: var(--accent); }

/* Buttons used on inner pages */
.hero-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }

.gallery figure, .series-card figure, .about-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 60%),
    #0b0b0b;
}
.gallery figure { aspect-ratio: 4 / 5; cursor: zoom-in; }

.gallery img, .series-card img, .about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery figure:hover img, .series-card:hover img { transform: scale(1.04); }

/* Title appears over the work on hover; full info opens on click */
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }
.gallery figcaption > :not(h3, .work-meta) { display: none; }
.gallery figcaption h3, .lightbox-info h3 { font: 900 1.3rem/1.2 var(--pixel); }
.work-meta { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.gallery figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Status badge on every thumbnail: Available or Sold */
.gallery figure:has(.work-status)::before {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.gallery figure:has(.work-status.available)::before { content: "Available"; color: var(--text); border-color: var(--accent); }
.gallery figure:has(.work-status.collected)::before { content: "Sold"; color: var(--muted); }

/* Shown while a photo has not been added yet */
.gallery figure.empty { cursor: default; }
.empty::after {
  content: "[ photo coming soon ]";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.about-img.empty::after { content: "[ portrait ]"; }
.expo figure.empty::after { content: "[ exhibition photo ]"; }

/* Collections */
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }

.collection, .press-card, .socials a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  transition: border-color 0.25s, transform 0.25s;
}
.collection:hover, .press-card:hover, .socials a:hover { border-color: var(--accent); transform: translateY(-3px); }
.collection-kicker { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.collection-title { font: 900 1.8rem var(--pixel); }
.collection-cta, .list-cta { color: var(--accent); font-size: 0.85rem; font-weight: 500; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-img { aspect-ratio: 3 / 4; }
.about h1 { margin-bottom: 1.5rem; }
.about p + p { margin-top: 1rem; }
.about p { color: var(--muted); max-width: 36rem; }
.about strong, .about em { color: var(--text); font-weight: 500; }
.about .hero-links { margin-top: 2rem; }

/* Inner pages */
.page-head { padding: calc(6rem + 6vw) var(--gutter) 0; max-width: 56rem; }
.page-head p:last-child { color: var(--muted); margin-top: 1rem; }
.page-top { padding-top: calc(6rem + 4vw); }
.section-tight { padding-top: 3rem; }

.more { display: inline-block; margin-top: 2rem; color: var(--accent); font-weight: 500; }

/* Home: series cards */
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 4vw, 3rem); }
.series-card figure { aspect-ratio: 4 / 3; margin-bottom: 1.5rem; }
.series-card p:last-child { color: var(--muted); }
.series-card h2 { transition: color 0.2s; }
.series-card:hover h2 { color: var(--accent); }

/* Gallery page */
.filters { display: inline-flex; flex-wrap: wrap; padding: 4px; margin-bottom: 3rem; border: 1px solid var(--line); border-radius: 10px; }
.filters button {
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: 500 0.82rem var(--mono);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.filters button:hover { color: var(--text); }
.filters button.active { background: var(--text); color: #000; }
.gallery-title { margin: 4rem 0 1.5rem; scroll-margin-top: 6rem; }
.filters + .gallery-title { margin-top: 0; }
main [data-cat].hidden { display: none; }

/* Lists: exhibitions & press */
.list-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 3.5rem 0 1rem; }
.list-title:first-child { margin-top: 0; }
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.list a:hover .list-name { color: var(--accent); }
.list-meta { display: block; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.list-name { font: 700 1.5rem var(--pixel); transition: color 0.2s; }
.list-cta { white-space: nowrap; }
.note { color: var(--muted); }
.note a { color: var(--accent); }

.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.press-title { font: 900 1.7rem/1.15 var(--pixel); }

/* Contact */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.socials a { font: 900 1.6rem var(--pixel); }
.socials .list-meta { font-family: var(--mono); font-weight: 400; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-social { display: flex; gap: 1.5rem; order: 2; }
.footer-social a:hover { color: var(--accent); }

/* Lightbox: work + its info */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 4rem 4.5rem;
  background: var(--bg);
}
.lightbox[hidden] { display: none; }
.lightbox-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 22rem);
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  max-height: 100%;
}
.lightbox-media { position: relative; display: grid; place-items: center; min-height: 40vh; border-radius: 12px; }
.lightbox-media.empty { min-height: 60vh; border: 1px solid var(--line); background: #0b0b0b; }
.lightbox-media img { max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox-media video { max-height: 82vh; max-width: 100%; border-radius: 10px; background: #000; }
.expo figure img, .expo figure video, .press-img img, .press-img video { cursor: zoom-in; }
.lightbox-info { display: flex; flex-direction: column; gap: 0.75rem; }
.lightbox-info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.lightbox-info p:not(.work-meta) { color: #c9c9c9; }
.lightbox-info a { color: var(--accent); font-weight: 500; margin-top: 0.5rem; }
/* Work status in the lightbox: available or collected */
.work-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.work-status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); }
.work-status.available::before { background: var(--accent); }
.work-status.collected::before { background: var(--text); }
.lightbox-info a.work-status { color: var(--text); margin-top: 0.5rem; }
a.work-status:hover { border-color: var(--accent); }
/* Quote and photo details */
.work-quote { font-style: italic; color: var(--text) !important; }
.work-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.work-details dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; padding-top: 0.15rem; }
.work-details dt::after { content: ":"; }
.work-details dd { color: #c9c9c9; }
.lightbox-info { max-height: 82vh; overflow-y: auto; padding-right: 0.5rem; }
p.work-status { color: var(--muted); }

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.lightbox button:hover { opacity: 1; color: var(--accent); }
.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1.25rem; top: 50%; }
.lightbox-next { right: 1.25rem; top: 50%; }

/* Exhibitions by year */
.year {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.year-title { position: sticky; top: 7rem; align-self: start; font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0; }
.year > :not(.year-title) { grid-column: 2; }
.expo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}
.expo + .expo { margin-top: 2.5rem; }
.expo figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b0b;
}
.expo img, .expo video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.expo figure.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.expo figure.two img { object-fit: cover; min-height: 0; }
.expo-work { color: var(--text) !important; }
.expo-work em { color: var(--accent); font-style: normal; }
.press-card p { color: var(--muted); }
.press-img { aspect-ratio: 4 / 3; margin: 0 0 0.75rem; overflow: hidden; border-radius: 10px; background: #000; }
.press-img img, .press-img video { width: 100%; height: 100%; object-fit: cover; }
.press-img.empty { display: none; }
.press-img.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.press-img.two img { min-height: 0; }
.expo-info { display: flex; flex-direction: column; gap: 0.5rem; }
.expo-info h3 { font: 900 1.8rem/1.15 var(--pixel); }
.expo-venue { color: var(--text); }
.expo-info p:not(.expo-venue, .list-meta) { color: var(--muted); }
.expo-info a { color: var(--accent); font-weight: 500; }

/* Biography */
.about-lead { font-size: 1.15rem; color: var(--text) !important; }
.bio { display: grid; grid-template-columns: 16rem minmax(0, 46rem); gap: 1rem 2rem; }
.bio h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.bio-text p { color: #c9c9c9; }
.bio-text p + p { margin-top: 1.25rem; }
.bio-quote { font-size: 1.15rem; line-height: 1.7; color: var(--text) !important; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.bio-text .hero-links { margin-top: 2rem; }
.bio-chapter { font: 900 1.5rem/1.2 var(--pixel); color: var(--accent); margin: 2.25rem 0 0.75rem; }
.bio-chapter:first-of-type { margin-top: 0; }
.about-slogan { font: 900 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--pixel); color: var(--accent) !important; margin: 0.5rem 0 1rem; }
.bio-sign { margin-top: 1.5rem; font: 700 1.1rem var(--pixel); color: var(--accent) !important; letter-spacing: .05em; }
.cv li { display: flex; gap: 2rem; }
.cv-year { font: 700 1.2rem var(--pixel); min-width: 4rem; color: var(--accent); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Animations */
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { opacity: 0.7; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes soar {
  0%   { opacity: 0; transform: translate(-70vw, 22vh) rotate(-8deg) scale(0.7); }
  8%   { opacity: 1; }
  40%  { transform: translate(-8vw, 2vh) rotate(-2deg) scale(1); }
  70%  { opacity: 1; transform: translate(45vw, -14vh) rotate(-10deg) scale(0.75); }
  78%  { opacity: 0; transform: translate(62vw, -22vh) rotate(-12deg) scale(0.6); }
  100% { opacity: 0; transform: translate(62vw, -22vh) rotate(-12deg) scale(0.6); }
}
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -10px; rotate: 2deg; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bird-path { opacity: 1; transform: translate(-28vw, 4vh); }
}

/* Tablet & mobile */
@media (max-width: 1100px) {
  .cta { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.75rem;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  .menu-toggle span { width: 22px; height: 1px; background: var(--text); }

  .nav {
    position: absolute;
    top: calc(100% - 0.5rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 1rem; }

  .hero-text { top: 18vh; }
  .hero-subject { width: 92vw; bottom: 0; }
  .hero-img { max-height: 46vh; }
  .hero-note { text-shadow: 0 1px 8px #000; }
  .bird-path { top: 36%; width: 60vw; margin-left: -30vw; }
  .hero-note { right: var(--gutter); bottom: 6.5rem; font-size: 0.82rem; }
  .btn-accent { left: var(--gutter); right: auto; bottom: 2rem; }

  .about, .series { grid-template-columns: 1fr; }
  .gallery, .gallery-4 { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .gallery figure { border-radius: 10px; }
  .footer { justify-content: center; text-align: center; }

  .lightbox { padding: 3.5rem 1rem 1.5rem; place-items: start center; overflow-y: auto; }
  .lightbox-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .lightbox-media img, .lightbox-media video { max-height: 60vh; }
  .lightbox-info { max-height: none; overflow: visible; }
  .lightbox-prev, .lightbox-next { top: 0.9rem; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { left: 3.5rem; right: auto; }

  .year, .bio { grid-template-columns: 1fr; }
  .year > :not(.year-title) { grid-column: 1; }
  .year-title { position: static; }
  .expo { grid-template-columns: 1fr; gap: 1.25rem; }
}