/* V3.a.5 — six services, clay A visual series.
   A single responsive canvas with transparent clay illustrations. */
.services-showcase {
  background:
    radial-gradient(ellipse 34% 54% at 0 88%, rgba(185, 229, 217, .58) 0 48%, transparent 49%),
    radial-gradient(ellipse 28% 35% at 100% 8%, rgba(255, 213, 61, .13) 0 44%, transparent 45%),
    #fffaf0;
  overflow: hidden;
  padding: clamp(70px, 5.5vw, 104px) 0 clamp(64px, 5vw, 92px);
  scroll-margin-top: 106px;
}

/* Full viewport width, with only responsive reading-safe side padding. */
.services-showcase .container {
  max-width: none;
  padding-inline: clamp(24px, 4vw, 80px);
  width: 100%;
}

.services-showcase__frame,
.services-showcase__frame--flow {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.services-showcase__frame::before,
.services-showcase__frame--flow::before { display: none; }

.services-showcase__heading {
  margin: 0 auto;
  max-width: 920px;
  padding: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.services-showcase__eyebrow {
  align-items: center;
  color: var(--cis-green-deep, #39744a);
  display: flex;
  font-size: 21px;
  font-weight: 800;
  gap: 11px;
  justify-content: center;
  letter-spacing: .08em;
  margin: 0 0 17px;
}

.services-showcase__eyebrow .pulse-dot {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.services-showcase__heading h2 {
  color: var(--cis-navy, #273447);
  font-size: clamp(52px, 4.8vw, 74px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.08;
  margin: 0;
}

.services-showcase__heading h2 span { color: var(--cis-green-deep, #39744a); }

.services-showcase__heading h2::after {
  background: var(--cis-yellow, #ffd53d);
  content: "";
  display: block;
  height: 6px;
  margin: 20px auto 0;
  width: 116px;
}

.services-showcase__heading .services-showcase__tagline {
  color: var(--cis-copy, #4e6170);
  font-size: clamp(25px, 2.15vw, 34px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.45;
  margin: 22px auto 0;
  max-width: 720px;
}

.services-showcase__heading .services-showcase__description {
  color: var(--cis-copy, #4e6170);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.7;
  margin: 9px auto 0;
  max-width: 760px;
}

.services-showcase__journey {
  --service-flow-inset: clamp(10px, 3vw, 54px);
  margin-top: clamp(46px, 4vw, 68px);
  padding: 56px var(--service-flow-inset) 0;
  position: relative;
}

/* The rails share the card grid's exact left/right inset, so nodes align. */
.services-showcase__route {
  display: block;
  height: 474px;
  left: var(--service-flow-inset);
  overflow: visible;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: calc(100% - (var(--service-flow-inset) * 2));
}

.services-showcase__route-halo {
  fill: none;
  stroke: rgba(255, 250, 240, .94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7px;
}

.services-showcase__route-line {
  fill: none;
  filter: drop-shadow(0 1px 1px rgba(57, 116, 74, .10));
  stroke: var(--cis-green-deep, #39744a);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  vector-effect: non-scaling-stroke;
}

.services-showcase__route-arrow {
  fill: none;
  stroke: var(--cis-yellow, #ffd53d);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3px;
  filter: drop-shadow(0 1px 0 rgba(57, 116, 74, .35));
  vector-effect: non-scaling-stroke;
}

.services-showcase__route-arrow--return { stroke: var(--cis-mint, #b9e5d9); }

.services-showcase__route-terminals circle:first-child,
.services-showcase__route-terminals circle:nth-child(3) {
  fill: var(--cis-yellow, #ffd53d);
  stroke: var(--cis-green-deep, #39744a);
  stroke-width: 1.5px;
}

.services-showcase__route-terminals circle:nth-child(2),
.services-showcase__route-terminals circle:last-child { fill: var(--cis-navy, #273447); }

.services-showcase__journey .services-showcase__cards {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 72px clamp(24px, 5vw, 90px);
  grid-auto-rows: 290px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: visible;
  position: relative;
}

.services-showcase__journey .services-showcase__card {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 290px;
  min-width: 0;
  padding: 28px 0 0;
  position: relative;
  text-align: center;
}

.services-showcase__journey .services-showcase__card::before { display: none; }

.services-showcase__number {
  align-items: center;
  background: linear-gradient(135deg, #def3eb 0%, #a8d9d1 100%);
  border: 1.5px solid var(--cis-green-deep, #39744a);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 10px rgba(57, 116, 74, .12);
  color: var(--cis-navy, #273447);
  display: flex;
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 21px;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  left: 50%;
  letter-spacing: .02em;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  width: 56px;
  z-index: 2;
}

.services-showcase__scene {
  align-items: center;
  display: flex;
  height: 162px;
  justify-content: center;
  margin: 0;
  position: relative;
  width: min(100%, 242px);
}

.services-showcase__scene::after {
  background: radial-gradient(ellipse, rgba(39, 52, 71, .12), transparent 70%);
  bottom: 7%;
  content: "";
  height: 18%;
  left: 14%;
  pointer-events: none;
  position: absolute;
  width: 72%;
}

.services-showcase__scene img {
  display: block;
  height: 100%;
  object-fit: contain;
  position: relative;
  transform: scale(1.28);
  width: 100%;
  z-index: 1;
}

.services-showcase__copy {
  border-top: 3px solid var(--cis-navy, #273447);
  color: var(--cis-copy, #4e6170);
  margin-top: 8px;
  max-width: 410px;
  padding-top: 12px;
  width: 100%;
}

.services-showcase__copy::after { display: none; }

.services-showcase__copy h3 {
  color: var(--cis-navy, #273447);
  font-size: clamp(25px, 1.75vw, 30px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.24;
  margin: 0;
}

.services-showcase__copy p {
  color: var(--cis-copy, #4e6170);
  font-size: 20px;
  line-height: 1.55;
  margin: 8px 0 0;
}

.services-showcase__cta {
  align-items: center;
  border-top: 0;
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 2.2vw, 30px);
  padding: 0;
}

.services-showcase__cta p {
  color: var(--cis-copy, #4e6170);
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 1000px) {
  .services-showcase__route { display: none; }
  .services-showcase__journey .services-showcase__cards {
    gap: 64px 28px;
    grid-auto-rows: 268px;
  }
  .services-showcase__journey .services-showcase__card { height: 268px; }
  .services-showcase__scene { height: 150px; }
}

@media (max-width: 760px) {
  .services-showcase { padding-block: 64px 72px; }
  .services-showcase .container { padding-inline: 18px; }
  .services-showcase__heading { text-align: left; }
  .services-showcase__eyebrow { justify-content: flex-start; }
  .services-showcase__heading h2 { font-size: clamp(46px, 12vw, 60px); }
  .services-showcase__heading h2::after { margin-left: 0; width: 92px; }
  .services-showcase__heading .services-showcase__tagline {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.5;
    margin-left: 0;
  }
  .services-showcase__heading .services-showcase__description {
    font-size: 16px;
    margin-left: 0;
    text-align: left;
  }
  .services-showcase__journey { margin-top: 46px; padding: 0; }
  .services-showcase__journey .services-showcase__cards {
    gap: 62px 24px;
    grid-auto-rows: 252px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-showcase__journey .services-showcase__card { height: 252px; padding-top: 28px; }
  .services-showcase__scene { height: 142px; }
  .services-showcase__copy { margin-top: 5px; padding-top: 10px; }
  .services-showcase__copy h3 { font-size: 24px; }
  .services-showcase__copy p { font-size: 20px; }
  .services-showcase__number { font-size: 20px; height: 52px; top: -26px; width: 52px; }
  .services-showcase__cta { align-items: center; flex-direction: row; padding-top: 0; }
}

@media (max-width: 500px) {
  .services-showcase__journey .services-showcase__cards {
    gap: 58px;
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }
  .services-showcase__journey .services-showcase__card { height: auto; min-height: 258px; }
  .services-showcase__scene { height: 176px; }
}

/* Desktop story frame: keep the heading, all six services and CTA in one view. */
@media (min-width: 1001px) {
  .services-showcase {
    align-items: center;
    display: flex;
    height: calc(100svh - 106px);
    min-height: 620px;
    padding-block: 0;
  }

  .services-showcase .container { margin-block: auto; }

  .services-showcase__heading h2 {
    font-size: clamp(58px, 7.2vh, 66px);
  }

  .services-showcase__heading h2::after {
    height: 5px;
    margin-top: 14px;
    width: 104px;
  }

  .services-showcase__heading .services-showcase__tagline {
    font-size: clamp(19px, 2.4vh, 22px);
    line-height: 1.35;
    margin-top: 12px;
  }

  .services-showcase__journey {
    --service-row-gap: 68px;
    --service-row-height: 196px;
    margin-top: 18px;
    padding-top: 41px;
  }

  .services-showcase__route { height: 345px; }

  .services-showcase__journey .services-showcase__cards {
    gap: var(--service-row-gap) clamp(24px, 5vw, 90px);
    grid-auto-rows: var(--service-row-height);
  }

  .services-showcase__journey .services-showcase__card {
    height: var(--service-row-height);
    padding-top: 17px;
  }

  .services-showcase__number {
    font-size: 18px;
    height: 48px;
    top: -24px;
    width: 48px;
  }

  .services-showcase__scene {
    height: 108px;
    width: min(100%, 220px);
  }

  .services-showcase__copy {
    margin-top: 4px;
    padding-top: 7px;
  }

  .services-showcase__copy h3 { font-size: clamp(21px, 1.45vw, 25px); }
  .services-showcase__copy p { font-size: 17px; line-height: 1.4; margin-top: 4px; }
  .services-showcase__cta {
    gap: clamp(20px, 2vw, 30px);
    margin-inline: auto;
    margin-top: 18px;
    max-width: 820px;
  }

  .services-showcase__cta::before,
  .services-showcase__cta::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
  }

  .services-showcase__cta::before {
    background: linear-gradient(90deg, transparent 0%, rgba(57, 116, 74, .18) 38%, rgba(57, 116, 74, .48) 100%);
  }

  .services-showcase__cta::after {
    background: linear-gradient(90deg, rgba(57, 116, 74, .48) 0%, rgba(57, 116, 74, .18) 62%, transparent 100%);
  }

  .services-showcase__cta .button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 292px;
  }
}

/* The desktop section sits below the 106px global header, so compact by usable height. */
@media (min-width: 1001px) and (max-height: 926px) {
  .services-showcase { min-height: 600px; }
  .services-showcase__heading h2 { font-size: 58px; }
  .services-showcase__heading h2::after { margin-top: 11px; }
  .services-showcase__heading .services-showcase__tagline { font-size: 20px; margin-top: 9px; }
  .services-showcase__journey {
    --service-row-gap: 44px;
    --service-row-height: 160px;
    margin-top: 12px;
    padding-top: 32px;
  }
  .services-showcase__route { height: 267px; }
  .services-showcase__journey .services-showcase__card { padding-top: 14px; }
  .services-showcase__scene { height: 72px; }
  .services-showcase__scene img { transform: scale(1.52); }
  .services-showcase__copy { margin-top: 2px; padding-top: 6px; }
  .services-showcase__copy h3 { font-size: 21px; }
  .services-showcase__copy p { font-size: 16px; margin-top: 3px; }
  .services-showcase__cta {
    margin-top: clamp(27px, calc(47.5svh - 315px), 46px);
  }
  .services-showcase__cta .button { padding-block: 13px; }
}

/* Short desktop screens still show the complete story and CTA below the global header. */
@media (min-width: 1001px) and (max-height: 760px) {
  .services-showcase__heading h2 { font-size: 52px; }
  .services-showcase__heading h2::after {
    height: 4px;
    margin-top: 8px;
  }
  .services-showcase__heading .services-showcase__tagline {
    font-size: 18px;
    margin-top: 6px;
  }
  .services-showcase__heading .services-showcase__description {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 6px;
  }
  .services-showcase__journey {
    --service-row-gap: 34px;
    --service-row-height: 142px;
    margin-top: 8px;
    padding-top: 24px;
  }
  .services-showcase__route { height: 233px; }
  .services-showcase__journey .services-showcase__card { padding-top: 12px; }
  .services-showcase__scene { height: 66px; }
  .services-showcase__copy { margin-top: 0; padding-top: 4px; }
  .services-showcase__copy h3 { font-size: 19px; }
  .services-showcase__copy p { font-size: 15px; line-height: 1.35; margin-top: 2px; }
  .services-showcase__cta { margin-top: 14px; }
  .services-showcase__cta .button { padding-block: 10px; }
}
