:root {
  --paper: #ffffffcd;
  --ink: #171513;
  --muted: #414141;
  --line: #979797a0;
  --veil: rgb(255, 255, 255);
  --shadow: 0 24px 80px rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff 0, var(--paper) 45%, #f2eee7 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 21, 19, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 21, 19, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--veil);
  backdrop-filter: blur(16px);
}

.logo {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 280ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

main {
  padding: clamp(2.5rem, 7vw, 7rem) clamp(1rem, 4vw, 3.5rem);
  padding-top: 0;
}

.hero {
  margin-top: 0;
  padding-top: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 4.0rem;
}
.section-heading .kicker { margin-bottom: 2.5rem; }

h1, h2, h3 {
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.0rem, 5.0rem, 4rem); }
h2 { font-size: clamp(2.0rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.1rem, 3vw, 2.4rem); }

.lede {
  color: var(--muted);
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
  max-width: 42rem;
  margin: 2.5rem 0 3rem;
}

.button-row { display: flex; flex-wrap: wrap; gap: 5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  transition: transform 260ms ease, background 260ms ease, color 260ms ease;
}
.button:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--paper);
}
.button.ghost { border-color: var(--line); color: var(--muted); }
.button.ghost:hover { color: var(--paper); border-color: var(--ink); }
.back-link {
  display: inline-block;
  margin-top:2rem;
  text-decoration: underline;
  color: rgba(66, 66, 66, 0.6);
  transition: opacity 220ms ease;   
}
.back-link:hover {
  opacity: 0.5;
}
.hero-art {
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.hero-art figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.08rem;
  padding: 0.8rem 1rem;
  color: rgba(124, 124, 124, 0.55);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.00rem;
  letter-spacing: 0.18em;
  text-transform: none;
  line-height: 1.9;
  word-spacing: 0.03em;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;

  border: none;
  background: transparent;
  backdrop-filter: none;

  color: rgba(124, 124, 124, 0.5);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;
  transition: color 260ms ease, transform 260ms ease;
}

.carousel-btn:hover {
  background: transparent;
  color: rgb(109, 109, 109);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.active {
  background: rgba(255, 255, 255, 0.8);
}

.hero > div {
  padding: 3rem 2em 4rem;
  max-width: 900px;
}

.section-heading {
  display: flex;
  /* justify-content: space-between; */
  gap: 17rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  margin-left: 1.8rem;
}
.section-heading p {
   max-width: 34rem;
  color: var(--muted); line-height: 1.9; letter-spacing: 0.02em; word-spacing: 0.03em;
  margin-top:1.5rem;margin-bottom: 0;
} 

.section-heading .kicker{
  letter-spacing: 0.18em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 2rem);
}

.art-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  animation: rise 800ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.art-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: transform 600ms ease, filter 600ms ease;
}
.art-card:hover img { transform: scale(0.985); filter: grayscale(0.25); }
.art-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; color: var(--muted); }
.art-meta strong { color: var(--ink); font-weight: 400; font-size: 1.35rem; }

.text-page {
  max-width: 74rem;
  margin: 0 auto;
}
.text-columns {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: 3rem;
}
.text-columns p, .exhibition-list p, .artwork-copy p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}
.portrait-card {
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.portrait-card img {
  aspect-ratio: 4 / 3;
  border: none;
  box-shadow: none;
  display: block;
}

.exhibition-list {
  border-top: 1px solid var(--line);
}
.exhibition-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.exhibition-item time { color: var(--muted); }

.artwork-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.artwork-layout img { border: 1px solid var(--line); box-shadow: var(--shadow); }
.artwork-details { margin: 1.3rem 0; padding: 0; list-style: none; color: var(--muted); border-top: 1px solid var(--line); }
.artwork-details li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }

/* Artwork image gallery */
.artwork-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gallery-track {
  position: relative;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-slide.active {
  display: block;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: none;
  padding: 0.55rem 1rem;
}

.gallery-btn {
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 220ms ease, transform 220ms ease;
  line-height: 1;
}

.gallery-btn:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.gallery-btn.next:hover {
  transform: translateX(2px);
}

.gallery-counter {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms ease, transform 900ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px) rotate(1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (max-width: 850px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero, .text-columns, .artwork-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
}

@media (max-width: 560px) {
  main { padding-top: 2rem; }
  h1 { font-size: 4rem; }
  .grid { grid-template-columns: 1fr; }
  .exhibition-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .site-footer { display: block; }
    .hero-art {
    aspect-ratio: 4 / 5;
  }

  .hero-art figcaption {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    line-height: 1.5;
    bottom: 0.4rem;
  }

  .carousel-btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.2rem;
  }

  .carousel-dots {
    bottom: 3.7rem;
  }
}