/* Full-height photographs blend into one quiet, readable page heading. */
.page-header--photo .page-banner {
  --banner-height: clamp(320px, 32vw, 410px);
  --banner-paper: #f3f6ec;
  position: relative;
  isolation: isolate;
  width: min(1360px, 100%);
  min-height: var(--banner-height);
  margin-inline: auto;
  background: var(--banner-paper);
  overflow: hidden;
}
.page-header--photo .page-banner--contact { --banner-paper: #f7f6f2; }
.page-header--photo .page-banner-media {
  position: absolute;
  top: 0;
  width: calc(var(--banner-height) * 1.77683);
  height: var(--banner-height);
  margin: 0;
}
.page-header--photo .page-banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}
.page-banner--text-right .page-banner-media {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 64%, transparent 100%);
  mask-image: linear-gradient(to right, #000 64%, transparent 100%);
}
.page-banner--text-left .page-banner-media {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%);
  mask-image: linear-gradient(to left, #000 70%, transparent 100%);
}
.page-header--photo .page-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--banner-height);
  padding-block: 38px;
}
.page-header--photo .page-banner-copy {
  width: 44%;
  min-width: 0;
}
.page-banner--text-right .page-banner-copy { margin-left: auto; }
.page-header--photo .page-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: .2em;
}
.page-header--photo .page-kicker::before {
  content: "";
  width: 32px;
  height: 3px;
  flex: 0 0 32px;
  background: var(--seed-yellow);
}
.page-header--photo h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.55;
  letter-spacing: .04em;
}
.page-header--photo .page-intro {
  max-width: 31em;
  margin: 18px 0 0;
  color: #425d49;
  font-size: 13px;
  line-height: 2;
}

/* Each service retains its complete 4:3 photo and existing details. */
.home .service-grid > .service.service-with-photo {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 0;
  border: 1px solid #dce5d6;
  border-top: 4px solid var(--seed-yellow);
  border-radius: 0 0 8px 8px;
  background: #f6f8f2;
}
.home .service-with-photo .service-photo {
  flex: 0 0 auto;
  margin: 0;
  background: #edf2e7;
}
.home .service-with-photo .service-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.home .service-with-photo .service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 25px 0;
}
.home .service-with-photo .service-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
body.home .service-with-photo .service-meta .service-number {
  position: static;
  margin: 0;
  color: var(--seed-green);
  font-size: 32px;
  line-height: 1;
}
.home .service-with-photo .service-meta .service-en {
  margin: 0;
  color: #54704e;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .15em;
}
.home .service-with-photo .service-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
}
.home .service-with-photo .service-copy > p {
  flex: 1;
  margin: 0;
  min-height: 0;
  color: var(--seed-ink);
  font-size: 13px;
  line-height: 2.05;
}
.home .service-with-photo .service-copy details { margin-top: 22px; }
.home .service-with-photo .service-copy summary { gap: 10px; }

@media (min-width: 768px) and (max-width: 1100px) {
  .home .service-with-photo .service-copy { padding: 20px 18px 0; }
}

@media (max-width: 767px) {
  .page-header--photo .page-banner { min-height: 0; }
  .page-header--photo .page-banner-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  }
  .page-header--photo .page-banner-media img {
    height: auto;
    aspect-ratio: 1672 / 941;
  }
  .page-header--photo .page-banner-inner {
    display: block;
    min-height: 0;
    margin-top: -8px;
    padding-block: 20px 30px;
  }
  .page-header--photo .page-banner-copy { width: 100%; }
  .page-header--photo .page-kicker {
    margin-bottom: 12px;
    gap: 10px;
    font-size: 9px;
    letter-spacing: .17em;
  }
  .page-header--photo .page-kicker::before { width: 24px; flex-basis: 24px; }
  .page-header--photo h1 { font-size: clamp(27px, 7vw, 34px); }
  .page-header--photo .page-intro { margin-top: 10px; font-size: 12px; }
  body.home .service-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .home .service-with-photo .service-copy { padding: 22px 23px 0; }
  .home .service-with-photo .service-copy h3 { font-size: 22px; }
  .home .service-with-photo .service-copy details { margin-top: 18px; }
}
