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

:root {
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text: #222;
  --bg: #fff;
  --accent: #888;
  --max-w: 1200px;
  --nav-h: 60px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header / Nav ─────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

.lang-switch {
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid #ddd;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.lang-current {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.5rem;
}

.lang-switch a {
  color: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

/* ── Main ─────────────────────────────────────────────── */

main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

/* ── Cover Page ──────────────────────────────────────── */

.cover {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cover-content {
  position: relative;
  z-index: 1;
}

.cover h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.cover-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cover-links a {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  transition: background 0.3s, color 0.3s;
}

.cover-links a:hover {
  background: #fff;
  color: #222;
}

.cover-social {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 1.2rem;
}

.cover-social a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cover-social a:hover {
  opacity: 1;
}

.cover-social svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* ── Bio ──────────────────────────────────────────────── */

.bio {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-image img {
  width: 100%;
  height: auto;
}

.bio-text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ── Works Grid (index) ───────────────────────────────── */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.work-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.work-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.03);
}

.work-card h3 {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Practice ─────────────────────────────────────────── */

.practice {
  max-width: 760px;
  margin: 0 auto;
}

.practice h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.practice p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  text-align: justify;
}

/* ── Exhibitions ──────────────────────────────────────── */

.exhibitions {
  max-width: 760px;
  margin: 0 auto;
}

.exhibitions h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.exhibitions h2:first-child {
  margin-top: 0;
}

.exhibition-list {
  padding-left: 0;
}

.exhibition-list .year {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.exhibition-list p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.3rem;
  padding-left: 1rem;
}

/* ── Contact ──────────────────────────────────────────── */

.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-portrait {
  max-width: 480px;
  margin: 0 auto 2rem;
}

.contact-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.contact-social a {
  color: #333;
  transition: color 0.2s;
}

.contact-social a:hover {
  color: #000;
}

.contact-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.carousel-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  cursor: grab;
}

.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}

.carousel-slide {
  flex: 0 0 65%;
  padding: 0 4px;
  display: block;
  height: 65vh;
  min-height: 400px;
  max-height: 700px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.5);
  border: none;
  color: #555;
  font-size: 3rem;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.85);
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

/* ── Gallery (work series) ────────────────────────────── */

.gallery {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.gallery-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.25rem;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.gallery-item:hover img {
  opacity: 0.85;
}

.gallery-item figcaption {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.4rem;
  text-align: center;
  font-style: italic;
}

.back-link {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
}

.back-link a {
  color: var(--accent);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--text);
}

/* ── Lightbox ─────────────────────────────────────────── */

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-size: 0.85rem;
  text-align: center;
  max-width: 80vw;
}

/* ── Footer ───────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--accent);
  border-top: 1px solid #eee;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
  }

  nav.open {
    display: flex;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
  }

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

  .bio-image {
    max-width: 250px;
  }

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

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  main {
    padding: 2rem 1.25rem;
  }
}
