/* lungi.dev — Luxury Atelier Private Archive */
/* Palette: #000000, #0D0D0D, #1A1A1A, #2A2A2A, #333333, #444444, #666666, #CCCCCC, #F5F5F0, #0A0A0A, #FFFFFF */
/* Fonts: DM Serif Display (display), DM Sans (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #000000;
    color: #CCCCCC;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 1px;
    height: 0%;
    background-color: #FFFFFF;
    z-index: 1000;
    transition: height 0.1s linear;
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 999;
    pointer-events: none;
    opacity: 0.015;
    mix-blend-mode: overlay;
    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");
}

/* ============================================
   HERO PROCLAMATION
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 8rem);
    color: #FFFFFF;
    letter-spacing: -0.03em;
    opacity: 0;
    transition: opacity 1.2s ease-out;
    line-height: 1;
}

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

.hero-rule {
    width: 0;
    height: 0.5px;
    background-color: #2A2A2A;
    margin: 24px auto 0;
    transition: width 0.6s ease-out;
}

.hero-rule.visible {
    width: 200px;
}

.hero-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #666666;
    text-transform: uppercase;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

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

/* ============================================
   MASONRY SECTIONS
   ============================================ */
.masonry-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    overflow: hidden;
}

.section-dark {
    background-color: #000000;
}

.section-light {
    background-color: #FFFFFF;
}

/* Ghost Letters */
.ghost-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 30vw;
    color: #FFFFFF;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    user-select: none;
    transition: opacity 0.8s ease;
}

.section-light .ghost-letter {
    color: #000000;
    opacity: 0.03;
}

.ghost-letter.active {
    opacity: 0.05;
}

.section-light .ghost-letter.active {
    opacity: 0.05;
}

/* Masonry Grid */
.masonry-grid {
    columns: 3;
    column-gap: 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   GALLERY CARDS
   ============================================ */
.gallery-card {
    break-inside: avoid;
    margin-bottom: 2rem;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, color 0.2s ease;
}

.gallery-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects on dark sections */
.section-dark .gallery-card:hover {
    color: #F5F5F0;
}

.section-dark .gallery-card:hover .body-text {
    color: #F5F5F0;
}

/* Hover effects on light sections */
.section-light .gallery-card:hover {
    color: #0A0A0A;
}

.section-light .gallery-card:hover .body-text {
    color: #0A0A0A;
}

/* Card Text */
.card-text {
    padding: 2.5rem;
}

/* Feature Panels - inverted color scheme */
.section-dark .feature-panel {
    background-color: #FFFFFF;
    color: #000000;
}

.section-dark .feature-panel .section-heading {
    color: #000000;
}

.section-dark .feature-panel .body-text {
    color: #333333;
}

.section-dark .feature-panel .card-label {
    color: #666666;
}

.section-dark .feature-panel .card-hairline {
    background-color: #CCCCCC;
}

.section-dark .feature-panel .empty-frame {
    border-color: #CCCCCC;
}

.section-dark .feature-panel .pull-quote {
    color: #000000;
}

.section-light .feature-panel {
    background-color: #000000;
    color: #FFFFFF;
}

.section-light .feature-panel .section-heading {
    color: #FFFFFF;
}

.section-light .feature-panel .body-text {
    color: #CCCCCC;
}

.section-light .feature-panel .card-label {
    color: #666666;
}

.section-light .feature-panel .card-hairline {
    background-color: #2A2A2A;
}

.section-light .feature-panel .empty-frame {
    border-color: #2A2A2A;
}

.section-light .feature-panel .pull-quote {
    color: #FFFFFF;
}

/* ============================================
   EMPTY FRAMES
   ============================================ */
.empty-frame {
    width: 100%;
    background-color: transparent;
    transition: border-color 0.2s ease;
}

.section-dark .empty-frame {
    border: 1px solid #2A2A2A;
}

.section-light .empty-frame {
    border: 1px solid #CCCCCC;
}

.gallery-card:hover .empty-frame {
    border-color: #444444;
}

.section-light .gallery-card:hover .empty-frame {
    border-color: #999999;
}

.frame-portrait {
    aspect-ratio: 3 / 4;
}

.frame-landscape {
    aspect-ratio: 4 / 3;
}

.frame-square {
    aspect-ratio: 1 / 1;
}

.frame-wide {
    aspect-ratio: 16 / 9;
    margin-top: 1.5rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.card-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-dark .card-label {
    color: #666666;
}

.section-light .card-label {
    color: #666666;
}

.card-hairline {
    width: 40px;
    height: 0.5px;
    margin: 12px 0 20px;
}

.section-dark .card-hairline {
    background-color: #2A2A2A;
}

.section-light .card-hairline {
    background-color: #CCCCCC;
}

.section-heading {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-dark .section-heading {
    color: #FFFFFF;
}

.section-light .section-heading {
    color: #000000;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.05vw, 1.1rem);
    line-height: 1.75;
    transition: color 0.2s ease;
}

.section-dark .body-text {
    color: #CCCCCC;
}

.section-light .body-text {
    color: #333333;
}

.pull-quote {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.4;
    border: none;
    margin: 0;
    padding: 0;
}

.section-dark .pull-quote {
    color: #FFFFFF;
}

.section-light .pull-quote {
    color: #000000;
}

/* ============================================
   HORIZONTAL INTERRUPTION BANDS
   ============================================ */
.interruption-band {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.band-dark {
    background-color: #0D0D0D;
}

.band-light {
    background-color: #FFFFFF;
}

.band-content {
    text-align: center;
    padding: 40px;
    clip-path: inset(0 50% 0 50%);
    transition: clip-path 0.8s ease-out;
}

.band-content.visible {
    clip-path: inset(0 0 0 0);
}

.band-quote {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.4;
}

.band-dark .band-quote {
    color: #FFFFFF;
}

.band-light .band-quote {
    color: #000000;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    text-align: center;
    padding: 80px 40px;
    background-color: #000000;
}

.footer-hairline {
    width: 60px;
    height: 0.5px;
    background-color: #2A2A2A;
    margin: 0 auto 32px;
}

.footer-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.footer-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #666666;
    text-transform: uppercase;
    margin-top: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .masonry-grid {
        columns: 1;
    }

    .masonry-section {
        padding: 60px 20px;
    }

    .gallery-card {
        padding: 2rem;
    }

    .ghost-letter {
        font-size: 50vw;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .masonry-grid {
        columns: 2;
    }
}
