/* ROOT + GLOBAL */

.vanished-body {
    margin: 0;
    background: #05070c;
    color: #e5e7eb;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.vanished-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    position: relative;
    z-index: 1;
}

/* HEADER */


/* HERO SPLIT */

.hero {
    position: relative;
    margin-top: 70px;
    margin-bottom: 40px;
}

.hero-split {
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.85),
        0 0 0 1px rgba(15,23,42,0.9);
    overflow: hidden;
    position: relative;
}

.hero-split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 360px;
    position: relative;
}

/* HERO LEFT */

.hero-left {
    position: relative;
    padding: 40px 40px 32px;
    overflow: hidden;
}

.hero-noise-layer,
.hero-fog-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-noise-layer {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.hero-fog-layer {
    background: radial-gradient(circle at 0% 50%, rgba(148,163,184,0.2), transparent 60%),
                radial-gradient(circle at 40% 0%, rgba(148,163,184,0.12), transparent 55%);
    animation: fog-drift 40s linear infinite alternate;
    opacity: 0.7;
}

.hero-title {
    position: relative;
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 34px;
    line-height: 1.2;
    color: #f9fafb;
    margin: 0 0 10px;
    text-shadow:
        0 0 18px rgba(15,23,42,0.9),
        0 0 2px rgba(15,23,42,1);
}

.hero-subtitle {
    position: relative;
    font-size: 16px;
    color: #cbd5f5;
    max-width: 420px;
    margin: 0 0 14px;
    opacity: 0.9;
}

.hero-underline {
    position: relative;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #f97373, #b91c1c);
    margin: 10px 0 16px;
    box-shadow: 0 0 12px rgba(248,113,113,0.6);
}

.hero-meta {
    position: relative;
    font-size: 13px;
    color: #9ca3af;
    max-width: 420px;
}

/* HERO RIGHT */

.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-image-forest {
    position: relative;
    height: 100%;
    min-height: 360px;
    background-image:
        linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(15,23,42,0.1)),
        url('https://vanished.ha-cdn.com/img/vanished-homepage-hero.avif'),
        url('https://vanished.ha-cdn.com/img/vanished-homepage-hero.webp'),
        url('https://vanished.ha-cdn.com/img/vanished-homepage-hero.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(0.75) contrast(1.15) saturate(0.7);
}

.hero-image-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
}

.hero-image-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 80%, rgba(148,163,184,0.18), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(148,163,184,0.12), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
    animation: fog-drift-slow 60s linear infinite alternate;
}

.hero-image-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    opacity: 0.7;
}

/* HERO CASEFILE ROW */

.hero-casefile-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 22px 22px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
    border-top: 1px solid rgba(148,163,184,0.25);
}

/* CASEFILE PANELS */

.casefile-panel {
    position: relative;
    background: #020617;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.85),
        0 0 0 1px rgba(15,23,42,0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.casefile-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: linear-gradient(to bottom, #b91c1c, #f97373);
    opacity: 0.9;
}

.casefile-tab {
    position: relative;
    background: linear-gradient(90deg, #020617, #111827);
    padding: 6px 12px 6px 18px;
    border-bottom: 1px solid rgba(148,163,184,0.3);
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.casefile-body {
    position: relative;
    padding: 14px 16px 10px 22px;
    background-image: linear-gradient(
        to bottom,
        rgba(15,23,42,0.9),
        rgba(15,23,42,0.98)
    );
}

.casefile-title {
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 16px;
    margin: 0 0 6px;
    color: #f9fafb;
}

.casefile-number {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #f97373;
}

.casefile-note {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.casefile-meta {
    font-size: 13px;
    color: #e5e7eb;
    margin: 0 0 4px;
}

.casefile-meta span {
    color: #f97373;
}

.casefile-duration {
    font-size: 13px;
    color: #e5e7eb;
    margin: 0 0 4px;
}

.casefile-location {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.casefile-footer {
    padding: 10px 16px 12px 22px;
    border-top: 1px dashed rgba(148,163,184,0.4);
    background: radial-gradient(circle at bottom, rgba(15,23,42,0.95), #020617);
}

.casefile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    border: 1px solid rgba(248,113,113,0.8);
    color: #fecaca;
    background: radial-gradient(circle at top, rgba(248,113,113,0.18), rgba(127,29,29,0.9));
    text-decoration: none;
    box-shadow: 0 0 12px rgba(248,113,113,0.5);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.casefile-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(248,113,113,0.8);
    background: radial-gradient(circle at top, rgba(248,113,113,0.25), rgba(127,29,29,1));
}

/* ARCHIVE SUMMARY */

.archive-summary {
    margin: 40px 0 32px;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 20px;
    margin: 0 0 4px;
    color: #f9fafb;
}

.section-header p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.archive-card {
    position: relative;
    background: radial-gradient(circle at top, #020617, #020617 60%, #020617 100%);
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.3);
    padding: 10px 12px;
    overflow: hidden;
}

.archive-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        to bottom,
        rgba(15,23,42,0.4),
        transparent 40%,
        rgba(15,23,42,0.7)
    );
    opacity: 0.7;
    pointer-events: none;
}

.archive-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.archive-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.archive-footnote {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

/* EVIDENCE BOARD */

.evidence-board {
    margin: 40px 0 32px;
}

.evidence-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
}

.evidence-column {
    position: relative;
}

.evidence-note {
    background: #020617;
    border-radius: 10px;
    border: 1px dashed rgba(148,163,184,0.5);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.evidence-note h3 {
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 15px;
    margin: 0 0 4px;
    color: #f9fafb;
}

.evidence-note p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.evidence-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.evidence-item {
    margin-bottom: 6px;
}

.evidence-item a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #020617;
    border: 1px solid rgba(31,41,55,0.9);
    text-decoration: none;
    color: #e5e7eb;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.evidence-item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(148,163,184,0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.evidence-item a:hover::before {
    opacity: 1;
}

.evidence-title {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.evidence-meta,
.evidence-location {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

/* POLAROID EVIDENCE */

.evidence-polaroids {
    position: relative;
    padding-top: 8px;
}

.polaroid-card {
    position: relative;
    background: #f9fafb;
    color: #111827;
    border-radius: 6px;
    padding: 8px 8px 10px;
    margin-bottom: 12px;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.9),
        0 0 0 1px rgba(15,23,42,0.9);
    transform: rotate(-1.5deg);
}

.polaroid-card:nth-child(2) {
    transform: rotate(1.2deg);
}

.polaroid-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.polaroid-card:nth-child(4) {
    transform: rotate(0.6deg);
}

.polaroid-photo {
    width: 100%;
    height: 140px;
    background: #020617;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) contrast(1.1);
}

.polaroid-photo-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #111827, #020617);
}

.polaroid-caption h3 {
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 13px;
    margin: 0 0 2px;
}

.polaroid-caption p {
    margin: 0;
    font-size: 11px;
    color: #4b5563;
}

.polaroid-location {
    margin-top: 2px;
}

.polaroid-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b91c1c;
    text-decoration: none;
}

.polaroid-link:hover {
    text-decoration: underline;
}

/* STRING LINES */

.string-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #b91c1c, #f97373);
    opacity: 0.8;
    transform-origin: left center;
}

.string-line-1 {
    top: 18%;
    left: -10%;
    width: 60%;
    transform: rotate(-6deg);
}

.string-line-2 {
    top: 60%;
    left: -5%;
    width: 55%;
    transform: rotate(4deg);
}

/* RECENT CASES GRID */

.recent-cases {
    margin: 40px 0 32px;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.recent-card {
    position: relative;
}

.recent-card-inner {
    background: #020617;
    border-radius: 10px;
    border: 1px solid rgba(31,41,55,0.9);
    box-shadow: 0 18px 40px rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recent-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.recent-header h3 {
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: 14px;
    margin: 0;
    color: #f9fafb;
}

.recent-body {
    padding: 8px 12px 6px;
}

.recent-meta {
    font-size: 12px;
    color: #e5e7eb;
    margin: 0 0 2px;
}

.recent-location {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

.recent-footer {
    padding: 8px 12px 10px;
    border-top: 1px dashed rgba(55,65,81,0.9);
}

.recent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.8);
    color: #e5e7eb;
    background: radial-gradient(circle at top, rgba(148,163,184,0.18), rgba(15,23,42,1));
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.recent-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(148,163,184,0.7);
    background: radial-gradient(circle at top, rgba(148,163,184,0.25), rgba(15,23,42,1));
}

/* INDEX SECTIONS */

.state-index,
.park-index {
    margin: 40px 0 32px;
}

.index-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.index-card {
    text-decoration: none;
    color: inherit;
}

.index-card-inner {
    background: #020617;
    border-radius: 10px;
    border: 1px solid rgba(31,41,55,0.9);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 60px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.index-card-inner:hover {
    border-color: rgba(248,113,113,0.8);
    box-shadow: 0 0 16px rgba(248,113,113,0.4);
    transform: translateY(-1px);
}

.index-label {
    font-size: 13px;
    color: #e5e7eb;
}

.index-count {
    font-size: 11px;
    color: #9ca3af;
}

/* MAP SECTION */

.map-section {
    margin: 40px 0 32px;
}

.map-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(31,41,55,0.9);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    margin-bottom: 16px;
}

#map {
    width: 100%;
    height: 520px;
}

.map-overlay-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    pointer-events: none;
    opacity: 0.7;
}

.map-caption {
    padding: 8px 12px 10px;
    font-size: 12px;
    color: #9ca3af;
    background: #020617;
    border-top: 1px solid rgba(31,41,55,0.9);
}

/* PARK GRID (UNDER MAP) */

.park-grid {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.park-box {
    flex: 1;
    min-width: 260px;
    background: #020617;
    color: #f5f5f5;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(31,41,55,0.9);
    box-shadow: 0 10px 24px rgba(0,0,0,0.7);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.park-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.85);
    background: #020617;
    border-color: rgba(248,113,113,0.8);
}

.park-box h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.park-box p {
    margin: 0 0 8px;
    font-size: 12px;
    opacity: 0.9;
}

.park-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.park-box li {
    margin-bottom: 4px;
    font-size: 12px;
}

.park-box a {
    color: #e5e7eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.park-box a:hover {
    text-decoration: none;
}

/* FOOTER */

.vanished-footer {
    border-top: 1px solid rgba(31,41,55,0.9);
    padding: 18px 24px 24px;
    background: radial-gradient(circle at top, #020617, #020617 60%, #020617 100%);
    color: #6b7280;
    font-size: 12px;
}

.footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.footer-meta {
    color: #4b5563;
}

/* ANIMATIONS */

@keyframes fog-drift {
    0% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(10%);
    }
}

@keyframes fog-drift-slow {
    0% {
        transform: translateX(-8%);
    }
    100% {
        transform: translateX(8%);
    }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero-split-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        display: none;
    }

    .hero-casefile-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evidence-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .vanished-main {
        padding: 80px 14px 40px;
    }

    .hero-left {
        padding: 28px 20px 22px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-casefile-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .archive-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .recent-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .index-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
