:root {
    --studio-cursor-x: 50%;
    --studio-cursor-y: 18%;
    --studio-tilt-x: 0deg;
    --studio-tilt-y: 0deg;
    --studio-light-x: 50%;
    --studio-light-y: 50%;
}

body.studio-page {
    background:
        radial-gradient(circle at var(--studio-cursor-x) var(--studio-cursor-y), rgba(234, 88, 12, 0.11), transparent 28rem),
        linear-gradient(180deg, #fcfcfc 0%, #f4f4f5 48%, #ffffff 100%);
    overflow-x: hidden;
}

body.studio-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.052) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.studio-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #111111, #ea580c, #f97316);
    box-shadow: 0 0 22px rgba(234, 88, 12, 0.55);
}

.studio-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 90;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(234, 88, 12, 0.55);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    translate: -50% -50%;
    transition: width 220ms ease, height 220ms ease, border-color 220ms ease, opacity 220ms ease;
    mix-blend-mode: multiply;
}

.studio-cursor.is-active {
    opacity: 1;
}

.studio-cursor.is-pressing,
.studio-cursor.is-linking {
    width: 62px;
    height: 62px;
    border-color: rgba(17, 17, 17, 0.35);
}

.studio-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #111111;
    color: #ffffff;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.studio-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.studio-loader-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    transform: translateY(14px);
    animation: studioLoaderRise 900ms cubic-bezier(.2,.8,.2,1) forwards;
}

.studio-loader-mark::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: #ea580c;
    box-shadow: 0 0 28px rgba(234, 88, 12, 0.85);
}

.studio-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.2,1);
}

.studio-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.studio-title-effect {
    color: transparent !important;
    text-wrap: balance;
    background: linear-gradient(120deg, #111111 0%, #111111 48%, #ea580c 52%, #111111 58%, #111111 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: studioTitleShine 5.5s ease-in-out infinite;
}

.studio-title-effect:has(> span) {
    color: #111111 !important;
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
}

.studio-title-effect:has(> span) > span {
    display: inline-block;
    color: #111111;
    background: linear-gradient(120deg, #111111 0%, #111111 48%, #ea580c 52%, #111111 58%, #111111 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: studioTitleShine 5.5s ease-in-out infinite;
}

.studio-title-effect:has(> span) > .text-brandOrange {
    color: #ea580c !important;
    background: linear-gradient(120deg, #ea580c 0%, #ea580c 48%, #111111 52%, #ea580c 58%, #ea580c 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.studio-lift,
.studio-card-effect {
    transform: translateZ(0);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms ease, border-color 420ms ease, background 420ms ease;
}

.studio-lift:hover,
.studio-card-effect:hover {
    transform: translateY(-4px);
}

.studio-media-effect {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: rotateX(var(--studio-tilt-x)) rotateY(var(--studio-tilt-y));
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms ease;
}

.studio-media-effect::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--studio-light-x) var(--studio-light-y), rgba(255,255,255,0.34), transparent 18rem),
        linear-gradient(110deg, transparent 0%, transparent 42%, rgba(255,255,255,0.24) 48%, transparent 54%, transparent 100%);
    background-size: 100% 100%, 240% 100%;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 360ms ease;
    animation: studioHeroSweep 7s ease-in-out infinite;
}

.studio-media-effect::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.16;
    background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 100% 8px;
    mix-blend-mode: overlay;
    animation: studioScanMove 9s linear infinite;
}

.studio-media-effect:hover {
    box-shadow: 0 36px 90px rgba(17, 17, 17, 0.22);
}

.studio-media-effect:hover::before {
    opacity: 1;
}

.studio-media-effect > img {
    transition: transform 900ms cubic-bezier(.2,.8,.2,1), filter 700ms ease;
}

.studio-media-effect:hover > img {
    transform: scale(1.07);
    filter: saturate(1.08) contrast(1.06);
}

@keyframes studioLoaderRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes studioTitleShine {
    0%, 55%, 100% {
        background-position: 100% 0;
    }
    75% {
        background-position: 0 0;
    }
}

@keyframes studioHeroSweep {
    0%, 45%, 100% {
        background-position: 0 0, 120% 0;
    }
    65% {
        background-position: 0 0, -80% 0;
    }
}

@keyframes studioScanMove {
    to {
        background-position: 0 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-page *,
    .studio-page *::before,
    .studio-page *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .studio-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px), (pointer: coarse) {
    .studio-cursor {
        display: none;
    }

    .studio-media-effect {
        transform: none !important;
    }
}
