/* home.css: home-only overrides (menu centred in the viewport, tiles inert until the end of the scroll). */

	html, body {
  	overscroll-behavior: none;
  }

	.nav {
  	width: 100vw;
    pointer-events: all;
  }

  ::-webkit-scrollbar {
      display: none;
  }

  .nav-tile, .menu {
  	pointer-events: none;
  }
  .nav-border-line {
  	display: none;
  }

  /* Single intro screen: the title and graphic of each tile fade in with the
     scroll (home-scroll.js), so only colour peeks in at first */
  .nav .tile > * {
  	filter: var(--tile-content-filter, none);
  }

  /* Centred with --button-width (the new central block is not square). */
  .nav-container .menu {
      left: calc(var(--button-width) / -6);
      bottom: 50%;
      transform: translate(calc(50vw - var(--button-width) / 3), 50%);
  }

  @media (max-width: 991px) {
      .nav-container .menu {
          left: 50%;
          bottom: calc(var(--button-size) / -8);
        	transform: translate(-50%, calc(-50dvh - var(--button-size) * 3 / -8));
      }
	}

/* The intro headlines are now h1 and h2 (accessibility and SEO). Sizes come from their
   classes (identity.css); margins are reset like the h3 they replace, so nothing moves. */
.nav-button-title:is(h1, h2) {
  margin: 0;
}

/* DS, movimiento reducido: los desplazamientos y cambios de tamaño son instantáneos y los
   bucles se detienen. La portada salta entre sus dos pantallas (home-scroll.js) y la
   entrada se muestra ya terminada (load-in.js). !important gana a las transiciones que
   los scripts escriben en línea. */
@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
