.service-story {
  --service-text: #eff3f5;
  --service-muted: #b6c1cb;
  --service-line: #35414d;
  --service-accent: #ffaf99;
  --journey-ease: cubic-bezier(.22,.72,.2,1);
  padding: clamp(54px, 7vw, 104px) 7%;
  color: var(--service-text);
  background: radial-gradient(ellipse at 70% 32%, #19212b, #0a0d11 64%);
}

.service-wrap { max-width: 1120px; margin-inline: auto; }
.journey-header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.journey-header h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.journey-header .text-link { flex-shrink: 0; font-size: 14px; }
.journey-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--service-line);
  border-radius: 12px;
  background: #10171f;
  cursor: grab;
  user-select: none;
}
.journey-track::-webkit-scrollbar { display: none; }
.journey-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.journey-track img { pointer-events: none; }
.journey-shot {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(18px, 3.3vw, 45px);
  min-height: 380px;
  padding: clamp(22px, 4vw, 56px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: radial-gradient(ellipse at 70% 42%, #293643, #131d27 55%, #10171f 88%);
}
.journey-kicker { display: block; margin-bottom: 14px; color: var(--service-accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.journey-caption h3 { margin: 0; font-size: clamp(33px, 4.2vw, 62px); line-height: 1; letter-spacing: -.045em; }
.journey-caption p { margin: 14px 0 0; max-width: 29ch; color: var(--service-muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; }
.journey-illustration { display: grid; min-width: 0; min-height: 265px; place-items: center; }
.journey-panel {
  width: min(100%, 460px);
  min-width: 0;
  border: 1px solid #556574;
  border-radius: 12px;
  background: linear-gradient(160deg, #23313d, #141e27 64%);
  box-shadow: 0 15px 32px #0006;
  font-size: 15px;
}
.journey-panel svg { width: 23px; height: 23px; flex: 0 0 auto; }
.journey-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--service-line);
  font-size: 17px;
}
.journey-panel-heading svg { color: var(--service-accent); }
.journey-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 13px 8px; }
.journey-attachments > div {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(85px, 11vw, 138px);
  overflow: hidden;
  border: 1px dashed #8293a1;
  border-radius: 7px;
  background: #18242e;
}
.journey-attachments div > svg { align-self: start; margin-top: 19px; color: #b6c5d1; }
.journey-attachments img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-30px) scale(.86);
  transition: transform .62s var(--journey-ease), opacity .28s;
}
.journey-attachments .journey-whole-wheel { object-fit: contain; background: #11171d; }
.journey-attachments .journey-damage-photo { object-position: center 19%; }
.journey-attachments div:nth-child(2) img { transition-delay: .12s; }
.journey-attachments div > span {
  position: absolute;
  inset: auto 3px 5px;
  justify-self: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0b131bed;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
}
.journey-shot:not([data-progress="0"]) .journey-attachments img { opacity: 1; transform: none; }
.journey-send-receipt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin: 0 13px 9px;
  border-radius: 6px;
  background: #253f37;
  color: #c8f2e2;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .35s, transform .4s var(--journey-ease);
}
.journey-send-receipt svg { width: 18px; height: 18px; }
.journey-shot[data-progress="2"] .journey-send-receipt { opacity: 1; transform: none; }

.journey-message-thread { display: grid; gap: 10px; padding: 12px 15px 14px; }
.journey-photo-bubble { position: relative; justify-self: end; width: 104px; height: 66px; }
.journey-photo-bubble img { width: 100%; height: 100%; object-fit: cover; object-position: center 19%; border: 1px solid #6a7b88; border-radius: 8px 8px 0 8px; }
.journey-photo-bubble svg { position: absolute; right: -6px; bottom: -5px; padding: 3px; color: #c5f0e0; background: #2a4a40; border-radius: 50%; }
.journey-reply {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px 10px 10px;
  border: 1px solid #60798c;
  border-radius: 9px 9px 9px 0;
  background: #263a4a;
  opacity: 0;
  transform: translateX(-19px) translateY(8px);
  transition: opacity .35s, transform .55s var(--journey-ease);
}
.journey-message-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 8px; color: #ffc6b5; background: #493431; }
.journey-reply b, .journey-reply div > span { display: block; }
.journey-reply b { font-size: 17px; }
.journey-reply div > span { color: #d1dce4; font-size: 14px; }
.journey-shot[data-progress="1"] .journey-reply { opacity: 1; transform: none; }

.journey-booking { padding: 13px; }
.journey-appointment {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--service-line);
  border-radius: 8px;
  background: #111b24;
  transition: border-color .35s, background-color .35s;
}
.journey-day { display: grid; place-items: center; padding: 6px; border-radius: 6px; background: #31424e; line-height: 1.05; }
.journey-day span { color: #e1e9f0; font-size: 13px; font-weight: 600; }
.journey-day b { font-size: 30px; }
.journey-time > * { display: block; }
.journey-time b { font-size: 21px; }
.journey-time span { color: var(--service-muted); font-size: 14px; }
.journey-time span:last-child, .journey-shot[data-progress="1"] .journey-time span:nth-child(2) { display: none; }
.journey-shot[data-progress="1"] .journey-time span:last-child { display: block; color: #c8f2e2; }
.journey-booking-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #2b5144;
  color: #c8f2e2;
  opacity: 0;
  transform: scale(.55);
  transition: opacity .3s, transform .5s var(--journey-ease);
}
.journey-location { display: flex; align-items: center; gap: 8px; padding: 13px 8px 2px; color: #d5e2ec; }
.journey-location svg { color: var(--service-accent); }
.journey-shot[data-progress="1"] .journey-appointment { border-color: #77a795; background: #1a3128; }
.journey-shot[data-progress="1"] .journey-booking-check { opacity: 1; transform: none; }

.journey-repair { overflow: hidden; }
.journey-rim-view { position: relative; aspect-ratio: 2; overflow: hidden; }
.journey-rim-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 19%; }
.journey-rim-view .journey-restored { clip-path: inset(0 100% 0 0); transition: clip-path 1s ease-in-out; }
.journey-repair-trace, .journey-repair-tool { display: none; position: absolute; color: #ffc6a7; }
.journey-rim-view .journey-repair-trace { inset: 0; width: 100%; height: 100%; }
.journey-repair-trace path { stroke-dasharray: 100; animation: journey-trace 1.15s ease-out; }
.journey-repair-tool {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(#313b44 27%, #adb2b2 33%, #353e45 54%, #171d22 65%);
  box-shadow: 0 0 0 4px #161f287d;
  transform: translate(-50%, -50%);
  animation: journey-tool 1.15s ease-out both;
}
.journey-shot[data-progress="1"] :is(.journey-repair-trace, .journey-repair-tool) { display: block; }
@keyframes journey-trace { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes journey-tool {
  0% { left: 13%; top: 79%; opacity: 0; }
  25% { left: 21%; top: 55%; opacity: 1; }
  50% { left: 31%; top: 37%; }
  75% { left: 45%; top: 24%; opacity: 1; }
  100% { left: 62%; top: 15%; opacity: 0; }
}
.journey-rim-scan { position: absolute; inset: 0 auto 0 0; width: 2px; background: #ffc9b5; box-shadow: 0 0 13px 3px #ff926f80; opacity: 0; }
.journey-rim-tag { position: absolute; bottom: 10px; left: 10px; padding: 4px 9px; border-radius: 5px; background: #0b131ceb; color: #fff; font-size: 14px; }
.journey-rim-tag span { display: none; }
.journey-shot[data-progress="0"] .journey-rim-tag span:nth-child(1),
.journey-shot[data-progress="1"] .journey-rim-tag span:nth-child(2),
.journey-shot[data-progress="2"] .journey-rim-tag span:nth-child(3) { display: inline; }
.journey-shot[data-progress="2"] .journey-restored { clip-path: inset(0); }
.journey-shot[data-progress="2"] .journey-rim-scan { animation: journey-scan 1s ease-in-out; }
@keyframes journey-scan {
  0% { left: 0; opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.journey-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.journey-steps { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.journey-steps button, .journey-playback {
  min-height: 44px;
  border: 1px solid var(--service-line);
  border-radius: 6px;
  background: #121b24;
  color: #d7e1ea;
}
.journey-steps button { position: relative; width: 100%; padding: 6px 2px; font-size: 15px; font-weight: 600; }
.journey-steps button[aria-pressed="true"] { border-color: #b28578; background: #302725; color: #fff1ed; }
.journey-steps button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 22% 0;
  height: 2px;
  background: var(--service-accent);
}
.journey-playback { flex: 0 0 44px; padding: 0; font-size: 18px; line-height: 1; }
.journey-playback[hidden] { display: none; }
.journey :is(button, a, .journey-track):focus-visible { outline: 2px solid #a7caff; outline-offset: 2px; }
.journey-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 8px 0 0; color: var(--service-muted); font-size: 14px; }
.journey-hint > span:first-child { font-size: 17px; }
.journey-touch-hint { display: none; }
.journey-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 760px) {
  .service-story { padding: 34px 16px 44px; }
  .journey-header { display: block; margin-bottom: 13px; }
  .journey-header h2 { font-size: clamp(27px, 7vw, 38px); }
  .journey-header .text-link { min-height: 34px; margin-top: 3px; padding-block: 5px; }
  .journey-shot { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(90px, auto) 1fr; align-items: start; min-height: 340px; gap: 4px; padding: 18px 14px 14px; }
  .journey-kicker { margin-bottom: 6px; }
  .journey-caption h3 { font-size: clamp(30px, 8vw, 43px); }
  .journey-caption p { max-width: none; margin-top: 7px; }
  .journey-illustration { min-height: 206px; }
  .journey-footer { gap: 6px; }
  .journey-steps { gap: 4px; }
  .journey-steps button { font-size: 14px; }
  .journey-hint { margin-top: 5px; }
  .journey-touch-hint { display: inline; }
  .journey-mouse-hint { display: none; }
}
@media (pointer: coarse) {
  .journey-touch-hint { display: inline; }
  .journey-mouse-hint { display: none; }
}
@media (max-width: 560px) { .wheel-page .service-story { scroll-margin-top: 52px; } }
.journey-still :is(.journey-illustration *, button),
.journey-paused .journey-illustration * { animation: none !important; transition: none !important; }
.journey-still .journey-repair-tool, .journey-paused .journey-repair-tool { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .journey :is(.journey-illustration *, button) { animation: none !important; transition: none !important; }
  .journey-repair-tool { visibility: hidden; }
}

