/* 메인 페이지 본문 (Figma node 161:11) — sunskin-common.css 를 head에서 선로드 */
/* 홈은 default.css 대신 home.css를 쓰므로 bbs/newwin.inc.php 팝업 기본 스타일을 여기서 복원 */
#hd_pop {
    position: relative;
    z-index: 1000;
    width: 1200px;
    max-width: calc(100% - 40px);
    height: 0;
    margin: 0 auto;
    font-family: var(--ss-font-sans);
}

#hd_pop h2 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.hd_pops {
    position: absolute;
    z-index: 1001;
    border: 1px solid #e9e9e9;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hd_pops img {
    max-width: 100%;
    height: auto;
}

.hd_pops_con {
    overflow: hidden;
}

.hd_pops_footer {
    position: relative;
    min-height: 40px;
    padding: 0;
    background: #000;
    color: #fff;
    text-align: left;
}

.hd_pops_footer::after {
    display: block;
    clear: both;
    content: "";
}

.hd_pops_footer button {
    min-height: 40px;
    padding: 10px;
    border: 0;
    color: #fff;
    font-family: var(--ss-font-sans);
    line-height: 20px;
    cursor: pointer;
}

.hd_pops_footer .hd_pops_reject {
    max-width: calc(100% - 64px);
    background: #000;
    text-align: left;
}

.hd_pops_footer .hd_pops_close {
    position: absolute;
    top: 0;
    right: 0;
    background: #393939;
}

@media (max-width: 1199px) {
    #hd_pop {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding-bottom: 24px;
        overflow-y: auto;
        pointer-events: none;
        -webkit-overflow-scrolling: touch;
    }

    .hd_pops {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: min(560px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        margin: 96px auto 0;
        margin: calc(80px + max(16px, env(safe-area-inset-top))) auto 0;
        transform: none;
        pointer-events: auto;
    }

    #hd_pop .hd_pops + .hd_pops {
        margin-top: 16px;
    }

    .hd_pops_con {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        max-height: min(60vh, 520px);
        max-height: min(60dvh, 520px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767px) {
    #hd_pop {
        padding-bottom: 16px;
    }

    .hd_pops {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-top: 78px;
        margin-top: calc(66px + max(12px, env(safe-area-inset-top)));
    }

    .hd_pops_con {
        max-height: calc(100vh - 170px);
        max-height: calc(100dvh - 170px);
    }

    .hd_pops_footer {
        display: flex;
        min-height: 0;
    }

    .hd_pops_footer button {
        min-height: 44px;
        font-size: 12px;
        line-height: 18px;
    }

    .hd_pops_footer .hd_pops_reject {
        flex: 1 1 auto;
        max-width: none;
    }

    .hd_pops_footer .hd_pops_close {
        position: static;
        flex: 0 0 auto;
        min-width: 58px;
    }
}

.ss-hero {
    position: relative;
    height: 1000px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop section snap: magnet-like section landing */
@media (min-width: 1201px) {
    html {
        scroll-snap-type: none;
        scroll-behavior: smooth;
        /* Snap landing position slightly below the top edge */
        scroll-padding-top: clamp(16px, 2.2vh, 32px);
    }

    #main-content > section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .ss-signature,
    .sunskin-footer {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    /* Keep each main section visually one-screen on desktop */
    #main-content > section:not(.ss-signature) {
        min-height: 100dvh;
        box-sizing: border-box;
    }

    /* Avoid "double scroll" caused by large vertical padding */
    .ss-stats {
        padding-block: clamp(56px, 6vh, 104px);
    }

}

@media (min-width: 1201px) and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.ss-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ss-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 128%;
    object-fit: cover;
    object-position: center top;
}

.ss-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(78, 47, 29, 0.2) 0%,
        rgba(233, 70, 10, 0.25) 97.05%
    );
    animation: ssHeroFadeOut 5.2s ease 0.5s forwards;
}

.ss-hero__body {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px var(--ss-page-gutter, 30px) 120px;
}

.ss-hero__title {
    margin: 0;
    font-family: var(--ss-font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.25;
    letter-spacing: 0.096px;
    text-align: center;
    color: #f4f4f5;
    animation: ssHeroFadeOut 5.2s ease 1.5s forwards;
}

.ss-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@keyframes ssHeroFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.ss-hero__scroll span {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 3.6px;
    color: #fff;
    text-align: center;
}

.ss-hero__scroll img {
    display: none;
}

.ss-hero__scroll::after {
    content: "";
    width: 2px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    display: block;
    position: relative;
    overflow: hidden;
}

.ss-hero__scroll::before {
    content: "";
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.95) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    position: absolute;
    left: 50%;
    top: calc(16px + 16px);
    transform: translate(-50%, 0);
    animation: ssHeroScrollHint 1.15s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes ssHeroScrollHint {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    75% {
        transform: translate(-50%, 34px);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 34px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ss-hero__scroll::before {
        animation: none;
        opacity: 1;
        transform: translate(-50%, 17px);
    }
}

.ss-wrap {
    width: 100%;
    max-width: var(--ss-max);
    margin: 0 auto;
    padding-left: var(--ss-page-gutter, 30px);
    padding-right: var(--ss-page-gutter, 30px);
    box-sizing: border-box;
}

.ss-kicker {
    margin: 0;
    font-family: var(--ss-font-serif);
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 4.2px;
    color: var(--ss-orange);
}

.ss-heading-lg {
    margin: 0;
    font-family: var(--ss-font-serif);
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.3;
    font-weight: 400;
    color: var(--ss-text);
}

.ss-body-text {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.036px;
    color: var(--ss-muted);
}

/* 브랜드 스토리 */
.ss-section-brand {
    background: #faf8f4;
    padding: clamp(72px, 12vw, 160px) 0;
}

.ss-brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 브랜드 비주얼: 세로형 이미지, 프레임에 맞춤 + 중앙 정렬 */
.ss-brand-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ss-brand-visual__frame {
    width: 100%;
    max-width: 570px;
    /* 에셋 570×680 과 동일 비율(세로 카드) */
    aspect-ratio: 570 / 680;
    border-radius: 0;
    overflow: hidden;
    background-color: lightgray;
    background-image: url('../img/sunskin/section-brand.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: luminosity;
}

.ss-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 제품 섹션 공통 */
.ss-product {
    position: relative;
    height: 1000px;
    overflow: hidden;
}

.ss-product__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 1000px;
    position: relative;
}

.ss-product__media {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    z-index: 0;
}

.ss-product__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-product__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 45px;
    padding: 40px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ss-product__shot {
    width: min(350px, 80vw);
    height: min(350px, 80vw);
    position: relative;
}

.ss-product__shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ss-product__box {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.ss-product__detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.ss-product__name {
    margin: 0;
    font-family: var(--ss-font-display);
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 36px;
    color: #444444;
}

.ss-product__name--light {
    color: #fff;
}

.ss-product__name--sheet {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 30px;
}

.ss-product__orange .ss-kicker {
    color: #dfdfe0;
}

.ss-product__desc--sm p {
    margin: 0 0 8px;
}

.ss-product__desc--sm p:last-child {
    margin-bottom: 0;
}

.ss-product__desc {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    color: var(--ss-muted);
}

.ss-product__desc--sm {
    font-size: 14px;
    line-height: 22px;
}

.ss-product__desc--on-orange {
    color: #f4f4f5;
}

.ss-product__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ss-orange);
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.4px;
    color: var(--ss-orange);
    text-decoration: none;
}

.ss-product__more--muted {
    border-bottom-color: #dfdfe0;
    color: #dfdfe0;
}

.ss-product__indicator {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70px;
    z-index: 2;
    pointer-events: none;
}

.ss-product__indicator img {
    width: 70px;
    height: 6px;
    transform: rotate(-90deg);
    transform-origin: center;
}

/* 오렌지 배경 제품 */
.ss-product--orange .ss-product__row {
    grid-template-columns: 1fr 1fr;
}

.ss-product__orange {
    background: var(--ss-orange-soft);
    color: #fff;
}

.ss-product__orange .ss-kicker {
    color: #dfdfe0;
}

/* 통계 */
.ss-stats {
    position: relative;
    padding: clamp(72px, 12vw, 160px) 0;
    overflow: hidden;
}

.ss-stats__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ss-stats__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.ss-stats__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #fff 0%,
        rgba(255, 255, 255, 0) 12%,
        rgba(255, 255, 255, 0) 88%,
        #fff 100%
    );
}

.ss-stats__inner {
    position: relative;
    z-index: 1;
    max-width: var(--ss-max);
    margin: 0 auto;
    padding: 0 var(--ss-page-gutter, 30px);
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.ss-stats__head {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.ss-stats .ss-kicker {
    font-family: "Jeju Myeongjo", var(--ss-font-serif);
    color: #e9460a;
}

.ss-stats__title {
    font-family: "Jeju Myeongjo", var(--ss-font-serif);
    font-size: 46px;
    line-height: 60px;
    font-weight: 400;
    color: #222222;
    max-width: 100%;
}

.ss-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 48px);
    width: 100%;
}

.ss-stat-card {
    position: relative;
    width: min(320px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 0;
    padding: 50px 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: visible;
    text-align: center;
    background: transparent;
    box-shadow: none;
}

/* Figma 165:586: blob 텍스처 + mix-blend overlay */
.ss-stat-card__blob {
    position: absolute;
    inset: 0;
    border-radius: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
    background: transparent;
}

.ss-stat-card__blob img {
    position: absolute;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.ss-stat-card strong {
    position: relative;
    z-index: 2;
    font-family: var(--ss-font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 60px;
    letter-spacing: 0.092px;
    color: #e9460a;
}

.ss-stat-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.04px;
    color: #777777;
}

.ss-stats__note {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.04px;
    text-align: center;
    color: #777777;
}

/* 시그니처 */
.ss-signature {
    background: #f8f8f8;
    padding: clamp(56px, 8vw, 120px) 0;
    overflow: visible;
}

.ss-signature__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0 auto;
}

.ss-signature__copy {
    flex: 0 0 min(800px, 100%);
    padding: 0 60px 60px;
    box-sizing: border-box;
    position: relative;
    min-height: 350px;
}

.ss-signature__num {
    margin: 0;
    font-family: var(--ss-font-sans);
    font-weight: 700;
    font-size: clamp(100px, 15vw, 200px);
    line-height: 1;
    text-align: right;
    color: rgba(233, 71, 9, 0.7);
}

.ss-signature__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 16px;
    border: 1px solid var(--ss-orange);
    width: fit-content;
}

.ss-signature__badge span {
    font-family: var(--ss-font-serif);
    font-size: 14px;
    letter-spacing: 4.2px;
    color: var(--ss-orange);
}

.ss-signature__gallery {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: min(640px, 100%);
    margin-left: auto;
}

.ss-signature__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    will-change: transform;
}

.ss-signature__pic {
    flex: 0 0 calc(100% - 48px);
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
}

.ss-signature__pic--muted {
    background: #f5f5f5;
}

.ss-signature__pic img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.ss-signature__progress {
    width: min(1280px, calc(100% - 180px));
    margin: 60px auto 0;
    height: 6px;
    border-radius: 10px;
    background: #dfdfe0;
    position: relative;
    overflow: hidden;
}

.ss-signature__progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 33.33%;
    background: var(--ss-orange);
    border-radius: inherit;
}

@media (max-width: 1200px) {
    .ss-brand-grid {
        gap: 40px;
    }

    .ss-product__panel {
        padding: 32px var(--ss-page-gutter, 30px);
    }

    .ss-product__indicator {
        display: none;
    }

    .ss-signature__row {
        flex-direction: column;
        width: 100%;
    }

    .ss-signature__progress {
        width: calc(100% - (var(--ss-page-gutter, 30px) * 2));
        margin: 40px auto 0;
    }

    .ss-signature__copy {
        flex-basis: auto;
        padding: 0 var(--ss-page-gutter, 30px) 40px;
    }

    .ss-signature__gallery {
        width: 100%;
        max-width: none;
        margin-left: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--ss-page-gutter, 30px);
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .ss-signature__track {
        gap: 0;
        transform: none !important;
        transition: none !important;
    }

    /* 가로 스크롤: 한 장씩 스냅 */
    .ss-signature__pic {
        flex: 0 0 100%;
        box-sizing: border-box;
        padding: 0 var(--ss-page-gutter, 30px);
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        -webkit-scroll-snap-stop: normal;
    }

    .ss-signature__pic img {
        width: 100%;
        max-width: min(640px, 100%);
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        margin: 0 auto;
    }

    .ss-signature {
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .ss-hero {
        height: auto;
        min-height: 100vh;
    }

    .ss-brand-grid {
        grid-template-columns: 1fr;
    }

    .ss-brand-visual {
        justify-content: center;
    }

    .ss-product {
        height: auto;
    }

    .ss-product__row {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ss-product--flip .ss-product__row {
        display: flex;
        flex-direction: column-reverse;
    }

    .ss-product__orange {
        order: 0;
    }

    .ss-stats__grid {
        grid-template-columns: 1fr;
    }

    .ss-stat-card {
        max-width: min(270px, 100%);
        height: auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 640px) {
    .ss-hero__body {
        padding-top: 88px;
    }

    .ss-product__box {
        gap: 32px;
    }

    .ss-stats__title {
        font-size: clamp(28px, 9vw, 46px);
        line-height: 1.25;
    }

    .ss-signature__num {
        text-align: left;
    }
}

.ss-signature__item {
    display: none;
}
.ss-signature__item.is-active {
    display: flex;
    flex-direction: column;
    gap: 50px;
    animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1201px) {
    /* 320vh: 1~3번 전환 + 짧은 마지막 고정 구간 */
    .ss-signature {
        height: 320vh;
        padding: 0;
        margin-bottom: 0;
        overflow: visible;
    }
    .ss-signature__sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }
    /* 왼쪽 카피: 전환 애니 없이 즉시 스왑 */
    .ss-signature__item {
        position: absolute;
        top: 0;
        left: 60px;
        right: 60px;
        display: flex;
        flex-direction: column;
        gap: 50px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: none;
        animation: none;
    }
    .ss-signature__item.is-active {
        opacity: 1;
        visibility: visible;
        animation: none;
    }
    .ss-signature__gallery {
        overflow: hidden;
    }
    .ss-signature__track {
        transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ss-signature__pic {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        background: transparent;
    }
    .ss-signature__pic.ss-signature__pic--muted img {
        opacity: 0.72;
        filter: saturate(0.92);
    }
    .ss-signature__pic img {
        transition: opacity 0.35s ease, filter 0.35s ease;
    }
}

@media (min-width: 1201px) and (prefers-reduced-motion: reduce) {
    .ss-signature__track {
        transition: none;
    }
    .ss-signature__pic img {
        transition: none;
    }
}

/* ===================================================================
   SCROLL-REVEAL ANIMATIONS
   =================================================================== */

/* Base state: invisible, pushed down slightly */
.ss-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Variation: slide from left */
.ss-reveal--left {
    transform: translateX(-50px) translateY(0);
}

/* Variation: slide from right */
.ss-reveal--right {
    transform: translateX(50px) translateY(0);
}

/* Variation: scale up */
.ss-reveal--zoom {
    transform: scale(0.92);
    transform-origin: center center;
}

/* Revealed state */
.ss-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children: add delay per child */
.ss-reveal-stagger > .ss-reveal:nth-child(1) { transition-delay: 0s; }
.ss-reveal-stagger > .ss-reveal:nth-child(2) { transition-delay: 0.12s; }
.ss-reveal-stagger > .ss-reveal:nth-child(3) { transition-delay: 0.24s; }
.ss-reveal-stagger > .ss-reveal:nth-child(4) { transition-delay: 0.36s; }

/* ===================================================================
   BRAND IMAGE: ZOOM-IN ON REVEAL
   =================================================================== */
.ss-brand-visual__frame {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.06);
    filter: brightness(0.92);
}

.ss-reveal.is-visible .ss-brand-visual__frame,
.ss-brand-visual.is-visible .ss-brand-visual__frame {
    transform: scale(1);
    filter: brightness(1);
}

/* ===================================================================
   PRODUCT IMAGE: SUBTLE ZOOM ON HOVER
   =================================================================== */
.ss-product__media img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Product shot: gentle float animation */
.ss-product__shot img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-product__panel:hover .ss-product__shot img {
    transform: translateY(-8px);
}

/* Hover가 패널에 안정적으로 걸리지 않는 환경(겹침/터치패드 등) 보강 */
.ss-product__shot:hover img,
.ss-product__panel:focus-within .ss-product__shot img {
    transform: translateY(-8px);
}

/* ===================================================================
   STAT CARDS: HOVER FLOAT + COUNT-UP READY
   =================================================================== */
.ss-stat-card {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-stat-card:hover {
    transform: translateY(-6px);
}

/* Count-up animation for stats */
.ss-stat-card strong {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ss-stat-card.ss-reveal:not(.is-visible) strong {
    opacity: 0;
    transform: translateY(10px);
}

/* Blob pulse on hover */
.ss-stat-card__blob img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-stat-card:hover .ss-stat-card__blob img {
    transform: scale(1.06);
}

/* ===================================================================
   BUTTONS & LINKS: MICRO-INTERACTIONS
   =================================================================== */

/* "자세히보기" link hover slide */
.ss-product__more {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.ss-product__more::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ss-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-product__more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ss-product__more:hover {
    color: var(--ss-orange);
}

.ss-product__more--muted::after {
    background: #dfdfe0;
}

.ss-product__more--muted:hover {
    color: #fff;
}

/* Signature badge shimmer */
.ss-signature__badge {
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.ss-signature__badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(233, 70, 10, 0.08) 50%,
        transparent 100%
    );
    animation: ssBadgeShimmer 3s ease-in-out infinite;
}

@keyframes ssBadgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 140%; }
}

/* ===================================================================
   HERO: PARALLAX-LIKE DEPTH ON SCROLL (CSS-only via transform)
   =================================================================== */
.ss-hero__bg img {
    transition: transform 0.1s linear;
    will-change: transform;
}

.ss-hero__title {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hero scroll indicator pulse */
.ss-hero__scroll span {
    animation: ssPulseText 2.4s ease-in-out infinite;
}

@keyframes ssPulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===================================================================
   SIGNATURE SECTION: NUMBER (모바일만 부드럽게 — 데스크톱은 즉시 전환)
   =================================================================== */
@media (max-width: 1200px) {
    .ss-signature__num {
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .ss-signature__item.is-active .ss-signature__num {
        animation: ssNumSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

@media (min-width: 1201px) {
    .ss-signature__num {
        transition: none;
    }
    .ss-signature__item.is-active .ss-signature__num {
        animation: none;
    }
}

@keyframes ssNumSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Figma tablet/mobile main responsive */
@media (max-width: 1200px) {
    .ss-hero {
        height: 500px;
        min-height: 0;
    }

    .ss-hero__bg img {
        height: 100%;
        object-position: center top;
    }

    .ss-hero__body {
        padding: 80px var(--ss-page-gutter, 30px);
    }

    .ss-hero__title {
        font-size: 24px;
        line-height: 36px;
        letter-spacing: 0.048px;
        white-space: nowrap;
    }

    .ss-hero__scroll {
        display: none;
    }

    .ss-section-brand {
        padding: 60px 0;
    }

    .ss-brand-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
        align-items: stretch;
    }

    .ss-brand-copy {
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .ss-kicker {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 4.2px;
    }

    .ss-heading-lg {
        font-size: 24px;
        line-height: 36px;
    }

    .ss-body-text,
    .ss-body-text p {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.028px;
    }

    .ss-brand-visual__frame {
        max-width: none;
        height: 415px;
        aspect-ratio: auto;
        background-position: center;
    }

    .ss-product {
        height: auto;
    }

    .ss-product__row {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .ss-product--flip .ss-product__row {
        flex-direction: column-reverse;
    }

    .ss-product__media {
        width: 100%;
        height: 800px;
        min-height: 0;
        margin-bottom: -150px;
    }

    .ss-product__media img {
        height: 146%;
        top: -9%;
        bottom: auto;
    }

    .ss-product--orange .ss-product__media img {
        top: -21%;
    }

    #section-mask .ss-product__media img {
        width: 173%;
        height: 111%;
        left: -28%;
        top: -11%;
    }

    .ss-product__panel {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 60px;
        width: 100%;
        box-sizing: border-box;
        padding: 30px 20px 60px;
        background: rgba(255, 255, 255, 0.7);
        text-align: left;
    }

    .ss-product__orange {
        background: rgba(237, 107, 59, 0.9);
    }

    .ss-product__shot {
        flex: 0 0 170px;
        width: 170px;
        height: 250px;
    }

    .ss-product__box {
        align-items: flex-start;
        max-width: min(450px, calc(100vw - 250px));
        gap: 54px;
    }

    .ss-product__detail {
        align-items: flex-start;
    }

    .ss-product__name {
        font-size: 24px;
        line-height: 36px;
        text-align: left;
        white-space: nowrap;
    }

    .ss-product__desc {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.028px;
    }

    .ss-stats {
        padding: 60px 0;
    }

    .ss-stats__inner {
        gap: 30px;
    }

    .ss-stats__head {
        gap: 16px;
    }

    .ss-stats__title {
        font-size: 24px;
        line-height: 36px;
    }

    .ss-stats__grid {
        display: flex;
        gap: 16px;
    }

    .ss-stat-card {
        flex: 1 1 0;
        width: auto;
        height: 240px;
        aspect-ratio: auto;
        padding: 50px 8px;
        border-radius: 999px;
        overflow: hidden;
        gap: 16px;
    }

    .ss-stat-card__blob {
        border-radius: 999px;
        overflow: hidden;
    }

    .ss-stat-card__blob img {
        object-fit: cover;
    }

    .ss-stat-card strong {
        font-size: 28px;
        line-height: 40px;
    }

    .ss-stat-card p,
    .ss-stats__note {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.028px;
    }

    .ss-signature {
        padding: 60px 0;
    }

    .ss-signature__copy {
        min-height: 0;
    }

    .ss-signature__item.is-active {
        gap: 24px;
    }

    .ss-signature__num {
        font-size: 40px;
        line-height: 56px;
        letter-spacing: 0.08px;
        text-align: right;
    }

    .ss-signature__gallery {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .ss-hero {
        height: 320px;
    }

    .ss-hero__body {
        padding: 56px 16px;
    }

    .ss-hero__title {
        font-size: 18px;
        line-height: 28px;
    }

    .ss-section-brand {
        padding: 50px 0;
    }

    .ss-wrap,
    .ss-stats__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ss-brand-grid {
        gap: 24px;
    }

    .ss-heading-lg,
    .ss-stats__title {
        font-size: 20px;
        line-height: 30px;
    }

    .ss-brand-visual__frame {
        height: 260px;
    }

    .ss-product__media {
        height: 430px;
        margin-bottom: -84px;
    }

    .ss-product__panel {
        gap: 18px;
        justify-content: flex-start;
        padding: 24px 16px 40px;
    }

    .ss-product__shot {
        flex-basis: 86px;
        width: 86px;
        height: 126px;
    }

    .ss-product__box {
        max-width: calc(100vw - 136px);
        gap: 18px;
    }

    .ss-product__detail {
        gap: 4px;
    }

    .ss-product__name {
        max-width: 100%;
        font-size: 14px;
        line-height: 20px;
        white-space: normal;
    }

    .ss-product__desc {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 12px;
        line-height: 18px;
    }

    .ss-product__more {
        min-height: 24px;
        padding-bottom: 6px;
        font-size: 12px;
        line-height: 18px;
    }

    .ss-stats {
        padding: 50px 0;
    }

    .ss-stats__grid {
        gap: 6px;
    }

    .ss-stat-card {
        height: 116px;
        padding: 22px 4px;
        gap: 6px;
    }

    .ss-stat-card strong {
        font-size: 18px;
        line-height: 26px;
    }

    .ss-stat-card p {
        font-size: 11px;
        line-height: 15px;
        word-break: keep-all;
    }

    .ss-stats__note {
        font-size: 12px;
        line-height: 18px;
    }

    .ss-signature {
        padding: 50px 0;
    }

    .ss-signature__copy {
        padding: 0 16px 24px;
    }

    .ss-signature__num {
        text-align: right;
    }

    .ss-signature__badge {
        min-height: 34px;
        padding: 0 10px;
    }

    .ss-signature__badge span {
        font-size: 11px;
        line-height: 18px;
        letter-spacing: 2.4px;
    }

    .ss-signature__pic {
        padding: 0 16px;
    }

    .ss-signature__progress {
        width: calc(100% - 32px);
        margin-top: 24px;
    }
}

/* Progress bar smooth transition */
.ss-signature__progress-bar {
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* KICKER TEXT: no special animation (kept clean per user preference) */

/* ===================================================================
   FOOTER BADGES: HOVER GLOW
   =================================================================== */
.sunskin-footer__badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sunskin-footer__badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 70, 10, 0.2);
}

.sunskin-footer__badge--fill:hover {
    box-shadow: 0 4px 20px rgba(233, 70, 10, 0.35);
}

/* ===================================================================
   REDUCED MOTION: ACCESSIBILITY
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ss-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ss-reveal--left,
    .ss-reveal--right,
    .ss-reveal--zoom {
        transform: none;
    }

    .ss-brand-visual__frame {
        transform: none;
        filter: none;
        transition: none;
    }

    .ss-product__media img,
    .ss-product__shot img,
    .ss-stat-card,
    .ss-stat-card__blob img,
    .ss-signature__num,
    .ss-signature__progress-bar,
    .sunskin-footer__badge {
        transition: none;
    }

    .ss-hero__scroll span {
        animation: none;
        opacity: 1;
    }

    .ss-signature__badge::before {
        animation: none;
    }

    .ss-signature__item.is-active .ss-signature__num {
        animation: none;
    }
}
