/* ==========================================================================
   Velto swirls — the glowing orange line that loops behind product shots.

   Markup: <div class="v-swirl" data-swirl="ko" aria-hidden="true"></div>
   velto-swirls.js fills it with an SVG and adds .is-in once it scrolls into
   view. The line then draws itself, a bright highlight keeps running along
   it, and the whole thing floats gently.
   ========================================================================== */

.v-swirl {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
/* No filter and no endless animation (2026-11-05): a drop-shadow on a
   page-sized overlay, re-rendered every frame by a highlight that never
   stopped running, stalled phones and cost us page-speed. The glow is now a
   wider faint stroke under the line, painted once; the line draws itself in
   once and then stays still, so after the first seconds it costs nothing. */
.v-swirl svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: .9;
}

.v-swirl .v-swirl-line,
.v-swirl .v-swirl-glow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.2s cubic-bezier(.65, 0, .35, 1);
}
.v-swirl .v-swirl-line { stroke-width: var(--v-swirl-width, 4px); }
.v-swirl .v-swirl-glow {
    stroke-width: calc(var(--v-swirl-width, 4px) * 3.2);
    opacity: .16;
}
.v-swirl.is-in .v-swirl-line,
.v-swirl.is-in .v-swirl-glow { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
    .v-swirl .v-swirl-line,
    .v-swirl .v-swirl-glow { transition: none; stroke-dashoffset: 0; }
}

/* ---- one continuous line across sections (see velto-swirls.js) --------- */
.v-swirl-chain {
    position: absolute;
    inset: 0 auto auto 0;
    z-index: 0;
    --v-swirl-width: 3.5px;
}
.v-swirl-chain .v-swirl-line,
.v-swirl-chain .v-swirl-glow { transition-duration: 3.4s; }

/* the line passes behind the community card, like the original line did */
.community-wrapper { position: relative; z-index: 1; }
/* the copy that runs in front of the stats strip (which sits at z-index 1) */
.v-swirl-front { z-index: 2; overflow: hidden; }
.v-swirl-front svg { overflow: hidden; }

/* A decorative overlay must never be able to scroll the page. Belt and braces
   alongside the sizing fix in velto-swirls.js: even if a future change
   mis-measures, the swirl cannot extend the document. */
.v-swirl,
.v-swirl-chain {
    max-width: 100vw;
    pointer-events: none;
}
