:root {
    --fjord-deep: #2C3E50;
    --tide-blue: #5B8FA8;
    --driftwood: #B8A88A;
    --shore-mist: #F0EDE8;
    --sea-foam: #E8F1F0;
    --deep-current: #1A2634;
    --coral-signal: #E07A5F;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--shore-mist);
    color: var(--fjord-deep);
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.8;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    z-index: 100;
    cursor: pointer;
}

.progress-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: 9px;
    fill: var(--driftwood);
}

.split-container {
    position: relative;
}

.split-section {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.panel {
    padding: clamp(3rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-left {
    flex: 0 0 55%;
}

.panel-right {
    flex: 0 0 45%;
}

.sketch-panel {
    background: var(--sea-foam);
}

.clean-panel {
    background: var(--shore-mist);
}

.divider-line {
    width: 1px;
    background: var(--driftwood);
    flex-shrink: 0;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: -0.03em;
    color: var(--fjord-deep);
    line-height: 1.1;
}

.coral { color: var(--coral-signal); }

.hero-sub {
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--driftwood);
    margin-top: 1.5rem;
}

.section-heading {
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: -0.01em;
    color: var(--fjord-deep);
    margin-bottom: 1.5rem;
}

.body-text {
    font-weight: 300;
    color: #4A5568;
    margin-bottom: 1.2rem;
    max-width: 50ch;
}

.body-text strong {
    font-weight: 600;
    color: var(--fjord-deep);
}

.caption {
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--driftwood);
    margin-top: 1.5rem;
}

/* Sketch elements */
.sketch-elements {
    max-width: 300px;
}

.sketch-line {
    width: 100%;
    max-width: 250px;
}

.sketch-note {
    font-weight: 200;
    font-size: 0.85rem;
    color: var(--driftwood);
    font-style: italic;
    margin-top: 1rem;
}

.migration-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.block-sketch {
    width: 50px;
    height: 50px;
    border: 1.5px dashed var(--fjord-deep);
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.block-sketch.migrated {
    opacity: 0;
    transform: translateX(-100px);
}

.type-diagram {
    width: 100%;
    max-width: 300px;
}

/* Data grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.data-item {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--driftwood);
    margin-bottom: 0.5rem;
}

.data-value {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--tide-blue);
    font-variant-numeric: tabular-nums;
}

.data-suffix {
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--driftwood);
}

.chart-sketch {
    width: 100%;
    max-width: 250px;
}

.closing-domain {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--coral-signal);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }
    .panel-left, .panel-right {
        flex: none;
        min-height: 50vh;
    }
    .divider-line {
        width: 100%;
        height: 1px;
        animation: none;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .divider-line { animation: none; }
}
