/* desca.works - White Space Heavy Gallery */
/* Palette: #ffffff, #1a1a1a, #999999, #e5e5e5, #d4d4d4 */
/* Fonts: Cormorant 300, Lato 300, Source Code Pro 400 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Counter - top-right corner
   ============================================ */
.counter {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: #999999;
    letter-spacing: 0.05em;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.counter.visible {
    opacity: 1;
}

/* ============================================
   Dot Navigation - right edge, vertically centered
   ============================================ */
.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.dot-nav.visible {
    opacity: 1;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d4;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.3s ease;
}

.dot:hover {
    background: #999999;
    transform: scale(1.4);
}

.dot.active {
    background: #1a1a1a;
}

/* ============================================
   Work Entries - full viewport, centered content
   ============================================ */
.work-entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 200px 24px;
    position: relative;
}

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

/* Brand name in hero */
.brand {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #1a1a1a;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: brandReveal 1.8s ease forwards;
}

@keyframes brandReveal {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project titles - Cormorant at 300, 72px */
.work-title {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: #1a1a1a;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

/* Hairline rule - 0.5px, #e5e5e5, 60px wide */
.hairline {
    border: none;
    border-top: 0.5px solid #e5e5e5;
    width: 60px;
    margin: 20px auto;
    opacity: 0;
    transition: opacity 0.8s ease 0.2s, width 0.8s ease 0.2s;
}

.hairline.visible {
    opacity: 1;
}

/* Project descriptions - Lato 300 */
.work-desc {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #999999;
    text-align: center;
    max-width: 420px;
    line-height: 1.7;
}

/* ============================================
   Fade-in animation for scroll reveal
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* Staggered delay for sequential elements within a work entry */
.work-content .fade-in:nth-child(1) {
    transition-delay: 0s;
}

.work-content .fade-in:nth-child(2) {
    transition-delay: 0.15s;
}

.work-content .fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

/* ============================================
   Footer - brand name as a whisper
   ============================================ */
.site-footer {
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #d4d4d4;
    letter-spacing: 0.05em;
    transition: color 0.5s ease;
}

.footer-brand:hover {
    color: #999999;
}

/* ============================================
   Section transition opacity
   ============================================ */
.work-entry {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.work-entry.in-view {
    opacity: 1;
}

/* Hero always visible (has its own animation) */
.work-entry[data-index="0"] {
    opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .dot-nav {
        right: 0.75rem;
        gap: 10px;
    }

    .counter {
        top: 1.25rem;
        right: 1rem;
    }

    .work-entry {
        padding: 120px 20px;
    }

    .work-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .brand {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .work-entry {
        padding: 80px 16px;
    }

    .dot-nav {
        right: 0.5rem;
    }

    .counter {
        right: 0.75rem;
        top: 1rem;
        font-size: 0.65rem;
    }

    .work-desc {
        font-size: 0.875rem;
        max-width: 300px;
    }
}
