/* ═══════════════════════════════════════════════════════════════════
   RIVEL · 002 AXIOM
   Thinking orb on the field. Type sits on atmosphere. No slab over veil.
   ═══════════════════════════════════════════════════════════════════ */

.hps:has(#what-is-rivel.hps-axiom-sec) {
  overflow: visible;
}

#what-is-rivel.hps-axiom-sec {
  padding: 0;
  overflow: visible;
  overflow-anchor: none;
  position: relative;
  background: transparent;
  height: 420vh;
}

#what-is-rivel.hps-axiom-sec::before {
  opacity: .22;
}

.hps-axiom-sec .pin-spacer,
.hps-axiom-sec__stage {
  background: transparent;
  background-color: transparent;
}

.hps-axiom-sec__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 5.2rem clamp(1.25rem, 4vw, 4rem) 1.15rem;
}

.hps-axiom {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(.6rem, 1.6vh, 1.2rem);
}

.hps-axiom .hps-theatre-kicker {
  margin: 0;
  justify-self: start;
}

.hps-axiom__stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(1rem, 3vh, 2.2rem);
}

.hps-axiom__orb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}

.hps-axiom__orb {
  display: block;
  width: min(42vmin, 22rem);
  height: min(42vmin, 22rem);
  background: transparent;
}

.hps-axiom__orb-name {
  margin: 0;
  font-family: var(--hps-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(232, 237, 242, .42);
}

.hps-axiom__copy {
  text-align: center;
  max-width: 38rem;
  min-height: 9.5rem;
}

.hps-axiom__mode {
  margin: 0 0 .7rem;
  font-family: var(--hps-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(232, 237, 242, .46);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hps-axiom__title {
  margin: 0;
  font-family: var(--hps-display, 'PP Neue Machina', sans-serif);
  font-size: clamp(2rem, 5.2vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}

.hps-axiom__title em {
  font-style: italic;
}

.hps-axiom__title .hps-display-shine {
  background: var(--hps-holo);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.05);
}

.hps-axiom__lede {
  margin: .9rem auto 0;
  max-width: 42ch;
  font-size: clamp(.98rem, 1.35vw, 1.1rem);
  line-height: 1.65;
  color: rgba(232, 237, 242, .62);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1) .04s, transform .55s cubic-bezier(.16, 1, .3, 1) .04s;
}

.hps-axiom__mode.is-in,
.hps-axiom__title.is-in,
.hps-axiom__lede.is-in {
  opacity: 1;
  transform: none;
}

.hps-axiom__marks {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin: 0;
  padding: .15rem 0 0;
}

.hps-axiom__marks button {
  appearance: none;
  background: none;
  border: 0;
  padding: .35rem 0;
  font-family: var(--hps-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .62rem;
  letter-spacing: .18em;
  color: rgba(232, 237, 242, .32);
  cursor: pointer;
}

.hps-axiom__marks button[aria-current="true"] {
  color: rgba(232, 237, 242, .88);
}

.hps-axiom__marks button:hover,
.hps-axiom__marks button:focus-visible {
  color: #fff;
}

.hps-axiom__marks button:focus-visible {
  outline: 2px solid #b06bff;
  outline-offset: 4px;
}

.hps-axiom__fallback,
.hps-axiom__fallback-close {
  display: none;
}

#what-is-rivel.hps-axiom-sec [data-from="axiom"] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #what-is-rivel.hps-axiom-sec {
    height: auto;
  }
  .hps-axiom-sec__stage {
    position: relative;
    height: auto;
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 1079px), (max-height: 739px), (pointer: coarse) {
  #what-is-rivel.hps-axiom-sec {
    height: auto;
    min-height: auto;
  }

  .hps-axiom-sec__stage {
    position: relative;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: clamp(5.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 4rem) clamp(3.5rem, 8vw, 5.5rem);
  }

  .hps-axiom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .hps-axiom__orb {
    width: min(58vw, 16.5rem);
    height: min(58vw, 16.5rem);
  }

  .hps-axiom__copy {
    min-height: 0;
  }

  .hps-axiom__title {
    font-size: clamp(1.85rem, 8vw, 2.8rem);
  }

  .hps-axiom__marks {
    display: none;
  }

  .hps-axiom__fallback {
    display: grid;
    gap: 1.1rem;
    width: min(36rem, 100%);
    margin: .4rem 0 0;
    padding: 0;
    list-style: none;
  }

  .hps-axiom__fallback li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .85rem;
    align-items: baseline;
    padding: .95rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .hps-axiom__fallback span {
    font-family: var(--hps-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: .62rem;
    letter-spacing: .16em;
    color: rgba(232, 237, 242, .4);
  }

  .hps-axiom__fallback h3 {
    margin: 0;
    font-family: var(--hps-display, 'PP Neue Machina', sans-serif);
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    font-weight: 400;
    letter-spacing: -.02em;
    color: #fff;
  }

  .hps-axiom__fallback p {
    margin: .3rem 0 0;
    font-size: .95rem;
    line-height: 1.5;
    color: rgba(232, 237, 242, .55);
  }

  .hps-axiom__fallback-close {
    display: block;
    margin: .4rem 0 0;
    max-width: 42ch;
    font-size: .98rem;
    line-height: 1.65;
    color: rgba(232, 237, 242, .62);
  }
}

@media (min-width: 1080px) and (min-height: 740px) and (pointer: fine) {
  .hps-axiom__stage {
    grid-template-columns: minmax(20rem, 0.92fr) minmax(22rem, 1fr);
    justify-items: start;
    column-gap: clamp(2rem, 6vw, 5.5rem);
    padding-left: clamp(0rem, 2vw, 1.5rem);
  }

  .hps-axiom__orb-col {
    justify-self: center;
  }

  .hps-axiom__copy {
    text-align: left;
    justify-self: start;
  }

  .hps-axiom__lede {
    margin-left: 0;
  }

  .hps-axiom__marks {
    justify-content: flex-start;
    padding-left: clamp(0rem, 2vw, 1.5rem);
  }
}

/* ══════════════════════════════════════════════════════════════════
   MOVIL v1 · bloque de correcciones responsive (append: gana por orden)
   ══════════════════════════════════════════════════════════════════ */

/* Las dos reglas de axiom NO pueden vivir en home-theatre.css:
   home-axiom.css carga DESPUES (index.html:112-115) y ganaria a igualdad
   de especificidad. El bloque solo-movil de la linea 210 es donde vive el
   fallback del 002, que es contenido que SOLO existe en el telefono. */
@media (max-width: 1079px), (max-height: 739px), (pointer: coarse) {
  .hps-axiom__orb-name {
    font-size: .70rem;
    letter-spacing: .14em;
    color: rgba(232, 237, 242, .60);
  }
  .hps-axiom__fallback span {
    font-size: .72rem;                  /* cabe de sobra en la columna de 2.4rem */
    letter-spacing: .10em;
    color: rgba(232, 237, 242, .62);
  }
}

/* [OPCIONAL, verificar en iPad] Escalon tablet: hoy el 002 dibuja una
   columna de 576px centrada en 1152px. El lado a lado va en
   .hps-axiom__stage, que es el grid y el padre real del orbe y de la copy;
   ponerlo en .hps-axiom pondria kicker | stage | fallback en columnas. */
@media (min-width: 900px) and (max-width: 1079px),
       (min-width: 900px) and (max-height: 739px),
       (min-width: 900px) and (pointer: coarse) {
  .hps-axiom { align-items: stretch; }
  .hps-axiom__stage {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .hps-axiom__orb { width: min(30vw, 20rem); height: min(30vw, 20rem); }
  .hps-axiom__copy { max-width: 46rem; text-align: left; }
  .hps-axiom__fallback {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
  }
  .hps-axiom__fallback-close { max-width: 62ch; }
}


