/* storiographer.com - Frutiger-Aero Story Timeline */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --story-sky: #E8F0FF;
    --glossy-white: rgba(255,255,255,0.8);
    --narrative-blue: #3B82F6;
    --scene-green: #10B981;
    --climax-orange: #F97316;
    --glossy-highlight: rgba(255,255,255,0.4);
    --deep-story: #1E293B;
    --soft-slate: #64748B;
}
body {
    background: var(--story-sky);
    color: var(--deep-story);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Hero */
#hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
}
.arc-diagram {
    margin: 0 auto 2rem;
    max-width: 700px;
}
.arc-diagram svg {
    width: 100%;
    height: auto;
}
.arc-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 10px;
    fill: var(--soft-slate);
    text-anchor: middle;
}
.hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--deep-story);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--soft-slate);
    margin-top: 0.25rem;
}

/* Timeline */
#timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    position: relative;
}

/* Spine */
.spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--narrative-blue);
    opacity: 0.2;
    transform: translateX(-50%);
}

/* Scene Nodes */
.scene-node {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}
.node-left {
    justify-content: flex-start;
    padding-right: 52%;
}
.node-right {
    justify-content: flex-end;
    padding-left: 52%;
}
.scene-node::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--scene-green);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Scene Cards */
.scene-card {
    background: var(--glossy-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.scene-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, var(--glossy-highlight), transparent);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}
.climax-card {
    border-color: rgba(249,115,22,0.3);
}
.climax-card::before {
    background: linear-gradient(180deg, rgba(249,115,22,0.1), transparent);
}
.scene-id {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--soft-slate);
    display: block;
    margin-bottom: 0.5rem;
}
.scene-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--narrative-blue);
    margin-bottom: 0.5rem;
}
.climax-card .scene-title {
    color: var(--climax-orange);
}
.scene-body {
    font-size: 0.95rem;
    color: var(--deep-story);
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
}
.footer-text {
    font-size: 0.85rem;
    color: var(--soft-slate);
}

/* Responsive */
@media (max-width: 700px) {
    .node-left, .node-right { padding: 0 0 0 3rem; justify-content: flex-start; }
    .spine { left: 1rem; }
    .scene-node::before { left: 1rem; }
}
