/* Selected service treatment only. Load after the prototype comparison styles. */
body[data-services-selected="true"][data-box-variant="A"] .included-section .section-heading {
  display: block;
}

body[data-services-selected="true"][data-box-variant="A"] .included-section .section-heading > div {
  width: 100%;
  max-width: none;
}

body[data-services-selected="true"][data-box-variant="A"] #included-title {
  max-width: 36ch;
}

body[data-services-selected="true"][data-box-variant="A"] #included-title .phrase:last-child {
  display: block;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service,
body[data-services-selected="true"][data-box-variant="A"] .orbit-service:nth-child(n) {
  --service-height: 270px;
  --card-round: 10px 60px 0 10px;
  --page-fold-size: 40px;
  --card-fill: #fff;
  --card-ink: #252b27;
  width: 100%;
  min-height: var(--service-height);
  border-radius: var(--card-round);
  transform: none;
  translate: none;
  justify-self: stretch;
}

/* The summary remains the hit area for both the front and the revealed page. */
body[data-services-selected="true"][data-box-variant="A"] .orbit-service summary {
  position: absolute;
  inset: 0;
  min-height: var(--service-height);
  border-radius: var(--card-round);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service summary:focus-visible {
  outline: 2px solid var(--brand-orange, #f14d1a);
  outline-offset: 5px;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-front,
body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back {
  border-radius: var(--card-round);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--page-fold-size)), calc(100% - var(--page-fold-size)) 100%, 0 100%);
  background: var(--card-fill);
  color: var(--card-ink);
  box-shadow: none;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 46px 18px 58px;
  text-align: center;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-card-number {
  left: 23px;
  top: 21px;
  translate: none;
  color: #747b76;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-card-number::after {
  display: none;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .preview-icon-wrap {
  display: grid;
  place-items: center;
  grid-row: auto;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-service-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0;
  color: #252b27;
  stroke-width: 1.6;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-service-icon .icon-accent {
  stroke: var(--brand-orange, #f14d1a);
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-service-icon .icon-accent-fill {
  fill: var(--brand-orange, #f14d1a);
  stroke: none;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .preview-type-icon {
  display: none;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-title,
body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .service-title-line {
  display: block;
  max-width: 100%;
  white-space: normal;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service :is(.orbit-service-title, h3) .copy-keep {
  display: inline;
  max-width: none;
  white-space: nowrap;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service :is(.orbit-service-title, h3) small {
  display: inline;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back {
  position: relative;
  inset: auto;
  min-height: var(--service-height);
  padding: 48px 23px 57px;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back h3 {
  margin: 0 0 17px;
  text-align: left;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back p {
  margin: 0;
  color: #505653;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back p + p {
  margin-top: 10px;
}

/* A folded paper corner replaces the old circular plus. The lower-right
   triangle is cut from both faces; this pale triangle is the turned underside. */
body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-card-toggle.page-fold {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  width: var(--page-fold-size);
  height: var(--page-fold-size);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  translate: none;
  transform: none;
  pointer-events: none;
  transition: width .25s ease, height .25s ease;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service .page-fold-corner {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff1e9 0%, #f9d8c8 70%, #efbfa9 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: drop-shadow(-1px -1px 1px #59382312);
  transition: background .25s ease;
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service[open] {
  --page-fold-size: 44px;
  min-height: var(--service-height);
}

body[data-services-selected="true"][data-box-variant="A"] .orbit-service[open] .page-fold-corner {
  background: linear-gradient(135deg, #ffe5d8 0%, #efbca3 70%, #e99978 100%);
}

@media (hover: hover) and (pointer: fine) {
  body[data-services-selected="true"][data-box-variant="A"] .orbit-service summary:hover .page-fold-corner {
    background: linear-gradient(135deg, #fff0e6 0%, #f4c8b1 70%, #eeb193 100%);
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service[open] summary:hover .page-fold-corner {
    background: linear-gradient(135deg, #ffe0cd 0%, #efae8d 70%, #e9926c 100%);
  }
}

@media (min-width: 651px) and (max-width: 1099px) {
  body[data-services-selected="true"][data-box-variant="A"] .orbit-service-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 650px) {
  body[data-services-selected="true"][data-box-variant="A"] .orbit-service-deck {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service,
  body[data-services-selected="true"][data-box-variant="A"] .orbit-service:nth-child(n) {
    --service-height: 160px;
    --card-round: 10px 44px 0 10px;
    --page-fold-size: 32px;
    min-height: var(--service-height);
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service-front {
    padding: 24px 22px 26px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-card-number {
    left: 20px;
    top: 18px;
    font-size: 12px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service .preview-icon-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 9px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-service-icon {
    width: 40px;
    height: 40px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back {
    min-height: var(--service-height);
    padding: 28px 24px 48px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service-back h3 {
    margin-bottom: 12px;
  }

  body[data-services-selected="true"][data-box-variant="A"] .orbit-service[open] {
    --page-fold-size: 36px;
    min-height: var(--service-height);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-services-selected="true"][data-box-variant="A"] .orbit-service .orbit-card-toggle.page-fold,
  body[data-services-selected="true"][data-box-variant="A"] .orbit-service .page-fold-corner {
    transition: none;
  }
}

/* Keep the lower contact CTA quiet and its label centered. */
body.kinetic-home .contact-section .contact-layout > .button {
  justify-content: center;
  text-align: center;
  gap: 0;
}
