/* The retailers page pitch. Loaded after grow.css and scoped to .rv1. The previous pitch is /obsoluteretailer.
   Everything here is decoration: with no script, or with reduced motion, each piece rests in its finished state. */

@property --v1-pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

/* ---------- Hero: the six-step flow on a tilted 3D stage ---------- */
.rv1 .v1-stage { perspective: 1400px; }
.rv1 .v1-flow { position: relative; }
.rv1 .grow-flow__steps li > span:last-child {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
}
.rv1 .v1-flow__spark { display: none; }

@media (min-width: 48rem) {
  /* Three per row on tablets, so a long label such as "Smartphone" never splits mid-word. */
  .rv1 .grow-flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rv1 .grow-flow__steps::before,
  .rv1 .grow-flow.is-shown .grow-flow__steps::after { display: none; }
  .rv1 .grow-flow__steps li { padding-block: var(--s-3); }
}

@media (min-width: 64rem) {
  .rv1 .grow-flow__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rv1 .grow-flow__steps::before,
  .rv1 .grow-flow.is-shown .grow-flow__steps::after { display: block; inset-block-start: calc(var(--s-3) + 1.25rem); }
  .rv1 .v1-flow__spark {
    display: block;
    position: absolute;
    z-index: 2;
    inset-block-start: calc(var(--s-4) + var(--s-3) + 1.25rem - 5px);
    inset-inline: calc(var(--s-4) + (100% - 2 * var(--s-4)) / 12);
    block-size: 10px;
    pointer-events: none;
  }
  .rv1 .v1-flow__spark::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 10px;
    block-size: 10px;
    margin-inline-start: -5px;
    background: var(--accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px 4px color-mix(in srgb, var(--accent) 45%, transparent);
    opacity: 0;
  }
  .rv1 .grow-flow.is-shown .v1-flow__spark::after { animation: v1-spark 7.2s linear infinite; }
}

@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .rv1 .v1-flow {
    transform-style: preserve-3d;
    transform: rotateX(calc(14deg + var(--v1-py, 0deg))) rotateY(var(--v1-px, 0deg));
    box-shadow: 0 30px 60px -30px rgb(28 25 23 / 0.35);
    transition: transform 0.5s var(--ease);
  }
  .rv1 .v1-flow .grow-flow__steps { transform-style: preserve-3d; }
  .rv1 .v1-flow .v1-flow__spark { transform: translateZ(40px); }
  .rv1 .v1-flow .grow-flow__steps li {
    transform: translateZ(1px);
    transform-style: preserve-3d;
    box-shadow: 0 6px 14px -8px rgb(28 25 23 / 0.25);
  }
  .rv1 .grow-flow.is-shown .grow-flow__steps li {
    animation-name: grow-flow-beat, v1-lift;
    animation-duration: 7.2s, 7.2s;
    animation-timing-function: var(--ease), var(--ease);
    animation-iteration-count: infinite, infinite;
  }
}

/* ---------- Problem: tilt cards and the fading memory ---------- */
.rv1 [data-v1-tilt] {
  position: relative;
  transform: perspective(800px) rotateX(var(--v1-ty, 0deg)) rotateY(var(--v1-tx, 0deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.rv1 [data-v1-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--v1-mx, 50%) var(--v1-my, 0%), rgb(255 255 255 / 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.rv1 [data-v1-tilt].is-tilting { box-shadow: var(--shadow-float); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.rv1 [data-v1-tilt].is-tilting::after { opacity: 1; }

.rv1 .v1-leave .grow-leave__track { block-size: 7rem; }
.rv1 .v1-leave .grow-leave__shop,
.rv1 .v1-leave .grow-leave__person { inset-block-start: auto; inset-block-end: 0.9rem; inline-size: 3rem; block-size: 3rem; box-shadow: var(--shadow-float); }
.rv1 .v1-leave .grow-leave__shop { inline-size: 3.5rem; block-size: 3.5rem; color: var(--on-accent); background: var(--accent); }
.rv1 .v1-thought {
  position: absolute;
  inset-block-end: calc(100% + 0.5rem);
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  translate: -50% 0;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  opacity: 0.25;
  filter: blur(1.5px);
}
.rv1 .v1-thought::after {
  content: "";
  position: absolute;
  inset-block-end: -0.45rem;
  inset-inline-start: 0.5rem;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
}
.rv1 .v1-thought .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.rv1 .v1-leave.is-shown .grow-leave__person { animation: v1-walk 3.4s var(--ease) both; }
.rv1 .v1-leave.is-shown .v1-thought { animation: v1-forget 3.4s var(--ease) both; }

/* ---------- Stories: a phone beside each one ---------- */
.rv1 .v1-story { grid-template-areas: "text" "phone" "steps"; }
.rv1 .v1-story > .v1-story__text { grid-area: text; }
.rv1 .v1-story > .v1-phone-wrap { grid-area: phone; }
.rv1 .v1-story > ol { grid-area: steps; }
.rv1 .grow-story--flip > :first-child { order: 0; }

@media (min-width: 48rem) {
  .rv1 .v1-story { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text phone" "steps phone"; align-items: center; }
  .rv1 .v1-story.grow-story--flip { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "phone text" "phone steps"; }
}
@media (min-width: 72rem) {
  .rv1 .v1-story { grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.85fr); grid-template-areas: "text phone steps"; }
  .rv1 .v1-story.grow-story--flip { grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1fr); grid-template-areas: "steps phone text"; }
}

.rv1 .v1-phone-wrap { display: grid; place-items: center; padding-block: var(--s-4); perspective: 1100px; }
.rv1 .v1-phone {
  position: relative;
  inline-size: 15rem;
  aspect-ratio: 9 / 18.5;
  padding: 0.6rem;
  background: #16130f;
  border-radius: 2.4rem;
  box-shadow:
    0 0 0 2px #3a342c inset,
    0 40px 60px -28px rgb(28 25 23 / 0.55),
    0 12px 24px -12px rgb(28 25 23 / 0.35);
  transform: rotateY(var(--v1-ry, -12deg)) rotateX(var(--v1-rx, 5deg));
  transition: transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.rv1 .grow-story--flip .v1-phone { --v1-ry: 12deg; }
.rv1 .v1-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset-block-start: 1rem;
  inset-inline-start: 50%;
  inline-size: 4.5rem;
  block-size: 1.1rem;
  translate: -50% 0;
  background: #16130f;
  border-radius: var(--radius-full);
}
.rv1 .v1-phone::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: 1.85rem;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.18), transparent 35%);
  pointer-events: none;
  z-index: 4;
}
.rv1 .v1-screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-3);
  block-size: 100%;
  padding: 2.6rem var(--s-3) var(--s-3);
  overflow: hidden;
  font-size: var(--text-xs);
  background: var(--bg);
  border-radius: 1.85rem;
}
.rv1 .v1-screen img { display: block; inline-size: 100%; block-size: auto; min-inline-size: 0; object-fit: cover; background: var(--surface-2); border-radius: var(--radius-sm); }
.rv1 .v1-avatar {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 2rem;
  block-size: 2rem;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius-full);
}
.rv1 .v1-avatar .icon { inline-size: 1rem; block-size: 1rem; }

/* Story 1: scan the counter QR, the shop page opens */
.rv1 .v1-bar {
  padding: 0.3rem 0.6rem;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.65rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface-2);
  border-radius: var(--radius-full);
}
.rv1 .v1-s1__shop { display: grid; gap: var(--s-3); }
.rv1 .v1-s1__head { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); }
.rv1 .v1-s1__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.rv1 .v1-s1__grid img { aspect-ratio: 4 / 5; }
.rv1 .v1-s1__scan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #16130f;
  opacity: 0;
  pointer-events: none;
}
.rv1 .v1-qr {
  display: grid;
  grid-template-columns: repeat(7, 0.95rem);
  gap: 0.2rem;
  padding: 0.7rem;
  background: #fff;
  border-radius: var(--radius-sm);
}
.rv1 .v1-qr span { aspect-ratio: 1; background: #fff; border-radius: 1px; }
.rv1 .v1-qr span:nth-child(-n + 3),
.rv1 .v1-qr span:nth-child(n + 5):nth-child(-n + 7),
.rv1 .v1-qr span:nth-child(8), .rv1 .v1-qr span:nth-child(10), .rv1 .v1-qr span:nth-child(12), .rv1 .v1-qr span:nth-child(14),
.rv1 .v1-qr span:nth-child(15), .rv1 .v1-qr span:nth-child(16), .rv1 .v1-qr span:nth-child(17), .rv1 .v1-qr span:nth-child(19), .rv1 .v1-qr span:nth-child(20), .rv1 .v1-qr span:nth-child(21),
.rv1 .v1-qr span:nth-child(24), .rv1 .v1-qr span:nth-child(25), .rv1 .v1-qr span:nth-child(27),
.rv1 .v1-qr span:nth-child(29), .rv1 .v1-qr span:nth-child(30), .rv1 .v1-qr span:nth-child(31), .rv1 .v1-qr span:nth-child(33), .rv1 .v1-qr span:nth-child(35),
.rv1 .v1-qr span:nth-child(36), .rv1 .v1-qr span:nth-child(38), .rv1 .v1-qr span:nth-child(40), .rv1 .v1-qr span:nth-child(41),
.rv1 .v1-qr span:nth-child(n + 43):nth-child(-n + 45), .rv1 .v1-qr span:nth-child(47), .rv1 .v1-qr span:nth-child(49) { background: #16130f; }
.rv1 .v1-s1__line {
  position: absolute;
  inset-inline: 18%;
  inset-block-start: 30%;
  block-size: 2px;
  background: #4ade80;
  box-shadow: 0 0 12px 3px rgb(74 222 128 / 0.7);
}
.rv1 .v1-story.is-shown .v1-s1__scan { animation: v1-s1-scan 7s var(--ease) infinite; }
.rv1 .v1-story.is-shown .v1-s1__line { animation: v1-s1-line 7s linear infinite; }
.rv1 .v1-story.is-shown .v1-s1__shop { animation: v1-s1-shop 7s var(--ease) infinite; }

/* Story 2: photograph, scan, choose sizes, shown */
.rv1 .v1-s2__cam { position: relative; overflow: hidden; border-radius: var(--radius); }
.rv1 .v1-s2__cam img { aspect-ratio: 4 / 4.2; border-radius: 0; }
.rv1 .v1-s2__frame {
  position: absolute;
  inset: 12%;
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: var(--radius-sm);
  -webkit-mask: linear-gradient(#000 0 0) top left / 22% 22% no-repeat, linear-gradient(#000 0 0) top right / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom left / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom right / 22% 22% no-repeat;
  mask: linear-gradient(#000 0 0) top left / 22% 22% no-repeat, linear-gradient(#000 0 0) top right / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom left / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom right / 22% 22% no-repeat;
}
.rv1 .v1-s2__flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.rv1 .v1-s2__code { position: relative; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.rv1 .v1-barcode {
  display: block;
  block-size: 1.6rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
}
.rv1 .v1-s2__beam {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 3px;
  background: var(--bad);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--bad) 60%, transparent);
  opacity: 0;
}
.rv1 .v1-s2__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.rv1 .v1-s2__chips b {
  display: grid;
  place-items: center;
  min-inline-size: 1.8rem;
  padding: 0.15rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
}
.rv1 .v1-dot { inline-size: 1rem; block-size: 1rem; border-radius: var(--radius-full); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.rv1 .v1-dot--a { background: #b4233c; }
.rv1 .v1-dot--b { background: #d4a017; }
.rv1 .v1-dot--c { background: #1f4d43; }
.rv1 .v1-s2__done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem;
  color: var(--on-accent);
  font-weight: var(--weight-bold);
  background: var(--accent);
  border-radius: var(--radius-full);
}
.rv1 .v1-s2__done .icon { inline-size: 1rem; block-size: 1rem; }
.rv1 .v1-story.is-shown .v1-s2__flash { animation: v1-flash 7s ease-out infinite; }
.rv1 .v1-story.is-shown .v1-s2__beam { animation: v1-beam 7s linear infinite; }
.rv1 .v1-story.is-shown .v1-s2__chips > * { animation: v1-pop 7s var(--ease) infinite; }
.rv1 .v1-story.is-shown .v1-s2__chips > :nth-child(2) { animation-delay: 0.1s; }
.rv1 .v1-story.is-shown .v1-s2__chips > :nth-child(3) { animation-delay: 0.2s; }
.rv1 .v1-story.is-shown .v1-s2__chips > :nth-child(4) { animation-delay: 0.3s; }
.rv1 .v1-story.is-shown .v1-s2__chips > :nth-child(5) { animation-delay: 0.45s; }
.rv1 .v1-story.is-shown .v1-s2__chips > :nth-child(6) { animation-delay: 0.55s; }
.rv1 .v1-story.is-shown .v1-s2__chips > :nth-child(7) { animation-delay: 0.65s; }
.rv1 .v1-story.is-shown .v1-s2__done { animation: v1-done 7s var(--ease) infinite; }

/* Story 3: the order moves through its statuses */
.rv1 .v1-s3__item { display: grid; grid-template-columns: 4rem 1fr; align-items: center; gap: var(--s-2); padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: var(--weight-bold); }
.rv1 .v1-s3__item img { aspect-ratio: 4 / 5; }
.rv1 .v1-s3__track { block-size: 6px; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-full); }
.rv1 .v1-s3__track i { display: block; block-size: 100%; background: var(--accent); border-radius: inherit; transform-origin: left center; }
.rv1 .v1-s3__status { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.rv1 .v1-s3__status li {
  padding: 0.45rem 0.6rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.rv1 .v1-s3__status li:last-child { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.rv1 .v1-s3__bag { position: relative; display: grid; place-items: center; margin-inline: auto; inline-size: 3.2rem; block-size: 3.2rem; color: var(--accent); background: var(--surface-2); border-radius: var(--radius-full); }
.rv1 .v1-s3__tick { position: absolute; inset-block-start: -0.2rem; inset-inline-end: -0.2rem; inline-size: 1.2rem; block-size: 1.2rem; padding: 0.15rem; color: var(--on-accent); background: var(--ok); border-radius: var(--radius-full); }
.rv1 .v1-story.is-shown .v1-s3__track i { animation: v1-track 8s var(--ease) infinite; }
.rv1 .v1-story.is-shown .v1-s3__status li { animation: v1-status 8s var(--ease) infinite; }
.rv1 .v1-story.is-shown .v1-s3__status li:nth-child(2) { animation-delay: 1.6s; }
.rv1 .v1-story.is-shown .v1-s3__status li:nth-child(3) { animation-delay: 3.2s; }
.rv1 .v1-story.is-shown .v1-s3__status li:nth-child(4) { animation-name: v1-status-last; animation-delay: 4.8s; animation-fill-mode: backwards; }
.rv1 .v1-story.is-shown .v1-s3__tick { animation: v1-tick 8s var(--ease) infinite; }

/* Story 4: the shop keeps reaching the customer */
.rv1 .v1-s4 { background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 85%, #000), color-mix(in srgb, var(--accent) 55%, #6b4f2a)); }
.rv1 .v1-s4__time { padding-block: var(--s-4) var(--s-3); color: #fff; font-family: var(--font-display); font-size: 2.6rem; text-align: center; }
.rv1 .v1-s4__notes { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.rv1 .v1-s4__notes li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.55rem;
  color: var(--ink);
  background: rgb(255 255 255 / 0.9);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.5);
}
.rv1 .v1-s4__notes b { overflow-wrap: anywhere; }
.rv1 .v1-story.is-shown .v1-s4__notes li { animation: v1-note 7s var(--ease) infinite; }
.rv1 .v1-story.is-shown .v1-s4__notes li:nth-child(2) { animation-delay: 0.9s; }
.rv1 .v1-story.is-shown .v1-s4__notes li:nth-child(3) { animation-delay: 1.8s; }

/* ---------- Features: tilt, sheen, a wheel that spins ---------- */
.rv1 .v1-benefits.is-shown li { animation-name: v1-in; }
.rv1 .v1-benefits li { overflow: visible; }
.rv1 .v1-benefits li:has(.v1-wheel) > :is(h3, p) { padding-inline-end: 5rem; }
.rv1 .v1-wheel {
  position: absolute;
  z-index: 1;
  inset-block-start: var(--s-4);
  inset-inline-end: var(--s-4);
  display: block;
  inline-size: 4rem;
  block-size: 4rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.rv1 .v1-wheel:focus-visible { outline: var(--focus); outline-offset: 4px; border-radius: var(--radius-full); }
.rv1 .v1-wheel__disc {
  position: absolute;
  inset: 0;
  border: 3px solid var(--surface);
  border-radius: var(--radius-full);
  background: conic-gradient(var(--accent) 0 60deg, #d4a017 60deg 120deg, #b4233c 120deg 180deg, var(--accent) 180deg 240deg, #d4a017 240deg 300deg, #b4233c 300deg 360deg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-float);
  transform: rotate(var(--v1-spin, 0deg));
  transition: transform 2.6s cubic-bezier(0.12, 0.7, 0.1, 1);
}
.rv1 .v1-wheel__disc::after {
  content: "";
  position: absolute;
  inset: 38%;
  background: var(--surface);
  border-radius: var(--radius-full);
}
.rv1 .v1-wheel__pin {
  position: absolute;
  inset-block-start: -0.35rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  border-inline: 0.45rem solid transparent;
  border-block-start: 0.8rem solid var(--ink);
}

/* ---------- Dashboard: shots in a tilting device ---------- */
.rv1 .v1-shot { perspective: 1200px; }
.rv1 .v1-device {
  padding: 0.55rem;
  background: #16130f;
  border-radius: 1.1rem;
  box-shadow: 0 30px 50px -28px rgb(28 25 23 / 0.6);
  transform: rotateY(var(--v1-dy, 9deg)) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}
.rv1 .v1-device img { block-size: auto; border: 0; border-radius: 0.7rem; }
.rv1 .grow-preview:hover .v1-device { --v1-dy: 0deg; }
.rv1 .v1-shot figcaption { margin-block-start: var(--s-3); }
.rv1 .grow-metrics span { font-size: var(--text-2xl); font-variant-numeric: tabular-nums; color: var(--accent); }

/* ---------- Before and after: drag to compare ---------- */
.rv1 .v1-ba {
  --v1-pos: 50%;
  position: relative;
  margin-block-start: var(--s-5);
  aspect-ratio: 16 / 9;
  max-block-size: 30rem;
  inline-size: 100%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  user-select: none;
  touch-action: pan-y;
}
.rv1 .v1-ba__side { position: absolute; inset: 0; }
.rv1 .v1-ba__side img { display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; }
.rv1 .v1-ba__before img { filter: grayscale(1) brightness(0.78) contrast(0.9); }
.rv1 .v1-ba__after { clip-path: inset(0 0 0 var(--v1-pos)); }
.rv1 .v1-ba__after img { filter: saturate(1.15) brightness(1.05); }
.rv1 .v1-ba__label {
  position: absolute;
  inset-block-start: var(--s-3);
  padding: 0.3rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
}
.rv1 .v1-ba__before .v1-ba__label { inset-inline-start: var(--s-3); color: #fff; background: rgb(28 25 23 / 0.7); }
.rv1 .v1-ba__after .v1-ba__label { inset-inline-end: var(--s-3); color: var(--on-accent); background: var(--accent); }
.rv1 .v1-ba__float {
  position: absolute;
  display: grid;
  place-items: center;
  inline-size: 2.8rem;
  block-size: 2.8rem;
  color: var(--accent);
  background: var(--surface);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.45);
}
.rv1 .v1-ba__float--1 { inset-block-start: 22%; inset-inline-start: 60%; }
.rv1 .v1-ba__float--2 { inset-block-start: 48%; inset-inline-start: 82%; }
.rv1 .v1-ba__float--3 { inset-block-start: 66%; inset-inline-start: 64%; }
.rv1 .v1-ba__float--4 { inset-block-start: 30%; inset-inline-start: 86%; }
.rv1 .v1-ba__float--5 { inset-block-start: 74%; inset-inline-start: 88%; }
.rv1 .v1-ba.is-shown .v1-ba__float { animation: v1-bob 3.2s ease-in-out infinite; }
.rv1 .v1-ba.is-shown .v1-ba__float--2 { animation-delay: 0.5s; }
.rv1 .v1-ba.is-shown .v1-ba__float--3 { animation-delay: 1s; }
.rv1 .v1-ba.is-shown .v1-ba__float--4 { animation-delay: 1.5s; }
.rv1 .v1-ba.is-shown .v1-ba__float--5 { animation-delay: 2s; }
.rv1 .v1-ba__handle {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  inset-inline-start: var(--v1-pos);
  inline-size: 3px;
  translate: -50% 0;
  background: #fff;
  box-shadow: 0 0 12px rgb(0 0 0 / 0.35);
  pointer-events: none;
}
.rv1 .v1-ba__handle::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 2.8rem;
  block-size: 2.8rem;
  translate: -50% -50%;
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.3);
}
.rv1 .v1-ba__handle .icon { position: absolute; inset-block-start: 50%; z-index: 1; translate: 0 -50%; color: var(--accent); }
.rv1 .v1-ba__handle .icon:first-child { inset-inline-end: 0.2rem; }
.rv1 .v1-ba__handle .icon:last-child { inset-inline-start: 0.2rem; }
.rv1 .v1-ba__range {
  position: absolute;
  z-index: 3;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.rv1 .v1-ba:has(.v1-ba__range:focus-visible) { outline: var(--focus); outline-offset: 3px; }
.rv1 .v1-ba.is-shown:not(.is-touched) { animation: v1-hint 2.6s var(--ease) 0.4s 1 both; }
@media (max-width: 47.99rem) {
  .rv1 .v1-ba { aspect-ratio: 4 / 3.4; }
}

/* ---------- Chennai scenes and the start steps ---------- */
.rv1 .v1-scenes li { transition: transform 0.4s var(--ease); }
.rv1 .v1-scenes.is-shown li, .rv1 .v1-scenes.is-playing li { animation-name: grow-scene, v1-scene-lift; animation-duration: 8s, 8s; animation-timing-function: var(--ease), var(--ease); }

.rv1 .v1-start { counter-reset: v1-step; position: relative; }
.rv1 .v1-start li { position: relative; counter-increment: v1-step; padding-block-start: calc(var(--s-4) + 2.75rem); }
.rv1 .v1-start li::before {
  content: counter(v1-step);
  position: absolute;
  z-index: 1;
  inset-block-start: var(--s-4);
  inset-inline-start: var(--s-4);
  display: grid;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  color: var(--on-accent);
  font-weight: var(--weight-bold);
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (min-width: 48rem) {
  .rv1 .v1-start::before {
    content: "";
    position: absolute;
    inset-block-start: calc(var(--s-4) + 1.1rem);
    inset-inline: var(--s-6);
    block-size: 2px;
    background: var(--accent);
    transform-origin: left center;
  }
  .rv1 .v1-start.is-shown::before { animation: v1-draw 1.4s var(--ease) both; }
  .rv1 .v1-start li { background: color-mix(in srgb, var(--surface) 94%, transparent); }
}
.rv1 .v1-start.is-shown li { animation: v1-in 0.6s var(--ease) both; }
.rv1 .v1-start.is-shown li:nth-child(2) { animation-delay: 0.35s; }
.rv1 .v1-start.is-shown li:nth-child(3) { animation-delay: 0.7s; }

/* ---------- Reduced motion: every piece rests in its finished state ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv1 *, .rv1 *::before, .rv1 *::after { animation: none !important; transition: none !important; }
  .rv1 [data-v1-tilt], .rv1 .v1-phone, .rv1 .v1-device, .rv1 .v1-flow { transform: none !important; }
}

/* ---------- Keyframes ---------- */
@keyframes v1-in { from { opacity: 0; translate: 0 0.8rem; } to { opacity: 1; translate: 0 0; } }
@keyframes v1-lift {
  0%, 100% { transform: translateZ(1px); }
  3%, 14% { transform: translateZ(26px); box-shadow: 0 18px 26px -12px rgb(28 25 23 / 0.35); }
}
@keyframes v1-spark {
  0% { inset-inline-start: 0%; opacity: 0; }
  3% { opacity: 1; }
  85% { opacity: 1; }
  88% { inset-inline-start: 100%; opacity: 0; }
  100% { inset-inline-start: 100%; opacity: 0; }
}
@keyframes v1-walk {
  0% { inset-inline-start: 5rem; }
  100% { inset-inline-start: calc(100% - 4rem); }
}
@keyframes v1-forget {
  0%, 15% { opacity: 1; filter: blur(0); scale: 1; }
  100% { opacity: 0.25; filter: blur(1.5px); scale: 0.85; }
}
@keyframes v1-s1-scan {
  0% { opacity: 1; }
  40% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes v1-s1-line {
  0% { inset-block-start: 30%; }
  20% { inset-block-start: 68%; }
  40% { inset-block-start: 30%; }
  100% { inset-block-start: 30%; }
}
@keyframes v1-s1-shop {
  0%, 42% { opacity: 0; transform: translateY(1.5rem); }
  55%, 100% { opacity: 1; transform: none; }
}
@keyframes v1-flash { 0%, 6% { opacity: 0; } 8% { opacity: 0.95; } 14%, 100% { opacity: 0; } }
@keyframes v1-beam {
  0%, 16% { opacity: 0; inset-inline-start: 0; }
  18% { opacity: 1; inset-inline-start: 0; }
  34% { opacity: 1; inset-inline-start: calc(100% - 3px); }
  36%, 100% { opacity: 0; inset-inline-start: calc(100% - 3px); }
}
@keyframes v1-pop {
  0%, 38% { opacity: 0; transform: scale(0.4); }
  44% { opacity: 1; transform: scale(1.12); }
  48%, 100% { opacity: 1; transform: none; }
}
@keyframes v1-done {
  0%, 60% { opacity: 0; transform: translateY(0.8rem) scale(0.9); }
  68%, 100% { opacity: 1; transform: none; }
}
@keyframes v1-track {
  0% { transform: scaleX(0.05); }
  20% { transform: scaleX(0.3); }
  40% { transform: scaleX(0.55); }
  60%, 100% { transform: scaleX(1); }
}
@keyframes v1-status {
  0% { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: scale(1.03); }
  18% { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: scale(1.03); }
  22%, 100% { color: var(--ink-2); background: var(--surface); border-color: var(--line); transform: none; }
}
@keyframes v1-status-last {
  0% { color: var(--ink-2); background: var(--surface); border-color: var(--line); }
  4%, 34% { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: scale(1.03); }
  38%, 100% { color: var(--ink-2); background: var(--surface); border-color: var(--line); transform: none; }
}
@keyframes v1-tick {
  0%, 60% { opacity: 0; transform: scale(0); }
  66% { opacity: 1; transform: scale(1.25); }
  70%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0); }
}
@keyframes v1-note {
  0% { opacity: 0; transform: translateY(-1rem) scale(0.92); }
  8%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateX(1.5rem); }
}
@keyframes v1-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.5rem; } }
@keyframes v1-hint {
  0% { --v1-pos: 50%; }
  30% { --v1-pos: 30%; }
  65% { --v1-pos: 70%; }
  100% { --v1-pos: 50%; }
}
@keyframes v1-scene-lift {
  0%, 18% { transform: translateY(-3px); box-shadow: var(--shadow-float); }
  28%, 100% { transform: none; box-shadow: none; }
}
@keyframes v1-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
