

#strategic .service-presentation {
  --accent: var(--pst-blue);
}

#testing-delivery .service-presentation {
  --accent: var(--pst-teal);
}

#specialist-testing .service-presentation {
  --accent: var(--pst-indigo);
}

#intelligent-testing .service-presentation {
  --accent: var(--pst-purple);
}

.service-presentation #service-grid-top {
  position: relative;
  z-index: 2;
  padding-block: clamp(30px, 4vw, 56px) clamp(40px, 5vw, 70px);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.topic-grid a {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 18px 16px 20px;
  color: var(--pst-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.topic-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  background: var(--pst-line-strong);
  transition: background var(--time-state);
}

.topic-grid a::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: polygon(0 0, calc(100% - var(--chamfer) + 0.4px) 0, 100% calc(var(--chamfer) - 0.4px), 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 75%),
    linear-gradient(165deg, #142150, #0c1330);
}

.topic-grid a:hover::before,
.topic-grid a:focus-visible::before {
  background: var(--accent);
}

.topic-grid img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 60%, transparent));
  transition: transform var(--time-state) var(--ease-arrive), filter var(--time-state);
}

.topic-grid a:hover img,
.topic-grid a:focus-visible img {
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 90%, transparent)) brightness(1.1);
  transform: translateY(-4px);
}

.topic-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  border-block: 1px solid var(--pst-line);
  background: #0a1022e0;
  backdrop-filter: blur(12px);
}

.topic-rail-track {
  display: flex;
  gap: 4px;
  width: var(--frame);
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-rail a {
  position: relative;
  flex: none;
  padding: 14px 16px 15px;
  color: var(--pst-muted);
  font-size: var(--type-small);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--time-state);
}

.topic-rail a::after {
  content: "";
  position: absolute;
  inset: auto 12px -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scaleX(0);
  transition: transform var(--time-state) var(--ease-arrive);
}

.topic-rail a:hover,
.topic-rail a:focus-visible,
.topic-rail a[aria-current] {
  color: #fff;
}

.topic-rail a[aria-current]::after {
  transform: scaleX(1);
}

.service-presentation .service-section,
.service-presentation .service-section [id] {
  scroll-margin-top: calc(var(--header-h) + 62px);
}

.service-note {
  border-bottom: 1px solid var(--pst-line);
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 14%, #0a1022), #0a1022 60%);
}

.service-note .frame {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(18px, 4vw, 60px);
  padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px);
  border-left: 2px solid var(--accent);
}

.service-note h2,
.service-note p {
  margin: 0;
}

.service-note p {
  color: #d3dcf5;
  font-size: var(--type-lead);
}

.service-section {
  background: radial-gradient(ellipse 42% 60% at 80% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
}

.service-section.reverse {
  background: radial-gradient(ellipse 42% 60% at 20% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
}

.service-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(56px, 7vw, 104px);
}

.reverse .service-section-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.reverse .service-art {
  grid-column: 1;
  grid-row: 1;
}

.service-art {
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
  object-fit: contain;
  background: radial-gradient(ellipse 40% 9% at 50% 88%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 100%);
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: filter 900ms var(--ease-arrive);
}

.js .service-section-grid:not(.is-inview) .service-art {
  filter: brightness(0.28) saturate(0.2);
}

.service-section-grid > div > p {
  max-width: 64ch;
}

.service-section-grid h2:has(+ .service-status) {
  margin-bottom: 10px;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 0 0 1.1rem;
  color: var(--pst-cyan);
  font-size: var(--type-min);
  font-weight: 700;
  line-height: 1.4;
}

.service-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.deliverables {
  margin: 30px 0 18px;
  padding-left: 22px;
  border-left: 1px solid var(--pst-line-strong);
}

.deliverables h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.deliverables ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliverables li {
  position: relative;
  color: var(--pst-muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.deliverables li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: -14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pst-green);
  box-shadow: 0 0 8px #2fc64699;
}

.deliverables strong {
  font-size: 1.02rem;
}

@media (min-width: 721px) {
  
  .service-section-grid source {
    display: none;
  }
}

@media (max-width: 1000px) {
  
  .deliverables ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  
  .service-section-grid,
  .reverse .service-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-art,
  .reverse .service-art {
    grid-column: 1;
    grid-row: 1;
    width: min(60%, 340px);
  }

  .service-section,
  .service-section.reverse {
    background: radial-gradient(ellipse 80% 30% at 50% 16%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  }
}

@media (max-width: 720px) {
  
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .topic-grid a {
    padding: 12px 10px 14px;
    font-size: var(--type-small);
  }

  .topic-grid img {
    width: 72px;
    height: 72px;
  }

  .service-note .frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-art,
  .reverse .service-art {
    width: min(74%, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  
  .service-art,
  .topic-grid img,
  .topic-rail a::after {
    transition: none;
  }
}
