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

:root {
  --bg:      #0a0a0a;
  --surface: #171717;
  --border:  #262626;
  --text:    #fafafa;
  --muted:   #a3a3a3;
  --dim:     #737373;
  --faint:   #525252;
  --ghost:   #404040;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

/* ── Hero ── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  text-align: center;
}

.hero-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2.5rem;
}

.hero-name {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-rule {
  width: 3rem;
  height: 1px;
  background: var(--ghost);
  margin: 2.5rem auto 0;
  border: none;
}

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6rem;
  background: linear-gradient(to bottom, transparent, var(--border));
}

/* ── Featured Project ── */

.featured {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}

.featured-image {
  position: relative;
  height: 18rem;
  background: var(--surface);
  overflow: hidden;
  order: 1;
}

.featured-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-image.contain img {
  object-fit: contain;
  padding: 2.5rem;
}

.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  order: 2;
}

.project-year {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.25rem;
}

.project-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.project-desc {
  color: var(--muted);
  line-height: 1.8;
  max-width: 28rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--muted);
}

/* ── Text Project ── */

.text-project {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.text-project-inner {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 56rem;
}

.text-project-year {
  text-align: right;
  padding-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ghost);
  line-height: 1.6;
}

.text-project-title {
  font-size: 1rem;
  font-weight: 600;
  color: #d4d4d4;
  margin-bottom: 0.5rem;
}

.text-project-desc {
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.8;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dim);
}

.footer-role {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* ── Paintings Gallery ── */

.paintings-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.paintings-hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6rem;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.painting {
  border-top: 1px solid var(--border);
  padding: 4rem 8% 0;
}

.painting-image {
  overflow: hidden;
  line-height: 0;
}

.painting-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.painting-info {
  padding: 1.5rem 0 3rem;
}

.painting-title {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.painting-medium {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Lightbox ── */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

#lightbox-close:hover {
  color: var(--text);
}

@media (min-width: 640px) {
  .painting {
    padding: 4rem 15% 0;
  }

  .paintings-hero {
    min-height: 60vh;
  }
}

@media (min-width: 1024px) {
  .painting {
    padding: 5rem 25% 0;
  }
}

@media (min-width: 1280px) {
  .painting {
    padding: 5rem 33% 0;
  }
}

/* ── Responsive ── */

@media (min-width: 640px) {
  .featured-image {
    height: 24rem;
  }

  .text-project-inner {
    grid-template-columns: 96px 1fr;
    gap: 2rem;
  }

  .text-project-year {
    font-size: 1rem;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 4rem 3.5rem;
  }
}

@media (min-width: 1024px) {
  .featured {
    grid-template-columns: 1fr 1fr;
    min-height: 75vh;
  }

  .featured-image {
    height: auto;
    order: 1;
  }

  .featured.reversed .featured-image {
    order: 2;
  }

  .featured-text {
    padding: 3.5rem 3.5rem;
    order: 2;
  }

  .featured.reversed .featured-text {
    order: 1;
  }

  .text-project {
    padding: 3rem 3.5rem;
  }

  .text-project-inner {
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
  }

  .text-project-year {
    font-size: 1.1rem;
  }

  .text-project-title {
    font-size: 1.05rem;
  }

  .text-project-desc {
    font-size: 1rem;
  }
}

@media (min-width: 1280px) {
  .featured-text {
    padding: 3.5rem 5rem;
  }

  .text-project {
    padding: 3rem 5rem;
  }
}
