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) 0;
}

/* Steven Donke CRM preview: replica of the dashboard in an iframe */

.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: #181818;
    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: #181818;
    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;
    /* Wraps between words on narrow screens; words stay whole (see sdcrm.js). */
    white-space: normal;
}

.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;
}

/* CRM layout: every tile slides in from the side it sits on */
.bento--a { --tx: -70px; --ty:   0px; --delay: 0.00s; } /* top-left claim      */
.bento--b { --tx:  80px; --ty:   0px; --delay: 0.10s; } /* tall image, right   */
.bento--c { --tx: -80px; --ty:   0px; --delay: 0.20s; } /* purple stat, left   */
.bento--d { --tx:   0px; --ty: -50px; --delay: 0.28s; } /* stat, middle        */
.bento--e { --tx:   0px; --ty:  50px; --delay: 0.34s; } /* text, middle        */
.bento--f { --tx: -70px; --ty:  50px; --delay: 0.40s; } /* logo, bottom-left   */
.bento--g { --tx:  70px; --ty:  50px; --delay: 0.46s; } /* wide image, bottom  */

.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:
   a a a a b b
   c c d d b b
   c c e e b b
   f f g g g g */
.bento--a { grid-column: 1 / 5; grid-row: 1 / 2; }
.bento--b { grid-column: 5 / 7; grid-row: 1 / 4; }
.bento--c { grid-column: 1 / 3; grid-row: 2 / 4; }
.bento--d { grid-column: 3 / 5; grid-row: 2 / 3; }
.bento--e { grid-column: 3 / 5; grid-row: 3 / 4; }
.bento--f { grid-column: 1 / 3; grid-row: 4 / 5; }
.bento--g { grid-column: 3 / 7; grid-row: 4 / 5; }

.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);
}

/* SD wordmark logo tile, same mark as the CRM itself */
.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;
}

/* Tall photo: the people sit in the lower half, keep them in frame when cropped */
.bento--b img {
    object-position: center 68%;
}

/* Wide banner: keep the heads of the wooden figures and the heart in frame */
.bento--g img {
    object-position: center 24%;
}

/* 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%),
        #0a0a10;
    border-color: rgba(138, 103, 255, 0.22);
    justify-content: flex-end;
    gap: 0.6em;
}

/* Claim spans four columns, so it gets a larger headline */
.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: auto / span 2; grid-row: auto / span 1; }
    .bento--b { grid-row: auto / 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);
}

/* Small hint right of the title: the screenshots come from the demo copy */
.walkthrough-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em 0.9em;
}

.walkthrough-note {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9em, 1vw, 1em);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.project-walkthrough.is-in .walkthrough-note {
    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,
.walkthrough-track video {
    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);
}

.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;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.7em;
    align-self: flex-end;
}

.testimonial-avatar {
    height: 2.2em;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* 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-title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    /* Smaller than on SD: "SD Vermögensberatung" is one long word and ran out of the half-width card */
    font-size: clamp(1.6em, 3.3vw, 3.6em);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    /* Der Titel kommt aus der Projektseite; lange Namen wie "Hausmeisterservice" sollen umbrechen statt überlaufen */
    overflow-wrap: break-word;
    hyphens: auto;
}

.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 .testimonial-author {
    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 .testimonial-author {
    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);
    }
}

/* Small up-right arrow to the left of the live-site link. */
.project-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.project-meta-link::after {
    content: "";
    width: 0.9em;
    height: 0.9em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.project-meta-link:hover::after {
    transform: translate(2px, -2px);
}

/* CRM screenshots and clips are 16:9, so the frame matches and nothing is cut. */
.walkthrough-track li {
    aspect-ratio: 16 / 9;
}
.walkthrough-track img,
.walkthrough-track video {
    object-position: left top;
}

/* Section labels are real h2 headings for search engines. Reset what the
   browser adds to h2, so they look exactly like the former spans. */
.project-walkthrough-label,
.project-outro-label {
    margin: 0;
}
.project-about-label {
    display: inline;
}

/* "Das System im Detail" opens the pop-up. Written as plain text with the same
   up-right arrow as the link to the live site, so both read alike. */
.project-about-more {
    appearance: none;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    margin-top: 2.2em;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
        color     0.25s ease;
}

.project-about-row.is-in .project-about-more {
    opacity: 1;
    transform: translateY(0);
}

.project-about-more:hover {
    color: #b89cff;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.project-about-more::after {
    content: "";
    width: 0.9em;
    height: 0.9em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.project-about-more:hover::after {
    transform: translate(2px, -2px);
}

/* The pop-up itself. <dialog> brings focus handling and Escape along. */
.sys-modal {
    width: min(74em, 94vw);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.3em;
    background: rgba(10, 10, 15, 0.96);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
    color: #fff;
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-modal.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sys-modal::backdrop {
    background: rgba(4, 4, 8, 0.72);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sys-modal.is-open::backdrop {
    opacity: 1;
}

/* Scrollbar gutter stays reserved while the page is locked, so nothing jumps. */
html.sys-modal-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.sys-modal-panel {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.sys-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    flex: 0 0 auto;
    padding: clamp(1.5em, 2.4vw, 2.2em) clamp(1.4em, 2.6vw, 2.6em) 1.3em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sys-modal-title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5em, 2.6vw, 2.1em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.sys-modal-close {
    appearance: none;
    cursor: pointer;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.8em;
    height: 2.8em;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    /* Grid plus line-height 0 keeps the cross on the exact centre, so turning
       it on hover does not make it wander. */
    line-height: 0;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sys-modal-close svg {
    display: block;
    width: 1.3em;
    height: 1.3em;
}

.sys-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: rotate(90deg);
}

.sys-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(1.5em, 2.6vw, 2.2em) clamp(1.4em, 2.6vw, 2.6em) clamp(2em, 3vw, 2.8em);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.06em);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sys-modal-body::-webkit-scrollbar {
    width: 10px;
}

.sys-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.sys-lead {
    margin: 0 0 2.6em;
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

/* Keyword tiles at the top, same family as the bento boxes on the page. */
.sys-hl {
    list-style: none;
    margin: 0 0 2.6em;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75em;
}

.sys-hl li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4em;
    padding: 0.8em 1em;
    border-radius: 1em;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    overflow-wrap: break-word;
    hyphens: manual;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-modal.is-open .sys-hl li {
    opacity: 1;
    transform: none;
}

.sys-hl li:nth-child(1)  { transition-delay: 0.10s; }
.sys-hl li:nth-child(2)  { transition-delay: 0.13s; }
.sys-hl li:nth-child(3)  { transition-delay: 0.16s; }
.sys-hl li:nth-child(4)  { transition-delay: 0.19s; }
.sys-hl li:nth-child(5)  { transition-delay: 0.22s; }
.sys-hl li:nth-child(6)  { transition-delay: 0.25s; }
.sys-hl li:nth-child(7)  { transition-delay: 0.28s; }
.sys-hl li:nth-child(8)  { transition-delay: 0.31s; }
.sys-hl li:nth-child(9)  { transition-delay: 0.34s; }
.sys-hl li:nth-child(10) { transition-delay: 0.37s; }
.sys-hl li:nth-child(11) { transition-delay: 0.40s; }
.sys-hl li:nth-child(12) { transition-delay: 0.43s; }

@media (max-width: 900px) {
    .sys-hl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sys-hl {
        gap: 0.55em;
    }
    .sys-hl li {
        min-height: 3.9em;
        padding: 0.8em 0.75em;
        font-size: 0.95em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sys-hl li {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.sys-sec + .sys-sec {
    margin-top: 2.4em;
}

.sys-sec h3 {
    margin: 0 0 0.75em;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.15em;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
}

.sys-sec p {
    margin: 0 0 1em;
}

.sys-sec p:last-child {
    margin-bottom: 0;
}

/* Focus lands on the scroll area, not on the close button, so opening by mouse
   does not paint a ring. Keyboard users still get one on every control. */
.sys-modal-body:focus,
.sys-modal-body:focus-visible {
    outline: none;
}

.project-about-more:focus-visible,
.sys-modal-close:focus-visible {
    outline: 2px solid rgba(138, 103, 255, 0.9);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .sys-modal,
    .sys-modal-panel {
        max-height: 90vh;
    }
    .sys-modal {
        width: 94vw;
        border-radius: 1em;
    }
}

/**
 * @INFO
 * Made by Cevio | https://www.cevio.at
 * @INFO
 */
