.portrait-page main {
  padding: 0 0 clamp(2.5rem, 6vw, 5rem);
}

.portrait-hero {
  position: relative;
  min-height: 96svh;
  overflow: hidden;
  background: #141414;
}

.portrait-hero__media,
.service-card__media {
  position: absolute;
  inset: 0;
}

.portrait-hero__media::after,
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.portrait-hero__media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.service-card__media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

.portrait-hero__media img,
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.portrait-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  min-height: 94svh;
  max-width: 48rem;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.5rem, 5vw, 2.75rem);
  color: #ffffff;
}

.section-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portrait-hero h1,
.section-copy h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.portrait-hero h1 {
  max-width: 9ch;
  font-size: clamp(2.5rem, 7.8vw, 6rem);
}

.portrait-hero__text,
.section-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.06rem);
  line-height: 1.68;
}

.portrait-hero__text {
  max-width: 39rem;
  color: rgba(255, 255, 255, 0.88);
}

.portrait-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portrait-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.88rem 1.3rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.portrait-button:hover {
  opacity: 0.82;
}

.portrait-button--primary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.portrait-button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #ffffff;
}

.portrait-services,
.portrait-gallery-section {
  margin-top: clamp(3.25rem, 7vw, 6rem);
}

.section-copy {
  display: grid;
  gap: 0.6rem;
  max-width: 46rem;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.2rem, 2.6vw, 1.8rem);
}

.section-copy h2 {
  font-size: clamp(1.95rem, 4.4vw, 3.5rem);
}

.section-copy p {
  color: var(--color-text-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.4vw, 1rem);
  width: min(100%, 104rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 1.8vw, 1.6rem);
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  background: #151515;
  isolation: isolate;
}

.service-card__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.service-card__button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -0.35rem;
}

.service-card__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: start;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  color: #ffffff;
  pointer-events: none;
}

.service-card__copy {
  display: grid;
  justify-items: start;
  gap: 0.42rem;
  max-width: min(17rem, 88%);
  text-align: left;
}

.service-card__title {
  color: #ffffff;
  font-size: clamp(0.84rem, 1.08vw, 0.96rem);
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-shadow: 0 0.08rem 0.85rem rgba(0, 0, 0, 0.72);
}

.service-card__cta {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.6rem, 0.72vw, 0.68rem);
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration-line: underline;
  text-decoration-thickness: 0.045rem;
  text-underline-offset: 0.3rem;
  text-shadow: 0 0.08rem 0.8rem rgba(0, 0, 0, 0.68);
}

.service-card:hover .service-card__media img,
.service-card:focus-within .service-card__media img {
  transform: scale(1.012);
}

.service-card:hover .service-card__cta,
.service-card:focus-within .service-card__cta {
  color: #ffffff;
}

.service-card__media img {
  transition: transform 320ms ease;
}

.portrait-gallery-section .section-copy {
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.auto-gallery {
  padding-inline: clamp(1rem, 1.8vw, 1.6rem);
}

.portrait-scroll-actions {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(1rem, 2vw, 1.5rem) + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.7rem);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.portrait-scroll-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.portrait-scroll-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.portrait-scroll-action:hover,
.portrait-scroll-action:focus-visible {
  opacity: 0.82;
}

.portrait-scroll-action--icon {
  width: 2.75rem;
  padding: 0;
  cursor: pointer;
}

.portrait-scroll-action--icon svg {
  width: 1rem;
  height: 1rem;
}

.portrait-scroll-action--request {
  padding: 0.85rem 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-card {
    aspect-ratio: 5 / 7;
  }
}

@media (max-width: 40rem) {
  .portrait-hero {
    min-height: 90svh;
  }

  .portrait-hero__content {
    min-height: 90svh;
    padding-inline: 1rem;
    padding-bottom: 1.25rem;
  }

  .portrait-hero h1 {
    max-width: 8ch;
    font-size: clamp(2.2rem, 10vw, 4.2rem);
  }

  .portrait-hero__actions {
    flex-direction: column;
  }

  .portrait-button {
    width: 100%;
  }

  .section-copy,
  .services-grid,
  .auto-gallery {
    padding-inline: 1rem;
  }

  .service-card {
    min-height: auto;
  }

  .service-card__overlay {
    padding: 1rem;
  }

  .portrait-scroll-actions {
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    gap: 0.55rem;
  }

  .portrait-scroll-action {
    min-height: 2.6rem;
  }

  .portrait-scroll-action--icon {
    width: 2.6rem;
  }

  .portrait-scroll-action--request {
    padding-inline: 1rem;
    font-size: 0.68rem;
  }
}

@media (prefers-color-scheme: light) {
  .portrait-page main {
    padding-top: var(--site-header-height);
  }

  .portrait-hero {
    min-height: calc(96svh - var(--site-header-height));
  }

  .portrait-hero__content {
    min-height: calc(94svh - var(--site-header-height));
  }
}

@media (prefers-color-scheme: light) and (max-width: 40rem) {
  .portrait-hero {
    min-height: calc(90svh - var(--site-header-height));
  }

  .portrait-hero__content {
    min-height: calc(90svh - var(--site-header-height));
  }
}