/* EXIMIA — Homepage (v3 "Higgsfield" redesign)
   Mobile-first. Loaded only by index.html, after styles.css.
   Every class is prefixed .hx- so nothing here leaks into the shared design system. */

.hx-home {
  /* Palantir monochrome: this page overrides the site's violet accent tokens
     with white; .hx-light sections flip to black. */
  --hx-ink: 0, 0, 0;
  --hx-paper: 255, 255, 255;
  --accent: rgb(var(--hx-paper));
  --accent-light: rgb(var(--hx-paper));
  --accent-dim: rgba(var(--hx-paper), 0.83);
  --accent-rgb: var(--hx-paper);
  --accent-2: rgb(var(--hx-paper));
  --hx-gutter: clamp(1.25rem, 5vw, 2rem);
  --hx-max: 1240px;
  --hx-radius: 0;
  --hx-radius-sm: 0;
  --hx-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hx-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hx-line: rgba(var(--hx-paper), 0.08);
  --hx-line-strong: rgba(var(--hx-paper), 0.16);
  --hx-glass: rgba(var(--hx-paper), 0.035);
  --hx-section-y: clamp(4.5rem, 12vw, 9rem);
  --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.hx-main {
  font-family: var(--hx-body);
  overflow-x: clip;
  background: var(--bg-primary);
}

.hx-wrap {
  width: 100%;
  max-width: var(--hx-max);
  margin: 0 auto;
  padding-inline: var(--hx-gutter);
}

.hx-section {
  position: relative;
  padding-block: var(--hx-section-y);
}

/* ── Type ─────────────────────────────────────────────── */
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--hx-paper), 0.62);
}

.hx-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.hx-h2 {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 8.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin-top: 1rem;
  text-wrap: balance;
}

.hx-lead {
  margin-top: 1.1rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* two-tone headlines: the second clause steps back to grey */
.hx-grad {
  color: rgba(var(--hx-paper), 0.42);
}

.hx-head {
  margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
}

.hx-head--center {
  text-align: center;
}

.hx-head--center .hx-lead {
  margin-inline: auto;
}

/* ── Buttons ──────────────────────────────────────────── */
.hx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.5rem 1.35rem;
  border-radius: 0;
  font-family: var(--hx-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--hx-ease), background-color 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.35s;
}

.hx-btn:active {
  transform: scale(0.97);
}

.hx-btn:focus-visible,
.hx-link:focus-visible,
.hx-card:focus-visible,
.hx-chip:focus-visible,
.hx-faq summary:focus-visible,
.hx-toggle button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.hx-btn__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 0.45s var(--hx-ease);
}

.hx-btn__icon svg {
  width: 18px;
  height: 18px;
}

.hx-btn:hover .hx-btn__icon {
  transform: translateX(4px);
}

.hx-btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.hx-btn--primary:hover {
  background: rgba(var(--hx-paper), 0.84);
}

.hx-btn--glass {
  background: rgba(var(--hx-ink), 0.25);
  color: var(--text-primary);
  border-color: rgba(var(--hx-paper), 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hx-btn--glass:hover {
  background: rgba(var(--hx-paper), 0.08);
  border-color: var(--text-primary);
}

.hx-btn--plain {
  padding-right: 1.5rem;
}

.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--hx-paper), 0.35);
  text-underline-offset: 5px;
  transition: color 0.3s;
}

.hx-link:hover {
  color: var(--text-primary);
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

/* legibility: dark water at the bottom on mobile */

.hx-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-primary);
  flex: 0 0 7px;
}

.hx-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--text-primary);
  animation: hx-ping 2.2s var(--hx-ease) infinite;
}

@keyframes hx-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* word masks (hero H1 + section headlines split by home.js) */
.hx-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hx-word > span {
  display: inline-block;
}

@keyframes hx-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* JS-driven entrance: hidden only when JS + motion are available */

/* ═══════════════════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════════════════ */
.hx-ticker {
  position: relative;
  border-block: 1px solid var(--hx-line);
  background: var(--bg-primary);
  overflow: hidden;
  padding-block: 1rem;
}

.hx-ticker__track {
  display: flex;
  width: max-content;
  animation: hx-marquee 42s linear infinite;
}

.hx-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hx-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2.6vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-primary);
}

.hx-ticker__item::after {
  content: "/";
  color: rgba(var(--hx-paper), 0.35);
}

@keyframes hx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   MANIFESTO
   ═══════════════════════════════════════════════════════ */
.hx-manifesto {
  padding-block: clamp(5rem, 14vw, 10rem);
}

.hx-manifesto__text {
  margin-top: 1.4rem;
  font-family: var(--hx-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 6.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: rgba(var(--hx-paper), 0.5);
  text-wrap: balance;
}

.hx-manifesto__text .hx-w {
  transition: opacity 0.2s linear;
}

.hx-js:not(.hx-reduced) .hx-manifesto__text .hx-w {
  opacity: 0.16;
}

.hx-manifesto__text em {
  font-style: normal;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   PLATFORM — bento (mobile: swipe carousel)
   ═══════════════════════════════════════════════════════ */
.hx-platform {
  padding-top: calc(var(--hx-section-y) * 0.5);
}

.hx-bento {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(var(--hx-gutter) * -1);
  padding-inline: var(--hx-gutter);
  scroll-padding-inline: var(--hx-gutter);
  padding-bottom: 4px;
}

.hx-bento::-webkit-scrollbar {
  display: none;
}

.hx-card {
  position: relative;
  flex: 0 0 min(84%, 360px);
  scroll-snap-align: start;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--hx-radius);
  border: 1px solid var(--hx-line);
  background: var(--bg-secondary);
  overflow: hidden;
  isolation: isolate;
  color: var(--text-primary);
  transition: border-color 0.4s;
  -webkit-tap-highlight-color: transparent;
}

.hx-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hx-card__media img,
.hx-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 1.1s var(--hx-ease);
}

.hx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--hx-ink), 0) 30%, rgba(var(--hx-ink), 0.72) 62%, rgba(var(--hx-ink), 0.96) 100%);
}

/* pointer spotlight (desktop) */
.hx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hx-paper), 0.08), transparent 60%);
  transition: opacity 0.4s;
}

.hx-card__body {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.4rem 1.5rem;
}

.hx-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--hx-paper), 0.7);
}

.hx-card__title {
  margin-top: 0.45rem;
  font-family: var(--hx-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hx-card__desc {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hx-card__tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hx-card__tags span {
  padding: 0.28rem 0.6rem;
  border-radius: 0;
  border: 1px solid var(--hx-line-strong);
  background: rgba(var(--hx-ink), 0.35);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.hx-card__go {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--hx-line-strong);
  background: rgba(var(--hx-ink), 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.4s, transform 0.5s var(--hx-ease), border-color 0.4s;
}

.hx-card__go svg {
  width: 16px;
  height: 16px;
}

.hx-card:hover .hx-card__go {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: rotate(-45deg);
}

.hx-card:hover {
  border-color: rgba(var(--hx-paper), 0.4);
}

.hx-card:hover .hx-card__media img {
  transform: scale(1.06);
}

/* CTA card (no image) */
.hx-card--cta {
  justify-content: space-between;
  background: var(--bg-primary);
}

.hx-card--cta::before {
  display: none;
}

.hx-card--cta .hx-card__body {
  padding-top: 5rem;
}

.hx-card--cta .hx-card__title {
  font-size: 2rem;
}

.hx-card--cta .hx-btn {
  margin-top: 1.4rem;
}

.hx-swipe {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.hx-swipe__bar {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--hx-line-strong);
  overflow: hidden;
}

.hx-swipe__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  border-radius: 2px;
  background: var(--text-primary);
  transform-origin: left;
  transition: transform 0.15s linear;
}

.hx-swipe__hint {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   VOICE AI spotlight
   ═══════════════════════════════════════════════════════ */
.hx-voice {
  overflow: hidden;
}

.hx-voice__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hx-voice__visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  border: 1px solid var(--hx-line);
  overflow: hidden;
  background: var(--bg-secondary);
  isolation: isolate;
}

.hx-voice__visual video,
.hx-voice__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hx-voice__hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hx-voice__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0;
  background: rgba(var(--hx-ink), 0.55);
  border: 1px solid var(--hx-line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.hx-voice__live .hx-pulse {
  background: var(--text-primary);
}

.hx-voice__chat {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hx-bubble {
  max-width: 86%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hx-bubble b {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hx-bubble--client {
  align-self: flex-start;
  background: rgba(var(--hx-ink), 0.6);
  border: 1px solid var(--hx-line-strong);
  border-bottom-left-radius: 6px;
  color: var(--text-secondary);
}

.hx-bubble--ai {
  align-self: flex-end;
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  border-bottom-right-radius: 6px;
  color: var(--bg-primary);
}

.hx-voice__note {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: right;
}

.hx-checks {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.hx-checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hx-checks li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(var(--hx-paper), 0.4);
  border-radius: 0;
}

.hx-voice .hx-actions {
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════ */
.hx-process__list {
  position: relative;
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: none;
}

.hx-process__rail {
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--hx-line-strong);
  overflow: hidden;
}

.hx-process__rail i {
  position: absolute;
  inset: 0;
  background: var(--text-primary);
  transform-origin: top;
  transform: scaleY(0);
}

.hx-reduced .hx-process__rail i,
html:not(.hx-js) .hx-process__rail i {
  transform: none;
}

.hx-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.hx-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: 1px solid var(--text-primary);
  background: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 0 0 6px var(--bg-primary);
}

.hx-step__card {
  padding: 1.25rem 1.3rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--hx-line);
  background: var(--hx-glass);
}

.hx-step__title {
  font-family: var(--hx-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hx-step__desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hx-process__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   JOURNEY — "Entra al núcleo" (scroll-scrubbed flight)
   Base = static fallback (no JS / reduced motion / data saver).
   .hx-journey--live (added by home.js) = pinned canvas story.
   ═══════════════════════════════════════════════════════ */
.hx-journey {
  position: relative;
  isolation: isolate;
  background: var(--bg-primary);
}

.hx-journey__sticky {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--hx-section-y);
}

/* static fallback art — only requested when the live flight can't run
   (no JS, reduced motion, GSAP failed → .hx-reduced, or home.js skipped it →
   .hx-journey--static: data saver, slow link, no overflow:clip) */
html:not(.hx-js) .hx-journey__sticky,
html.hx-reduced .hx-journey__sticky,
.hx-journey--static .hx-journey__sticky {
  background: var(--bg-primary) url("/media/home/journey-fiber-m-720.webp") center / cover no-repeat;
}

@media (min-width: 768px) {
  html:not(.hx-js) .hx-journey__sticky,
  html.hx-reduced .hx-journey__sticky,
  .hx-journey--static .hx-journey__sticky {
    background-image: url("/media/home/journey-fiber-960.webp");
    background-image: image-set(url("/media/home/journey-fiber-960.webp") 1x, url("/media/home/journey-fiber-1600.webp") 2x);
  }
}

.hx-journey__poster,
.hx-journey__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-journey__canvas {
  display: none;
}

.hx-journey__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--hx-ink), 0.35) 20%, rgba(var(--hx-ink), 0.55) 70%, var(--bg-primary) 100%);
}

.hx-journey__hud {
  display: none;
}

.hx-journey__chapters {
  display: grid;
  gap: 0.75rem;
}

.hx-chapter--intro {
  margin-bottom: 1.25rem;
}

.hx-chapter:not(.hx-chapter--intro):not(.hx-chapter--outro) {
  padding: 1.3rem 1.25rem;
  border-radius: var(--hx-radius-sm);
  border: 1px solid var(--hx-line);
  background: rgba(var(--hx-ink), 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hx-chapter__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hx-chapter__title {
  margin-top: 0.55rem;
  font-family: var(--hx-display);
  font-size: clamp(1.7rem, 6.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hx-chapter__desc {
  margin-top: 0.6rem;
  max-width: 30rem;
  font-size: clamp(0.98rem, 2.8vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hx-chapter--outro {
  margin-top: 1.5rem;
}

.hx-chapter--outro .hx-h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hx-chapter__cue {
  display: none;
}

/* ── live mode ── */
.hx-journey--live {
  height: 480vh;
}

.hx-journey--live .hx-journey__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
}

.hx-journey--live .hx-journey__canvas {
  display: block;
}

.hx-journey--live .hx-journey__poster {
  transition: opacity 0.6s;
}

.hx-journey--live.is-ready .hx-journey__poster {
  opacity: 0;
}

.hx-journey--live .hx-journey__shade {
  background:
    linear-gradient(180deg, rgba(var(--hx-ink), 0.55) 0%, rgba(var(--hx-ink), 0) 22%, rgba(var(--hx-ink), 0) 34%, rgba(var(--hx-ink), 0.86) 60%, rgba(var(--hx-ink), 0.97) 100%),
    linear-gradient(rgba(var(--hx-ink), 0.22), rgba(var(--hx-ink), 0.22));
}

.hx-journey--live .hx-grad {
  color: rgba(var(--hx-paper), 0.62);
}

.hx-journey--live .hx-journey__chapters {
  position: absolute;
  inset: 0;
  display: block;
}

.hx-journey--live .hx-chapter {
  position: absolute;
  left: var(--hx-gutter);
  right: var(--hx-gutter);
  bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.hx-journey--live .hx-chapter:not(.hx-chapter--intro):not(.hx-chapter--outro) {
  background: none;
  border: 0;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hx-journey--live .hx-chapter--intro {
  opacity: 1;
  pointer-events: auto;
}

.hx-journey--live .hx-chapter__title {
  font-size: clamp(2.3rem, 10.5vw, 5.2rem);
}

.hx-journey--live .hx-chapter__num {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  border: 1px solid rgba(var(--hx-paper), 0.45);
  background: rgba(var(--hx-ink), 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hx-journey--live .hx-chapter__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hx-journey--live .hx-chapter__cue i {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(var(--hx-paper), 0), rgba(var(--hx-paper), 0.75));
  transform-origin: top;
  animation: hx-cue 2.2s var(--hx-ease) infinite;
}

/* progress HUD — mobile: slim bar under the navbar */
.hx-journey--live .hx-journey__hud {
  position: absolute;
  z-index: 2;
  left: var(--hx-gutter);
  right: var(--hx-gutter);
  top: 6.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-shadow: 0 0 10px rgba(var(--hx-ink), 0.9), 0 0 2px rgba(var(--hx-ink), 0.9);
}

.hx-journey--live .hx-journey__hud {
  opacity: 0;
  transition: opacity 0.5s;
}

.hx-journey--live.hud-on .hx-journey__hud {
  opacity: 1;
}

.hx-journey__hud li {
  transition: color 0.4s;
}

.hx-journey--live .hx-journey__hud li:not(.hx-journey__bar) {
  justify-self: start;
  padding: 0.2rem 0.45rem;
  background: rgba(var(--hx-ink), 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hx-journey--live .hx-chapter {
  text-shadow: 0 2px 24px rgba(var(--hx-ink), 0.85), 0 0 2px rgba(var(--hx-ink), 0.6);
}

.hx-journey__hud li span {
  display: none;
}

.hx-journey__hud li.is-on {
  color: var(--text-primary);
}

.hx-journey__bar {
  grid-column: 1 / -1;
  order: -1;
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: var(--hx-line-strong);
  overflow: hidden;
}

.hx-journey__bar i {
  position: absolute;
  inset: 0;
  background: var(--text-primary);
  transform-origin: left;
  transform: scaleX(0);
}

/* ═══════════════════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════════════════ */
.hx-results__grid {
  display: grid;
  border-top: 1px solid var(--hx-line);
}

.hx-stat {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 1.1rem;
  align-items: center;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--hx-line);
}

.hx-stat__value {
  font-family: var(--hx-display);
  font-size: clamp(3rem, 14vw, 5.8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hx-stat__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.hx-stat__desc {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   PLANS
   ═══════════════════════════════════════════════════════ */
.hx-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 0;
  border: 1px solid var(--hx-line-strong);
  background: var(--hx-glass);
  margin-bottom: 1.5rem;
}

.hx-toggle button {
  min-height: 44px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--hx-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.hx-toggle button[aria-selected="true"] {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.hx-plan-group[hidden] {
  display: none;
}

.hx-plan-group__note {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.hx-plan-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(var(--hx-gutter) * -1);
  padding-inline: var(--hx-gutter);
  scroll-padding-inline: var(--hx-gutter);
  padding-block: 14px 4px;
}

.hx-plan-row::-webkit-scrollbar {
  display: none;
}

.hx-plan {
  position: relative;
  flex: 0 0 min(84%, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--hx-line-strong);
  background: var(--bg-secondary);
}

.hx-plan--accent {
  border-color: var(--text-primary);
  background: var(--bg-tertiary);
}

.hx-plan__badge {
  position: absolute;
  top: -12px;
  left: 1.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hx-plan__name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--hx-paper), 0.7);
}

.hx-plan__price {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--hx-display);
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hx-plan__price small {
  font-family: var(--hx-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.hx-plan__billing {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.hx-plan__desc {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.hx-plan__list {
  margin-top: 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  list-style: none;
  flex: 1;
}

.hx-plan__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.hx-plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--text-primary);
}

.hx-plan__list strong {
  color: var(--text-primary);
}

.hx-plan .hx-btn {
  margin-top: 1.4rem;
  width: 100%;
}

.hx-plans__foot {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.hx-plans__fine {
  max-width: 44rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   PUERTO RICO
   ═══════════════════════════════════════════════════════ */
.hx-pr__frame {
  position: relative;
  margin-top: 0.5rem;
  border-radius: 0;
  border: 1px solid var(--hx-line);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.hx-pr__frame img,
.hx-pr__frame picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}

.hx-pr__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--hx-ink), 0.35) 0%, transparent 30%, transparent 60%, rgba(var(--hx-ink), 0.75) 100%);
  pointer-events: none;
}

.hx-hud {
  position: absolute;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hx-hud b {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.7rem;
}

.hx-hud--tl { top: 1rem; left: 1rem; }
.hx-hud--tr { top: 1rem; right: 1rem; text-align: right; }
.hx-hud--bl { bottom: 1rem; left: 1rem; }
.hx-hud--br { bottom: 1rem; right: 1rem; text-align: right; }

.hx-hud .hx-pulse {
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: 1px;
}

.hx-pr__corners {
  position: absolute;
  inset: 0.6rem;
  z-index: 1;
  pointer-events: none;
  --c: rgba(var(--hx-paper), 0.55);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 16px no-repeat;
}

.hx-pr__stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  background: var(--hx-line);
}

.hx-pr__stat {
  padding: 1.1rem 1rem;
  background: var(--bg-secondary);
}

.hx-pr__stat b {
  display: block;
  font-family: var(--hx-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hx-pr__stat span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   INDUSTRIES
   ═══════════════════════════════════════════════════════ */
.hx-industries {
  padding-top: calc(var(--hx-section-y) * 0.4);
}

.hx-marquee {
  display: grid;
  gap: 0.7rem;
  overflow: hidden;
  /* room for the chips' focus ring (2px outline + 3px offset) inside the clip */
  padding-block: 6px;
  margin-block: -6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--bg-primary) 8%, var(--bg-primary) 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--bg-primary) 8%, var(--bg-primary) 92%, transparent);
}

.hx-marquee__row {
  display: flex;
  width: max-content;
  animation: hx-marquee 60s linear infinite;
}

.hx-marquee__row--rev {
  animation-direction: reverse;
  animation-duration: 70s;
}

.hx-marquee:hover .hx-marquee__row,
.hx-marquee:focus-within .hx-marquee__row {
  animation-play-state: paused;
}

.hx-marquee__set {
  display: flex;
  gap: 0.7rem;
  padding-right: 0.7rem;
  flex-shrink: 0;
}

.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 0;
  border: 1px solid var(--hx-line-strong);
  background: var(--hx-glass);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-primary);
  transition: border-color 0.3s, background-color 0.3s;
}

.hx-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--text-primary);
}

.hx-chip:hover {
  border-color: var(--text-primary);
  background: rgba(var(--hx-paper), 0.06);
}

.hx-industries__more {
  margin-top: 1.75rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */
.hx-faq__grid {
  display: grid;
  gap: 2rem;
}

.hx-faq__list {
  border-top: 1px solid var(--hx-line);
}

.hx-faq details {
  border-bottom: 1px solid var(--hx-line);
}

.hx-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
}

.hx-faq summary::-webkit-details-marker {
  display: none;
}

.hx-faq summary::after {
  content: "";
  flex: 0 0 32px;
  height: 32px;
  border-radius: 0;
  border: 1px solid var(--hx-line-strong);
  background:
    linear-gradient(var(--text-primary), var(--text-primary)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--text-primary), var(--text-primary)) center / 1.5px 11px no-repeat;
  transition: transform 0.4s var(--hx-ease), background-color 0.3s, border-color 0.3s;
}

.hx-faq details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--text-primary);
}

.hx-faq details p {
  padding: 0 2.5rem 1.4rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════ */
.hx-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

/* mobile: the doorway is a cinematic band above the copy */
.hx-final__bg {
  position: relative;
  height: min(78vw, 460px);
  z-index: -1;
}

.hx-final__bg img,
.hx-final__bg picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hx-final__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--hx-ink), 0) 22%, rgba(var(--hx-ink), 0) 58%, var(--bg-primary) 100%);
}

.hx-final__inner {
  position: relative;
  margin-top: -2.5rem;
  text-align: center;
}

.hx-final .hx-h2 {
  font-size: clamp(2.4rem, 9.6vw, 5.4rem);
}

.hx-final .hx-lead {
  margin-inline: auto;
}

.hx-final .hx-actions {
  margin-top: 2rem;
  justify-content: center;
}

.hx-final .hx-actions .hx-btn {
  flex: 1 1 100%;
}

/* ── Reveal helper (set by home.js) ── */
.hx-js:not(.hx-reduced) [data-hx-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* ═══════════════════════════════════════════════════════
   ≥ 560px
   ═══════════════════════════════════════════════════════ */
@media (min-width: 560px) {

  .hx-final .hx-actions .hx-btn {
    flex: 0 0 auto;
  }

  .hx-pr__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════
   ≥ 768px — tablet
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hx-eyebrow {
    font-size: 0.75rem;
  }

  .hx-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: 16px;
  }

  .hx-card {
    min-height: 440px;
  }

  .hx-swipe {
    display: none;
  }

  .hx-voice__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .hx-process__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .hx-process__rail {
    left: 28px;
    right: 28px;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .hx-process__rail i {
    background: var(--text-primary);
    transform-origin: left;
    transform: scaleX(0);
  }

  .hx-reduced .hx-process__rail i,
  html:not(.hx-js) .hx-process__rail i {
    transform: none;
  }

  .hx-step {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hx-step__card {
    padding: 1.5rem;
  }

  .hx-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
    gap: 1rem;
  }

  .hx-stat__value {
    font-size: clamp(3rem, 7.5vw, 5.8rem);
  }

  .hx-stat {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-radius);
    background: var(--hx-glass);
  }

  .hx-plan-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: 16px;
  }

  .hx-plan-row--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
  }

  .hx-plan {
    padding: 2rem 1.6rem 1.6rem;
  }

  .hx-pr__frame {
    aspect-ratio: 16 / 8;
  }

  .hx-hud {
    font-size: 0.66rem;
  }

  .hx-hud b {
    font-size: 0.8rem;
  }

  .hx-hud--tl { top: 1.5rem; left: 1.5rem; }
  .hx-hud--tr { top: 1.5rem; right: 1.5rem; }
  .hx-hud--bl { bottom: 1.5rem; left: 1.5rem; }
  .hx-hud--br { bottom: 1.5rem; right: 1.5rem; }

  .hx-pr__stats {
    margin-top: -1px;
  }

  .hx-faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }

  .hx-faq__intro {
    position: sticky;
    top: 8rem;
  }

  .hx-faq summary {
    font-size: 1.1rem;
  }
}

/* ═══════════════════════════════════════════════════════
   ≥ 1080px — desktop bento
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1080px) {
  .hx-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
  }

  .hx-card {
    min-height: 0;
  }

  .hx-card--xl {
    grid-column: span 2;
    grid-row: span 2;
  }

  .hx-card--tall {
    grid-row: span 2;
  }

  .hx-card--wide {
    grid-column: span 2;
  }

  .hx-card--xl .hx-card__title {
    font-size: 2.8rem;
  }

  .hx-card--xl .hx-card__desc {
    font-size: 1.02rem;
    max-width: 32rem;
  }

  .hx-card--xl .hx-card__body {
    padding: 2rem;
  }

  .hx-card--wide .hx-card__media img {
    object-position: 50% 50%;
  }

  .hx-card--wide .hx-card__body {
    max-width: 60%;
  }

  .hx-card--wide::before {
    background: linear-gradient(90deg, rgba(var(--hx-ink), 0.94) 0%, rgba(var(--hx-ink), 0.6) 45%, rgba(var(--hx-ink), 0) 75%);
  }

  .hx-card--wide .hx-card__media {
    left: 30%;
  }

  .hx-card--cta .hx-card__body {
    padding-top: 1.5rem;
  }

  .hx-final {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 8rem;
  }

  .hx-final__bg {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .hx-final__bg img {
    transform: scale(1.3) translateX(15%);
  }

  .hx-final__bg::after {
    background:
      linear-gradient(90deg, var(--bg-primary) 0%, rgba(var(--hx-ink), 0.82) 34%, rgba(var(--hx-ink), 0.1) 62%, rgba(var(--hx-ink), 0) 100%),
      linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--hx-ink), 0) 18%, rgba(var(--hx-ink), 0) 80%, var(--bg-primary) 100%);
  }

  .hx-final__inner {
    margin-top: 0;
    text-align: left;
  }

  .hx-final__inner > * {
    max-width: 38rem;
  }

  .hx-final .hx-lead {
    margin-inline: 0;
  }

  .hx-final .hx-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 1080px) and (hover: hover) and (pointer: fine) {
  .hx-card:hover::after {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   Reduced motion — stop ambient loops (JS gates GSAP separately)
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hx-ticker__track,
  .hx-marquee__row,
  .hx-pulse::after {
    animation: none !important;
  }

  .hx-ticker__track,
  .hx-marquee__row {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.7rem;
  }

  .hx-ticker__group[aria-hidden="true"],
  .hx-marquee__set[aria-hidden="true"] {
    display: none;
  }

  .hx-marquee__set {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--hx-gutter);
  }

  .hx-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ── Small additions ── */
.hx-final__alt {
  margin-top: 1rem;
}

html:not(.hx-js) .hx-toggle {
  display: none;
}

/* Responsive visibility helpers */
.hx-br-d {
  display: none;
}

@media (min-width: 768px) {
  .hx-br-d {
    display: inline;
  }
}

.hx-only-d {
  display: none !important;
}

@media (min-width: 560px) {
  .hx-only-d {
    display: inline-flex !important;
  }

  .hx-only-m {
    display: none !important;
  }
}

/* Lenis (desktop smooth scroll) — required base styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth,
html.hx-js:not(.hx-reduced) {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Journey — desktop layout */
@media (min-width: 768px) {
  .hx-journey--live {
    height: 560vh;
  }

  .hx-journey__chapters {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hx-chapter--intro,
  .hx-chapter--outro {
    grid-column: 1 / -1;
  }

  /* full-height column, content centred with flex (GSAP owns the transform) */
  .hx-journey--live .hx-chapter {
    right: auto;
    top: 4.5rem;
    bottom: 0;
    width: min(40rem, 52vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .hx-journey--live .hx-journey__shade {
    background:
      linear-gradient(90deg, rgba(var(--hx-ink), 0.95) 0%, rgba(var(--hx-ink), 0.88) 34%, rgba(var(--hx-ink), 0.55) 54%, rgba(var(--hx-ink), 0) 76%),
      linear-gradient(180deg, rgba(var(--hx-ink), 0.45) 0%, rgba(var(--hx-ink), 0) 22%, rgba(var(--hx-ink), 0) 78%, rgba(var(--hx-ink), 0.6) 100%),
      linear-gradient(rgba(var(--hx-ink), 0.2), rgba(var(--hx-ink), 0.2));
  }

  .hx-journey--live .hx-journey__hud {
    left: auto;
    right: var(--hx-gutter);
    top: calc(50% + 2.25rem);
    width: 11rem;
    transform: translateY(-50%);
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.66rem;
    padding-left: 1.25rem;
  }

  .hx-journey__hud li span {
    display: inline-block;
    margin-right: 0.6rem;
    color: var(--accent-light);
  }

  .hx-journey__bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    order: 0;
  }

  .hx-journey__bar i {
    transform-origin: top;
    transform: scaleY(0);
  }
}

@media (min-width: 1280px) {
  .hx-journey--live .hx-chapter {
    left: max(var(--hx-gutter), calc((100vw - var(--hx-max)) / 2 + var(--hx-gutter)));
  }
}

/* styles.css sets overflow-x:hidden on html + body, which turns <body> into a
   scroll container and silently breaks position:sticky (the hero and journey
   pins). <html> keeps `hidden` (it propagates to the viewport, so it never
   becomes a scroll container and every engine blocks sideways panning);
   <body> gets `clip`, which clips without creating a scroll container.
   home.js only pins when CSS.supports('overflow', 'clip'). */
html.hx-js {
  overflow-x: hidden;
}

html.hx-js body.hx-home {
  overflow-x: clip;
}

/* inline links inside running copy keep the text rhythm */
.hx-lead .hx-link {
  display: inline;
  min-height: 0;
  font-size: inherit;
}

.hx-card__num {
  text-shadow: 0 1px 10px rgba(var(--hx-ink), 0.9);
}

/* ── Desktop polish (review round 1) ── */
@media (min-width: 768px) {
  .hx-h2 {
    font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  }

  .hx-final .hx-h2 {
    font-size: clamp(3rem, 5.6vw, 5rem);
  }

  .hx-journey--live .hx-chapter__title {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
  }

  .hx-step {
    grid-template-rows: auto 1fr;
    align-items: stretch;
  }

  .hx-process__rail {
    right: calc((100% - 2.5rem) / 3 - 28px);
  }

  .hx-plan-row--2 {
    max-width: none;
  }

  .hx-pr__frame {
    border-radius: 28px 28px 0 0;
  }

  .hx-pr__stats {
    border-radius: 0 0 28px 28px;
  }
}

@media (min-width: 1080px) {
  .hx-bento {
    grid-auto-rows: minmax(300px, auto);
  }

  .hx-card--cta .hx-card__title {
    font-size: 1.8rem;
  }

  .hx-card--cta .hx-btn {
    margin-top: 1.1rem;
  }

  .hx-card:not(.hx-card--xl):not(.hx-card--cta) .hx-card__desc {
    min-height: calc(3 * 1.55em);
  }

  /* small cards: lift the art above the copy and fade it out behind the text */
  .hx-card:not(.hx-card--xl):not(.hx-card--tall):not(.hx-card--wide):not(.hx-card--cta) .hx-card__media {
    inset: -8% 0 8% 0;
    -webkit-mask-image: linear-gradient(180deg, var(--bg-primary) 40%, transparent 88%);
    mask-image: linear-gradient(180deg, var(--bg-primary) 40%, transparent 88%);
  }
}

/* ═══════════════════════════════════════════════════════
   White bands (.hx-light) — Palantir black/white rhythm.
   Flipping the tokens makes every component inside adapt.
   ═══════════════════════════════════════════════════════ */
.hx-light {
  --hx-paper: 0, 0, 0;
  --hx-ink: 255, 255, 255;
  --bg-primary: rgb(var(--hx-ink));
  --bg-secondary: rgba(var(--hx-paper), 0.045);
  --bg-tertiary: rgba(var(--hx-paper), 0.08);
  --text-primary: rgb(var(--hx-paper));
  --text-secondary: rgba(var(--hx-paper), 0.7);
  --text-tertiary: rgba(var(--hx-paper), 0.56);
  --hx-line: rgba(var(--hx-paper), 0.1);
  --hx-line-strong: rgba(var(--hx-paper), 0.22);
  --hx-glass: rgba(var(--hx-paper), 0.025);
  --accent: rgb(var(--hx-paper));
  --accent-light: rgb(var(--hx-paper));
  --accent-rgb: var(--hx-paper);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.hx-light .hx-checks li::before {
  filter: invert(1);
}

/* the in-grid CTA card is an inverted white tile */
.hx-card--cta.hx-light .hx-card__desc {
  color: var(--text-secondary);
}

/* ── Shared chrome on this page: monochrome ── */
body.hx-home .skip-link {
  color: var(--bg-primary);
}

/* no pulsing rings: status dots are still, Palantir-quiet */
.hx-pulse::after {
  display: none;
}

/* ═══════════════════════════════════════════════════════
   Mobile review round (mob-1 … mob-11)
   ═══════════════════════════════════════════════════════ */

/* readable billing + plan copy (they carry the recurring-charge terms) */
.hx-plan__name { font-size: 0.875rem; }
.hx-plan__badge { font-size: 0.6875rem; }
.hx-plan__billing { font-size: 0.875rem; color: var(--text-secondary); }
.hx-plan__list li { font-size: 0.95rem; }
.hx-plan-group__note,
.hx-plans__fine { font-size: 0.875rem; color: var(--text-secondary); }

/* micro-labels and body copy floors */
.hx-voice__note {
  align-self: flex-end;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(var(--hx-ink), 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hx-bubble { font-size: 0.95rem; }
.hx-bubble b { font-size: 0.6875rem; }
.hx-pr__stat span { font-size: 0.6875rem; color: var(--text-secondary); }
.hx-swipe__hint { font-size: 0.6875rem; color: var(--text-secondary); }
.hx-card__tags span { font-size: 0.75rem; }
.hx-card__desc,
.hx-stat__desc,
.hx-process__note { font-size: 0.95rem; }
.hx-process__note { color: var(--text-secondary); }

/* the plans rows get the same swipe bar as the bento */
.hx-plan-group .hx-swipe { margin-top: 0.9rem; }

.hx-voice .hx-actions .hx-btn { flex: 1 1 100%; }

@media (max-width: 767px) {
  .hx-card--cta .hx-card__title { font-size: 1.6rem; }

/* keep the orb clear of the floating navbar */
}

@media (min-width: 560px) {
  .hx-voice .hx-actions .hx-btn { flex: 0 0 auto; }
}

@media (min-width: 768px) and (max-width: 1079px) and (orientation: landscape) and (max-height: 500px) {
  .hx-bento {
    display: flex;
    overflow-x: auto;
    margin-inline: calc(var(--hx-gutter) * -1);
    padding-inline: var(--hx-gutter);
    gap: 12px;
  }
  .hx-card { flex: 0 0 min(42%, 360px); min-height: 0; height: 300px; }
  .hx-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hx-card__tags { display: none; }
  .hx-bento + .hx-swipe,
  .hx-bento ~ .hx-swipe { display: flex; }
}

/* ═══════════════════════════════════════════════════════
   HERO — Palantir-clean: documentary montage, one headline, one button.
   .hx-hero--live (home.js) pins the stage briefly and fades it to white.
   ═══════════════════════════════════════════════════════ */
.hx-hero {
  position: relative;
  background: var(--bg-primary);
}

.hx-hero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hx-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hx-hero__media picture,
.hx-hero__media img,
.hx-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--hx-ease);
}

.hx-hero__video.is-playing {
  opacity: 1;
}

.hx-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--hx-ink), 0.6) 0%, rgba(var(--hx-ink), 0.15) 28%, rgba(var(--hx-ink), 0.25) 55%, rgba(var(--hx-ink), 0.88) 100%);
}

/* fades in over everything as the stage scrolls away → white next section */
.hx-hero__whiteout {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--text-primary);
  opacity: 0;
}

.hx-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
}

.hx-hero__title {
  max-width: 11ch;
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 14.5vw, 9.5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: var(--text-primary);
}

.hx-hero__ctas {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

/* pause/play for every looping animation on the page (WCAG 2.2.2) */
.hx-motion {
  position: absolute;
  right: var(--hx-gutter);
  bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--hx-paper), 0.35);
  background: rgba(var(--hx-ink), 0.35);
  color: var(--text-primary);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.hx-motion:hover {
  border-color: var(--text-primary);
}

.hx-motion:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

/* pause glyph: two bars; play glyph when pressed */
.hx-motion__icon {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}

.hx-motion[aria-pressed="true"] .hx-motion__icon {
  width: 0;
  height: 0;
  border-inline: 0;
  border-left: 10px solid currentColor;
  border-block: 6px solid transparent;
}

.hx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.hx-paused .hx-ticker__track,
html.hx-paused .hx-marquee__row,
html.hx-paused .hx-chapter__cue i,
html.hx-paused .hx-pulse::after {
  animation-play-state: paused !important;
}

/* entrance: pure CSS so the H1 and CTA never wait for the GSAP CDN */
@keyframes hx-rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes hx-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hx-hero .hx-word > span {
    animation: hx-rise 1.1s cubic-bezier(0.23, 1, 0.32, 1) 0.15s both;
  }

  .hx-hero .hx-word:nth-of-type(2) > span { animation-delay: 0.21s; }
  .hx-hero .hx-word:nth-of-type(3) > span { animation-delay: 0.27s; }
  .hx-hero .hx-word:nth-of-type(4) > span { animation-delay: 0.33s; }
  .hx-hero .hx-word:nth-of-type(5) > span { animation-delay: 0.39s; }

  .hx-hero [data-hx-in] {
    animation: hx-fade-up 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.55s both;
  }
}

/* live: short pin while the stage fades to white */
.hx-hero--live {
  height: 165vh;
}

.hx-hero--live .hx-hero__stage {
  position: sticky;
  top: 0;
}

@media (min-width: 768px) {
  .hx-hero__content {
    padding-bottom: max(6rem, clamp(4rem, 11vh, 8rem));
  }

  .hx-motion {
    bottom: max(6rem, clamp(4rem, 11vh, 8rem));
  }

  .hx-hero__title {
    font-size: clamp(4rem, 9.8vw, 10.5rem);
  }
}

/* short wide screens (unfolded Galaxy Z Fold 8 / iPhone Duo, small laptops):
   the stage must end at the viewport edge, or the copy and the pause button
   slide under the fold and the chat bubble */
@media (min-width: 768px) and (max-height: 640px) {
  .hx-hero__stage {
    min-height: 0;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hx-hero__stage {
    min-height: 0;
  }

  .hx-hero__content {
    padding-bottom: 2.5rem;
  }

  .hx-hero__title {
    font-size: clamp(2.2rem, 13vh, 3.2rem);
    max-width: 16ch;
  }

  .hx-hero .hx-br-d {
    display: none;
  }

  /* journey copy fits the short band under the nav pill */
  .hx-journey--live .hx-chapter {
    bottom: 1.25rem;
  }

  .hx-journey--live .hx-chapter .hx-h2,
  .hx-journey--live .hx-chapter__title {
    font-size: clamp(1.6rem, 9vh, 2.3rem);
  }

  .hx-journey--live .hx-chapter .hx-lead,
  .hx-journey--live .hx-chapter__desc {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hx-journey--live .hx-chapter__cue {
    display: none;
  }

  /* content can't rise here (it would hit the navbar): the button moves sideways,
     clear of the chat bubble, on the CTA baseline */
  .hx-motion {
    bottom: 2.5rem;
    right: calc(var(--hx-gutter) + 4.75rem);
  }
}

/* ═══════════════════════════════════════════════════════
   Review round 2 (a11y / seo / perf)
   ═══════════════════════════════════════════════════════ */

/* focused elements never hide under the fixed navbar */
html.hx-js {
  scroll-padding-top: 104px;
  scroll-padding-bottom: 96px;
}

/* no JS: the voice visual is a still (the poster is only fetched by home.js) */
html:not(.hx-js) .hx-voice__visual {
  background: var(--bg-secondary) url("/media/home/bw-voice-poster-720.webp") center / cover no-repeat;
}

html:not(.hx-js) .hx-voice__visual video {
  display: none;
}

/* long labels may wrap on the narrowest phones / with text-spacing overrides */
@media (max-width: 559px) {
  .hx-btn {
    white-space: normal;
    text-align: center;
  }
}

.hx-journey--live .hx-chapter__cue {
  color: var(--text-secondary);
}

html:not(.hx-js) .hx-journey__shade,
html.hx-reduced .hx-journey__shade,
.hx-journey--static .hx-journey__shade {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--hx-ink), 0.74) 22%, rgba(var(--hx-ink), 0.74) 78%, var(--bg-primary) 100%);
}

/* keyboard users: a marquee with a focused chip settles into a static, wrapped list */
.hx-marquee:has(.hx-chip:focus-visible) {
  -webkit-mask-image: none;
  mask-image: none;
}

.hx-marquee:has(.hx-chip:focus-visible) .hx-marquee__row {
  animation: none;
  width: auto;
  flex-wrap: wrap;
}

.hx-marquee:has(.hx-chip:focus-visible) .hx-marquee__set {
  flex: 1 1 100%;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.7rem;
  padding-inline: var(--hx-gutter);
}

.hx-marquee:has(.hx-chip:focus-visible) .hx-marquee__set[aria-hidden="true"] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hx-ticker__group,
  .hx-marquee__set {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
    padding-inline: var(--hx-gutter);
  }
}

/* nothing loops under reduced motion, so the pause control isn't needed */
html.hx-reduced .hx-motion {
  display: none;
}
