:root {
    --burgundy: #8c1c3e;
    --burgundy-deep: #4a1528;
    --plum: #3d2044;
    --neon-green: #c8e630;
    --dark: #1a1a1e;
    --cream: #f5f0e8;
    --cream-light: #f7f3ed;
    --lavender: #b8a9d4;
}

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

body {
    background: var(--cream);
    color: var(--dark);
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Organic background blobs */
.blob {
    position: fixed;
    border-radius: 30% 70% 70% 30% / 53% 30% 70% 47%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    animation: blob-morph 6s ease-in-out infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--burgundy);
    top: 10%;
    left: -5%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--plum);
    top: 40%;
    right: -3%;
    animation-delay: 2s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--lavender);
    top: 70%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes blob-morph {
    0% {
        border-radius: 30% 70% 70% 30% / 53% 30% 70% 47%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
    }
}

.page {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* Hero */
.step-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
}

.hero-text {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 10vw, 6rem);
    color: var(--burgundy-deep);
    text-shadow: 1px 2px 0px rgba(74, 21, 40, 0.15);
    line-height: 1;
    opacity: 0;
    transform: translateX(-40px);
    animation: hero-spring 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes hero-spring {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    60% {
        opacity: 1;
        transform: translateX(40px);
    }
    80% {
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-sub {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--burgundy);
    margin-top: 16px;
    opacity: 0;
    animation: fade-in 0.6s ease 1s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Pendulum dividers */
.pendulum-divider {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pendulum-svg {
    width: 100px;
    height: 40px;
}

/* Broken grid */
.broken-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 40px 0;
}

.grid-swap {
    flex-direction: row-reverse;
}

.col-wide {
    flex: 0 0 62%;
}

.col-narrow {
    flex: 0 0 34%;
}

/* Offsets */
.offset-right { margin-left: 20px; }
.offset-left { margin-left: -12px; }

/* Progressive tilts */
.tilt-3 { transform: rotate(2.5deg); }
.tilt-neg-2 { transform: rotate(-2deg); }
.tilt-2 { transform: rotate(2deg); }
.tilt-neg-1 { transform: rotate(-1deg); }
.tilt-1 { transform: rotate(1deg); }
.tilt-neg-05 { transform: rotate(-0.5deg); }

/* Step entry animation */
[data-step] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-step].visible {
    opacity: 1;
}

/* Section headings */
.section-heading {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--burgundy-deep);
    text-shadow: 1px 2px 0px rgba(74, 21, 40, 0.12);
    margin-bottom: 16px;
}

/* Body text */
.body-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: var(--dark);
    margin-bottom: 14px;
}

/* Accent blocks */
.accent-block {
    background: var(--burgundy-deep);
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mono-label {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--lavender);
    text-transform: uppercase;
}

.mono-value {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 14px;
    color: var(--neon-green);
}

/* Callout box */
.callout-box {
    border: 2px solid var(--burgundy);
    border-radius: 8px;
    padding: 24px;
    background: var(--cream-light);
}

.callout-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: var(--burgundy);
}

/* Final section */
.step-final {
    text-align: center;
    padding: 80px 0 40px;
}

.final-block {
    max-width: 560px;
    margin: 0 auto;
}

.final-heading {
    text-align: center;
}

.domain-footer {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--burgundy-deep);
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--burgundy);
}

/* Mobile */
@media (max-width: 768px) {
    .broken-grid,
    .grid-swap {
        flex-direction: column;
    }

    .col-wide,
    .col-narrow {
        flex: none;
        width: 100%;
    }

    .offset-right,
    .offset-left {
        margin-left: 0;
    }

    .tilt-3, .tilt-neg-2, .tilt-2, .tilt-neg-1, .tilt-1, .tilt-neg-05 {
        transform: none;
    }
}
