/* Home-only sections keep the catalogue's existing layout independent. */
.section {
  padding-block: 104px;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
  text-wrap: balance;
  white-space: pre-line;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.feature__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--surface);
}

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

.feature__copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 12px;
}

.section-number {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.feature h3,
.steps h3 {
  font-size: 18px;
  font-weight: 400;
}

.feature p {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.section--workflow,
.section--outro {
  background: var(--surface);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}

.workflow__copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.workflow__shot {
  background: var(--control);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
}

.step__number {
  display: grid;
  place-items: center;
  height: 32px;
  background: var(--control);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.steps li > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 13px;
}

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 13px;
  white-space: nowrap;
}

.text-link:hover,
.outro__support a:hover,
.footer a:hover {
  color: var(--mint);
}

.gallery {
  column-count: 4;
  column-gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface);
  transition: transform 180ms ease;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.tile:hover img {
  opacity: 0.88;
}

.tile__overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.tile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

.tile__action {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.tile:hover .tile__action {
  color: var(--mint);
  transform: translate(1px, -1px);
}

.outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.outro .section__head {
  align-items: center;
}

.outro__support {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.outro__support a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  padding-block: 32px;
}

.footer__row,
.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__row {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.footer .brand {
  color: var(--ink);
  font-size: 18px;
}

.footer .brand__wordmark {
  width: 112px;
}

.footer__links {
  margin-left: auto;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

@media (max-width: 1000px) {
  .features {
    gap: 24px;
  }
  .workflow {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .workflow__copy {
    max-width: 640px;
  }
  .gallery {
    column-count: 3;
    column-gap: 16px;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: 64px;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 32px;
  }
  .feature__image {
    aspect-ratio: 16 / 10;
  }
  .gallery__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
  }
  .gallery {
    column-count: 2;
    column-gap: 12px;
  }
  .tile__overlay {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}
  .outro .lead {
    text-wrap: balance;
  }
}
