/* Homepage service directory. The angled bands share a gold backing for their edges. */
.service-explorer {
  --ink: #14182f;
  --gold: #ffda64;
  --pale: #fff0b2;
  --angle: clamp(14px, 5vw, 42px);
  color: var(--gold);
  background: #11172d;
}
.explorer-bands {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin-inline: auto;
  padding-bottom: 3px;
  background: #edc34e;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--angle)));
}
.explorer-title {
  margin: 0;
  padding: clamp(14px, 2.2vw, 28px) 12px calc(var(--angle) + 10px);
  background: linear-gradient(110deg, #132346, #191a36);
  color: var(--gold);
  font-size: clamp(1.65rem, 4.9vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle)), 0 100%);
}
.explorer-band {
  position: relative;
  display: grid;
  grid-template-columns: 57% 43%;
  align-items: center;
  isolation: isolate;
  min-height: clamp(185px, 47vw, 350px);
  margin-top: calc(3px - var(--angle));
  background: linear-gradient(112deg, #11203f, #14172e 68%, #1c1938);
  color: var(--gold);
  text-decoration: none;
  clip-path: polygon(0 var(--angle), 100% 0, 100% calc(100% - var(--angle)), 0 100%);
}
.explorer-band--finishing {
  grid-template-columns: 43% 57%;
  padding-block: 8px;
  clip-path: polygon(0 var(--angle), 100% 0, 100% 100%, 0 calc(100% - var(--angle)));
}
.explorer-band img {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 61%;
  object-fit: cover;
}
.explorer-band--insulation img {
  left: 0;
  object-position: 69% 48%;
  mask-image: linear-gradient(to right, black 87%, transparent);
}
.explorer-band--finishing img {
  right: 0;
  object-position: 45% 38%;
  mask-image: linear-gradient(to left, black 85%, transparent);
}
.explorer-band-copy {
  grid-column: 2;
  padding: calc(var(--angle) + 12px) clamp(12px, 3vw, 46px) calc(var(--angle) + 12px) clamp(8px, 1vw, 15px);
}
.explorer-band--finishing .explorer-band-copy {
  grid-column: 1;
  padding-inline: clamp(17px, 4.6vw, 70px) clamp(4px, 1.5vw, 26px);
}
.explorer-band-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 4.75vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--gold);
}
.explorer-band-copy h3::after {
  content: "";
  display: block;
  width: clamp(28px, 5vw, 56px);
  margin: clamp(9px, 1.2vw, 17px) 0;
  border-top: 3px solid #edc34e;
}
.explorer-band-copy p {
  max-width: 26ch;
  margin: 0;
  color: var(--pale);
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  line-height: 1.24;
}
.explorer-band:is(:hover, :focus-visible) h3,
.explorer-link:is(:hover, :focus-visible) .explorer-label {
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .15em;
}
.explorer-band:focus-visible .explorer-band-copy {
  outline: 2px solid var(--gold);
  outline-offset: -5px;
}
.explorer-directory {
  display: grid;
  isolation: isolate;
  margin-top: calc(0px - var(--angle));
  border-bottom: 3px solid #edc34e;
}
.explorer-directory::before {
  content: "";
  position: sticky;
  top: 0;
  grid-area: 1 / 1;
  align-self: start;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(19, 23, 56, .62), rgba(15, 20, 51, .78) 57%, rgba(27, 24, 60, .64)),
    url("services-buildings-wide.webp") center center / cover no-repeat;
}
.explorer-directory-inner {
  z-index: 1;
  grid-area: 1 / 1;
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: calc(var(--angle) + 1.2rem) clamp(16px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.explorer-directory h3 {
  margin: 0 0 .55rem;
  font-size: clamp(1.4rem, 3.3vw, 2.25rem);
  color: var(--gold);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-shadow: 0 2px 5px #111629;
}
.explorer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.explorer-list + h3 { margin-top: clamp(1.35rem, 3vw, 2.4rem); }
.explorer-link {
  display: grid;
  grid-template-columns: clamp(76px, 22vw, 140px) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(10px, 2.8vw, 28px);
  padding: 4px 6px 4px 0;
  min-height: 54px;
  color: var(--gold);
  text-shadow: 0 1px 3px #10131e;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 204, 85, .42);
}
.explorer-link:is(:hover, :focus-visible) { background: rgba(16, 19, 47, .55); }
.explorer-link:focus-visible,
.explorer-quote a:focus-visible { outline: 3px solid var(--pale); outline-offset: 2px; }
.explorer-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.96;
  object-fit: cover;
  border: 1px solid #c6a252;
  border-radius: 6px;
  background: #23263a;
}
.explorer-label { display: block; font-size: clamp(1rem, 2.1vw, 1.35rem); font-weight: 700; line-height: 1.2; }
.explorer-note { display: block; margin-top: .2rem; font-size: clamp(.875rem, 1.5vw, 1rem); line-height: 1.25; color: var(--pale); }
.explorer-arrow { font-size: 1.2rem; color: var(--gold); }
.explorer-quote { display: flex; justify-content: center; margin: clamp(22px, 3.5vw, 40px) 0 0; }
.explorer-quote .btn { min-height: 48px; padding: 12px 25px; color: #12182b; text-shadow: none; }
@media (min-width: 800px) {
  .explorer-band--insulation .explorer-band-copy { padding-left: 3vw; }
  .explorer-band--finishing .explorer-band-copy { justify-self: center; }
}
@media (max-width: 760px) {
  .explorer-directory::before {
    background-image: linear-gradient(105deg, rgba(20, 22, 53, .57), rgba(20, 21, 54, .75) 57%, rgba(22, 20, 52, .62)),
      url("services-buildings-mobile.webp");
  }
}
