/* ============================================
   404 — Lost in the Void
   High-contrast minimalism. One moment.
   ============================================ */

.mlad-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: var(--space-6) var(--space-4);
    position: relative;
    overflow: hidden;
}

.mlad-404__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 25vw, 18rem);
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    z-index: 0;
}

.mlad-404__content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.mlad-404__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.mlad-404__body {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--slate);
    margin-bottom: var(--space-5);
}

.mlad-404__typewriter {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    animation: typewriter 1.2s steps(24) 0.3s both;
}

.mlad-404__cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 0.15em;
    vertical-align: text-bottom;
    animation: cursor-blink 1.1s step-end infinite;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.mlad-404__vine {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    pointer-events: none;
    opacity: 0.12;
}

.mlad-404__vine svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mlad-404__vine path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: vine-grow 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes vine-grow {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mlad-404__cursor {
        animation: none;
        opacity: 1;
    }
    .mlad-404__vine path {
        stroke-dashoffset: 0;
        animation: none;
    }
}
