/* ========= 섹션 페이지 ========= */
@keyframes floating {

    0%,
    100% {
        transform: translateY(-50%) translateY(0px);
    }

    50% {
        transform: translateY(-50%) translateY(-15px);
    }
}

.sec-olidia-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    z-index: 0;
    padding-left: 10%;
}

.sec-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sec-background-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/home_assets/img/main/skin/section_background_bottom.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

.sec-background-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/home_assets/img/main/skin/section_background_top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
}

.sec-filler-image {
    position: absolute;
    top: 35%;
    right: 6%;
    transform: translateY(-50%);
    z-index: 1;
    animation: floating 3s ease-in-out infinite;
}

.sec-filler-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sec-filler-image-top {
    position: absolute;
    top: 35%;
    right: 6%;
    transform: translateY(-50%);
    z-index: 5;
    overflow: hidden;
    animation: floating 3s ease-in-out infinite;
}

.sec-filler-image-top img {
    display: block;
    max-width: 100%;
    height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.sec-content {
    text-align: center;
    color: #333;
    max-width: 600px;
    padding: 10px;
    position: relative;
    z-index: 5;
}

.sec-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-weight: 100;
    /* thin */
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
}

.sec-main-title {
    font-family: 'Dream Orphans', serif;
    font-weight: 400;
    /* regular */
    font-size: 96px;
    color: #333;
    line-height: 0.9;
    margin-bottom: 0;
}

.sec-sub-title {
    font-family: 'Dream Orphans', serif;
    font-weight: 400;
    /* regular */
    font-size: 40px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.2;
}

.sec-description-main {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    /* regular */
    font-size: 32px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 30px;
}

.sec-separator {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    /* regular */
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

.sec-description-detail {
    font-family: 'Pretendard', sans-serif;
    font-weight: 200;
    /* extralight */
    font-size: 20px;
    color: #555;
    line-height: 1.6;
}

.fanning_section {
    text-align: center;
}

/* 폰트 헬퍼 (페이지에 이미 있다면 생략 가능) */
.do-regular-48 {
    font-family: 'Dream Orphans', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.2;
    color: #111;
}

.pretendard-light-20 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.8;
    color: #111;
}

/* 섹션 레이아웃 */
.treatment-section {
    padding: 80px 20px;
    background: #fff;
}

.treatment-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* 왼쪽 텍스트 / 오른쪽 이미지 */
    align-items: center;
    gap: 48px;
}

/* 좌측 텍스트 */
.treatment-left {
    text-align: center;
    /* 기존 left → center */
    max-width: 620px;
    /* 가독성 위해 폭 제한 */
    margin: 0 auto;
    /* 좌우 중앙 배치 */
}

.treatment-title {
    margin: 0 0 12px;
}

.treatment-sub {
    margin: 0 0 18px;
    color: #333;
}

.treatment-desc {
    margin: 0;
    color: #222;
}

/* 우측 이미지 */
.treatment-right {
    display: flex;
    justify-content: center;
}

.treatment-right img {
    width: 100%;
    max-width: 740px;
    /* 이미지 최대 폭 제한 */
    height: auto;
    object-fit: contain;
    display: block;
}

.face-wrap {
    position: relative;
    width: 100%;
    max-width: 740px;
}

.face-wrap>img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 공통 라벨 스타일 */
.face-tag {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    width: var(--w);

    /* ⬇️ 높이 커스텀 */
    height: var(--h, auto);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-family: 'Pretendard', sans-serif;
    font-weight: bold;
    font-size: clamp(12px, 1.4vw, 20px);
    line-height: 1.1;
    color: #fff;

    border-radius: 999px;
    box-sizing: border-box;
    pointer-events: none;
}

/* 채움형(반투명) */
.tag-fill {
    background: #a76e3d33;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

/* 외곽선형 */
.tag-outline {
    background: rgba(167, 110, 61, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.treatment-right .face-wrap {
    position: relative;
    --glass-pad: 20px;
    --mx: -9999px;
    --my: -9999px;
    --r: 0px;
    --rx-mul: 1.5;
    --ry-mul: 1;
    --rx: calc(var(--r) * var(--rx-mul));
    --ry: calc(var(--r) * var(--ry-mul));

}

.treatment-right .face-wrap>img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 라벨은 막대 아래/위 원하는 레이어로—기본은 아래(필요시 z-index: 10) */
.treatment-right .face-wrap .face-tag {
    position: absolute;
    z-index: 10;
}

/* 유리막대 레이어: 얼굴 영역 위에만 표시됨 */
.treatment-right .glass-vband {
    flex: 0 0 43px;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .30) 0%,
            rgba(255, 255, 255, .16) 55%,
            rgba(255, 255, 255, .08) 100%);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow:
        inset 1px 0 rgba(255, 255, 255, .60),
        /* 왼쪽 엣지 하이라이트 = 흰색 */
        inset -1px 0 rgba(255, 255, 255, .60),
        /* 오른쪽 엣지 하이라이트 = 흰색 */
        inset 0 1px 0 rgba(255, 255, 255, .25),
        inset 0 -8px 18px rgba(255, 255, 255, .14),
        0 14px 34px rgba(15, 54, 112, .12);
    backdrop-filter: blur(18px) brightness(1.12) saturate(1) contrast(1);
    -webkit-backdrop-filter: blur(18px) brightness(1.12) saturate(1) contrast(1);
    opacity: .98;
}

.treatment-right .glass-vband+.glass-vband {
    margin-left: -1px;
}

.treatment-right .glass-frost {
    position: absolute;
    inset: -20px;
    z-index: 19;
    /* 밴드 아래, 라벨 위 */
    pointer-events: none;
    /* 색상 왜곡 없이 배경만 흐리게 */
    background: transparent;
    backdrop-filter: blur(22px) contrast(0.95) saturate(1) brightness(1);
    -webkit-backdrop-filter: blur(22px) contrast(0.95) saturate(1) brightness(1);
}

.treatment-right .glass-layer,
.treatment-right .glass-frost {
    position: absolute;
    inset: calc(var(--glass-pad) * -1);
    pointer-events: none;
    overflow: hidden;
}

.treatment-right .glass-layer.reveal,
.treatment-right .glass-frost.reveal {
    -webkit-mask-image: radial-gradient(ellipse var(--rx) var(--ry) at calc(var(--mx) + var(--glass-pad)) calc(var(--my) + var(--glass-pad)),
            transparent 99%, #fff 100%);
    mask-image: radial-gradient(ellipse var(--rx) var(--ry) at calc(var(--mx) + var(--glass-pad)) calc(var(--my) + var(--glass-pad)),
            transparent 99%, #fff 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.treatment-right .glass-reveal-ring {
    position: absolute;
    left: var(--mx);
    top: var(--my);
    width: calc(var(--rx) * 2);
    /* ← 가로 지름 */
    height: calc(var(--ry) * 2);
    /* ← 세로 지름 */
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    /* 타원에 정확히 맞춤 (원 유지 원하면 500px 그대로 OK) */
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transition: opacity .18s ease;
}

.treatment-right .face-wrap.is-reveal .glass-reveal-ring {
    opacity: 1;
}

.treatment-right .glass-layer {
    position: absolute;
    inset: -20px;
    z-index: 20;
    pointer-events: none;
    display: flex;
    overflow: hidden;
}


/*=== 올리디아 ===*/
.section-olida {
    position: relative;
    min-height: 1080px;
    padding: 80px 20px;
    background: #fff;
    overflow: hidden;
}

.olida-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 1080px;
    display: grid;
    place-items: center;
}

.olida-bg {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 0;
    pointer-events: none;
}

.olida-bg img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.olida-panel {
    position: relative;
    z-index: 1;
    margin: 0;
    width: clamp(360px, 78vw, 980px);
    height: clamp(320px, 50vw, 720px);
    background: rgba(98, 67, 0, 0.10);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* SVG 사이즈 (패널과 동일한 중앙 배치) */
.olida-hex {
    width: clamp(360px, 78vw, 980px);
    height: clamp(320px, 50vw, 720px);
    display: block;
}

/* 육각형 라인 */
.hex {
    fill: none;
    stroke: #fff;
}

.hex-solid {
    stroke-width: 3;
}

.hex-dashed {
    stroke-width: 2;
    stroke-dasharray: 6 8;
    opacity: .9;
}

/* 꼭짓점 점 */
.hex-dots .dot-inner {
    fill: #fff;
    stroke: #2F6DB5;
    stroke-width: 3;
}

.hex-dots .dot-outer {
    fill: none;
    stroke: rgba(47, 109, 181, .55);
    stroke-width: 2;
}

/* 연결선 */
.hex-links polyline {
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    opacity: .9;
}

/* 대각선 텍스트: 흰 텍스트만(얇게), textPath 충돌 방지용 transform 없음 */
.edge-text {
    fill: #fff;
    stroke: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transform: none;
    opacity: 0;
    /* 기본은 숨김 → in-view 시에만 페이드인 */
}

/* 중앙 텍스트 */
.olida-center {
    font-family: 'Dream Orphans', sans-serif;
    font-weight: 400;
    font-size: 64px;
    fill: #fff;
    text-anchor: middle;
    opacity: 0;
    /* 기본은 숨김 → in-view 시에만 페이드인 */
}

/* 라벨(알약 모양) */
.pill {
    fill: rgba(98, 67, 0, 0.20);
    stroke: rgba(98, 67, 0, 0.35);
    stroke-width: 1.2;
    rx: 18;
    ry: 18;
}

.pill-txt {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 20px;
    fill: #fff;
    stroke: #B8A78F;
    stroke-width: 1.2px;
    paint-order: stroke fill;
    stroke-linejoin: round;
    opacity: 0;
    /* 기본은 숨김 → in-view 시에만 페이드인 */
}

/* SVG 텍스트 기준점 안정화 */
.olida-hex text {
    transform-box: fill-box;
    transform-origin: center;
}

/* 키프레임 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== 뷰포트 진입 시에만 애니메이션 실행 ===== */
.section-olida.is-inview .olida-center {
    animation: fadeInUp .6s ease forwards .10s;
}

.section-olida.is-inview .edge-text {
    animation: fadeInOpacity .6s ease forwards .20s;
}

/* 라벨 텍스트 순차 등장 (12시 → 10시) */
.section-olida.is-inview .pill-group>g:nth-of-type(1) .pill-txt {
    animation: fadeInUp .6s ease forwards .30s;
}

/* 12시 */
.section-olida.is-inview .pill-group>g:nth-of-type(2) .pill-txt {
    animation: fadeInUp .6s ease forwards .40s;
}

/* 2시  */
.section-olida.is-inview .pill-group>g:nth-of-type(3) .pill-txt {
    animation: fadeInUp .6s ease forwards .50s;
}

/* 4시  */
.section-olida.is-inview .pill-group>g:nth-of-type(4) .pill-txt {
    animation: fadeInUp .6s ease forwards .60s;
}

/* 6시  */
.section-olida.is-inview .pill-group>g:nth-of-type(5) .pill-txt {
    animation: fadeInUp .6s ease forwards .70s;
}

/* 8시  */
.section-olida.is-inview .pill-group>g:nth-of-type(6) .pill-txt {
    animation: fadeInUp .6s ease forwards .80s;
}

/* 10시 */

/* 접근성: 모션 최소화 환경에서는 즉시 표시 */
@media (prefers-reduced-motion: reduce) {

    .section-olida .olida-center,
    .section-olida .edge-text,
    .section-olida .pill-group>g .pill-txt {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}