/* ============================================================
   RIVEL HOME — Pro Sections + redesign 2026-06
   Live map: tokens · base wrapper · atoms · 01 manifesto ·
   02 venture (Life's Game) · animation hooks · contact · legal ·
   hero (hps-hero) · proof strip · system (two arms) · vision ·
   craft pass · fixes. Same-specificity overrides intentionally
   live in the trailing CRAFT/FIXES zones — edit there, not in
   the first definition.
   ============================================================ */

/* ========== TOKENS ========== */
.hps,
.hps-hero,
.hps-proof {
  /* Colors */
  --hps-bg:        #050505;
  --hps-fg:        #ffffff;
  --hps-fg-70:     rgba(255,255,255,.72);
  --hps-fg-50:     rgba(255,255,255,.5);
  --hps-fg-30:     rgba(255,255,255,.3);
  --hps-fg-15:     rgba(255,255,255,.15);
  --hps-fg-08:     rgba(255,255,255,.08);
  --hps-fg-04:     rgba(255,255,255,.04);
  --hps-card:      rgba(255,255,255,.025);
  --hps-card-hov:  rgba(255,255,255,.05);

  --hps-accent: var(--rg-brand-silver, #eceef2);

  /* Holographic gradient (from RIVEL strategy-lab orb) */
  --hps-holo: conic-gradient(from 180deg at 50% 50%,
    #b8d4ff 0deg,
    #f6c8e1 60deg,
    #fff2c4 120deg,
    #c8efd7 180deg,
    #c0d6ff 240deg,
    #e9c8f0 300deg,
    #b8d4ff 360deg);

  --hps-holo-soft: linear-gradient(135deg,
    rgba(184,212,255,.7) 0%,
    rgba(246,200,225,.7) 33%,
    rgba(255,242,196,.7) 66%,
    rgba(200,239,215,.7) 100%);

  /* Type */
  --hps-display: var(--rg-font);
  --hps-editorial: var(--rg-font);
  --hps-mono: var(--rg-font-mono);
  --hps-body: var(--rg-font);

  /* Spacing scale (fluid) */
  --hps-space-1: clamp(.25rem, .5vw, .5rem);
  --hps-space-2: clamp(.5rem, 1vw, 1rem);
  --hps-space-3: clamp(1rem, 1.5vw, 1.5rem);
  --hps-space-4: clamp(1.5rem, 2.5vw, 2.5rem);
  --hps-space-5: clamp(2.5rem, 4vw, 4rem);
  --hps-space-6: clamp(4rem, 7vw, 7rem);
  --hps-space-7: clamp(6rem, 10vw, 10rem);

  /* Easing */
  --hps-ease: cubic-bezier(.22,.61,.36,1);
  --hps-ease-out: cubic-bezier(.16,1,.3,1);
}

/* ========== BASE WRAPPER ========== */
.hps {
  position: relative;
  background: var(--hps-bg);
  color: var(--hps-fg);
  font-family: var(--hps-body);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  overflow: hidden;
}

.hps * {
  box-sizing: border-box;
}

.hps-section {
  position: relative;
  padding: var(--hps-space-7) clamp(1.25rem, 4vw, 4rem);
  overflow: hidden;
}

.hps-container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

/* Subtle hairline grid backdrop (per section) */
.hps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px) 0 0/clamp(80px,8vw,140px) 100%,
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px) 0 0/100% clamp(80px,8vw,140px);
  /* explicit ellipse size: the grid fades to zero BEFORE any section edge,
     so no hairline can ever mark a section boundary */
  -webkit-mask-image: radial-gradient(120% 88% at 50% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 88% at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* ========== ATOMS ========== */

/* Eyebrow tag (e.g. "001 // MANIFESTO") */
.hps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--hps-space-2);
  padding: .55rem 1rem;
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  font-family: var(--hps-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
  background: var(--hps-fg-04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hps-eyebrow .hps-eyebrow-num {
  color: var(--hps-fg);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.hps-eyebrow .hps-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hps-fg);
  box-shadow: 0 0 14px currentColor;
  animation: hpsPulse 2.4s ease-in-out infinite;
}
@keyframes hpsPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.25); }
}

/* Display headline */
.hps-display {
  font-family: var(--hps-display);
  font-weight: 650;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--hps-fg);
  margin: 0;
  /* Avoid italic descenders ("g", "y") clashing with following content */
  padding-bottom: .12em;
}
.hps-display em,
.hps-display .hps-display-italic {
  font-family: var(--hps-editorial);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -.025em;
  /* Italic glyphs need slightly more line-height for ascenders/descenders */
  line-height: 1.06;
  /* Visually align italic baseline with display */
  display: inline-block;
  vertical-align: baseline;
}

/* Gradient stroke on key word (subtle holographic shine) */
.hps-display .hps-display-shine {
  background: var(--hps-holo);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.05);
}

.hps-tagline {
  font-family: var(--hps-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--hps-fg-70);
  margin: 0;
}

.hps-lede {
  font-family: var(--hps-body);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  color: var(--hps-fg-70);
  max-width: 56ch;
  margin: 0;
}

/* Buttons */
.hps-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.6rem;
  font-family: var(--hps-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 100vw;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.23,1,.32,1), background .25s var(--hps-ease), color .25s var(--hps-ease), border-color .25s var(--hps-ease);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.hps-btn--primary {
  background: var(--hps-fg);
  color: #000;
  box-shadow:
    0 0 0 1px var(--hps-fg-30) inset,
    0 18px 40px -22px rgba(255,255,255,.4);
}
.hps-btn--primary:hover {
  transform: translateY(-1px);
  background: #f4f4f4;
}
.hps-btn--ghost {
  background: var(--hps-fg-04);
  color: var(--hps-fg);
  border: 1px solid var(--hps-fg-15);
}
.hps-btn--ghost:hover {
  background: var(--hps-fg-08);
  border-color: var(--hps-fg-30);
  transform: translateY(-1px);
}
.hps-btn .hps-btn-arrow {
  display: inline-block;
  transition: transform .35s var(--hps-ease);
}
.hps-btn:hover .hps-btn-arrow {
  transform: translateX(3px);
}

/* CTA pair */
.hps-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hps-space-2);
  align-items: center;
}

/* Stats ticker (data row) */
.hps-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  font-family: var(--hps-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
  padding: var(--hps-space-3) 0;
  border-top: 1px solid var(--hps-fg-08);
  border-bottom: 1px solid var(--hps-fg-08);
}
.hps-stats__item {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
}
.hps-stats__num {
  font-family: var(--hps-display);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--hps-fg);
  letter-spacing: -.01em;
}
.hps-stats__sep {
  width: 1px;
  align-self: stretch;
  background: var(--hps-fg-08);
  display: inline-block;
}

/* ============================================================
   01 · MANIFESTO — "We Didn't Come to Follow."
   ============================================================ */
.hps-manifesto {
  padding-top: var(--hps-space-7);
}

.hps-manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--hps-space-5);
  align-items: end;
  margin-bottom: var(--hps-space-5);
}
@media (max-width: 900px) {
  .hps-manifesto__grid {
    grid-template-columns: 1fr;
    gap: var(--hps-space-4);
    align-items: start;
  }
}
.hps-manifesto__head {
  display: flex;
  flex-direction: column;
  gap: var(--hps-space-3);
}
.hps-manifesto__copy {
  display: flex;
  flex-direction: column;
  gap: var(--hps-space-3);
}

/* Pillars grid (4 cards) */
.hps-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 1.5vw, 1.4rem);
  margin-top: var(--hps-space-5);
}
@media (max-width: 1100px) {
  .hps-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px)  {
  .hps-pillars { grid-template-columns: 1fr; }
}

.hps-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hps-fg-08);
  background: var(--hps-card);
  border-radius: 18px;
  overflow: hidden;
  transition: background .4s var(--hps-ease), border-color .4s var(--hps-ease), transform .5s var(--hps-ease-out);
  will-change: transform;
}
.hps-pillar:hover {
  background: var(--hps-card-hov);
  border-color: var(--hps-fg-30);
  transform: translateY(-4px);
}
.hps-pillar__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}
.hps-pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
  transition: transform 1.2s var(--hps-ease-out), filter .6s var(--hps-ease);
  will-change: transform;
}
.hps-pillar:hover .hps-pillar__media img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}
.hps-pillar__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.hps-pillar__num {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: var(--hps-fg);
  background: rgba(0,0,0,.6);
  border: 1px solid var(--hps-fg-15);
  padding: .35rem .65rem;
  border-radius: 100vw;
  backdrop-filter: blur(8px);
}
.hps-pillar__body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.hps-pillar__title {
  font-family: var(--hps-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--hps-fg);
  margin: 0;
}
.hps-pillar__desc {
  font-family: var(--hps-body);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--hps-fg-70);
  margin: 0;
}

/* Holographic edge on hover (drawn via mask) */
.hps-pillar::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: var(--hps-holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .55s var(--hps-ease);
  pointer-events: none;
  z-index: 1;
}
.hps-pillar:hover::before { opacity: 1; }

/* .hps-status — shared with legal/contact (venture section removed) */
.hps-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem;
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  background: var(--hps-fg-04);
  font-family: var(--hps-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
  width: max-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hps-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hps-fg);
  box-shadow: 0 0 16px var(--hps-fg);
  animation: hpsPulse 2s ease-in-out infinite;
}

/* ============================================================
   ANIMATION HOOKS (GSAP-driven)
   The JS adds .is-revealed once the section enters viewport.
   These rules are just initial states + fallbacks.
   ============================================================ */
.hps [data-hps-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .65s var(--hps-ease-out), transform .65s var(--hps-ease-out);
  will-change: opacity, transform;
}
.hps [data-hps-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* Stagger child reveals */
.hps [data-hps-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .7s var(--hps-ease-out), transform .7s var(--hps-ease-out);
}
.hps [data-hps-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}
.hps [data-hps-stagger].is-revealed > *:nth-child(1) { transition-delay: .05s; }
.hps [data-hps-stagger].is-revealed > *:nth-child(2) { transition-delay: .12s; }
.hps [data-hps-stagger].is-revealed > *:nth-child(3) { transition-delay: .19s; }
.hps [data-hps-stagger].is-revealed > *:nth-child(4) { transition-delay: .26s; }
.hps [data-hps-stagger].is-revealed > *:nth-child(5) { transition-delay: .33s; }
.hps [data-hps-stagger].is-revealed > *:nth-child(6) { transition-delay: .40s; }

/* Char-split for headlines (set up by JS) */
.hps-display .hps-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.6em, 0);
}
/* transition only on the no-GSAP fallback path; with GSAP the tween drives
   every frame and a CSS transition would double-ease/lag the stagger */
html:not(.hps-gsap) .hps-display .hps-char {
  transition: opacity .7s var(--hps-ease-out), transform .8s var(--hps-ease-out);
}
.hps-display .hps-word {
  display: inline-block;
  white-space: nowrap;
}
.hps-display.is-revealed .hps-char {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hps [data-hps-reveal],
  .hps [data-hps-stagger] > *,
  .hps-display .hps-char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hps-eyebrow .hps-eyebrow-dot,
  .hps-status::before {
    animation: none !important;
  }
}

/* ============================================================
   CONTACT PAGE — single source of truth, HPS aesthetic
   No duplicate forms. Hero + 2-col (form/info) + trust strip.
   ============================================================ */

/* Body of contact page should match HPS bg */
.hps-contact {
  background: var(--hps-bg);
  color: var(--hps-fg);
  font-family: var(--hps-body);
}

/* Generic inner-constrain (used by .hps-contact__hero etc.) */
.hps-section__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 1;
}
/* Belt-and-suspenders: also hide the orphan grid div if it sneaks in */
.hps-section__grid {
  display: none;
}

/* Hero */
.hps-contact__hero {
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(3rem, 5vh, 4.5rem);
}
.hps-contact__hero .hps-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--hps-space-3);
  max-width: 70ch;
  margin: 0 auto;
}
.hps-contact__hero .hps-display {
  text-align: center;
}
.hps-contact__hero .hps-tagline {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}
.hps-contact__hero .hps-status {
  margin-top: var(--hps-space-3);
}

/* MAIN — 2 column grid */
.hps-contact__main {
  padding-top: clamp(2rem, 4vh, 3.5rem);
  padding-bottom: clamp(4rem, 8vh, 7rem);
}
.hps-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  .hps-contact__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Column heads — shared styling for form col + info col */
.hps-contact__col-head {
  display: flex;
  flex-direction: column;
  gap: var(--hps-space-2);
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}
.hps-contact__col-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .85rem;
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  background: var(--hps-fg-04);
  width: max-content;
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hps-contact__col-eyebrow .hps-eyebrow-num {
  color: var(--hps-fg);
}
.hps-contact__col-title {
  font-family: var(--hps-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--hps-fg);
  margin: 0;
  padding-bottom: .12em;
}
.hps-contact__col-title em {
  font-family: var(--hps-editorial);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -.025em;
  color: var(--hps-fg-70);
}
.hps-contact__col-sub {
  font-family: var(--hps-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hps-fg-70);
  margin: 0;
  max-width: 42ch;
}

/* FORM — left col */
.hps-contact__form-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background:
    radial-gradient(140% 140% at 0% 0%, rgba(184,212,255,.04), transparent 55%),
    radial-gradient(140% 140% at 100% 100%, rgba(246,200,225,.03), transparent 55%),
    rgba(255,255,255,.02);
  border: 1px solid var(--hps-fg-08);
  border-radius: 24px;
  isolation: isolate;
  transition: border-color .4s var(--hps-ease);
}
.hps-contact__form-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: var(--hps-holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .55s var(--hps-ease);
  pointer-events: none;
  z-index: 2;
}
.hps-contact__form-wrap:focus-within::before {
  opacity: 1;
}
.hps-contact__form-wrap:focus-within {
  border-color: var(--hps-fg-30);
}

.hps-contact__form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.5vw, 1.4rem);
  position: relative;
  z-index: 1;
}

.hps-contact__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
}
.hps-contact__label {
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
}
.hps-contact__req {
  color: var(--hps-fg);
  margin-left: .15rem;
}
.hps-contact__hint {
  font-family: var(--hps-body);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--hps-fg-30);
  margin-left: .25rem;
}
.hps-contact__input {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--hps-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hps-fg);
  background: var(--hps-fg-04);
  border: 1px solid var(--hps-fg-15);
  border-radius: 12px;
  outline: none;
  transition: border-color .25s var(--hps-ease), background .25s var(--hps-ease);
  resize: none;
  -webkit-appearance: none;
}
.hps-contact__input::placeholder {
  color: var(--hps-fg-30);
}
.hps-contact__input:hover {
  border-color: var(--hps-fg-30);
}
.hps-contact__input:focus {
  border-color: var(--hps-fg);
  background: rgba(255,255,255,.05);
}
.hps-contact__textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--hps-body);
}
.hps-contact__counter {
  position: absolute;
  right: .75rem;
  bottom: .65rem;
  font-family: var(--hps-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--hps-fg-30);
  pointer-events: none;
}

/* Honeypot — invisible to humans, traps bots */
.hps-contact__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Submit button — HPS primary white pill */
.hps-contact__actions {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .5rem;
}
.hps-contact__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.6rem;
  font-family: var(--hps-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 100vw;
  background: var(--hps-fg);
  color: #000;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  width: max-content;
  transition: transform .35s var(--hps-ease), background .35s var(--hps-ease), box-shadow .35s var(--hps-ease);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06) inset,
    0 18px 40px -22px rgba(255,255,255,.35);
}
.hps-contact__submit:hover {
  transform: translateY(-1px);
  background: #f4f4f4;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06) inset,
    0 24px 50px -22px rgba(255,255,255,.5);
}
.hps-contact__submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.hps-contact__submit-arrow {
  display: inline-block;
  transition: transform .35s var(--hps-ease);
}
.hps-contact__submit:hover .hps-contact__submit-arrow {
  transform: translateX(3px);
}
.hps-contact__legal {
  font-family: var(--hps-body);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--hps-fg-30);
  margin: 0;
  max-width: 50ch;
}
.hps-contact__legal a {
  color: var(--hps-fg-70);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hps-contact__legal a:hover {
  color: var(--hps-fg);
}

/* Success / error states */
.hps-contact__success,
.hps-contact__error {
  margin-top: 1.5rem;
}
.hps-contact__success[hidden],
.hps-contact__error[hidden] {
  display: none;
}
.hps-contact__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(184,212,255,.045);
  border: 1px solid rgba(184,212,255,.2);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}
.hps-contact__success-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hps-fg);
  color: #000;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.hps-contact__success-title {
  font-family: var(--hps-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--hps-fg);
  margin: 0;
}
.hps-contact__success-sub {
  font-family: var(--hps-body);
  font-size: .95rem;
  line-height: 1.55;
  color: var(--hps-fg-70);
  margin: 0;
}
.hps-contact__error {
  padding: 1rem 1.25rem;
  background: rgba(255,80,80,.06);
  border: 1px solid rgba(255,80,80,.25);
  border-radius: 12px;
  font-family: var(--hps-body);
  font-size: .9rem;
  color: var(--hps-fg-70);
}
.hps-contact__error a {
  color: var(--hps-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* INFO column — right */
.hps-contact__info {
  display: flex;
  flex-direction: column;
}
.hps-contact__info-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.hps-contact__info-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--hps-fg-08);
  border-radius: 16px;
  transition: border-color .35s var(--hps-ease), background .35s var(--hps-ease);
}
.hps-contact__info-block:hover {
  border-color: var(--hps-fg-30);
  background: rgba(255,255,255,.035);
}
.hps-contact__info-block--featured {
  background:
    radial-gradient(140% 140% at 0% 0%, rgba(184,212,255,.06), transparent 60%),
    rgba(255,255,255,.02);
  border-color: var(--hps-fg-15);
}
.hps-contact__info-label {
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
}
.hps-contact__info-value {
  font-family: var(--hps-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hps-fg);
  margin: 0;
}
.hps-contact__info-value-link {
  font-family: var(--hps-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hps-fg);
  text-decoration: none;
  transition: opacity .25s var(--hps-ease);
}
.hps-contact__info-value-link:hover {
  opacity: .7;
}
.hps-contact__info-value-link + .hps-contact__info-value-link {
  margin-top: .15rem;
}
.hps-contact__info-value-line {
  font-family: var(--hps-body);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--hps-fg);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.hps-contact__info-tag {
  font-family: var(--hps-mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
  padding: .2rem .5rem;
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  background: var(--hps-fg-04);
}
.hps-contact__info-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .65rem;
  padding: .7rem 1.1rem;
  font-family: var(--hps-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--hps-fg);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  text-decoration: none;
  width: max-content;
  transition: background .35s var(--hps-ease), border-color .35s var(--hps-ease), transform .35s var(--hps-ease);
}
.hps-contact__info-cta:hover {
  background: var(--hps-fg);
  color: #000;
  border-color: var(--hps-fg);
  transform: translateY(-1px);
}
.hps-contact__info-cta-arrow {
  transition: transform .35s var(--hps-ease);
}
.hps-contact__info-cta:hover .hps-contact__info-cta-arrow {
  transform: translateX(3px);
}
.hps-contact__info-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hps-contact__social-link {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  font-family: var(--hps-body);
  font-size: .85rem;
  color: var(--hps-fg-70);
  background: var(--hps-fg-04);
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  text-decoration: none;
  transition: color .25s var(--hps-ease), border-color .25s var(--hps-ease), background .25s var(--hps-ease);
}
.hps-contact__social-link:hover {
  color: var(--hps-fg);
  border-color: var(--hps-fg-30);
  background: rgba(255,255,255,.05);
}

/* LEGAL directory — stacked identity band + 2-col policies */
.hps-legal-dir {
  display: flex;
  flex-direction: column;
  gap: clamp(3.25rem, 6vw, 5.5rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hps-legal-dir .hps-contact__col-sub {
  max-width: 62ch;
}
.hps-legal-dir__facts,
.hps-legal-dir__policies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.hps-legal-dir__facts {
  margin-top: .15rem;
}
.hps-legal-dir__policies .hps-contact__info-block {
  min-height: 100%;
}
@media (max-width: 720px) {
  .hps-legal-dir__facts,
  .hps-legal-dir__policies {
    grid-template-columns: 1fr;
  }
}

/* TRUST STRIP */
.hps-contact__trust {
  padding-top: clamp(2rem, 4vh, 3rem);
  padding-bottom: clamp(4rem, 7vh, 6rem);
  border-top: 1px solid var(--hps-fg-08);
}
.hps-contact__trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1200px;
  margin: 0 auto;
}
.hps-contact__trust-label {
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-30);
}
.hps-contact__trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.hps-contact__trust-logo {
  height: 1.75rem;
  width: auto;
  opacity: .55;
  filter: saturate(0%) brightness(1.1);
  transition: opacity .35s var(--hps-ease), filter .35s var(--hps-ease);
}
.hps-contact__trust-logo:hover {
  opacity: .85;
  filter: saturate(0%) brightness(1.4);
}
@media (max-width: 600px) {
  .hps-contact__trust-logo {
    height: 1.4rem;
  }
}

/* Hide CTA form on contact page (we have a body form already) */
.rg-footer--no-cta .rg-footer-top {
  display: none !important;
}
.rg-footer--no-cta .rg-footer-bottom {
  padding-top: 0;
  border-top: none;
}

/* ============================================================
   LEGAL DOCUMENT — HPS aesthetic for /privacy-policy /terms-of-use
   Hero + sticky TOC + structured prose with anchor links.
   ============================================================ */

.hps-legal {
  background: var(--hps-bg);
  color: var(--hps-fg);
  font-family: var(--hps-body);
  -webkit-font-smoothing: antialiased;
  /* CRITICAL: override .hps { overflow: hidden } so position:sticky works */
  overflow: visible;
}
.hps-legal,
.hps-legal * { box-sizing: border-box; }
/* Sin `scroll-behavior: smooth` en ninguna parte. Esta regla era
   `html { scroll-behavior: smooth }` a secas y se aplicaba a toda pagina que
   cargase esta hoja, la home incluida, y rompia dos cosas:
   1. Los capitulos pineados: ScrollTrigger.refresh() lleva el scroll a 0 para
      medir; con smooth ese salto tardaba ~800 ms y el 003 se medía con la
      pagina aun desplazada, asi que su start quedaba corrido lo que estuviera
      el lector desplazado y el loop se pineaba ENCIMA del 002.
   2. Las anclas: webflow.js ya anima el scroll de los enlaces #seccion
      llamando a window.scroll en cada frame, y con smooth el navegador
      suavizaba CADA llamada, la animacion se interrumpia a si misma y el
      indice de las paginas legales avanzaba a ~50 px/s.
   Las anclas suaves las hacen webflow.js y, de reserva, rivel-motion.js. */

/* Hero */
.hps-legal__hero {
  padding: clamp(6rem, 12vh, 9rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 5vh, 4.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hps-legal__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px) 0 0/clamp(80px,8vw,140px) 100%,
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px) 0 0/100% clamp(80px,8vw,140px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hps-legal__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--hps-space-3);
}
.hps-legal__hero .hps-display {
  text-align: center;
}
.hps-legal__hero .hps-tagline {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto;
}

/* Meta row */
.hps-legal__meta {
  display: inline-flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--hps-space-3);
  padding: .65rem 1.1rem;
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  background: var(--hps-fg-04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--hps-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
}
.hps-legal__meta-divider {
  width: 1px;
  height: 12px;
  background: var(--hps-fg-15);
}
.hps-legal__meta-value {
  color: var(--hps-fg);
  letter-spacing: .04em;
}
.hps-legal__cookie-action { margin: 1.25rem 0 1.6rem; }
.hps-legal__cookie-btn {
  font: inherit;
  font-weight: 600;
  padding: .75rem 1.4rem;
  border-radius: 100vw;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #ecece8;
  cursor: pointer;
}
.hps-legal__cookie-btn:active { transform: scale(.97); }
.hps-legal__cookie-btn:focus-visible { outline: 2px solid #9c43fe; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .hps-legal__cookie-btn:hover { background: rgba(255, 255, 255, .12); }
}

/* MAIN — TOC + prose */
.hps-legal__body {
  padding: clamp(2rem, 4vh, 3rem) clamp(1.25rem, 4vw, 4rem) clamp(5rem, 8vh, 7rem);
  background: var(--hps-bg);
}
.hps-legal__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) {
  .hps-legal__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Sticky Table of Contents */
.hps-legal__toc {
  position: sticky;
  top: clamp(70px, 8vh, 100px);
  align-self: start;
  max-height: calc(100vh - clamp(90px, 10vh, 120px));
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--hps-fg-08);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Soft entrance when it pins */
  transition: box-shadow .4s var(--hps-ease), border-color .4s var(--hps-ease), background .4s var(--hps-ease);
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--hps-fg-15) transparent;
  /* Holographic edge accent when pinned */
  z-index: 5;
}
.hps-legal__toc::-webkit-scrollbar { width: 4px; }
.hps-legal__toc::-webkit-scrollbar-track { background: transparent; }
.hps-legal__toc::-webkit-scrollbar-thumb {
  background: var(--hps-fg-15);
  border-radius: 100vw;
}
.hps-legal__toc::-webkit-scrollbar-thumb:hover { background: var(--hps-fg-30); }

/* When pinned (active class added by JS when stuck) — subtle lift */
.hps-legal__toc.is-pinned {
  background: rgba(255,255,255,.04);
  border-color: var(--hps-fg-15);
  box-shadow:
    0 1px 0 rgba(255,255,255,.02) inset,
    0 30px 60px -30px rgba(0,0,0,.6);
}
@media (max-width: 900px) {
  .hps-legal__toc {
    position: static;
    max-height: none;
    order: -1;
  }
}
.hps-legal__toc-label {
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-50);
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hps-legal__toc-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hps-fg);
  box-shadow: 0 0 14px currentColor;
  animation: hpsPulse 2.4s ease-in-out infinite;
}
.hps-legal__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  position: relative;
}
/* Vertical track behind the list */
.hps-legal__toc-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hps-fg-08);
  border-radius: 100vw;
}
.hps-legal__toc-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .5rem .7rem .5rem 1rem;
  font-family: var(--hps-body);
  font-size: .85rem;
  line-height: 1.35;
  color: var(--hps-fg-50);
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: background .3s var(--hps-ease), color .3s var(--hps-ease), padding-left .35s var(--hps-ease);
}
/* Per-link indicator dot */
.hps-legal__toc-list a::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hps-fg-30);
  transition: transform .35s var(--hps-ease), background .25s var(--hps-ease), box-shadow .35s var(--hps-ease);
}
.hps-legal__toc-list a:hover {
  color: var(--hps-fg-70);
  background: rgba(255,255,255,.02);
}
.hps-legal__toc-list a:hover::before {
  transform: translateY(-50%) scale(1);
}
/* Active section — pronounced indicator */
.hps-legal__toc-list a.is-active {
  color: var(--hps-fg);
  background: rgba(184,212,255,.04);
  padding-left: 1.15rem;
  font-weight: 500;
}
.hps-legal__toc-list a.is-active::before {
  transform: translateY(-50%) scale(2);
  background: var(--hps-fg);
  box-shadow: 0 0 0 3px rgba(184,212,255,.15), 0 0 14px rgba(255,255,255,.4);
}
.hps-legal__toc-num {
  font-family: var(--hps-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--hps-fg-30);
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
  flex-shrink: 0;
  transition: color .25s var(--hps-ease);
}
.hps-legal__toc-list a:hover .hps-legal__toc-num {
  color: var(--hps-fg-50);
}
.hps-legal__toc-list a.is-active .hps-legal__toc-num {
  color: var(--hps-fg);
}

/* PROSE */
.hps-legal__prose {
  font-family: var(--hps-body);
  color: var(--hps-fg-70);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 72ch;
}
.hps-legal__prose .intro {
  padding: 1.5rem 1.75rem;
  background: rgba(184,212,255,.04);
  border-left: 2px solid var(--hps-fg-30);
  border-radius: 0 12px 12px 0;
  margin-bottom: 2.5rem;
}
.hps-legal__prose .intro p {
  margin: 0 0 .75rem;
  color: var(--hps-fg);
}
.hps-legal__prose .intro p:last-child {
  margin-bottom: 0;
}
.hps-legal__prose .intro strong {
  color: var(--hps-fg);
}
.hps-legal__prose h2 {
  font-family: var(--hps-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--hps-fg);
  margin: 3.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hps-fg-08);
  scroll-margin-top: 90px;
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.hps-legal__prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.hps-legal__prose h2 .hps-legal__h2-num {
  font-family: var(--hps-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--hps-fg-30);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  min-width: 2.4em;
}
.hps-legal__prose h3 {
  font-family: var(--hps-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--hps-fg);
  margin: 2rem 0 .75rem;
  scroll-margin-top: 90px;
}
.hps-legal__prose p {
  margin: 0 0 1rem;
}
.hps-legal__prose p:last-child {
  margin-bottom: 0;
}
.hps-legal__prose ul,
.hps-legal__prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}
.hps-legal__prose li {
  margin-bottom: .5rem;
  line-height: 1.65;
}
.hps-legal__prose li::marker {
  color: var(--hps-fg-30);
}
.hps-legal__prose strong {
  color: var(--hps-fg);
  font-weight: 500;
}
.hps-legal__prose em { color: var(--hps-fg-70); }
.hps-legal__prose a {
  color: var(--hps-fg);
  text-decoration: underline;
  text-decoration-color: var(--hps-fg-30);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--hps-ease);
}
.hps-legal__prose a:hover {
  text-decoration-color: var(--hps-fg);
}
.hps-legal__prose .all-caps,
.hps-legal__prose .all-caps li {
  font-family: var(--hps-mono);
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
}
.hps-legal__prose code {
  font-family: var(--hps-mono);
  font-size: .9em;
  color: var(--hps-fg);
  background: var(--hps-fg-04);
  padding: .1em .4em;
  border-radius: 6px;
}

/* Footer of the doc: back-to-top + contact card */
.hps-legal__doc-footer {
  margin-top: clamp(4rem, 7vh, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hps-fg-08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hps-legal__doc-footer-text {
  font-family: var(--hps-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hps-fg-50);
}
.hps-legal__back-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  font-family: var(--hps-body);
  font-size: .85rem;
  color: var(--hps-fg);
  background: var(--hps-fg-04);
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--hps-ease), border-color .25s var(--hps-ease);
}
.hps-legal__back-top:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--hps-fg-30);
}

/* ── RIVEL Home hero (redesign 2026-06) ───────────────────────── */
.hps-hero {
  position: relative; overflow: visible;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  background: #050505; /* same literal as the page canvas: seamless AND cache-proof */
  font-family: var(--hps-body);
}
.hps-hero__inner {
  position: relative; z-index: 1;
  max-width: 66rem; margin: 0 auto; padding: 0 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hps-space-3);
}
.hps-hero__title {
  font-family: var(--hps-display); font-weight: 650;
  font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  line-height: 1.04; letter-spacing: -.04em;
  text-wrap: balance;
  margin: 0; color: var(--hps-fg);
}
.hps-hero__title em {
  font-family: var(--hps-editorial); font-style: italic; font-weight: 450;
  letter-spacing: -.02em;
}
.hps-hero__title .hps-display-shine {
  background: linear-gradient(108deg, #fff 8%, var(--hps-accent) 52%, #d2d5db 85%, #fafafa);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 3px #09090ba6);
}
.hps-hero__sub {
  max-width: 44rem; margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.3rem);
  text-wrap: balance;
  line-height: 1.6; color: var(--hps-fg-70);
}
.hps-hero .hps-ctas { margin-top: var(--hps-space-2); }
/* gentle on-load intro (hero is above the fold) */
@keyframes hpsHeroIn {
  0%   { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; } }
.hps-hero__inner > * { animation: hpsHeroIn .9s cubic-bezier(.16,1,.3,1) both; }
.hps-hero__inner > *:nth-child(1) { animation-delay: .10s; }
.hps-hero__inner > *:nth-child(2) { animation-delay: .22s; }
.hps-hero__inner > *:nth-child(3) { animation-delay: .38s; }
.hps-hero__inner > *:nth-child(4) { animation-delay: .52s; }
@media (prefers-reduced-motion: reduce) { .hps-hero__inner > * { animation: none; } }
@media (max-width: 640px) { .hps-hero { min-height: 86vh; } }

/* ── RIVEL Home proof strip (under hero) ──────────────────────── */
.hps-proof { background: transparent; padding: clamp(3rem,6vw,5rem) 0; overflow: hidden; }
.hps-proof__inner { max-width: 60rem; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.hps-proof__label { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--hps-fg-50); margin: 0 0 2rem; }
.hps-proof__marquee {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.hps-proof__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.hps-proof__logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5rem;
  padding-right: 5rem;
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hps-proof__track { animation: hpsProofMarquee 42s linear infinite; }
  .hps-proof__marquee:hover .hps-proof__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .hps-proof__marquee {
    width: auto;
    margin-left: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hps-proof__track { width: 100%; }
  .hps-proof__logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-right: 0;
  }
  .hps-proof__logos[aria-hidden="true"] { display: none; }
}
@keyframes hpsProofMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.hps-proof__quote { max-width: 44rem; margin: clamp(2.5rem,5vw,3.5rem) auto 0; padding: 0; border: 0; font-family: var(--hps-editorial); font-style: italic; font-size: clamp(1.2rem,2vw,1.55rem); line-height: 1.45; color: var(--hps-fg); }
.hps-proof__quote cite { display: block; margin-top: 1.1rem; font-family: var(--hps-body); font-style: normal; font-size: .85rem; letter-spacing: .02em; color: var(--hps-fg-50); }

/* ── RIVEL Home "one system, two arms" (§3) ───────────────────── */
.hps-system__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hps-space-3); max-width: 62rem; }
.hps-system__head .hps-display { margin: 0 0 var(--hps-space-2); padding-bottom: .2em; }
.hps-system__head .hps-lede { margin: 0; max-width: 48rem; }
.hps-system__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: var(--hps-space-4); }
.hps-system__card { padding: var(--hps-space-4); border: 1px solid var(--hps-fg-08); border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--hps-fg-04), transparent);
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .3s var(--hps-ease), background .3s var(--hps-ease); }
.hps-system__card:hover { border-color: var(--hps-fg-15); background: linear-gradient(180deg, var(--hps-fg-08), transparent); }
.hps-system__tag { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--hps-fg-50); }
.hps-system__title { font-family: var(--hps-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; color: var(--hps-fg); }
.hps-system__desc { color: var(--hps-fg-70); line-height: 1.55; margin: 0; flex: 1; }
.hps-system__card .hps-btn { align-self: flex-start; margin-top: var(--hps-space-2); }
@media (max-width: 720px){ .hps-system__grid { grid-template-columns: 1fr; } }

/* ── 004 chassis: one instrument, two faces ─────────────────────── */
.hps-chassis.rg-glass,
.hps-chassis.rg-glass:hover {
  background-image: none;
}
.hps-chassis {
  --hps-chassis-state: var(--rg-state-ink, #38bdf8);
  position: relative;
  margin-top: var(--hps-space-4);
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
  border: 1px solid var(--hps-fg-08);
  border-radius: 1.5rem;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--hps-chassis-state) 10%, transparent), transparent 55%),
    rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  isolation: isolate;
}
.hps-chassis__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem 1rem;
}
.hps-chassis__mark {
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hps-fg-50);
}
.hps-chassis__bar .hps-status {
  justify-self: end;
  margin: 0;
}
.hps-chassis__switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: min(100%, 17.5rem);
  padding: 4px;
  border: 1px solid var(--hps-fg-15);
  border-radius: 100vw;
  background: rgba(255,255,255,.03);
}
.hps-chassis__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 100vw;
  background: color-mix(in srgb, var(--hps-chassis-state) 18%, rgba(255,255,255,.08));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hps-chassis-state) 35%, transparent);
  transition: transform .4s var(--hps-ease);
  pointer-events: none;
}
.hps-chassis[data-face="ventures"] .hps-chassis__thumb {
  transform: translateX(100%);
}
.hps-chassis__switch button {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--hps-fg-50);
  font-family: var(--hps-body);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .55rem 1rem;
  border-radius: 100vw;
  cursor: pointer;
  transition: color .3s var(--hps-ease);
}
.hps-chassis__switch button[aria-selected="true"] {
  color: var(--hps-fg);
}
.hps-chassis__switch button:focus-visible {
  outline: 2px solid #b06bff;
  outline-offset: 3px;
}
.hps-chassis__spine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0;
  padding: .55rem .85rem;
  border: 1px solid var(--hps-fg-08);
  border-radius: 100vw;
  font-family: var(--hps-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hps-fg-70);
}
.hps-chassis__spine i {
  display: block;
  width: 1.6rem;
  height: 1px;
  background: color-mix(in srgb, var(--hps-chassis-state) 55%, transparent);
}
.hps-chassis__stage {
  display: grid;
}
.hps-chassis__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--hps-ease), visibility .4s var(--hps-ease);
}
.hps-chassis__face.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hps-chassis__face-head {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.hps-chassis__kicker {
  font-family: var(--hps-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rg-state-lit, #7dd3fc);
}
.hps-chassis__title {
  font-family: var(--hps-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -.02em;
  color: var(--hps-fg);
  margin: 0;
}
.hps-chassis__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
}
.hps-chassis__channels--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hps-chassis__channels li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.hps-chassis__well {
  display: block;
  width: 100%;
  max-width: 2.4rem;
  height: 5.5rem;
  border-radius: 100vw;
  border: 1px solid color-mix(in srgb, var(--hps-chassis-state) 28%, var(--hps-fg-08));
  background: rgba(255,255,255,.03);
  overflow: hidden;
  position: relative;
}
.hps-chassis__well i {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 48%;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hps-chassis-state) 88%, #fff), var(--hps-chassis-state));
  box-shadow: 0 0 16px color-mix(in srgb, var(--hps-chassis-state) 35%, transparent);
}
.hps-chassis__ch-name {
  font-family: var(--hps-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hps-fg-50);
  text-align: center;
}
.hps-chassis__week {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.hps-chassis__week-label {
  font-family: var(--hps-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg-30);
}
.hps-chassis__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .35rem;
}
.hps-chassis__ticks li {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hps-fg-08);
  font-family: var(--hps-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--hps-fg-30);
}
.hps-chassis__ticks li.is-now {
  color: var(--hps-fg);
  border-color: color-mix(in srgb, var(--hps-chassis-state) 50%, transparent);
  background: color-mix(in srgb, var(--hps-chassis-state) 16%, transparent);
}
.hps-chassis__return {
  font-family: var(--hps-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hps-fg);
  padding: .35rem .7rem;
  border: 1px solid color-mix(in srgb, var(--hps-chassis-state) 40%, transparent);
  border-radius: 100vw;
  background: color-mix(in srgb, var(--hps-chassis-state) 12%, transparent);
}
.hps-chassis__note {
  margin: 0;
  max-width: 46ch;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--hps-fg-70);
}
@media (max-width: 820px) {
  .hps-chassis__bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .hps-chassis__switch {
    min-width: 0;
    width: 100%;
  }
  .hps-chassis__bar .hps-status {
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .hps-chassis__channels {
    gap: .4rem;
  }
  .hps-chassis__channels--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hps-chassis__well {
    height: 3.6rem;
    max-width: none;
  }
  .hps-chassis__spine {
    flex-wrap: wrap;
    border-radius: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hps-chassis__thumb,
  .hps-chassis__face {
    transition: none;
  }
}

/* ── Home pillars without stock photos — slim number header ────── */
.hps-pillar__media { aspect-ratio: auto; min-height: 3.25rem; background: none; }

/* ── RIVEL Home vision — pinned kinetic-type over a violet aura ──── */
.hps-vision { position: relative; overflow: visible; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  background: transparent; padding: var(--hps-space-6) 1.5rem; }
.hps-vision__inner { position: relative; z-index: 2; max-width: 58rem;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--hps-space-4); }
.hps-vision__lead { font-family: var(--hps-display); font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.5rem); color: var(--hps-fg-50); letter-spacing: 0;
  margin: 0; max-width: 40rem; line-height: 1.35; } /* two-line lead */
.hps-vision__statement { font-family: var(--hps-display); font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.9rem); line-height: 1.06; letter-spacing: -.03em;
  margin: 0; color: var(--hps-fg); text-wrap: balance; }
.hps-vision__accent, .hps-vision__accent .hps-vision__word { font-style: normal;
  background: var(--hps-holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 640px) { .hps-vision { min-height: 90dvh; } }

/* vision orb: abspos + auto margins center even when the canvas is
   taller than the section (negative margins). Do not use CSS
   `translate` — GSAP owns transform for the scale-in. */
.hps-vision__orb {
  position: absolute; inset: 0; margin: auto;
  width: min(128vh, 100vw); height: min(128vh, 100vw);
  z-index: 0; pointer-events: none;
}
.hps-vision__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(42% 42% at 50% 50%, rgba(5,5,6,.55) 0%, rgba(5,5,6,.18) 42%, transparent 62%); }

/* ═══════════ CRAFT PASS 2026-06 — micro-interactions, rhythm, texture ═══════════ */

/* Tactile buttons: press feedback + refined hover (GPU-only transforms) */
.hps-btn:hover { transform: translateY(-1px); }
.hps-btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.hps-btn--primary:hover { box-shadow: 0 6px 24px color-mix(in srgb, var(--hps-accent) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.18); }
.hps-btn:focus-visible, .hps-system__card a:focus-visible { outline: 2px solid var(--hps-accent); outline-offset: 3px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--hps-accent) 25%, transparent); }

/* System cards: lift + violet-tinted depth on hover, press feedback */
.hps-system__card { position: relative; will-change: transform; transition: transform .35s cubic-bezier(.23,1,.32,1), border-color .3s var(--hps-ease), background .3s var(--hps-ease); }
.hps-system__card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 18px 48px rgba(8,4,18,.5), 0 2px 8px color-mix(in srgb, var(--hps-accent) 7%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transition: opacity .35s var(--hps-ease); }
.hps-system__card:hover { transform: translateY(-4px); }
.hps-system__card:hover::after { opacity: 1; }
.hps-system__card:active { transform: translateY(-1px) scale(.995); }
.hps-system__title { letter-spacing: -.02em; }
.hps-system__desc { font-size: .98rem; line-height: 1.66; max-width: 38ch; }
.hps-system__tag { font-family: var(--hps-mono); }

/* Pillars: subtle lift (no stock photos, type-forward) */
.hps-pillar:hover { transform: translateY(-3px); }

/* Proof: more presence, calmer label, uniform logos */
.hps-proof__label { letter-spacing: .18em; font-size: .74rem; }
.hps-proof__logos img { height: 2rem; width: auto; opacity: .62; transition: opacity .3s var(--hps-ease); }
.hps-proof__marquee:hover .hps-proof__logos img { opacity: .85; }
.hps-proof__quote { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.5; letter-spacing: -.01em; }
.hps-proof__quote cite { letter-spacing: .04em; }

/* Deliberate vertical rhythm: each chapter breathes differently */
.hps-proof { padding-top: clamp(7rem, 10vw, 9rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hps-system.hps-section { padding-top: clamp(6rem, 11vw, 10rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.hps-manifesto.hps-section { padding-top: clamp(7rem, 12vw, 11rem); padding-bottom: clamp(5rem, 9vw, 8rem); }
.hps-venture.hps-section { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(7rem, 12vw, 11rem); }

/* Typography: light-on-dark breathing room + measures */
.hps-lede { line-height: 1.72; max-width: 56ch; }
.hps-pillar__desc, .hps-feature__desc { line-height: 1.66; }
.hps-stats__num { font-variant-numeric: tabular-nums; }

/* Vision: keep the accent phrase on its own unbroken beat */
.hps-vision__accent { white-space: nowrap; }
@media (max-width: 480px){ .hps-vision__accent { white-space: normal; } }

/* Page-wide film grain: fixed, GPU-cheap, gives the dark surface a physical body */
.hps-grain { position: fixed; inset: 0; z-index: 75; pointer-events: none; opacity: .035;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;  }
@media (prefers-reduced-motion: reduce){ .hps-grain { display: none; } }

/* ── FIXES: shine survives char-split + orb canvases fade out before section edges ── */

/* The manual char-split wraps each character in its own span; background-clip:text
   on the parent doesn't paint through them, so the shine word went invisible.
   Re-apply the holographic clip per character. */
.hps-display .hps-display-shine .hps-char {
  background: var(--hps-holo);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.05);
}

/* The orb canvas paints a subtly tinted background and ended exactly at the
   section boundary, exposing a visible rectangle/cut. Fade the canvas out
   well before the edges so the glow melts into the page background. */
/* masks removed: the orb shader is now fully transparent outside the ring
   (uv-scale patch in the vendored bundle), so the canvas can never show a cut */

/* ── REFINEMENTS 2026-06 (Angel review): pillars flattened, bigger hero orb, rhythm ── */

/* Pillars: photo-era chrome removed → one flat surface, badge in flow */
.hps-pillar__media { aspect-ratio: auto; min-height: 0; background: none;
  display: flex; align-items: flex-start; padding: 1.25rem 1.25rem 0; }
.hps-pillar__media::after { display: none; }
.hps-pillar__num { position: static; top: auto; left: auto; backdrop-filter: none; background: rgba(255,255,255,.04); }
.hps-pillar__body { gap: .65rem; padding-top: 1rem; }


/* Rhythm: tighter kicker→title, more air before blocks that follow text */
.hps-vision__inner { gap: var(--hps-space-3); }
.hps-vision__statement { margin-top: var(--hps-space-2); }
.hps-system__tag { margin-bottom: -.2rem; }
.hps-system__card .hps-btn { margin-top: 1rem; }
.hps-manifesto .hps-stats { margin-top: clamp(2.75rem, 5vw, 4.5rem); }
.hps-manifesto__copy { padding-bottom: .5rem; }
.hps-venture__head { gap: var(--hps-space-2); }
.hps-venture__head .hps-tagline { margin-top: .25rem; }
.hps-pillars { margin-top: clamp(2.75rem, 5vw, 4.5rem); }

/* One continuous canvas. Webflow's base sheet paints body #fff; this sheet
   loads last, so every hps page gets the dark canvas regardless of section
   coverage or cached HTML. Sections stay transparent: seams are impossible. */
html, body, body.body { background-color: #050505; }

/* El lienzo es el BODY, no el wrapper. .hps y .hps-hero pintando su propio
   #050505 OPACO los hacia pintar ENCIMA del sangrado de los orbes: ese es el
   corte recto de hero -> 001 y de 006 -> footer. Mismo color, borde duro: el
   comentario de .hps-hero ya decia que se puso overflow visible para no
   rebanar el glow, y el fondo opaco lo rebanaba igual un par de lineas mas
   abajo. Transparentarlos es lo que hace que el lienzo sea de verdad continuo. */
.hps,
.hps-hero { background: transparent; }

/* El aro mide min(128vh,100vw), mas ancho que la caja de contenido en cuanto
   hay barra de scroll. Clip en X deja Y en visible: el glow sigue sangrando
   por la costura, que es justo lo que el patron hero+nav exige. */
.hps-hero,
.hps-vision { overflow-x: clip; overflow-y: visible; }

/* Footer stays on the same canvas as the page. Opaque #050505 / #000 on
   .rg-footer-top was slicing the vision orb (and a sliver of the section
   above) with a hard rectangle. Keep the form card; let the glow through. */
.hps { overflow-x: clip; overflow-y: visible; }
.rg-footer,
.rg-footer-main,
.rg-footer-top {
  background-color: transparent;
  background-image: none;
}
.rg-footer { overflow: visible; }
.rg-footer-bg-video { display: none !important; }

/* ── MOBILE PASS (Angel review r9): the ring must WRAP the content like on
   desktop, never slice through it. Containers go wider than the viewport
   (the shader is alpha-0 well before its edges, so the oversize canvas dies
   naturally ~at the screen edge); overflow-x:clip prevents sideways scroll
   without clipping the vertical glow. ── */
@media (max-width: 640px) {
  .hps-hero { overflow-x: clip; overflow-y: visible; min-height: 88vh; padding-top: 3.5rem; }
  /* auto-margins can't center a child WIDER than its parent (they resolve to 0),
     so use the classic negative-margin centering — transform stays free for the
     intro animation */
  .hps-hero__inner { gap: 1.1rem; padding: 0 1.25rem; }
  .hps-hero__sub {
    max-width: 32ch;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .86);
    text-shadow: 0 1px 3px var(--hps-bg);
  }
  .hps-hero .hps-ctas { flex-direction: column; width: 100%; align-items: stretch; }
  .hps-hero .hps-btn { justify-content: center; }

  .hps-vision { overflow-x: clip; overflow-y: visible; }
  .hps-vision__orb { inset: auto; left: 50%; top: 50%; margin: -59vw 0 0 -59vw; width: 118vw; height: 118vw; }
  .hps-vision__statement { font-size: clamp(2rem, 9vw, 2.6rem); }

  .hps-proof { padding-top: clamp(5rem, 14vw, 7rem); }
  .hps-proof__logos { gap: 2.75rem; padding-right: 2.75rem; }
  .hps-proof__logos img { height: 1.5rem; }
  .hps-proof__quote { font-size: 1.18rem; }

  .hps-system__card { padding: 1.6rem 1.4rem; }
  .hps-pillar__body { padding: 0 1.25rem 1.4rem; }
}

/* proof strip → case studies door (cases-align) */
.hps-proof__cases {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.75rem;
  font-family: var(--rg-font-mono); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #b06bff; text-decoration: none;
  transition: color .25s ease;
}
.hps-proof__cases span { transition: transform .25s ease; }
.hps-proof__cases:hover { color: #c9aaff; }
.hps-proof__cases:hover span { transform: translateX(3px); }
.hps-proof__cases:focus-visible { outline: 2px solid #b06bff; outline-offset: 4px; border-radius: 2px; }

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

/* ═══ 3.1 [M] Hero: padding SIMETRICO, no padding-top.
   El orbe usa top:50% y los porcentajes de un absoluto se resuelven contra
   el PADDING box, o sea el centro real de la caja: con padding-top a secas
   el aro se centra y la copy cae 28px por debajo. Simetrico ademas conserva
   el colchon cuando el contenido desborda (telefono en horizontal).
   Se mantiene vh, NO dvh: con dvh la seccion se redimensiona al colapsar la
   barra de URL y arrastra todo lo de abajo a mitad de scroll.
   Este bloque tambien neutraliza el min-height: 86vh muerto de la linea 1636. ═══ */
@media (max-width: 640px) {
  .hps-hero {
    min-height: 88vh;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* ── Escala tipografica. Cada max esta anclado al valor que devuelve el
     clamp base a 640px, asi que no hay escalon al cruzar el breakpoint
     (costura medida <= 0,06px). El line-height es la otra mitad del
     problema: 1.02 con tres lineas de 40px no deja aire. ── */
  .hps-display     { font-size: clamp(1.75rem, 1.10rem + 5.20vw, 2.60rem); }
  .hps-hero__title { font-size: clamp(1.75rem, 1.10rem + 5.20vw, 2.60rem); }
  .hps-display,
  .hps-hero__title { line-height: 1.06; }
  .hps-contact__col-title { font-size: clamp(1.25rem, 0.74rem + 3.50vw, 1.75rem); }

  /* ── Las CTAs se apilan en TODAS las instancias, no solo en el hero.
     Con .hps-btn { padding: .95rem 1.6rem } dos pildoras envueltas en 360px
     dejan cada boton en ~150px con una segunda fila ragged. ── */
  .hps-ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
}

/* ═══ 3.2 [M] Entrada del hero en tactil: sin blur y sin escalonado.
   El h1 es el elemento LCP y nace con opacity 0 y filter: blur(6px) con
   animation-delay .10s. El blur obliga a re-rasterizar el texto en cada
   frame justo cuando la GPU compila los shaders del veil y del orbe.
   En escritorio el desenfoque se queda: alli la home es un cine.
   Este bloque va DESPUES del @media (prefers-reduced-motion) de la linea
   1635 por estar al final del archivo, asi que el movimiento reducido
   sigue ganando. ═══ */
@keyframes hpsHeroInFlat {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}
@media (pointer: coarse) {
  .hps-hero__inner > * { animation: hpsHeroInFlat .5s cubic-bezier(.16,1,.3,1) both; }
  .hps-hero__inner > *:nth-child(1) { animation-delay: 0s; }
  .hps-hero__inner > *:nth-child(2) { animation-delay: .08s; }
  .hps-hero__inner > *:nth-child(3) { animation-delay: .16s; }
}

/* ═══ 3.3 [D] /contact: los dos correos son la conversion principal y son
   destinos de 24,8px con 9,6px de separacion, uno encima del otro.
   El selector va acotado a .hps-contact__info-stack porque
   .hps-contact__info-value-link se reutiliza 7 veces en legal.html con
   style="display:inline-block" en linea: un min-height suelto dejaria alli
   cajas de 44px con el texto pegado arriba. ═══ */
.hps-contact__info-stack .hps-contact__info-value-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline: -.6rem;      /* margin-inline, no el atajo margin: no pisa margin-top */
  padding-inline: .6rem;
  border-radius: 10px;
}
.hps-contact__info-stack .hps-contact__info-value-link:active { background: rgba(255,255,255,.06); }
.hps-contact__info-stack .hps-contact__info-value-link + .hps-contact__info-value-link { margin-top: .25rem; }

/* ═══ 3.4 [D] Pildoras sociales de /contact: 37x37 la de "X", con dos
   vecinos a 8px. El .hps-contact__info-cta de la MISMA tarjeta ya mide
   44,8px: las sociales eran la excepcion dentro de su propio bloque. ═══ */
.hps-contact__info-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.hps-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;         /* salva la pildora de una sola letra */
  padding: .5rem 1.1rem;
}

/* ═══ 3.5 [D] Contador 0/5000 pintado encima del ultimo renglon.
   La caja del contador hereda una line box de 20px y ocupa de 10,4 a 30,4px
   sobre el borde inferior, mientras el textarea solo reserva 13,6px de
   padding. line-height 1 baja su caja a 10,9px y 2.25rem de padding la
   despeja; el min-height devuelve el area de escritura que se pierde. ═══ */
.hps-contact__textarea { min-height: 160px; padding-bottom: 2.25rem; }
.hps-contact__counter { line-height: 1; }

/* ═══ 3.6 [D] Estado invalido del formulario de contacto (lo pinta el JS
   del punto 14 con aria-invalid). Va aqui, al final, porque empata en
   especificidad (0-2-0) con .hps-contact__input:focus y decide el orden. ═══ */
.hps-contact__input[aria-invalid="true"] {
  border-color: rgba(255,107,107,.75);
  background: rgba(255,107,107,.06);
}
.hps-contact__input[aria-invalid="true"]:focus {
  border-color: #ff6b6b;
  background: rgba(255,107,107,.09);
}

/* ═══ 3.7 [M] Indice de /privacy-policy y /terms-of-use: a <=900px deja de
   ser barra lateral y pasa a ser el PRIMER bloque del documento, con 16 y
   19 enlaces de 34,4px separados 2,4px.
   Padding simetrico y no min-height: la caja de linea es 13.6 x 1.35 =
   18,36px, mas 12.8 x 2 de padding = 44px exactos, y asi se conserva el
   align-items: baseline (el "01" sigue sobre la primera linea cuando el
   titulo se parte en dos). padding-left se queda en 1rem para que
   .is-active pueda seguir desplazandolo a 1.15rem. ═══ */
@media (max-width: 900px), (hover: none) {
  .hps-legal__toc-list { gap: .25rem; }
  .hps-legal__toc-list a { padding: .8rem .8rem .8rem 1rem; }
}
.hps-legal__toc-list a:active { color: var(--hps-fg-70); background: rgba(255,255,255,.05); }
.hps-legal__toc-list a:active::before { transform: translateY(-50%) scale(1); }

/* ═══ 3.8 [D] Enlace a casos de estudio de la franja de prueba: 210x18,7px
   medidos, sin padding. El objetivo tactil es la CAJA, no los glifos, y el
   rotulo no se mueve ni un pixel (los 1.75rem de margen se reparten en
   .95rem de margen y .8rem de padding).
   Ojo: se redeclara :focus-visible porque el de la linea 2189 tenia
   border-radius 2px y aplastaba la pastilla al enfocar con teclado. ═══ */
.hps-proof__cases {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: .95rem;
  padding: .8rem .75rem;      /* .75rem y no 1rem: el rotulo ES cabe en 320px */
  border-radius: 100vw;
  -webkit-tap-highlight-color: transparent;
}
.hps-proof__cases:active { background: rgba(176, 107, 255, .12); }
.hps-proof__cases:focus-visible { outline: 2px solid #b06bff; outline-offset: 4px; border-radius: 100vw; }

/* ═══ 3.9 [M] Boton de envio de /contact a ancho completo. ═══ */
@media (max-width: 640px) {
  .hps-contact__submit { width: 100%; }
}


