/* Landing variant 5: the conversion line. Built on variant 4 (lp4.css).
   Cards travel left to right. Left of the red line each one is the original:
   a flyer, an Instagram post, a chat screenshot or a link. At the line it
   becomes the real event card. Two identical tracks run in sync; the original
   is clipped to the left half and the event to the right half, so a card
   crossing the line is split between the two. */

.lp5__band {
    --h: clamp(150px, 28vh, 300px);
}

.lp5__stage {
    position: relative;
    flex: none;
    width: 100%;
    height: var(--h);
}

.lp5__layer {
    position: absolute;
    inset: 0;
}

/* Negative insets leave room for tilted cards and their shadows. */
.lp5__layer--src {
    clip-path: inset(-48px 50% -48px 0);
}

.lp5__layer--out {
    clip-path: inset(-48px 0 -48px 50%);
}

.lp5__track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
}

.lp5__set {
    display: flex;
    flex: none;
    align-items: center;
    gap: calc(var(--h) * 0.07);
    padding-right: calc(var(--h) * 0.07);
}

@keyframes lp5-move {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .lp5__track {
        animation: lp5-move 170s linear infinite;
    }
}

/* ---------- The red line ---------- */

.lp5__line {
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 50%;
    z-index: 3;
    width: 3px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--chip-today);
    box-shadow: 0 0 14px 2px rgb(232 56 57 / 0.5);
}

.lp5__line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70px;
    right: -70px;
    background: linear-gradient(90deg, transparent, rgb(232 56 57 / 0.1), transparent);
    pointer-events: none;
}

.lp5__tag {
    position: absolute;
    top: -22px;
    left: 50%;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--chip-today);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--on-dark);
    white-space: nowrap;
    transform: translateX(-50%);
}

.lp5__cap {
    position: absolute;
    top: -19px;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brown-500);
    white-space: nowrap;
}

.lp5__cap--l {
    right: calc(50% + 62px);
}

.lp5__cap--r {
    left: calc(50% + 62px);
}

/* ---------- Originals: same size and tilt as the event cards ---------- */

.s5 {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    width: calc(var(--h) * 0.84);
    height: var(--h);
    padding: calc(var(--h) * 0.06);
    overflow: hidden;
    border-radius: calc(var(--h) * 0.06);
    font-size: calc(var(--h) / 17);
    line-height: 1.2;
    transform: translateY(var(--o)) rotate(var(--t));
}

.s5 p {
    margin: 0;
}

.s5__bars {
    display: grid;
    gap: 0.45em;
    margin-top: auto;
}

.s5__bars i {
    display: block;
    height: 0.5em;
    border-radius: 0.25em;
    background: currentColor;
    opacity: 0.22;
}

.s5__bars i:nth-child(2) {
    width: 78%;
}

.s5__bars i:nth-child(3) {
    width: 55%;
}

/* Printed flyer: the card's own color, loud type, a bit of paper texture. */
.s5--flyer {
    background:
        radial-gradient(circle at 85% 12%, rgb(255 255 255 / 0.3), transparent 38%),
        var(--bg, var(--card-bg));
    color: var(--fg, var(--brown-900));
}

.s5__kicker {
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
}

.s5__big {
    margin-top: 0.5em;
    font-family: var(--font-display);
    font-size: 2.1em;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.s5__when {
    margin-top: 0.7em;
    font-size: 1.05em;
    font-weight: 600;
}

.s5__blob {
    position: absolute;
    right: -1.6em;
    bottom: -1.6em;
    width: 5.6em;
    height: 5.6em;
    border-radius: 50%;
    border: 0.5em solid currentColor;
    opacity: 0.16;
}

/* Instagram post */
.s5--ig {
    padding: 0;
    background: #ffffff;
    color: #262626;
}

.s5__igtop {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.7em 0.8em;
    font-size: 0.9em;
}

.s5__igtop b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s5__igtop em {
    font-style: normal;
    opacity: 0.55;
}

.s5__av {
    flex: none;
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    background: conic-gradient(from 200deg, #f2a03c, #e83839, #b4399c, #f2a03c);
}

.s5__igimg {
    display: grid;
    place-items: center;
    flex: none;
    aspect-ratio: 1;
    padding: 0.8em;
    background: var(--bg);
    color: var(--fg);
    text-align: center;
}

.s5__igimg span {
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.s5__igacts {
    padding: 0.5em 0.8em 0;
    font-size: 1.2em;
    letter-spacing: 0.1em;
}

.s5__cap {
    padding: 0.2em 0.8em 0;
    font-size: 0.85em;
    line-height: 1.3;
}

.s5__cap b {
    font-weight: 600;
}

/* Screenshot of a chat */
.s5--shot {
    gap: 0.6em;
    background: #f2f2f7;
    color: #1c1c1e;
}

.s5__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3em;
    font-size: 0.85em;
}

.s5__status span {
    width: 1.8em;
    height: 0.8em;
    border-radius: 0.2em;
    background: currentColor;
    opacity: 0.7;
}

.s5__bubble {
    max-width: 88%;
    padding: 0.6em 0.8em;
    border-radius: 1.1em;
    font-size: 1em;
}

.s5__bubble--in {
    align-self: flex-start;
    background: #e5e5ea;
}

.s5__bubble--out {
    align-self: flex-end;
    background: var(--olive-900);
    color: var(--on-dark);
}

/* Link preview */
.s5--link {
    gap: 0.7em;
    background: #ffffff;
    color: #262626;
}

.s5__url {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.8em;
    border-radius: 999px;
    background: #efefef;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
}

.s5__lock {
    flex: none;
    width: 0.7em;
    height: 0.9em;
    border-radius: 0.15em;
    background: currentColor;
    opacity: 0.45;
}

.s5__thumb {
    display: grid;
    place-items: center;
    flex: none;
    aspect-ratio: 1.15;
    padding: 0.7em;
    border-radius: 0.6em;
    background: var(--bg);
    color: var(--fg);
    text-align: center;
}

.s5__thumb span {
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.s5__open {
    align-self: flex-start;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    background: #0095f6;
    font-size: 0.9em;
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 600px) {
    .lp5__cap {
        display: none;
    }
}
