/* ==========================================================================
   SHALALA OPTIC — 공통 스타일시트
   다크 + 시안 네온 / 글래스모피즘 하이테크 톤
   ========================================================================== */

:root {
    --bg: #0B1020;
    --bg-soft: #10162A;
    --bg-panel: #141B2E;
    --accent: #F0A53A;
    --accent-deep: #C46E12;
    --line: rgba(255, 255, 255, 0.1);
    --text-dim: #9CA3AF;
    --text-faint: #5B6472;
    --nav-h: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: #fff;
    font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #000;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(240, 165, 58, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 165, 58, 0.45);
}

/* --------------------------------------------------------------------------
   글래스 / 서피스
   -------------------------------------------------------------------------- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-bright {
    background: rgba(240, 165, 58, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 165, 58, 0.3);
}

.panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--line);
    border-radius: 24px;
}

.panel-hover {
    transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease, background .35s ease;
}

.panel-hover:hover {
    border-color: rgba(240, 165, 58, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -30px rgba(240, 165, 58, 0.5);
}

/* --------------------------------------------------------------------------
   배경 장식
   -------------------------------------------------------------------------- */
.grid-bg {
    background-image: linear-gradient(rgba(240, 165, 58, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(240, 165, 58, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.glow-orb {
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.ghost-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    color: transparent;
    font-size: 18vw;
    font-weight: 800;
    letter-spacing: -0.02em;
    pointer-events: none;
}

.noise::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   타이포 유틸
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--accent);
}

.eyebrow-center::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.accent {
    color: var(--accent);
}

.text-glow {
    text-shadow: 0 0 30px rgba(240, 165, 58, 0.45);
}

.kr {
    font-family: 'Noto Sans KR', 'Plus Jakarta Sans', sans-serif;
    word-break: keep-all;
}

/* --------------------------------------------------------------------------
   버튼
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1.05rem 2.2rem;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px -18px rgba(255, 255, 255, .5);
}

.btn-accent {
    background: rgba(240, 165, 58, 0.06);
    border-color: rgba(240, 165, 58, 0.35);
    color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 18px 40px -18px rgba(240, 165, 58, .8);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
    padding: .7rem 1.3rem;
    font-size: 10px;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   네비게이션
   -------------------------------------------------------------------------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
    padding: 1rem 3rem;
    background: rgba(11, 16, 32, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: #000;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.brand-en {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.brand-kr {
    display: block;
    margin-top: 3px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
    color: var(--accent);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.25rem;
    padding: .85rem 2rem;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .25s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.is-active {
    color: #fff;
}

.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

.nav-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

.nav-cta {
    display: none;
}

@media (min-width: 1024px) {
    .nav-cta {
        display: inline-flex;
    }
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(11, 16, 32, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 6rem 2.5rem 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.mobile-menu a span {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--text-faint);
    margin-top: .35rem;
}

.mobile-menu a.is-active {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   섹션 레이아웃
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding: 7rem 2rem;
}

@media (min-width: 768px) {
    .section {
        padding: 9rem 3rem;
    }
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 900px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 165, 58, .35), transparent);
}

/* 페이지 상단 히어로 (서브 페이지용) */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 6rem) 2rem 5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
    .page-hero {
        padding: calc(var(--nav-h) + 8rem) 3rem 6rem;
    }
}

.page-hero__ghost {
    position: absolute;
    right: -2%;
    top: 45%;
    font-size: 13vw;
    font-weight: 900;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* 빵부스러기 */
.crumbs {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.crumbs a {
    color: var(--text-faint);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   카드 / 컴포넌트
   -------------------------------------------------------------------------- */
.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(240, 165, 58, 0.08);
    border: 1px solid rgba(240, 165, 58, 0.25);
    color: var(--accent);
    flex-shrink: 0;
}

.icon-box-plain {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
    color: #fff;
}

.stat-num {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* 타임라인 */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), rgba(240, 165, 58, 0.05));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 14px rgba(240, 165, 58, .6);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* 폼 */
.field-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .6rem;
}

.field {
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.field::placeholder {
    color: var(--text-faint);
}

.field:focus {
    outline: none;
    border-color: rgba(240, 165, 58, .6);
    background: rgba(240, 165, 58, 0.04);
    box-shadow: 0 0 0 4px rgba(240, 165, 58, 0.08);
}

textarea.field {
    resize: vertical;
    min-height: 150px;
}

select.field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F0A53A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    padding-right: 2.8rem;
}

select.field option {
    background: var(--bg-panel);
    color: #fff;
}

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(240, 165, 58, 0.02), transparent 40%);
    padding: 5rem 2rem 2.5rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 6rem 3rem 2.5rem;
    }
}

.footer-heading {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-list a,
.footer-list li {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    padding: .35rem 0;
    transition: color .2s ease;
}

.footer-list a:hover {
    color: #fff;
}

.social-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.social-dot:hover {
    background: rgba(240, 165, 58, .12);
    border-color: rgba(240, 165, 58, .5);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   애니메이션
   -------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes scan {
    0%   { top: -10%; }
    100% { top: 110%; }
}

@keyframes pulse-ring {
    0%   { transform: scale(.85); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
    animation: scan 4s linear infinite;
    z-index: 5;
    opacity: 0.3;
}

.perspective-container {
    perspective: 2000px;
}

.goggle-3d {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* ==========================================================================
   3D 인터랙션 엔진
   .scene(원근) > .stage(회전체, preserve-3d) > .layer[data-depth](깊이 레이어)
   ========================================================================== */
.scene {
    perspective: 1500px;
    perspective-origin: 50% 50%;
}

.stage {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.stage.is-live {
    transition: transform .12s linear;
}

.stage[data-drag] {
    cursor: grab;
    touch-action: pan-y;
}

.stage.is-dragging {
    cursor: grabbing;
    transition: none;
}

.layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--z, 0) * 1px * var(--explode, 1)));
    transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
    pointer-events: none;
}

.layer--base {
    position: relative;
}

.layer svg {
    width: 100%;
    height: auto;
}

/* 렌즈 글로우 판 */
.lens-plate {
    width: 62%;
    height: 46%;
    border-radius: 50% / 55%;
    background: radial-gradient(ellipse at 35% 30%, rgba(240, 165, 58, .30), rgba(240, 165, 58, .04) 60%, transparent 75%);
    filter: blur(6px);
}

/* 회전 링 */
.ring-3d {
    width: 78%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px dashed rgba(240, 165, 58, .22);
}

.ring-3d--tight {
    width: 58%;
    border-style: solid;
    border-color: rgba(240, 165, 58, .12);
}

/* HUD 주석 라벨 */
.hud-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    text-shadow: 0 0 14px rgba(240, 165, 58, .6);
}

.hud-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    flex-shrink: 0;
}

.hud-tag small {
    font-size: 8px;
    letter-spacing: .1em;
    color: var(--text-faint);
}

@media (max-width: 1023px) {
    .hud-tag {
        display: none;
    }
}

/* 드래그 안내 */
.drag-hint {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.drag-hint i {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   3D 틸트 카드
   -------------------------------------------------------------------------- */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)) translateZ(0);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .35s ease, box-shadow .35s ease;
    will-change: transform;
}

.tilt.is-live {
    transition: transform .08s linear, border-color .35s ease, box-shadow .35s ease;
}

.tilt:hover {
    border-color: rgba(240, 165, 58, .45);
    box-shadow: 0 32px 70px -34px rgba(240, 165, 58, .55);
}

.tilt__pop {
    transform: translateZ(var(--pop, 40px));
    transform-style: preserve-3d;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------------------
   제품 이미지 프레임
   -------------------------------------------------------------------------- */
.product-shot {
    position: relative;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(240, 165, 58, .07), var(--bg-panel));
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .35s ease;
}

.product-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.product-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 16, 32, .25) 0%, transparent 35%, rgba(11, 16, 32, .55) 100%);
}

.tilt:hover .product-shot {
    border-color: rgba(240, 165, 58, .4);
}

.tilt:hover .product-shot img {
    transform: scale(1.06);
}

/* SVG 라인아트가 들어가는 경우 */
.product-shot--line {
    padding: 1.25rem 1.5rem;
}

.product-shot--line svg {
    width: 100%;
    height: auto;
}

.product-shot--line::after {
    display: none;
}

/* --------------------------------------------------------------------------
   3D 뷰어 컨테이너
   -------------------------------------------------------------------------- */
.viewer-3d {
    position: relative;
    width: 100%;
    height: clamp(340px, 56vh, 600px);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 42%, rgba(240, 165, 58, .10), transparent 62%),
        linear-gradient(170deg, #0B1219, #0B1020);
}

/* 배경 그리드 레이어 */
.viewer-3d__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* WebGL 실패 시 대체 화면 */
.viewer-3d__fallback {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.viewer-3d.is-3d .viewer-3d__fallback {
    display: none;
}

/* 옵션 토글 버튼 (3D 뷰어 컨트롤) */
.opt-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .95rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
}

.opt-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c, #888);
    border: 1px solid rgba(255, 255, 255, .3);
    flex-shrink: 0;
}

.opt-btn:hover {
    border-color: rgba(240, 165, 58, .45);
    color: #fff;
}

.opt-btn.is-on {
    border-color: var(--accent);
    color: #fff;
    background: rgba(240, 165, 58, .08);
    box-shadow: 0 0 18px -6px rgba(240, 165, 58, .7);
}

/* --------------------------------------------------------------------------
   홀로그램 3D 뷰어 — HUD 주석 오버레이
   -------------------------------------------------------------------------- */
.holo-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity .3s ease;
}

.holo-overlay.is-dim {
    opacity: .35;
}

.holo-leaders {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.holo-leader {
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    transition: opacity .35s ease;
}

.holo-tag {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: .5rem .75rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 165, 58, .3);
    background: rgba(4, 12, 18, .68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    transition: opacity .35s ease;
    will-change: transform;
}

.holo-tag b {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 12px rgba(240, 165, 58, .7);
}

.holo-tag span {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
}

/* 주석 앵커 점 */
.holo-tag::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: translateY(-50%);
}

.holo-tag--left::after { right: -13px; }
.holo-tag--right::after { left: -13px; }
.holo-tag--top::after { left: 50%; top: auto; bottom: -13px; transform: translateX(-50%); }

/* --------------------------------------------------------------------------
   컬러 스와치 / 렌즈 옵션 칩
   -------------------------------------------------------------------------- */
.option-block {
    margin-bottom: 2rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.1rem;
}

.option-label b {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .05em;
}

.swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.15rem;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    width: 66px;
}

.swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c, #222);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 2px 7px rgba(255, 255, 255, .16),
                0 6px 14px rgba(0, 0, 0, .55);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.swatch-item:hover .swatch {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 0 0 2px rgba(240, 165, 58, .55),
                0 10px 22px rgba(240, 165, 58, .35);
}

/* 카드용 미니 스와치 */
.swatch-strip {
    display: flex;
    gap: .4rem;
}

.swatch--mini {
    width: 18px;
    height: 18px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .18),
                0 3px 7px rgba(0, 0, 0, .5);
}

.swatch-strip:hover .swatch--mini {
    transform: none;
}

.swatch--clear {
    background: rgba(255, 255, 255, .1);
    border-style: dashed;
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(4px);
}

.swatch-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
    text-align: center;
}

/* 렌즈 옵션 칩 */
.lens-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.lens-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    transition: border-color .3s ease, color .3s ease, background .3s ease;
}

.lens-chip::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c, #888);
    border: 1px solid rgba(255, 255, 255, .3);
    flex-shrink: 0;
}

.lens-chip:hover {
    border-color: rgba(240, 165, 58, .45);
    background: rgba(240, 165, 58, .05);
    color: #fff;
}

/* 3D 스테이지 안에 띄우는 제품 사진 */
.photo-3d {
    width: 74%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    background: var(--bg-panel);
    border: 1px solid rgba(240, 165, 58, .28);
    box-shadow: 0 45px 90px -45px rgba(240, 165, 58, .6),
                inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.photo-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(240, 165, 58, .10), transparent 45%, rgba(11, 16, 32, .5));
}

.photo-3d--tall {
    aspect-ratio: 3 / 4;
    width: 58%;
    max-width: 320px;
}

/* 사진 대기 표시 */
.shot-pending {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-faint);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .25rem .6rem;
    background: rgba(11, 16, 32, .6);
}

/* 커서 글레어 */
.glare {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.glare::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 165, 58, .13), transparent 65%);
}

.glare:hover::before {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   분해도(Exploded view) 컨트롤
   -------------------------------------------------------------------------- */
.explode-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) var(--fill, 50%), rgba(255, 255, 255, .12) var(--fill, 50%));
    cursor: pointer;
}

.explode-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 16px rgba(240, 165, 58, .8);
    cursor: grab;
}

.explode-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 16px rgba(240, 165, 58, .8);
    cursor: grab;
}

/* 레이어 설명 리스트 */
.layer-key {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease;
    text-align: left;
    width: 100%;
    background: transparent;
    color: inherit;
    font-family: inherit;
}

.layer-key:hover,
.layer-key.is-active {
    background: rgba(240, 165, 58, .05);
    border-color: rgba(240, 165, 58, .3);
}

.layer-key__idx {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    color: var(--accent);
    padding-top: 3px;
    flex-shrink: 0;
}

/* 분해도에서 강조되지 않은 레이어 흐리게 */
.stage.has-focus .layer:not(.is-focus) {
    opacity: .18;
}

/* 스크롤 등장 */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--d, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 마퀴 */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee__track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 32s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   홈 히어로 — 스크롤 스크러빙 영상 (assets/js/scrub.js)
   긴 래퍼 안에서 화면 고정 무대가 붙어 있는 동안 스크롤 진행도 --p(0~1)에 맞춰
   프레임이 넘어간다. 위/아래 끝은 선명한 정지 이미지(start/end)로 교차 전환.
   -------------------------------------------------------------------------- */
.hero-scrub { --p: 0; position: relative; height: 400vh; background: var(--bg); }
.hero-scrub--sub { height: 300vh; }  /* 본문 중간 섹션은 조금 짧게 */
.hero-scrub__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-scrub__stage canvas,
.hero-scrub__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 영상은 data-hold=".06 .12" 동안 첫/마지막 프레임에 머문다 */
.hero-scrub__start img { opacity: clamp(0, 1 - (var(--p) - .01) * 20, 1); }  /* .01–.06 선명한 시작 → 영상 */
.hero-scrub__end img { opacity: clamp(0, (var(--p) - .9) * 12.5, 1); }       /* .90–.98 영상 → 검증된 끝 이미지 */

/* 필름 그레인: AI 영상의 매끈함을 감추고 정지 이미지와의 선명도 차이를 줄인다 */
.hero-scrub__stage::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 문구 뒤 어둠 — 왼쪽 아래. 제품(안경다리 · 렌즈)은 화면 위쪽이라 가리지 않는다 */
.hero-scrub__stage::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(20deg, rgba(11, 16, 32, .85), transparent 55%), linear-gradient(180deg, rgba(11, 16, 32, .55), transparent 22%);
}

.hero-scrub__intro,
.hero-scrub__caption { position: absolute; z-index: 2; left: clamp(1.25rem, 6vw, 6rem); right: 1.25rem; bottom: 11vh; max-width: 760px; }
.hero-scrub__intro { opacity: clamp(0, 1 - var(--p) * 8, 1); }
.hero-scrub__caption { opacity: clamp(0, (var(--p) - .8) * 5, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .8) * 5, 1)) * 24px)); }
/* 안 보이는 쪽 문구의 버튼이 눌리지 않게 (scrub.js가 is-started / is-ended를 붙인다) */
.hero-scrub.is-started .hero-scrub__intro,
.hero-scrub:not(.is-ended) .hero-scrub__caption { pointer-events: none; }

.hero-scrub__title { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 900; font-style: italic; letter-spacing: -0.04em; line-height: .95; }
.hero-scrub__caption .hero-scrub__title { font-style: normal; }
.hero-scrub__lead { margin-top: 1.25rem; color: #D6DAE0; font-weight: 600; line-height: 1.7; }
.hero-scrub__hint { position: absolute; z-index: 2; left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: clamp(0, 1 - var(--p) * 10, 1); }

/* 세로 화면: 카메라가 옆으로 움직이며 다가가서, 4:5 프레임을 폰 비율로 더 자르면 인물이
   화면 밖으로 들락거린다. 4:5 전체를 헤더 아래 꽉 채워 보여주고 아래쪽을 길게 흐린다.
   짧은 화면에선 문구가 흐려진 턱 · 목 부분에 올라간다(제품은 위쪽이라 안 가린다). */
@media (max-aspect-ratio: 1/1) {
    .hero-scrub__stage canvas,
    .hero-scrub__still img { top: 72px; bottom: auto; width: 100%; height: auto; aspect-ratio: 4 / 5;
        -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }
    .hero-scrub__stage::after { background: linear-gradient(180deg, rgba(11, 16, 32, .6), transparent 14%); }
    .hero-scrub__intro, .hero-scrub__caption { bottom: max(24px, 5svh); }
    .hero-scrub__hint { display: none; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 720px) {
    .hero-scrub__title { font-size: 2.1rem; }
    .hero-scrub__lead { font-size: 14px; margin-top: .75rem; }
    .hero-scrub__caption .btn { padding: .8rem 1.4rem; }
}

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* 스크러빙 없이 마지막 정지 이미지 한 장만 */
    .hero-scrub { height: 100vh; height: 100svh; }
    .hero-scrub__stage canvas { display: none; }

    .animate-float,
    .scan-line,
    .marquee__track {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* 포커스 가시성 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* 모바일 여백 보정 */
@media (max-width: 640px) {
    .site-nav,
    .site-nav.is-scrolled {
        padding: 1rem 1.25rem;
    }
    .section {
        padding: 5rem 1.25rem;
    }
    .page-hero {
        padding: calc(var(--nav-h) + 3.5rem) 1.25rem 3.5rem;
    }
    .site-footer {
        padding: 4rem 1.25rem 2rem;
    }
}
