/* yongjoon.xyz - Ocean Botanical Tutorial */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --deep-ocean: #081018;
    --ocean-mid: #101C28;
    --ocean-teal: #2090A0;
    --ocean-light: #40C8D8;
    --deep-navy: #182838;
    --marble-accent: rgba(208, 200, 192, 0.1);
    --flow-curve: rgba(32, 144, 160, 0.12);
    --text-light: #E0F0F8;
    --text-body: #A0C0D0;
    --code-teal: #40A8B0;
    --marble-base: #D0C8C0;
    --organic-border: rgba(32, 144, 160, 0.2);
}

body {
    background: var(--deep-ocean);
    color: var(--text-light);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
}

/* Flow SVG */
.flow-svg {
    position: fixed;
    left: 5%;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}
.flow-main {
    stroke: var(--flow-curve);
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease;
}
.progress-dot {
    fill: transparent;
    stroke: var(--ocean-teal);
    stroke-width: 1.5;
    transition: fill 0.2s ease;
}
.progress-dot.filled { fill: var(--ocean-teal); }

/* Organic Sections */
.organic-section {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    padding: 48px 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: ellipse(120% 55% at 50% 50%);
    margin-top: -50px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.organic-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-hero {
    clip-path: none;
    margin-top: 0;
    min-height: 80vh;
}
.organic-section:nth-child(odd) { background: var(--deep-ocean); }
.organic-section:nth-child(even) { background: var(--ocean-mid); }

/* Section Inner */
.section-inner {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.layout-split {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.layout-split.reverse { flex-direction: row-reverse; }
.split-text { flex: 0 0 60%; }
.split-visual { flex: 0 0 35%; display: flex; justify-content: center; }

/* Typography */
.project-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.project-body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.code-data {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--code-teal);
    display: block;
}

/* Marble Patches */
.marble-patch {
    position: absolute;
    background: linear-gradient(135deg, rgba(208, 200, 192, 0.08), rgba(208, 200, 192, 0.04), rgba(208, 200, 192, 0.08));
    pointer-events: none;
    z-index: 0;
}
.marble-1 { width: 200px; height: 150px; border-radius: 60% 40% 70% 30%; top: 15%; right: 10%; }
.marble-2 { width: 160px; height: 120px; border-radius: 40% 60% 30% 70%; bottom: 20%; left: 5%; }
.marble-3 { width: 180px; height: 140px; border-radius: 50% 50% 60% 40%; top: 10%; left: 8%; }
.marble-inline {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 60% 40% 50% 50%;
    border: 1px solid var(--organic-border);
    background: var(--marble-accent);
}
.marble-inline-2 {
    position: relative;
    width: 100px;
    height: 130px;
    border-radius: 40% 60% 40% 60%;
    border: 1px solid var(--organic-border);
    background: var(--marble-accent);
}
.marble-inline-3 {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid var(--organic-border);
    background: var(--marble-accent);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}
.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--code-teal);
}

@media (max-width: 768px) {
    .layout-split, .layout-split.reverse { flex-direction: column; }
    .split-text { flex: none; }
    .split-visual { flex: none; }
    .flow-svg { display: none; }
    .organic-section { clip-path: none; margin-top: 0; }
}
