/* trabajo.css — vista /trabajo (carrusel horizontal, sin scroll de página).
   Lo común a todas las páginas está en base.css. Esta página no usa el scroll suave
   ni el cursor custom del inicio. */

:root {
    /* Fondo de la referencia (rgb 29,29,31) */
    --bg: #1d1d1f;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    position: relative;
    height: 100%;
}

/* Grano de película por encima de todo (menos el header y el menú) */
@keyframes grain {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-3%, 2%); }
    40%  { transform: translate(2%, -3%); }
    60%  { transform: translate(-2%, -1%); }
    80%  { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

body::after {
    content: "";
    position: fixed;
    inset: -10%;
    animation: grain 0.9s steps(1) infinite;
    z-index: 6;
    opacity: 0.07;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- ACCESIBILIDAD (la base está en base.css) --- */
.skip-link {
    background: #fff;
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

/* Sin JS: lista simple de proyectos */
.work-fallback {
    position: relative;
    z-index: 5;
    padding: 14rem 3vw 3rem;
    font-size: 2rem;
    font-weight: 200;
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}
