/* Homepage editorial content: retain the existing visual sections. */
body.ad-theme.page-id-2 .about h1 strong {
  font-size: clamp(38px, 4.4vw, 72px);
}
body.ad-theme.page-id-2 .about h1 span {
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1.08;
}
body.ad-theme.page-id-2 .services-intro > p,
body.ad-theme.page-id-2 .services-intro > .wp-block-group__inner-container > p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
}
body.ad-theme.page-id-2 .services-intro p a {
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.ad-theme .ad-home-details {
  position: relative;
  background: #f8f8f5;
  color: #060606;
  padding: clamp(60px, 8vw, 120px) 0;
}
body.ad-theme .ad-home-details__inner {
  max-width: var(--ad-container-width, 1400px);
  padding: 0 var(--ad-container-gutter, 24px);
  margin: 0 auto;
}
body.ad-theme .ad-home-details h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.16;
  letter-spacing: -.025em;
  margin: 0 0 28px;
}
body.ad-theme .ad-home-details h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 12px;
}
body.ad-theme .ad-home-details p:not(.kicker) {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
  overflow-wrap: break-word;
}
body.ad-theme .ad-home-details a:not(.outline-btn) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.ad-theme .ad-home-details__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  counter-reset: home-project-step;
  margin: 0 0 64px;
  padding: 0;
}
body.ad-theme .ad-home-details__steps > li {
  counter-increment: home-project-step;
}
body.ad-theme .ad-home-details__steps h3 {
  display: flex;
  align-items: baseline;
  gap: .45em;
  margin-top: 0;
}
body.ad-theme .ad-home-details__steps h3::before {
  content: counter(home-project-step) ".";
  flex-shrink: 0;
  color: var(--ad-ral-2004, #f44611);
  font-weight: 700;
}
body.ad-theme .ad-home-details__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 56px;
}
body.ad-theme .ad-home-details__questions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  body.ad-theme .ad-home-details__steps,
  body.ad-theme .ad-home-details__questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body.ad-theme .ad-home-details__steps,
  body.ad-theme .ad-home-details__columns,
  body.ad-theme .ad-home-details__questions {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Keep project links readable within the dark homepage showcase. */
body.ad-theme.page-id-2 .portfolio-intro .section-copy a,
body.ad-theme.page-id-2 .portfolio-intro .section-copy a:visited {
  color: #e7e7e1;
  text-decoration: underline;
  text-decoration-color: rgba(231, 231, 225, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
body.ad-theme.page-id-2 .portfolio-intro .section-copy a:hover,
body.ad-theme.page-id-2 .portfolio-intro .section-copy a:focus-visible {
  color: var(--ad-ral-2004, #f44611);
  text-decoration-color: currentColor;
}

/* Match the original bar photographs: 383 × 714 px at the reference width. */
body.ad-theme.page-id-2 .services-art.paper-section .service-images {
  align-self: center;
  height: auto;
  min-height: 0;
  grid-template-rows: auto;
}
body.ad-theme.page-id-2 .services-art.paper-section .service-images .wp-block-image {
  aspect-ratio: 383 / 714;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
body.ad-theme.page-id-2 .services-art.paper-section .service-images img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

body.ad-theme.page-id-2 .service-images .ad-home-bar-lightbox {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

/* A single content boundary for all homepage sections. */
body.ad-theme.page-id-2 .about.black-section > .wp-block-group__inner-container,
body.ad-theme.page-id-2 .services-art.paper-section > .wp-block-group__inner-container,
body.ad-theme.page-id-2 .portfolio-art .portfolio-grid,
body.ad-theme.page-id-2 .ad-home-details__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ad-container-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ad-container-gutter) !important;
  padding-right: var(--ad-container-gutter) !important;
}
body.ad-theme.page-id-2 .about.black-section > .wp-block-group__inner-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.ad-theme.page-id-2 .services-art.paper-section > .wp-block-group__inner-container,
body.ad-theme.page-id-2 .portfolio-art .portfolio-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
body.ad-theme.page-id-2 .about-text,
body.ad-theme.page-id-2 .about-image,
body.ad-theme.page-id-2 .services-intro,
body.ad-theme.page-id-2 .service-images,
body.ad-theme.page-id-2 .portfolio-intro,
body.ad-theme.page-id-2 .portfolio-steps-gallery {
  min-width: 0;
  max-width: 100%;
}
body.ad-theme.page-id-2 .about-text,
body.ad-theme.page-id-2 .services-intro,
body.ad-theme.page-id-2 .portfolio-intro {
  margin-left: 0;
  margin-right: 0;
}
/* Decorative frames stay inside the same right boundary as the images. */
body.ad-theme.page-id-2 .about-image.framed-image::after,
body.ad-theme.page-id-2 .portfolio-step__media.framed-image::after,
body.ad-theme.page-id-2 .services-art .service-images::after {
  right: 0;
}
@media (max-width: 900px) {
  body.ad-theme.page-id-2 .about.black-section > .wp-block-group__inner-container,
  body.ad-theme.page-id-2 .services-art.paper-section > .wp-block-group__inner-container,
  body.ad-theme.page-id-2 .portfolio-art .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact overlays leave the comparison images visible on smartphones. */
@media (max-width: 600px) {
  body.ad-theme.page-id-2 .hero.compare-section .hero-title {
    left: 20px;
    right: 20px;
    bottom: 122px;
    line-height: 1;
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-title strong {
    font-size: clamp(24px, 7vw, 34px);
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-title span {
    font-size: clamp(22px, 6.4vw, 30px);
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-title .rule {
    width: 42px;
    height: 2px;
    margin: 14px 0 0;
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 65px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.4;
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-compare__hint {
    bottom: 12px;
    width: calc(100% - 40px);
    max-width: none;
    line-height: 1.2;
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-compare__hint-line--action {
    font-size: 12px;
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-compare__hint-line--result {
    font-size: 10px;
  }
}

/* Keep mobile headings above the comparison pagination. */
@media (max-width: 600px) {
  body.ad-theme.page-id-2 .hero.compare-section .hero-title {
    bottom: auto;
    top: 28px;
  }
  body.ad-theme.page-id-2 .hero.compare-section .hero-copy {
    bottom: auto;
    top: 122px;
  }
}

/* Separate comparison pagination from the red instruction on phones. */
@media (max-width: 600px) {
  body.ad-theme.page-id-2 .hero.compare-section .hero-compare__nav {
    bottom: 64px;
    right: 20px;
  }
}
