/* Shared live-build treatment used by every linked website page. */
html.build-effects-on .scroll-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1400ms ease, transform 1400ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
html.build-effects-on .scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

html.build-effects-on [data-build] {
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.99);
    transition: opacity 480ms ease, transform 760ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: opacity, transform;
}
html.build-effects-on span[data-build] { display: inline-block; }
html.build-effects-on i[data-build] { display: inline-block; }
html.build-effects-on [data-build].construction-running,
html.build-effects-on [data-build].construction-done {
    opacity: 1;
    visibility: visible;
    transform: none;
}
html.build-effects-on [data-build="visual"].construction-running {
    animation: construction-reveal 1640ms cubic-bezier(0.18, 0.72, 0.25, 1) both;
}
html.build-effects-on [data-build]::after {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: 8;
    border: 1px solid rgba(40, 151, 238, 0.82);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(40, 151, 238, 0.08);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    pointer-events: none;
}
html.build-effects-on [data-build].construction-running::after {
    animation: construction-outline 1640ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.build-cursor {
    position: absolute;
    left: 2%;
    top: 65%;
    z-index: 9;
    display: block;
    width: 19px;
    height: 25px;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.build-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.build-cursor path { fill: var(--build-cursor-color, #238ee8); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.build-typing-caret {
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-inline-start: 2px;
    vertical-align: -0.08em;
    background: #238ee8;
    animation: construction-caret 1040ms steps(2, end) infinite;
}
[data-build].construction-running .build-cursor {
    animation: construction-cursor 1520ms cubic-bezier(0.2, 0.75, 0.25, 1) 80ms both;
}

@keyframes construction-reveal {
    from { clip-path: inset(0 100% 0 0); transform: translateY(14px) scale(0.985); }
    to { clip-path: inset(0 0 0 0); transform: translateY(0) scale(1); }
}
@keyframes construction-outline {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); }
    18% { opacity: 1; }
    78% { opacity: 0.9; clip-path: inset(0 0 0 0); }
    100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
@keyframes construction-cursor {
    0% { opacity: 0; transform: translate(-9px, 12px) rotate(-18deg) scale(0.78); }
    16% { opacity: 1; }
    66% { opacity: 1; transform: translate(var(--build-cursor-travel, 52px), -3px) rotate(-8deg) scale(1); }
    78% { opacity: 1; transform: translate(var(--build-cursor-travel, 52px), -3px) rotate(-8deg) scale(0.88); }
    100% { opacity: 0; transform: translate(calc(var(--build-cursor-travel, 52px) + 10px), 2px) rotate(-8deg) scale(0.88); }
}
@keyframes construction-caret { to { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.build-effects-on .scroll-reveal,
    html.build-effects-on .scroll-reveal.active,
    html.build-effects-on [data-build],
    html.build-effects-on [data-build].construction-running,
    html.build-effects-on [data-build].construction-done {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
        transition: none !important;
    }
    html.build-effects-on .build-cursor { display: none !important; }
}

@media (max-width: 768px) {
    .build-cursor { width: 16px; height: 21px; }
    html.build-effects-on [data-build]::after { inset: -3px; }
}
