/* Shared scroll stack for the home page and every service page. */
.contact-note { max-width: 360px; min-width: 0; }
.contact-email { display: block; padding: 10px 0; margin-bottom: 16px; color: #b4c5ff; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-whatsapp { max-width: 100%; gap: 25px; }
.home-return .next-title { justify-content: flex-start; align-items: center; gap: 24px; }
.home-return .next-title > span { transition: transform .25s ease; }
.home-return a:hover .next-title > span { transform: translateX(-5px); }
.service-stack {
  --stack-top: 70px;
  --stack-gap: 12px;
  position: relative;
  isolation: isolate;
  border: 0;
  padding: 8px 0 50px;
}
.service-stack .service-story {
  --stack-scale: 1;
  --stack-shade: 1;
  position: relative;
  min-height: 410px;
  margin: 0 0 28px;
  padding: 52px 46px;
  grid-template-columns: 90px 1fr;
  border: 1px solid #354057;
  border-top-color: color-mix(in srgb, var(--accent) 42%, #354057);
  border-radius: 20px;
  background: linear-gradient(120deg, #141c2b 0%, #10151e 60%, #111924 100%);
  box-shadow: 0 18px 65px #00000038;
  overflow: hidden;
}
.service-stack .service-story:last-child { margin-bottom: 0; }
.service-stack .story-copy { max-width: 850px; }
.service-stack .story-copy h3 { font-size: clamp(32px, 4vw, 57px); }
.service-stack .story-copy .eyebrow { font-size: 13px; }
.service-stack .story-copy > p:not(.eyebrow) { max-width: 590px; }
.service-stack .story-index { font-size: 25px; }
.service-stack .story-geometry {
  bottom: -36px;
  right: 15px;
  font-size: 280px;
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 14%, transparent);
}
.service-stack.stack-active .service-story {
  position: sticky;
  top: calc(var(--stack-top) + var(--stack-index) * var(--stack-gap));
  z-index: calc(var(--stack-index) + 1);
  margin-bottom: 32svh;
  transform-origin: center top;
  transform: scale(var(--stack-scale));
  filter: brightness(var(--stack-shade));
  transition: border-color .25s, box-shadow .25s;
}
.service-stack.stack-active .service-story:last-child { margin-bottom: 0; }
.service-stack .service-story:hover { border-color: color-mix(in srgb, var(--accent) 60%, #354057); }
.service-stack.stack-active .service-story:focus-within {
  z-index: 20;
  transform: none;
  filter: none;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.related-services { padding-top: 36px; padding-bottom: 70px; }
.related-services .section-heading { margin-bottom: 46px; }
.related-services .section-heading > p { max-width: 360px; }
@media (max-width: 1050px) {
  .service-stack .service-story { padding: 40px 30px; grid-template-columns: 62px 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .service-stack { --stack-top: 24px; --stack-gap: 8px; padding-bottom: 28px; }
  .service-stack .service-story { min-height: 420px; padding: 27px 23px 32px; grid-template-columns: 1fr; gap: 22px; border-radius: 15px; }
  .service-stack .story-index { font-size: 20px; }
  .service-stack .story-copy h3 { font-size: 32px; letter-spacing: -1.2px; }
  .service-stack .story-copy .eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: 1px; }
  .service-stack .story-copy > p:not(.eyebrow) { max-width: none; }
  .service-stack .story-geometry { font-size: 210px; right: 3px; }
  .service-stack .story-link { gap: 16px; }
  .service-stack.stack-active .service-story { margin-bottom: 28svh; }
  .service-stack.stack-active .service-story:last-child { margin-bottom: 0; }
  .related-services { padding-top: 20px; padding-bottom: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-stack.stack-active .service-story {
    position: relative;
    top: auto;
    margin-bottom: 28px;
    transform: none;
    filter: none;
  }
}
