/* bada.coffee - Wabi-Sabi Seaside Coffee Ritual */
/* Colors: #F2EDE8 #3C2415 #8B7355 #A8B5B2 #D4CBC0 #E8D5B7 #2C4A4E #5A7A6E */

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

body {
    background: #F2EDE8;
    color: #3C2415;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 2.0;
    overflow-x: hidden;
}

/* ===== Grain Overlay ===== */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    filter: url(#grain);
    background: rgba(242,237,232,0.5);
    mix-blend-mode: multiply;
    transition: opacity 1.5s ease;
}

#grain-overlay.visible {
    opacity: 0.08;
}

/* ===== Wave Horizon ===== */
#wave-horizon {
    position: fixed;
    bottom: 48%;
    left: 0;
    width: 200%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
    animation: waveDrift 20s linear infinite;
}

#wave-horizon.visible {
    opacity: 1;
}

@keyframes waveDrift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Coffee Ring Watermarks ===== */
.coffee-ring {
    position: fixed;
    border-radius: 50%;
    border: 1px solid #8B7355;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.coffee-ring-1 { top: 12%; left: 18%; width: 160px; height: 160px; }
.coffee-ring-2 { top: 38%; right: 14%; width: 130px; height: 130px; opacity: 0.05; }
.coffee-ring-3 { top: 62%; left: 28%; width: 190px; height: 190px; opacity: 0.04; }
.coffee-ring-4 { top: 82%; right: 22%; width: 145px; height: 145px; opacity: 0.05; }

/* ===== Breath (Hero) ===== */
#breath {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.domain-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    letter-spacing: 0.25em;
    text-transform: lowercase;
    color: #3C2415;
    opacity: 0;
    transition: opacity 2s ease;
}

.domain-name.visible {
    opacity: 1;
}

.horizon-line {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.horizon-line.visible {
    opacity: 1;
}

/* ===== Pour Sections ===== */
.pour-section {
    padding: clamp(25vh, 35vh, 50vh) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

.pour-content {
    max-width: 520px;
    text-align: left;
    padding: 0 24px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.pour-content.visible {
    opacity: 1;
}

.pour-heading {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    letter-spacing: 0.1em;
    color: #8B7355;
    margin-bottom: 20px;
}

.pour-content p {
    margin-bottom: 1.3em;
}

.pour-content p:last-of-type {
    margin-bottom: 0;
}

.pour-content em {
    font-style: italic;
    color: #2C4A4E;
}

.pour-content a {
    color: #8B7355;
    text-decoration: none;
    transition: color 0.6s ease;
}

.pour-content a:hover {
    color: #3C2415;
}

/* ===== Whisper Notes ===== */
.whisper-note {
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: #8B7355;
    opacity: 0.6;
    display: block;
    margin-top: 20px;
    text-align: right;
}

/* ===== Ceramic Fragments ===== */
.ceramic-fragment {
    opacity: 0;
    transition: opacity 1s ease, border-radius 1.5s ease;
}

.ceramic-fragment.visible {
    opacity: 1;
}

.frag-1 {
    width: 100px;
    height: 80px;
    background: #8B7355;
    border-radius: 48% 52% 40% 60% / 55% 45% 50% 50%;
    margin-bottom: 40px;
}

.frag-1:hover {
    border-radius: 50% 50% 43% 57% / 53% 47% 53% 47%;
}

.frag-2 {
    width: 65px;
    height: 65px;
    background: #5A7A6E;
    border-radius: 50% 50% 45% 55% / 52% 48% 52% 48%;
    opacity: 0;
    margin-bottom: 30px;
}

.frag-2.visible {
    opacity: 0.6;
}

.frag-2:hover {
    border-radius: 48% 52% 50% 50% / 55% 45% 50% 50%;
}

/* ===== Ceramic Cluster ===== */
.ceramic-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 0;
    position: relative;
    z-index: 5;
}

.frag-cluster-1 {
    width: 140px;
    height: 100px;
    background: #A8B5B2;
    border-radius: 52% 48% 45% 55% / 50% 55% 45% 50%;
    mix-blend-mode: multiply;
}

.frag-cluster-1:hover {
    border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
}

.frag-cluster-2 {
    width: 80px;
    height: 60px;
    background: #D4CBC0;
    border-radius: 45% 55% 50% 50% / 48% 52% 48% 52%;
    margin-left: -25px;
    margin-top: -15px;
}

.frag-cluster-2:hover {
    border-radius: 48% 52% 47% 53% / 50% 50% 50% 50%;
}

/* ===== Kintsugi Lines ===== */
.kintsugi-container {
    display: flex;
    justify-content: center;
    padding: 5vh 0;
    position: relative;
    z-index: 5;
}

.kintsugi-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 2s ease;
}

.kintsugi-container.in-view .kintsugi-path {
    stroke-dashoffset: 0;
}

/* ===== Tide Line Footer ===== */
#tide-line {
    background: linear-gradient(180deg, #F2EDE8 0%, #E8D5B7 40%, #D4CBC0 100%);
    padding: 100px 24px 50px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.25em;
    text-transform: lowercase;
    color: #8B7355;
}

.footer-sub {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #A8B5B2;
    margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .pour-section {
        padding: 15vh 0;
    }

    .pour-content {
        padding: 0 20px;
    }

    .ceramic-fragment {
        transform: scale(0.6);
    }

    .ceramic-cluster .ceramic-fragment {
        transform: scale(0.6);
    }

    #grain-overlay.visible {
        opacity: 0.05;
    }

    .coffee-ring {
        opacity: 0.03;
    }
}
