/* Scroll through servicing, original parts and access to battery-health information. */
.service-story { padding: 0; height: 190svh; --service-p: 0; --service-local: 0; }
.service-story-pin { position: sticky; top: 124px; height: calc(100svh - 124px); min-height: 600px; display: flex; align-items: center; overflow: clip; background: white; }
.service-story-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(40px,5vw,90px); align-items: center; padding-block: 25px; }
.service-story-copy h2 { font-size: clamp(38px,3.8vw,64px); }
.service-story-copy .care-body { font-size: 15px; margin-top: 23px; max-width: 45ch; }
.service-chapters { display: grid; margin-top: 26px; border-top: 1px solid var(--line); }
.service-chapter { text-align: left; display: grid; grid-template-columns: 22px minmax(0,1fr) 18px; align-items: start; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.service-chapter.is-active { background: linear-gradient(90deg,rgb(187 239 85 / .13),transparent 90%); }
.service-chapter.is-active strong { color: var(--green); }
.service-chapter-number { font: 10px var(--mono); color: var(--green); padding-top: 4px; }
.service-chapter strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.service-chapter-body { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin-top: 6px; max-width: 40ch; }
.service-chapter-mark { color: var(--green); font-size: 16px; transform: rotate(0); transition: transform .3s; }
.service-chapter.is-active .service-chapter-mark { transform: rotate(45deg); }
.service-story-copy > .text-link { margin-top: 21px; }
.service-visual-track { min-width: 0; }
.service-visual { position: relative; background: #edf2e7; color: var(--ink); border: 1px solid #dfe7d8; border-radius: 24px; padding: 24px; overflow: clip; box-shadow: 0 35px 70px -55px #566e43; transform: perspective(1400px) rotateY(calc(-3deg + var(--service-p) * 6deg)); }
.service-visual-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-visual-top .kicker { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 9px; letter-spacing: .08em; }
.service-visual-top > span { font: 10px var(--mono); color: var(--ink-soft); }
.service-picture-stack { position: relative; height: clamp(245px,27vw,390px); margin: 22px -24px 0; overflow: clip; }
.service-picture { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s,visibility .4s; }
.service-picture.is-active { opacity: 1; visibility: visible; }
.service-picture img { width: 100%; height: 100%; object-fit: cover; max-width: none; transform: scale(calc(1.03 + var(--service-local) * .055)) translateX(calc(var(--service-local) * -2%)); }
.service-picture-car img { object-position: 50% 50%; }
.service-picture-original img { object-fit: cover; object-position: center 53%; }
.service-picture-battery img { object-fit: cover; transform: scale(1.01) rotate(calc(-4deg + var(--service-local) * 8deg)); }
.service-scan { position: absolute; top: 0; bottom: 0; left: calc(8% + var(--service-local) * 84%); width: 1px; background: linear-gradient(transparent,#8bd953 22%,#bbef55 70%,transparent); box-shadow: 0 0 16px 4px rgb(187 239 85 / .25); pointer-events: none; opacity: .8; }
.service-photo-label { position: absolute; left: 15px; bottom: 14px; max-width: calc(100% - 30px); background: rgb(255 255 255 / .94); color: var(--ink-soft); padding: 7px 10px; font: 8px/1.45 var(--mono); letter-spacing: .02em; border-radius: 5px; }
.service-visual-caption { display: flex; align-items: flex-start; gap: 15px; min-height: 109px; padding-top: 25px; }
.service-caption-icon { display: grid; place-items: center; width: 43px; height: 43px; background: #e1edce; border: 1px solid #cbdcba; color: var(--green); border-radius: 11px; flex: none; }
.service-visual-title { font-size: clamp(21px,2vw,29px); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; }
.service-visual-caption div > p:last-child { margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); max-width: 43ch; }
.service-visual-foot { margin-top: 18px; }
.service-progress { height: 2px; background: #d5e0cc; overflow: hidden; }
.service-progress i { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleX(calc(.08 + var(--service-p) * .92)); transform-origin: left; }
.service-visual-foot > p { font: 8px/1.5 var(--mono); letter-spacing: .02em; color: var(--ink-soft); margin-top: 12px; }
.is-static .service-story { height: auto; }
.is-static .service-story-pin { height: auto; min-height: 0; position: relative; top: auto; padding-block: 70px; }
.is-static .service-visual { transform: none; }
.is-static .service-scan { display: none; }
@media (min-width:901px) and (max-height:850px) {
  .service-story-pin { min-height: 570px; }
  .service-story-copy h2 { font-size: 43px; }
  .service-story-copy .care-body { font-size: 13px; margin-top: 18px; }
  .service-chapters { margin-top: 20px; }
  .service-chapter { padding-block: 12px; }
  .service-chapter-body { font-size: 11px; }
  .service-chapter:not(.is-active) .service-chapter-body { display: none; }
  .service-story-copy > .text-link { margin-top: 15px; font-size: 14px; }
  .service-picture-stack { height: 250px; }
  .service-visual { padding: 20px; }
  .service-picture-stack { margin-inline: -20px; }
  .service-visual-caption { padding-top: 20px; min-height: 100px; }
}
@media (max-width:900px) {
  .service-story { height: auto; }
  .service-story-pin { position: relative; top: auto; height: auto; min-height: 0; overflow: visible; padding: 70px 0 0; }
  .service-story-grid { grid-template-columns: 1fr; gap: 34px; padding: 0; }
  .service-story-copy h2 { font-size: clamp(36px,8.8vw,54px); }
  .service-story-copy .care-body { font-size: 15px; }
  .service-chapter { padding-block: 17px; }
  .service-chapter-body { font-size: 13px; max-width: 47ch; }
  .service-visual-track { --service-card-h: clamp(435px,calc(100svh - 165px),620px); height: calc(var(--service-card-h) + 72svh); }
  .service-visual { position: sticky; top: 132px; height: var(--service-card-h); display: flex; flex-direction: column; padding: 20px; transform: none; }
  .service-picture-stack { height: auto; flex: 1; min-height: 190px; margin-inline: -20px; margin-top: 20px; }
  .service-visual-top .kicker { font-size: 8px; gap: 8px; }
  .service-visual-top > span { font-size: 9px; }
  .service-visual-caption { min-height: 115px; padding-top: 23px; }
  .service-visual-title { font-size: 24px; }
  .service-visual-caption div > p:last-child { font-size: 13px; }
  .service-visual-foot { margin-top: 10px; }
  .service-visual-foot > p { font-size: 7px; }
  .service-photo-label { font-size: 7px; }
  .service-picture-battery img { object-fit: contain; }
  .is-static .service-story-pin { padding-block: 65px; }
  .is-static .service-visual-track { height: auto; }
  .is-static .service-visual { position: relative; top: auto; }
}
@media (max-width:360px) {
  .service-visual { padding: 16px; border-radius: 19px; }
  .service-picture-stack { margin-inline: -16px; }
  .service-visual-top .kicker { font-size: 7px; }
  .service-visual-title { font-size: 21px; }
  .service-caption-icon { width: 37px; height: 37px; }
  .service-visual-caption { gap: 11px; }
  .service-visual-caption div > p:last-child { font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .service-story { height: auto; }
  .service-story-pin { position: relative; top: auto; height: auto; }
  .service-visual-track { height: auto; }
  .service-visual { position: relative; top: auto; transform: none; }
  .service-picture,.service-chapter,.service-chapter-mark { transition: none; }
  .service-picture img { transform: none; }
  .service-scan { display: none; }
}
