:root {
  --ink: #22211f;
  --muted: #77716a;
  --paper: #fbfaf7;
  --cream: #f2eee7;
  --clay: #9f7561;
  --teal: #1f6e68;
  --moss: #687d52;
  --gold: #cba85b;
  --line: rgba(34, 33, 31, 0.12);
  --shadow: 0 18px 48px rgba(34, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 54px);
  color: #fff;
  background: linear-gradient(rgba(27, 26, 23, 0.38), rgba(27, 26, 23, 0));
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--clay), var(--gold) 47%, var(--teal) 48%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 26px);
  font-size: 0.86rem;
  font-weight: 400;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 6vw, 84px) 74px;
  color: #fff;
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.58), rgba(23, 21, 18, 0.18) 54%, rgba(23, 21, 18, 0.05)),
    linear-gradient(0deg, rgba(23, 21, 18, 0.48), rgba(23, 21, 18, 0) 45%);
}

.hero-content {
  position: relative;
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd37c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 400;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.4rem, 9.5vw, 8.2rem);
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.9rem);
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
}

.hero .hero-subtitle {
  max-width: 760px;
  margin-top: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1.08;
  font-weight: 400;
}

.hero .hero-author {
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 400;
}

.button.primary {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.intro p:last-child,
.work-copy p,
.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(34px, 5vw, 68px) clamp(24px, 3vw, 42px);
}

.art-card {
  --art-w: 100;
  --art-h: 150;
  --gallery-unit: clamp(2.05px, 0.21vw, 3px);
  flex: 0 0 calc(var(--art-w) * var(--gallery-unit));
  width: calc(var(--art-w) * var(--gallery-unit));
  min-width: 0;
  max-width: 100%;
}

.art-button {
  width: 100%;
  aspect-ratio: var(--art-w) / var(--art-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f4ef;
  border-radius: 0;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.art-button:hover img,
.art-button:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(34, 33, 31, 0.08);
}

.art-card h3,
.timeline h3 {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25;
}

.art-caption {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}

.art-caption h3 {
  margin: 0;
}

.art-caption strong {
  font-weight: 650;
}

.art-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.art-caption em {
  font-style: italic;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.text-link {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 26px 0;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.text-link span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.08;
}

.text-link em {
  color: var(--muted);
  font-style: normal;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 96px);
}

.work-copy {
  display: grid;
  gap: 22px;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.quote-section img {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 1.08;
}

cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timeline article {
  min-width: 0;
  padding: 24px 0;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.timeline span {
  display: inline-block;
  color: var(--teal);
  font-weight: 500;
}

.cv-prose {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.1rem);
  overflow-wrap: normal;
  word-break: normal;
}

.exhibition-section {
  border-top: 1px solid var(--line);
}

.exhibition-heading {
  max-width: 980px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.exhibition-heading h2 {
  max-width: 11ch;
}

.exhibition-heading p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.exhibition-copy {
  width: min(900px, 100%);
  column-count: 2;
  column-gap: clamp(32px, 6vw, 84px);
  margin-bottom: clamp(44px, 7vw, 88px);
}

.exhibition-copy p {
  break-inside: avoid;
  margin: 0 0 1.05em;
  color: #302d28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.18vw, 1.09rem);
  line-height: 1.78;
}

.installation-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.curated-installation {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
}

.installation-photo {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.curated-installation .installation-photo {
  grid-column: span 4;
  width: 100%;
}

.curated-installation .installation-photo.is-featured {
  grid-column: 1 / -1;
}

.curated-installation .installation-photo.is-wide {
  grid-column: span 8;
}

.curated-installation .installation-photo.is-half {
  grid-column: span 6;
}

.curated-installation .installation-photo.is-tall {
  grid-column: span 4;
}

.installation-photo img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  background: #f7f4ef;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.curated-installation .installation-photo img {
  display: block;
  height: auto;
  background: #fff;
  box-shadow: 0 18px 48px rgba(42, 36, 28, 0.12);
}

.installation-photo:hover img,
.installation-photo:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(34, 33, 31, 0.08);
}

.page-hero {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 54px;
}

.compact-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 7vw, 6.3rem);
}

.compact-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.catalogue-text {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 100px;
}

.catalogue-page-text {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.catalogue-page-text p {
  margin: 0;
  color: #302d28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.28vw, 1.12rem);
  line-height: 1.82;
  overflow-wrap: normal;
  word-break: normal;
}

.contact-section {
  color: var(--ink);
  background: #f0eee9;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.contact-section .section-kicker {
  color: var(--clay);
}

.contact-note {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-style: normal;
}

.contact-card a {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-weight: 400;
}

.contact-card span {
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.art-dialog {
  width: calc(100vw - 28px);
  height: calc(100vh - 28px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.art-dialog::backdrop {
  background: rgba(20, 19, 17, 0.72);
  backdrop-filter: blur(8px);
}

.art-dialog[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.art-dialog img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #fff;
}

.art-dialog div {
  padding: 12px 20px 16px;
  background: #fff;
}

.art-dialog h2 {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.art-dialog p {
  margin: 14px 0 0;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.92);
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--ink);
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(250, 247, 241, 0.98);
    box-shadow: 0 16px 44px rgba(34, 33, 31, 0.1);
  }

  .site-header.is-open .main-nav {
    display: grid;
    gap: 12px;
  }

  .hero {
    min-height: 88vh;
    padding: 118px 20px 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(23, 21, 18, 0.62), rgba(23, 21, 18, 0.18)),
      linear-gradient(0deg, rgba(23, 21, 18, 0.5), rgba(23, 21, 18, 0) 56%);
  }

  .intro,
  .work-layout,
  .quote-section,
  .text-links,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .exhibition-copy {
    column-count: 1;
  }

  .installation-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curated-installation {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .curated-installation .installation-photo,
  .curated-installation .installation-photo.is-tall {
    grid-column: span 3;
  }

  .curated-installation .installation-photo.is-wide,
  .curated-installation .installation-photo.is-half {
    grid-column: span 6;
  }

  .section-heading {
    display: block;
  }

  .gallery-grid {
    justify-content: center;
    gap: 18px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .art-dialog img {
    min-height: 0;
  }

  .page-hero,
  .catalogue-text {
    width: min(100% - 32px, 940px);
  }

  .catalogue-page-text {
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 62px 0;
  }

  .gallery-grid {
    justify-content: center;
  }

  .installation-gallery {
    grid-template-columns: 1fr;
  }

  .curated-installation {
    grid-template-columns: 1fr;
  }

  .curated-installation .installation-photo,
  .curated-installation .installation-photo.is-featured,
  .curated-installation .installation-photo.is-wide,
  .curated-installation .installation-photo.is-half,
  .curated-installation .installation-photo.is-tall {
    grid-column: 1;
  }

  .installation-photo img {
    height: 300px;
  }

  .curated-installation .installation-photo img {
    height: auto;
  }

  .art-card img {
    height: 100%;
  }


  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .page-hero {
    padding-top: 118px;
  }

  .compact-hero h1 {
    max-width: 100%;
  }

  .catalogue-text {
    width: min(100% - 28px, 940px);
    padding-bottom: 72px;
  }

  .catalogue-page-text p {
    font-size: 1rem;
    line-height: 1.74;
  }
}
