:root {
            --primary-color: #2D63FF;
            --primary-dark: #1a4bd9;
            --primary-soft: #EAF0FF;
            --primary-glow: rgba(45, 99, 255, 0.28);
            --star-color: #FFB020;
            --bg-color: #ffffff;
            --bg-alt: #F5F8FD;
            --surface-color: #ffffff;
            --border-color: rgba(23, 37, 84, 0.09);
            --text-main: #141B2D;
            --text-muted: #6B7382;
            --shadow-sm: 0 4px 16px rgba(23, 37, 84, 0.06);
            --shadow-md: 0 12px 34px rgba(23, 37, 84, 0.09);
            --shadow-lg: 0 26px 64px rgba(23, 37, 84, 0.14);

            /* Type scale (위계) */
            --fs-display: 46px;  /* 히어로 타이틀 */
            --fs-title: 30px;    /* 섹션 타이틀 */
            --fs-heading: 18px;  /* 카드 제목 */
            --fs-lead: 18px;     /* 리드 문장 */
            --fs-body: 15px;     /* 본문 */
            --fs-sm: 14px;       /* 보조 텍스트 */
            --fs-xs: 13px;       /* 캡션 */
            --fs-2xs: 12px;      /* 라벨·태그 */

            /* Font weights */
            --fw-bold: 700;
            --fw-semi: 600;
            --fw-med: 500;
            --fw-reg: 400;
        }

        @media (max-width: 768px) {
            :root {
                --fs-display: 30px;
                --fs-title: 24px;
                --fs-heading: 17px;
                --fs-lead: 15.5px;
                --fs-body: 14.5px;
                --fs-sm: 13.5px;
                --fs-xs: 12.5px;
                --fs-2xs: 11.5px;
            }
        }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        body {
            font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            overscroll-behavior: none;
        }

        /* 스크롤바 커스텀 */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #eef1f6; }
        ::-webkit-scrollbar-thumb { background: #c4ccd8; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #a7b0bf; }

        /* 네비게이션 (밝은 Glassmorphism) */
        header {
            position: fixed;
            top: 0; left: 0; width: 100%;
            height: 64px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid transparent;
            transition: all 0.3s ease;
        }
        header.scrolled {
            background: rgba(255, 255, 255, 0.85);
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 4px 20px rgba(23, 37, 84, 0.04);
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
        }

        .logo a, .footer-logo a {
            font-family: 'Noto Serif KR', serif;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: baseline;
            gap: 5px;
            transition: color 0.3s ease;
            z-index: 105;
        }
        .logo a {
    font-size: 28px;
    color: var(--text-main);
}

.logo a span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

        .menu {
            display: flex;
            gap: 32px;
            list-style: none;
        }

        .menu a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        .menu a:hover, .menu li.active a { color: var(--primary-color); }

        /* =========================================
           히어로 섹션 (밝은 배경 · 포트폴리오 & 평가)
           ========================================= */
        #section-hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 140px 24px 90px;
            background:
                radial-gradient(900px 520px at 88% -8%, var(--primary-soft), transparent 62%),
                radial-gradient(760px 520px at -8% 112%, #EEF4FF, transparent 60%),
                var(--bg-color);
            overflow: hidden;
        }

        /* 동글동글 배경 블롭 */
        .hero-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(8px);
            z-index: 0;
            pointer-events: none;
        }
        .hero-blob--1 {
            width: 220px; height: 220px;
            right: 6%; top: 16%;
            background: radial-gradient(circle at 30% 30%, rgba(45,99,255,0.20), rgba(45,99,255,0.05));
            animation: floaty 7s ease-in-out infinite;
        }
        .hero-blob--2 {
            width: 150px; height: 150px;
            left: 4%; bottom: 12%;
            background: radial-gradient(circle at 30% 30%, rgba(255,176,32,0.18), rgba(255,176,32,0.03));
            animation: floaty 9s ease-in-out infinite reverse;
        }
        @keyframes floaty {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-22px); }
        }

        .hero-inner {
            position: relative;
            z-index: 2;
            max-width: 760px;
            margin: 0 auto;
            width: 100%;
            text-align: center;
        }
        .hero-left { display: flex; flex-direction: column; align-items: center; }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #fff;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
            color: var(--text-main);
            padding: 9px 16px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 26px;
        }
        .hero-badge .stars { color: var(--star-color); letter-spacing: 1px; }
        .hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); }

        .hero-title {
            width: 100%;
            font-size: var(--fs-display);
            line-height: 1.26;
            letter-spacing: -0.035em;
            font-weight: var(--fw-bold);
            color: var(--text-main);
            margin-bottom: 22px;
            word-break: keep-all;
        }
        .hero-title span { color: var(--primary-color); }
        .br-m { display: none; }

        .hero-sub {
            font-size: var(--fs-lead);
            color: var(--text-muted);
            line-height: 1.72;
            margin-bottom: 34px;
            letter-spacing: -0.01em;
        }

        .hero-cta {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 44px;
        }
        .primary-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-color);
            color: #fff;
            padding: 15px 30px;
            border-radius: 999px;
            font-weight: 600;
            font-size: 15px;
            text-decoration: none;
            box-shadow: 0 10px 24px var(--primary-glow);
            transition: all 0.3s ease;
        }
        .primary-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 14px 30px var(--primary-glow);
        }
        .ghost-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            color: var(--text-main);
            padding: 15px 28px;
            border-radius: 999px;
            font-weight: 600;
            font-size: 15px;
            text-decoration: none;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }
        .ghost-btn:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }

        .hero-stats {
            display: flex;
            gap: 40px;
        }
        .hero-stat strong {
            display: block;
            font-size: 28px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }
        .hero-stat span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

        /* 히어로 비주얼 (지도 일러스트) */
        .hero-visual {
            position: relative;
            height: 440px;
        }
        .hv-map {
            position: absolute;
            right: 24px; top: 28px;
            width: 300px;
            z-index: 1;
            border-radius: 26px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            animation: floaty 8s ease-in-out infinite;
        }
        .hv-map svg { display: block; width: 100%; height: auto; }
        .hv-chip {
            position: absolute;
            left: 0; bottom: 34px;
            z-index: 3;
            background: #fff;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            border-radius: 16px;
            padding: 13px 17px;
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
            animation: floaty 9s ease-in-out infinite 0.5s;
        }
        .hv-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); }
        .hv-card {
            position: absolute;
            border-radius: 26px;
            overflow: hidden;
            background: #fff;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-color);
        }
        .hv-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
        .hv-card--main {
            width: 300px; height: 390px;
            right: 12px; top: 22px;
            z-index: 2;
            animation: floaty 8s ease-in-out infinite;
        }
        .hv-card--back {
            width: 220px; height: 290px;
            left: 0; top: 74px;
            z-index: 1;
            transform: rotate(-6deg);
            animation: floaty 10s ease-in-out infinite reverse;
        }
        .hv-card-label {
            position: absolute;
            left: 12px; right: 12px; bottom: 12px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 14px;
            padding: 10px 12px;
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hv-card-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); flex-shrink: 0; }

        .hv-badge {
            position: absolute;
            right: -4px; top: -10px;
            z-index: 4;
            background: var(--primary-color);
            color: #fff;
            border-radius: 20px;
            padding: 14px 18px;
            font-size: 26px;
            font-weight: 800;
            line-height: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 14px 28px var(--primary-glow);
            animation: floaty 6s ease-in-out infinite;
        }
        .hv-badge span { font-size: 11px; font-weight: 600; margin-top: 5px; opacity: 0.92; letter-spacing: -0.01em; }

        .hv-review {
            position: absolute;
            left: -8px; bottom: 4px;
            z-index: 3;
            background: #fff;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            border-radius: 20px;
            padding: 16px 18px;
            max-width: 236px;
            animation: floaty 9s ease-in-out infinite 0.5s;
        }
        .hv-review .hv-stars { color: var(--star-color); font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
        .hv-review p { font-size: 13px; color: var(--text-main); line-height: 1.55; font-weight: 500; margin-bottom: 8px; }
        .hv-review-name { font-size: 12px; color: var(--text-muted); }

        /* =========================================
           철학 섹션 (밝은 카드형)
           ========================================= */
        .philosophy-section {
            background: var(--bg-alt);
            padding: 140px 24px;
        }
        .philosophy-inner {
            max-width: 1100px;
            margin: 0 auto;
            text-align: center;
        }
        .philosophy-eyebrow {
            color: var(--primary-color);
            font-weight: var(--fw-med);
            font-size: var(--fs-sm);
            margin-bottom: 16px;
            letter-spacing: -0.01em;
        }
        .philosophy-headline {
            font-size: var(--fs-title);
            font-weight: var(--fw-semi);
            letter-spacing: -0.03em;
            color: var(--text-main);
            margin-bottom: 56px;
            line-height: 1.38;
        }
        .philosophy-headline span { color: var(--primary-color); }
        .philosophy-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .phil-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 42px 34px;
            box-shadow: var(--shadow-sm);
            text-align: left;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
        }
        .phil-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
        .phil-card .phil-emoji { font-size: 36px; margin-bottom: 18px; display: block; }
        .phil-card h3 { font-size: var(--fs-heading); font-weight: var(--fw-semi); color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.02em; word-break: keep-all; }
        .phil-card p { font-size: var(--fs-body); color: var(--text-muted); line-height: 1.72; word-break: keep-all; }

        /* 공통 섹션 레이아웃 */
        .reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); }
        .reveal.active { opacity: 1; transform: translateY(0); }

        .section-title {
            font-size: var(--fs-title);
            font-weight: var(--fw-semi);
            text-align: center;
            margin-bottom: 60px;
            letter-spacing: -0.03em;
            color: var(--text-main);
        }

        /* 프로세스 섹션 */
        .process-section { padding: 140px 24px; background: var(--bg-color); position: relative; }
        .container { max-width: 1200px; margin: 0 auto; }

        .process-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
        }

        .process-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 46px 38px;
            box-shadow: var(--shadow-sm);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
            position: relative;
            overflow: hidden;
        }
        .process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

        .step-num {
            display: inline-flex; justify-content: center; align-items: center;
            font-size: 12.5px; font-weight: 600; color: var(--primary-color);
            background: var(--primary-soft);
            padding: 7px 15px; border-radius: 20px;
            margin-bottom: 20px; letter-spacing: 0.05em;
        }
        .process-card h3 { font-size: var(--fs-heading); font-weight: var(--fw-semi); margin-bottom: 14px; letter-spacing: -0.02em; color: var(--text-main); word-break: keep-all; }
        .process-card p { font-size: var(--fs-body); color: var(--text-muted); line-height: 1.68; letter-spacing: -0.01em; font-weight: var(--fw-reg); word-break: keep-all; }

        /* 서비스 섹션 */
        .services { padding: 140px 24px; background: var(--bg-alt); position: relative; border: none; }
        .services-container { max-width: 1200px; margin: 0 auto; }

        .services-modern-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .service-item {
            position: relative;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 40px 32px 42px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            box-shadow: var(--shadow-sm);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
        }
        .service-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(45,99,255,0.25); }

        .service-idx {
            position: absolute;
            top: 34px; right: 30px;
            font-size: 12.5px; font-weight: 600;
            color: #cdd6e6;
            letter-spacing: 0.06em;
        }
        .service-icon-bg {
            width: 60px; height: 60px;
            background: var(--primary-soft);
            border-radius: 18px; color: var(--primary-color);
            display: flex; justify-content: center; align-items: center; padding: 14px;
            margin-bottom: 26px;
        }
        .service-name { font-size: var(--fs-heading); font-weight: var(--fw-semi); margin-bottom: 12px; letter-spacing: -0.02em; color: var(--text-main); word-break: keep-all; }
        .service-summary { font-size: var(--fs-sm); color: var(--text-muted); font-weight: var(--fw-reg); letter-spacing: -0.01em; line-height: 1.66; word-break: keep-all; }

        /* 포트폴리오 */
        .portfolio {
            padding: 150px 24px;
            position: relative;
            background: var(--bg-color);
        }

        .portfolio-container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            position: relative;
        }

        .portfolio-container .section-title {
            text-align: center;
            margin: 0 0 60px;
        }

        .portfolio-track {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 32px;
            align-items: stretch;
        }

        .portfolio-card {
            width: 100%;
            min-height: 460px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
            display: flex;
            flex-direction: column;
        }
        .portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

        .portfolio-thumb { position: relative; width: 100%; height: 200px; overflow: hidden; border-bottom: 1px solid var(--border-color); background: #eef2f8; }
        .portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
        .portfolio-card:hover .portfolio-thumb img { transform: scale(1.05); }
        .portfolio-thumb.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-soft), #f7faff); }
        .portfolio-thumb.placeholder span { font-size: 13px; color: var(--primary-color); letter-spacing: 0.04em; font-weight: 600; }
        .portfolio-thumb.logo { display: flex; align-items: center; justify-content: center; background: #fff; padding: 32px; }
        .portfolio-thumb.logo img { width: auto; height: auto; max-width: 78%; max-height: 84px; object-fit: contain; }
        .portfolio-thumb.logo .logo-text { font-size: 34px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-main); }
        .portfolio-card:hover .portfolio-thumb.logo img { transform: scale(1.04); }

        .thumb-stores { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
        .thumb-store { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 2px 6px rgba(20,30,50,0.07); }
        .thumb-store svg { width: 16px; height: 16px; display: block; }

        .portfolio-info { padding: 34px 34px 38px; display: flex; flex-direction: column; flex-grow: 1; }
        .portfolio-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
        .portfolio-title { font-size: var(--fs-heading); font-weight: var(--fw-semi); color: var(--text-main); letter-spacing: -0.02em; word-break: keep-all; }
        .client-tag { font-size: var(--fs-2xs); color: var(--text-muted); background: var(--bg-alt); padding: 4px 10px; border-radius: 12px; font-weight: var(--fw-med); }
        .portfolio-period { font-size: var(--fs-2xs); color: var(--text-muted); margin-bottom: 18px; font-weight: var(--fw-reg); letter-spacing: 0.02em; }
        .portfolio-summary { font-size: var(--fs-sm); color: var(--primary-color); font-weight: var(--fw-semi); margin-bottom: 14px; letter-spacing: -0.01em; word-break: keep-all; }
        .portfolio-desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; flex-grow: 1; font-weight: var(--fw-reg); word-break: keep-all; }

        .portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
        .portfolio-tags span { font-size: var(--fs-2xs); color: var(--primary-color); background: var(--primary-soft); padding: 6px 12px; border-radius: 8px; font-weight: var(--fw-semi); }

        .portfolio-link { color: var(--text-main); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-semi); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s ease, color 0.3s ease; align-self: flex-end; }
        .portfolio-link:hover { gap: 12px; color: var(--primary-color); }

        /* 문의하기 섹션 */
        .contact { padding: 110px 24px; background: var(--bg-alt); position: relative; display: flex; flex-direction: column; align-items: center; }
        .contact-container { width: 100%; max-width: 800px; }

        .contact-form {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 40px;
            box-shadow: var(--shadow-md);
        }

        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
        .form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
        .form-grid .form-group { margin-bottom: 0; }
        .form-group.full { grid-column: 1 / -1; }
        .form-group label { font-size: 14px; font-weight: 600; color: var(--text-main); }
        .form-group label .required { color: #ff3b30; }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            background: #f7f9fc;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            color: var(--text-main);
            font-family: inherit;
            font-size: 15px;
            font-weight: 400;
            outline: none;
            transition: all 0.3s ease;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        .form-group input::placeholder, .form-group textarea::placeholder { color: #b4bac6; font-weight: 400; opacity: 1; -webkit-font-smoothing: antialiased; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); background-color: #fff; box-shadow: 0 0 0 3px rgba(45,99,255,0.10); }
        .form-group select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            padding-right: 44px;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236B7382' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
            background-repeat: no-repeat;
            background-position: right 18px center;
            background-size: 12px 8px;
            cursor: pointer;
        }
        .form-group select::-ms-expand { display: none; }
        .form-group select option { background: #fff; color: var(--text-main); }
        .form-group textarea { resize: vertical; min-height: 120px; }

        .submit-btn {
            width: 100%;
            background: var(--primary-color);
            color: #fff;
            border: none;
            padding: 16px 28px;
            border-radius: 999px;
            font-size: 15px;
            font-weight: 600;
            line-height: 1.4;
            cursor: pointer;
            box-shadow: 0 10px 24px var(--primary-glow);
            transition: all 0.3s ease;
        }
        .submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

        /* 커스텀 모달 (Alert 대체) */
        #custom-modal {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(23,37,84,0.35); backdrop-filter: blur(6px);
            display: flex; justify-content: center; align-items: center;
            z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease;
        }
        #custom-modal.show { opacity: 1; visibility: visible; }
        .modal-content {
            background: #fff; border: 1px solid var(--border-color);
            padding: 40px; border-radius: 24px; text-align: center; max-width: 400px;
            box-shadow: var(--shadow-lg);
        }
        .modal-content h3 { font-size: 20px; margin-bottom: 16px; color: var(--text-main); font-weight: 700; }
        .modal-content p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; font-weight: 400; }
        .modal-btn { background: var(--primary-color); color: #fff; border: none; padding: 12px 32px; border-radius: 999px; font-weight: 600; cursor: pointer; }

        /* 푸터 */
        footer { padding: 72px 24px 44px; background: var(--bg-alt); border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 13px; }
        .footer-container { max-width: 1200px; margin: 0 auto; }

        .footer-top {
            display: flex;
            justify-content: space-between;
            gap: 48px;
            flex-wrap: wrap;
            padding-bottom: 40px;
        }
        .footer-logo { margin-bottom: 14px; }
        .footer-logo a {
            font-family: 'Noto Serif KR', serif;
            font-weight: 600;
            font-size: 28px;
            color: var(--text-main);
            text-decoration: none;
            display: flex;
            align-items: baseline;
            gap: 8px;
            letter-spacing: -0.03em;
        }
        .footer-logo a span { font-size: 16px; font-weight: 400; color: var(--text-main); }
        .footer-tagline { font-size: 14px; color: var(--text-muted); letter-spacing: -0.01em; }

        .company-details { display: flex; flex-direction: column; gap: 11px; font-style: normal; }
        .detail-item { display: flex; align-items: baseline; gap: 16px; font-size: 13.5px; line-height: 1.5; }
        .detail-item .label {
            flex-shrink: 0;
            width: 96px;
            color: #9aa2af;
            font-style: normal;
            font-weight: 500;
            font-size: 12px;
            letter-spacing: 0.02em;
        }
        .detail-item .value { color: var(--text-main); font-weight: 500; }
        .detail-item .value a { color: inherit; text-decoration: none; }
        .detail-item .value a:hover { color: var(--primary-color); }

        .footer-bottom {
            display: flex; justify-content: space-between; align-items: center;
            border-top: 1px solid var(--border-color); padding-top: 24px;
            font-size: 12.5px;
        }
        .copyright { color: #9aa2af; }
        .footer-legal a { color: var(--text-muted); text-decoration: none; margin-left: 18px; font-weight: 500; }
        .footer-legal a:hover { color: var(--primary-color); }

        #scrollToTop {
            position: fixed; bottom: 24px; right: 24px;
            width: 48px; height: 48px; border-radius: 24px;
            background: #fff; color: var(--primary-color); border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md); cursor: pointer;
            opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000;
            display: flex; justify-content: center; align-items: center;
        }
        #scrollToTop.show { opacity: 1; visibility: visible; }
        #scrollToTop:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

        /* 스팸 방지 허니팟 (화면에서 완전히 숨김) */
        .hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

        /* 개인정보 수집·이용 동의 */
        .form-consent { display: flex; align-items: center; gap: 10px; margin: 4px 0 24px; }
        .form-consent input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color); flex-shrink: 0; cursor: pointer; }
        .form-consent label { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-weight: 400; }
        .form-consent a { color: var(--primary-color); text-decoration: underline; }
        .form-consent .required { color: #ff3b30; }

        /* 플로팅 상담 버튼 */
        .quick-contact { position: fixed; right: 24px; bottom: 84px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; }
        .qc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 28px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(23,37,84,0.18); transition: transform 0.25s ease, box-shadow 0.25s ease; }
        .qc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,37,84,0.25); }
        .qc-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
        .qc-kakao { background: #FEE500; color: #191600; }
        .qc-call { background: var(--primary-color); color: #fff; }
        .qc-chat { background: var(--primary-color); color: #fff; }

        /* 고객 & 후기 섹션 */
        .clients { padding: 120px 24px; background: var(--bg-color); border-top: 1px solid var(--border-color); }
        .clients-container { max-width: 1100px; margin: 0 auto; text-align: center; }
        .clients-sub { color: var(--text-muted); margin: -36px 0 48px; font-size: 15px; }
        .client-logos {
            position: relative; overflow: hidden; margin-bottom: 64px; padding: 26px 0;
            background: var(--bg-alt);
            border-radius: 20px;
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
        }
        .client-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: scroll-right 28s linear infinite; padding: 0 32px; }
        .client-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0.55; transition: opacity 0.3s ease; }
        .client-logo:hover { opacity: 1; }
        .client-logo img { height: 30px; width: auto; display: block; filter: grayscale(1); }
        /* 로고별 내부 여백 차이 보정 — 실제 글자 크기가 비슷하게 보이도록 */
        .client-logo img[src*="urdy"] { height: 46px; }
        .client-logo img[src*="sanda-t"] { height: 22px; }
        .client-logo--text { font-size: 21px; font-weight: 700; color: var(--text-main); letter-spacing: -0.02em; }
        @keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
        .testimonials {
            position: relative; overflow: hidden;
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
        }
        .testimonial-track { display: flex; gap: 24px; width: max-content; animation: scroll-left 70s linear infinite; }
        .testimonial-card { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-color); border-radius: 20px; padding: 32px; text-align: left; box-shadow: var(--shadow-sm); }
        .testimonial-card blockquote { font-size: 16px; line-height: 1.7; color: var(--text-main); margin-bottom: 20px; font-weight: 400; }
        .testimonial-card::before { content: '★★★★★'; color: var(--star-color); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
        .testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
        .testimonial-card figcaption strong { font-size: 14px; color: var(--text-main); font-weight: 600; }
        .testimonial-card figcaption span { font-size: 13px; color: var(--text-muted); }
        /* 로고는 우측(scroll-right), 후기는 좌측(scroll-left)으로 서로 반대 방향 흐름. 항상 자동 흐름(동작 줄이기 설정과 무관). */
        @keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

        /* FAQ 섹션 */
        .faq { padding: 110px 24px; background: var(--bg-alt); }
        .faq-container { max-width: 800px; margin: 0 auto; }
        .faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
        .faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 0 28px; box-shadow: var(--shadow-sm); }
        .faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: var(--fs-heading); font-weight: var(--fw-semi); color: var(--text-main); display: flex; justify-content: space-between; align-items: center; gap: 16px; word-break: keep-all; }
        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item summary::after { content: '+'; font-size: 22px; color: var(--text-muted); font-weight: 300; transition: transform 0.25s ease; }
        .faq-item[open] summary::after { transform: rotate(45deg); }
        .faq-item p { color: var(--text-muted); line-height: 1.7; padding: 0 0 24px; font-size: 14.5px; font-weight: 400; }

        /* =========================================
   반응형 모바일 처리 (Tablet & Mobile)
   ========================================= */

@media (max-width: 1024px) {
    .process-grid, .services-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .portfolio { padding: 100px 24px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
    .philosophy-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
    /* 1. 네비게이션 */
    nav { padding: 0 16px; justify-content: center; }
    .logo a { font-size: 22px; }
    .menu { display: none; }

    /* 2. 히어로 (폰트 크기는 :root 토큰이 제어) */
    #section-hero { padding: 116px 20px 64px; }
    .br-m { display: block; }
    .hero-sub { margin-bottom: 28px; }
    .hero-cta { gap: 10px; }
    .primary-btn, .ghost-btn { padding: 13px 22px; }

    /* 3. 공통 섹션 여백 */
    .process-section, .services, .contact, .clients, .faq { padding: 72px 20px; }
    .philosophy-section { padding: 72px 20px; }
    .section-title { margin-bottom: 36px; }
    .philosophy-headline { margin-bottom: 32px; }

    /* 4. 프로세스 — 2열 간소화 (설명 문구 제거) */
    .process-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .process-card { padding: 22px 18px; }
    .process-card p { display: none; }
    .process-card h3 { margin-bottom: 0; }
    .step-num { margin-bottom: 12px; }

    /* 5. 사업 — 2열 간소화 (요약 문구·번호 제거) */
    .services-modern-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-item { padding: 24px 18px; }
    .service-summary, .service-idx { display: none; }
    .service-icon-bg { width: 46px; height: 46px; border-radius: 14px; padding: 11px; margin-bottom: 14px; }
    .service-name { margin-bottom: 0; }

    /* 6. 포트폴리오 — 1열 + 부가정보 제거 */
    .portfolio-track { grid-template-columns: 1fr; gap: 16px; }
    .portfolio-card { width: 100%; min-height: 0; }
    .portfolio-thumb { height: 168px; }
    .portfolio-info { padding: 22px 22px 24px; }
    .portfolio-period, .portfolio-desc, .portfolio-tags { display: none; }
    .portfolio-summary { margin-bottom: 16px; }

    /* 7. 문의하기 폼 */
    .form-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
    .contact-form { padding: 28px 20px; border-radius: 22px; }
    .form-group input, .form-group select, .form-group textarea { padding: 14px; }

    /* 8. 푸터 */
    footer { padding: 56px 20px 36px; }
    .footer-logo a { font-size: 22px; }
    .footer-top { flex-direction: column; gap: 32px; padding-bottom: 32px; }
    .detail-item { gap: 12px; }
    .detail-item .label { width: 84px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-legal { margin-left: 0; display: flex; gap: 20px; }
    .footer-legal a { margin-left: 0; }

    /* 9. 고객 후기 */
    .clients-sub { margin: -24px 0 32px; }
    .client-logos { margin-bottom: 36px; padding: 20px 0; }
    .client-track { gap: 40px; }
    .client-logo img { height: 24px; }
    .client-logo img[src*="urdy"] { height: 38px; }
    .client-logo img[src*="sanda-t"] { height: 18px; }
    .testimonial-track { gap: 16px; }
    .testimonial-card { width: 290px; padding: 26px 24px; }
    .testimonial-card blockquote { margin-bottom: 16px; }
    .faq-item { padding: 0 22px; }
    .faq-item summary { padding: 20px 0; }

    /* 10. 플로팅 버튼 통일 (아이콘 원형, 우측 16px 정렬) */
    .quick-contact { right: 16px; bottom: 76px; gap: 12px; }
    .qc-btn { padding: 0; width: 48px; height: 48px; border-radius: 50%; justify-content: center; }
    .qc-btn span { display: none; }
    #scrollToTop { right: 16px; bottom: 16px; }
}

/* 아주 작은 화면 (아이폰 SE 등) */
@media (max-width: 400px) {
    .process-card h3, .service-name { font-size: 14px; }
    .service-icon-bg { width: 42px; height: 42px; }
}
