/* =========================================================
   명륜클린 - 부산·울산·김해·양산·창원 사업장 정기청소
   ---------------------------------------------------------
   페이지 흐름 (배경 전환)
   VIDEO HERO → DARK 고민 → WHITE 서비스 → FULL PHOTO 비주얼
   → MIST 청소사례(+CTA 띠) → DARK 왜 명륜클린 → WHITE 진행과정
   → DEEP BLUE 마무리 CTA → WHITE 견적문의 → DARK 푸터
   ---------------------------------------------------------
   1. Design tokens
   2. Base / reset
   3. Layout helpers / section system
   4. Buttons
   5. Header / navigation
   6. Hero (video)
   7. Concerns (dark)
   8. Services (white)
   9. Visual break (full photo)
   10. Portfolio (bento) / photo placeholder / mid CTA
   11. About (dark)
   12. Process
   13. Final CTA
   14. Estimate (form)
   15. Footer
   16. Floating CTA
   17. Scroll reveal
   18. Responsive
   ========================================================= */


/* 1. Design tokens ======================================== */
:root {
    /* 브랜드 색상: navy / blue / white */
    --color-navy: #0f2a4a;
    --color-navy-deep: #0a1f38;
    --color-night: #061226;
    --color-night-2: #0b1d38;
    --color-primary: #1a56b8;
    --color-primary-dark: #14469a;
    --color-primary-bright: #2f6fd6;
    --color-primary-soft: #eaf1fb;
    --color-accent-light: #8fb8f7;

    --color-text: #16202e;
    --color-text-sub: #5b6878;
    --color-text-muted: #8a95a5;
    --color-border: #e5eaf2;
    --color-border-strong: #d4ddea;
    --color-bg: #ffffff;
    --color-bg-mist: #f4f7fc;
    --color-placeholder: #e7ebf0;

    --color-night-text: #e2e8f0;
    --color-night-sub: #94a3b8;
    --color-night-line: rgba(148, 163, 184, 0.16);

    --color-kakao: #fee500;
    --color-kakao-text: #191600;
    --color-error: #c62828;

    /* 그라데이션 */
    --grad-primary: linear-gradient(135deg, #14469a 0%, #1a56b8 50%, #2f6fd6 100%);
    --grad-deep: linear-gradient(135deg, #0f2a4a 0%, #1a56b8 60%, #2f6fd6 100%);
    --grad-text: linear-gradient(120deg, #1a56b8 0%, #2f6fd6 60%, #4a8ae8 100%);
    --grad-text-light: linear-gradient(115deg, #b9d3fb 10%, #8fb8f7 50%, #d4e4ff 90%);
    --grad-night: linear-gradient(180deg, #061226 0%, #0a1c36 55%, #061226 100%);

    --font-base: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
                 "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;

    /* 레이아웃 */
    --container: 1200px;
    --gutter: 24px;
    --header-height: 76px;
    --section-space: 120px;

    /* 형태 */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* 그림자: 흰 섹션은 약하게, 강조 카드만 강하게 */
    --shadow-xs: 0 1px 2px rgba(15, 42, 74, 0.05);
    --shadow-sm: 0 4px 16px -6px rgba(15, 42, 74, 0.10);
    --shadow-md: 0 14px 40px -10px rgba(26, 86, 184, 0.22);
    --shadow-lg: 0 32px 80px -20px rgba(6, 18, 38, 0.45);

    /* 움직임 */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.22, 0.75, 0.3, 1);
    --transition: 0.3s var(--ease);
}


/* 2. Base / reset ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
    margin: 0;
}

/* 한글 줄바꿈: 마지막 줄에 한 단어만 남지 않도록 */
p { text-wrap: pretty; }

.final-cta-desc,
.break-desc,
.mid-cta-desc,
.section-head.is-center .section-desc { text-wrap: balance; }

ul, ol {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--color-navy);
    color: #fff;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
}

.br-pc { display: inline; }


/* 3. Layout helpers / section system ===================== */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    position: relative;
    padding: var(--section-space) 0;
}

/* 섹션 성격에 따라 여백을 다르게: 큰 메시지는 넓게, 정보 영역은 촘촘하게 */
.section.concerns  { padding: 144px 0 128px; }
#services          { padding: 128px 0 120px; }
#portfolio         { padding: 120px 0 128px; }
#about             { padding: 144px 0; }
#process           { padding: 120px 0 128px; }

.section-white { background: #fff; }
.section-mist  { background: var(--color-bg-mist); }

/* 어두운 섹션: 장식(격자·빛 번짐) 없이 딥네이비 면만 사용 */
.section-night {
    overflow: hidden;
    background: var(--grad-night);
    color: var(--color-night-text);
}

.section-night > .container {
    position: relative;
    z-index: 1;
}

/* 섹션 머리말: 텍스트 eyebrow → 큰 제목 → 조용한 설명 */
.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-head.is-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.is-center .section-desc {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 64px;
    max-width: none;
}

.section-head-row .section-desc {
    max-width: 380px;
    margin-top: 0;
    padding-bottom: 6px;
}

/* 배지 상자 대신 짧은 선 + 넓은 자간의 텍스트 라벨 */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--color-primary);
}

.section-badge::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.6;
}

.section-badge.is-dark { color: var(--color-accent-light); }

.badge-dot { display: none; }

.section-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.035em;
    color: var(--color-navy);
    text-wrap: balance;
}

/* 큰 메시지 섹션은 한 단계 크게 */
.concerns .section-title { font-size: 52px; line-height: 1.22; }

.section-night .section-title { color: #f8fafc; }

.section-desc {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-sub);
}

.section-night .section-desc { color: var(--color-night-sub); }
.section-desc strong { color: var(--color-text); font-weight: 700; }

/* 강조 단어: 그라데이션 대신 단색 (밝은 배경은 브랜드 블루, 어두운 배경은 라이트 블루) */
.text-gradient       { color: var(--color-primary); }
.text-gradient-light { color: var(--color-accent-light); }


/* 4. Buttons ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn-sm    { min-height: 42px; padding: 8px 20px; font-size: 14px; }
.btn-lg    { min-height: 56px; padding: 14px 30px; font-size: 16px; }
.btn-xl    { min-height: 58px; padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* 주요 CTA의 화살표: hover 시 오른쪽으로 살짝 이동 */
.btn-arrow::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 4px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 기본 CTA: 단색 브랜드 블루 (그라데이션은 넓은 배경에만 사용) */
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 20px -8px rgba(26, 86, 184, 0.6);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 12px 28px -10px rgba(26, 86, 184, 0.7);
}

.btn-white {
    background: #fff;
    color: var(--color-navy);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}
.btn-white:hover {
    color: var(--color-primary);
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5);
}

/* 어두운 배경 위 보조 버튼: 투명 + 얇은 테두리 */
.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.btn-glass:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.12);
}

.btn-light {
    border-color: var(--color-border-strong);
    background: #fff;
    color: var(--color-navy);
}
.btn-light:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-kakao {
    background: var(--color-kakao);
    color: var(--color-kakao-text);
}
.btn-kakao:hover { background: #f2d900; }
.btn-kakao .btn-icon { fill: currentColor; stroke: none; }

/* 마무리 CTA의 가장 강한 버튼: 효과 대신 크기와 대비로 강조 */
.btn-strong {
    min-height: 64px;
    padding: 18px 44px;
    font-size: 17px;
}

.section-night .btn:focus-visible,
.hero .btn:focus-visible,
.visual-break .btn:focus-visible,
.final-cta .btn:focus-visible,
.mid-cta .btn:focus-visible,
.site-footer a:focus-visible {
    outline-color: #fff;
}


/* 5. Header / navigation ================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eef1f6;
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 6px 24px -12px rgba(15, 42, 74, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--color-navy);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 12px;
    color: var(--color-text-muted);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 메뉴: hover 시 밑줄이 가운데서 펼쳐지고, 현재 보고 있는 섹션은 활성 표시 (JS .is-active) */
.nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #3b4757;
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-navy);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 14px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--color-navy);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 6. Hero (video) ========================================= */
/* 배경(영상 또는 대표사진)이 화면을 채우고, 그 위에 카피·CTA·정보 카드가 떠 있는 구조 */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(700px, calc(100svh - var(--header-height)), 980px);
    overflow: hidden;
    background: var(--color-night);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 세로형 대표사진: 작업자와 장비(원본 기준 세로 약 32~61% 지점)가 보이도록 */
.hero-fallback,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

/* 영상은 실제 재생이 시작된 뒤에만 표시 (JS가 .is-video-on 추가)
   준비 전에는 .hero 네이비 배경이 보이고, 대표사진은 영상이 재생되지 않을 때만(.is-video-failed) 표시 */
.hero-fallback,
.hero-video {
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.hero.is-video-on .hero-video,
.hero.is-video-failed .hero-fallback { opacity: 1; }

/* JS 없이도 배경이 비지 않도록: 스크립트 미동작 시 영상(자동재생)·대표사진 표시, 움직임 줄이기 설정은 처음부터 대표사진 */
@media (scripting: none) {
    .hero-fallback,
    .hero-video { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fallback { opacity: 1; transition: none; }
}

/* 텍스트 쪽(왼쪽)만 짙게, 오른쪽 배경 사진·영상은 거의 그대로 보이도록 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(80deg, rgba(6, 18, 38, 0.78) 0%, rgba(6, 18, 38, 0.42) 38%, rgba(6, 18, 38, 0) 64%),
        linear-gradient(180deg, rgba(6, 18, 38, 0.22) 0%, rgba(6, 18, 38, 0) 20%, rgba(6, 18, 38, 0) 48%, rgba(6, 18, 38, 0.72) 100%);
}

/* 왼쪽 한 열에 카피를 모으고, 오른쪽은 배경 사진·영상에 양보 */
/* 카피를 화면 아래쪽에 앉혀 위쪽 배경이 시원하게 보이도록 */
.hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-top: 140px;
    padding-bottom: 72px;
}

.hero-content {
    max-width: 820px;
}

/* 브랜드·서비스 라벨: 상자 없이 텍스트로 */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #dbe7fb;
}

.eyebrow-sep {
    width: 1px;
    height: 13px;
    background: rgba(219, 231, 251, 0.45);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-title-accent {
    color: var(--color-accent-light);
}

.hero-desc {
    max-width: 520px;
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(226, 236, 250, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* 보조 정보: 카드 대신 얇은 구분선과 타이포그래피만 사용 */
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-fact {
    padding-right: 32px;
    margin-right: 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-fact:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.hero-fact dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(169, 201, 251, 0.85);
}

.hero-fact dd {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Hero 하단 업종 띠 */
.hero-sectors {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 18, 38, 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sector-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

/* 업종 띠의 상세페이지 링크 (현재: 사무실, 병원) */
.sector-link {
    display: inline-block;
    /* 레이아웃 높이는 그대로 두고 터치 영역만 위아래로 확장 */
    padding: 10px 0;
    margin: -10px 0;
    text-decoration: underline;
    text-decoration-color: rgba(143, 184, 247, 0.6);
    text-underline-offset: 5px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

/* 링크 항목 표시용 화살표 (inline-block이라 밑줄은 텍스트에만 적용) */
.sector-arrow {
    display: inline-block;
    margin-left: 4px;
    color: #8fb8f7;
    transition: transform var(--transition), color var(--transition);
}

.sector-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.sector-link:hover .sector-arrow,
.sector-link:focus-visible .sector-arrow {
    color: #fff;
    transform: translateX(3px);
}

.sector-link:focus-visible { outline-color: #fff; }

.sector-list li + li::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 16px;
    vertical-align: middle;
    border-radius: 50%;
    background: rgba(143, 184, 247, 0.7);
}


/* 7. Concerns (dark) ====================================== */
.concern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.concern-item {
    overflow: hidden;
    border: 1px solid var(--color-night-line);
    border-radius: 22px;
    background: rgba(13, 30, 56, 0.72);
    box-shadow: 0 18px 40px -16px rgba(2, 6, 23, 0.6);
}

.concern-item:hover {
    transform: translateY(-4px);
    border-color: rgba(127, 176, 245, 0.35);
    box-shadow: 0 24px 48px -16px rgba(2, 6, 23, 0.7);
}

.concern-media {
    aspect-ratio: 3 / 2;
}

/* 세로형 원본을 카드 이미지에 맞출 때 핵심 공간이 보이도록 */
.photo .cc-office     { object-position: 50% 50%; }
.photo .cc-restaurant { object-position: 50% 45%; }
.photo .cc-hospital   { object-position: 50% 60%; }

.concern-body {
    padding: 26px 28px 30px;
}

.concern-tag {
    display: inline-flex;
    padding: 5px 13px;
    border: 1px solid rgba(127, 176, 245, 0.35);
    border-radius: var(--radius-pill);
    background: rgba(47, 111, 214, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #a9c9fb;
}

.concern-title {
    margin-top: 16px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

.concern-desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-night-sub);
}

.concern-bridge {
    margin-top: 72px;
    text-align: center;
}

.concern-bridge-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-night-text);
}

.concern-bridge-title em {
    font-style: normal;
    color: var(--color-accent-light);
}

.concern-bridge-desc {
    margin-top: 10px;
    font-size: 15px;
    color: #7c8aa5;
}


/* 8. Services (white) ===================================== */
/* editorial 구성: 대표 서비스(큰 사진 7 : 텍스트 5) → 핵심 3개(세로 사진 + 텍스트) → 그 외 4개(텍스트 목록)
   카드 상자 없이 사진과 타이포그래피만으로 위계를 만듦 */
.service-item {
    position: relative;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-primary);
}

.service-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--color-navy);
}

.service-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-sub);
}

/* 사진 공통: 둥근 모서리 + hover 시 아주 약한 확대 */
.svc-media {
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-lg);
}

.svc-media img {
    transition: transform 0.8s var(--ease-out);
}

.svc-feature:hover .svc-media img,
.svc-item:hover .svc-media img {
    transform: scale(1.03);
}

.photo .svc-img-office     { object-position: 50% 50%; }
.photo .svc-img-hospital   { object-position: 50% 62%; }
.photo .svc-img-store      { object-position: 50% 60%; }
.photo .svc-img-restaurant { object-position: 50% 48%; }

/* 번호 + 카테고리 */
.svc-index {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.svc-no {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-navy);
}

.svc-no::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-left: 14px;
    vertical-align: middle;
    background: var(--color-border-strong);
}

.svc-name {
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--color-navy);
}

.svc-desc {
    color: var(--color-text-sub);
}

/* 대표 서비스: 큰 사진 + 큰 타이포 */
.svc-feature {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: center;
}

.svc-feature .svc-media { aspect-ratio: 4 / 3; }

.svc-feature .svc-name {
    margin-top: 20px;
    font-size: 44px;
    line-height: 1.2;
}

.svc-feature .svc-desc {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.75;
}

.svc-feature .service-areas {
    margin-top: 28px;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid currentColor;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.svc-link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.svc-link:hover { gap: 14px; color: var(--color-primary-dark); }

/* 핵심 서비스 3개: 세로 사진 + 텍스트 (상자 없음) */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    margin-top: 96px;
}

.svc-item .svc-media {
    aspect-ratio: 4 / 5;
    margin-bottom: 26px;
}

.svc-item .svc-name {
    margin-top: 14px;
    font-size: 26px;
    line-height: 1.3;
}

.svc-item .svc-desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
}

.svc-item .service-areas { margin-top: 18px; }

/* 관리 공간: 체크 표시 목록 */
.service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.service-areas li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
}

.service-areas li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.42em;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

/* 그 외 관리 사업장 */
.service-sub-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 88px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-navy);
}

.service-sub-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border-strong);
}

/* 카드가 아닌 목록: 아이콘 + 텍스트, hover 시 위쪽 선이 펼쳐짐 */
.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 32px;
}

.service-item.is-compact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 0 4px;
}

.service-item.is-compact::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.4s var(--ease);
}

.service-item.is-compact:hover::before { width: 100%; }

.is-compact .service-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.is-compact .service-icon svg { width: 19px; height: 19px; }
.is-compact .service-desc { margin-top: 6px; }

/* 8-1. 서비스 장면 기본 배치 (JS 미동작·태블릿 이하에서도 쓰이는 형태)
   PC 고정 무대 연출은 19. Scroll scenes 에서 .js-scenes 일 때만 적용 */
.svc-panels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 56px 32px;
}

.svc-panel-media {
    aspect-ratio: 4 / 5;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
}

.svc-panel .svc-name {
    margin-top: 12px;
    font-size: 26px;
    line-height: 1.3;
}

.svc-panel .svc-desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
}

.svc-panel .service-areas { margin-top: 18px; }
.svc-panel .svc-link { margin-top: 24px; }

.svc-stage { display: none; }


/* 9. Visual break (full photo) =========================== */
/* 정보 카드 흐름을 끊는 '광고 한 장면' 구간: 넓은 현장 사진 + 짧은 카피 + CTA */
.visual-break {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(540px, 80vh, 780px);
    overflow: hidden;
    background: var(--color-night);
    color: #fff;
}

/* 고정 연출용 감싸개 (기본 상태에서는 레이아웃에 영향 없음) */
.break-sticky { width: 100%; }

.break-media {
    position: absolute;
    inset: 0;
}

/* 세로형 작업 사진: 작업자와 바닥 청소 장비(원본 기준 세로 약 30~55% 지점)가 띠 안에 보이도록 */
.break-media img,
.break-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}

.break-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 18, 38, 0.86) 0%, rgba(6, 18, 38, 0.50) 50%, rgba(6, 18, 38, 0.20) 100%),
        linear-gradient(180deg, rgba(6, 18, 38, 0.25) 0%, rgba(6, 18, 38, 0) 30%, rgba(6, 18, 38, 0.45) 100%);
}

.break-inner {
    position: relative;
    z-index: 1;
    padding-top: 96px;
    padding-bottom: 96px;
}

.break-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.32em;
    color: #a9c9fb;
}

.break-title {
    margin-top: 20px;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.break-desc {
    max-width: 520px;
    margin-top: 22px;
    font-size: 18px;
    color: rgba(226, 236, 250, 0.88);
}

.break-inner .btn {
    margin-top: 40px;
}


/* 10. Portfolio (bento) / photo placeholder ============== */
/* .photo: 이미지가 없을 때 회색 안내 영역을 보여주는 공통 컨테이너 */
.photo {
    position: relative;
    overflow: hidden;
    background: var(--color-placeholder);
}

.photo::before {
    content: attr(data-placeholder);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    background-image:
        linear-gradient(135deg, transparent 49.6%, #d6dce4 49.6%, #d6dce4 50.4%, transparent 50.4%);
}

.photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo.is-missing img {
    display: none;
}

/* 대표 사례 1(크게, 2행) + 세로 2 + 가로 배너 2 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 290px 290px 330px;
    gap: 20px;
}

.portfolio-item {
    position: relative;
    grid-column: span 5;
    overflow: hidden;
    isolation: isolate; /* 사진 확대 시에도 둥근 모서리 유지 (Safari) */
    border-radius: var(--radius-lg);
    background: var(--color-placeholder);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

/* 사진 가장자리의 얇은 하이라이트 */
.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.portfolio-item:hover {
    box-shadow: 0 22px 50px -20px rgba(6, 18, 38, 0.45);
}

.portfolio-item.is-lead {
    grid-column: span 7;
    grid-row: span 2;
}

.portfolio-item.is-wide {
    grid-column: span 6;
}

.portfolio-figure {
    position: relative;
    height: 100%;
}

.portfolio-figure .photo {
    height: 100%;
}

.portfolio-figure .photo img {
    transition: transform 0.7s var(--ease-out);
}

.portfolio-item:hover .photo img {
    transform: scale(1.03);
}

/* 청소사례 사진별 초점 위치 */
.photo .pf-office     { object-position: 50% 50%; }
.photo .pf-hospital   { object-position: 50% 60%; }
.photo .pf-restaurant { object-position: 50% 48%; }
.photo .pf-cafe       { object-position: 50% 55%; }
.photo .pf-stairs     { object-position: 50% 32%; }

/* 사진 위 최소 정보: 업종 + 작업 */
.portfolio-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 56px 28px 24px;
    background: linear-gradient(0deg, rgba(6, 18, 38, 0.82) 0%, rgba(6, 18, 38, 0.38) 60%, rgba(6, 18, 38, 0) 100%);
    color: #fff;
}

.portfolio-type {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.portfolio-work {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* 사진 왼쪽 위의 사례 번호 (포트폴리오 느낌) */
.portfolio-grid { counter-reset: case; }
.portfolio-item { counter-increment: case; }

.portfolio-figure::before {
    content: "CASE " counter(case, decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.is-lead .portfolio-caption { padding: 80px 36px 32px; }
.is-lead .portfolio-work    { font-size: 26px; }

/* 가로 배너형: 왼쪽 그라데이션 위에 텍스트 */
.is-wide .portfolio-caption {
    top: 0;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(90deg, rgba(6, 18, 38, 0.78) 0%, rgba(6, 18, 38, 0.30) 55%, rgba(6, 18, 38, 0) 100%);
}

.is-wide .portfolio-work { font-size: 22px; }

/* 본문 중간 CTA: 네이비 → 블루 그라데이션 띠 */
.mid-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
    margin-top: 80px;
    padding: 52px 56px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, #0a1c36 0%, #0f2a4a 38%, #1a56b8 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.mid-cta-text,
.mid-cta-actions {
    position: relative;
}

.mid-cta-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
    color: #a9c9fb;
}

.mid-cta-title {
    margin-top: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.mid-cta-desc {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(226, 236, 250, 0.78);
}

.mid-cta-actions {
    flex-shrink: 0;
}


/* 11. About (dark) ======================================== */
/* 브랜드 섹션: 작업자 사진이 주 비주얼(왼쪽 큰 세로 사진 + 사진 위 캡션), 오른쪽은 큰 제목 → 관리 방식 01~05 */
.about-inner {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 88px;
    align-items: start;
}

.about-visual {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.about-media {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* 세로형 작업 사진: 작업자와 폴리셔(원본 기준 세로 약 31~68% 지점)가 중앙에 오도록 */
.about-media img {
    object-position: 50% 52%;
}

/* 사진 아래쪽에 얹는 브랜드 캡션 */
.about-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 96px 36px 34px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    background: linear-gradient(0deg, rgba(6, 18, 38, 0.86) 0%, rgba(6, 18, 38, 0.45) 55%, rgba(6, 18, 38, 0) 100%);
}

.about-badge-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--color-accent-light);
}

.about-badge-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.about-content {
    padding-top: 12px;
}

.about-head {
    margin-bottom: 44px;
}

.about-head .section-title { font-size: 48px; line-height: 1.24; }

/* 관리 방식 01~05: 상자 대신 큰 번호 + 제목 + 설명, 항목 사이 얇은 선 */
.feature-list {
    display: grid;
    border-top: 1px solid var(--color-night-line);
}

.feature-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-night-line);
}

.feature-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(143, 184, 247, 0.55);
    transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
}

.feature-item:hover .feature-num {
    color: var(--color-accent-light);
    -webkit-text-stroke-color: var(--color-accent-light);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

.feature-desc {
    margin-top: 6px;
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--color-night-sub);
}


/* 12. Process ============================================= */
/* editorial timeline: 큰 번호가 주인공, 얇은 선 위에 단계가 놓임. 아이콘은 보조로 작게 */
.process-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--color-border-strong);
}

.process-step {
    position: relative;
    padding: 36px 28px 0 0;
}

/* 선 위의 단계 표시 점 */
.process-step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--color-border-strong);
    transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.process-step:hover::before,
.process-step.is-final::before {
    background: var(--color-primary);
    box-shadow: inset 0 0 0 2px var(--color-primary), 0 0 0 5px rgba(26, 86, 184, 0.12);
}

.process-num {
    display: block;
    font-size: 76px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: #dbe5f3;
    transition: color 0.35s var(--ease);
}

.process-step:hover .process-num,
.process-step.is-final .process-num {
    color: var(--color-primary);
}

.process-icon {
    position: absolute;
    top: 40px;
    right: 28px;
    display: inline-flex;
    color: var(--color-text-muted);
}

.process-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-title {
    margin-top: 28px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-navy);
}

.process-desc {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--color-text-sub);
}


/* 12-1. CEO message ======================================= */
/* 카드 없이 한 장면: 왼쪽 흑백 현장사진(섹션 높이 전체)이 오른쪽으로 갈수록 본문 배경에 녹아들고,
   오른쪽은 넓은 여백 위 인사말 + 서명. 사진은 원본 흑백 그대로 사용 */
.ceo {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 920px;
    overflow: hidden;
    background: var(--color-bg-mist);
}

.ceo-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 62%;
    margin: 0;
    overflow: hidden;
}

/* 세로 원본에서 대표와 바닥 청소 장비(세로 약 32~60%)를 크게: 1.4배 확대하고 오른쪽 기준으로 키워
   장비는 사진 영역 왼쪽, 대표는 가운데 쪽에 오도록 (페이드 구간에 얼굴이 묻히지 않게) */
.ceo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 46%;
    transform: scale(1.4);
    transform-origin: 80% 46%;
}

/* 오른쪽으로 갈수록 본문 배경색으로 녹아듦 + 위아래 가장자리도 살짝 */
.ceo-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(244, 247, 252, 0) 60%, rgba(244, 247, 252, 0.75) 82%, var(--color-bg-mist) 97%),
        linear-gradient(180deg, rgba(244, 247, 252, 0.35) 0%, rgba(244, 247, 252, 0) 14%, rgba(244, 247, 252, 0) 86%, rgba(244, 247, 252, 0.45) 100%);
    pointer-events: none;
}

.ceo-body {
    position: relative;
    z-index: 1;
    grid-column: 2;
    align-self: center;
    padding: 152px max(var(--gutter), calc((100vw - var(--container)) / 2)) 128px 24px;
}

.ceo-body-inner { max-width: 520px; }

.ceo-lead {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.035em;
    color: var(--color-navy);
    word-break: keep-all;
}

.ceo-text { margin-top: 44px; }

.ceo-text p {
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: -0.015em;
    color: #2f3b4d;
    word-break: keep-all;
}

.ceo-text p + p { margin-top: 1.2em; }

/* 서명: '대표'는 작고 굵은 고딕, '이훈'은 절제된 붓 서체 (로딩 실패 시 궁서 → 명조) */
.ceo-sign {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 56px;
}

.ceo-sign-role {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-navy);
}

.ceo-sign-name {
    font-family: "Nanum Brush Script", "Gungsuh", "궁서", "GungSeo", "AppleMyungjo", serif;
    margin-top: -10px; /* 붓 서체 글자 위쪽의 내장 여백 보정 */
    font-size: 80px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1b2433;
}

@media (max-width: 1100px) {
    .ceo { min-height: 860px; }
    .ceo-body { padding-left: 8px; }
    .ceo-lead { font-size: 26px; }
    .ceo-text p { font-size: 17px; }
}

/* 태블릿·모바일: 사진 → 인사말 → 서명 세로 흐름, 사진은 아래쪽으로 배경에 녹아듦 */
@media (max-width: 900px) {
    .ceo {
        display: block;
        min-height: 0;
    }

    .ceo-photo {
        position: relative;
        width: 100%;
        aspect-ratio: 4 / 5;
        max-height: 640px;
    }

    .ceo-photo img {
        object-position: 50% 46%;
        transform: scale(1.3);
        transform-origin: 50% 47%;
    }

    .ceo-photo::after {
        background: linear-gradient(180deg, rgba(244, 247, 252, 0) 62%, rgba(244, 247, 252, 0.75) 86%, var(--color-bg-mist) 100%);
    }

    .ceo-body {
        margin-top: -24px;
        padding: 0 var(--gutter) 96px;
    }

    .ceo-body-inner { max-width: 560px; }
}

@media (max-width: 640px) {
    .ceo-body { padding-bottom: 72px; }
    .ceo-lead { font-size: 22px; line-height: 1.45; }
    .ceo-text { margin-top: 28px; }
    .ceo-text p { font-size: 16px; line-height: 1.85; }
    .ceo-text p + p { margin-top: 1.15em; }
    .ceo-sign { margin-top: 44px; gap: 2px; }
    .ceo-sign-role { font-size: 13px; }
    .ceo-sign-name { font-size: 66px; }
}


/* 13. Final CTA =========================================== */
.final-cta {
    position: relative;
    padding: 160px 0 168px;
    overflow: hidden;
    background: linear-gradient(135deg, #061a33 0%, #0f2a4a 38%, #1a56b8 100%);
    color: #fff;
    text-align: center;
}

/* 격자 무늬 없이, 오른쪽 아래만 아주 옅게 밝힘 */
.final-cta-deco {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 90%, rgba(47, 111, 214, 0.22), transparent 50%);
    pointer-events: none;
}

.final-cta-inner {
    position: relative;
    z-index: 1;
}

.final-cta-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.final-cta-facts li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.final-cta-facts li:first-child { border-left: 0; }

.final-cta-facts strong { font-size: 15px; font-weight: 700; }
.final-cta-facts span   { font-size: 13px; color: rgba(207, 224, 251, 0.75); }

.final-cta-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.final-cta-desc {
    max-width: 640px;
    margin: 24px auto 0;
    font-size: 19px;
    color: rgba(226, 236, 250, 0.8);
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}


/* 14. Estimate (form) ===================================== */
.estimate {
    padding: var(--section-space) 0;
    background: linear-gradient(180deg, #fff 0%, var(--color-bg-mist) 100%);
}

.estimate-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
    align-items: start;
}

.estimate-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
    color: var(--color-navy);
}

.estimate-desc {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-sub);
}

.estimate-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
}

.estimate-checklist li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
}

.estimate-checklist li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    width: 12px;
    height: 7px;
    margin-top: -5px;
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

.estimate-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.estimate-contact:not(:has(a:not([hidden]))) {
    display: none;
}

.estimate-form-wrap {
    padding: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    color: var(--color-text);
    box-shadow: 0 30px 80px -24px rgba(15, 42, 74, 0.28);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
}

.req {
    color: var(--color-error);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    background: #fbfcfe;
    font-size: 16px; /* iOS 확대 방지 */
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.form-field select {
    appearance: none;
    padding-right: 42px;
    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' fill='none' stroke='%235b6878' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9aa5b3;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: #a9b8cc;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(26, 86, 184, 0.14);
}

.form-field .is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.10);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 26px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--color-bg-mist);
    font-size: 14px;
    color: var(--color-text-sub);
}

.form-consent input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-consent label {
    cursor: pointer;
}

.consent-body {
    flex: 1;
    min-width: 0;
}

.consent-tag {
    font-weight: 700;
    color: var(--color-primary);
}

/* 개인정보 수집·이용 안내 (펼쳐보기) */
.consent-details summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    list-style: none;
}

.consent-details summary::-webkit-details-marker { display: none; }

.consent-details summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition);
}

.consent-details[open] summary::after { transform: translateY(1px) rotate(-135deg); }

.consent-details summary:hover { color: var(--color-text-sub); }

.consent-info {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-strong);
    font-size: 13px;
    line-height: 1.6;
}

.consent-info div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px;
}

.consent-info dt {
    font-weight: 600;
    color: var(--color-text);
}

.consent-info dd { margin: 0; }

.form-consent.is-invalid {
    box-shadow: inset 0 0 0 1px var(--color-error);
}

.form-consent.is-invalid label {
    color: var(--color-error);
}

.estimate-form .btn-primary {
    min-height: 60px;
    font-size: 17px;
}

.form-status {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
}

.form-status:empty {
    display: none;
}

.form-status.is-error { color: var(--color-error); }
.form-status.is-info {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-navy);
}

.form-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
}


/* 15. Footer ============================================== */
.site-footer {
    background: var(--color-night);
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 64px;
}

.footer-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.footer-tagline {
    margin-top: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-services {
    margin-top: 16px;
    line-height: 1.8;
}

.footer-heading {
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
}

.footer-nav ul {
    display: grid;
    gap: 10px;
}

.footer-nav a {
    transition: color var(--transition);
}

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

.footer-dl {
    display: grid;
    gap: 10px;
}

.footer-dl > div {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
}

.footer-dl dt {
    color: rgba(255, 255, 255, 0.45);
}

.footer-dl dd {
    color: rgba(255, 255, 255, 0.85);
}

.footer-dl dd a:hover {
    text-decoration: underline;
}

.footer-contact .btn {
    margin-top: 22px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
}

a.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}


/* 16. Floating CTA ======================================== */
.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 24px 0 20px;
    border-radius: var(--radius-pill);
    background: var(--grad-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 34px -8px rgba(26, 86, 184, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow var(--transition);
}

.floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.floating-cta.is-visible:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -8px rgba(26, 86, 184, 0.7);
}

.floating-cta:focus-visible {
    outline-color: var(--color-navy);
    outline-offset: 3px;
}

.floating-cta-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* JS가 없는 환경에서도 버튼이 보이도록 */
.no-js .floating-cta {
    opacity: 1;
    visibility: visible;
    transform: none;
}


/* 17. Scroll reveal ======================================= */
/* JS가 html.js-reveal 을 붙인 뒤에만 숨김 → JS 미동작 시에도 내용은 항상 보임
   등장은 translate 속성, hover는 transform 속성을 써서 서로 충돌하지 않음 */
.js-reveal .reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
        opacity 0.8s var(--ease-out) var(--reveal-delay, 0s),
        translate 0.8s var(--ease-out) var(--reveal-delay, 0s),
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* 등장 효과가 없는 카드의 hover 전환 */
.concern-item,
.service-item,
.process-step,
.feature-item {
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition), background-color var(--transition);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .js-reveal .reveal {
        opacity: 1;
        translate: none;
    }

    .btn:hover,
    .concern-item:hover,
    .service-item:hover,
    .process-step:hover,
    .portfolio-item:hover .photo img {
        transform: none;
    }
}


/* 18. Responsive ========================================== */
.br-mo { display: none; }

/* Tablet landscape */
@media (max-width: 1100px) {
    :root {
        --section-space: 104px;
    }

    .section.concerns { padding: 128px 0 112px; }
    #services, #portfolio, #process { padding: 112px 0; }
    #about { padding: 128px 0; }

    .hero-title { font-size: 52px; }

    .svc-feature { gap: 44px; }
    .svc-feature .svc-name { font-size: 38px; }
    .svc-grid { gap: 32px 24px; margin-top: 80px; }
    .svc-item .svc-name { font-size: 23px; }

    .section-title { font-size: 40px; }
    .concerns .section-title { font-size: 46px; }
    .about-head .section-title { font-size: 40px; }

    .service-list { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
    .service-list .service-item.is-compact { padding-bottom: 22px; }

    .portfolio-grid { grid-template-rows: 240px 240px 280px; }

    .about-inner { gap: 56px; }

    .process-step { padding-right: 20px; }
    .process-num { font-size: 60px; }
    .process-icon { right: 20px; }
    .process-title { font-size: 18px; }
    .process-desc { font-size: 14px; }

    .break-title,
    .final-cta-title { font-size: 46px; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Tablet portrait / mobile menu */
@media (max-width: 900px) {
    :root {
        --header-height: 64px;
        --section-space: 96px;
    }

    .section.concerns,
    #services, #portfolio, #about, #process { padding: 96px 0; }

    .br-pc { display: none; }

    /* 모바일 메뉴 */
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0 0 20px 20px;
        background: #fff;
        box-shadow: 0 24px 40px -16px rgba(15, 42, 74, 0.3);
    }

    .site-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 22px;
    }

    .nav-link {
        display: block;
        padding: 15px 4px;
        border-bottom: 1px solid #f0f3f8;
        font-size: 16px;
    }

    .nav-link::after { display: none; }
    .nav-link.is-active { color: var(--color-primary); }

    .nav-cta {
        margin: 16px 0 0;
        width: 100%;
        min-height: 52px;
        font-size: 16px;
    }

    /* Hero: 세로로 읽히도록 어두운 막을 위아래로, 사진이 카피 위로 보이도록 최소 높이 */
    .hero { min-height: min(calc(100svh - var(--header-height)), 820px); }

    .hero-inner {
        padding-top: 88px;
        padding-bottom: 64px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(6, 18, 38, 0.25) 0%, rgba(6, 18, 38, 0.12) 30%, rgba(6, 18, 38, 0.62) 58%, rgba(6, 18, 38, 0.9) 100%);
    }

    .hero-title { font-size: 46px; }
    .hero-inner { padding-top: 120px; }

    .sector-list { justify-content: flex-start; }

    .section-head { margin-bottom: 44px; }
    .section-title { font-size: 34px; }
    .concerns .section-title { font-size: 38px; }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head-row .section-desc { max-width: none; padding-bottom: 0; }

    /* 고민: 옆으로 넘기는 카드 */
    .concern-grid {
        display: flex;
        gap: 14px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }

    .concern-grid::-webkit-scrollbar { display: none; }

    .concern-item {
        flex: 0 0 46%;
        scroll-snap-align: start;
    }

    .concern-bridge { margin-top: 48px; }
    .concern-bridge-title { font-size: 22px; }

    /* 서비스: 대표는 사진 위·텍스트 아래, 핵심 3개는 옆으로 넘기기 */
    .svc-feature { grid-template-columns: 1fr; gap: 32px; }
    .svc-feature .svc-name { margin-top: 16px; font-size: 36px; }

    .svc-grid {
        display: flex;
        gap: 20px;
        margin: 72px calc(var(--gutter) * -1) 0;
        padding: 0 var(--gutter) 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }
    .svc-grid::-webkit-scrollbar { display: none; }
    .svc-item { flex: 0 0 44%; scroll-snap-align: start; }
    .service-sub-label { margin-top: 64px; }

    /* 서비스 장면: 태블릿·모바일은 고정 연출 없이 옆으로 넘기는 카드 */
    .svc-panels {
        display: flex;
        gap: 20px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter) 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }
    .svc-panels::-webkit-scrollbar { display: none; }
    .svc-panel { flex: 0 0 44%; scroll-snap-align: start; }

    .visual-break { min-height: 520px; }
    .break-media::after {
        background: linear-gradient(180deg, rgba(6, 18, 38, 0.45) 0%, rgba(6, 18, 38, 0.72) 100%);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        gap: 16px;
    }

    .portfolio-item,
    .portfolio-item.is-lead,
    .portfolio-item.is-wide {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 4 / 5;
    }

    .portfolio-item.is-lead,
    .portfolio-item.is-wide {
        grid-column: span 2;
        aspect-ratio: 16 / 10;
    }

    .is-wide .portfolio-caption {
        top: auto;
        justify-content: flex-end;
        padding: 56px 24px 22px;
        background: linear-gradient(0deg, rgba(6, 18, 38, 0.82) 0%, rgba(6, 18, 38, 0.38) 60%, rgba(6, 18, 38, 0) 100%);
    }

    .mid-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 44px 36px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-visual {
        position: relative;
        top: auto;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .about-media { aspect-ratio: 4 / 5; }

    /* 진행과정: 세로 editorial 목록 (큰 번호 왼쪽, 내용 오른쪽) */
    .process-list {
        grid-template-columns: 1fr;
        border-top: 0;
    }

    .process-step {
        display: grid;
        grid-template-columns: 96px 1fr;
        column-gap: 24px;
        padding: 28px 0;
        border-top: 1px solid var(--color-border-strong);
    }

    .process-step:last-child { border-bottom: 1px solid var(--color-border-strong); }
    .process-step::before { display: none; }
    .process-num { grid-row: span 2; font-size: 60px; }
    .process-icon { top: 32px; right: 0; }
    .process-title { margin-top: 4px; padding-right: 36px; font-size: 19px; }

    .final-cta { padding: 120px 0 128px; }

    .estimate-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mobile: 축소가 아니라 모바일용으로 다시 배치 */
@media (max-width: 640px) {
    :root {
        --gutter: 20px;
        --section-space: 72px;
    }

    .section.concerns { padding: 80px 0 72px; }
    #services, #portfolio, #about, #process { padding: 72px 0; }

    .br-mo { display: inline; }

    .brand-sub { display: none; }
    .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }

    .btn-xl { min-height: 54px; padding: 14px 24px; font-size: 15px; }

    /* Hero: 제목 → 설명 → 버튼 2개(한 줄) → 보조 정보 3칸 */
    .hero { min-height: min(calc(100svh - var(--header-height)), 760px); }
    .hero-inner { padding-top: 140px; padding-bottom: 36px; }
    .eyebrow { gap: 10px; margin-bottom: 18px; font-size: 13px; }
    .eyebrow-sep { height: 11px; }
    .hero-title { font-size: 33px; line-height: 1.22; letter-spacing: -0.04em; }
    .hero-desc  { margin-top: 18px; font-size: 15.5px; line-height: 1.65; }
    .hero-actions { margin-top: 30px; gap: 8px; flex-wrap: nowrap; }
    .hero-actions .btn {
        flex: 1 1 0;
        min-height: 52px;
        padding: 12px 8px;
        font-size: 15px;
    }
    .hero-actions .btn-arrow::after { display: none; }

    .hero-facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 36px;
        padding-top: 18px;
    }
    .hero-fact,
    .hero-fact:last-child {
        margin: 0;
        padding: 0 10px;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }
    .hero-fact:first-child { padding-left: 0; }
    .hero-fact:last-child { border-right: 0; padding-right: 0; }
    .hero-fact dt { font-size: 11px; letter-spacing: 0.04em; }
    .hero-fact dd { margin-top: 3px; font-size: 12.5px; line-height: 1.4; }

    .sector-list { gap: 4px 10px; padding: 14px 0; font-size: 13px; }
    .sector-list li + li::before { margin-right: 10px; }

    /* 섹션 공통 */
    .section-head { margin-bottom: 32px; }
    .section-badge { gap: 10px; margin-bottom: 14px; font-size: 11px; letter-spacing: 0.2em; }
    .section-badge::before { width: 16px; }
    .section-title { font-size: 28px; line-height: 1.32; }
    .concerns .section-title { font-size: 30px; line-height: 1.3; }
    .section-desc { margin-top: 12px; font-size: 15px; line-height: 1.7; }

    /* 고민: 한 장씩 넘기는 카드 */
    .concern-grid { gap: 12px; }
    .concern-item { flex: 0 0 84%; border-radius: 20px; }
    .concern-body { padding: 18px 20px 22px; }
    .concern-title { margin-top: 10px; font-size: 18px; }
    .concern-desc { font-size: 14px; line-height: 1.7; }
    .concern-bridge { margin-top: 32px; }
    .concern-bridge-title { font-size: 18px; line-height: 1.5; }
    .concern-bridge-desc { font-size: 14px; }

    /* 서비스: 주요 4개는 2×2 타일(설명 대신 관리 공간만), 그 외 4개는 낮은 목록 */
    .svc-feature { gap: 22px; }
    .svc-feature .svc-media { aspect-ratio: 4 / 3; border-radius: 20px; }
    .svc-feature .svc-name { margin-top: 12px; font-size: 30px; }
    .svc-feature .svc-desc { margin-top: 12px; font-size: 15px; line-height: 1.7; }
    .svc-feature .service-areas { margin-top: 18px; }
    .svc-link { margin-top: 22px; font-size: 14.5px; }
    .svc-grid { gap: 14px; margin-top: 56px; }
    .svc-item { flex: 0 0 76%; }
    .svc-item .svc-media { aspect-ratio: 1 / 1; margin-bottom: 18px; border-radius: 20px; }
    .svc-item .svc-name { margin-top: 10px; font-size: 21px; }
    .svc-item .svc-desc { font-size: 14px; }
    .svc-item .service-areas { margin-top: 14px; }
    .svc-panels { gap: 14px; }
    .svc-panel { flex: 0 0 80%; }
    .svc-panel-media { aspect-ratio: 1 / 1; margin-bottom: 18px; border-radius: 20px; }
    .svc-panel .svc-name { margin-top: 10px; font-size: 21px; }
    .svc-panel .svc-desc { font-size: 14px; }
    .svc-panel .service-areas { margin-top: 14px; }
    .svc-panel .svc-link { margin-top: 18px; font-size: 14px; }
    .svc-no { font-size: 13px; }
    .svc-no::after { width: 20px; margin-left: 10px; }
    .service-cat { font-size: 11px; letter-spacing: 0.14em; }
    .service-areas { gap: 6px 14px; padding-top: 14px; }
    .service-areas li { padding-left: 18px; font-size: 13px; }

    .service-sub-label { margin: 48px 0 4px; font-size: 13px; }
    .service-list { grid-template-columns: 1fr; gap: 0; }
    .service-item.is-compact,
    .service-list .service-item.is-compact { gap: 14px; padding: 16px 0; }
    .is-compact .service-icon { width: 34px; height: 34px; border-radius: 9px; }
    .is-compact .service-icon svg { width: 17px; height: 17px; }
    .is-compact .service-name { font-size: 15.5px; }
    .is-compact .service-desc { margin-top: 3px; font-size: 13.5px; line-height: 1.6; }

    /* 비주얼 구간: 사진은 크게 유지 */
    .visual-break { min-height: 460px; }
    .break-inner { padding-top: 72px; padding-bottom: 72px; }
    .break-kicker { font-size: 11px; }
    .break-title { margin-top: 16px; font-size: 30px; line-height: 1.3; }
    .break-desc { margin-top: 16px; font-size: 15px; }
    .break-inner .btn { width: 100%; margin-top: 30px; }

    /* 청소사례: 대표·배너는 전체 폭, 병원·식당은 2열 */
    .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .portfolio-item,
    .portfolio-item.is-lead,
    .portfolio-item.is-wide { border-radius: 18px; }
    .portfolio-item { grid-column: span 1; aspect-ratio: 4 / 5; }
    .portfolio-item.is-lead { grid-column: span 2; aspect-ratio: 4 / 3; }
    .portfolio-item.is-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
    .portfolio-figure::before { top: 14px; left: 16px; font-size: 10px; }
    .portfolio-caption,
    .is-lead .portfolio-caption,
    .is-wide .portfolio-caption { gap: 6px; padding: 40px 16px 14px; }
    .portfolio-type { padding: 3px 10px; font-size: 11.5px; }
    .portfolio-work { font-size: 14px; }
    .is-lead .portfolio-work,
    .is-wide .portfolio-work { font-size: 17px; }

    .mid-cta { margin-top: 40px; padding: 32px 24px; border-radius: 22px; }
    .mid-cta-title { font-size: 23px; }
    .mid-cta-desc { font-size: 14.5px; }
    .mid-cta-actions,
    .mid-cta-actions .btn { width: 100%; }

    /* 왜 명륜클린 */
    .about-inner { gap: 44px; }
    .about-media { aspect-ratio: 4 / 5; border-radius: 22px; }
    .about-badge { gap: 6px; padding: 72px 22px 22px; border-radius: 0 0 22px 22px; }
    .about-badge-sub { font-size: 11px; }
    .about-badge-title { font-size: 20px; }
    .about-head { margin-bottom: 24px; }
    .about-head .section-title { font-size: 28px; }
    .feature-item { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; }
    .feature-num { font-size: 20px; }
    .feature-title { font-size: 16.5px; }
    .feature-desc { margin-top: 4px; font-size: 14px; line-height: 1.65; }

    /* 진행과정 */
    .process-step { grid-template-columns: 64px 1fr; column-gap: 16px; padding: 22px 0; }
    .process-num { font-size: 44px; }
    .process-icon { top: 24px; }
    .process-icon svg { width: 20px; height: 20px; }
    .process-title { margin-top: 2px; font-size: 17px; }
    .process-desc { margin-top: 6px; font-size: 14px; }

    /* 마무리 CTA */
    .final-cta { padding: 96px 0 104px; }
    .final-cta-facts { gap: 0; margin-bottom: 28px; }
    .final-cta-facts li { padding: 0 14px; }
    .final-cta-facts span { display: none; }
    .final-cta-title { font-size: 30px; line-height: 1.32; }
    .final-cta-desc { margin-top: 18px; font-size: 15px; }
    .final-cta-actions { margin-top: 36px; gap: 10px; }
    .final-cta-actions .btn { width: 100%; }
    .btn-strong { min-height: 58px; padding: 16px 28px; font-size: 16px; }

    /* 견적 */
    .estimate-title { font-size: 30px; }
    .estimate-desc { font-size: 15px; }
    .estimate-checklist { gap: 0 20px; margin-top: 24px; }
    .estimate-checklist li { padding: 11px 0 11px 24px; font-size: 14px; }
    .estimate-checklist li::before { left: 2px; }
    .estimate-contact .btn { flex: 1 1 100%; }
    .estimate-form-wrap { padding: 26px 20px; border-radius: 22px; }
    .form-grid { grid-template-columns: 1fr; gap: 16px; }

    /* 푸터 */
    .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
    .footer-dl > div { grid-template-columns: 96px 1fr; }

    /* 플로팅 버튼: 작게, 화면 가리지 않도록 */
    .floating-cta {
        right: 16px;
        bottom: 16px;
        min-height: 50px;
        padding: 0 18px 0 16px;
        font-size: 14px;
    }
    .floating-cta-icon { width: 20px; height: 20px; }
}

/* 19. Scroll scenes ======================================= */
/* 스크롤 장면 연출. JS(js/script.js 10번)가 html 에 붙이는 클래스로만 동작
   - .js-scenes : JS 동작 시 항상 (서비스 고정 무대 배치)
   - .js-motion : JS 동작 + 움직임 줄이기 설정이 아닐 때만 (스크롤 연동 움직임)
   변수 --hero-p / --break-p 는 JS 가 0~1 값으로 넣고, 여기서는 transform·opacity 에만 사용
   이 섹션 전체와 JS 10번을 지우면 연출 없이 기본 레이아웃으로 돌아감 (서비스는 카드형) */

/* SCENE 01. Hero: 스크롤하면 영상이 아주 약간 커지고 어두워지며, 카피는 위로 빠짐 */
.js-motion .hero-bg {
    transform: translate3d(0, calc(var(--hero-p, 0) * 3%), 0) scale(calc(1 + var(--hero-p, 0) * 0.06));
    will-change: transform;
}

.js-motion .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-night);
    opacity: calc(var(--hero-p, 0) * 0.75);
    pointer-events: none;
}

.js-motion .hero-content {
    transform: translate3d(0, calc(var(--hero-p, 0) * -80px), 0);
    opacity: calc(1 - var(--hero-p, 0) * 1.5);
}

/* SCENE 02. 고민 → 해결 문장: 큰 문장이 스크롤에 맞춰 단어 단위로 밝아짐 */
.concern-bridge { margin-top: 112px; }

.concern-bridge-title {
    font-size: 40px;
    line-height: 1.38;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.js-motion .concern-bridge-title .word {
    opacity: 0.2;
    transition: opacity 0.35s var(--ease);
}

.js-motion .concern-bridge-title .word.is-lit { opacity: 1; }

/* SCENE 03. 서비스: 왼쪽 업종 패널이 지나가는 동안 오른쪽 사진 무대가 고정된 채 전환 (PC) */
@media (min-width: 901px) {
    .js-scenes .svc-scene {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        gap: 0 88px;
        align-items: start;
    }

    .js-scenes .svc-panels { display: block; }

    .js-scenes .svc-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-height: 54vh;
        padding: 40px 0;
        opacity: 0.26;
        transition: opacity 0.5s var(--ease);
    }

    .js-scenes .svc-panel.is-active { opacity: 1; }
    .js-scenes .svc-panel-media { display: none; }

    .js-scenes .svc-panel .svc-name {
        margin-top: 18px;
        font-size: 48px;
        line-height: 1.16;
    }

    .js-scenes .svc-panel .svc-desc {
        max-width: 460px;
        margin-top: 18px;
        font-size: 17px;
        line-height: 1.75;
    }

    .js-scenes .svc-panel .service-areas { width: 100%; max-width: 460px; margin-top: 26px; }

    .js-scenes .svc-stage {
        position: sticky;
        top: calc(var(--header-height) + 40px);
        display: block;
        height: min(calc(100vh - var(--header-height) - 80px), 760px);
        overflow: hidden;
        isolation: isolate;
        border-radius: var(--radius-xl);
        background: var(--color-night);
        box-shadow: var(--shadow-lg);
    }

    .svc-stage-item {
        position: absolute;
        inset: 0;
        margin: 0;
        opacity: 0;
        scale: 1.06;
        transition: opacity 0.7s var(--ease), scale 1.4s var(--ease-out);
    }

    .svc-stage-item.is-active {
        opacity: 1;
        scale: 1;
    }

    .svc-stage-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 무대 아래쪽 번호·업종 표시 */
    .svc-stage-meta {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding: 72px 32px 28px;
        background: linear-gradient(0deg, rgba(6, 18, 38, 0.7) 0%, rgba(6, 18, 38, 0) 100%);
        color: #fff;
    }

    .svc-stage-count { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
    .svc-stage-total { font-size: 14px; font-weight: 700; color: rgba(226, 236, 250, 0.7); }
    .svc-stage-label {
        margin-left: auto;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.24em;
        color: var(--color-accent-light);
    }
}

/* SCENE 04. 비주얼 구간: 화면에 잠시 고정, 사진이 천천히 넓어지며 문장이 한 줄씩 등장 (PC) */
@media (min-width: 901px) {
    .js-motion .visual-break {
        display: block;
        height: 190vh;
        min-height: 0;
        overflow: clip; /* hidden 은 sticky 를 막으므로 clip 사용 */
    }

    .js-motion .break-sticky {
        position: sticky;
        top: var(--header-height);
        display: flex;
        align-items: center;
        height: calc(100vh - var(--header-height));
        overflow: hidden;
    }

    .js-motion .break-media img {
        transform: scale(calc(1.14 - var(--break-p, 0) * 0.14));
        will-change: transform;
    }

    .js-motion .break-title { font-size: 68px; line-height: 1.2; }

    .js-motion .break-kicker,
    .js-motion .break-line,
    .js-motion .break-desc,
    .js-motion .break-inner .btn {
        opacity: 0;
        translate: 0 28px;
        transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
    }

    .js-motion .break-line { display: inline-block; }

    .js-motion .visual-break[data-stage="1"] .break-kicker,
    .js-motion .visual-break[data-stage="1"] .break-line:first-child,
    .js-motion .visual-break[data-stage="2"] :is(.break-kicker, .break-line),
    .js-motion .visual-break[data-stage="3"] :is(.break-kicker, .break-line, .break-desc, .btn),
    .js-motion .visual-break:focus-within :is(.break-kicker, .break-line, .break-desc, .btn) {
        opacity: 1;
        translate: 0 0;
    }
}

/* SCENE 06. 청소사례: 사진이 살짝 확대된 상태에서 제자리로 내려앉으며 등장 */
.js-motion .portfolio-figure .photo img {
    scale: 1.08;
    transition: scale 1.6s var(--ease-out), transform 0.7s var(--ease-out);
}

.js-motion .portfolio-item.is-visible .photo img { scale: 1; }

/* SCENE 07. 진행과정: 단계를 잇는 선이 왼쪽부터 채워짐 */
.js-motion .process-list::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.8s var(--ease-out);
}

.js-motion .process-list.is-drawn::after { transform: scaleX(1); }
.process-step::before { z-index: 1; }

/* 장면 연출의 태블릿·모바일 조정: 고정 구간 없음, 움직임 폭 축소 */
@media (max-width: 1100px) {
    .concern-bridge-title { font-size: 34px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .js-motion .break-title { font-size: 54px; }
}

@media (max-width: 900px) {
    .js-motion .hero-bg {
        transform: scale(calc(1 + var(--hero-p, 0) * 0.03));
    }

    .concern-bridge { margin-top: 64px; }
    .concern-bridge-title { font-size: 28px; }

    .js-motion .process-list::after { display: none; }
}

@media (max-width: 640px) {
    .concern-bridge { margin-top: 44px; }
    .concern-bridge-title { font-size: 22px; line-height: 1.45; }
}
