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

body {
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #888;
}

/* ── Two-panel layout ── */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 180px;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #f0f0f0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}

.site-name {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 40px;
  align-self: flex-start;
}

/* ── Vertical nav ── */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-item {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #bbb;
  text-decoration: none;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: #111;
}

/* ── Projects dropdown ── */

.projects-dropdown {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding-left: 16px;
}

.projects-dropdown.open {
  max-height: 200px;
  opacity: 1;
}

.sub-item {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ccc;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}

.sub-item:hover,
.sub-item.active {
  color: #111;
}

/* ── Nav bottom (Info) ── */

.nav-bottom {
  margin-top: auto;
}

/* ── Main content (carousel page) ── */

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  padding: 40px 0;
}

.series-section { margin-bottom: 48px; }

.series-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbb;
  padding: 0 48px 12px;
}

.carousel-wrapper { position: relative; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 0 48px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track img {
  height: 300px !important;
  max-height: 300px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.carousel-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.85);
  border: 1px solid #f0f0f0;
  font-size: 16px;
  color: #bbb;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.carousel-arrow:hover { color: #111; border-color: #ccc; }

/* ── Info page ── */

.info-content {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
  padding: 48px 48px 48px;
  display: flex;
  align-items: flex-end;
  gap: 64px;
}

.info-text { flex: 1; max-width: 480px; padding-bottom: 48px; }

.info-name {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 24px;
}

.info-bio {
  font-size: 13px; line-height: 1.9; color: #888; margin-bottom: 32px;
}

.info-divider { border: none; border-top: 1px solid #f0f0f0; margin-bottom: 32px; }

.info-section-label {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: #bbb; margin-bottom: 16px;
}

.contact-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  gap: 32px;
}

.contact-row:first-of-type {
  border-top: 1px solid #f5f5f5;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #bbb;
  width: 80px;
  flex-shrink: 0;
}

.contact-value {
  font-size: 13px;
  color: #ccc;
}

.info-portrait { width: 280px; flex-shrink: 0; }
.info-portrait img { width: 100%; display: block; object-fit: cover; }

/* ── Sidebar social icons ── */

.sidebar-social {
  margin-top: 40px;
  display: flex;
  gap: 12px;
}

.sidebar-social a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.sidebar-social a:hover { color: #111; }

/* ── Project header ── */

.project-header {
  padding: 0 48px 32px;
}

.project-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 12px;
}

.project-description {
  font-size: 12px;
  line-height: 1.8;
  color: #aaa;
  max-width: 560px;
}

/* ── Lightbox ── */

.carousel-track img { cursor: pointer; }

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 180px;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ── Mobile banner + hamburger (hidden on desktop) ── */

.mobile-banner {
  display: none;
}

.sidebar-overlay {
  display: none;
}

/* ── Mobile responsive ── */

@media (max-width: 768px) {
  .mobile-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111;
    border-radius: 1px;
  }

  .site-name-mobile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
  }

  .sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    width: 240px;
    height: 100vh;
    z-index: 1100;
    background: #fff;
    transition: left 0.3s ease;
    border-right: 1px solid #f0f0f0;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .layout {
    flex-direction: column;
  }

  .main-content {
    height: auto;
    padding: 24px 0;
  }

  .carousel-track {
    padding: 0 16px;
  }

  .carousel-track img {
    height: 200px !important;
    max-height: 200px;
  }

  .series-label {
    padding: 0 16px 12px;
  }

  .project-header {
    padding: 0 16px 24px;
  }

  .lightbox {
    left: 0;
  }

  .info-content {
    height: auto;
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .info-portrait {
    width: 100%;
  }
}
