/* /portfolio — 포트폴리오 히어로 */
.studio-theme .samples-hero .samples-hero__title-line1 {
    color: rgba(252, 252, 255, 0.98);
}

.studio-theme .samples-hero .samples-hero__title-line2 {
    display: inline-block;
    margin-top: 0.12em;
    background: linear-gradient(
        105deg,
        #7eb8ff 0%,
        #318bff 38%,
        #6b5cff 72%,
        #9d7dff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 히어로 배경: 프로젝트 히어로에서 옮긴 슬라이드 장면 */
.studio-theme .samples-hero {
    display: flex;
    align-items: center;
    min-height: clamp(520px, 46vw, 700px);
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #040a1c;
    overflow: hidden;
}

.studio-theme .samples-hero::before,
.studio-theme .samples-hero::after {
    display: none;
}

.samples-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.samples-hero__text {
    max-width: min(560px, 46%);
}

.studio-theme .samples-hero .page-hero__title {
    margin-bottom: 1.25rem;
}

.studio-theme .samples-hero .page-hero__desc {
    margin-bottom: 0;
    max-width: 30rem;
}
.samples-hero-scene {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 0;
    height: 100%;
    aspect-ratio: 1024 / 571;
    min-width: 62%;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.samples-hero-scene__layer,
.samples-hero-scene__float,
.samples-hero-scene__light {
    position: absolute;
    inset: 0;
}

.samples-hero-scene__layer {
    background-image: var(--ph-scene);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.samples-hero-scene__base {
    filter: blur(26px) saturate(1.25) brightness(0.8);
    transform: scale(1.08);
}

.samples-hero-scene__backdrop {
    clip-path: polygon(0 0, 100% 0, 100% 9%, 52% 19%, 50% 57%, 41% 57%, 33.5% 68%, 33% 100%, 0 100%);
}

/* 원본 우하단 워터마크 가림 */
.samples-hero-scene__mark {
    position: absolute;
    left: 93.5%;
    top: 88%;
    width: 6.5%;
    height: 10%;
    z-index: 5;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.samples-hero-scene__light {
    background:
        linear-gradient(115deg, transparent 38%, rgba(110, 165, 255, 0.28) 48%, rgba(160, 130, 255, 0.12) 54%, transparent 64%);
    mix-blend-mode: screen;
}

.samples-hero-scene__piece--panel {
    clip-path: polygon(52% 19.5%, 96% 9.5%, 95% 92%, 49.5% 87%);
}

.samples-hero-scene__piece--slab {
    clip-path: inset(69.5% 56.5% 14% 34%);
}

.samples-hero-scene__piece--growth {
    clip-path: inset(59% 39.5% 14% 41%);
}

.samples-hero-scene__piece--users {
    clip-path: inset(76% 31% 11% 53%);
}

/* 이미지 로드 전에는 숨겼다가(is-pending), 로드 완료 시(is-ready) 등장 모션 시작 */
.samples-hero-scene.is-pending .samples-hero-scene__layer,
.samples-hero-scene.is-pending .samples-hero-scene__light {
    opacity: 0;
}

.samples-hero-scene.is-ready .samples-hero-scene__base {
    animation: ph-fade-in 1.4s ease-out both;
}

.samples-hero-scene.is-ready .samples-hero-scene__backdrop {
    animation: ph-fade-in 1.2s ease-out 0.15s both;
}

/* 조각이 모두 안착한 뒤 원본 전체를 깔아 조각 경계 이음새를 없앰 */
.samples-hero-scene.is-ready .samples-hero-scene__full {
    animation: ph-fade-in 0.8s ease-out 2.2s both;
}

.samples-hero-scene.is-ready .samples-hero-scene__light {
    animation:
        ph-fade-in 1.2s ease-out 0.4s both,
        ph-light-sweep 9s ease-in-out 1.6s infinite alternate;
}

.samples-hero-scene.is-ready .samples-hero-scene__piece {
    animation: ph-slide-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.samples-hero-scene.is-ready .samples-hero-scene__piece--panel { animation-delay: 0.45s; }
.samples-hero-scene.is-ready .samples-hero-scene__piece--slab { animation-delay: 0.75s; }
.samples-hero-scene.is-ready .samples-hero-scene__piece--growth { animation-delay: 0.9s; }

.samples-hero-scene.is-ready .samples-hero-scene__piece--users {
    animation-name: ph-rise-in;
    animation-delay: 1.15s;
}

@keyframes ph-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ph-slide-in {
    from {
        opacity: 0;
        transform: translate3d(14%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ph-rise-in {
    from {
        opacity: 0;
        transform: translate3d(4%, 12%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ph-light-sweep {
    from { transform: translate3d(-12%, 0, 0); opacity: 0.55; }
    to { transform: translate3d(12%, 0, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .samples-hero-scene *,
    .samples-hero-scene__light {
        animation: none !important;
    }
}

@media (max-width: 960px) {
    .samples-hero__text {
        max-width: 100%;
    }

    .samples-hero-scene {
        right: -28%;
        opacity: 0.5;
    }
}

.portfolio-work__image {
    display: block;
    width: calc(100% + 4.5rem);
    height: 11rem;
    margin: -2.25rem -2.25rem 1.5rem;
    object-fit: cover;
}

