/* bcd.day - Muji meets Art Deco */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0A0A0A;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
.display-text {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

.text-block p {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
    color: #E8E0D4;
    max-width: 560px;
    margin: 0 auto 1.5em auto;
    text-align: left;
}

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

.text-block.text-dark p {
    color: #1A1A1A;
}

/* ===== SECTION BACKGROUNDS ===== */
.section-dark {
    background-color: #0A0A0A;
}

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

/* ===== OPENING FRAME ===== */
#opening {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#site-title {
    font-size: 72px;
    color: #D4AF37;
    opacity: 0;
    animation: fadeInTitle 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0) 0.3s forwards,
               pulseOnce 2.4s ease-in-out 1.5s forwards;
}

#site-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 16px;
    color: #E8E0D4;
    margin-top: 24px;
    opacity: 0;
    animation: fadeInSubtitle 0.8s ease 3.0s forwards;
}

/* Chevron corner marks */
.chevron {
    position: absolute;
    opacity: 0;
    animation: fadeInChevron 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0) 0.3s forwards;
}

.chevron-tl {
    top: 16px;
    left: 16px;
}

.chevron-tr {
    top: 16px;
    right: 16px;
}

.chevron-bl {
    bottom: 16px;
    left: 16px;
}

.chevron-br {
    bottom: 16px;
    right: 16px;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInTitle {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseOnce {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

@keyframes fadeInSubtitle {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInChevron {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -8px) scale(1.02); }
    66% { transform: translate(-6px, 12px) scale(0.98); }
}

/* ===== PHILOSOPHY STRIP ===== */
#philosophy {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.section-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.gold-rule {
    width: 120px;
    height: 1px;
    background-color: #D4AF37;
    margin: 0 auto 40px auto;
}

#philosophy .text-block p {
    color: #1A1A1A;
}

/* ===== FEATURED DETAIL ===== */
#featured {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.photo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2a2218;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(180, 150, 100, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(140, 120, 80, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(42, 34, 24, 1) 0%, rgba(60, 48, 30, 0.9) 30%, rgba(42, 34, 24, 1) 70%);
    background-size: cover;
    background-position: center;
    filter: saturate(0.8) brightness(0.9);
}

/* Simulated wood grain texture using CSS */
.photo-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            2deg,
            transparent,
            transparent 3px,
            rgba(160, 130, 80, 0.06) 3px,
            rgba(160, 130, 80, 0.06) 4px
        ),
        repeating-linear-gradient(
            178deg,
            transparent,
            transparent 7px,
            rgba(100, 80, 50, 0.04) 7px,
            rgba(100, 80, 50, 0.04) 8px
        ),
        repeating-linear-gradient(
            1deg,
            transparent,
            transparent 20px,
            rgba(180, 150, 100, 0.05) 20px,
            rgba(180, 150, 100, 0.05) 22px
        );
}

.photo-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(220, 190, 130, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 230, 170, 0.08) 0%, transparent 30%);
}

.caption-panel {
    position: absolute;
    bottom: 48px;
    left: 0;
    max-width: 400px;
    padding: 32px 40px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 3px solid #D4AF37;
    z-index: 2;
}

.caption-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 16px;
    color: #E8E0D4;
    line-height: 1.75;
}

/* ===== RHYTHM SECTION ===== */
.rhythm-band {
    position: relative;
    min-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}

.blob-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    animation: blobDrift 30s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    animation-delay: -10s;
}

.blob-2 {
    width: 600px;
    height: 350px;
    animation-delay: -20s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    animation-delay: 0s;
}

.rhythm-band .section-inner {
    position: relative;
    z-index: 1;
}

.rhythm-band .text-block p {
    text-align: center;
}

/* ===== CLOSING FRAME ===== */
#closing {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.closing-title {
    font-size: 48px;
    color: #D4AF37;
    margin-bottom: 48px;
    opacity: 0;
}

.closing-title.pulse-active {
    animation: pulseOnce 2.4s ease-in-out forwards;
}

.email-form {
    margin-bottom: 24px;
}

.input-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.email-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #D4AF37;
    color: #E8E0D4;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 8px 0;
    width: 280px;
    outline: none;
    letter-spacing: 0.04em;
    transition: border-color 0.3s ease;
}

.email-input::placeholder {
    color: #666666;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.04em;
}

.email-input:focus {
    border-bottom-color: #F0D060;
}

.submit-btn {
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

.submit-btn:hover {
    transform: translateX(4px);
}

.closing-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999999;
    letter-spacing: 0.04em;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal .section-inner,
.scroll-reveal .closing-content,
.scroll-reveal .caption-panel {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed .section-inner,
.scroll-reveal.revealed .closing-content,
.scroll-reveal.revealed .caption-panel {
    opacity: 1;
    transform: translateY(0);
}

/* Closing title gets special treatment - it fades in with section then pulses */
.scroll-reveal.revealed .closing-title {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #site-title {
        font-size: 40px;
    }

    .text-block p {
        font-size: 16px;
        max-width: 100%;
    }

    #philosophy,
    .rhythm-band {
        padding: 48px 24px;
    }

    .closing-title {
        font-size: 36px;
    }

    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 360px;
        height: 210px;
    }

    .blob-3 {
        width: 270px;
        height: 270px;
    }

    .caption-panel {
        max-width: none;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .email-input {
        width: 220px;
    }

    .section-inner {
        max-width: 100%;
        padding: 0;
    }
}
