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

.heart-stage {
    /* Scroll-pinned until the content docks, then locked in document flow (see hps.js) */
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

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

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

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

.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);
}

/* HPS homepage preview */

.hps-preview {
    margin: clamp(4em, 8vh, 7em) 0 0;
    /* Break out of pt-content's horizontal padding, leave ~2em to viewport edges */
    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;
}

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

.hps-preview-frame {
    position: relative;
    background: #ffffff;
    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);
    /* Cropped tight: only the hps hero (header + carousel) visible */
    aspect-ratio: 16 / 8;
}

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

/* Transparent shield absorbs pointer events that leak through pointer-events:none */
.hps-preview-shield {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: default;
}

/* Project 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;
    text-transform: none;
    color: #ffffff;
}

.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 .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);
}

.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-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 .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-chips li,
.project-meta-chips > span,
.project-meta-link {
    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),
        color     0.25s ease;
    transition-delay: calc(var(--i, 0) * 0.08s + 0.25s);
}
.project-meta-link { transition-delay: 0.45s; }

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

.project-about-col {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    flex: 1 1 auto;
    max-width: 42em;
}

/* Section headings */
.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;
    text-transform: none;
    color: #ffffff;
}

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

.project-about {
    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: left;
}

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

/* Right-side meta sidebar */
.project-meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.5em;
    flex-shrink: 0;
    min-width: 11em;
}

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

/* Decorative lilac chips, non-interactive */
.project-meta-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: flex-end;
    pointer-events: none;
    user-select: none;
}

.project-meta-chips li,
.project-meta-chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.45em 1em;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.82em;
    letter-spacing: 0.02em;
    background: rgba(138, 103, 255, 0.14);
    border: 1px solid rgba(138, 103, 255, 0.4);
    color: #c9b5ff;
    white-space: nowrap;
}

.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;
    text-align: right;
    /* transition declared in the combined reveal rule above */
}

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

/* 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);
}

/* Entry animation: --tx/--ty set direction per tile, --delay staggers them */
.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;
}

/* Per-tile entry direction and delay */
.bento--a { --tx: -80px; --ty:   0px; --delay: 0.00s; } /* from left */
.bento--b { --tx:   0px; --ty: -60px; --delay: 0.10s; } /* from top */
.bento--c { --tx: -80px; --ty:   0px; --delay: 0.20s; } /* from left */
.bento--d { --tx:   0px; --ty:  70px; --delay: 0.15s; } /* from bottom */
.bento--e { --tx:  80px; --ty:   0px; --delay: 0.25s; } /* from right */
.bento--f { --tx: -70px; --ty:  40px; --delay: 0.35s; } /* bottom-left */
.bento--g { --tx:  80px; --ty:  40px; --delay: 0.30s; } /* bottom-right */

/* Inner text fades in after the tile lands */
.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);
}

/* Second line of a pair gets a slight extra delay */
.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);
}

/* `.has-words` skips parent animation; children handle the reveal themselves */
.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 editorial grid layout */
.bento--a { grid-column: span 2; grid-row: span 2; }
.bento--b { grid-column: span 4; grid-row: span 2; }
.bento--c { grid-column: span 2; grid-row: span 1; }
.bento--d { grid-column: span 2; grid-row: span 2; }
.bento--e { grid-column: span 2; grid-row: span 1; }
.bento--f { grid-column: span 2; grid-row: span 1; }
.bento--g { grid-column: span 2; grid-row: span 1; }

/* Purple hero metric tile */
.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);
}

/* Stat tile (40+) */
.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;
}

/* Logo tile using the transparent PNG so the dark background shows through */
.bento-logo {
    padding: 1em;
    display: grid;
    place-items: center;
}

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

/* Full-bleed image tile */
.bento-image {
    padding: 0;
    background: #0b0b11;
}

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

.bento-image {
    position: relative;
}

.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: #0b0b11;
    text-align: right;
    pointer-events: none;
    z-index: 1;
}

/* Dark claim box, visual anchor */
.bento-claim {
    background: #0a0a10;
    border-color: rgba(138, 103, 255, 0.22);
    justify-content: flex-end;
    gap: 0.6em;
}

.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;
}

/* Particle stage above the mission text */
.bento-claim-stage {
    width: 100%;
    flex: 1 1 auto;
    min-height: 6em;
    position: relative;
    margin-bottom: auto;
    /* pointer-events on so hover dispersal can track the cursor */
}

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

/* Light-purple text tile (lila tint) */
.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; }
}

/* 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 {
    /* Break out of pt-content padding for full-viewport slider */
    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 / 10;
    box-sizing: border-box;
}

.walkthrough-track img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slight scale-down to show more of each image without letterboxing */
    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 */

.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) */
.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). Arrow button is the only clickable element */
.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;
}

/* Arrow responds only to its own direct hover, not the card's */
.project-next-arrow:hover {
    background: #8a67ff;
    border-color: #8a67ff;
    transform: rotate(-35deg) scale(1.15);
}

/* Inside reveals fire after the boxes 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;
    }
}

/* Space between the outro and footer. */
#footer {
    margin-top: clamp(6em, 12vh, 10em);
}

/* Fake browser chrome: traffic lights and URL pill */
.hps-preview-bar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: #e9e9ee;
    padding: 0.55em 1em;
    border-bottom: 1px solid #d8d8df;
}

.hps-preview-dot {
    width: 0.75em;
    height: 0.75em;
    border-radius: 50%;
    display: inline-block;
}
.hps-preview-dot--r { background: #ff5f57; }
.hps-preview-dot--y { background: #ffbd2e; }
.hps-preview-dot--g { background: #28c840; }

.hps-preview-url {
    margin-left: 1em;
    background: #ffffff;
    border: 1px solid #d8d8df;
    border-radius: 6px;
    padding: 0.2em 0.9em;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75em;
    color: #6b6b75;
    letter-spacing: 0.01em;
}

.hps-preview-site {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
}

/* Top nav mimicking the white hps header */
.hps-site-header {
    display: flex;
    align-items: center;
    gap: 2.5em;
    padding: 1.4em 2.2em;
    border-bottom: 1px solid #eee;
}

.hps-site-brand {
    display: flex;
    align-items: center;
    gap: 0.6em;
    flex-shrink: 0;
}

.hps-site-brand-mark {
    background: linear-gradient(135deg, #f3a23b, #e6791a);
    color: #fff;
    font-weight: 500;
    font-size: 1.4em;
    width: 1.7em;
    height: 1.7em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    letter-spacing: -0.02em;
}

.hps-site-brand-text {
    font-size: 0.85em;
    line-height: 1.15;
    color: #1a1a1a;
    font-weight: 500;
}

.hps-site-brand-text em {
    font-style: normal;
    font-size: 0.8em;
    color: #8a8a95;
    font-weight: 300;
}

.hps-site-nav {
    display: flex;
    gap: 1.8em;
    flex: 1;
    font-size: 0.72em;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #2a2a2a;
}

.hps-site-cta {
    background: #4a4a4f;
    color: #fff;
    padding: 0.7em 1.3em;
    font-size: 0.72em;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 2px;
}

/* Breadcrumb and search strip */
.hps-site-crumbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 2.2em;
    font-size: 0.75em;
    color: #6b6b75;
    border-bottom: 1px solid #eee;
}

.hps-site-search {
    background: #f5f5f8;
    border: 1px solid #e2e2e8;
    border-radius: 2px;
    padding: 0.35em 0.9em;
    min-width: 14em;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.hps-site-search-placeholder {
    color: #a9a9b3;
    font-size: 0.9em;
}

.hps-site-search::after {
    content: '⌕';
    color: #8a8a95;
    font-size: 0.9em;
    margin-left: 0.6em;
}

/* Dark hero scene with glowing chips, beam lines, and a floating card */
.hps-site-hero {
    position: relative;
    aspect-ratio: 16 / 7.2;
    overflow: hidden;
}

.hps-site-hero-stage {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 35% 60%, #1f2430 0%, #05070d 65%),
        #05070d;
    overflow: hidden;
}

.hps-site-hero-beam {
    position: absolute;
    background: linear-gradient(90deg, transparent, #e6791a 40%, #ffb46b 60%, transparent);
    opacity: 0.55;
    height: 2px;
    filter: blur(0.5px);
}
.hps-site-hero-beam--1 { top: 35%; left: 0; width: 55%; }
.hps-site-hero-beam--2 { top: 58%; left: 20%; width: 45%; transform: rotate(-3deg); }
.hps-site-hero-beam--3 { top: 72%; left: 5%; width: 35%; transform: rotate(2deg); opacity: 0.4; }

.hps-site-hero-chip {
    position: absolute;
    top: 48%;
    left: 32%;
    width: 9%;
    aspect-ratio: 1.2 / 1;
    background: linear-gradient(135deg, #1d2230, #0b0e14);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow:
        0 0 60px 6px rgba(230, 121, 26, 0.35),
        inset 0 0 0 1px rgba(230, 121, 26, 0.2);
}
.hps-site-hero-chip--sm {
    top: 34%;
    left: 18%;
    width: 4%;
    opacity: 0.7;
    box-shadow: 0 0 30px 2px rgba(230, 121, 26, 0.25);
}
.hps-site-hero-chip--xs {
    top: 66%;
    left: 48%;
    width: 3%;
    opacity: 0.5;
    box-shadow: 0 0 24px 2px rgba(230, 121, 26, 0.18);
}

.hps-site-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 2em;
    font-weight: 300;
}
.hps-site-hero-arrow--left { left: 1em; }
.hps-site-hero-arrow--right { right: 1em; }

/* Floating overlay card */
.hps-site-hero-card {
    position: absolute;
    right: 5%;
    bottom: 12%;
    width: min(42%, 30em);
    background: rgba(38, 38, 46, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e8e8ee;
    padding: 1.2em 1.4em;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hps-site-hero-card h3 {
    margin: 0 0 0.55em;
    font-weight: 500;
    font-size: 1em;
    color: #ffffff;
    line-height: 1.3;
}

.hps-site-hero-card p {
    margin: 0 0 1em;
    font-size: 0.7em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.hps-site-hero-btn {
    display: inline-block;
    background: #e6791a;
    color: #fff;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.65em 1.1em;
    border-radius: 3px;
}

@media (max-width: 860px) {
    .hps-site-nav { display: none; }
    .hps-site-hero-card { width: min(70%, 22em); bottom: 8%; right: 6%; }
    .hps-site-hero { aspect-ratio: 16 / 10; }
}

.project-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.8em, 7vw, 6em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
}

/* Mobile fallback image: hidden by default, shown when iframe is hidden. */
.hps-preview-mobile-img {
    display: none;
}

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

    /* Break after "hps" so "SystemTechnik" lands on its own line.
       The heading is built letter-by-letter (.letter-mask wrappers), so we turn
       it into a flex container and force the 4th mask (the space before "SystemTechnik")
       to be a zero-height flex-basis, which wraps the line. */
    .project-heading {
        white-space: normal;
        font-size: clamp(2.4em, 11vw, 3.2em);
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
    .project-heading .letter-mask:nth-child(4) {
        flex-basis: 100%;
        width: 100%;
        height: 0;
        overflow: hidden;
    }

    .pt-content {
        padding: 7em 1.4em 0;
    }

    /* Swap the live iframe for the static fallback on mobile. */
    .hps-preview-frame {
        display: none;
    }
    .hps-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);
    }

    /* About row stacks vertically: heading and text on top, meta block below. */
    .project-about-row {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5em;
    }
    .project-meta-col {
        align-items: flex-start;
        min-width: 0;
    }
    .project-meta-block {
        align-items: flex-start;
        text-align: left;
    }
    .project-meta-chips {
        justify-content: flex-start;
    }
    .project-meta-link {
        text-align: left;
    }

    /* Long words like "Vermögensberatung" overflow on narrow screens,
       so scale down and allow breaks to keep the title inside the card. */
    .project-next-title {
        font-size: clamp(1.6em, 7vw, 2.4em);
        word-break: break-word;
        hyphens: auto;
    }

    /* Extra space before the footer on mobile. */
    #footer {
        margin-top: clamp(8em, 18vh, 12em);
    }
}

.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;
}

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