/* --- BASE & RESET --- */
* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

body, html {
    margin: 0; padding: 0;
    font-family: 'Archivo Narrow', sans-serif; 
    overflow: hidden; width: 100%; height: 100svh;
}

body {
    background-color: #f4f1ea;
    background-image: radial-gradient(#ddd9ce 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    color: black;
}

/* --- NAVIGATION (MATCHES ABOUT ME MENU) --- */
.ui-nav-mask {
    position: fixed; 
    top: 0; left: 0; 
    width: 250px; height: 250px; 
    z-index: 10000; 
    pointer-events: none;
    background-color: #f4f1ea; 
    backdrop-filter: blur(40px); 
    -webkit-backdrop-filter: blur(40px);
    mask-image: radial-gradient(circle at 65px 65px, black 0%, black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 65px 65px, black 0%, black 20%, transparent 60%);
    opacity: 0.95; 
}

#top-nav {
    position: fixed; 
    top: 40px; 
    left: 45px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 11000;
}

.nav-link {
    text-decoration: none; 
    color: #000; 
    /* MATCHED: 1.1rem size and bold from your menu links */
    font-size: 1.1rem; 
    font-weight: 700;
    text-transform: none; /* Removed uppercase */
    opacity: 0.25; 
    cursor: pointer; 
    transition: 0.3s;
    position: relative; 
    width: fit-content;
    margin-left: 20px; /* Gutter for asterisk */
}

.nav-link.active { 
    opacity: 1; 
}

/* MATCHED: Asterisk behavior */
.nav-link.active::before { 
    content: '*'; 
    position: absolute; 
    left: -18px; 
    top: 0; 
}

/* --- QUARTO (FLOATING PIECES) --- */
#quarto-container { width: 100%; height: 100svh; transition: filter 0.8s ease; z-index: 10; }
#quarto-container.dimmed { filter: blur(12px) grayscale(0.2); }
.ceramic { 
    position: absolute; cursor: grab; opacity: 0; 
    transform: scale(0.8); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    touch-action: none; user-select: none; -webkit-user-drag: none;
}
.ceramic.appeared { opacity: 1; transform: scale(1); }
.doodle { position: absolute; background-size: contain; background-repeat: no-repeat; opacity: 0; transition: opacity 1.5s ease; pointer-events: none; image-rendering: crisp-edges; }

/* --- OVERLAYS --- */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100svh;
    z-index: 5000; opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background-color: rgba(244, 241, 234, 0.9);
    background-image: radial-gradient(#ddd9ce 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    overflow-y: auto;
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}
.overlay-open { opacity: 1; visibility: visible; }

/* --- CONTACT SECTION (MATCHES ABOUT ME BODY STYLE) --- */
#about-overlay { display: flex; align-items: center; justify-content: center; }

.about-content-wrapper { 
    text-align: center; 
    max-width: 550px; 
    width: 85%; 
    padding-top: 40px;
    line-height: 1.4;
}

.about-email, .instagram-text { 
    display: block; 
    text-decoration: underline; /* Matches your About Me links */
    color: #000; 
    font-size: 1rem; 
    font-weight: 400; 
    text-transform: none; 
    letter-spacing: normal; 
    margin-bottom: 12px; 
    opacity: 1; 
    transition: 0.3s;
}

.about-email:hover, .instagram-text:hover {
    color: gray;
}

.inquiry-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0;
}

/* --- WORKING MESSAGE (MATCHES ABOUT ME SUBTLE TEXT) --- */
.working-message-container {
    width: 100%; height: 100svh;
    display: flex; align-items: center; justify-content: center;
}
.working-text {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 1rem; 
    text-transform: none; 
    color: #000; 
    opacity: 0.4;
    letter-spacing: normal;
}

/* --- CATALOGUE GRID STYLE --- */
.seamless-grid { display: none !important; } /* Kept hidden as requested */

/* --- RESPONSIVE (MATCHES ABOUT ME MOBILE) --- */
@media (max-width: 800px) {
    #top-nav {
        left: 25px; 
        top: 30px;
    }

    .nav-link {
        font-size: 1.1rem; /* Keeps font size stable on mobile */
    }

    .nav-link.active::before { 
        left: -20px; 
    }

    .ui-nav-mask { 
        width: 200px; height: 200px; 
        mask-image: radial-gradient(circle at 45px 65px, black 0%, black 25%, transparent 70%);
        -webkit-mask-image: radial-gradient(circle at 45px 65px, black 0%, black 25%, transparent 70%);
    }

    .about-content-wrapper {
        font-size: 0.95rem;
    }
}