/* Native horizontal service carousel. Load after red-theme.css. */
.service-story.service-carousel {
  padding-top: 70px;
  padding-bottom: 52px;
  overflow-x: clip;
}
.service-carousel .service-story-intro {
  display: block;
  padding-bottom: 30px;
}
.service-carousel .service-story-intro > div {
  grid-column: auto;
}
.service-carousel .service-story-intro .q-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  margin: 0;
}
.service-carousel .service-story-intro .eyebrow {
  margin-bottom: 17px;
}
.service-carousel .service-story-intro h2 {
  font-size: clamp(46px, 5.1vw, 72px);
  line-height: 1.04;
}
.service-carousel .service-story-intro .q-section-head > p {
  max-width: 390px;
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.8;
}
.service-carousel-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.service-carousel .service-art-stage {
  position: relative;
  top: auto;
  height: 480px;
  min-height: 0;
  margin: 0;
  align-self: center;
  pointer-events: none;
}
.service-carousel .particle-service-caption {
  bottom: 8px;
  padding-inline: 14px;
  color: #d4a0ad;
  line-height: 1.6;
}
.service-carousel-content {
  min-width: 0;
  width: 100%;
}
.service-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 14px;
}
.service-carousel-controls button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #ffe8ee;
  background: #35101a;
  border: 1px solid #a9556b;
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease;
}
.service-carousel-controls button:hover {
  background: #6a1b32;
  border-color: #ff9cb5;
}
.service-carousel-controls button:disabled {
  opacity: .35;
  cursor: default;
  background: #281018;
  border-color: #70404e;
}
.service-carousel-controls button svg {
  width: 19px;
  height: 19px;
}
.carousel-prev svg { transform: rotate(180deg); }
.carousel-hint { flex: 1; color: #c796a8; font-size: 9px; letter-spacing: .06em; line-height: 1.6; }
.service-carousel-viewport { cursor: grab; }
.service-carousel-viewport.is-dragging { cursor: grabbing; user-select: none; }
.ai-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:700px) { .ai-card-grid { grid-template-columns: 1fr; } }
#service-slide-counter {
  min-width: 59px;
  color: #edbfce;
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.service-carousel-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  border-radius: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.service-carousel-viewport::-webkit-scrollbar { display: none; }
.service-carousel-viewport:focus-visible {
  outline: 2px solid #ffb3c5;
  outline-offset: 5px;
}
.service-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.service-slide {
  display: flex;
  align-items: stretch;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.service-carousel .chapter-card {
  width: 100%;
  min-width: 0;
  min-height: 510px;
  height: 100%;
  padding: 30px 34px;
  justify-content: flex-start;
  background: radial-gradient(ellipse at 100% 0%, #b9304b4a, transparent 72%), linear-gradient(145deg, #571529, #2a0b16 85%);
  border: 1px solid #da6e8b6b;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffd1df12;
}
.service-slide[aria-current="true"] .chapter-card,
.service-slide.is-current .chapter-card {
  border-color: #ee8ba5a1;
}
.service-carousel .chapter-number {
  margin-bottom: 19px;
  color: #ff9db5;
  font-size: 9px;
  line-height: 1.5;
}
.service-carousel .chapter-number svg {
  width: 23px;
  height: 23px;
}
.service-carousel .chapter-card h3 {
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 17px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.service-carousel .chapter-card .chapter-lead {
  margin: 0 0 13px;
  color: #ffe3ec;
  font-size: 14px;
  line-height: 1.6;
}
.service-carousel .chapter-card > p:not(.chapter-lead) {
  color: #dec0ca;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 19px;
}
.service-carousel .chapter-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  width: 100%;
}
.service-carousel .chapter-card li {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 8px 0;
  border-top: 1px solid #ef91aa20;
  color: #f1d1dc;
  font-size: 11px;
  line-height: 1.65;
}
.service-carousel .chapter-card li:before {
  content: '+';
  color: #ff9eb8;
  font-size: 13px;
  flex: none;
}
.service-carousel .chapter-card .q-button {
  margin-top: auto;
  min-height: 46px;
  font-size: 11px;
  flex-shrink: 0;
}
.service-swipe-hint {
  color: #c796a8;
  font-size: 10px;
  line-height: 1.6;
  margin: 12px 0 0;
}
.service-carousel-controls .service-swipe-hint {
  flex: 1;
  margin: 0 auto 0 0;
}
.service-slide-picker {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  max-width: var(--max);
  margin: 28px auto 0;
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: #763149 transparent;
  -webkit-overflow-scrolling: touch;
}
.service-picker {
  flex: none;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 28px;
  border: 1px solid #7c3b4d;
  background: #1e0a13;
  color: #ddb5c6;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.service-picker:hover {
  color: #fff2f6;
  background: #421222;
  border-color: #c77791;
}
.service-picker[aria-pressed="true"] {
  color: #fff;
  background: #a51e43;
  border-color: #ff91b1;
  box-shadow: inset 0 0 0 1px #ff91b126;
}
.service-carousel .service-story-end {
  margin-top: 22px;
  padding-top: 25px;
  gap: 28px;
}
.service-carousel .service-story-end p {
  font-size: 12px;
  max-width: 430px;
}
.service-carousel .service-story-end .q-button { flex-shrink: 0; }

@media (max-width: 1100px) {
  .service-carousel-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 25px; }
  .service-carousel .chapter-card { padding: 27px; }
  .service-carousel .chapter-card h3 { font-size: 35px; }
  .service-carousel .service-art-stage { height: 440px; }
}

@media (max-width: 800px) {
  .service-story.service-carousel { padding-top: 60px; padding-bottom: 42px; }
  .service-carousel .service-story-intro { padding-bottom: 16px; }
  .service-carousel .service-story-intro .q-section-head { display: block; }
  .service-carousel .service-story-intro .q-section-head > p { max-width: 480px; margin-top: 20px; }
  .service-carousel .service-story-intro h2 { font-size: 56px; }
  .service-carousel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-carousel .service-art-stage { position: relative; top: auto; height: 220px; min-height: 0; margin: 0; }
  .service-carousel .particle-service-caption { bottom: 0; font-size: 8px; }
  .service-carousel .particle-progress { display: none; }
  .service-carousel-content { max-width: 620px; justify-self: center; }
  .service-carousel-controls { margin-bottom: 12px; }
  .service-carousel .chapter-card { min-height: 490px; padding: 30px; background: linear-gradient(145deg, #581529, #2a0b16 85%); }
  .service-carousel .chapter-card h3 { font-size: 36px; }
  .service-carousel .chapter-card li { font-size: 12px; }
  .service-slide-picker { margin-top: 22px; }
  .service-carousel .service-story-end { align-items: flex-start; gap: 21px; }
}

@media (max-width: 540px) {
  .service-story.service-carousel { padding-top: 54px; padding-bottom: 37px; }
  .service-carousel .service-story-intro .eyebrow { font-size: 8px; margin-bottom: 16px; }
  .service-carousel .service-story-intro h2 { font-size: clamp(43px, 12vw, 55px); }
  .service-carousel .service-story-intro .q-section-head > p { font-size: 12px; line-height: 1.8; margin-top: 18px; }
  .service-carousel-layout { gap: 10px; }
  .service-carousel .service-art-stage { height: 220px; }
  .service-carousel .particle-service-caption { font-size: 7px; letter-spacing: .12em; }
  .service-carousel-controls { gap: 10px; }
  #service-slide-counter { min-width: 52px; font-size: 10px; }
  .service-carousel-viewport { border-radius: 10px; }
  .service-carousel .chapter-card { padding: 24px 23px; min-height: 510px; border-radius: 10px; }
  .service-carousel .chapter-number { margin-bottom: 19px; font-size: 8px; letter-spacing: .15em; }
  .service-carousel .chapter-card h3 { font-size: clamp(29px, 8.4vw, 35px); margin-bottom: 15px; }
  .service-carousel .chapter-card .chapter-lead { font-size: 13px; }
  .service-carousel .chapter-card > p:not(.chapter-lead) { font-size: 12px; line-height: 1.8; margin-bottom: 18px; }
  .service-carousel .chapter-card li { font-size: 11px; padding: 8px 0; }
  .service-carousel .chapter-card ul { margin-bottom: 23px; }
  .service-carousel .chapter-card .q-button { font-size: 11px; gap: 14px; padding-left: 17px; }
  .service-swipe-hint { font-size: 9px; max-width: 155px; }
  .service-picker { font-size: 10px; padding-inline: 14px; }
  .service-carousel .service-story-end { margin-top: 18px; padding-top: 23px; }
  .service-carousel .service-story-end p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-carousel-viewport, .service-slide-picker { scroll-behavior: auto; }
  .service-carousel-controls button, .service-picker { transition: none; }
}
