/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Zalando Sans Expanded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #000;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: stretch;
}

.hero-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  z-index: 1;
  pointer-events: none;
}

.hero-logo {
  background: #000;
  padding: 0.75rem 1.25rem;
}

.hero-logo img {
  display: block;
  height: 50px;
  width: auto;
}

.hero-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
}

.hero-nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.hero-nav-list a:hover {
  border-bottom-color: #fff;
}

.dvd-text-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.dvd-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Projects */
.projects {
  width: 100%;
  background: #fff;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
  max-width: 560px;
  width: 100%;
  align-items: center;
  text-align: center;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-item-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 2px solid #000;
  border-radius: 9999px;
  width: 100%;
  max-width: 280px;
  overflow: hidden;
  box-sizing: border-box;
}

.project-capsule-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image {
  width: 200px;
  height: 200px;
  display: block;
  border-radius: 100px;
  object-fit: cover;
}

.project-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #000;
}

.ghost-btn {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  max-width: calc(100% - 0.5rem);
  width: max-content;
  box-sizing: border-box;
  white-space: nowrap;
}

.ghost-btn:hover {
  background: #000;
  color: #fff;
}

/* About */
.about {
  width: 100%;
  background: #111;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-text {
  margin: 0;
  max-width: 90%;
  font-size: 3rem;
  color: #e5e5e5;
  font-weight: 400;
  line-height: 1.3;
}

/* Contact / Footer */
.contact {
  width: 100%;
  background: #fafafa;
  padding: clamp(2rem, 2vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}

.contact-row a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-row a:hover {
  border-bottom-color: #000;
}

.contact-sep {
  color: #999;
  user-select: none;
}

/* Project modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  cursor: pointer;
}

.modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  background: #fff;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid #000;
  color: #000;
  font-size: 1.5rem;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #000;
  color: #fff;
}

.modal-gallery {
  flex: 0 0 70%;
  width: 70%;
  height: 100%;
  overflow-y: auto;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-gallery-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
  width: 100%;
  max-width: 100%;
}

.modal-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.modal-gallery-item-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #000;
}

.modal-gallery-item-caption {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.modal-sidebar {
  flex: 0 0 30%;
  width: 30%;
  height: 100%;
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.modal-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
}

.modal-description {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
}

/* Responsive: tablet */
@media (max-width: 768px) {
  .project-capsule-wrapper {
    width: 160px;
    height: 160px;
  }

  .project-image {
    width: 160px;
    height: 160px;
  }

  .about-text {
    font-size: 2.25rem;
  }
}

/* Responsive: mobile */
@media (max-width: 480px) {
  .project-capsule-wrapper {
    width: 180px;
    height: 180px;
  }

  .project-image {
    width: 180px;
    height: 180px;
  }

  .project-item-capsule {
    max-width: 260px;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .project-name {
    font-size: 1rem;
  }

  .ghost-btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.875rem;
  }

  .about-text {
    font-size: 1.5rem;
  }

  .contact-row {
    font-size: 0.875rem;
  }
}
