/* ============================================
   scire.bar - Brutalist Optimism
   Colors: #1a1a2e #4a90d9 #f5f0e8 #e8b84b #6c757d
   Fonts: Inter (sans-grotesk)
   ============================================ */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-cream: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --structure-line: #2a2a3e;
    --card-border: #1a1a2e;
    --pastel-peach: #f5dcc4;
    --pastel-blush: #f0d4d8;
    --pastel-butter: #f5ebc4;
    --pastel-lavender: #ddd4ee;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--warm-cream);
    color: var(--deep-base);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ---- Organic Blob Backgrounds ---- */
.blob {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -150px;
    background: var(--pastel-peach);
    border-radius: 62% 38% 70% 30% / 45% 55% 45% 55%;
    animation: blobFloat1 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: -120px;
    background: var(--pastel-butter);
    border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
    animation: blobFloat2 25s ease-in-out infinite;
}

.blob-3 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: -80px;
    background: var(--pastel-blush);
    border-radius: 55% 45% 35% 65% / 50% 60% 40% 50%;
    animation: blobFloat3 22s ease-in-out infinite;
}

.blob-4 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 50%;
    background: var(--pastel-lavender);
    border-radius: 45% 55% 60% 40% / 40% 50% 50% 60%;
    animation: blobFloat4 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, 40px) rotate(5deg); }
    66% { transform: translate(20px, -20px) rotate(-3deg); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -30px) rotate(-4deg); }
    66% { transform: translate(-20px, 30px) rotate(6deg); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, -35px) rotate(3deg); }
    66% { transform: translate(35px, 15px) rotate(-5deg); }
}

@keyframes blobFloat4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, 25px) rotate(-6deg); }
    66% { transform: translate(-30px, -20px) rotate(4deg); }
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--warm-cream);
    border-bottom: 3px solid var(--deep-base);
    padding: 0 40px;
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--deep-base);
    color: var(--accent-gold);
    font-weight: 900;
    font-size: 22px;
    border-radius: 4px;
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--deep-base);
}

.site-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--deep-base);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    border-bottom: 3px solid var(--deep-base);
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    color: var(--deep-base);
    margin-bottom: 32px;
}

.hero-accent {
    color: var(--primary-blue);
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--muted-gray);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-structure-line {
    width: 120px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto;
}

/* ---- Section Labels (Brutalist visible structure) ---- */
.section-label {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 24px 40px;
    border-bottom: 2px solid var(--deep-base);
    background: var(--deep-base);
    color: var(--warm-cream);
    position: relative;
    z-index: 1;
}

.label-text {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.label-meta {
    font-weight: 400;
    font-size: 12px;
    color: var(--muted-gray);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}

/* ---- Masonry Grid ---- */
.masonry-section {
    position: relative;
    z-index: 1;
    border-bottom: 3px solid var(--deep-base);
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry-card {
    break-inside: avoid;
    margin-bottom: 24px;
    background: white;
    border: 3px solid var(--deep-base);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--deep-base);
}

.card-border-top {
    height: 6px;
    background: var(--accent-gold);
}

/* Card: Text */
.card-text {
    padding: 32px;
    padding-top: 0;
}

.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    margin-top: 24px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted-gray);
    margin-bottom: 12px;
}

.card-number {
    display: block;
    margin-top: 20px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(26, 26, 46, 0.06);
    line-height: 1;
}

/* Card: Photo */
.card-photo {
    padding-bottom: 20px;
}

.vintage-photo {
    width: 100%;
    overflow: hidden;
}

.photo-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(30%) saturate(80%) contrast(90%) brightness(105%);
}

.card-caption {
    display: block;
    padding: 16px 24px 0;
    font-size: 13px;
    font-style: italic;
    color: var(--muted-gray);
    line-height: 1.5;
}

/* Card: Accent (quote) */
.card-accent {
    background: var(--accent-gold);
    padding: 40px 32px;
    padding-top: 0;
}

.card-accent .card-border-top {
    background: var(--deep-base);
}

.card-quote {
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    color: var(--deep-base);
    margin-top: 32px;
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

.card-attribution {
    font-size: 14px;
    font-weight: 500;
    color: rgba(26, 26, 46, 0.7);
}

/* Card: Stat */
.card-stat {
    background: var(--primary-blue);
    padding: 40px 32px;
    padding-top: 0;
    text-align: center;
}

.card-stat .card-border-top {
    background: var(--accent-gold);
}

.stat-number {
    display: block;
    font-size: 56px;
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    margin-top: 32px;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ---- Accordion / Topics ---- */
.topics-section {
    position: relative;
    z-index: 1;
    border-bottom: 3px solid var(--deep-base);
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.accordion-item {
    border: 3px solid var(--deep-base);
    margin-bottom: -3px;
    background: white;
    transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
    z-index: 2;
    position: relative;
    box-shadow: 6px 6px 0 var(--deep-base);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background: rgba(232, 184, 75, 0.08);
}

.accordion-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-blue);
    min-width: 32px;
}

.accordion-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--deep-base);
    flex: 1;
    letter-spacing: -0.3px;
}

.accordion-icon {
    font-size: 28px;
    font-weight: 300;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-inner {
    padding: 0 32px 32px;
    padding-left: 84px;
}

.accordion-inner p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted-gray);
    margin-bottom: 12px;
}

.accordion-inner p:last-child {
    margin-bottom: 0;
}

/* ---- Archive Timeline ---- */
.archive-section {
    position: relative;
    z-index: 1;
    border-bottom: 3px solid var(--deep-base);
}

.archive-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 60px 180px;
}

.timeline-line {
    position: absolute;
    left: 150px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--deep-base);
}

.timeline-entry {
    position: relative;
    margin-bottom: 48px;
    padding-left: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border: 3px solid var(--deep-base);
    border-radius: 50%;
}

.timeline-year {
    position: absolute;
    left: -170px;
    top: 2px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 110px;
    text-align: right;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted-gray);
}

/* ---- About Section ---- */
.about-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    border-bottom: 3px solid var(--deep-base);
}

.about-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--pastel-butter);
    border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
    opacity: 0.3;
    z-index: -1;
    animation: blobFloat2 20s ease-in-out infinite;
}

.about-title {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted-gray);
    margin-bottom: 20px;
}

.about-text em {
    color: var(--deep-base);
    font-weight: 600;
}

.about-structure-line {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 40px auto 0;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--deep-base);
    padding: 48px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-weight: 800;
    font-size: 18px;
    color: var(--warm-cream);
    letter-spacing: -0.5px;
}

.footer-line {
    flex: 1;
    height: 2px;
    background: var(--structure-line);
}

.footer-copy {
    font-size: 13px;
    color: var(--muted-gray);
    letter-spacing: 0.5px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
        padding: 24px;
    }

    .site-nav {
        display: none;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 72px);
        letter-spacing: -1.5px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .section-label {
        flex-direction: column;
        gap: 4px;
        padding: 16px 24px;
    }

    .accordion-container {
        padding: 24px;
    }

    .accordion-inner {
        padding-left: 32px;
    }

    .archive-timeline {
        padding: 40px 24px 40px 100px;
    }

    .timeline-line {
        left: 70px;
    }

    .timeline-year {
        left: -90px;
        width: 70px;
        font-size: 12px;
    }

    .about-section {
        padding: 60px 24px;
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-line {
        width: 60px;
        flex: none;
    }
}

/* ---- Card entrance animations ---- */
.masonry-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease;
}

.masonry-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--deep-base);
}

.masonry-card.visible:hover {
    transform: translateY(-4px);
}
