/* okurairi.net - Mid-Century Shelved Futures */

/* Color Palette */
:root {
    --color-cream: #F5F0E8;
    --color-dark: #3A3E4A;
    --color-gold: #C4A45A;
    --color-slate: #6A7A8A;
    --color-rust: #C4784A;
    --color-sage: #8A9A7A;
    --color-tan: #8A7A6A;
    --color-pale-cream: #EDE8E0;
    --color-stone: #4A5A6A;
    --color-darkest: #2A2E3A;
    --color-very-dark: #1A1E2A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--color-darkest);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Parallax Container */
.parallax-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-pale-cream) 0%, var(--color-cream) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-darkest);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.title-text,
.title-dot,
.title-net {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.title-text {
    animation-delay: 0.4s;
}

.title-dot {
    animation-delay: 0.6s;
    margin: 0 0.1em;
}

.title-net {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-stone);
    font-weight: 400;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    opacity: 0;
    letter-spacing: 0.04em;
}

.swoosh-underline {
    width: 400px;
    height: 30px;
    margin: 0 auto;
    animation: drawSwoosh 1s ease-out 1.2s forwards;
    opacity: 0;
}

.swoosh-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: strokeAnimation 1s ease-out forwards;
}

@keyframes drawSwoosh {
    from {
        opacity: 0;
        transform: scaleX(0.8);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes strokeAnimation {
    from {
        stroke-dashoffset: 600;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-very-dark);
}

.parallax-section.section-1 {
    background: linear-gradient(180deg, #2A2E3A 0%, #1A1E2A 100%);
}

.parallax-section.section-2 {
    background: linear-gradient(180deg, #1A1E2A 0%, #2A2E3A 100%);
}

.parallax-section.section-3 {
    background: linear-gradient(180deg, #2A2E3A 0%, #1A1E2A 100%);
}

.parallax-section.section-4 {
    background: linear-gradient(180deg, #1A1E2A 0%, #2A2E3A 100%);
}

.parallax-section.section-5 {
    background: linear-gradient(180deg, #2A2E3A 0%, #1A1E2A 100%);
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-layer {
    z-index: 1;
    overflow: hidden;
}

.duotone-illustration {
    width: 80%;
    height: 80%;
    max-width: 600px;
    max-height: 500px;
    opacity: 0.9;
}

.mid-layer {
    z-index: 2;
    opacity: 0.4;
}

.atomic-motif {
    width: 120px;
    height: 120px;
    position: relative;
}

/* Atomic Motifs */
.atom {
    width: 100%;
    height: 100%;
    position: relative;
}

.nucleus {
    width: 12px;
    height: 12px;
    background-color: var(--color-rust);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.electron-orbit {
    position: absolute;
    border: 2px solid var(--color-rust);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0.6;
    animation: spinOrbit 8s linear infinite;
}

.electron-orbit.e1 {
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    animation-duration: 6s;
}

.electron-orbit.e2 {
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    animation-duration: 10s;
    animation-direction: reverse;
}

@keyframes spinOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.starburst {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spoke {
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--color-rust);
    opacity: 0.6;
    left: 50%;
    top: 50%;
    transform-origin: left center;
    animation: pulseSpoke 2s ease-in-out infinite;
}

@keyframes pulseSpoke {
    0%, 100% {
        width: 60px;
        opacity: 0.6;
    }
    50% {
        width: 80px;
        opacity: 0.8;
    }
}

.boomerang {
    width: 100%;
    height: 100%;
    position: relative;
}

.segment {
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--color-rust);
    opacity: 0.6;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    animation: rotateSegment 3s ease-in-out infinite;
}

@keyframes rotateSegment {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(20deg);
    }
}

.spiral {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spiral-ring {
    position: absolute;
    border: 2px solid var(--color-rust);
    border-radius: 50%;
    opacity: 0.6;
    animation: expandRing 2.5s ease-out infinite;
}

.spiral-ring.r1 {
    width: 30px;
    height: 30px;
    animation-delay: 0s;
}

.spiral-ring.r2 {
    width: 50px;
    height: 50px;
    animation-delay: 0.5s;
}

.spiral-ring.r3 {
    width: 70px;
    height: 70px;
    animation-delay: 1s;
}

@keyframes expandRing {
    from {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    to {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

.hexagon {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-side {
    position: absolute;
    width: 70px;
    height: 2px;
    background-color: var(--color-rust);
    opacity: 0.6;
    transform-origin: center center;
    animation: drawHex 2s ease-in-out infinite;
}

@keyframes drawHex {
    0%, 100% {
        width: 40px;
        opacity: 0.4;
    }
    50% {
        width: 70px;
        opacity: 0.8;
    }
}

.fg-layer {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Content */
.section-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    z-index: 5;
}

.section-content h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-stone);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-content p {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-pale-cream);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Epilogue Section */
.epilogue-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darkest) 100%);
    padding: 4rem 2rem;
}

.epilogue-content {
    max-width: 700px;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

.epilogue-content h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.epilogue-content p {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-pale-cream);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.epilogue-signature {
    font-size: 0.95rem;
    color: var(--color-tan);
    font-style: italic;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .parallax-section {
        overflow-y: auto;
    }

    .duotone-illustration {
        width: 90%;
        height: 90%;
    }

    .section-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .epilogue-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-content h2 {
        font-size: 1.3rem;
    }

    .section-content p {
        font-size: 0.95rem;
    }
}

/* Print Styles - Hide parallax for printing */
@media print {
    .parallax-layer {
        position: static !important;
    }

    .atomic-motif {
        display: none;
    }
}
