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

body {
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  color: #1e1e20;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 96px;
}

.site-logo {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 500;
  color: #1e1e20;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-pill {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  color: #9da3af;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-pill-active {
  color: #1e1e20;
}

.nav-pill:hover {
  color: #1e1e20;
}

/* Bento Photo Gallery */
.bento-gallery {
  padding: 20px 96px 60px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 360px 360px;
  gap: 12px;
}

.bento-cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.bento-wide {
  grid-column: span 2;
}

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.bento-img.active {
  opacity: 1;
}

/* Intro Text */
.home-intro {
  padding: 30vh 96px 120px;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-intro-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.5;
  color: #9da3af;
}

.home-intro-text strong {
  font-weight: 500;
  font-size: 40px;
  color: #1e1e20;
}

.home-mood {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #9da3af;
  margin-top: 24px;
  letter-spacing: 1px;
}

/* StepUp Video Carousel */
.stepup-carousel {
  position: relative;
}

.stepup-carousel .carousel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}

.stepup-carousel .carousel-video.active {
  opacity: 1;
}

/* Projects Grid */
.projects {
  padding: 40px 96px 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 36px;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 24px;
  gap: 0;
  transition: transform 0.2s;
  opacity: 0;
  transform: translateY(30px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-cover {
  width: 100%;
  aspect-ratio: 4 / 3.5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover video.project-cover-img {
  object-fit: contain;
  background: #fff;
  padding: 32px;
}

.project-cover-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
}

.placeholder-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #b0b0b0;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1e1e20;
  margin-bottom: 8px;
}

.project-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #979797;
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-tags {
  display: flex;
  gap: 8px;
}

.project-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1e1e20;
  border: 1px solid #1e1e20;
  border-radius: 4px;
  padding: 4px 8px;
}

.project-year {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #979797;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 39px 100px;
}

.footer-text {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 32px;
  color: #1e1e20;
  transition: opacity 0.4s ease;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #1e1e20;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

/* iPad / Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .site-header {
    padding: 24px 48px;
  }

  .site-logo {
    font-size: 32px;
  }

  .nav-pill {
    font-size: 28px;
  }

  .home-intro {
    padding: 20vh 48px 80px;
  }

  .home-intro-text {
    font-size: 28px;
  }

  .home-intro-text strong {
    font-size: 32px;
  }

  .projects {
    padding: 40px 48px 60px;
  }

  .projects-grid {
    gap: 36px 24px;
  }

  .site-footer {
    padding: 32px 48px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
  }

  .site-logo {
    font-size: 28px;
  }

  .nav-pill {
    font-size: 20px;
  }

  .home-intro {
    padding: 15vh 24px 60px;
  }

  .home-intro-text {
    font-size: 22px;
  }

  .home-intro-text strong {
    font-size: 26px;
  }

  .home-mood {
    font-size: 16px;
  }

  .projects {
    padding: 24px 24px 48px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-card {
    padding: 16px;
    border-radius: 16px;
  }

  .project-cover {
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .project-cover video.project-cover-img {
    padding: 16px;
  }

  .project-title {
    font-size: 18px;
  }

  .project-desc {
    font-size: 13px;
  }

  .site-footer {
    flex-direction: column;
    gap: 20px;
    padding: 32px 24px;
    text-align: center;
  }

  .footer-text {
    font-size: 24px;
  }

  .footer-links {
    gap: 24px;
  }
}
