/* === continua.st styles === */
/* Colors: #F0E8DC, #E0D4C0, #4A3828, #C8A860, #B08860, #8AB0A0, #9A9088, #3A3028 */
/* Extra: #D8B870, #F2EAE0, #EEE4D8 */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F0E8DC;
    background-image:
        linear-gradient(90deg, rgba(242, 234, 224, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, rgba(238, 228, 216, 0.015) 0%, transparent 50%);
    color: #4A3828;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.9;
    overflow-x: hidden;
    position: relative;
}

/* === Flow Margin (Golden Thread) === */
#flow-margin {
    position: fixed;
    left: 0;
    top: 0;
    width: 4vw;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* === Navigation === */
#nav {
    position: fixed;
    top: 32px;
    right: 48px;
    display: flex;
    gap: 32px;
    z-index: 90;
}

.nav-link {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #4A3828;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C8A860;
}

.nav-link:hover {
    color: #C8A860;
}

/* === Hero / Atelier === */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12vw;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 10;
}

#hero-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.12em;
    color: #4A3828;
    opacity: 0;
    transition: opacity 1.5s ease, letter-spacing 1.5s ease;
}

#hero-title.visible {
    opacity: 1;
    letter-spacing: 0.04em;
}

.hero-sub {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #9A9088;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-brush {
    position: absolute;
    bottom: 20%;
    left: 8vw;
    width: 80%;
    height: 200px;
    z-index: 5;
}

#brush-path {
    transition: stroke-dashoffset 3s ease;
}

#brush-path.drawn {
    stroke-dashoffset: 0;
}

/* === Kintsugi Breaks === */
.kintsugi-break {
    position: relative;
    width: 100%;
    padding: 48px 12vw;
    display: flex;
    align-items: center;
}

.kintsugi-line {
    width: 60%;
    height: 1px;
    background: #C8A860;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.kintsugi-line.visible {
    transform: scaleX(1);
}

.kintsugi-repair {
    width: 12px;
    height: 8px;
    background: #D8B870;
    border-radius: 2px;
    margin-left: -6px;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
    box-shadow: 0 0 12px rgba(200, 168, 96, 0.3);
}

.kintsugi-repair.visible {
    opacity: 1;
}

/* === Spread Sections === */
.spread {
    display: flex;
    gap: 5%;
    padding: 96px 12vw;
    min-height: 80vh;
    align-items: center;
}

.spread-reverse {
    flex-direction: row-reverse;
}

.spread-text {
    flex: 0 0 60%;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.spread-reverse .spread-text {
    transform: translateX(10px);
}

.spread-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.spread-annotation {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #9A9088;
    display: block;
    margin-bottom: 12px;
}

.spread h2 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    color: #4A3828;
    margin-bottom: 24px;
    line-height: 1.3;
}

.spread p {
    margin-bottom: 16px;
    color: #4A3828;
}

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

/* === Spread Visual === */
.spread-visual {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.morph-illustration {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.morph-path-a {
    animation: morphPulse 20s ease-in-out infinite;
}

@keyframes morphPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.morph-path-b {
    animation: morphPulseAlt 20s ease-in-out infinite;
}

@keyframes morphPulseAlt {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* === Footer === */
#footer {
    background: #3A3028;
    padding: 48px 12vw;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: #E0D4C0;
}

.footer-note {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: 13px;
    color: #9A9088;
}

/* === Responsive === */
@media (max-width: 768px) {
    .spread,
    .spread-reverse {
        flex-direction: column;
        padding: 64px 24px;
        gap: 32px;
    }

    .spread-text,
    .spread-visual {
        flex: none;
        width: 100%;
    }

    #hero {
        padding-left: 24px;
    }

    .kintsugi-break {
        padding: 32px 24px;
    }

    #nav {
        right: 16px;
        gap: 16px;
    }

    #flow-margin {
        display: none;
    }

    #footer {
        padding: 32px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }
}
