.repair { padding-block: clamp(64px, 8vw, 124px) 0; }
.repair-heading { margin-bottom: 30px; }
.repair-heading h2 { font-size: clamp(44px, 6.1vw, 102px); }
.repair-story { position: relative; }
.repair-screen { display: none; }
.repair-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.repair-chapters li { position: relative; padding: 16px 16px 21px; border: 1px solid var(--line); border-radius: 5px; background: #0f1624; }
.repair-chapters li img { width: 100%; aspect-ratio: 2.28; object-fit: cover; border-radius: 3px; }
.repair-chapters h3 { font-size: clamp(23px, 2.5vw, 35px); font-weight: 650; margin-top: 14px; letter-spacing: -.03em; }
.repair-chapters p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 6px; }

.repair-story.interactive .repair-screen {
  display: block;
  position: sticky;
  top: 0;
  height: 100svh;
  max-height: 1040px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #9eb5ff34;
  border-radius: 6px;
  background: #080e19;
}
.repair-visual, .repair-canvas, .repair-poster, .repair-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.repair-visual { background: linear-gradient(#060a1460, #080c1452), url("assets/repair-shop.webp") center / cover; }
.repair-canvas { display: block; }
.repair-poster { object-fit: cover; object-position: center; }
.repair-story.interactive .repair-poster { display: none; }
.repair-overlay { pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(17px, 3.1vw, 52px); background: linear-gradient(0deg, #060a13 0%, #060a13dc 13%, #060a1355 32%, transparent 52%), linear-gradient(180deg, #060a13c9, transparent 23%); }
.repair-top { display: flex; justify-content: end; }
.repair-controls { display: flex; gap: 6px; pointer-events: auto; }
.repair-controls button { background: #10192dbd; width: 37px; height: 37px; }
.repair-controls button:first-child svg { transform: rotate(180deg); }
.repair-controls button:hover:not([aria-disabled="true"]) { background: #2548ad; }
.repair-controls button[aria-disabled="true"] { opacity: .4; cursor: default; }
.repair-stage { display: flex; align-items: baseline; gap: 8px 13px; flex-wrap: wrap; margin-bottom: 9px; color: #dae4ff; font-size: 12px; }
.repair-stage span { color: #a9baff; font-size: 10px; letter-spacing: .12em; font-weight: 750; text-transform: uppercase; }
.repair-caption { margin-top: auto; margin-bottom: 18px; opacity: var(--caption-opacity, 1); transform: translateY(var(--caption-offset, 0px)); }
.repair-caption .eyebrow { margin-bottom: 7px; font-size: 10px; }
.repair-caption h3 { font-size: clamp(31px, 4.5vw, 72px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; text-wrap: initial; }
.repair-caption > p:last-child { color: #d6ddec; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.45; max-width: 490px; margin-top: 10px; }
.repair-progress { background: #c1ccff45; height: 2px; flex: none; }
.repair-progress > span { display: block; height: 100%; background: #6387ff; transform: scaleX(var(--repair-progress, 0)); transform-origin: left; }
.repair-story.interactive .repair-chapters { display: block; margin-top: calc(-1 * min(100svh, 1040px)); position: relative; pointer-events: none; }
.repair-story.interactive .repair-chapters li { min-height: clamp(320px, 58svh, 680px); padding: 0; border: 0; background: none; scroll-margin-top: 10vh; }
.repair-story.interactive .repair-chapters li:last-child { min-height: min(136svh, 1414px); }
.repair-story.interactive .repair-chapters li img { display: none; }
.repair-story.interactive .repair-chapters li :is(h3, p) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 680px) {
  .repair { width: 100%; }
  .repair-heading { margin-inline: var(--gutter); }
  .repair-chapters { grid-template-columns: 1fr; margin-inline: var(--gutter); }
  .repair-story.interactive .repair-chapters { margin-inline: 0; }
  .repair-story.interactive .repair-screen { border-radius: 0; border-inline: 0; }
  .repair-overlay { padding: 18px var(--gutter) 26px; background: linear-gradient(0deg, #060a13, #060a13e8 14%, transparent 43%), linear-gradient(180deg, #060a13cc, transparent 22%); }
  .repair-caption { margin-bottom: 16px; }
}
