/* okurairi.net - The Vault of Shelved Things */
/* Grainy-textured aesthetic, film archive screening room */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #1a1714;
    color: #f0e6d0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== GRAIN OVERLAY ==================== */
.grain-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1714;
}

.hero-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.aurora-teal {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3db8a0 0%, transparent 70%);
    top: -10%;
    left: 10%;
    animation: auroraFloat1 30s ease-in-out infinite;
}

.aurora-violet {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7b5ea7 0%, transparent 70%);
    top: 20%;
    right: 5%;
    animation: auroraFloat2 30s ease-in-out infinite;
}

.aurora-rose {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #c95874 0%, transparent 70%);
    bottom: -5%;
    left: 40%;
    animation: auroraFloat3 30s ease-in-out infinite;
}

@keyframes auroraFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, 40px) scale(1.1); }
    50% { transform: translate(40px, 80px) scale(0.9); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes auroraFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 50px) scale(1.15); }
    50% { transform: translate(-30px, -40px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes auroraFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.05); }
    50% { transform: translate(-40px, -60px) scale(1.15); }
    75% { transform: translate(20px, -20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 96px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #f0e6d0;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards 0.3s;
}

.hero-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #c4a265;
    letter-spacing: 0.02em;
    line-height: 1.6;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 1.2s ease forwards 0.7s;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 1.2s;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, #c4a265);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c4a265;
    opacity: 0.6;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ==================== ARCHIVE SECTION ==================== */
.archive {
    position: relative;
    padding: 120px 48px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.archive-header {
    text-align: center;
    margin-bottom: 80px;
}

.archive-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #f0e6d0;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.archive-desc {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 17px;
    color: #c4a265;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== CARD GRID ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.specimen-card {
    position: relative;
    background-color: #2a2520;
    border: 2px solid #c4a265;
    padding: 32px 28px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.specimen-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.specimen-card:nth-child(even) {
    background-color: #262220;
}

.specimen-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #dbb978;
}

.specimen-tall {
    grid-row: span 2;
}

.specimen-wide {
    grid-column: span 2;
}

/* ==================== CARD STAMP ==================== */
.card-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c95874;
    border: 1.5px solid #c95874;
    padding: 3px 8px;
    transform: rotate(3deg);
    opacity: 0.8;
}

/* ==================== CARD CATALOG ==================== */
.card-catalog {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(196, 162, 101, 0.2);
}

.catalog-id,
.catalog-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #c4a265;
    opacity: 0.7;
}

/* ==================== CARD CONTENT ==================== */
.card-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #f0e6d0;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 12px;
}

.card-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    line-height: 1.65;
    color: #f0e6d0;
    opacity: 0.75;
    margin-bottom: 20px;
}

/* ==================== CARD STATUS ==================== */
.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dormant {
    background-color: #dbb978;
    box-shadow: 0 0 6px rgba(219, 185, 120, 0.5);
    animation: statusPulse 3s ease-in-out infinite;
}

.status-sealed {
    background-color: #c95874;
    box-shadow: 0 0 6px rgba(201, 88, 116, 0.5);
}

.status-archived {
    background-color: #3db8a0;
    box-shadow: 0 0 6px rgba(61, 184, 160, 0.5);
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.status-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #c4a265;
    opacity: 0.6;
}

/* ==================== FOOTER / VAULT EXIT ==================== */
.vault-exit {
    position: relative;
    padding: 120px 48px 80px;
    text-align: center;
    background-color: #1a1714;
}

.exit-content {
    max-width: 640px;
    margin: 0 auto;
}

.archive-header::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background-color: #d4cabb;
    margin: 24px auto 0;
    opacity: 0.3;
}

.exit-line {
    width: 60px;
    height: 1px;
    background-color: #c4a265;
    margin: 0 auto 40px;
    opacity: 0.4;
}

.exit-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    color: #f0e6d0;
    opacity: 0.7;
    margin-bottom: 48px;
}

.exit-text em {
    color: #c95874;
    font-style: italic;
}

.exit-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #c4a265;
    opacity: 0.5;
}

.meta-separator {
    color: #c4a265;
    opacity: 0.3;
}

.exit-catalog-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c4a265;
    opacity: 0.25;
    margin-top: 40px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .specimen-tall {
        grid-row: span 1;
    }

    .archive {
        padding: 80px 32px 60px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .archive-title {
        font-size: 42px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specimen-wide {
        grid-column: span 1;
    }

    .archive {
        padding: 60px 20px 40px;
    }

    .vault-exit {
        padding: 80px 20px 60px;
    }

    .card-title {
        font-size: 24px;
    }

    .exit-meta {
        flex-direction: column;
        gap: 8px;
    }

    .meta-separator {
        display: none;
    }

    .aurora-teal {
        width: 300px;
        height: 300px;
    }

    .aurora-violet {
        width: 250px;
        height: 250px;
    }

    .aurora-rose {
        width: 200px;
        height: 200px;
    }
}
