/* Services page: featured service on a wide photo stage, the other three as a row of cards below. */
.as-show {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
}

/* ---------- stage ---------- */
.as-stage {
  position: relative;
  display: grid;
  height: clamp(420px, 34vw, 520px);
  border-radius: 26px;
  overflow: hidden;
  background: var(--as-navy);
  box-shadow: 0 34px 70px -36px rgba(11, 37, 69, 0.6);
}
.as-slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.as-slide.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}
.as-slide-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.08);
  transition: transform 6.5s ease-out;
}
.as-slide.is-open .as-slide-bg {
  transform: scale(1);
}
.as-slide-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 37, 69, 0.96) 0%, rgba(11, 37, 69, 0.86) 38%, rgba(11, 37, 69, 0.15) 75%);
}
.as-slide-num {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(10px, 1.5vw, 22px);
  font-size: clamp(70px, 9vw, 140px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
.as-slide-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 600px;
  padding: clamp(28px, 3.4vw, 56px);
  color: #fff;
}
.as-slide-content > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.as-slide.is-open .as-slide-content > * {
  opacity: 1;
  transform: none;
}
.as-slide.is-open .as-slide-content > :nth-child(1) { transition-delay: 0.25s; }
.as-slide.is-open .as-slide-content > :nth-child(2) { transition-delay: 0.35s; }
.as-slide.is-open .as-slide-content > :nth-child(3) { transition-delay: 0.45s; }
.as-slide.is-open .as-slide-content > :nth-child(4) { transition-delay: 0.55s; }
.as-slide.is-open .as-slide-content > :nth-child(5) { transition-delay: 0.65s; }
.as-slide.is-open .as-slide-content > :nth-child(6) { transition-delay: 0.75s; }
.as-slide-content .as-panel-layer {
  position: static;
  align-self: flex-start;
  margin-bottom: 14px;
}
.as-slide-content .as-panel-layer.is-protect {
  background: #fff;
  color: var(--as-navy);
}
.as-slide-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.as-slide-tagline {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--as-accent);
}
.as-slide-summary {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.as-slide-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.as-slide-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}
.as-slide-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--as-accent);
  color: var(--as-navy);
  font-size: 12px;
  font-weight: 800;
}
.as-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.as-slide-calc {
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--as-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.as-slide-calc:hover {
  color: var(--as-accent);
}
.as-slide-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--as-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: as-show-timer var(--autoplay, 6000ms) linear forwards;
}
.as-show.is-paused .as-slide-progress {
  animation-play-state: paused;
}
@keyframes as-show-timer {
  to {
    transform: scaleX(1);
  }
}

/* ---------- the other three, below ---------- */
.as-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.as-thumb {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  animation: as-thumb-in 0.6s ease both;
  animation-delay: calc(var(--n) * 0.08s);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@keyframes as-thumb-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.as-thumb:hover,
.as-thumb:focus-visible {
  transform: translateY(-4px);
  border-color: var(--as-accent);
  box-shadow: 0 20px 40px -22px rgba(11, 37, 69, 0.45);
  outline: none;
}
.as-thumb-media {
  position: relative;
  width: 96px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
}
.as-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.as-thumb:hover .as-thumb-media img {
  transform: scale(1.1);
}
.as-thumb-icon {
  position: absolute;
  left: 76px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--as-accent);
  color: var(--as-navy);
  box-shadow: 0 0 0 3px #fff;
}
.as-thumb-icon svg {
  width: 18px;
  height: 18px;
}
.as-thumb-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 12px;
}
.as-thumb-txt small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #98A2B3;
}
.as-thumb-txt b {
  font-size: 17px;
  color: var(--as-ink);
}
.as-thumb-txt span {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--as-muted);
}
.as-thumb-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--as-tint);
  color: var(--as-navy);
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.as-thumb:hover .as-thumb-go {
  background: var(--as-navy);
  color: var(--as-accent);
  transform: translateX(3px);
}

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .as-thumb {
    grid-template-columns: 72px minmax(0, 1fr);
    padding-right: 14px;
  }
  .as-thumb-media {
    width: 72px;
    height: 72px;
  }
  .as-thumb-icon {
    left: 56px;
    width: 30px;
    height: 30px;
  }
  .as-thumb-go {
    display: none;
  }
  .as-thumb-txt span {
    display: none;
  }
}
@media (max-width: 991px) {
  .as-stage {
    height: 480px;
  }
  .as-slide-shade {
    background: linear-gradient(90deg, rgba(11, 37, 69, 0.95) 0%, rgba(11, 37, 69, 0.82) 55%, rgba(11, 37, 69, 0.3) 100%);
  }
}

/* ---------- phones: stage on top, the other three as full-width rows ---------- */
@media (max-width: 767px) {
  .as-stage {
    height: auto;
    min-height: 0;
    border-radius: 20px;
  }
  .as-slide-shade {
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.35) 0%, rgba(11, 37, 69, 0.92) 38%, rgba(11, 37, 69, 0.98) 100%);
  }
  .as-slide-content {
    padding: 150px 20px 28px;
    max-width: none;
  }
  .as-slide-num {
    top: 14px;
    bottom: auto;
    font-size: 64px;
  }
  .as-slide-title {
    font-size: 30px;
  }
  .as-slide-actions .as-btn {
    width: 100%;
    white-space: normal;
  }
  .as-slide-progress {
    display: none;
  }
  .as-thumbs {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .as-thumb {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }
  .as-thumb-media {
    width: 64px;
    height: 64px;
  }
  .as-thumb-icon {
    left: 50px;
    top: 6px;
    width: 28px;
    height: 28px;
  }
  .as-thumb-go {
    display: grid;
  }
  .as-thumb:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-slide,
  .as-slide-bg,
  .as-slide-content > *,
  .as-thumb {
    transition: none !important;
    animation: none !important;
  }
  .as-slide-progress {
    display: none;
  }
}
