/* Mobile App — 06 Advanced technologies */

.cw-mobile-app-adv-tech {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  --cw-ma-edge: clamp(12px, 1.5vw, 24px);
  --cw-ma-pad-x: clamp(12px, 1.25vw, 18px);
}

.cw-mobile-app-adv-tech__inner {
  box-sizing: border-box;
  width: min(1580px, calc(100vw - 2 * var(--cw-ma-edge)));
  max-width: calc(100vw - 2 * var(--cw-ma-edge));
  margin-inline: auto;
  padding: clamp(72px, 9vw, 120px) var(--cw-ma-pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 44px);
}

.cw-mobile-app-adv-tech__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px;
  align-items: end;
}

.cw-mobile-app-adv-tech__title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cw-mobile-app-adv-tech__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cw-mobile-app-adv-tech__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4a423b;
}

.cw-mobile-app-adv-tech__strip {
  display: flex;
  gap: 10px;
  height: 520px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cw-mobile-app-adv-tech__card {
  position: relative;
  flex: 1 1 0;
  min-width: 88px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(20, 18, 16, 0.1);
  background: #fff;
  color: #141210;
  transition:
    flex 0.6s cubic-bezier(0.3, 0.7, 0.2, 1),
    background 0.4s ease,
    color 0.4s ease;
  text-align: left;
  padding: 0;
  font: inherit;
}

.cw-mobile-app-adv-tech__card.is-active {
  flex: 5 1 0;
  min-width: min(420px, 85vw);
  background: #141210;
  color: #f3efe7;
}

.cw-mobile-app-adv-tech__dot {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
}

.cw-mobile-app-adv-tech__short {
  position: absolute;
  left: 28px;
  bottom: 26px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cw-mobile-app-adv-tech__card.is-active .cw-mobile-app-adv-tech__short {
  opacity: 0;
}

.cw-mobile-app-adv-tech__body {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 80px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.4s ease 0.05s;
  pointer-events: none;
  min-width: 280px;
}

.cw-mobile-app-adv-tech__card.is-active .cw-mobile-app-adv-tech__body {
  opacity: 1;
  transition-delay: 0.15s;
}

.cw-mobile-app-adv-tech__body-title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 460px;
}

.cw-mobile-app-adv-tech__body-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
}

.cw-mobile-app-adv-tech__card.is-active .cw-mobile-app-adv-tech__body-text {
  color: rgba(234, 231, 225, 0.75);
}

.cw-mobile-app-adv-tech__card:not(.is-active) .cw-mobile-app-adv-tech__body-text {
  color: #3a332d;
}

@media (max-width: 720px) {
  .cw-mobile-app-adv-tech__strip {
    height: 480px;
  }

  .cw-mobile-app-adv-tech__card.is-active {
    min-width: min(360px, 92vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-mobile-app-adv-tech__card,
  .cw-mobile-app-adv-tech__short,
  .cw-mobile-app-adv-tech__body {
    transition: none;
  }
}
