@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --bg: #f9f8f5;
  --text: #1c1c1c;
  --text-light: #909090;
  --accent: #8b7355;
  --border: #e2dfd9;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
}

/* ─── HEADER ─── */

header {
  padding: 44px 60px 0;
  text-align: center;
  position: relative;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: block;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.site-title:hover { color: var(--accent); }

/* ─── NAV ─── */

nav {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
  position: absolute;
  right: 24px;
  top: 50px;
  line-height: 1;
}

/* ─── MAIN ─── */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 48px 80px;
}

/* ─── YEAR TABS ─── */

.year-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 8px 28px 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ─── OBRA GRID ─── */

.obra-section { display: none; }
.obra-section.active { display: block; }

.obra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
}

.obra-item {
  cursor: pointer;
}

.obra-item:hover .obra-img-wrap img {
  transform: scale(1.04);
}

.obra-img-wrap {
  overflow: hidden;
  background: #dedad4;
}

.obra-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.portrait { aspect-ratio: 3 / 4; }
.landscape { aspect-ratio: 4 / 3; }
.square { aspect-ratio: 1 / 1; }

.obra-caption {
  padding: 11px 2px 6px;
}

.obra-caption .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  display: block;
}

.obra-caption .meta {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 2px;
  display: block;
}

/* ─── LIGHTBOX ─── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.93);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 50px 80px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 82vw;
}

.lightbox-inner img {
  max-height: 76vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #ccc9c3;
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: -4px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 16px 20px;
  transition: color 0.2s;
}

.lightbox-nav:hover { color: #fff; }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

/* ─── BIO PAGE ─── */

.bio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-photo {
  background: #dedad4;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-content {}

.bio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  line-height: 1.2;
}

.bio-content p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}

.bio-content h3 {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 34px 0 14px;
}

.expo-list {
  list-style: none;
}

.expo-list li {
  font-size: 0.88rem;
  color: #444;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
}

.expo-list li .year {
  color: var(--text-light);
  min-width: 36px;
  font-size: 0.78rem;
  padding-top: 1px;
}

.bio-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.bio-cv-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── VIDEOS PAGE ─── */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 44px;
}

.video-item {}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #1e1c19;
  overflow: hidden;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1e1c19;
  color: #777;
  text-decoration: none;
  transition: background 0.25s;
}

.video-placeholder:hover {
  background: #2a2824;
}

.play-icon {
  width: 54px;
  height: 54px;
  border: 1.5px solid #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.play-icon::after {
  content: '';
  border-left: 18px solid #777;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}

.video-placeholder span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.video-meta {
  padding: 14px 2px 8px;
}

.video-meta .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  display: block;
}

.video-meta .info {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* ─── CONTACT PAGE ─── */

.contact-wrap {
  max-width: 560px;
}

.contact-intro {
  margin-bottom: 50px;
}

.contact-intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-intro p {
  font-size: 0.88rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  resize: none;
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--text);
}

.form-group textarea { height: 110px; }

.submit-btn {
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  border: 1px solid var(--text);
  padding: 11px 38px;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  transition: background 0.22s, color 0.22s;
}

.submit-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.contact-links {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.contact-links a:hover { color: var(--text); }

.contact-label {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 4px;
  display: block;
}

/* ─── FOOTER ─── */

footer {
  text-align: center;
  padding: 36px 60px;
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 860px) {
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bio-photo {
    max-height: 380px;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  header {
    padding: 28px 24px 0;
    text-align: left;
  }

  .site-title {
    font-size: 1.6rem;
    letter-spacing: 0.35em;
    margin-bottom: 0;
  }

  .menu-toggle { display: block; }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 24px;
    display: none;
  }

  nav.open { display: flex; }

  main {
    padding: 36px 20px 60px;
  }

  .obra-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .year-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .lightbox {
    padding: 20px;
  }

  #lb-prev { left: 4px; }
  #lb-next { right: 4px; }

  footer { padding: 28px 20px; }
}
