/* /collision-repair · Dev/v2 — polish over the library build (2026-11-15).
   Page-only presentation; DS tokens only (Common-info/Design/styles.css). Prefix cr-.
   Motion: page.js marks [data-cr] with .is-on when it enters the viewport; html.cr-motion is set
   only when motion is allowed, so without JS or under reduced motion everything is at its end state. */

/* ---------- estimate-start: the 4–6 photos you send, as a contact sheet ---------- */
.pb-scope .cr-start { padding-block: calc(var(--sp-section) * .55) calc(var(--sp-section) * 1.15); border-bottom: 1px solid var(--border); }
.pb-scope .cr-start__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-6); align-items: center; }
.pb-scope .cr-start__copy { grid-column: 1 / span 5; grid-row: 1; }
.pb-scope .cr-start__copy h2 { margin: 0 0 var(--sp-6); max-width: 13ch; }
.pb-scope .cr-start__copy p { font-size: 17px; line-height: 1.65; max-width: 46ch; }
.pb-scope .cr-start__copy p:last-child { margin-bottom: 0; }
.pb-scope .cr-start__lead { color: var(--fg); font-size: calc(var(--fs-lead) * 1.18) !important; line-height: 1.5 !important; }
.pb-scope .cr-start__sheet { grid-column: 7 / -1; grid-row: 1; position: relative; }
.pb-scope .cr-start__figure {
  margin: 0 0 var(--sp-5); font-size: clamp(88px, 11vw, 168px); font-weight: 500; line-height: .8;
  letter-spacing: -.06em; color: var(--fg);
}
.pb-scope .cr-start__frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.pb-scope .cr-start__frame {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface);
}
.pb-scope .cr-start__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--o, 25% 50%); transform: scale(var(--z, 1)); }
.pb-scope .cr-start__frame span {
  position: absolute; left: 10px; bottom: 8px; font-size: 12px; letter-spacing: .08em; color: var(--fg);
  padding: 2px 7px; border-radius: 999px; background: rgba(8, 9, 11, .72);
}
/* crops of the "before" half of each pair (origin at the left edge, zoom ≥ 1.5 keeps the "after" half out at 4:3) */
.pb-scope .cr-fr--a img { object-position: 0% 50%; --z: 1.55; --o: 0% 60%; }
.pb-scope .cr-fr--b img { object-position: 0% 50%; --z: 1.6; --o: 0% 55%; }
.pb-scope .cr-fr--c img { object-position: 0% 50%; --z: 1.55; --o: 0% 50%; }
.pb-scope .cr-fr--d img { object-position: 0% 50%; --z: 2.1; --o: 4% 75%; }
.pb-scope .cr-fr--e img { object-position: 0% 50%; --z: 2.2; --o: 2% 30%; }
.pb-scope .cr-fr--f img { object-position: 0% 50%; --z: 2.2; --o: 4% 70%; }
/* frames 5 and 6 are the optional ones: drawn as open slots */
.pb-scope .cr-fr--e, .pb-scope .cr-fr--f { border-style: dashed; border-color: var(--border-control); }
.pb-scope .cr-fr--e img, .pb-scope .cr-fr--f img { opacity: .42; filter: grayscale(.6); }

@media (max-width: 920px) {
  .pb-scope .cr-start__grid { grid-template-columns: 1fr; row-gap: var(--sp-7); }
  .pb-scope .cr-start__copy, .pb-scope .cr-start__sheet { grid-column: 1; }
  .pb-scope .cr-start__sheet { grid-row: 2; }
}
@media (max-width: 560px) {
  .pb-scope .cr-start__frames { gap: var(--sp-2); }
  .pb-scope .cr-start__frame { border-radius: 10px; }
  .pb-scope .cr-start__frame span { left: 6px; bottom: 5px; font-size: 11px; padding: 1px 5px; }
}

/* ---------- proof: pairs draw open like a curtain ---------- */
.pb-scope .cr-pairs .lh-text__fig { overflow: hidden; border-radius: var(--r); }

/* ---------- insurance: the quote carries the section, the explanation is a side column ---------- */
.pb-scope .cr-ins__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-6); row-gap: var(--sp-7); }
.pb-scope .cr-ins__title { grid-column: 1 / span 6; grid-row: 1; margin: 0; max-width: 15ch; }
.pb-scope .cr-ins__side { grid-column: 8 / -1; grid-row: 1; align-self: end; }
.pb-scope .cr-ins__side p, .pb-scope .cr-ins__after p { font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--muted) 55%, var(--fg)); max-width: 46ch; }
.pb-scope .cr-ins__side p:last-child, .pb-scope .cr-ins__after p { margin-bottom: 0; }
.pb-scope .cr-ins__quote { grid-column: 1 / span 9; grid-row: 2; margin: 0; padding-top: var(--sp-6); border-top: 1px solid var(--border-strong); }
.pb-scope .cr-ins__quote p {
  margin: 0 0 var(--sp-4); color: var(--fg); font-weight: var(--w-display);
  font-size: clamp(26px, 3.1vw, 44px); line-height: 1.16; letter-spacing: -.025em; max-width: 30ch;
}
.pb-scope .cr-ins__quote cite { display: block; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 55%, var(--fg)); }
.pb-scope .cr-ins__after { grid-column: 10 / -1; grid-row: 2; align-self: end; }
@media (max-width: 920px) {
  .pb-scope .cr-ins__grid { grid-template-columns: 1fr; row-gap: var(--sp-5); }
  .pb-scope .cr-ins__title, .pb-scope .cr-ins__side, .pb-scope .cr-ins__quote, .pb-scope .cr-ins__after { grid-column: 1; grid-row: auto; }
}

/* ---------- getting-around: one wide shop frame, four ways around under it ---------- */
.pb-scope .cr-around { position: relative; padding-bottom: var(--sp-section); background: var(--surface); border-block: 1px solid var(--border); }
.pb-scope .cr-around__photo { position: relative; height: clamp(300px, 34vw, 480px); overflow: hidden; }
.pb-scope .cr-around__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.pb-scope .cr-around__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 17, 20, .2) 0%, rgba(16, 17, 20, .5) 42%, rgba(16, 17, 20, .9) 70%, var(--surface) 100%);
}
.pb-scope .cr-around__inner { position: relative; margin-top: clamp(-150px, -9vw, -96px); }
.pb-scope .cr-around__title { margin: 0 0 var(--sp-8); max-width: 17ch; font-size: clamp(34px, 4vw, 56px); }
.pb-scope .cr-around__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-6); }
.pb-scope .cr-around__item { position: relative; padding-top: var(--sp-5); border-top: 1px solid var(--border-strong); }
.pb-scope .cr-around__item::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--cr-line, 1));
}
.pb-scope .cr-around__n { display: block; margin-bottom: var(--sp-5); color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.pb-scope .cr-around__item h3 { margin: 0 0 var(--sp-3); font-size: calc(var(--fs-h3) * 1.05); }
.pb-scope .cr-around__item p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 34ch; }
@media (max-width: 920px) {
  .pb-scope .cr-around__list { grid-template-columns: 1fr 1fr; row-gap: var(--sp-7); }
}
@media (max-width: 560px) {
  .pb-scope .cr-around__photo { height: 260px; }
  .pb-scope .cr-around__inner { margin-top: -72px; }
  .pb-scope .cr-around__title { margin-bottom: var(--sp-6); }
  .pb-scope .cr-around__list { grid-template-columns: 1fr; row-gap: var(--sp-6); }
  .pb-scope .cr-around__n { margin-bottom: var(--sp-3); }
}

/* ---------- reviews: the score as the anchor, two quotes at two sizes ---------- */
.pb-scope .cr-rev__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-6); row-gap: var(--sp-7); align-items: start; }
.pb-scope .cr-rev__score { grid-column: 1 / span 4; }
.pb-scope .cr-rev__score h2 { margin: 0 0 var(--sp-7); max-width: 12ch; }
.pb-scope .cr-rev__big {
  margin: 0; color: var(--fg); font-weight: var(--w-display); font-size: clamp(96px, 11vw, 160px);
  line-height: .82; letter-spacing: -.055em;
}
.pb-scope .cr-rev__stars { margin: var(--sp-5) 0 var(--sp-4); }
.pb-scope .cr-rev__stars svg { width: 26px; height: 26px; }
.pb-scope .cr-rev__line { margin: 0; max-width: 28ch; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--muted) 55%, var(--fg)); }
.pb-scope .cr-rev__quotes { grid-column: 6 / -1; display: grid; gap: var(--sp-8); padding-top: var(--sp-2); }
.pb-scope .cr-rev__q { margin: 0; padding-top: var(--sp-5); border-top: 1px solid var(--border-strong); }
.pb-scope .cr-rev__q p { margin: 0 0 var(--sp-3); color: var(--fg); font-weight: var(--w-bold); font-size: 22px; line-height: 1.4; max-width: 44ch; }
.pb-scope .cr-rev__q--lg p { font-weight: var(--w-display); font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -.025em; max-width: 26ch; }
.pb-scope .cr-rev__q cite { display: block; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 55%, var(--fg)); }
.pb-scope .cr-rev__q:not(.cr-rev__q--lg) { margin-left: auto; width: min(100%, 520px); }
@media (max-width: 920px) {
  .pb-scope .cr-rev__grid { grid-template-columns: 1fr; }
  .pb-scope .cr-rev__score, .pb-scope .cr-rev__quotes { grid-column: 1; }
  .pb-scope .cr-rev__score h2 { margin-bottom: var(--sp-5); }
  .pb-scope .cr-rev__quotes { gap: var(--sp-6); }
  .pb-scope .cr-rev__q:not(.cr-rev__q--lg) { margin-left: 0; width: auto; }
  .pb-scope .cr-rev__q:not(.cr-rev__q--lg) p { font-size: 19px; }
  .pb-scope .cr-rev__q--lg p { font-size: 28px; }
}

/* ---------- motion: a different entrance per block (only when motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* estimate-start: the frames are dealt one by one, the figure settles */
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__frame { opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .5s var(--ease), transform .7s cubic-bezier(.16, 1, .3, 1); }
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__frame:nth-child(2) { transition-delay: .08s; }
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__frame:nth-child(3) { transition-delay: .16s; }
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__frame:nth-child(4) { transition-delay: .24s; }
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__frame:nth-child(5) { transition-delay: .36s; }
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__frame:nth-child(6) { transition-delay: .46s; }
  html.cr-motion .pb-scope .cr-start__sheet.is-on .cr-start__frame { opacity: 1; transform: none; }
  html.cr-motion .pb-scope .cr-start__sheet .cr-start__figure { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.16, 1, .3, 1) .3s; }
  html.cr-motion .pb-scope .cr-start__sheet.is-on .cr-start__figure { clip-path: inset(0 0 0 0); }

  /* proof: each pair opens from the centre seam */
  html.cr-motion .pb-scope .cr-pairs .lh-text__fig img { clip-path: inset(0 50% 0 50% round var(--r)); transition: clip-path 1s cubic-bezier(.16, 1, .3, 1); }
  html.cr-motion .pb-scope .cr-pairs .lh-text__fig:nth-child(2) img { transition-delay: .12s; }
  html.cr-motion .pb-scope .cr-pairs .lh-text__fig:nth-child(3) img { transition-delay: .24s; }
  html.cr-motion .pb-scope .cr-pairs.is-on .lh-text__fig img { clip-path: inset(0 0 0 0 round var(--r)); }

  /* services: the register is ruled in row by row */
  html.cr-motion .pb-scope .cr-rows li { opacity: 0; transition: opacity .6s var(--ease); }
  html.cr-motion .pb-scope .cr-rows li:nth-child(2) { transition-delay: .1s; }
  html.cr-motion .pb-scope .cr-rows li:nth-child(3) { transition-delay: .2s; }
  html.cr-motion .pb-scope .cr-rows li:nth-child(4) { transition-delay: .3s; }
  html.cr-motion .pb-scope .cr-rows li:nth-child(5) { transition-delay: .4s; }
  html.cr-motion .pb-scope .cr-rows.is-on li { opacity: 1; }

  /* insurance: the quote is uncovered top to bottom */
  html.cr-motion .pb-scope .cr-ins__quote p { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1); }
  html.cr-motion .pb-scope .cr-ins__quote.is-on p { clip-path: inset(0 0 -10% 0); }

  /* getting-around: the frame settles from a slight zoom, the four rules draw left to right */
  html.cr-motion .pb-scope .cr-around__photo img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
  html.cr-motion .pb-scope .cr-around__photo.is-on img { transform: none; }
  html.cr-motion .pb-scope .cr-around__list .cr-around__item { --cr-line: 0; }
  html.cr-motion .pb-scope .cr-around__item::before { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
  html.cr-motion .pb-scope .cr-around__item:nth-child(2)::before { transition-delay: .12s; }
  html.cr-motion .pb-scope .cr-around__item:nth-child(3)::before { transition-delay: .24s; }
  html.cr-motion .pb-scope .cr-around__item:nth-child(4)::before { transition-delay: .36s; }
  html.cr-motion .pb-scope .cr-around__list.is-on .cr-around__item { --cr-line: 1; }

  /* reviews: the stars light one after another */
  html.cr-motion .pb-scope .cr-rev__score .cr-rev__stars svg { opacity: .18; transition: opacity .35s var(--ease); }
  html.cr-motion .pb-scope .cr-rev__score .cr-rev__stars svg:nth-child(2) { transition-delay: .12s; }
  html.cr-motion .pb-scope .cr-rev__score .cr-rev__stars svg:nth-child(3) { transition-delay: .24s; }
  html.cr-motion .pb-scope .cr-rev__score .cr-rev__stars svg:nth-child(4) { transition-delay: .36s; }
  html.cr-motion .pb-scope .cr-rev__score .cr-rev__stars svg:nth-child(5) { transition-delay: .48s; }
  html.cr-motion .pb-scope .cr-rev__score.is-on .cr-rev__stars svg { opacity: 1; }
  html.cr-motion .pb-scope .cr-rev__quotes .cr-rev__q { opacity: 0; transform: scale(.98); transform-origin: left top; transition: opacity .7s var(--ease), transform .9s cubic-bezier(.16, 1, .3, 1); }
  html.cr-motion .pb-scope .cr-rev__quotes .cr-rev__q + .cr-rev__q { transition-delay: .2s; }
  html.cr-motion .pb-scope .cr-rev__quotes.is-on .cr-rev__q { opacity: 1; transform: none; }
}
