/* =========================================================
   SYS NETWORK · Depends on: foundations.css, js/sys-network.js
   Pixel network of DOS-style windows (SysNetwork, divider) and
   the scroll journey (SysJourney, behind the hero). The modules
   paint the canvases; this file only places them. The canvas is drawn at low resolution and scaled
   up here without smoothing, so every pixel stays crisp.
========================================================= */

.sys-net {
  position: absolute;
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* -----------------------------
   Journey (js/sys-journey.js): a tall track that wraps the hero.
   Its stage is sticky; the hero is pulled up over it (negative
   margin on the hero, not on the stage: a sticky box with a
   negative margin would overflow the end of the track and cover
   Trabajos). JS sets the track height.
----------------------------- */
.journey {
  position: relative;
}

.journey__stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.journey > .hero {
  margin-top: -100vh;
  margin-top: -100svh;
}

.journey__stage .sys-net {
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero,
.work {
  position: relative;
  z-index: 1;
}

/* Skills as text: visually hidden (screen readers read it; the
   canvas is decorative). With reduced motion it becomes a visible,
   static list under the hero. */
.journey__list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.journey__list-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.journey__list ul {
  display: grid;
  gap: var(--space-3);
  border-top: var(--border-hairline);
  padding-top: var(--space-4);
}

.journey__list strong {
  display: block;
  font-family: var(--font-system);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-mint);
}

.journey__list span {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  /* the still orbit stays behind the hero only */
  .journey__stage {
    position: absolute;
    inset: 0 0 auto;
  }

  .journey > .hero {
    margin-top: 0;
  }

  .journey__list {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    padding-block: var(--space-7);
  }
}

/* the ring passes behind the Scroll button */
.scroll-cue {
  background: var(--color-bg);
}

/* -----------------------------
   Strip under Sobre mí (.about__strip, home.css)
----------------------------- */
.about__strip .sys-net {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* -----------------------------
   Divider: a band between two sections (Trabajos / Servicios)
----------------------------- */
.sys-divider {
  position: relative;
  z-index: 1;
  height: 200px;
  margin-bottom: var(--space-8);   /* same as the space above it (.section padding) */
  touch-action: pan-y;
}

.sys-divider .sys-net {
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .sys-divider {
    height: 320px;
    margin-bottom: var(--space-9);
  }
}
