.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-5);
  }
}

/* ── Sections ── */

section {
  padding-block: var(--section-padding);
}

/* ── Hero ── */

.hero {
  position: relative;
  height: calc(100svh - 24px);
  min-height: 560px;
  margin: 12px;
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: var(--space-16);
  padding-inline: var(--space-20) var(--space-8);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  filter: blur(6px);
  transform: scale(1.04);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 17, 14, 0.38) 0%, transparent 52%),
    linear-gradient(to top, rgba(20, 17, 14, 0.52) 0%, transparent 52%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-text-inverse);
  width: max-content;
  max-width: 100%;
}

.hero__card {
  position: absolute;
  right: var(--space-8);
  bottom: var(--space-10);
  z-index: 3;
}

@media (max-width: 640px) {
  .hero {
    align-items: center;
    padding-top: var(--nav-height);
    padding-bottom: 5.5rem;
    padding-inline: var(--space-5);
  }
  .hero__card {
    display: block;
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
  }
}

/* ── Manifesto ── */

.manifesto {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Fade the photo edges with a compositor-cheap overlay instead of a mask:
   masks force the moving layer to repaint on every smooth-scroll frame. */
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--color-bg) 0%, transparent 12%),
    linear-gradient(to top,    var(--color-bg) 0%, transparent 12%);
}

.manifesto__photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  contain: layout style paint;
  transform: translateZ(0);
  will-change: transform;
}

.manifesto__text {
  position: relative;
  z-index: 3;
}

/* ── Manifesto photos: positions ── */

.manifesto .photo-scatter__item:nth-child(1)  { left: 3%;               top: -6%;  width: 218px; height: 270px; }
.manifesto .photo-scatter__item:nth-child(2)  { right: 5%;              top: -4%;  width: 189px; height: 234px; }
.manifesto .photo-scatter__item:nth-child(3)  { left: 20%;              top: 18%;  width: 172px; height: 215px; }
.manifesto .photo-scatter__item:nth-child(4)  { right: 18%;             top: 24%;  width: 153px; height: 120px; }
.manifesto .photo-scatter__item:nth-child(5)  { left: 22%;              top: 56%;  width: 163px; height: 202px; }
.manifesto .photo-scatter__item:nth-child(6)  { right: 15%;             top: 58%;  width: 179px; height: 140px; }
.manifesto .photo-scatter__item:nth-child(7)  { left: 4%;               top: 84%;  width: 205px; height: 255px; }
.manifesto .photo-scatter__item:nth-child(8)  { right: 3%;              top: 87%;  width: 189px; height: 231px; }
.manifesto .photo-scatter__item:nth-child(9)  { left: calc(45% - 85px); top: 5%;   width: 170px; height: 212px; }
.manifesto .photo-scatter__item:nth-child(10) { left: calc(55% - 75px); top: 80%;  width: 150px; height: 117px; }

/* ── Services ── */

.services {
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--section-padding);
  padding-bottom: var(--space-16);
}

.services__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--space-20) var(--space-8);
  flex-shrink: 0;
}

.services__grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: var(--space-5);
  padding-inline: var(--space-20) var(--space-8);
  margin-top: var(--space-3);
  align-items: flex-start;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  .services__header,
  .services__grid {
    padding-inline: var(--space-8);
  }
}

@media (max-width: 640px) {
  .services {
    height: auto;
  }

  .services__header,
  .services__grid {
    padding-inline: var(--space-5);
  }
}

.services__grid::-webkit-scrollbar {
  display: none;
}

/* ── CTA / Form section ── */

.cta-section {
  position: relative;
  padding-block: var(--section-padding);
  overflow: hidden;
  color: var(--color-text-inverse);
  text-align: center;
  margin: 12px;
  border-radius: 20px;
}

.cta-section__bg {
  position: absolute;
  inset: -70px 0;
  object-fit: cover;
  width: 100%;
  height: calc(100% + 140px);
  z-index: 0;
  filter: blur(6px);
  transform: scale(1.04);
  will-change: transform;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0.55);
  z-index: 1;
}

.cta-section__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--space-8);
}

@media (max-width: 640px) {
  .manifesto .photo-scatter__item:nth-child(1)  { left: 2%;               top: 2%;   width: 105px; height: 130px; }
  .manifesto .photo-scatter__item:nth-child(2)  { right: 2%;              top: 4%;   width: 90px;  height: 112px; }
  .manifesto .photo-scatter__item:nth-child(3)  { left: 28%;              top: 22%;  width: 82px;  height: 102px; }
  .manifesto .photo-scatter__item:nth-child(4)  { right: 26%;             top: 18%;  width: 72px;  height: 56px;  }
  .manifesto .photo-scatter__item:nth-child(5)  { left: 30%;              top: 58%;  width: 78px;  height: 97px;  }
  .manifesto .photo-scatter__item:nth-child(6)  { right: 24%;             top: 62%;  width: 82px;  height: 64px;  }
  .manifesto .photo-scatter__item:nth-child(7)  { left: 2%;               top: 80%;  width: 96px;  height: 119px; }
  .manifesto .photo-scatter__item:nth-child(8)  { right: 2%;              top: 84%;  width: 88px;  height: 108px; }
  .manifesto .photo-scatter__item:nth-child(9)  { left: calc(50% - 52px); top: 6%;   width: 104px; height: 130px; }
  .manifesto .photo-scatter__item:nth-child(10) { left: calc(50% - 52px); top: 72%;  width: 104px; height: 81px;  }
}

