/* ═══════════════════════════════════════════════════
   SCROLLYTELLING — scroll-driven homepage narrative
   ═══════════════════════════════════════════════════ */

.hp-story {
  background: #04080f;
}

/* Scroll scenes */
.hp-scene {
  position: relative;
  --progress: 0;
}

.hp-scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero scene ── */
.hp-scene--hero {
  height: 180vh;
  margin-top: 0;
}

.hp-scene--hero .hp-hero {
  height: 100%;
  min-height: 0;
  width: 100%;
}

.hp-scene--hero .hp-hero-content {
  opacity: calc(1 - var(--progress) * 1.15);
  transform: translateY(calc(var(--progress) * -48px));
  transition: none;
}

.hp-scene--hero .hp-hero-bg {
  animation: none;
  transform: scale(calc(1.06 - var(--progress) * 0.04));
  transition: none;
}

.hp-scene--hero .hp-scroll-cue {
  opacity: calc(1 - var(--progress) * 3);
}

/* ── Story scene: catchphrases → Meridian → Iuris crossfade ── */
.hp-scene--story {
  position: relative;
  z-index: 1;
  height: 780vh;
  background: #04080f;
}

@media (min-width: 901px) {
  .hp-scene--story.is-bridge-active {
    z-index: 3;
  }
}

.hp-scene--story .hp-scene__sticky {
  background: #04080f;
}

.hp-story-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  --reveal: 0;
  --wash: 0;
  --bridge-ui: 0;
  --bridge-out: 0;
  --bridge: 0;
  --beat-fade: 1;
}

.hp-beats {
  position: relative;
  width: min(720px, 92vw);
  height: min(380px, 55vh);
  z-index: 4;
  transform: scale(calc(1 - var(--reveal, 0) * 0.035));
  opacity: var(--beat-fade, 1);
}

.hp-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}

.hp-beat__line {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  max-width: 22ch;
}

.hp-beat__line em {
  font-style: italic;
  color: #8dd8ff;
}

/* Soft vignette during handoff */
.hp-story-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 50% at 50% 50%,
    transparent 0%,
    rgba(4, 8, 15, calc(var(--reveal, 0) * 0.55)) 100%
  );
  opacity: var(--reveal, 0);
  transition: opacity 0.2s linear;
}

@media (min-width: 901px) {
  .hp-story-dim {
    opacity: calc(var(--reveal, 0) * (1 - var(--wash, 0) * 0.85));
  }
}

/* Dark wash — covers Meridian before Iuris gate appears */
.hp-story-wash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #04080f;
  opacity: var(--wash, 0);
}

/* Meridian full-screen reveal */
.hp-meridian-full {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vh, 24px);
  padding: clamp(72px, 10vh, 96px) clamp(16px, 3vw, 32px) clamp(24px, 4vh, 40px);
  pointer-events: none;
  opacity: calc(var(--reveal, 0) * (1 - var(--bridge-ui, 0)));
}

.hp-meridian-full__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(141, 216, 255, 0.75);
  margin: 0;
  opacity: calc(clamp(0, (var(--reveal, 0) - 0.35) / 0.45, 1));
  transform: translateY(calc((1 - clamp(0, (var(--reveal, 0) - 0.35) / 0.45, 1)) * 10px));
}

.hp-meridian-full__frame {
  width: min(calc(420px + var(--reveal, 0) * 52vw), 100%);
  height: min(calc(52vh + var(--reveal, 0) * 38vh), 100%);
  max-width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: calc(var(--reveal, 0) * (1 - var(--bridge-ui, 0)));
  transform: scale(calc(0.96 + var(--reveal, 0) * 0.04 - var(--wash, 0) * 0.08));
  transform-origin: center center;
  filter: blur(calc(var(--bridge-ui, 0) * 5px));
}

.hp-meridian-full__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  opacity: calc(clamp(0, (var(--reveal, 0) - 0.55) / 0.35, 1) * (1 - var(--wash, 0)));
  transform: translateY(calc((1 - clamp(0, (var(--reveal, 0) - 0.55) / 0.35, 1)) * 12px));
  pointer-events: auto;
  transition: color 0.2s ease;
}

.hp-meridian-full__cta:hover {
  color: #fff;
}

.md-portal-mock--fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: calc(20px - var(--reveal, 0) * 8px);
  border: 1px solid rgba(255, 255, 255, calc(0.08 + var(--reveal, 0) * 0.06));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, calc(0.35 + var(--reveal, 0) * 0.2)),
    0 0 0 1px rgba(141, 216, 255, calc(var(--reveal, 0) * 0.06));
}

.md-portal-mock--fullscreen .md-portal-mock__inner {
  min-height: 100%;
  height: 100%;
  padding: clamp(16px, 2vw, 28px);
}

.md-portal-mock--fullscreen .md-portal-empty__title {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.md-portal-mock--fullscreen .md-portal-empty__sub {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  max-width: 420px;
}

/* Iuris loading bridge — matches live /iuris gate, full viewport */
.hp-iuris-bridge {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  pointer-events: none;
}

.hp-iuris-bridge__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  opacity: calc(var(--bridge-ui, 0) * (1 - var(--bridge-out, 0) * 0.85));
  transform: scale(calc(0.97 + var(--bridge-ui, 0) * 0.03));
}

.hp-iuris-bridge__brand {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #00AEEF;
  text-shadow: 0 0 24px rgba(0, 174, 239, 0.35);
}

.hp-iuris-bridge__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: #00AEEF;
  border-radius: 50%;
  animation: hpBridgeSpin 0.7s linear infinite;
  opacity: calc(clamp((var(--bridge-ui, 0) - 0.15) / 0.85, 0, 1) * (1 - var(--bridge-out, 0)));
}

@keyframes hpBridgeSpin {
  to { transform: rotate(360deg); }
}

.hp-iuris-bridge__tips {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  min-height: 4.5em;
  padding: 0 clamp(24px, 4vw, 48px) clamp(40px, 8vh, 72px);
  text-align: center;
  opacity: calc(clamp((var(--bridge-ui, 0) - 0.4) / 0.6, 0, 1) * (1 - var(--bridge-out, 0)));
  transform: translateY(calc((1 - clamp((var(--bridge-ui, 0) - 0.4) / 0.6, 0, 1)) * 12px));
}

.hp-iuris-bridge__tip {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  top: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hp-iuris-bridge__tip strong {
  color: #00AEEF;
  font-weight: 600;
}

.hp-iuris-bridge__tip.is-active {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hp-iuris-bridge__spinner {
    animation: none;
    border-top-color: rgba(0, 174, 239, 0.5);
  }
}

/* ── Products scene (Project Iuris) ── */
.hp-scene--products {
  position: relative;
  z-index: 2;
  height: 240vh;
  margin-top: -100vh;
  background: #04080f;
}

.hp-scene--products .hp-scene__sticky {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  z-index: 2;
}

.hp-products-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  --visual-sub: 0;
}

/* Full-bleed product visuals */
.hp-products-visuals {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-product-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hp-product-visual.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hp-product-visual__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hp-product-visual__glow--meridian {
  width: min(70vw, 680px);
  height: min(70vw, 680px);
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(141, 216, 255, 0.35) 0%, transparent 70%);
}

.hp-product-visual__glow--iuris {
  width: min(60vw, 560px);
  height: min(60vw, 560px);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 174, 239, 0.28) 0%, transparent 70%);
}

.hp-product-visual__glow--alignment {
  width: min(65vw, 620px);
  height: min(65vw, 620px);
  right: 12%;
  top: 48%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.hp-product-visual__frame {
  position: absolute;
  right: clamp(4%, 8vw, 10%);
  top: 50%;
  width: min(54vw, 680px);
  transform:
    translateY(calc(-50% + var(--visual-sub, 0) * -18px))
    perspective(1400px)
    rotateY(-8deg)
    rotateX(calc(3deg + var(--visual-sub, 0) * 2deg))
    scale(calc(1.02 + var(--visual-sub, 0) * 0.06));
  transform-origin: center center;
  transition: transform 0.15s linear;
}

.hp-product-visual--meridian.is-active .md-portal-mock--cinema {
  animation: hpMockFloat 6s ease-in-out infinite;
}

@keyframes hpMockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Cinema-scale portal mock */
.md-portal-mock--cinema {
  aspect-ratio: 4 / 5;
  min-height: min(76vh, 760px);
  max-height: none;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(141, 216, 255, 0.06) inset,
    0 0 80px rgba(141, 216, 255, 0.08);
}

.md-portal-mock--cinema .md-portal-mock__inner {
  min-height: 100%;
  padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 22px) clamp(14px, 1.8vw, 18px);
}

.md-portal-mock--cinema .md-portal-empty__title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.md-portal-mock--cinema .md-portal-empty__sub {
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  max-width: 320px;
}

/* Iuris — Meridian-style full viewport reveal */
.hp-product-visual--iuris {
  align-items: center;
  justify-content: center;
}

.hp-iuris-full {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vh, 20px);
  padding: clamp(56px, 8vh, 80px) clamp(12px, 2vw, 24px) clamp(148px, 20vh, 200px);
  pointer-events: none;
}

.hp-iuris-full__frame {
  position: relative;
  width: min(calc(420px + 52vw), 100%);
  height: min(calc(52vh + 38vh), 100%);
  max-width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
  transform: scale(calc(0.97 + var(--visual-sub, 0) * 0.03));
  transform-origin: center center;
  transition: transform 0.15s linear;
  pointer-events: auto;
}

.hp-product-visual__glow--iuris {
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
}

.hp-iuris-legal {
  display: none;
}

@media (min-width: 901px) {
  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(52px, 8vh, 76px) clamp(24px, 3.5vw, 48px);
    --hp-iuris-demo-h: min(92vh, 880px);
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-products-ui {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    padding: 0;
    padding-top: 4px;
    padding-right: clamp(20px, 3vw, 36px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-products-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    min-height: 0;
    text-align: left;
    position: relative;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"].is-active {
    position: relative;
    inset: auto;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-iuris-legal {
    display: block;
    width: 100%;
    max-width: 38ch;
    margin: 20px 0 0;
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.55;
    border-radius: 8px;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-products-vignette {
    grid-column: 1 / -1;
    grid-row: 1;
    background:
      radial-gradient(ellipse 48% 62% at 72% 42%, rgba(0, 174, 239, 0.1) 0%, transparent 68%),
      linear-gradient(90deg, rgba(4, 8, 15, 0.15) 0%, transparent 42%, transparent 100%);
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-products-visuals {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    width: 100%;
    height: auto;
    min-height: var(--hp-iuris-demo-h);
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-visual--iuris {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    align-items: stretch;
    justify-content: stretch;
    transform: none;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"] .hp-product-chapter__type {
    color: rgba(0, 174, 239, 0.72);
    margin-bottom: 16px;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"] .hp-product-chapter__name {
    font-size: clamp(2.125rem, 3.6vw, 3.25rem);
    margin-bottom: 20px;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"] .hp-product-chapter__desc {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
    max-width: 32ch;
    font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"] .hp-product-chapter__foot {
    justify-content: flex-start;
    gap: 14px;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"] .hp-product-chapter__status {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-chapter[data-product="iuris"] .hp-product-chapter__cta {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-iuris-full {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-iuris-full__frame {
    width: 100%;
    height: var(--hp-iuris-demo-h);
    min-height: var(--hp-iuris-demo-h);
    max-height: var(--hp-iuris-demo-h);
    max-width: none;
    flex: none;
    margin-left: 0;
    transform: none;
    pointer-events: auto;
    border-radius: 18px;
    overflow: hidden;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-visual--iuris .iuris-anim-demo--fullscreen {
    border-radius: 18px;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-iuris-full .iuris-legal-advisory {
    display: none;
  }

  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-product-visual__glow--iuris {
    left: 72%;
    top: 38%;
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    transform: translate(-50%, -50%);
    opacity: 0.45;
  }

  .hp-iuris-full__cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .hp-products-canvas:has(.hp-product-visual--iuris.is-active) .hp-iuris-legal {
    display: block;
    margin-top: 16px;
    max-width: none;
  }
}

.hp-iuris-full__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-iuris-full__cta:hover {
  color: #fff;
}

.hp-product-visual--iuris .iuris-anim-demo--fullscreen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 174, 239, 0.06) inset;
}

.hp-products-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(4, 8, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.35) 0%, transparent 30%, transparent 55%, rgba(4, 8, 15, 0.85) 100%);
}

/* Alignment sheets visual */
.hp-visual-sheets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  width: min(560px, 72vw);
  height: min(380px, 48vh);
  transform: perspective(1200px) rotateY(-12deg) rotateX(6deg);
}

.hp-visual-sheet {
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.55;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hp-visual-sheet--hero {
  grid-row: span 2;
  opacity: 1;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hp-visual-sheet__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.85);
}

.hp-visual-sheet__corridor {
  flex: 1;
  border-radius: 4px;
  background:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 42%, rgba(56, 189, 248, 0.35) 42%, rgba(56, 189, 248, 0.35) 44%, transparent 44%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  min-height: 120px;
}

/* Copy overlay — centered caption */
.hp-products-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: clamp(88px, 12vh, 120px) clamp(24px, 4vw, 48px) clamp(48px, 8vh, 72px);
  pointer-events: none;
}

.hp-products-copy {
  position: relative;
  min-height: 240px;
  width: min(640px, 100%);
  text-align: center;
  pointer-events: auto;
}

.hp-product-chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

.hp-product-chapter.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hp-product-chapter__type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 14px;
}

.hp-product-chapter__name {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
  max-width: none;
}

.hp-product-chapter__desc {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 28px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.hp-product-chapter__name span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.hp-product-chapter[data-product="iuris"] .hp-product-chapter__name span { color: #00AEEF; }
.hp-product-chapter[data-product="alignment"] .hp-product-chapter__name span { color: #38bdf8; }

.hp-product-chapter__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 0;
  border-top: none;
  margin-top: 0;
  justify-content: center;
}

.hp-product-chapter__status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.hp-product-chapter__cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hp-product-chapter:hover .hp-product-chapter__cta {
  color: #fff;
  transform: translateX(4px);
}

/* Scroll progress rail — removed */
.hp-scroll-rail {
  display: none !important;
}

/* Hide old product grid on homepage */
.home-page .sw-products {
  display: none;
}

.home-page .sw-intro.sw-intro--reveal {
  display: none;
}

.home-page .sw-section {
  padding-top: clamp(64px, 10vh, 100px);
}

/* Reveal utility for pricing/portfolio */
.st-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hp-iuris-bridge {
    display: none;
  }

  .hp-scene--products {
    margin-top: 0;
  }

  .hp-scene--hero,
  .hp-scene--story,
  .hp-scene--products {
    height: auto;
  }

  .hp-scene__sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 88px 0 64px;
  }

  .hp-scene--hero .hp-scene__sticky {
    min-height: 100vh;
    padding: 0;
  }

  .hp-scene--hero .hp-hero-content {
    opacity: 1;
    transform: none;
  }

  .hp-warp-fx,
  .hp-story-dim {
    display: none;
  }

  .hp-meridian-full {
    position: relative;
    opacity: 1;
    padding: 32px 24px 0;
    pointer-events: auto;
  }

  .hp-meridian-full__frame {
    width: 100%;
    height: auto;
    min-height: 520px;
    opacity: 1;
    transform: none;
  }

  .md-portal-mock--fullscreen {
    min-height: 520px;
    border-radius: 20px;
  }

  .hp-meridian-full__cta {
    opacity: 1;
    transform: none;
  }

  .hp-iuris-full {
    padding: 88px 20px 48px;
    height: auto;
    min-height: 0;
  }

  .hp-iuris-full__frame {
    width: 100%;
    height: auto;
    min-height: 480px;
    max-height: none;
    flex: none;
    transform: none;
  }

  .iuris-anim-demo--fullscreen {
    min-height: 480px;
    max-height: none;
  }

  .hp-story-stage {
    flex-direction: column;
    padding: 88px 24px 64px;
    height: auto;
  }

  .hp-beats {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 48px 0;
  }

  .hp-beat {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 0;
  }

  .hp-beat--answer {
    border-top: none;
  }

  .hp-products-ui {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    padding: 88px 24px 64px;
  }

  .hp-products-copy {
    position: relative;
    min-height: 260px;
  }

  .hp-product-chapter {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }

  .hp-product-chapter.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
  }

  .hp-product-visual__frame {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 32px;
    transform: none;
  }

  .md-portal-mock--cinema {
    min-height: 480px;
  }

  .hp-products-visuals {
    position: relative;
    min-height: auto;
    padding: 0 24px;
  }

  .hp-product-visual {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    padding: 24px 0;
  }

  .hp-product-visual.is-active {
    display: flex;
  }

  .hp-products-vignette {
    display: none;
  }

  .hp-visual-sheets {
    transform: none;
  }

  .hp-products-index {
    display: none;
  }

  .hp-scroll-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-beat,
  .hp-product-chapter,
  .hp-product-visual,
  .st-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
