:root {
    --color-bg-primary: #F9F8F6;
    --color-accent-soft: #E5D3C0;
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-gold: #D4AF37;
    /* Gold for accents */
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-container: 1200px;
    --spacing-gutter: 20px;
    --color-bg-beige: #F5EFEB;
    /* Soft warmth for specialist section */
    --color-border-light: #E0E0E0;
}

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

html {
    scroll-behavior: smooth;
    /* Default normal scrolling for most pages */
    overflow-y: auto;
    height: auto;
}

/* Home Page specific scroll snap */
html.snap-scroll {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    /* Required for snap */
    height: 100%;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-body);
    /* ... */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

/* Single Screen Subpages */
body.single-screen {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body.single-screen main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Hide footer on single-screen pages */
body.single-screen .site-footer {
    display: none !important;
}

/* Specific Page Adjustments */
body.single-screen .specialist-page,
body.single-screen .branding-story-page,
body.single-screen .promotion-page,
body.single-screen .booking-section {
    min-height: auto;
    height: 100%;
    padding-top: 100px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
}

body.single-screen .eq-3d-section {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
}

body.single-screen .page-hero {
    position: absolute;
    top: 120px; /* Below header */
    left: 0;
    width: 100%;
    z-index: 20;
    pointer-events: none;
    padding: 0;
}

/* Universal Luxurious Background Slider */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--color-bg-primary);
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: kenburns 18s infinite linear;
}

.bg-slide:nth-child(1) { animation-delay: 0s; }
.bg-slide:nth-child(2) { animation-delay: 6s; }
.bg-slide:nth-child(3) { animation-delay: 12s; }

@keyframes kenburns {
    0% { opacity: 0; transform: scale(1.0); }
    11% { opacity: 1; }
    33% { opacity: 1; }
    44% { opacity: 0; }
    100% { opacity: 0; transform: scale(1.08); }
}

/* Static Background for Subpages */
.bg-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6));
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-gutter);
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
}

.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    /* Force Logo left, Nav right */
    align-items: center;
    width: 100%;
    max-width: 100%;
    /* Ensure full span */
    padding: 0 40px;
    /* Add breathing room */
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.logo {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    /* Dark text for beige background */
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--color-gold);
}

.main-nav {
    width: auto;
    /* Ensure it doesn't take full width */
    margin-left: auto;
    /* Push to the right */
}

.main-nav ul {
    display: flex;
    gap: 30px;
    /* Adjust spacing between menu items */
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav li {
    position: relative;
    /* For dropdown positioning */
}

.main-nav a {
    font-size: 0.85rem;
    /* Slightly reduced for better fit */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--color-text-primary);
    /* Dark text for beige background */
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-gold);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(244, 244, 244, 0.95);
    /* Light gray with slight transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 130px;
    /* Further reduced width */
    width: max-content;
    /* Snug fit */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: 12px;
    /* More rounded */
    padding: 10px 0;

    /* Animation Initial State */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;

    display: flex;
    flex-direction: column;
    gap: 0;
    /* Reset gap for vertical list */
}

/* Hover State */
.main-nav li:hover .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: 15px 0;
    /* Adding padding on expand */
}

/* Dropdown Items */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    /* Compact padding */
    color: #333333;
    /* Dark text for readability on white */
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    /* Korean font support */
    font-size: 14px;
    /* Smaller font text */
    line-height: 1.4;
    /* Tight line height */
    font-weight: 400;
    text-transform: none;
    /* Reset uppercase */
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(229, 211, 192, 0.2);
    /* Soft highlight */
    color: var(--color-gold);
}

.dropdown-menu a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* Changed to min-height for safer content fit */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Force stop at each section */
}

/* Hero Section Background (Moved to global body) */
.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Ensure text sits on top */
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-out forwards;
    /* Immediate visibility animation */
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-gold {
    border: 1px solid var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-text-primary);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

.mobile-menu-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(245, 239, 235, 0.98);
    z-index: 10000; /* Increased z-index to ensure it sits on top of everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-primary);
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    display: none; /* Only show on mobile */
}

@media (max-width: 768px) {
    .mobile-menu-close {
        display: block;
    }
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-overlay li {
    margin-bottom: 25px;
}

.mobile-nav-overlay a {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.mobile-nav-overlay a:hover {
    color: var(--color-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-content {
        padding: 0 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content .btn {
        margin: 0 auto;
    }

    .specialist-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .specialist-image-placeholder {
        height: 400px;
        max-width: 100%;
    }

    .treatments-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Specialist Section */
.specialist {
    background-color: transparent;
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.specialist-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.specialist-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Align image towards center */
    padding-right: 20px;
}

.specialist-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.specialist-content {
    flex: 1;
    padding-left: 20px;
}

.specialist-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 550px;
    /* Tall portrait */
    background-color: #d8d8d8;
    /* Placeholder */
    background-image: linear-gradient(to bottom right, #ececec, #d8d8d8);
    border-radius: 2px;
}

.specialist-content {
    flex: 1;
    padding-left: 20px;
}

.specialist-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    /* Regular weight for elegance */
    margin-bottom: 30px;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.specialist-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 480px;
}

/* Treatments Section */
.treatments {
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Space out title/grid and footer */
    padding-top: 80px;
    /* Add padding to top to balance layout */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    color: var(--color-text-primary);
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Compact gap */
    margin-bottom: 40px;
    /* Space before footer */
}

.treatment-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 30px 20px;
    /* Compact padding */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: none !important;
    min-height: 200px;
    /* Compact height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.treatment-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 0 0 2px var(--color-gold);
    /* Deeper shadow and inset gold border for intense motion */
    transform: translateY(-8px);
    border-color: transparent;
}

.treatment-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.treatment-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: #333333;
    /* Deep Charcoal */
    color: var(--color-white);
    padding: 40px 0;
    /* Compact padding */
    font-size: 0.85rem;
    width: 100%;
    /* No scroll snap align needed as it's inside parent */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: var(--color-gold);
}

.footer-address p {
    margin-bottom: 10px;
    color: #cccccc;
    font-weight: 300;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999999;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent-soft);
    font-weight: 400;
}

.footer-hours p {
    margin-bottom: 10px;
    color: #cccccc;
    font-weight: 300;

    .footer-cta {
        margin-top: 20px;
    }
}

/* Scroll Entrance Animation Standard Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-cta {
    display: flex;
    align-items: center;
}

.btn-footer {
    border-color: var(--color-accent-soft);
    color: var(--color-accent-soft);
}

.btn-footer:hover {
    background-color: var(--color-accent-soft);
    color: #333333;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-cta {
        margin-top: 20px;
    }
}
/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--color-bg-beige);
    width: 90%;
    max-width: 450px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    overflow: hidden;
    border: 1px solid var(--color-accent-soft);
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.popup-body {
    padding: 50px 40px 40px;
    text-align: center;
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 1px;
}

.popup-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.popup-subtext {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-btn {
    padding: 12px 30px;
    font-size: 0.85rem;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #EBE4DE;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.popup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.popup-close-text {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    cursor: pointer;
    font-weight: 500;
}

/* Override for Dropdown Menu Animation */
.dropdown-menu {
    /* Existing code ... */
}

/* Vertical 3D Stacked Carousel */
.eq-3d-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1500px; /* Gives the 3D depth */
    overflow: hidden;
    padding-bottom: 50px;
}

.eq-3d-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 60vh;
    min-height: 400px;
    transform-style: preserve-3d;
}

.eq-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

.eq-card.active {
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    cursor: default;
}

.eq-card.active:hover {
    transform: translateY(0px) translateZ(50px) scale(1.05) !important;
    box-shadow: 0 35px 60px rgba(0,0,0,0.3);
}

.eq-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.eq-card.active:hover .eq-card-image {
    transform: scale(1.05); /* Slight internal zoom */
}

.eq-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(40,30,25,0.95), rgba(40,30,25,0.6) 60%, transparent);
    color: var(--color-white);
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* Let clicks pass through if needed, or handle inside */
}

.eq-card.active:hover .eq-card-info {
    opacity: 1;
    transform: translateY(0);
}

.eq-info-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.eq-info-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.eq-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounceHint 2s infinite;
}

.eq-scroll-hint span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounceHint {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

@media (max-width: 768px) {
    .eq-3d-container {
        width: 85%;
        height: 50vh;
    }
    .eq-card-info {
        padding: 40px 20px 20px;
    }
    .eq-info-title {
        font-size: 1.8rem;
    }
    .eq-info-desc {
        font-size: 0.95rem;
    }
}
.dropdown-menu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dropdown-menu a:hover {
    background-color: transparent !important;
    color: var(--color-gold) !important;
    padding-left: 28px !important;
}

/* Custom Cursor */
body, a, button, input, label, .btn, .treatment-card, .popup-checkbox, .popup-close-text {
    cursor: none !important;
}

/* Morse Code Title Animation */
.morse-word {
    display: inline-block;
    margin-right: 0.25em; /* Space between MORSE and CLINIC */
}

.m-letter {
    position: relative;
    display: inline-block;
}

.m-morse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-gold);
    opacity: 0;
    font-size: 0.65em;
    letter-spacing: 2px;
    white-space: nowrap;
    animation: morse-out 1.2s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.m-text {
    opacity: 0;
    display: inline-block;
    animation: text-in 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.m-word {
    opacity: 0;
    display: inline-block;
    animation: text-in 1s forwards cubic-bezier(0.25, 1, 0.5, 1);
    animation-delay: 2.8s;
}

@keyframes morse-out {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); filter: blur(4px); }
}

@keyframes text-in {
    0% { opacity: 0; filter: blur(4px); transform: scale(0.9); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* Staggered Delays */
.m-letter:nth-child(1) .m-morse { animation-delay: 0.2s; }
.m-letter:nth-child(1) .m-text { animation-delay: 1.2s; }

.m-letter:nth-child(2) .m-morse { animation-delay: 0.5s; }
.m-letter:nth-child(2) .m-text { animation-delay: 1.5s; }

.m-letter:nth-child(3) .m-morse { animation-delay: 0.8s; }
.m-letter:nth-child(3) .m-text { animation-delay: 1.8s; }

.m-letter:nth-child(4) .m-morse { animation-delay: 1.1s; }
.m-letter:nth-child(4) .m-text { animation-delay: 2.1s; }

.m-letter:nth-child(5) .m-morse { animation-delay: 1.4s; }
.m-letter:nth-child(5) .m-text { animation-delay: 2.4s; }

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translate(-4px, -50%); /* Center dot on cursor */
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-text-primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-dash {
    width: 14px;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-cursor.hover .cursor-dot {
    background-color: var(--color-gold);
    transform: scale(1.5);
}

.custom-cursor.hover .cursor-dash {
    background-color: var(--color-gold);
    transform: scale(1.2) translateX(2px);
}

/* Language Selector */
.lang-selector .lang-btn {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
    opacity: 0.6;
}
.lang-selector .lang-btn:hover, .lang-selector .lang-btn.active {
    color: var(--color-gold);
    opacity: 1;
}
.lang-selector .lang-btn::after {
    display: none !important;
}

/* Horizontal Equipment Layout */
.eq-horizontal-section { padding: 40px 0 100px; }
.eq-horizontal-card { display: flex; flex-direction: row; width: 100%; margin-bottom: 40px; background-color: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.05); min-height: 400px; overflow: hidden; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.eq-horizontal-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 25px 60px rgba(0,0,0,0.12); }
.eq-card-left { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 40px; }
.eq-machine-img { max-width: 80%; max-height: 350px; object-fit: contain; transition: transform 0.5s ease; }
.eq-horizontal-card:hover .eq-machine-img { transform: scale(1.05); }
.eq-card-right { flex: 1; background-color: #FAFAFA; position: relative; padding: 60px 80px; display: flex; flex-direction: column; justify-content: center; }
.eq-number { position: absolute; top: 30px; left: 40px; font-family: var(--font-heading); font-size: 3rem; font-weight: 600; color: var(--color-text-primary); }
.eq-brand { position: absolute; top: 40px; right: 40px; font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 2px; color: var(--color-text-primary); font-weight: 500; }
.eq-content { max-width: 400px; margin: 0 auto; }
.eq-title { font-family: 'Pretendard', sans-serif; font-size: 2.2rem; font-weight: 400; margin-bottom: 20px; color: var(--color-text-primary); letter-spacing: 1px; }
.eq-desc { font-family: 'Pretendard', sans-serif; font-size: 0.95rem; line-height: 1.8; color: var(--color-text-secondary); font-weight: 300; }
.eq-vertical-text { position: absolute; right: 40px; bottom: 60px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 3px; color: var(--color-text-secondary); text-transform: uppercase; }
@media (max-width: 768px) {
    .eq-horizontal-card { flex-direction: column; }
    .eq-vertical-text { display: none; }
    .eq-card-left { padding: 24px; }
    .eq-card-right { 
        padding: 24px; 
        align-items: flex-start;
    }
    .eq-number { position: static; margin-bottom: 10px; font-size: 2.5rem; text-align: left; }
    .eq-brand { position: static; margin-bottom: 20px; text-align: left; }
    .eq-content { margin: 0; text-align: left; width: 100%; max-width: none; }
    .eq-title { font-size: 1.8rem; margin-bottom: 15px; }
    .eq-desc { line-height: 1.65; word-break: keep-all; }
}
