body { background: #f9f9f9; }

/* ── MAIN WRAPPER ── */
.main {
  display: flex;
  flex-direction: column;
}

/* ── HERO + WORKS WRAPPER ── */
.top-section {
  display: flex;
  flex-direction: column;
  background: #fff;
  gap: 64px;
  padding-top: 38px; /* 128px from top, minus the 90px sticky nav */
}

/* ── HERO CAROUSEL ── */
.hero-carousel {
  position: relative;
  width: calc(100% - 64px);
  margin: 0 32px;
  height: 634px;
  overflow: hidden;
}

/* Images crossfade behind the fixed overlay */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

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

/* Overlay — fixed, matches Figma: lower-right, glass effect */
.hero-overlay {
  position: absolute;
  top: 311px;
  left: 40.71%;   /* 495 / 1216 */
  right: 31px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 25px 49px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  z-index: 5;
}

.hero-overlay-spacer { height: 15px; }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -4.8px;
  color: #fff;
  white-space: pre-wrap;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22.75px;
  color: #fff;
}

/* Dots — matches Figma node 35:18: 100×10px, left:25px, bottom:31px */
.hero-dots {
  position: absolute;
  bottom: 31px;
  left: 25px;
  width: 100px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: #fff;
  width: 10px;
  height: 10px;
}

/* ── WORKS HEADER ── */
.works-header {
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.works-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -4.8px;
  max-width: 448px;
}

.works-title span { color: #cfc4c5; }




/* ── PROJECT GRID ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 96px;
  max-width: 1600px;
  width: 100%;
  padding: 0 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-img-wrap {
  background: #eee;
  overflow: hidden;
  width: 100%;
}

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

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

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}





.project-arrow {
  width: 16px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Grid placements — driven dynamically by JS */
.project-card {
  align-self: start;
}

/* ── WHAT WE DELIVER ── */
.deliver {
  background: #f5f1ed;
  padding: 100px 120px;
  overflow: hidden;
}

.deliver-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.deliver-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 50px;
  letter-spacing: -4.8px;
  color: #1b1b1b;
  white-space: nowrap;
}

.deliver-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

.deliver-card {
  background: #fff;
  position: relative;
  height: 284.25px;
}

.deliver-card-content {
  position: absolute;
  left: 48px;
  right: 48.33px;
}

.deliver-card-icon { top: 48px; }
.deliver-card-icon img { display: block; }

.deliver-card-heading {
  top: 112px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.6px;
  color: #1b1b1b;
  height: 32px;
  display: flex;
  align-items: center;
}

.deliver-card-text {
  top: 166.75px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22.75px;
  color: #4c4546;
}

.deliver-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 576px;
  width: 576px;
}

.deliver-cta-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #a1a1aa;
  text-align: center;
}

a.project-card {
  color: inherit;
  text-decoration: none;
}

a.project-card:hover .project-info > span:nth-child(2) { text-decoration: underline; }

/* ── TABLET / MOBILE ── */
@media (max-width: 1024px) {
  .hero-overlay { left: 32px; right: 32px; top: auto; bottom: 64px; padding: 24px 32px; }
  .deliver { padding: 80px 32px; }
}

@media (max-width: 768px) {
  .top-section { padding-top: 16px; gap: 48px; }

  .hero-carousel { width: calc(100% - 32px); margin: 0 16px; height: 520px; }
  .hero-overlay { left: 12px; right: 12px; bottom: 48px; padding: 16px 20px; gap: 8px; }
  .hero-overlay-spacer { display: none; }
  .hero-title { font-size: 30px; line-height: 34px; letter-spacing: -1.2px; }
  .hero-desc { font-size: 13px; line-height: 20px; }
  .hero-dots { left: 16px; bottom: 20px; }

  .works-header { flex-direction: column; align-items: flex-start; gap: 24px; padding: 0 16px; }
  .works-title { font-size: 56px; line-height: 56px; letter-spacing: -3px; }

  /* The staggered desktop grid is set inline by home.js; stack cards instead */
  .project-grid { grid-template-columns: 1fr; row-gap: 48px; padding: 0 16px; }
  .project-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 16px;
  }
  .project-img-wrap { height: auto !important; aspect-ratio: 4 / 3; }
  .project-name-lg { font-size: 24px; line-height: 32px; }

  .deliver { padding: 64px 16px; }
  .deliver-title { font-size: 36px; line-height: 40px; letter-spacing: -2px; white-space: normal; text-align: center; }
  .deliver-cards { grid-template-columns: 1fr; gap: 16px; }
  .deliver-card { height: auto; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
  .deliver-card-content { position: static; }
  .deliver-card-heading { height: auto; }
  .deliver-cta { width: 100%; }
  .deliver-cta-text { font-size: 16px; line-height: 24px; }
}
