    /* Tailwind is enqueued separately in functions.php */

/* Publica Play — display font for headings, nav & footer links */
@font-face {
    font-family: "Publica Play";
    src: url("../fonts/fonts/PublicaPlay-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Galano";
    src: url("../fonts/fonts/GalanoGrotesque-Regular.woff2") format("woff2"),
         url("../fonts/fonts/GalanoGrotesque-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Galano";
    src: url("../fonts/fonts/GalanoGrotesque-Bold.woff2") format("woff2"),
         url("../fonts/fonts/GalanoGrotesque-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Regular.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Medium.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Semibold.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base typography */
body,
.font-sans {
    font-family: "General Sans", "figtree", sans-serif;
    background: #1d0446;
    color: #c5aafb;
}

/* Site shell — content never grows past 1900px */
:root {
    --site-max: 1900px;
    --site-w: min(100vw, var(--site-max));
}

.site-shell {
    width: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
}

/* Display font: headings, navigation & footer links */
.font-heading,
h1, h2, h3, h4,
#mobileMenu a,
#mainFooter a {
    font-family: "Galano", "Publica Play", "figtree", sans-serif;
}

.nav-link,
#connectBtn,
.online-status__label {
    font-family: "General Sans", "figtree", sans-serif;
}

/* Section dividers — subtle lavender rules on dark */
main {
    border-top: none;
    background: #1d0446;
}

main > section + section {
    border-top: 1px solid rgba(197, 170, 251, 0.12);
}

/* Scroll wave — K95-style WebGL distortion on content images */
#kh-wave-canvas {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#kh-wave-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.kh-wave-media {
    position: relative;
    overflow: hidden;
}

img.kh-wave {
    opacity: 1;
}

img.kh-wave.is-wave-ready {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    img.kh-wave.is-wave-ready {
        opacity: 1 !important;
    }

    #kh-wave-canvas {
        display: none !important;
    }
}

/* Kraakhelder scroll type — ScrollTrigger pin (Lenis-safe via scrollerProxy) */
.kraakhelder-type {
    /* Scroll progress 0→1, written by JS each frame (tickKraakhelderTypeScroll) */
    --kh-p: 0;
    --kh-ink: #c5aafb;
    position: relative;
    overflow-x: clip;
    background: #1d0446;
}

.kraakhelder-type__scroll {
    position: relative;
    z-index: 1;
}

.kraakhelder-type__stage {
    position: relative;
    z-index: 1;
    cursor: crosshair;
    display: grid;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 2dvh max(4vw, env(safe-area-inset-left, 0px)) 2dvh max(4vw, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

/* Pin spacer from GSAP — match section tone, avoid layout flash */
.kraakhelder-type .pin-spacer {
    background: #1d0446;
}

.kraakhelder-type__line {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

.kraakhelder-type__line--kraak {
    justify-content: flex-start;
}

.kraakhelder-type__line--helder {
    justify-content: flex-end;
}

/* "helder" — outlined type that fills with ink as the words converge */
.kraakhelder-type__line--helder .kraakhelder-type__word {
    -webkit-text-stroke: 0.012em rgba(197, 170, 251, 0.95);
    paint-order: stroke fill;
    color: rgba(197, 170, 251, calc(var(--kh-p, 1) * var(--kh-p, 1)));
}

/* Meta labels — editorial small caps pinned to the stage corners */
.kraakhelder-type__meta {
    position: absolute;
    left: max(4vw, env(safe-area-inset-left, 0px));
    right: max(4vw, env(safe-area-inset-right, 0px));
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: clamp(0.6875rem, 1vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--kh-ink, #c5aafb);
    opacity: calc(0.15 + var(--kh-p, 1) * 0.85);
    pointer-events: none;
}

.kraakhelder-type__meta--top {
    top: clamp(1.25rem, 4vh, 2.75rem);
}

.kraakhelder-type__meta--bottom {
    bottom: clamp(1.25rem, 4vh, 2.75rem);
}

/* Center rule — draws outward as the two lines meet */
.kraakhelder-type__rule {
    position: absolute;
    top: 50%;
    left: max(4vw, env(safe-area-inset-left, 0px));
    right: max(4vw, env(safe-area-inset-right, 0px));
    height: 1px;
    z-index: 2;
    background: rgba(197, 170, 251, 0.8);
    transform: scaleX(var(--kh-p, 1));
    transform-origin: center;
    opacity: var(--kh-p, 1);
    pointer-events: none;
}

.kraakhelder-type__word {
    display: inline-block;
    font-family: "Galano", "Publica Play", "figtree", sans-serif;
    font-size: min(72vw, 34dvh);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #c5aafb;
    white-space: nowrap;
    padding: 0.04em 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (min-width: 768px) {
    .kraakhelder-type__stage {
        padding: 3vh 0;
    }

    .kraakhelder-type__word {
        font-size: min(90vw, 60vh);
        line-height: 1;
        letter-spacing: 0;
    }
}

/* Per-letter spans — gap via margin on letters; slide on __track (Firefox-safe) */
.kraakhelder-type__word--split {
    display: inline-block;
    white-space: nowrap;
}

.kraakhelder-type__track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    /* Settle on the finished state; beats the JS-written inline custom property */
    .kraakhelder-type {
        --kh-p: 1 !important;
    }
}

.kraakhelder-type__letter {
    display: inline-block;
    line-height: inherit;
    transform-origin: 50% 60%;
    will-change: transform;
}

.kraakhelder-type__line--kraak .kraakhelder-type__track {
    transform-origin: left center;
}

.kraakhelder-type__line--helder .kraakhelder-type__track {
    transform-origin: right center;
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 12rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.04em;
    max-width: 32ch;
    margin-bottom: 2.5rem;
}

/* ─── Home hero — Home.pdf / Figma artboard 1920×1705 ─── */
/*
 * Visual (arcs + card + figure + glow) = images/hero-visual.png
 * Overlay type measured from PDF text boxes:
 *   title Galano Bold 120 / lh 99 @ x62, y396.6
 *   mark 1747,396 98×101
 *   lede General Sans 30 / ~33 @ x1223, y623.5
 *   nav: logo 72.5,40.8 · links 18px · pill 1703,51 159×46
 */
.home-opener {
    --home-hero-bg: #1d0446;
    --home-hero-ink: #c5aafb;
    background: var(--home-hero-bg);
    overflow-x: clip;
}

.home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
    color: var(--home-hero-ink);
    background: var(--home-hero-bg);
}

.home-hero__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1705;
    overflow: hidden;
}

.home-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    user-select: none;
    pointer-events: none;
}

.home-hero__copy {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/* Title — x62, first-line top 396.6, 120px / lh 99, ls -0.01em */
.home-hero__title {
    position: absolute;
    left: 3.2291667%; /* 62/1920 */
    top: 23.261%; /* 396.6/1705 */
    margin: 0;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: calc(120 / 1920 * var(--site-w));
    font-weight: 700;
    line-height: 0.825; /* 99/120 */
    letter-spacing: -0.01em;
    color: var(--home-hero-ink);
    pointer-events: auto;
}

/* Arrow — 1747,396 · 98×101 */
.home-hero__mark {
    position: absolute;
    left: 90.9895833%; /* 1747/1920 */
    top: 23.2258065%; /* 396/1705 */
    width: calc(98 / 1920 * 100%);
    height: auto;
    display: block;
}

/* Lede — x1223, y623.5, 30px SemiBold white */
.home-hero__lede {
    position: absolute;
    left: 63.6979167%; /* 1223/1920 */
    top: 36.569%; /* 623.5/1705 */
    margin: 0;
    max-width: 33.5%; /* ~643/1920 */
    font-family: "General Sans", "figtree", sans-serif;
    font-size: calc(30 / 1920 * var(--site-w));
    font-weight: 600;
    line-height: 1.09; /* measured line step ~32.7/30 */
    letter-spacing: 0.01em;
    color: #fff;
    pointer-events: auto;
}

/* ── Fixed header on home — matches artboard nav exactly ── */
body.home #mainHeader .home-nav,
body.front-page #mainHeader .home-nav {
    width: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 3.2291667%;
    padding-right: 3.2291667%;
    box-sizing: border-box;
    align-items: flex-start;
}

body.home #mainHeader,
body.front-page #mainHeader {
    padding: 0;
}

/* Logo — 72.5,40.8 h46.7 (design x72.5 incl. 10.5px optical inset vs gutter 62) */
body.home #navLogoImg,
body.front-page #navLogoImg {
    height: calc(46.704 / 1920 * var(--site-w));
    margin-top: calc(40.827 / 1920 * var(--site-w));
    margin-left: calc(10.532 / 1920 * var(--site-w));
}

/* Right group — pill top y51, links center ≈ pill center y74 */
body.home #mainHeader .home-nav > .hidden,
body.front-page #mainHeader .home-nav > .hidden {
    margin-top: calc(51 / 1920 * var(--site-w));
    gap: calc(45 / 1920 * var(--site-w));
    align-items: center;
}

body.home #mainHeader #navLinks,
body.front-page #mainHeader #navLinks {
    gap: calc(42 / 1920 * var(--site-w));
}

body.home #mainHeader .nav-link,
body.front-page #mainHeader .nav-link {
    font-family: "General Sans", "figtree", sans-serif;
    font-size: calc(18 / 1920 * var(--site-w));
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 1;
}

body.home #connectBtn,
body.front-page #connectBtn {
    height: calc(46 / 1920 * var(--site-w));
    padding-left: calc(28 / 1920 * var(--site-w));
    padding-right: calc(28 / 1920 * var(--site-w));
    border-radius: 9999px;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: calc(16 / 1920 * var(--site-w));
    font-weight: 600;
    background: #c5aafb;
    color: #452776;
}

/* Mobile: stacked flow */
@media (max-width: 767px) {
    .home-hero__stage {
        aspect-ratio: auto;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .home-hero__visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .home-hero__copy {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 6.5rem 1.25rem 2rem;
        z-index: 4;
        min-height: 55svh;
    }

    .home-hero__title {
        position: relative;
        left: auto;
        top: auto;
        font-size: clamp(2.6rem, 11.5vw, 3.5rem);
        line-height: 0.9;
    }

    .home-hero__mark {
        position: relative;
        left: auto;
        top: auto;
        width: 3rem;
        align-self: flex-end;
        margin-right: 0.5rem;
    }

    .home-hero__lede {
        position: relative;
        left: auto;
        top: auto;
        max-width: 30ch;
        font-size: clamp(1rem, 4.2vw, 1.2rem);
        line-height: 1.3;
    }

    body.home #mainHeader .home-nav,
    body.front-page #mainHeader .home-nav {
        width: 100%;
        padding: 1.25rem;
        align-items: center;
    }

    body.home #navLogoImg,
    body.front-page #navLogoImg {
        height: 2rem;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__lede,
    .home-hero__mark,
    .home-hero__visual {
        transition: none;
    }
}

/* ─── About — fluid grid (Tailwind-first; only typography helpers) ─── */
.about__title {
    font-family: "Galano", "Publica Play", sans-serif;
}

.about__lede,
.about__col-desc {
    font-family: "General Sans", "figtree", sans-serif;
}

.about__col-title {
    font-family: "Galano", "Publica Play", sans-serif;
}

@media (max-width: 1023px) {
    .about__title br {
        display: none;
    }
}

/* ─── About Section — typography helpers (Tailwind can't parse clamp() in arbitrary values) ─── */
.about-title {
    font-size: clamp(2.75rem, 5vw, 6rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.04em;
    max-width: 32ch;
    margin-bottom: 2.5rem;
}

/* ─── Profile dashboard — glow + highlights ─── */
.profile-dash {
    --pd-ink: #c5aafb;
    --pd-cyan: #7eeae0;
    --pd-pink: #ff9ed2;
    --pd-soft: #e4d4ff;
}

.profile-dash__glow {
    z-index: 0;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform, opacity;
}

.profile-dash__glow--a {
    background: radial-gradient(circle, rgba(197, 170, 251, 0.55) 0%, rgba(197, 170, 251, 0) 70%);
}

.profile-dash__glow--b {
    background: radial-gradient(circle, rgba(126, 234, 224, 0.35) 0%, rgba(126, 234, 224, 0) 70%);
}

.profile-dash__glow--c {
    background: radial-gradient(circle, rgba(255, 158, 210, 0.28) 0%, rgba(255, 158, 210, 0) 70%);
}

.profile-dash__panel {
    position: relative;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197, 170, 251, 0.15);
    transition: border-color 0.4s ease;
}

.profile-dash__panel.is-hot {
    border-top-color: rgba(126, 234, 224, 0.45);
}

.profile-dash__ring-track,
.profile-dash__ring-glow {
    transition: none;
}

.profile-dash__count--glow {
    text-shadow:
        0 0 18px rgba(197, 170, 251, 0.55),
        0 0 36px rgba(126, 234, 224, 0.25);
}

.profile-dash__dot {
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.profile-dash__dot.is-on {
    background-color: var(--pd-ink);
    box-shadow:
        0 0 8px rgba(197, 170, 251, 0.85),
        0 0 16px rgba(126, 234, 224, 0.35);
}

.profile-dash__dot.is-on:nth-child(5n) {
    background-color: var(--pd-cyan);
    box-shadow:
        0 0 8px rgba(126, 234, 224, 0.9),
        0 0 18px rgba(126, 234, 224, 0.4);
}

.profile-dash__dot.is-on:nth-child(7n) {
    background-color: var(--pd-pink);
    box-shadow:
        0 0 8px rgba(255, 158, 210, 0.9),
        0 0 18px rgba(255, 158, 210, 0.4);
}

.profile-dash.is-pulsing .profile-dash__dot.is-on {
    animation: pd-dot-pulse 2.4s ease-in-out infinite;
}

.profile-dash.is-pulsing .profile-dash__dot.is-on:nth-child(3n) {
    animation-delay: 0.35s;
}

.profile-dash.is-pulsing .profile-dash__dot.is-on:nth-child(5n) {
    animation-delay: 0.7s;
}

@keyframes pd-dot-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.18);
        filter: brightness(1.25);
    }
}

.profile-dash__bar-dot {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-dash__bar-dot.is-on {
    background: linear-gradient(90deg, #c5aafb, #7eeae0);
    box-shadow: 0 0 10px rgba(197, 170, 251, 0.65);
}

.profile-dash__bar-dot.is-on:nth-child(4n) {
    background: linear-gradient(90deg, #ff9ed2, #c5aafb);
    box-shadow: 0 0 10px rgba(255, 158, 210, 0.55);
}

/* Education data-dot matrices */
.profile-dash__edata {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.4rem;
}

@media (min-width: 640px) {
    .profile-dash__edata {
        grid-template-columns: repeat(24, minmax(0, 1fr));
        gap: 0.45rem;
    }
}

.profile-dash__edata-dot {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 9999px;
    background-color: rgba(197, 170, 251, 0.15);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.profile-dash__edata-dot.is-on {
    background-color: var(--pd-ink);
    box-shadow:
        0 0 8px rgba(197, 170, 251, 0.85),
        0 0 16px rgba(126, 234, 224, 0.35);
}

.profile-dash__edata-dot.is-on:nth-child(5n) {
    background-color: var(--pd-cyan);
    box-shadow:
        0 0 8px rgba(126, 234, 224, 0.9),
        0 0 16px rgba(126, 234, 224, 0.4);
}

.profile-dash__edata-dot.is-on:nth-child(7n) {
    background-color: var(--pd-pink);
    box-shadow:
        0 0 8px rgba(255, 158, 210, 0.9),
        0 0 16px rgba(255, 158, 210, 0.4);
}

.profile-dash__radar-node {
    filter: drop-shadow(0 0 4px rgba(228, 212, 255, 0.9));
}

.profile-dash__timeline-progress {
    background: linear-gradient(90deg, #c5aafb, #7eeae0, #ff9ed2);
    box-shadow:
        0 0 10px rgba(197, 170, 251, 0.7),
        0 0 22px rgba(126, 234, 224, 0.35);
}

.profile-dash__timeline-item {
    opacity: 0.35;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.profile-dash__timeline-item.is-on {
    opacity: 1;
}

.profile-dash__timeline-item.is-on .profile-dash__timeline-dot {
    background: #c5aafb;
    box-shadow:
        0 0 0 4px rgba(197, 170, 251, 0.18),
        0 0 16px rgba(126, 234, 224, 0.55);
}

.profile-dash__timeline-item.is-on:last-child .profile-dash__timeline-dot {
    background: #7eeae0;
    border-color: #7eeae0;
    box-shadow:
        0 0 0 4px rgba(126, 234, 224, 0.2),
        0 0 18px rgba(126, 234, 224, 0.65);
}

@media (prefers-reduced-motion: reduce) {
    .profile-dash__ring-track,
    .profile-dash__ring-glow {
        stroke-dashoffset: 0 !important;
    }

    .profile-dash__glow {
        animation: none !important;
        opacity: 0.35;
    }
}

/* ─── About Section — legacy editorial layout (kept for tags) ───────── */
.about-section {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.65);
    --about-line: rgba(197, 170, 251, 0.18);
    background: #1d0446;
    color: #c5aafb;
}

.about-section__content {
    max-width: 1900px;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-sans, "figtree", sans-serif);
}

/* Eyebrow — small caps index row */
.about-section__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-ink);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.about-section__eyebrow-index {
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
}

/* Headline — oversized display type, split-line animated */
.about-section__title {
    font-size: clamp(2.5rem, 7vw, 7.25rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--about-ink);
    max-width: 18ch;
    margin: 0 0 clamp(3rem, 7vw, 6rem);
}



/* Intro — roles rail + large lede on a 12-col grid */
.about-section__intro {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

.about-section__roles {
    grid-column: 1 / span 3;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-muted);
}

.about-section__roles li {
    padding-top: 0.7rem;
    border-top: 1px solid var(--about-line);
}

.about-section__desc {
    grid-column: 5 / -1;
    font-size: clamp(1.375rem, 2.4vw, 2.25rem);
    line-height: 1.4;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--about-ink);
    margin: 0;
}

.about-section__desc strong {
    font-weight: 700;
}

/* Services — numbered editorial rows */
.about-section__services {
    border-top: 1px solid var(--about-line);
    margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

.about-section__service {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border-bottom: 1px solid var(--about-line);
    transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section__service:hover {
    padding-left: 0.875rem;
}

.about-section__service-index {
    grid-column: 1 / span 1;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
    padding-top: 0.5rem;
}

.about-section__service-title {
    grid-column: 2 / span 4;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--about-ink);
    margin: 0;
}

.about-section__service-desc {
    grid-column: 7 / -1;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.7;
    color: var(--about-muted);
    max-width: 56ch;
    margin: 0;
}

/* Expertise — label rail + tag cloud */
.about-section__expertise {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
}

.about-section__expertise-label {
    grid-column: 1 / span 3;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
    padding-top: 0.7rem;
    border-top: 1px solid var(--about-line);
    margin: 0;
}

.about-section__expertise .about-section__tags {
    grid-column: 5 / -1;
}

@media (max-width: 767px) {
    .about-section__content {
        padding: 3rem 1.25rem;
    }

    .about-section__eyebrow {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        font-size: 0.6875rem;
    }

    .about-section__title {
        font-size: clamp(2.125rem, 9.5vw, 2.75rem);
        line-height: 0.92;
        max-width: none;
        margin-bottom: 2.5rem;
    }

    .about-section__intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .about-section__roles {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
        font-size: 0.6875rem;
    }

    .about-section__roles li {
        padding-top: 0;
        border-top: none;
    }

    .about-section__desc {
        grid-column: 1 / -1;
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .about-section__services {
        margin-bottom: 3rem;
    }

    .about-section__service {
        grid-template-columns: auto 1fr;
        gap: 0.35rem 1rem;
        padding: 1.5rem 0;
    }

    .about-section__service:hover {
        padding-left: 0;
    }

    .about-section__service-index {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0.35rem;
        font-size: 0.6875rem;
    }

    .about-section__service-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 1.375rem;
    }

    .about-section__service-desc {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .about-section__expertise {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-section__expertise-label {
        grid-column: 1 / -1;
        font-size: 0.6875rem;
    }

    .about-section__expertise .about-section__tags {
        grid-column: 1 / -1;
    }
}

/* ─── SplitText masked lines (shared) ───────────────────
   Each line is clipped by a mask wrapper; with tight line-heights the
   ascenders/descenders poke outside the line box and get cut off.
   Pad the line inside the mask, then pull the mask back by the same
   amount so the vertical rhythm stays identical. */
.about-split-line {
}

.about-split-line-mask {
    margin-block: -0.14em;
}

/* ─── Project hero (single-portfolio) — dark brand opener ── */
.project-hero {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.65);
    --about-line: rgba(197, 170, 251, 0.2);
    background: #1d0446;
    color: #c5aafb;
}

.project-hero__content {
    max-width: 1900px;
    margin: 0 auto;
    padding: clamp(8rem, 18vh, 12rem) clamp(1.5rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 6rem);
}

.project-hero__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-ink);
    margin-bottom: clamp(2rem, 4.5vw, 4rem);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.project-hero__eyebrow-cat {
    color: var(--about-muted);
}

.project-hero__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.75rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--about-ink);
    max-width: 16ch;
    margin: 0 0 clamp(3rem, 7vw, 6rem);
}

/* Meta — ruled columns on a 12-col grid */
.project-hero__meta {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
}

.project-hero__meta-item {
    grid-column: span 3;
    padding-top: 0.9rem;
    border-top: 1px solid var(--about-line);
}

.project-hero__meta-item--tags {
    grid-column: span 4;
}

.project-hero__meta-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-muted);
    margin: 0 0 0.85rem;
}

.project-hero__meta-value {
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--about-ink);
    margin: 0;
}

.project-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
    border-bottom: 1px solid rgba(197, 170, 251, 0.35);
    transition: border-color 0.3s ease;
}

.project-hero__cta:hover {
    border-color: var(--about-ink);
}

.project-hero__cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-hero__cta:hover .project-hero__cta-arrow {
    transform: translateX(6px);
}

@media (max-width: 1023px) {
    .project-hero__meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .project-hero__meta-item,
    .project-hero__meta-item--tags {
        grid-column: span 1;
    }

    .project-hero__meta-item--tags {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .project-hero__content {
        padding: 7.5rem 1.25rem 3rem;
    }

    .project-hero__eyebrow {
        padding-bottom: 1rem;
        margin-bottom: 1.75rem;
        font-size: 0.6875rem;
    }

    .project-hero__title {
        font-size: clamp(2.25rem, 10vw, 3rem);
        line-height: 1.06;
        max-width: none;
        margin-bottom: 2.5rem;
    }

    .project-hero__meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-hero__meta-item--tags {
        grid-column: 1;
    }

    .project-hero__meta-value {
        font-size: 1.125rem;
    }
}

/* ─── Tag pills (shared category / expertise labels) ───── */
.about-section__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-section__tag {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    color: #c5aafb;
    border: 0.5px solid rgba(197, 170, 251, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.about-section__tag--white {
    color: #c5aafb;
    border-color: rgba(197, 170, 251, 0.4);
    background: transparent;
}

.about-section .about-section__tag {
    font-size: 15px;
    padding: 9px 18px;
}

.about-section .about-section__tags {
    gap: 8px;
}

@media (max-width: 767px) {
    .about-section .about-section__tags {
        gap: 6px;
    }

    .about-section .about-section__tag {
        font-size: 12px;
        padding: 6px 13px;
    }
}

/* Custom scrollbar for better look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Splide — projects carousel */
.project-splide {
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.project-splide.is-initialized {
    opacity: 1;
}

.project-splide .splide__track,
.project-splide .splide__list {
    height: 100%;
}

.project-splide .splide__track {
    overflow: visible;
}

.project-splide .splide__list {
    cursor: grab;
}

.project-splide .splide__list:active {
    cursor: grabbing;
}

.project-splide .splide__slide {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    filter: grayscale(1);
}

/* 2–3 slides visible: dim side slides, not invisible */
.project-splide--multi .splide__slide.is-visible {
    opacity: 0.55;
    filter: grayscale(0.35);
}

.project-splide .splide__slide.is-active {
    z-index: 10;
    opacity: 1;
    filter: grayscale(0);
}

.project-splide .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.project-splide .splide__slide.is-active img {
    transition: 0.3s;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(
        180deg,
        rgba(29, 4, 70, 0.55) 0%,
        rgba(29, 4, 70, 0) 30%,
        rgba(29, 4, 70, 0) 52%,
        rgba(29, 4, 70, 0.9) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Overlay content only reveals on the focused (active) slide */
.project-splide .splide__slide.is-active .slide-overlay {
    opacity: 1;
}

.project-slide__top,
.project-slide__bottom {
    transform: translateY(14px);
    opacity: 0;
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.65s ease;
}

.project-slide__bottom {
    transition-delay: 0.08s;
}

.project-splide .splide__slide.is-active .project-slide__top,
.project-splide .splide__slide.is-active .project-slide__bottom {
    transform: translateY(0);
    opacity: 1;
}

.project-slide__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-slide__index {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.85);
}

.project-slide__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.project-slide__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.625rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.project-slide__excerpt {
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 46ch;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-slide__cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.3s ease;
}

.project-slide__cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-slide__cta:hover,
.permalink:hover .project-slide__cta {
    border-color: #fff;
}

.project-slide__cta:hover .project-slide__cta-arrow,
.permalink:hover .project-slide__cta-arrow {
    transform: translateX(6px);
}

/* Project slide full-card link */
.project-slide__link {
    color: inherit;
}
.project-slide__link:hover .project-slide__cta-arrow {
    transform: translateX(6px);
}

 /* Marquee Section */
.marquee-section {
    z-index: 2;
    position: relative;
}

.marquee-text {
    color: #ffffff;
    align-self: start;
    opacity: 1;
}

/* Advanced Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: fit-content;
    will-change: transform;
}

/* ─── Stories — dark journal list ─────────────────── */
.stories-section {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.65);
    --about-line: rgba(197, 170, 251, 0.18);
    background: #1d0446;
    color: #c5aafb;
}

.stories-section__content {
    max-width: 1900px;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 4vw, 2.5rem);
}

.stories-section__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-ink);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.stories-section__eyebrow-index {
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
}

.stories-section__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.5rem, 7vw, 7.25rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.035em;
    color: var(--about-ink);
    max-width: 12ch;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.stories-section__lede {
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.45;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--about-muted);
    max-width: 36ch;
    margin: 0 0 clamp(3.5rem, 8vw, 7rem);
}

.stories-section__list {
    border-top: 1px solid var(--about-line);
}

.story-entry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border-bottom: 1px solid var(--about-line);
    color: inherit;
    text-decoration: none;
    transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-entry:hover {
    padding-left: 0.875rem;
}

.story-entry__index {
    grid-column: 1 / span 1;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
    padding-top: 0.35rem;
}

.story-entry__media {
    grid-column: 2 / span 3;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--about-line);
}

.story-entry__image,
.story-entry__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-entry__fallback {
    background: linear-gradient(160deg, #2a0860 0%, #1d0446 50%, #452776 100%);
}

.story-entry:hover .story-entry__image {
    transform: scale(1.04);
}

.story-entry__body {
    grid-column: 6 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.story-entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.story-entry__date {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--about-muted);
}

.story-entry__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--about-ink);
    margin: 0;
}

.story-entry__excerpt {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.65;
    color: var(--about-muted);
    max-width: 56ch;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-entry__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
    border-bottom: 1px solid rgba(197, 170, 251, 0.35);
    transition: border-color 0.3s ease;
}

.story-entry__cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-entry:hover .story-entry__cta {
    border-color: var(--about-ink);
}

.story-entry:hover .story-entry__cta-arrow {
    transform: translateX(6px);
}

@media (max-width: 767px) {
    .stories-section__content {
        padding: 3rem 1.25rem;
    }

    .stories-section__eyebrow {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        font-size: 0.6875rem;
    }

    .stories-section__title {
        font-size: clamp(2.125rem, 9.5vw, 2.75rem);
        line-height: 1;
        margin-bottom: 1.5rem;
    }

    .stories-section__lede {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .story-entry {
        grid-template-columns: auto 1fr;
        gap: 1rem 1.25rem;
        padding: 1.5rem 0;
    }

    .story-entry:hover {
        padding-left: 0;
    }

    .story-entry__index {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0.25rem;
        font-size: 0.6875rem;
    }

    .story-entry__media {
        grid-column: 2;
        grid-row: 1;
    }

    .story-entry__body {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 0.6rem;
    }

    .story-entry__title {
        font-size: 1.375rem;
    }

    .story-entry__excerpt {
        font-size: 0.9375rem;
    }
}

/* Blog List Hover Effects (legacy) */
.blog-list:has(.blog-item:hover) .blog-item:not(:hover) {
    opacity: 0.2;
    filter: blur(2px);
}

/* Showreel Responsive 16:9 */
.showreel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showreel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    aspect-ratio: 16 / 9;
}

.showreel-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Portfolio header Vimeo — poster first, iframe fades in when ready */
.portfolio-header-video {
    background: #1D0446;
}

.portfolio-header-video__poster {
    z-index: 1;
    transition: opacity 0.5s ease;
}

.portfolio-header-video__iframe {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.portfolio-header-video.is-playing .portfolio-header-video__iframe {
    opacity: 1;
}

.portfolio-header-video.is-playing .portfolio-header-video__poster {
    opacity: 0;
}

/* Globe Container Styles */
#mainFooter {
    margin-top: 0;
    border-top: 1px solid #000;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
}

#globe-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#content p {margin-bottom:20px; color: inherit;}

#content h2 {margin-bottom:20px; font-size:30px; font-weight:700; font-family: "Galano", "Publica Play", sans-serif; color: #c5aafb;}
#content h3 {margin-bottom:20px; font-size:18px; font-weight:500; color: #c5aafb;}

#content a { color: #c5aafb; text-decoration: underline; text-underline-offset: 3px; }

/* Desktop nav — slide-up label on hover (::after enters from below) */
#mainHeader .nav-link,
#mainHeader #connectBtn,
#mainHeader .online-status__label,
#mainHeader .menu-line,
#mainHeader #navLogoImg {
    transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.nav-link--slide {
    display: inline-block;
    overflow: hidden;
    line-height: 1.25;
    height: 1.25em;
    vertical-align: middle;
    text-decoration: none;
    transition: opacity 0.45s ease;
}

.nav-link--slide:hover {
    opacity: 1;
}

.nav-link--slide .nav-link__label,
.nav-link--slide::after {
    display: block;
    line-height: 1.25;
    filter: blur(0);
    opacity: 1;
    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, filter, opacity;
}

.nav-link--slide::after {
    content: attr(data-label);
    filter: blur(6px);
    opacity: 0.65;
}

.nav-link--slide:hover .nav-link__label,
.nav-link--slide:hover::after {
    transform: translate3d(0, -100%, 0);
}

.nav-link--slide:hover .nav-link__label {
    filter: blur(5px);
    opacity: 0;
}

.nav-link--slide:hover::after {
    filter: blur(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link--slide .nav-link__label,
    .nav-link--slide::after {
        transition: none;
        filter: none;
        opacity: 1;
    }

    .nav-link--slide:hover .nav-link__label,
    .nav-link--slide:hover::after {
        transform: none;
        filter: none;
        opacity: 1;
    }
}

/* --- SMOOTH FADE-UP 3D PAGE TRANSITION --- */
#kh-page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
    /* Hidden by default; activated via .is-active */
    visibility: hidden;
}

#kh-page-transition.is-active {
    visibility: visible;
    pointer-events: auto;
}

 /* Covers the very first paint of a freshly loaded page (no white flash).
   Visual cover only — does not trap clicks if JS fails to reveal it. */
#kh-page-transition.kh-cover-initial {
    visibility: visible;
    pointer-events: none;
}

#kh-page-transition__panel {
    position: absolute;
    inset: -2px;
    background: #1D0446;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    #kh-page-transition,
    #kh-page-transition.is-active {
        display: none !important;
    }
}

/* Header online status */
.online-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e, 0 0 14px rgba(34, 197, 94, 0.75);
    animation: online-status-blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes online-status-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px #22c55e, 0 0 14px rgba(34, 197, 94, 0.75);
    }
    50% {
        opacity: 0.35;
        box-shadow: 0 0 3px #22c55e, 0 0 6px rgba(34, 197, 94, 0.35);
    }
}

/* --- WORK / PORTFOLIO 3D SPIRAL --- */
.work {
    position: relative;
    background: #1D0446;
    /* Total height is set by JS (one viewport of scroll per project). */
}

.work__viewport {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #1D0446;
}

.work__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.work__canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.work__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(7rem, 14vh, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 8vh, 5rem);
    color: #fff;
}

.work__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.work__count {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

.work__count strong {
    color: #C5AAFB;
    font-weight: 600;
}

.work__hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.work__hint-line {
    display: inline-block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: work-hint-slide 2.4s ease-in-out infinite;
}

@keyframes work-hint-slide {
    0%, 100% { transform: translateX(0); opacity: 0.4; }
    50% { transform: translateX(8px); opacity: 1; }
}

.work__footer {
    max-width: min(90vw, 760px);
}

.work__cat {
    color: #C5AAFB;
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
}

.work__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.work__cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    border-radius: 9999px;
    background: #c5aafb;
    color: #452776;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.work__cta:hover {
    transform: scale(1.05);
    background: #fff;
    color: #1d0446;
}

.work__cta:active {
    transform: scale(0.96);
}

.work__empty {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .work__hint-line {
        animation: none;
    }
}