/* ===== Home: "What We Do" (image stack left, service name right) =====
   Same pinned, scroll-scrubbed card cycle as .saya-wwd; driven by assets/js/wwd2.js */
.saya-wwd2 {
  --h: min(29.2vw, 56vh);          /* front card height */
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--black, #1b1b1e);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 74px 20px 20px;
}

.saya-wwd2 .saya-wwd__title {
  margin-bottom: 0;
}

.saya-wwd2__stack {
  position: absolute;
  left: 4.85vw;
  top: 59.7%;
  width: calc(var(--h) * 1.594);
  height: var(--h);
  transform: translateY(-50%);
  z-index: 5;
}

.saya-wwd2__card {
  position: absolute;
  inset: 0;
  transform-origin: top left;
  will-change: transform, filter, opacity;
}

.saya-wwd2__frame {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: calc(var(--h) * 0.0377) solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(90deg, #ACDB55 -1.96%, #D2F670 7.34%, #689982 53.47%, #1548B6 86.07%, #0337C1 101.95%);
  background: #111;
}

.saya-wwd2__card:nth-child(even) .saya-wwd2__frame {
  border-image-source: linear-gradient(90deg, #0337C1 -1.96%, #1548B6 7.34%, #689982 53.47%, #D2F670 86.07%, #ACDB55 101.95%);
}

.saya-wwd2__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.saya-wwd2__label {
  position: absolute;
  left: 55.5vw;
  width: 41vw;
  top: 59.7%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.saya-wwd2__label span {
  display: inline-block;
  font-family: 'Cal Sans', sans-serif;
  font-size: clamp(26px, 3.55vw, 66px);
  line-height: 1.1;
  letter-spacing: -1px;
  background-image: linear-gradient(90deg, #D2F670 0%, #193AD3 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* tablet + mobile: stack on top, name underneath */
@media (max-width: 1024px) {
  .saya-wwd2 { --h: calc(86vw / 1.594); padding: 70px 16px 40px; justify-content: center; }
  .saya-wwd2__stack {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: calc(var(--h) * 0.2) auto 0;
  }
  .saya-wwd2__label {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    margin-top: 28px;
  }
  .saya-wwd2__label span { font-size: clamp(24px, 5.6vw, 44px); }
}

/* mobile phones: only the title moves to the top, just below the fixed header (60px) + 24px.
   The cards and the service name stay centred exactly as before: the title's own height
   (34px) is kept as extra space above the stack, so the centred block doesn't change. */
@media (max-width: 767px) {
  .saya-wwd2 .saya-wwd__title {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    margin: 0;
    line-height: 34px;
    text-align: center;
  }
  .saya-wwd2__stack { margin-top: calc(var(--h) * 0.2 + 34px); }
}
