.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 132px 0 72px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 242, 237, 0.92) 0%, rgba(247, 242, 237, 0.56) 42%, rgba(247, 242, 237, 0.16) 100%),
    linear-gradient(0deg, rgba(44, 41, 38, 0.28), rgba(44, 41, 38, 0.04));
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  max-width: 720px;
  padding-bottom: 36px;
}

.hero-content h1 {
  color: var(--color-text);
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 560px;
  margin-top: 24px;
  color: var(--color-muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.manifest-section {
  padding: 110px 0;
  background: var(--color-bg);
  text-align: center;
}

.manifest-section p {
  max-width: 920px;
  margin-inline: auto;
  color: var(--color-brown);
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.8vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
}

.services-section {
  padding: 96px 0;
  background: var(--color-ice);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-nude);
  box-shadow: var(--shadow-soft);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(21, 19, 18, 0.62), rgba(21, 19, 18, 0.02));
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  z-index: 1;
  color: var(--color-ice);
}

.service-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(250, 248, 245, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
}

.featured-portfolio-section {
  padding: 110px 0;
  background: var(--color-bg);
}

.featured-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: repeat(4, 145px);
  gap: 2px;
}

.featured-photo {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-nude);
}

.featured-photo-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.featured-photo-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.featured-photo-3 {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.featured-photo-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.featured-photo-5 {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
}

.featured-photo-6 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.featured-photo-7 {
  grid-column: 4 / 5;
  grid-row: 3 / 5;
}

.featured-photo-8 {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.featured-photo.tall {
  grid-row: span 2;
}

.featured-photo.wide {
  grid-column: span 2;
}

.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.featured-photo:hover img {
  transform: scale(1.06);
  filter: saturate(0.82);
}

.about-preview-section {
  padding: 110px 0;
  background: var(--color-bg-soft);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-preview-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-preview-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-preview-content {
  max-width: 620px;
}

.about-preview-content p {
  margin-top: 24px;
  color: var(--color-muted);
}

.final-cta-section {
  padding: 110px 0;
  background: var(--color-ice);
  text-align: center;
}

.final-cta-section .btn {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 360px;
  }

  .featured-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-preview-image {
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 92vh;
    padding: 112px 0 56px;
  }

  .hero-image-wrap::after {
    background:
      linear-gradient(0deg, rgba(247, 242, 237, 0.96) 0%, rgba(247, 242, 237, 0.7) 46%, rgba(247, 242, 237, 0.18) 100%),
      linear-gradient(0deg, rgba(44, 41, 38, 0.2), rgba(44, 41, 38, 0.04));
  }

  .hero-content {
    width: min(100% - 24px, var(--container));
    padding-bottom: 0;
  }

  .hero-actions {
    display: grid;
  }

  .manifest-section,
  .services-section,
  .featured-portfolio-section,
  .about-preview-section,
  .final-cta-section {
    padding: 74px 0;
  }

  .featured-masonry {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  grid-auto-rows: 300px;
}

.featured-photo-1,
.featured-photo-2,
.featured-photo-3,
.featured-photo-4,
.featured-photo-5,
.featured-photo-6,
.featured-photo-7,
.featured-photo-8 {
  grid-column: auto;
  grid-row: auto;
}

  .featured-photo.tall,
  .featured-photo.wide {
    grid-column: auto;
    grid-row: auto;
  }
}