/* parallel.day - Playful / Diagonal Sections / Warm-to-Cool Gradient */

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

body {
    background-color: #FFF0E0;
    font-family: 'Nunito', sans-serif;
    color: #3A3A4A;
    overflow-x: hidden;
    min-height: 100vh;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Diagonal sections */
.diagonal-section {
    position: relative;
    min-height: 80vh;
    background-color: var(--section-bg);
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
    margin-top: -40px;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diagonal-section:first-child {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    margin-top: 0;
}

.diagonal-section:last-child {
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
}

/* Section content */
.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Hero title */
.section-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-title-block {
    text-align: left;
}

.domain-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: #3A2010;
    line-height: 1.1;
}

.title-word {
    display: block;
    opacity: 0;
}

.title-left {
    animation: slide-from-left 0.6s ease forwards;
}

.title-right {
    animation: slide-from-right 0.6s ease forwards;
}

@keyframes slide-from-left {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-from-right {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hero-meta {
    margin-top: 16px;
}

/* Columns layout */
.columns {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: center;
}

.columns-reverse {
    grid-template-columns: 45% 55%;
}

.columns-reverse .col-text {
    order: 2;
}

.columns-reverse .col-photo {
    order: 1;
}

/* Section headings */
.section-heading {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 44px;
    color: var(--heading-color);
    margin-bottom: 20px;
}

/* Body text */
.body-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: #3A3A4A;
    margin-bottom: 16px;
}

/* Monospace accent */
.mono-text {
    font-family: 'Inconsolata', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #7A7A8A;
    display: block;
    margin-top: 12px;
}

/* Photo frames */
.photo-frame {
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}

.vintage-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    filter: saturate(0.7);
    transition: transform 0.6s ease;
}

.placeholder-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.photo-frame:hover .vintage-photo {
    transform: scale(1.06);
}

/* When hovering photo, blur the sibling text column */
.columns:has(.photo-frame:hover) .col-text {
    filter: blur(1px);
    transition: filter 0.3s ease;
}

.col-text {
    transition: filter 0.4s ease;
}

/* Section opacity on scroll */
.diagonal-section {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.diagonal-section.in-view {
    opacity: 1;
}

.section-hero {
    opacity: 1;
}

/* Wave borders */
.wave-border {
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 3;
    pointer-events: none;
}

.wave-bottom {
    bottom: 0;
}

.wave-border svg {
    width: 100%;
    height: 100%;
}

.wave-oscillate {
    animation: wave-bob 4s ease-in-out infinite;
}

.wave-oscillate-alt {
    animation: wave-bob-alt 4s ease-in-out infinite;
}

@keyframes wave-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@keyframes wave-bob-alt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .diagonal-section {
        clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
        margin-top: -20px;
        padding: 60px 0;
    }

    .diagonal-section:first-child {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
    }

    .diagonal-section:last-child {
        clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
    }

    .columns,
    .columns-reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .columns-reverse .col-text {
        order: 1;
    }

    .columns-reverse .col-photo {
        order: 2;
    }

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

    .domain-title {
        font-size: 36px;
    }

    .section-heading {
        font-size: 30px;
    }
}
