/* ============================================
   Story Page Styles
   ============================================ */

/* Page Hero */
.page-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 100px;
    position: relative;
    z-index: 1;
}

.page-hero .container {
    width: 100%;
}

.page-hero-content {
    max-width: 900px;
}

.page-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 11vw, 130px);
    font-weight: 300;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--text) 0%, var(--gold) 60%, var(--gold-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    line-height: 0.95;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.page-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.3;
}

/* Story Content */
.story-content {
    position: relative;
    z-index: 1;
    padding: 100px 0 160px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.story-section {
    margin-bottom: 120px;
}

.story-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.2;
}

.story-lead {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 40px;
}

.story-content p {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 30px;
}

.story-content em {
    font-style: italic;
    color: var(--gold);
}

.story-content strong {
    font-weight: 500;
    color: var(--text);
}

/* Story Quote */
.story-quote {
    margin: 60px 0;
    padding: 50px;
    background: var(--bg-card);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
}

.story-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Story Card */
.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
    margin: 50px 0;
}

.story-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 25px;
}

.story-card p {
    font-size: 17px;
    margin-bottom: 20px;
}

.story-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.story-card ul li {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.story-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 400;
}

.story-card-note {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 16px;
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.story-grid-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.story-grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.story-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.story-grid-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 15px;
}

.story-grid-item p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Story Data Grid */
.story-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.story-data-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.story-data-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 25px;
}

.story-data-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-data-card ul li {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.story-data-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.story-data-card ul li strong {
    color: var(--text);
    font-weight: 400;
}

/* Story Timeline */
.story-timeline {
    margin: 60px 0;
    padding: 40px 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -50px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

.timeline-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--gold);
}

.timeline-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    margin: 0;
}

/* Architecture Layers */
.architecture-layers {
    margin: 50px 0;
}

.arch-layer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.arch-layer:hover {
    border-color: var(--gold);
    transform: translateX(10px);
}

.arch-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 120px;
    font-weight: 300;
    color: var(--border);
    line-height: 1;
    opacity: 0.3;
}

.arch-layer h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.arch-layer p {
    font-size: 17px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Story List */
.story-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.story-list li {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.story-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 24px;
    font-weight: 400;
}

/* Story Navigation */
.story-nav {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.story-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-nav-link:hover {
    transform: translateX(10px);
}

.story-nav-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.story-nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1024px) {
    .container-narrow {
        padding: 0 40px;
    }
    .page-hero::after { left: 40px; right: 40px; }
    .story-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 60vh;
        padding-bottom: 60px;
    }
    .page-hero::after { left: 30px; right: 30px; }
    .container-narrow {
        padding: 0 30px;
    }
    .story-section {
        margin-bottom: 80px;
    }
    .story-quote,
    .story-card,
    .arch-layer {
        padding: 30px;
    }
    .story-grid,
    .story-data-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }
    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .timeline-item:not(:last-child)::after {
        left: 30px;
    }
    .arch-number {
        font-size: 80px;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .page-hero::after { left: 20px; right: 20px; }
    .container-narrow {
        padding: 0 20px;
    }
    .story-content p {
        font-size: 16px;
    }
    .story-quote,
    .story-card,
    .arch-layer {
        padding: 25px;
    }
}

/* SVG icon in story grid */
.story-icon-svg {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.04);
    flex-shrink: 0;
}

.story-icon-svg svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    opacity: 0.85;
}

.story-grid-item:hover .story-icon-svg {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
}
