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

body {
  font-family: 'Playfair Display', Georgia, serif;
  min-height: 100vh;
  background: #fff;
  color: #222;
  padding: 0 2rem;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 6vh 0 4rem;
}

@keyframes slideUp {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, .bio, .links, .work-intro, .work-column h2, .project {
  --spring-easing: linear(
    0, 0.005, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.563, 0.645, 0.717,
    0.778 28.5%, 0.829 32%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.961 50.3%,
    0.977 56.5%, 0.987 63.6%, 0.994 72.3%, 1
  );
  opacity: 0;
  animation:
    slideUp 1.5s var(--spring-easing) forwards,
    fadeIn 500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

h1 { animation-delay: 0s; }
.bio { animation-delay: 0.1s; }
.links { animation-delay: 0.2s; }
.work-intro { animation-delay: 0.3s; }

.wave {
  display: inline-block;
  animation: wave 2s ease-in-out 0.5s;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

header {
  text-align: center;
  margin-bottom: 4rem;
}

h1 {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.bio {
  font-size: 1.5rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 2rem;
}

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

.links a {
  color: #222;
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.links a:hover {
  border-color: #222;
}

.dot {
  color: #999;
}

/* Work Section */
.work {
  margin-top: 4rem;
}

.work-intro {
  font-size: 1.125rem;
  color: #666;
  padding-bottom: 2rem;
  text-align: center;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.work-column h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project {
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #222;
  cursor: pointer;
  transition: background 0.2s;
}

.project:first-child {
  border-top: 1px solid #eee;
}

.project:hover {
  background: #fafafa;
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.project-year {
  font-size: 0.875rem;
  color: #999;
  width: 50px;
  flex-shrink: 0;
}

.project-title {
  flex-grow: 1;
  font-size: 1.125rem;
}

.project-arrow {
  font-size: 1.125rem;
  color: #ccc;
  transition: transform 0.2s, color 0.2s;
}

.project:hover .project-arrow {
  transform: translateX(4px);
  color: #222;
}

.play-icon {
  font-size: 0.625rem;
  color: #999;
  margin-left: 0.4rem;
}

.video-project {
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

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

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  main {
    padding-top: 8vh;
  }

  h1 {
    font-size: 2.5rem;
  }

  .bio {
    font-size: 1.25rem;
  }

  header {
    margin-bottom: 4rem;
  }

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

  .project-year {
    width: 45px;
  }
}
