/* desca.work — Glassmorphism Noir Pastoral */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0808;
    color: #E8E0D0;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.85;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Noise Texture Overlay */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Floating Dust Container */
#dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dust-mote {
    position: absolute;
    background-color: #C8A850;
    border-radius: 50%;
    pointer-events: none;
}

.dust-line {
    position: absolute;
    background-color: #C8A850;
    pointer-events: none;
}

/* Navigation */
#nav-trigger {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 500;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav-dot {
    width: 6px;
    height: 6px;
    background-color: #C8A850;
    border-radius: 50%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#nav-trigger:hover #nav-dot {
    transform: scale(1.5);
    box-shadow: 0 0 12px rgba(200, 168, 80, 0.4);
}

#nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    z-index: 400;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(30, 28, 24, 0.6);
    border-left: 1px solid rgba(200, 168, 80, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav-panel.open {
    transform: translateX(0);
}

#nav-panel ul {
    list-style: none;
    padding: 0;
}

#nav-panel ul li {
    margin: 24px 0;
}

#nav-panel ul li a {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: #9A9080;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

#nav-panel ul li a:hover {
    color: #A08040;
}

#nav-panel ul li a:active {
    color: #E8C868;
}

/* Hero Section — The Studio */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 24px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 168, 80, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-glow.visible {
    opacity: 1;
}

/* Glassmorphic Panel */
.glass-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(30, 28, 24, 0.4);
    border: 1px solid rgba(200, 168, 80, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(10, 8, 8, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 0%, rgba(232, 200, 104, 0.3) 10%, transparent 20%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-panel:hover::before,
.glass-panel.animate-border::before {
    opacity: 1;
    animation: borderSweep 2s linear infinite;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderSweep {
    from { --border-angle: 0deg; }
    to { --border-angle: 360deg; }
}

.glass-panel:hover {
    border-color: rgba(200, 168, 80, 0.3);
    transition: border-color 0.8s ease;
}

/* Hero Panel */
.hero-panel {
    max-width: 640px;
    width: 100%;
    padding: 64px 48px;
    text-align: center;
    opacity: 0;
    transform: scale(0.97);
    z-index: 2;
}

.hero-panel.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #C8A850, #E8C868, #C8A850);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-dot {
    -webkit-text-fill-color: #E8C868;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: #9A9080;
    letter-spacing: 0.04em;
    margin-top: 20px;
}

/* Content Sections */
.content-section {
    display: flex;
    justify-content: center;
    padding: 0 24px;
    margin-bottom: 240px;
}

.content-section:first-of-type {
    margin-top: 240px;
}

.content-panel {
    max-width: 720px;
    width: 100%;
    padding: 56px 48px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.panel-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.06em;
    color: #E8C868;
    margin-bottom: 28px;
}

.panel-body {
    color: #E8E0D0;
    margin-bottom: 20px;
}

.panel-body:last-of-type {
    margin-bottom: 0;
}

.panel-meta {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: #9A9080;
    margin-top: 24px;
}

/* Works List */
.works-list {
    margin-top: 12px;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid rgba(200, 168, 80, 0.08);
}

.work-item:last-child {
    border-bottom: none;
}

.work-title {
    font-family: 'Lora', serif;
    color: #E8E0D0;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.work-year {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: #9A9080;
    letter-spacing: 0.04em;
}

/* Contact */
.panel-contact {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #C8A850;
    margin-top: 24px;
    letter-spacing: 0.04em;
}

/* Footer */
#footer {
    text-align: center;
    padding: 80px 24px 120px;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: #9A9080;
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 640px) {
    .hero-panel {
        padding: 48px 28px;
    }

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

    .content-section {
        margin-bottom: 160px;
    }

    .content-section:first-of-type {
        margin-top: 160px;
    }

    #nav-trigger {
        top: 20px;
        right: 20px;
    }
}
