/* ===================================
   EMBESYS SOLUTION
   Embedded Systems Company Theme
   =================================== */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary-dark: #1a1a1a;
    --primary-metal: #2c3e50;
    --accent-blue: #38a0ef;
    --accent-rust: var(--accent-blue);
    --accent-chrome: #c0c0c0;
    
    /* Secondary Colors */
    --warm-leather: #8b6f47;
    --engine-red: #b22222;
    --oil-black: #0d0d0d;
    --concrete-gray: #95a5a6;
    --warning-yellow: #f39c12;
    
    /* Background Colors */
    --bg-workshop: rgba(26, 26, 26, 0.85);
    --bg-surface: #2c2c2c;
    --bg-hover: #3a3a3a;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-muted: #999999;
    
    /* Fonts */
    --font-title: Pretendard, "Noto Sans KR", sans-serif;
    --font-display: Pretendard, "Noto Sans KR", sans-serif;
    --font-body: Pretendard, "Noto Sans KR", sans-serif;
    --font-number: Pretendard, monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(26, 26, 26, 0.96);
    border-bottom: 1px solid rgba(47, 143, 216, 0.35);
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name {
    font-family: var(--font-title);
    font-size: 28px;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-title);
    font-size: 18px;
    color: var(--text-gray);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-rust);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-toggle {
    position: relative;
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 11px;
    width: 24px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: var(--accent-rust);
    transform-origin: center;
    transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.nav-toggle span:nth-child(3) {
    transform: translateY(8px);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}

body.is-menu-open {
    overflow: hidden;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .navbar {
        transition: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 240px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0), var(--primary-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1024px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-size: 60px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
    margin-bottom: 45px;
    word-break: keep-all;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    color: var(--text-light);
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 50px;
    word-break: keep-all;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn::before {
    background: rgba(0, 0, 0, 0.18);
}

.hero-buttons .btn-primary:hover {
    background: #246ca5;
}

.hero-buttons .btn-secondary:hover {
    background: #246ca5;
    border-color: #246ca5;
}

.btn {
    padding: 12px 30px;
    font-family: var(--font-title);
    font-size: 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--text-light);
    box-shadow: 0 5px 20px rgba(47, 143, 216, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 143, 216, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-rust);
}

.btn-secondary:hover {
    background: var(--accent-rust);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 143, 216, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-rust);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-rust);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-all {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 24px;
    overflow: hidden;
    border: 1px solid var(--accent-rust);
    border-radius: 6px;
    color: var(--accent-rust);
    font-size: 16px;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
}

.gallery-all::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent-rust);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.gallery-all:hover,
.gallery-all:focus-visible {
    color: var(--oil-black);
}

.gallery-all:hover::before,
.gallery-all:focus-visible::before {
    transform: scaleX(1);
}

.gallery-all:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-all::before { transition: none; }
}

.section-title {
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-blue);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    letter-spacing: 0.02em;
}

/* ===== Services Section ===== */
.services {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(47, 143, 216, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(47, 143, 216, 0.3);
    border-color: var(--accent-rust);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth);
}

.service-icon i {
    font-size: 60px;
    color: var(--text-light);
    transition: color 0.28s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card:hover .service-icon i {
    color: var(--accent-blue);
}

.service-title {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-description {
    color: var(--text-gray);
    font-size: 18px;
    word-break: keep-all;
    margin-bottom: 0;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: var(--section-padding);
    background: var(--oil-black);
    overflow: hidden;
}

.gallery-slider {
    --gallery-gap: 20px;
    --gallery-visible: 4.5;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;
    cursor: grab;
    touch-action: pan-y;
    transition: transform 0.3s ease;
}

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

.gallery-slide {
    position: relative;
    flex: 0 0 calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible));
    min-width: 0;
    overflow: hidden;
    border-radius: 30px;
}

.gallery-slide-open {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.gallery-slide-open:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: -2px;
}

.gallery-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
    height: auto;
    max-height: 70%;
    interpolate-size: allow-keywords;
    padding: 30px;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.55) 52%, rgba(13, 13, 13, 0) 100%);
    color: var(--text-light);
    transition: height 0.28s ease;
}

.gallery-caption-inner {
    transform: none;
}

.gallery-caption h3 {
    margin: 0;
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-light);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.gallery-caption-title {
    display: block;
    margin: 0;
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-light);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.gallery-caption p {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    color: #ffffffdd;
    opacity: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
    transition: grid-template-rows 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
}

.gallery-caption p > span {
    overflow: hidden;
    min-height: 0;
}

.gallery-caption-desc {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    color: #ffffffdd;
    opacity: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
    transition: grid-template-rows 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
}

.gallery-caption-desc > span {
    overflow: hidden;
    min-height: 0;
}

.gallery-slide:hover .gallery-caption p,
.gallery-slide:focus-within .gallery-caption p {
    grid-template-rows: 1fr;
    margin-top: 8px;
    opacity: 1;
}

.gallery-slide:hover .gallery-caption-desc,
.gallery-slide:focus-within .gallery-caption-desc {
    grid-template-rows: 1fr;
    margin-top: 8px;
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--accent-rust);
    color: var(--text-light);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-nav i {
    font-size: 28px;
    line-height: 1;
}

.gallery-nav:hover {
    background: #68b6ee;
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.gallery-progress {
    width: 80%;
    height: 4px;
    margin: 20px auto 32px;
    overflow: hidden;
    background: var(--bg-hover);
}

.gallery-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent-rust);
    transition: width 0.3s ease;
}

.gallery-nav:focus-visible,
.gallery-slider:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .gallery-slider {
        --gallery-visible: 2.5;
    }

    .gallery-caption {
        padding: 24px;
    }

    .gallery-caption h3 {
        font-size: 22px;
    }

    .gallery-caption-title {
        font-size: 22px;
    }

    .gallery-caption p {
        font-size: 16px;
    }

    .gallery-caption-desc {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .gallery-slider {
        --gallery-visible: 1.5;
        padding-bottom: 56px;
    }

    .gallery-slide {
        border-radius: 20px;
    }

    .gallery-nav {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .gallery-nav-prev {
        left: calc(50% - 52px);
    }

    .gallery-nav-next {
        right: auto;
        left: calc(50% + 8px);
    }

    .gallery-caption {
        padding: 20px;
    }

    .gallery-caption h3 {
        font-size: 18px;
    }

    .gallery-caption-title {
        font-size: 18px;
    }

    .gallery-caption p {
        font-size: 14px;
    }

    .gallery-caption-desc {
        font-size: 14px;
    }
}

@media (hover: none) {
    .gallery-caption p {
        grid-template-rows: 1fr;
        margin-top: 8px;
        opacity: 1;
    }

    .gallery-caption-desc {
        grid-template-rows: 1fr;
        margin-top: 8px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .nav-toggle span,
    .gallery-track,
    .gallery-caption,
    .gallery-caption-inner,
    .gallery-caption p,
    .gallery-progress-bar {
        transition: none;
        transition-delay: 0s;
    }
}

/* ===== Process Section ===== */
.process {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

.process-intro + .process-intro {
    margin-top: 16px;
}

/* Keep the full navigator within the process section while steps scroll. */
.process-nav {
    position: sticky;
    top: var(--process-header-offset, 88px);
    z-index: 20;
    max-height: min(45dvh, calc(100dvh - var(--process-header-offset, 88px) - 16px));
    overflow-y: auto;
    margin: 48px 0 0;
    padding: 20px 0;
    background: var(--primary-dark);
}

.process-overview {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-overview li {
    position: relative;
    min-width: 0;
    text-align: center;
}

.process-overview-angle {
    display: none;
}

.process-overview a {
    display: block;
    padding: 0 8px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    word-break: keep-all;
}

.process-overview-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: var(--accent-rust);
    border: 1px solid var(--accent-rust);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.process-overview li.is-active .process-overview-number {
    background: var(--accent-rust);
    color: var(--oil-black);
}

@media (prefers-reduced-motion: reduce) {
    .process-overview-number { transition: none; }
}

.process-overview a:hover,
.process-overview a:focus-visible {
    color: var(--accent-rust);
}

.process-overview a:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: 4px;
}



.process-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-step {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
    gap: 48px;
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    scroll-margin-top: var(--process-scroll-offset, 240px);
}

.process-step-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--accent-rust);
}

.process-step-number {
    margin: 0 0 12px;
    color: var(--accent-rust);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.process-step-title {
    margin: 0;
    color: var(--text-light);
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
}

.process-step-content {
    min-width: 0;
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.process-step-content p {
    margin: 0;
}

.process-step-content p + p {
    margin-top: 10px;
    line-height: 1.5;
}

.process-step-results {
    margin-top: 24px;
    padding: 20px 30px;
    background: #444;
    border-radius: 15px;
}

.process-step-results h4 {
    margin: 0 0 5px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.process-step-results p {
    margin: 0;
    font-size: 16px;
}

.process-step-disclaimer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
    .process-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 24px;
    }

    .process-step {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .process-nav {
        position: static;
        top: auto;
        z-index: auto;
        max-height: none;
        overflow: visible;
        margin-top: 32px;
    }

    .process-overview-angle {
        display: block;
        position: absolute;
        right: -8px;
        top: 22px;
        transform: translateY(-50%);
        font-size: 16px;
        color: var(--text-muted);
        pointer-events: none;
    }

    .process-overview a {
        font-size: 13px;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 50px 0;
        scroll-margin-top: var(--process-scroll-offset, 240px);
    }

    .process-step-title {
        font-size: 28px;
    }

    .process-step-content,
    .process-step-results p {
        font-size: 15px;
    }
}

/* ===== Inquiry — 요구사항별로 구분한 개발 상담 폼 ===== */
.section-inquiry {
    padding: var(--section-padding);
    border-top: 1px solid rgba(47, 143, 216, 0.2);
    background: var(--primary-dark);
    color: var(--text-light);
    color-scheme: dark;
}

.section-inquiry .inquiry-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
    gap: 40px 48px;
    align-items: start;
    margin: 0 auto;
}

.section-inquiry .inquiry-title-wrap {
    position: sticky;
    top: 120px;
    align-self: start;
    min-width: 0;
    text-align: left;
}

.section-inquiry .inquiry-title {
    margin: 0 0 24px;
    font-size: clamp(28px, 3.4vw, 42px);
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: var(--text-light);
    word-break: keep-all;
}

.section-inquiry .inquiry-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    word-break: keep-all;
}

.section-inquiry .inquiry-subtitle p { margin: 0; }
.section-inquiry .inquiry-subtitle p + p { margin-top: 16px; }

.section-inquiry .inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    background: transparent;
}

.inquiry-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.section-inquiry .inquiry-group {
    min-width: 0;
    margin: 0 0 40px;
    padding: 24px 0 0;
    border: 0;
    border-top: 2px solid #ffffff66;
}

.section-inquiry .inquiry-group legend {
    padding: 0 20px 0 0;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-light);
}

.section-inquiry .form-hor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.section-inquiry .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.section-inquiry .form-group label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.section-inquiry .required {
    color: var(--accent-blue);
    font-weight: 700;
}

.section-inquiry .form-group input,
.section-inquiry .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-light);
    caret-color: var(--text-light);
    border: 1px solid rgba(47, 143, 216, 0.25);
    border-radius: 6px;
    background: var(--bg-surface);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.section-inquiry .form-group input:hover,
.section-inquiry .form-group textarea:hover { border-color: var(--accent-blue); }

.section-inquiry .form-group input:focus,
.section-inquiry .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.section-inquiry .form-group input:focus-visible,
.section-inquiry .form-group textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.section-inquiry .form-group textarea {
    min-height: 128px;
    resize: vertical;
    line-height: 1.7;
}

.section-inquiry .form-group input::placeholder,
.section-inquiry .form-group textarea::placeholder { color: var(--text-muted); }

.section-inquiry .form-group input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-light);
    caret-color: var(--text-light);
    box-shadow: 0 0 0 1000px var(--bg-surface) inset;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-surface) inset;
}

.section-inquiry .inquiry-help {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    word-break: keep-all;
}

.section-inquiry .inquiry-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.section-inquiry .inquiry-help + .inquiry-options { margin-top: 16px; }

.section-inquiry .inquiry-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid rgba(47, 143, 216, 0.25);
    border-radius: 6px;
    background: var(--bg-surface);
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.section-inquiry .inquiry-option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent-blue);
}

.section-inquiry .inquiry-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.section-inquiry .inquiry-option:hover,
.section-inquiry .inquiry-option:has(input:checked) { border-color: var(--accent-blue); }

.section-inquiry .inquiry-option:has(input:checked) {
    background: rgba(47, 143, 216, 0.12);
}

.section-inquiry .inquiry-option:focus-within {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.section-inquiry .inquiry-examples {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid rgba(47, 143, 216, 0.3);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    word-break: keep-all;
}

.section-inquiry .inquiry-examples p,
.section-inquiry .inquiry-examples blockquote { margin: 0; }
.section-inquiry .inquiry-examples ul { margin: 4px 0 0; padding-left: 20px; }
.section-inquiry .inquiry-message-examples { display: grid; gap: 16px; }

.section-inquiry .inquiry-upload {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.section-inquiry .inquiry-upload label { font-size: 16px; font-weight: 500; }
.section-inquiry .inquiry-upload input {
    min-width: 0;
    width: 100%;
    padding: 12px;
    border: 1px dashed rgba(47, 143, 216, 0.3);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-gray);
    font: inherit;
}

.section-inquiry .inquiry-upload input::file-selector-button {
    min-height: 44px;
    margin-right: 16px;
    padding: 10px 16px;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    background: var(--bg-hover);
    color: var(--text-light);
    font: inherit;
    cursor: pointer;
}

.section-inquiry .inquiry-upload input:disabled { opacity: 0.6; cursor: not-allowed; }
.section-inquiry .inquiry-upload input:disabled::file-selector-button { cursor: not-allowed; }
.section-inquiry .inquiry-files-availability { margin-top: 12px; }

.section-inquiry .inquiry-upload input:focus-visible,
.section-inquiry .inquiry-file-list button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.section-inquiry .inquiry-file-list { margin: 12px 0 0; padding: 0; list-style: none; }
.section-inquiry .inquiry-file-list:empty { display: none; }
.section-inquiry .inquiry-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(47, 143, 216, 0.2);
    font-size: 15px;
}
.section-inquiry .inquiry-file-list li span { min-width: 0; overflow-wrap: anywhere; }
.section-inquiry .inquiry-file-list button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    background: transparent;
    color: var(--text-light);
    font: inherit;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
    cursor: pointer;
}

.section-inquiry .inquiry-consultation {
    margin: 0 0 24px;
    padding: 24px;
    border-left: 3px solid var(--accent-blue);
    background: var(--bg-surface);
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
}
.section-inquiry .inquiry-consultation h3 { margin: 0 0 12px; font-size: 19px; color: var(--text-light); }
.section-inquiry .inquiry-consultation p { margin: 0; }
.section-inquiry .inquiry-consultation p + p { margin-top: 12px; }
.section-inquiry .inquiry-consultation-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
    color: var(--text-light);
}
.section-inquiry .inquiry-consultation-flow li + li::before {
    content: '→';
    margin-right: 12px;
    color: var(--accent-blue);
}

.section-inquiry .inquiry-status {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.section-inquiry .inquiry-status[hidden] { display: none; }
.section-inquiry .form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    background: #246ca5;
    color: var(--text-light);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.section-inquiry .form-submit-btn:hover { opacity: 0.92; }
.section-inquiry .form-submit-btn:active { transform: scale(0.99); }
.section-inquiry .form-submit-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.section-inquiry .form-submit-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

@media (max-width: 768px) {
    .section-inquiry .inquiry-title-wrap {
        position: static;
        top: auto;
    }
    .section-inquiry .inquiry-options { grid-template-columns: minmax(0, 1fr); }
    .section-inquiry .inquiry-group { margin-bottom: 32px; padding-top: 20px; }
    .section-inquiry .inquiry-consultation { padding: 20px; }
    .section-inquiry .inquiry-consultation-flow { flex-direction: column; gap: 8px; }
    .section-inquiry .inquiry-consultation-flow li + li::before { margin-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .section-inquiry .form-group input,
    .section-inquiry .form-group textarea,
    .section-inquiry .inquiry-option,
    .section-inquiry .form-submit-btn { transition: none; }
}

/* ===== Footer ===== */
.footer {
    background: var(--oil-black);
    padding: 40px 0 24px;
    border-top: 1px solid rgba(47, 143, 216, 0.3);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    min-width: 0;
}

.footer-name {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

.footer-tagline {
    margin-top: 6px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.footer-business {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.7;
}

.footer-business > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    max-width: 100%;
}

.footer-business dt {
    color: var(--text-muted);
}

.footer-business dd {
    margin: 0;
    color: var(--text-gray);
    overflow-wrap: anywhere;
}

.footer-inquiry {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
    color: var(--text-gray);
    font-size: 16px;
    white-space: nowrap;
    word-break: keep-all;
}

.footer-inquiry:hover,
.footer-inquiry:focus-visible {
    color: var(--accent-rust);
}

.footer-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-admin {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
    word-break: keep-all;
}

.footer-admin:hover,
.footer-admin:focus-visible {
    color: var(--accent-rust);
}

.footer-inquiry:focus-visible,
.footer-admin:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .footer-business {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== Floating Quick Actions ===== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.floating-action {
    display: inline-flex;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    background: var(--accent-blue);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
}

.floating-action i {
    line-height: 1;
}

.floating-action span {
    font-size: 11px;
    line-height: 1;
}

.floating-action:hover {
    transform: translateY(-5px);
    background: var(--primary-metal);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.floating-action:focus-visible {
    outline: 3px solid var(--text-light);
    outline-offset: 3px;
}

.floating-inquiry {
    font-size: 18px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
        margin-bottom: 32px;
    }

    .hero-subtitle {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 36px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -1px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: min(380px, 84vw);
        height: 100dvh;
        padding: 104px 34px 34px;
        background: var(--oil-black);
        border-left: 1px solid rgba(47, 143, 216, 0.35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s ease;
    }

    .nav-menu.is-open,
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 58px;
        padding: 0;
        font-size: 20px;
        color: var(--text-light);
    }

    .nav-menu .nav-link::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-actions {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        gap: 8px;
    }

    .floating-action {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: 16px;
        letter-spacing: 0;
        white-space: nowrap;
        line-height: 1.25;
        min-width: 0;
    }

    .nav-menu {
        width: min(340px, 86vw);
        padding: 92px 28px 28px;
    }

    .nav-menu .nav-link {
        min-height: 54px;
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.35;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 28px;
    }

    .hero-buttons .btn,
    .btn {
        font-size: 16px;
        padding: 12px 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process {
        padding: 72px 0 96px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-inquiry {
        padding: 64px 0 72px;
    }

    .section-inquiry .inquiry-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-inquiry .inquiry-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .section-inquiry .inquiry-subtitle {
        font-size: 14px;
    }

    .section-inquiry .form-hor {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-inquiry .form-submit-btn {
        font-size: 15px;
        min-height: 48px;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .service-card {
        padding: 25px 20px;
    }

    .gallery-slider {
        --gallery-visible: 1.25;
    }

    .gallery-caption {
        padding: 16px;
    }

    .gallery-caption h3 {
        font-size: 16px;
    }

    .gallery-caption p {
        font-size: 13px;
    }

    .nav-menu {
        width: min(330px, 88vw);
        padding: 88px 24px 28px;
    }

    .nav-menu .nav-link {
        min-height: 54px;
        font-size: 18px;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #68b6ee;
}

/* ===== Selection Styles ===== */
::selection {
    background: var(--accent-rust);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--accent-rust);
    color: var(--text-light);
}

/* Product examples keep their image treatment with readable details below. */
.gallery-slide-open {
    height: 100%;
    background: var(--bg-surface);
    font-family: inherit;
}

.gallery-caption {
    position: static;
    display: block;
    max-height: none;
    padding: 24px;
    background: none;
    transition: none;
}

.gallery-caption-desc,
.gallery-slide:hover .gallery-caption-desc,
.gallery-slide:focus-within .gallery-caption-desc {
    display: block;
    margin: 0;
    opacity: 1;
    font-size: 16px;
    line-height: 1.6;
    transition: none;
}

.gallery-slide .scope-product-media-title {
    padding: 30px;
}

.gallery-slide .scope-custom-media {
    aspect-ratio: 3 / 4;
}

@media (max-width: 768px) {
    .gallery-caption {
        padding: 20px;
    }

    .gallery-slide .scope-product-media-title {
        padding: 24px;
    }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .gallery-slide .gallery-caption {
        position: absolute;
        inset: 0;
        max-height: none;
        padding: 30px;
        background: rgba(13, 13, 13, 0.75);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .gallery-slide:hover .gallery-caption,
    .gallery-slide:focus-within .gallery-caption,
    .gallery-slide-open:focus-visible .gallery-caption {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .gallery-slide .scope-product-media-title {
        transition: opacity 0.28s ease;
    }

    .gallery-slide:hover .scope-product-media-title,
    .gallery-slide:focus-within .scope-product-media-title {
        opacity: 0;
    }
}

/* Mobile gallery content sits together over the original portrait image. */
.gallery-details-link { display: none; }

@media (max-width: 768px) {
    .gallery-slider { --gallery-visible: 1.2; --gallery-gap: 12px; }
    .gallery-track { gap: var(--gallery-gap); }

    .gallery-slide .scope-product-media img,
    .gallery-slide .scope-custom-media {
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .gallery-slide .scope-product-media-title { display: none; }

    .gallery-slide .gallery-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        height: auto;
        min-height: 0;
        max-height: 100%;
        padding: 20px;
        overflow: hidden;
        background: linear-gradient(to bottom, transparent, rgba(13, 13, 13, 0.9));
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .gallery-slide .gallery-caption-inner {
        display: block;
        transform: none;
    }

    .gallery-slide .scope-overlay-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin: 0 0 12px;
        font-size: 18px;
        line-height: 1.4;
    }

    .gallery-slide .scope-parts { display: none; }

    .gallery-slide .gallery-caption-desc,
    .gallery-slide:hover .gallery-caption-desc,
    .gallery-slide:focus-within .gallery-caption-desc {
        display: block;
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
        opacity: 1;
        transition: none;
    }

    .gallery-slide .gallery-caption-desc > span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .gallery-slide .gallery-details-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        margin-top: 16px;
        padding: 10px 16px;
        border: 1px solid var(--accent-rust);
        border-radius: 6px;
        color: var(--accent-rust);
        font-size: 15px;
        line-height: 1.4;
        white-space: nowrap;
        word-break: keep-all;
    }
}
