:root {
    --emerald-deep: #022c22;
    --emerald-glow: #065f46;
    --silver: #e2e8f0;
    --white-gold: #f8fafc;
    --text-primary: #fcfcfc;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --transition-premium: 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--emerald-deep);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background & Overlays */
.parallax-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-ocean {
    width: 110%;
    height: 110%;
    position: absolute;
    top: -5%;
    left: -5%;
    background: url('background_ocean.png') no-repeat center center;
    background-size: cover;
    filter: brightness(0.5) contrast(1.2);
    transform: scale(1.05);
}

.ocean-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 44, 34, 0.9) 0%, rgba(2, 44, 34, 0.4) 50%, rgba(2, 44, 34, 0.9) 100%);
}

/* Content Frame */
.content-frame {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    text-align: left;
}

.sub-brand {
    font-size: 0.75rem;
    letter-spacing: 0.4rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.brand-line {
    width: 40px;
    height: 1px;
    background: var(--text-secondary);
    margin: 1rem 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 48px; /* Slightly larger for visibility */
    width: auto;
    object-fit: contain;
    animation: fadeIn 2s var(--transition-premium) forwards;
}

.main-brand {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.main-heading {
    font-family: 'Bodoni Moda', serif;
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 300;
}

.status {
    font-style: italic;
    color: var(--silver);
    font-weight: 200;
    opacity: 0.8;
}

.visual-gallery {
    position: relative;
    height: 500px;
}

.frame {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    transition: transform 0.6s ease, opacity 0.6s ease;
    border-radius: 7px;
}

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

.portrait-frame {
    width: 320px;
    height: 400px;
    top: 0;
    right: 120px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.05);
}

.book-frame {
    width: 350px;
    height: 250px;
    bottom: -20px;
    right: 0;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 20; /* Ensure footer text is never covered by gallery frames */
}

.tagline {
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.05rem;
    color: var(--text-secondary);
}

.contact-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--text-secondary);
}

.link {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-premium);
}

.link:hover {
    color: var(--silver);
    transform: translateX(10px);
}

.logo-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Ensure contrast against background */
}

.footer-logo:hover {
    opacity: 1;
}

/* Animations */
.content-frame {
    animation: slideUp 2s var(--transition-premium);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding: 2rem 0;
    }

    .content-frame {
        width: 100%;
        height: auto;
        padding: 2rem;
        border: none;
        gap: 3rem;
    }

    .header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .main-heading {
        font-size: 3rem;
    }

    .visual-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 2rem;
    }

    .frame {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100% !important;
        max-width: 300px;
        height: auto !important;
        margin: 0 auto;
    }

    .portrait-frame {
        aspect-ratio: 320 / 400;
    }

    .book-frame {
        aspect-ratio: 350 / 250;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .contact-box {
        align-items: center;
        text-align: center;
    }

    .logo-wrapper {
        justify-content: center;
    }

    .link {
        font-size: 1.1rem;
        word-break: break-all;
    }
}
