:root {
  --paper: #f7f5f0;
  --ink: #272621;
  --muted: #77756e;
  --line: #dedbd3;
  --accent: #94745f;
  --logo-accent: var(--accent);
  --soft: #eeece6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { height: 86px; padding: 0 7vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.wordmark { font: 500 28px/1 'Playfair Display', serif; letter-spacing: -.055em; }
.wordmark-accent { color: var(--logo-accent); }
.wordmark-header { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.wordmark-name { font: inherit; letter-spacing: inherit; }
.wordmark-header small { color: var(--muted); font: 7px/1.2 'DM Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 40px; margin-left: auto; margin-right: 42px; }
.nav a, .language-toggle { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nav a { color: #55534d; transition: color .2s; }
.nav a:hover, .language-toggle:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; }
.language-toggle { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 9px 12px; cursor: pointer; }
.language-toggle span { margin-left: 9px; color: var(--accent); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 21px; color: var(--ink); }

.hero { min-height: 620px; padding: 68px 10vw 82px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 5vw; align-items: center; position: relative; }
.hero-copy { padding-left: 1.5vw; }
.eyebrow { margin: 0 0 21px; color: var(--accent); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .section-heading h2, .about h2 { margin: 0; font: 400 clamp(46px, 5.6vw, 74px)/1.08 'Playfair Display', serif; letter-spacing: -.035em; }
.hero h1 i, .section-heading h2 i, .about h2 i, .closing-line i { color: var(--accent); font-weight: 400; }
.hero-signature { margin: 18px 0 0; font: 12px 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-signature span { color: var(--accent); padding: 0 4px; }
.hero-intro { max-width: 315px; margin: 23px 0 29px; color: var(--muted); font-size: 14px; }
.round-link { display: inline-flex; align-items: center; gap: 18px; padding: 0 0 8px; border-bottom: 1px solid var(--ink); font-size: 11px; letter-spacing: .03em; }
.round-link b { color: var(--accent); font-size: 15px; font-weight: 400; }
.hero-photo { height: auto; aspect-ratio: auto; position: relative; margin: 0; background: transparent; }
.hero-photo img, .about-image img, .photo-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; object-position: center; }
.hero-photo figcaption { position: static; margin-top: 12px; padding: 10px 0 0; border-top: 1px solid var(--line); color: var(--muted); font: italic 14px/1.5 'Playfair Display', serif; letter-spacing: .01em; text-align: right; }
.hero-side-note { position: absolute; right: 5.8vw; bottom: 31px; color: var(--muted); font-size: 8px; letter-spacing: .19em; writing-mode: vertical-rl; }

.section { padding: 100px 10vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading h2, .about h2 { font-size: clamp(39px, 4.6vw, 60px); }
.section-note { margin: 0 2vw 5px 0; color: var(--muted); font-size: 12px; }
.filters { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filter { position: relative; padding: 0 0 11px; border: 0; background: transparent; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; }
.filter.active { color: var(--ink); }
.filter.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--accent); }
.gallery-shell { position: relative; margin: 0 -7vw; }
.gallery { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 50px calc((100% - min(42vw, 560px)) / 2); }
.gallery::-webkit-scrollbar { display: none; }
.photo-card { flex: 0 0 min(42vw, 560px); min-width: 0; margin: 0; scroll-snap-align: center; opacity: .64; transform: scale(.9); transition: transform .3s, opacity .3s; }
.photo-card.is-active { position: relative; z-index: 1; opacity: 1; transform: scale(1.045); }
.photo-image { height: clamp(260px, 52vh, 480px); position: relative; overflow: hidden; background: transparent; }
.photo-image img { object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; z-index: 3; display: grid; width: 44px; height: 44px; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 23px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, opacity .2s; }
.gallery-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.gallery-arrow:disabled { opacity: .35; cursor: default; }
.gallery-prev { left: 2.5vw; }
.gallery-next { right: 2.5vw; }
.photo-card figcaption { padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.photo-card figcaption > span:first-child { font: 16px 'Playfair Display', serif; }
.photo-category { color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.empty-state { grid-column: 1 / -1; margin: 10px 0; color: var(--muted); font-size: 13px; }

.exhibitions { background: var(--soft); }
.exhibition-heading { margin-bottom: 39px; }
.exhibition-list { border-top: 1px solid #d8d5cd; }
.exhibition-row { display: grid; grid-template-columns: .45fr 1.35fr 1fr 22px; gap: 20px; align-items: center; padding: 21px 0; border-bottom: 1px solid #d8d5cd; transition: padding .2s; }
.exhibition-row:hover { padding-left: 10px; }
.exhibition-year { color: var(--accent); font-size: 12px; }
.exhibition-info { display: flex; flex-direction: column; align-items: flex-start; }
.exhibition-kind { margin-bottom: 3px; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.exhibition-info strong { font: 20px 'Playfair Display', serif; }
.exhibition-description { margin-top: 4px; color: var(--muted); font-size: 11px; }
.exhibition-opening { margin-top: 5px; color: var(--accent); font-size: 10px; letter-spacing: .02em; }
.exhibition-opening span { font-weight: 600; }
.exhibition-venue { color: #66645e; font-size: 10px; }
.exhibition-arrow { color: var(--accent); font-size: 16px; text-align: right; }

.about { display: grid; grid-template-columns: .82fr 1fr; align-items: start; gap: 9vw; background: var(--soft); }
.about-image { width: 100%; aspect-ratio: 1; height: auto; margin-top: 0; align-self: start; background: #e3e0d9; }
.about-copy { max-width: 520px; }
.about h2 { margin: 0 0 24px; }
.about-copy > p { max-width: 460px; margin: 17px 0; color: var(--muted); font-size: 13px; }
.inline-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.inline-link b { color: var(--accent); font-size: 14px; font-weight: 400; }

.closing { padding: 78px 20px 85px; text-align: center; }
.closing .eyebrow { margin-bottom: 17px; }
.closing-line { margin: 0 0 15px; font: 400 clamp(29px, 4vw, 44px)/1.3 'Playfair Display', serif; }
.closing-line i { font-style: normal; }
.closing .inline-link { margin-top: 12px; }
.contact-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px 16px; margin-top: 27px; color: var(--muted); font-size: 11px; }
.contact-links > span { width: 100%; color: var(--accent); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.contact-links a { border-bottom: 1px solid var(--line); }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }
footer { min-height: 92px; padding: 20px 7vw; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
footer .wordmark { font-size: 21px; }
footer p, footer > a:last-child { margin: 0; color: var(--muted); font-size: 10px; }
footer > a:last-child:hover { color: var(--accent); }

@media (max-width: 760px) {
  .site-header { height: 74px; padding: 0 6vw; }
  .nav { gap: 22px; margin-right: 25px; }
  .hero { min-height: auto; padding: 53px 7vw 75px; grid-template-columns: .8fr 1.2fr; gap: 4vw; }
  .hero h1 { font-size: clamp(43px, 7vw, 58px); }
  .hero-photo { height: auto; aspect-ratio: auto; }
  .hero-side-note { right: 3vw; }
  .section { padding: 78px 7vw; }
  .section-heading { align-items: end; }
  .gallery-shell { margin: 0 -4vw; }
  .gallery { gap: 22px; padding: 42px calc((100% - min(67vw, 520px)) / 2); }
  .photo-card { flex-basis: min(67vw, 520px); }
  .photo-image { height: auto; aspect-ratio: 4 / 3; }
  .about { grid-template-columns: .9fr 1fr; gap: 7vw; }
  .about-image { height: auto; }
  .exhibition-row { grid-template-columns: .32fr 1.3fr 1fr 18px; gap: 12px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 72px; padding: 0 6vw; }
  .wordmark { font-size: 27px; }
  .wordmark-header small { font-size: 6px; letter-spacing: .16em; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 13px; padding: 5px; }
  .nav { display: none; position: absolute; top: 71px; right: 0; left: 0; margin: 0; padding: 21px 7vw 26px; flex-direction: column; align-items: flex-start; gap: 17px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { font-size: 11px; }
  .hero { width: 100%; padding: 45px 7vw 64px; display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(45px, 12vw, 58px); }
  .hero-signature { font-size: 10px; margin-top: 13px; }
  .hero-intro { margin: 18px 0 24px; font-size: 13px; }
  .hero-photo { height: auto; aspect-ratio: auto; min-height: 0; margin-right: 10px; }
  .hero-photo figcaption { margin-top: 9px; padding: 8px 0 0; font-size: 12px; text-align: left; }
  .hero-side-note { display: none; }
  .section { padding: 72px 7vw; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading h2, .about h2 { font-size: clamp(39px, 10.6vw, 50px); }
  .section-note { margin: 15px 0 0; font-size: 11px; }
  .filters { gap: 22px; margin-bottom: 21px; overflow-x: auto; }
  .filter { flex: 0 0 auto; font-size: 9px; }
  .gallery-shell { margin: 0 -2vw; }
  .gallery { gap: 16px; padding: 35px calc((100% - 78vw) / 2); }
  .photo-card { flex-basis: 78vw; }
  .photo-image { height: auto; aspect-ratio: auto; overflow: visible; }
  .photo-image img { height: auto; max-height: 60vh; object-fit: contain; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 20px; }
  .gallery-prev { left: 1.5vw; }
  .gallery-next { right: 1.5vw; }
  .photo-card figcaption { padding-top: 8px; align-items: flex-start; flex-direction: column; gap: 2px; }
  .photo-card figcaption > span:first-child { font-size: 14px; }
  .photo-category { font-size: 7px; }
  .exhibition-row { grid-template-columns: 40px 1fr 18px; gap: 9px; padding: 16px 0; }
  .exhibition-year { align-self: start; padding-top: 3px; font-size: 11px; }
  .exhibition-info strong { font-size: 17px; }
  .exhibition-description { font-size: 10px; line-height: 1.5; }
  .exhibition-opening { font-size: 9px; line-height: 1.45; }
  .exhibition-venue { grid-column: 2; grid-row: 2; margin-top: -5px; font-size: 9px; }
  .exhibition-arrow { grid-column: 3; grid-row: 1; }
  .about { display: block; }
  .about-image { width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 31px; }
  .about h2 { margin-bottom: 18px; }
  .about-copy > p { font-size: 12px; line-height: 1.8; }
  .closing { padding: 65px 18px 70px; }
  .closing-line { font-size: clamp(27px, 8vw, 37px); }
  .contact-links { font-size: 10px; }
  .inline-link { font-size: 9px; }
  footer { min-height: 84px; padding: 18px 6vw; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
  footer .wordmark { grid-row: 1 / 3; }
  footer p, footer > a:last-child { grid-column: 2; text-align: right; }
}
