/* Editorial studio micro-interactions — strictly royal blue, lime, paper and ink. */
@keyframes draw-move-line {
    from {
        stroke-dashoffset: 360
    }

    to {
        stroke-dashoffset: 0
    }
}

@keyframes pulse-move-line {
    0% {
        stroke-dashoffset: 360
    }

    100% {
        stroke-dashoffset: 0
    }
}

.journey-ready:not(.motion-off) .move-word path {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: draw-move-line .95s cubic-bezier(.16, 1, .3, 1) .16s forwards
}

.journey-ready:not(.motion-off) .move-word:hover path {
    animation: pulse-move-line .65s cubic-bezier(.22, .61, .36, 1) forwards
}

.hero-art {
    --hx: 0;
    --hy: 0
}

.journey-ready:not(.motion-off) .hero-orbit {
    translate: calc(var(--hx)*-9px) calc(var(--hy)*-9px);
    transition: translate .12s linear
}

.journey-ready:not(.motion-off) .cross-one {
    translate: calc(var(--hx)*14px) calc(var(--hy)*11px);
    rotate: calc(var(--hx)*20deg)
}

.journey-ready:not(.motion-off) .cross-two {
    translate: calc(var(--hx)*-13px) calc(var(--hy)*13px);
    rotate: calc(var(--hy)*-20deg)
}

.journey-ready:not(.motion-off) .art-note {
    translate: calc(var(--hx)*8px) calc(var(--hy)*-7px)
}

.hero-sticker-secret {
    position: absolute;
    bottom: 9.5%;
    left: 1%;
    z-index: 3;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px dashed var(--blue);
    background: rgb(36 85 255/.06);
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(-7deg) scale(.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1)
}

.hero-sticker-secret.revealed {
    opacity: 1;
    transform: rotate(-5deg) scale(1)
}

.journey-ready:not(.motion-off) .hero-sticker {
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: 0 8px 22px rgb(10 10 10/.09);
    transition: box-shadow .25s ease;
    will-change: transform
}

.journey-ready:not(.motion-off) .hero-sticker:hover {
    box-shadow: 0 12px 28px rgb(36 85 255/.18)
}

.journey-ready:not(.motion-off) .hero-sticker.is-dragging {
    cursor: grabbing;
    box-shadow: 0 18px 38px rgb(10 10 10/.2)
}

.site-serene .project-card .website-art {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease
}

.site-serene .project-card:hover .website-art {
    box-shadow: 0 18px 38px rgb(10 10 10/.1)
}

.site-serene .project-card .website-art::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 220px at var(--card-x, 50%) var(--card-y, 35%), rgb(255 255 255/.34), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease
}

.site-serene .project-card:hover .website-art::after {
    opacity: 1
}

.portfolio-cursor-pill {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    border: 1px solid var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 10px 24px rgb(10 10 10/.18);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(.75);
    transition: opacity .18s ease;
    pointer-events: none;
    will-change: transform, opacity
}

.portfolio-cursor-pill.active {
    opacity: 1
}

.process-steps {
    position: relative
}

.process-steps li {
    position: relative;
    transition: border-color .3s ease
}

.process-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--blue), var(--lime));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1)
}

.process-steps li.step-lit::before {
    transform: scaleX(1)
}

.process-steps li.step-lit .process-number {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgb(199 255 61/.32)
}

.process-steps .process-number {
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease
}

.sim-pulse {
    display: inline-block;
    animation: sim-slot-tick .32s cubic-bezier(.16, 1, .3, 1)
}

@keyframes sim-slot-tick {
    0% {
        transform: translateY(32%) scale(.95);
        opacity: .45
    }

    65% {
        transform: translateY(-4%) scale(1.03);
        opacity: 1
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

@media(max-width:760px) {
    .hero-sticker-secret {
        bottom: 13.5%;
        left: 3%;
        font-size: 8px;
        padding: 6px 10px
    }

    .portfolio-cursor-pill {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    .move-word path,
    .sim-pulse {
        animation: none !important;
        stroke-dashoffset: 0 !important
    }

    .hero-orbit,
    .cross-one,
    .cross-two,
    .art-note {
        translate: none !important;
        rotate: none !important
    }

    .process-steps li::before,
    .process-steps .process-number {
        transition: none !important
    }
}

.motion-off .move-word path,
.motion-off .sim-pulse {
    animation: none !important;
    stroke-dashoffset: 0 !important
}

.motion-off :is(.hero-orbit, .cross-one, .cross-two, .art-note) {
    translate: none !important;
    rotate: none !important
}