/* quirk.bar - Frutiger Aero Glossy-Vintage Aesthetic */
/* Palette: #2C1A47 Deep Plum, #D4AF37 Vintage Gold, #1B4F5C Deep Teal,
   #8B3A62 Burgundy-Mauve, #1A1A1A Almost Black, #F5F3F0 Cream, #FFA500 Muted Orange */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #1A1A1A;
    background-color: #F5F3F0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Ornamental Dividers ===== */
.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.ornamental-divider::before,
.ornamental-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
}

.ornamental-divider--gold::before,
.ornamental-divider--gold::after {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.divider-shape {
    display: block;
    width: 8px;
    height: 8px;
    background: #D4AF37;
    transform: rotate(45deg);
}

.divider-shape:nth-child(2) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: none;
}

/* ===== Glossy Orbs - Frutiger Aero ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -80px;
    background: radial-gradient(circle at 35% 35%, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08) 50%, transparent 70%);
    opacity: 0.15;
}

.orb-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: -60px;
    background: radial-gradient(circle at 35% 35%, rgba(27, 79, 92, 0.3), rgba(27, 79, 92, 0.1) 50%, transparent 70%);
    opacity: 0.12;
}

.orb-3 {
    width: 400px;
    height: 400px;
    bottom: 20%;
    right: 5%;
    background: radial-gradient(circle at 40% 30%, rgba(139, 58, 98, 0.2), rgba(139, 58, 98, 0.05) 50%, transparent 70%);
    opacity: 0.1;
}

.orb-4 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 15%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    opacity: 0.08;
}

.orb-5 {
    width: 250px;
    height: 250px;
    top: 80%;
    right: 20%;
    background: radial-gradient(circle at 35% 35%, rgba(27, 79, 92, 0.25), rgba(27, 79, 92, 0.08) 50%, transparent 70%);
    opacity: 0.1;
}

/* ===== Chapter Base ===== */
.chapter {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chapter-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.chapter-content {
    position: relative;
    z-index: 2;
    max-width: 65ch;
    padding: 4rem 2rem;
    text-align: center;
}

/* ===== Chapter 1: Hero ===== */
.chapter-hero {
    background: linear-gradient(135deg, #2C1A47 0%, #1A1A1A 40%, #2C1A47 70%, #1B4F5C 100%);
}

.chapter-hero .chapter-overlay {
    background: radial-gradient(ellipse at center, transparent 30%, rgba(44, 26, 71, 0.6) 100%);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 0.12em;
    line-height: 1.1;
    color: #F5F3F0;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-title-dot {
    color: #D4AF37;
}

.hero-subtitle {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    color: rgba(245, 243, 240, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-indicator-text {
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(245, 243, 240, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator-arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    transform: rotate(45deg);
    animation: bounceArrow 2s ease-in-out infinite;
}

/* ===== Chapter 2: Collection (Cream) ===== */
.chapter-collection {
    background-color: #F5F3F0;
}

/* ===== Chapter 3: Aesthetic (Deep Teal) ===== */
.chapter-aesthetic {
    background: linear-gradient(160deg, #1B4F5C 0%, #2C1A47 60%, #1A1A1A 100%);
}

.chapter-aesthetic .chapter-overlay--teal {
    background: radial-gradient(ellipse at 30% 50%, rgba(27, 79, 92, 0.3), transparent 70%);
}

/* ===== Chapter 4: Archive (Cream) ===== */
.chapter-archive {
    background-color: #F5F3F0;
}

/* ===== Chapter 5: Future (Deep Plum) ===== */
.chapter-future {
    background: linear-gradient(160deg, #2C1A47 0%, #8B3A62 50%, #2C1A47 100%);
}

.chapter-future .chapter-overlay--plum {
    background: radial-gradient(ellipse at 70% 40%, rgba(139, 58, 98, 0.2), transparent 70%);
}

/* ===== Headlines ===== */
.chapter-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 8vw, 5rem);
    letter-spacing: 0.12em;
    line-height: 1.1;
    color: #2C1A47;
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.chapter-headline--light {
    color: #F5F3F0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.chapter-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Body Text ===== */
.chapter-body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: #1A1A1A;
    margin-bottom: 3rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.chapter-body--light {
    color: rgba(245, 243, 240, 0.85);
}

.chapter-body.visible {
    opacity: 1;
    transform: translateY(0);
}

.chapter-body em {
    color: #D4AF37;
    font-style: italic;
}

.chapter-body--light em {
    color: #FFA500;
}

/* ===== Stats Row ===== */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.stats-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Stat Badge (Counter Badge) ===== */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 140px;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #F5F3F0 50%, #ebe8e3 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 -1px 0 rgba(0, 0, 0, 0.05) inset,
        0 4px 12px rgba(44, 26, 71, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-badge--light {
    background: linear-gradient(145deg, rgba(245, 243, 240, 0.15) 0%, rgba(245, 243, 240, 0.08) 50%, rgba(245, 243, 240, 0.04) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset,
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2C1A47;
    line-height: 1;
}

.stat-badge--light .stat-number {
    color: #D4AF37;
}

.stat-suffix {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #8B3A62;
    margin-left: 0.15em;
}

.stat-badge--light .stat-suffix {
    color: #FFA500;
}

.stat-label {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: rgba(26, 26, 26, 0.55);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-badge--light .stat-label {
    color: rgba(245, 243, 240, 0.5);
}

/* ===== Footer ===== */
.site-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 1rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(26, 26, 26, 0.95) 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(245, 243, 240, 0.6);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #D4AF37;
}

.footer-divider {
    color: rgba(245, 243, 240, 0.25);
    font-size: 0.75rem;
}

.footer-credit {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: rgba(245, 243, 240, 0.3);
    letter-spacing: 0.1em;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* ===== Beveled Cards (Frutiger Aero touch) ===== */
.stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.stat-badge {
    position: relative;
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .chapter-content {
        padding: 3rem 1.25rem;
    }

    .stats-row {
        gap: 1rem;
    }

    .stat-badge {
        min-width: 110px;
        padding: 1.25rem 1rem;
    }

    .ornamental-divider {
        gap: 1rem;
    }

    .ornamental-divider::before,
    .ornamental-divider::after {
        max-width: 60px;
    }
}
