/* Flipkart Payments showcase card: stacked phone columns drifting upwards.
   Real case-study screens inside a CSS phone frame. Motion is a compositor-only
   translateY marquee; it pauses off-screen and stays still with reduced motion. */

.project-hero--phones {
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.08);
    background: #2874F0;
    transform: none !important;
    contain: paint;
}
.project-hero--phones:hover { border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 24px 60px -24px rgba(17, 50, 120, 0.55); }

.fp {
    position: relative;
    display: block;
    width: 100%;
    height: 480px;
    color: #FFFFFF;
    text-decoration: none;
    background:
        radial-gradient(900px 520px at 85% 20%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(10, 40, 120, 0.35), transparent 60%),
        linear-gradient(135deg, #2F7BF5 0%, #2874F0 45%, #1D5FD6 100%);
}

/* ---------- text ---------- */
.fp-text {
    position: absolute;
    z-index: 2;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: calc(56% - 96px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.fp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 14px;
    background: #FFFFFF;
    color: #2874F0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 8px 24px -10px rgba(10, 30, 80, 0.45);
}
.fp-badge svg { width: 20px; height: 20px; flex: none; }
.fp-kicker { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.78); }
.fp-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.34;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}
.fp-chip {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .04em .5em .1em .4em;
    margin: 0 .06em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #FFE11B;
    font-weight: 600;
    white-space: nowrap;
}
.fp-chip svg { width: .8em; height: .8em; flex: none; }
.fp-meta { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
.fp-cta { font-size: 15.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.fp-cta span { transition: transform .25s ease; }
.fp:hover .fp-cta span, .fp:focus-visible .fp-cta span { transform: translateX(4px); }

/* ---------- phone columns ---------- */
.fp-stage {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    right: 64px;
    display: flex;
    gap: 30px;
}
.fp-col { width: 206px; overflow: visible; }
.fp-track {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fp-up 42s linear infinite;
    will-change: transform;
}
.fp-col:nth-child(2) .fp-track { animation-delay: -21s; }
.fp.is-paused .fp-track { animation-play-state: paused; }
@keyframes fp-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-50% - 15px), 0); } }

/* ---------- the phone ---------- */
.ph {
    position: relative;
    flex: none;
    width: 206px;
    height: 432px;
    padding: 7px;
    border-radius: 40px;
    background: linear-gradient(150deg, #4A4E55 0%, #1C1D20 22%, #2A2C30 60%, #45484E 100%);
    box-shadow:
        inset 0 0 0 1.2px rgba(255, 255, 255, 0.28),
        inset 0 0 0 3px #0A0A0B,
        0 2px 0 rgba(255, 255, 255, 0.05),
        0 30px 50px -22px rgba(6, 22, 70, 0.75),
        0 10px 20px -10px rgba(6, 22, 70, 0.5);
}
.ph::before, .ph::after {                  /* side buttons */
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2B2D31, #5A5E66);
}
.ph::before { left: -2px; top: 92px; height: 46px; box-shadow: 0 58px 0 #3A3D42; }
.ph::after { right: -2px; top: 120px; height: 70px; }
.ph-screen {
    position: relative;
    height: 100%;
    border-radius: 33px;
    overflow: hidden;
    background: #FFFFFF;
    isolation: isolate;
}
.ph-screen::after {                         /* glass glare */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%);
    pointer-events: none;
    z-index: 3;
}
.ph-status {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 16px 0 24px;
    font: 600 11.5px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: #111;
    background: #FFFFFF;
}
.ph-status svg { height: 9px; width: auto; display: block; }
.ph-status .ic { display: flex; gap: 3px; align-items: center; }
.ph-island {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 56px;
    height: 18px;
    margin-left: -28px;
    border-radius: 12px;
    background: #050505;
    z-index: 4;
}
.ph-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 1220;
    user-select: none;
    -webkit-user-drag: none;
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
    .fp { height: 440px; }
    .fp-text { left: 40px; width: calc(54% - 64px); }
    .fp-title { font-size: 28px; }
    .fp-stage { right: 32px; gap: 22px; }
}

/* ---------- phone layout: stacked ---------- */
@media (max-width: 768px) {
    .fp { height: auto; display: flex; flex-direction: column; }
    .fp-text { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 28px 24px 8px; }
    .fp-badge { font-size: 13.5px; padding: 8px 14px 8px 11px; }
    .fp-title { font-size: 25px; }
    .fp-kicker { font-size: 14px; }
    .fp-meta { font-size: 13px; }
    .fp-stage { position: relative; right: auto; height: 340px; margin-top: 18px; justify-content: center; gap: 18px; overflow: hidden; }
    .fp-col { width: 150px; }
    .ph { width: 150px; height: 314px; padding: 5px; border-radius: 30px; }
    .ph-screen { border-radius: 25px; }
    .ph-status { height: 25px; padding: 1px 14px 0 18px; font-size: 9px; }
    .ph-status svg { height: 7px; }
    .ph-island { width: 40px; height: 13px; margin-left: -20px; top: 6px; }
    .fp-track { gap: 18px; }
    @keyframes fp-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-50% - 9px), 0); } }
}

@media (prefers-reduced-motion: reduce) {
    .fp-track { animation: none; }
    .fp-col:nth-child(2) .fp-track { transform: translate3d(0, -150px, 0); }
}
