/* ============================================================
   miris.one - Luxury Burgundy Depth Layers
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #2A0A18;
    color: #F0E0D8;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ---------- SVG Filters (Hidden) ---------- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Grain Overlay ---------- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    filter: url(#grain);
    background: #2A0A18;
    mix-blend-mode: multiply;
}

/* ---------- Depth Container (Perspective) ---------- */
.depth-container {
    position: relative;
    min-height: 100vh;
    perspective: 1200px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.depth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(-100px) scale(1.08);
    transform-style: preserve-3d;
    pointer-events: none;
}

.depth-mid {
    position: relative;
    transform: translateZ(-30px) scale(1.025);
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 40px;
}

.depth-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    transform-style: preserve-3d;
    pointer-events: none;
}

.depth-fg .nav-link,
.depth-fg .logotype {
    pointer-events: auto;
}

/* ---------- HERO SECTION ---------- */
#hero {
    background: #2A0A18;
    display: flex;
    align-items: center;
}

.hero-bg {
    background: #1A0610;
}

.vine-bg-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    opacity: 0.6;
}

.vine-bg-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    opacity: 0.6;
}

/* Hero Midground */
.hero-mid {
    justify-content: flex-end;
    padding-right: 10%;
}

.hero-panel {
    background: rgba(74, 24, 40, 0.5);
    border: 1px solid rgba(212, 160, 144, 0.1);
    border-radius: 4px;
    padding: 40px 48px;
    max-width: 440px;
    box-shadow: 0 0 40px rgba(212, 160, 144, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-description {
    font-family: 'Lora', serif;
    font-size: clamp(15px, 1.1vw, 18px);
    color: #F0E0D8;
    line-height: 1.75;
}

/* Hero Foreground */
.hero-fg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
    pointer-events: none;
}

.logotype {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    color: #F0E0D8;
    line-height: 1.05;
    text-shadow: 0 0 30px rgba(212, 160, 144, 0.3), 0 0 60px rgba(212, 160, 144, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, text-shadow 0.8s ease;
    pointer-events: auto;
}

.logotype.visible {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 40px rgba(212, 160, 144, 0.4), 0 0 80px rgba(212, 160, 144, 0.2);
}

/* Navigation */
.main-nav {
    margin-top: 32px;
    display: flex;
    gap: 32px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.main-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(12px, 0.8vw, 14px);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A6070;
    text-decoration: none;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.nav-link:hover {
    color: #C8A060;
}

/* ---------- SECTION COMMON STYLES ---------- */
.section-reveal .depth-bg {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.section-reveal .depth-mid {
    opacity: 0;
    transform: translateZ(-30px) scale(1.025) translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-reveal .depth-fg {
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.section-reveal.in-view .depth-bg {
    opacity: 1;
}

.section-reveal.in-view .depth-mid {
    opacity: 1;
    transform: translateZ(-30px) scale(1.025) translateY(0);
}

.section-reveal.in-view .depth-fg {
    opacity: 1;
}

/* Section Labels (Foreground) */
.section-label {
    position: absolute;
    top: 40px;
    left: 40px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(11px, 0.7vw, 13px);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A6070;
}

/* Section Headlines */
.section-headline {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 400;
    color: #F0E0D8;
    line-height: 1.1;
    margin-bottom: 32px;
    text-shadow: 0 0 20px rgba(212, 160, 144, 0.15);
}

/* Content Panels */
.content-panel {
    background: rgba(74, 24, 40, 0.4);
    border: 1px solid rgba(212, 160, 144, 0.08);
    border-radius: 4px;
    padding: 60px 64px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 0 20px rgba(212, 160, 144, 0.06);
}

.body-text {
    color: #F0E0D8;
    margin-bottom: 16px;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* ---------- ABOUT SECTION ---------- */
#about {
    background: #2A0A18;
}

.about-bg {
    background: linear-gradient(180deg, #1A0610 0%, #2A0A18 100%);
}

/* ---------- WORKS SECTION ---------- */
#works {
    background: #1A0610;
}

.works-bg {
    background: linear-gradient(180deg, #2A0A18 0%, #1A0610 100%);
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(138, 96, 112, 0.2);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.work-item:first-child {
    border-top: 1px solid rgba(138, 96, 112, 0.2);
}

.work-title {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 400;
    color: #F0E0D8;
    transition: color 0.4s ease;
    white-space: nowrap;
}

.work-meta {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(11px, 0.7vw, 13px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A6070;
    white-space: nowrap;
}

.work-dash {
    flex-grow: 1;
    height: 1px;
    background: rgba(138, 96, 112, 0.3);
    min-width: 20px;
}

.work-item:hover .work-title {
    color: #C8A060;
}

.work-item:hover .work-dash {
    background: rgba(200, 160, 96, 0.4);
}

/* ---------- PHILOSOPHY SECTION ---------- */
#philosophy {
    background: #2A0A18;
}

.philosophy-bg {
    background: linear-gradient(180deg, #1A0610 0%, #2A0A18 100%);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 24px;
}

.philosophy-item {
    padding: 0;
}

.philosophy-title {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    color: #D4A090;
    margin-bottom: 12px;
}

/* ---------- CONTACT SECTION ---------- */
#contact {
    background: #1A0610;
}

.contact-bg {
    background: linear-gradient(180deg, #2A0A18 0%, #1A0610 100%);
}

.contact-panel {
    max-width: 600px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    background: rgba(42, 10, 24, 0.6);
    border: 1px solid rgba(212, 160, 144, 0.1);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-link:hover {
    border-color: rgba(200, 160, 96, 0.3);
    box-shadow: 0 0 20px rgba(212, 160, 144, 0.1);
}

.contact-link-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(11px, 0.7vw, 13px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A6070;
}

.contact-link-value {
    font-family: 'Lora', serif;
    font-size: clamp(16px, 1.2vw, 20px);
    color: #D4A090;
    transition: color 0.4s ease;
}

.contact-link:hover .contact-link-value {
    color: #C8A060;
}

/* ---------- BOTANICAL ACCENTS ---------- */
.botanical-accent {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.botanical-top-right {
    top: 20px;
    right: 20px;
    width: clamp(150px, 20vw, 300px);
    height: auto;
}

.botanical-bottom-left {
    bottom: 20px;
    left: 20px;
    width: clamp(150px, 20vw, 300px);
    height: auto;
}

.botanical-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 30vw, 400px);
    height: auto;
}

.botanical-wide {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 50vw, 600px);
    height: auto;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #1A0610;
    padding: 40px;
    border-top: 1px solid rgba(138, 96, 112, 0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logotype {
    font-family: 'Abril Fatface', cursive;
    font-size: 24px;
    color: #8A6070;
}

.footer-copy {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #8A6070;
}

/* ---------- ROSE-GOLD GLOW ACCENTS ---------- */
.content-panel {
    box-shadow: 0 0 20px rgba(212, 160, 144, 0.06);
}

.hero-panel {
    box-shadow: 0 0 40px rgba(212, 160, 144, 0.08);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-fg {
        padding-left: 24px;
        padding-right: 24px;
        justify-content: flex-start;
        padding-top: 30vh;
    }

    .hero-mid {
        justify-content: center;
        padding: 0 24px;
        padding-top: 55vh;
        align-items: flex-start;
    }

    .hero-panel {
        max-width: 100%;
        padding: 28px 32px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .content-panel {
        padding: 40px 32px;
    }

    .depth-mid {
        padding: 60px 24px;
    }

    .section-label {
        top: 24px;
        left: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
    }

    .work-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .work-dash {
        display: none;
    }
}

@media (max-width: 480px) {
    .logotype {
        font-size: clamp(36px, 10vw, 60px);
    }

    .section-headline {
        font-size: clamp(28px, 8vw, 48px);
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1A0610;
}

::-webkit-scrollbar-thumb {
    background: #4A1828;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8A6070;
}

/* ---------- SELECTION ---------- */
::selection {
    background: rgba(200, 160, 96, 0.3);
    color: #F0E0D8;
}
