/* ===========================================
   ABLE 3D | style.css
   Immersive dark company site
   =========================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ── CSS Variables ── */
:root {
    --header-h: 64px;
    --white: #ffffff;
    --grey: rgba(0, 0, 0, 0.6);
    --dim: rgba(0, 0, 0, 0.1);
    --accent: #1a56db;
    /* KSP 블루/네이비 */
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Cursor ── */
#cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a56db;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform .08s;
    mix-blend-mode: normal;
}

#cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(26, 86, 219, .4);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .3s var(--easing), height .3s var(--easing), opacity .3s;
    mix-blend-mode: normal;
}

body.cursor-hover #cursor-ring {
    width: 64px;
    height: 64px;
    opacity: .5;
}

@media (hover:none) {

    #cursor-dot,
    #cursor-ring {
        display: none;
    }
}

/* ── Preloader ── */
#loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    transition: opacity .8s, visibility .8s;
}

#loader.gone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loader-inner {
    text-align: center;
}

#loader-brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 24px;
}

#loader-bar-wrap {
    width: 200px;
    height: 1px;
    background: rgba(0, 0, 0, .12);
    margin: 0 auto 14px;
    overflow: hidden;
}

#loader-bar {
    height: 100%;
    width: 0;
    background: #333;
    transition: width .1s;
}

#loader-count {
    font-size: clamp(13px, 1.08vw, 16px);
    letter-spacing: .16em;
    color: var(--grey);
}

/* ── Header ── */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 200;
    transition: background .4s, backdrop-filter .4s;
}

#header.scrolled {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.header-logo {
    font-size: clamp(22px, 1.83vw, 25px);
    font-weight: 700;
    letter-spacing: .05em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: clamp(15px, 1.25vw, 18px);
    letter-spacing: .06em;
    color: var(--grey);
    transition: color .25s;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #1a56db;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--easing);
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
}

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

/* Hamburger */
#menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

#menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: #333;
    transition: transform .3s, opacity .3s;
}

#menu-btn.open span:first-child {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.open span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── HERO ── */
#hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 60px 100px;
}

.hero-eyebrow {
    font-size: clamp(13px, 1.08vw, 16px);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hero-title {
    color: #0B2865;
    font-size: clamp(80px, 14vw, 200px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.04em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--grey);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta {
    color: #000;
    display: inline-block;
    font-size: clamp(15px, 1.25vw, 18px);
    letter-spacing: .1em;
    border: 1px solid #1a1a1a;
    padding: 12px 28px;
    transition: background .3s, border-color .3s, color .3s;
}

.hero-cta:hover {
    background: #fff;
    color: #1a56db;
    border-color: rgba(26, 86, 219, .35);
}

.hero-scroll-hint {
    position: absolute;
    right: 44px;
    bottom: 44px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-scroll-hint span {
    font-size: clamp(12px, 1.00vw, 15px);
    letter-spacing: .18em;
    color: var(--grey);
    writing-mode: vertical-lr;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, .2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a56db;
    animation: scrollDrop 1.8s linear infinite;
}

@keyframes scrollDrop {
    to {
        top: 200%;
    }
}

/* ── NUMBERS ── */
.section-numbers {
    padding: 80px 60px;
    background: #f8f9fa;
    border-top: 1px solid var(--dim);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.num-item {
    border-top: 1px solid var(--dim);
    padding-top: 28px;
}

.num-val {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}

.num-unit {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
}

.num-item p {
    font-size: clamp(15px, 1.25vw, 18px);
    color: var(--grey);
    margin-top: 10px;
    font-weight: 300;
}

/* ── ABOUT ── */
.section-about {
    padding: 120px 60px;
    background: #ffffff;
}

.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: clamp(12px, 1.00vw, 15px);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 28px;
}

.section-body {
    font-size: clamp(17px, 1.42vw, 20px);
    line-height: 1.8;
    color: var(--grey);
    font-weight: 300;
    margin-bottom: 36px;
}

.link-arrow {
    font-size: clamp(15px, 1.25vw, 18px);
    letter-spacing: .06em;
    color: #1a1a1a;
    border-bottom: 1px solid rgba(26, 86, 219, .25);
    padding-bottom: 2px;
    transition: border-color .25s;
}

.link-arrow:hover {
    border-color: #1a1a1a;
}

.about-img-wrap img,
.about-img-wrap video {
    border-radius: 4px;
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* ── PRODUCT PREVIEW ── */
.section-preview {
    padding: 100px 60px;
}

.preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.preview-header .section-title {
    margin-bottom: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pcard {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .35s var(--easing);
}

.pcard:hover {
    transform: translateY(-8px);
}

.pcard-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pcard-img img {
    max-height: 180px;
    object-fit: contain;
}

.pcard-body {
    padding: 20px 24px;
}

.pcard-cat {
    font-size: clamp(12px, 1.00vw, 15px);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--grey);
}

.pcard-name {
    font-size: clamp(20px, 1.67vw, 23px);
    font-weight: 600;
    margin-top: 6px;
}

/* ── EQUIPMENT PREVIEW ── */
.section-equipment-preview {
    padding: 100px 60px;
    background: #f8f9fa;
}

.equip-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 60px 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.equip-text {
    max-width: 540px;
}

.equip-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
    align-self: end;
}

.equip-brands span {
    font-size: clamp(13px, 1.08vw, 16px);
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--dim);
    padding: 8px 16px;
    color: var(--grey);
}

.equip-img-wrap {
    grid-column: 2;
    grid-row: 1/3;
}

.equip-img-wrap img {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* ── CTA ── */
.section-cta {
    padding: 120px 60px;
    border-top: 1px solid var(--dim);
    text-align: center;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(32px, 5vw, 70px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.cta-inner p {
    font-size: clamp(17px, 1.42vw, 20px);
    color: var(--grey);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: #0B2865;
    color: #fff;
    font-size: clamp(16px, 1.33vw, 19px);
    font-weight: 600;
    letter-spacing: .06em;
    padding: 16px 48px;
    transition: background .3s, transform .3s;
}

.btn-primary:hover {
    background: #1a56db;
    transform: translateY(-2px);
}

/* ── Footer ── */
#footer {
    border-top: 1px solid var(--dim);
    padding: 48px 60px 32px;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand strong {
    font-size: clamp(20px, 1.67vw, 23px);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: clamp(15px, 1.25vw, 18px);
    color: var(--grey);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: clamp(15px, 1.25vw, 18px);
    color: var(--grey);
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    font-size: clamp(13px, 1.08vw, 16px);
    color: rgba(0, 0, 0, .4);
    padding-top: 24px;
    border-top: 1px solid var(--dim);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s var(--easing), transform .8s var(--easing);
}

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

.reveal-d1 {
    transition-delay: .1s;
}

.reveal-d2 {
    transition-delay: .2s;
}

.reveal-d3 {
    transition-delay: .3s;
}

.reveal-d4 {
    transition-delay: .4s;
}

.reveal-d5 {
    transition-delay: .5s;
}

/* ── Sub-page common ── */
.sub-hero {
    padding: calc(var(--header-h) + 60px) 60px 60px;
    border-bottom: 1px solid var(--dim);
}

.sub-hero-label {
    font-size: clamp(12px, 1.00vw, 15px);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sub-hero h1 {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -.04em;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Product grid */
.cat-section {
    padding: 80px 60px;
    border-bottom: 1px solid var(--dim);
}

.cat-section:last-of-type {
    border-bottom: none;
}

.cat-title {
    font-size: clamp(13px, 1.08vw, 16px);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.prod-card {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .3s var(--easing);
}

.prod-card:hover {
    transform: translateY(-6px);
}

.prod-card-img {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f1f3f5;
}

.prod-card-img img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.prod-card-body {
    padding: 16px 20px;
}

.prod-card-name {
    font-size: clamp(16px, 1.33vw, 19px);
    font-weight: 600;
}

/* Equipment grid */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px 80px;
}

.equip-card {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .3s var(--easing);
}

.equip-card:hover {
    transform: translateY(-6px);
}

.equip-card-img {
    background: #f1f3f5;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.equip-card-img img {
    max-height: 140px;
    object-fit: contain;
}

.equip-card-body {
    padding: 20px;
}

.equip-maker {
    font-size: clamp(12px, 1.00vw, 15px);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.equip-model {
    font-size: clamp(18px, 1.50vw, 21px);
    font-weight: 600;
}

/* Contact */
.contact-section {
    padding: 80px 60px;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 32px;
}

.contact-info p {
    font-size: clamp(17px, 1.42vw, 20px);
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-detail {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: clamp(16px, 1.33vw, 19px);
    color: var(--grey);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: clamp(13px, 1.08vw, 16px);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--grey);
}

.form-group input,
.form-group textarea {
    background: #f8f9fa;
    border: 1px solid var(--dim);
    color: #1a1a1a;
    padding: 12px 16px;
    font-family: inherit;
    font-size: clamp(16px, 1.33vw, 19px);
    border-radius: 4px;
    transition: border-color .25s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a56db;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: clamp(14px, 1.17vw, 17px);
    color: var(--grey);
}

.form-agree input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

button[type=submit] {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 32px;
    font-size: clamp(16px, 1.33vw, 19px);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .06em;
    transition: background .3s, transform .3s;
}

button[type=submit]:hover {
    background: rgba(255, 255, 255, .85);
    transform: translateY(-2px);
}

/* About page */
.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.about-page-left {
    padding: 80px 60px;
    border-right: 1px solid var(--dim);
}

.about-page-right {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

.about-page-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}

.about-pg-eyebrow {
    font-size: clamp(12px, 1.00vw, 15px);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 16px;
}

.about-pg-block {
    margin-bottom: 48px;
}

.about-pg-block h3 {
    font-size: clamp(16px, 1.33vw, 19px);
    font-weight: 600;
    margin-bottom: 12px;
}

.about-pg-block p,
.about-pg-block li {
    font-size: clamp(16px, 1.33vw, 19px);
    color: var(--grey);
    line-height: 1.8;
}

.about-pg-block ul {
    padding-left: 0;
}

.about-pg-block li::before {
    content: '— ';
    color: rgba(255, 255, 255, .2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    :root {
        --header-h: 60px;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-equipment-preview {
        grid-template-columns: 1fr;
    }

    .equip-img-wrap {
        grid-column: 1;
        grid-row: auto;
    }

    .about-page-grid {
        grid-template-columns: 1fr;
    }

    .about-page-right {
        min-height: 50vw;
        position: relative;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    #header {
        padding: 0 20px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 9999;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        font-size: 22px;
    }

    #menu-btn {
        display: flex;
        z-index: 10000;
    }

    .hero-content {
        padding: 0 28px 80px;
    }

    .section-numbers {
        padding: 60px 28px;
    }

    .section-about,
    .section-preview,
    .section-equipment-preview,
    .section-cta {
        padding: 80px 28px;
    }

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

    .equip-grid {
        padding: 0 24px 60px;
        grid-template-columns: 1fr;
    }

    .cat-section {
        padding: 60px 24px;
    }

    .sub-hero {
        padding: calc(var(--header-h) + 40px) 28px 40px;
    }

    .footer-top {
        flex-direction: column;
    }

    #footer {
        padding: 40px 24px 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .contact-section {
        padding: 60px 24px;
    }

    .about-page-left {
        padding: 60px 24px;
    }

    .numbers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width:480px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

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

/*================================================
  UI Enhancements (Zoom & Glow, Scroll Progress, Modal, Marquee)
================================================*/

/* ── Zoom & Glow ── */
.pcard,
.prod-card,
.equip-card {
    border: 1px solid transparent;
}

.pcard-img img,
.prod-card-img img,
.equip-card-img img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pcard:hover .pcard-img img,
.prod-card:hover .prod-card-img img,
.equip-card:hover .equip-card-img img {
    transform: scale(1.15);
}

.pcard:hover,
.prod-card:hover,
.equip-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 40px rgba(224, 90, 0, 0.12);
    border-color: rgba(224, 90, 0, 0.25);
    z-index: 10;
}

/* ── Scroll Progress ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 99999;
}

/* ── Lightbox Modal ── */
#lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--easing), visibility 0.4s;
}

#lightbox-modal.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s var(--easing);
    max-width: 90vw;
}

#lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-img-wrap {
    background: #f1f3f5;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#lightbox-img {
    max-height: 65vh;
    max-width: 100%;
    object-fit: contain;
}

#lightbox-title {
    margin-top: 24px;
    font-size: clamp(22px, 1.83vw, 25px);
    font-weight: 600;
    letter-spacing: .05em;
    color: #1a1a1a;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ── Marquee ── */
.marquee-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    white-space: nowrap;
    align-self: end;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-inner {
    display: inline-flex;
    gap: 16px;
    animation: scrollLeft 18s linear infinite;
}

.marquee-inner:hover {
    animation-play-state: paused;
}

.marquee-inner span {
    font-size: clamp(13px, 1.08vw, 16px);
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--dim);
    padding: 10px 20px;
    color: var(--grey);
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 8px));
    }
}


/* ── Typography Refinement for Cards ── */
.pcard-name,
.prod-card-name,
.equip-model {
    font-size: clamp(14px, 1.1vw, 16px) !important;
    font-weight: 400 !important;
    color: #0B2865 !important;
    letter-spacing: 0.03em;
}

.equip-maker {
    color: #1a56db !important;
    /* Low-saturation muted orange */
}

.pcard,
.prod-card,
.equip-card {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    /* Very slight brightness bump from #111 */
}

/* Image Wrapper Brightness */
.pcard-img,
.prod-card-img,
.equip-card-img {
    background: #f8f9fa !important;
}

/* ── Typography Spacing Refinement (Large Texts) ── */
.hero-title,
.section-title,
.sub-hero h1,
.cta-title,
.contact-info h2 {
    letter-spacing: 0.01em !important;
    /* 기존 -0.04em 등에서 넓힘 */
    line-height: 1.35 !important;
    /* 기존보다 약 1.2배 줄간격/글씨간격 확보 */
}

/* ── Inline fix for footer strong tag ── */
.footer-brand strong {
    display: inline !important;
    margin-bottom: 0 !important;
    color: #0B2865 !important;
}


/* ── UI Finishing Touches ── */
* {
    -webkit-tap-highlight-color: transparent;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
}

/* Allow text selection inside inputs and textareas so the contact form still works */
input,
textarea {
    user-select: auto !important;
    -webkit-user-select: auto !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #1a56db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0B2865;
}

/* --- Mobile Nav Stacking Fixes --- */
body.menu-open #header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom: none !important;
}

.header-logo .logo-text {
    font-size: clamp(22px, 1.83vw, 25px);
    font-weight: 700;
    color: #0B2865;
}

@media (max-width: 768px) {
    .nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 9999 !important;
    }
    .header-logo {
        position: relative;
        z-index: 10000 !important;
    }
    #menu-btn {
        position: relative;
        z-index: 10000 !important;
    }
    .sub-hero {
        padding-top: calc(var(--header-h) + 40px) !important;
    }
}
