/*--------------------------------------------------------------
# NCDT Project Page  (loads AFTER main.css; everything is scoped
# under body.project-page so the home page is never affected)
# Reuses theme variables from main.css:
#   --accent-color, --heading-color, --gradient-primary, --shadow-*
--------------------------------------------------------------*/

.project-page {
    --pp-radius: 20px;
    --pp-muted: #64748b;
    --pp-border: rgba(93, 87, 244, 0.12);
    --pp-tint: rgba(93, 87, 244, 0.08);
    --pp-green: #10b981;
    --pp-red: #ef4444;
}

/* ---------- reading progress bar ---------- */
.pp-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    z-index: 9999;
    background: var(--gradient-accent);
    transition: width 0.1s linear;
}

/* ---------- section scaffolding (overrides main.css clashes) ---------- */
.project-page .pp-section {
    padding: 90px 0;
    scroll-margin-top: 90px;
}

.project-page .section-title {
    margin: 0 0 50px;
    padding-bottom: 0;
    color: var(--heading-color);
}

.project-page .section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.25;
    font-weight: 700;
    padding-bottom: 22px;
    margin-bottom: 16px;
    display: inline-block;
}

.project-page .section-title h2::before {
    display: none;
}

.project-page .section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.project-page .section-title p {
    display: block;
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--pp-muted);
}

.pp-subheading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 70px 0 30px;
}

/* ---------- header tweaks for the longer in-page menu ---------- */
@media (min-width: 1200px) {

    .project-page .navmenu a,
    .project-page .navmenu a:focus {
        font-size: 15.5px;
        padding: 18px 11px;
    }

    .project-page .navmenu li:last-child a {
        padding-right: 11px;
    }
}

/* ---------- hero ---------- */
.project-page .project-hero {
    min-height: auto;
    padding: 170px 0 150px;
}

.project-page .project-hero .hero-title {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.25;
    margin-bottom: 0;
}

.project-page .project-hero .badge-text {
    font-size: 1.05rem;
}

.project-page .project-hero .hero-description {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: 1.6rem auto 2.2rem;
    max-width: 820px;
}

.pp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ---------- buttons ---------- */
.pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}

.pp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.pp-btn-light {
    background: #fff;
    color: var(--accent-color);
}

.pp-btn-light:hover {
    background: #fff;
    color: var(--accent-color);
}

.pp-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.pp-btn-ghost:hover {
    background: #fff;
    color: var(--accent-color);
}

.pp-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.pp-btn-primary:hover {
    color: #fff;
}

/* ---------- quick-facts strip ---------- */
.pp-stats-wrap {
    position: relative;
    z-index: 5;
    margin-top: -75px;
}

.pp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--pp-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.pp-stat {
    padding: 26px 22px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.pp-stat+.pp-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--pp-border);
}

.pp-stat i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

.pp-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pp-muted);
}

.pp-stat strong {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    color: var(--heading-color);
}

/* ---------- cards ---------- */
.pp-card {
    position: relative;
    background: #fff;
    border-radius: var(--pp-radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--pp-border);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
}

.pp-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.pp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.pp-card:hover::before {
    transform: scaleX(1);
}

.pp-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.pp-card p {
    color: #475569;
    line-height: 1.75;
}

.pp-card-accent {
    background: linear-gradient(160deg, #ffffff 0%, #f3f2ff 100%);
}

.pp-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    margin-bottom: 20px;
}

.pp-icon-green {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.pp-icon-red {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* ---------- lists ---------- */
.pp-checklist,
.pp-numbered {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 9px 0;
    color: #475569;
    line-height: 1.55;
}

.pp-checklist li i {
    margin-top: 3px;
    color: var(--pp-green);
}

.pp-card-accent .pp-checklist li i {
    color: var(--pp-red);
}

.pp-checklist-muted li i {
    color: #94a3b8;
}

.pp-numbered {
    counter-reset: obj;
}

.pp-numbered li {
    counter-increment: obj;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 9px 0;
    color: #475569;
    line-height: 1.55;
}

.pp-numbered li::before {
    content: counter(obj);
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pp-tint);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- feature rows ---------- */
.pp-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    border: 1px solid var(--pp-border);
    box-shadow: var(--shadow-light);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.pp-feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.pp-feature-icon {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    background: var(--pp-tint);
    transition: background 0.35s, color 0.35s;
}

.pp-feature:hover .pp-feature-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.pp-feature h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pp-feature p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 0.95rem;
}

/* ---------- technology chips ---------- */
.pp-tech-group {
    margin-bottom: 24px;
}

.pp-tech-group h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp-tech-group h6 i {
    color: var(--accent-color);
}

.pp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pp-chip {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    background: var(--pp-tint);
    border: 1px solid var(--pp-border);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.pp-chip:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- media (screenshots / architecture) ---------- */
.pp-media {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef0ff, #f6f0ff);
    border: 1px solid var(--pp-border);
}

.pp-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pp-media:hover img {
    transform: scale(1.05);
}

.pp-media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: #a5a3f0;
    font-size: 0.9rem;
}

.pp-media-fallback i {
    font-size: 2.6rem;
}

.pp-media.is-empty {
    pointer-events: none;
    /* nothing to open in the lightbox yet */
}

.pp-caption {
    margin: 14px 0 0;
    font-size: 0.95rem;
    color: var(--pp-muted) !important;
    text-align: center;
}

/* ---------- demo tabs ---------- */
.pp-tabs {
    background: #fff;
    border-radius: var(--pp-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--pp-border);
    padding: 20px;
}

.pp-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}

.pp-tab {
    border: 0;
    background: var(--pp-tint);
    color: var(--accent-color);
    font-family: var(--nav-font);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.pp-tab:hover {
    background: rgba(93, 87, 244, 0.16);
}

.pp-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.pp-tab-panel {
    display: none;
}

.pp-tab-panel.active {
    display: block;
    animation: ppFade 0.5s ease;
}

@keyframes ppFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
}

.pp-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pp-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #4c1d95);
}

.pp-video-placeholder i {
    font-size: 4.2rem;
    color: #fff;
    animation: ppPulse 2s ease-in-out infinite;
}

@keyframes ppPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.pp-live {
    text-align: center;
    padding: 40px 20px;
}

.pp-live .pp-icon {
    margin: 0 auto 20px;
}

.pp-live p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: #475569;
}

/* ---------- timeline ---------- */
.pp-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 56px;
}

.pp-timeline::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), #cbd5e1);
    border-radius: 2px;
}

.pp-tl-item {
    position: relative;
    margin-bottom: 26px;
}

.pp-tl-item:last-child {
    margin-bottom: 0;
}

.pp-tl-dot {
    position: absolute;
    left: -56px;
    top: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 3px solid #cbd5e1;
    color: #94a3b8;
    z-index: 1;
}

.pp-tl-item.done .pp-tl-dot {
    background: var(--pp-green);
    border-color: var(--pp-green);
    color: #fff;
}

.pp-tl-item.active .pp-tl-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    animation: ppRing 2s infinite;
}

@keyframes ppRing {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 87, 244, 0.5);
    }

    100% {
        box-shadow: 0 0 0 16px rgba(93, 87, 244, 0);
    }
}

.pp-tl-item .pp-card {
    padding: 22px 26px;
}

.pp-tl-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    background: var(--pp-tint);
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.pp-tl-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pp-tl-item p {
    margin: 0;
}

/* ---------- metrics ---------- */
.pp-metric {
    text-align: center;
    padding: 30px 16px;
    border-radius: var(--pp-radius);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 14px 34px rgba(102, 126, 234, 0.35);
    height: 100%;
    transition: transform 0.4s;
}

.pp-metric:hover {
    transform: translateY(-6px) scale(1.02);
}

.pp-metric-num {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.pp-metric-label {
    margin-top: 6px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ---------- team ---------- */
.pp-team {
    text-align: center;
}

.pp-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--accent-color);
    background: var(--pp-tint);
    border: 3px solid #fff;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.4s;
}

.pp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-team:hover .pp-avatar {
    transform: scale(1.08);
}

.pp-team h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.pp-team p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pp-muted);
}

/* ---------- call to action ---------- */
.pp-cta {
    position: relative;
    border-radius: 28px;
    padding: 56px 48px;
    color: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
    background: linear-gradient(-45deg, #667eea, #764ba2, #4facfe, #5d57f4);
    background-size: 300% 300%;
    animation: gradientShift 16s ease infinite;
    /* defined in main.css */
    box-shadow: var(--shadow-heavy);
}

.pp-cta::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -90px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.pp-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.pp-cta p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 26px;
}

.pp-cta-actions {
    justify-content: flex-start;
}

.pp-cta-contact {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pp-cta-contact div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

.pp-cta-contact i {
    margin-top: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .pp-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pp-stat:nth-child(3)::before {
        display: none;
    }

    .pp-stat:nth-child(n + 3) {
        border-top: 1px solid var(--pp-border);
    }

    .pp-cta {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        text-align: center;
    }

    .pp-cta-actions {
        justify-content: center;
    }

    .pp-cta-contact {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .project-page .pp-section {
        padding: 60px 0;
    }

    .project-page .project-hero {
        padding: 140px 0 120px;
    }

    .pp-stats {
        grid-template-columns: 1fr;
    }

    .pp-stat+.pp-stat::before {
        display: none;
    }

    .pp-stat:nth-child(n + 2) {
        border-top: 1px solid var(--pp-border);
    }

    .pp-timeline {
        padding-left: 48px;
    }

    .pp-tl-dot {
        left: -48px;
    }

    .pp-card {
        padding: 26px 22px;
    }

    .pp-btn {
        padding: 12px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pp-video-placeholder i,
    .pp-tl-item.active .pp-tl-dot,
    .pp-cta {
        animation: none;
    }
}

/*--------------------------------------------------------------
# Startup / collaboration page additions
--------------------------------------------------------------*/

/* back button */
.pp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 9px 20px;
    border-radius: 50px;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.pp-back:hover {
    background: #fff;
    color: var(--accent-color);
    transform: translateX(-4px);
}

.pp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 26px;
}

.pp-pill {
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* product header cards */
.pp-product {
    height: 100%;
}

.pp-product-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: var(--pp-tint);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

/* BOM grid */
.pp-bom {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 24px 12px;
    height: 100%;
    border: 1px solid var(--pp-border);
    box-shadow: var(--shadow-light);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.pp-bom:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.pp-bom strong {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.pp-bom span {
    font-size: 0.88rem;
    color: var(--pp-muted);
}

.pp-note {
    text-align: center;
    margin: 26px auto 0;
    max-width: 700px;
    color: var(--pp-muted);
}

/* deployment approach cards */
.pp-approach .pp-product-tag {
    background: var(--accent-color);
    color: #fff;
}

.pp-approach-num {
    position: absolute;
    right: 22px;
    top: 14px;
    font-family: var(--heading-font);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(93, 87, 244, 0.08);
}

/* end-to-end flow */
.pp-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 22px;
    align-items: stretch;
}

.pp-flow-group {
    position: relative;
    border-radius: var(--pp-radius);
    padding: 44px 24px 24px;
    background: #fff;
    border: 1px solid var(--pp-border);
    box-shadow: var(--shadow-light);
}

.pp-flow-tag {
    position: absolute;
    top: -16px;
    left: 24px;
    padding: 7px 22px;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-weight: 700;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.pp-flow-sovera .pp-flow-tag {
    background: var(--gradient-accent);
}

.pp-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pp-flow-step {
    text-align: center;
    padding: 18px 10px;
    border-radius: 14px;
    background: var(--pp-tint);
    transition: transform 0.3s, background 0.3s;
}

.pp-flow-step:hover {
    transform: translateY(-5px);
    background: rgba(93, 87, 244, 0.14);
}

.pp-flow-step i {
    font-size: 1.7rem;
    color: var(--accent-color);
}

.pp-flow-step b {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--pp-muted);
    margin: 4px 0 2px;
}

.pp-flow-step h5 {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0;
}

.pp-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    animation: ppNudge 1.6s ease-in-out infinite;
}

@keyframes ppNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

/* external link warning modal */
.pp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pp-modal.open {
    display: flex;
}

.pp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.pp-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    padding: 36px 34px 30px;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    animation: ppPop 0.35s ease;
}

@keyframes ppPop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pp-modal-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #b45309;
    background: #fef3c7;
}

.pp-modal-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pp-modal-box p {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 12px;
}

.pp-modal-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--accent-color) !important;
    background: var(--pp-tint);
    word-break: break-all;
}

.pp-modal-note {
    font-size: 0.88rem;
}

.pp-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.pp-btn-outline {
    background: #fff;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.pp-btn-outline:hover {
    background: var(--pp-tint);
    color: var(--accent-color);
    box-shadow: none;
}

@media (max-width: 991px) {
    .pp-flow {
        grid-template-columns: 1fr;
    }

    .pp-flow-arrow {
        transform: rotate(90deg);
        animation: none;
    }
}

@media (max-width: 575px) {
    .pp-flow-steps {
        grid-template-columns: 1fr;
    }

    .pp-modal-box {
        padding: 30px 22px 24px;
    }
}

.project-page .hero-title .pp-subtitle {
    display: block;
    margin-top: 0.6rem;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
}