/* Horizontal path + Property Sage — keeps load order with styles.css */

.horizontal-scroll-scroller {
  --horizontal-panels: 5;
  position: relative;
  height: calc(var(--horizontal-panels) * 100vh);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.horizontal-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, var(--glow), transparent 70%),
    var(--bg-elevated);
}

.horizontal-section__track {
  display: flex;
  flex: 1;
  flex-direction: row;
  width: max-content;
  min-height: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.horizontal-panel {
  flex: 0 0 100vw;
  flex-shrink: 0;
  width: 100vw;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--space) 2.5rem;
}

.horizontal-panel__inner {
  max-width: 28rem;
  text-align: left;
}

.horizontal-panel__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.horizontal-panel__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.horizontal-panel__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.horizontal-section__hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0 var(--space) 1.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 640px) {
  .horizontal-section__hint {
    display: none;
  }

  .horizontal-scroll-scroller {
    height: auto;
  }

  .horizontal-scroll-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .horizontal-section__track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
  }

  .horizontal-panel {
    width: 100%;
    flex-basis: auto;
    padding: 2.75rem var(--space);
    justify-content: flex-start;
  }

  .horizontal-panel__inner {
    max-width: none;
    width: 100%;
  }

  .horizontal-panel__title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .horizontal-scroll-scroller {
    height: auto;
  }

  .horizontal-scroll-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .horizontal-section__track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
  }

  .horizontal-panel {
    width: 100%;
    flex-basis: auto;
    padding: 2.5rem var(--space);
  }
}

.row--app .app-icon,
.row--app .app-icon--feature {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  object-fit: cover;
}

@media (min-width: 720px) {
  .row--app .app-icon,
  .row--app .app-icon--feature {
    max-width: 140px;
    margin-bottom: 0;
  }
}
