html, body {
    margin: 0;
    padding: 0;
    background: #040408;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Full-viewport particle stage. JS pins it until the Summary section docks. */
.sd-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.sd-stage.visible { opacity: 1; }

.sd-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.pt-content {
    position: relative;
    z-index: 2;
    padding: 9em clamp(2em, 8vw, 10em) clamp(6em, 12vh, 10em);
}

/* Steven Donke hero preview */

.sd-preview {
    margin: clamp(4em, 8vh, 7em) 0 0;
    margin-inline: calc(-1 * clamp(2em, 8vw, 10em) + 2em);
    user-select: none;
    opacity: 0;
    translate: 0 -40px;
    transition:
        opacity   0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        translate 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.sd-preview.is-in {
    opacity: 1;
    translate: 0 0;
}

.sd-preview-frame {
    position: relative;
    background: #2a2a2a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.55),
        0 8px 24px -6px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
}

.sd-preview-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #2a2a2a;
    pointer-events: none;
}

.sd-preview-shield {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: default;
}

/* Project title */

.project-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9em;
}

.project-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.6em, 6.4vw, 5.4em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
    white-space: nowrap;
}

.project-heading .letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}

.project-heading .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.6s ease-out;
    transition-delay: calc(var(--i) * 60ms);
}

.project-heading.is-in .letter {
    transform: translateY(0);
    opacity: 1;
}

.project-slogan {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1em, 1.2vw, 1.25em);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.65);
}

.project-slogan .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 0.045s);
}

.project-slogan.is-in .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

/* Description */

.project-desc-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.1em;
    margin-top: clamp(8em, 14vh, 12em);
}

.project-desc-label,
.project-about-label {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2em, 3.4vw, 3em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.project-desc-row .project-desc-label {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.project-desc-row.is-in .project-desc-label {
    opacity: 1;
    transform: translateY(0);
}

.project-desc {
    max-width: 32em;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.project-desc p {
    margin: 0 0 1.4em;
}

.project-desc p:last-child {
    margin-bottom: 0;
}

.project-desc .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.028s + 0.3s);
}

.project-desc-row.is-in .project-desc .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

/* About + meta */

.project-about-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(3em, 8vw, 8em);
    margin-top: clamp(8em, 14vh, 12em);
}

.project-about-col {
    flex: 1 1 32em;
    max-width: 38em;
}

.project-about {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1.2em;
}

.project-about p {
    margin: 0 0 1.4em;
}

.project-about p:last-child {
    margin-bottom: 0;
}

.project-about .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.028s);
}

.project-about-row.is-in .project-about .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

.project-about-label,
.project-meta-label {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-about-row.is-in .project-about-label,
.project-about-row.is-in .project-meta-label {
    opacity: 1;
    transform: translateY(0);
}

.project-meta-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2em;
    min-width: 14em;
}

.project-meta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7em;
    text-align: right;
}

.project-meta-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
        color     0.25s ease;
}

.project-meta-link:hover {
    color: #b89cff;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.project-about-row.is-in .project-meta-link {
    opacity: 1;
    transform: translateY(0);
}

.project-meta-label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(0.78em, 0.9vw, 0.9em);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.7em;
}

.project-meta-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: flex-end;
}

.project-meta-chips li,
.project-meta-chips > span {
    display: inline-flex;
    align-items: center;
    padding: 0.45em 1em;
    border-radius: 999px;
    border: 1px solid rgba(138, 103, 255, 0.4);
    background: rgba(138, 103, 255, 0.14);
    font-size: 0.85em;
    color: #c9b5ff;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.08s + 0.25s);
}

.project-about-row.is-in .project-meta-chips li,
.project-about-row.is-in .project-meta-chips > span {
    opacity: 1;
    transform: translateY(0);
}

/* Bento grid */

.project-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 12.5em;
    gap: clamp(0.9em, 1.4vw, 1.4em);
    margin-top: clamp(10em, 17vh, 14em);
}

.bento-box {
    opacity: 0;
    translate: var(--tx, 0px) var(--ty, 40px);
    transition:
        opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1),
        translate 1.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}

.bento-box.is-in {
    opacity: 1;
    translate: 0 0;
}

/* SD layout is different from HPS */
.bento--a { --tx: -70px; --ty:  40px; --delay: 0.00s; } /* bottom-left   */
.bento--b { --tx:  80px; --ty:   0px; --delay: 0.10s; } /* right         */
.bento--c { --tx: -80px; --ty:   0px; --delay: 0.25s; } /* left          */
.bento--d { --tx:   0px; --ty: -60px; --delay: 0.18s; } /* top           */
.bento--e { --tx:  80px; --ty:   0px; --delay: 0.30s; } /* right         */
.bento--f { --tx:   0px; --ty:  70px; --delay: 0.35s; } /* bottom        */
.bento--g { --tx:  70px; --ty:  40px; --delay: 0.42s; } /* bottom-right  */

.bento-stat-num,
.bento-stat-label,
.bento-image-caption,
.bento-eyebrow,
.bento-claim-text,
.bento-text p {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--delay, 0s) + 0.95s);
}

.bento-stat-label,
.bento-claim-text {
    transition-delay: calc(var(--delay, 0s) + 1.15s);
}

.bento-box.is-in .bento-stat-num,
.bento-box.is-in .bento-stat-label,
.bento-box.is-in .bento-image-caption,
.bento-box.is-in .bento-eyebrow,
.bento-box.is-in .bento-claim-text,
.bento-box.is-in.bento-text p {
    opacity: 1;
    transform: translateY(0);
}

.bento-stat-label.has-words,
.bento-text p.has-words {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.bento-box .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--delay, 0s) + 0.95s + var(--i, 0) * 0.045s);
}

.bento-box.is-in .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

.bento-box {
    position: relative;
    border-radius: 1.3em;
    overflow: hidden;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.2em, 1.8vw, 1.9em);
}

/* 6-col grid, 4 rows */
.bento--a { grid-column: span 4; grid-row: span 2; }
.bento--b { grid-column: span 2; grid-row: span 2; }
.bento--c { grid-column: span 2; grid-row: span 1; }
.bento--d { grid-column: span 2; grid-row: span 1; }
.bento--e { grid-column: span 2; grid-row: span 1; }
.bento--f { grid-column: span 4; grid-row: span 1; }
.bento--g { grid-column: span 2; grid-row: span 1; }

.bento-stat {
    justify-content: space-between;
}

.bento-stat--purple {
    background: linear-gradient(145deg, #6f4cff 0%, #4a2bd6 100%);
    border-color: rgba(255, 255, 255, 0.14);
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6em;
}

.bento-stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2em, 3.6vw, 3.6em);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.bento-stat-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85em, 0.95vw, 0.95em);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
    max-width: 14em;
}

.bento-stat--purple .bento-stat-label {
    color: rgba(255, 255, 255, 0.88);
}

.bento--c {
    justify-content: flex-end;
    gap: 0.7em;
}
.bento--c .bento-stat-num {
    margin-top: 0.4em;
}
.bento--c .bento-stat-label {
    align-self: flex-end;
    text-align: right;
    max-width: 14em;
}

/* SD wordmark logo tile */
.bento-logo {
    padding: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a10;
}

.bento-logo-mark {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(2.4em, 4vw, 3.6em);
    font-weight: 600;
    color: #C9A24D;
    letter-spacing: 0.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.bento-logo-line {
    width: 0.06em;
    height: 1.4em;
    background: #C9A24D;
    margin: 0 0.35em;
    opacity: 0.9;
    display: inline-block;
}

.bento-image {
    padding: 0;
    background: #0b0b11;
    position: relative;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder: diagonal lilac stripes with a dashed border */
.bento-image--placeholder {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(138, 103, 255, 0.05) 0px,
            rgba(138, 103, 255, 0.05) 14px,
            rgba(138, 103, 255, 0.10) 14px,
            rgba(138, 103, 255, 0.10) 28px
        ),
        #0e0e16;
    border: 1px dashed rgba(138, 103, 255, 0.3);
    display: grid;
    place-items: center;
    padding: 1em;
}

.bento-placeholder-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.75em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 180, 255, 0.55);
}

.bento-image-caption {
    position: absolute;
    right: 1.6em;
    top: 50%;
    transform: translateY(-50%);
    max-width: 18em;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(1em, 1.2vw, 1.2em);
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 1;
}

.bento-claim {
    background:
        linear-gradient(135deg, rgba(10, 10, 16, 0.88) 0%, rgba(10, 10, 16, 0.55) 45%, rgba(10, 10, 16, 0.25) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(138, 103, 255, 0.28) 0%, transparent 60%),
        url("../images/geldlaptop.png") center/cover no-repeat,
        #0a0a10;
    border-color: rgba(138, 103, 255, 0.22);
    justify-content: flex-end;
    gap: 0.6em;
}

/* Claim is the hero tile in SD layout (4x2), so it gets more room */
.bento--a.bento-claim .bento-claim-text {
    font-size: clamp(2em, 3.4vw, 3.4em);
    max-width: 14em;
}

.bento-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.72em;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(200, 180, 255, 0.65);
}

.bento-claim-text {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6em, 2.3vw, 2.3em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.bento-text {
    background: rgba(138, 103, 255, 0.14);
    border-color: rgba(138, 103, 255, 0.28);
    justify-content: center;
}

.bento-text p {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.1vw, 1.1em);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.bento-text strong {
    font-weight: 500;
    color: #d9c9ff;
}

@media (max-width: 900px) {
    .project-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 10em;
    }
    .bento--a,
    .bento--b,
    .bento--c,
    .bento--d,
    .bento--e,
    .bento--f,
    .bento--g { grid-column: span 2; grid-row: span 1; }
    .bento--a,
    .bento--b,
    .bento--d { grid-row: span 2; }
}

/* Outro */

/* Walkthrough slider */

.project-walkthrough {
    --walkthrough-per-view: 3;
    margin-top: clamp(10em, 17vh, 14em);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4em;
}

.project-walkthrough-label {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2em, 3.4vw, 3em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-walkthrough.is-in .project-walkthrough-label {
    opacity: 1;
    transform: translateY(0);
}

.walkthrough-viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.project-walkthrough.is-in .walkthrough-viewport {
    opacity: 1;
    transform: translateY(0);
}

.walkthrough-track {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.walkthrough-track li {
    flex: 0 0 calc(100% / var(--walkthrough-per-view));
    padding: 0;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
}

.walkthrough-track img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.96);
    transform-origin: center;
    border-radius: 0.9em;
    background: #0a0a10;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .project-walkthrough { --walkthrough-per-view: 2; }
}

@media (max-width: 600px) {
    .project-walkthrough { --walkthrough-per-view: 1; }
}

.project-outro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2em, 4vw, 5em);
    align-items: stretch;
    margin-top: clamp(9em, 16vh, 13em);
    padding-bottom: clamp(6em, 12vh, 10em);
}

.project-outro-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 180, 255, 0.85);
}

/* Testimonial card (left column) */
.project-testimonial {
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid rgba(138, 103, 255, 0.22);
    border-radius: 1.4em;
    padding: clamp(1.6em, 2.4vw, 2.6em);
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    opacity: 0;
    translate: -80px 0;
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        translate 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-outro.is-in .project-testimonial {
    opacity: 1;
    translate: 0 0;
}

.project-testimonial blockquote {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.project-testimonial p {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1.05em, 1.2vw, 1.2em);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
}

.project-testimonial cite {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
    align-self: flex-end;
}

/* Next-project card (right column). Only the arrow is clickable. */
.project-next {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1em;
    padding: clamp(1.6em, 2.4vw, 2.6em);
    border-radius: 1.4em;
    background: linear-gradient(160deg, rgba(138, 103, 255, 0.18) 0%, rgba(138, 103, 255, 0.04) 100%);
    border: 1px solid rgba(138, 103, 255, 0.28);
    color: inherit;
    position: relative;
    overflow: hidden;
    opacity: 0;
    translate: 80px 0;
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        translate 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-outro.is-in .project-next {
    opacity: 1;
    translate: 0 0;
}

.project-next:hover {
    border-color: rgba(138, 103, 255, 0.55);
    transform: translateY(-4px);
}

.project-next-title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2em, 4vw, 3.6em);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.project-next-arrow {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    padding: 0;
    margin: 0;

    align-self: flex-end;
    width: 2.8em;
    height: 2.8em;
    border-radius: 50%;
    background: #0a0a10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    color: #ffffff;
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease;
}

.project-next-arrow:hover {
    background: #8a67ff;
    border-color: #8a67ff;
    transform: rotate(-35deg) scale(1.15);
}

/* Inside reveals: fire after the cards slide in */
.project-outro .project-outro-label {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

.project-outro.is-in .project-outro-label {
    opacity: 1;
    transform: translateY(0);
}

.project-testimonial .outro-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.035s + 0.75s);
}

.project-outro.is-in .project-testimonial .outro-word {
    opacity: 1;
    transform: translateY(0);
}

.project-testimonial cite {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.25s,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.25s;
}
.project-outro.is-in .project-testimonial cite {
    opacity: 1;
    transform: translateY(0);
}

.project-next-title {
    opacity: 0;
    transform: translateY(-32px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s;
}
.project-outro.is-in .project-next-title {
    opacity: 1;
    transform: translateY(0);
}

.project-next-arrow {
    opacity: 0;
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease;
}
.project-outro.is-in .project-next-arrow {
    opacity: 1;
}

@media (max-width: 760px) {
    .project-outro {
        grid-template-columns: 1fr;
    }
}

#footer {
    margin-top: clamp(6em, 12vh, 10em);
}

/* Particle stage fades back on smaller screens so text gets full width. */
@media (max-width: 900px) {
    .sd-stage {
        width: 100vw;
        opacity: 0.35;
    }
    .project-about-row {
        flex-direction: column;
    }
}

/* Mobile fallback image: hidden by default; desktop uses the live iframe. */
.sd-preview-mobile-img {
    display: none;
}

@media (max-width: 768px) {
    /* Particles off on mobile, also skipped in sd.js init. */
    .sd-stage { display: none !important; }

    /* Swap live iframe for the static image on mobile. */
    .sd-preview-frame {
        display: none;
    }
    .sd-preview-mobile-img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 18px;
        box-shadow:
            0 30px 80px -20px rgba(0, 0, 0, 0.55),
            0 8px 24px -6px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Pull the footer closer on mobile. */
    .pt-content {
        padding-bottom: 2em;
    }
    #footer {
        margin-top: clamp(2em, 5vh, 4em);
    }
}

/**
 * @INFO
 * Made by Cevio | https://www.cevio.at
 * @INFO
 */
