/* Scrolling between sections: each section glides up and grows into place as it arrives,
   the one leaving eases back a little, and scrolling settles softly on a section.
   Uses the browser's own scroll-driven animations (no script); where they aren't supported,
   the page simply scrolls normally. Off for people who asked their computer for less motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main > section:not(.hero) {
      transform-origin: 50% 0;
      animation: sec-arrive linear both, sec-leave linear both;
      animation-timeline: view(), view();
      animation-range: entry 0% cover 38%, exit 50% exit 100%;
    }
  }
}
/* Gentle: a short rise, a tiny size change, no blur (smooth on every computer). */
@keyframes sec-arrive {
  from { opacity: 0.35; transform: translateY(44px) scale(0.975); }
  to { opacity: 1; transform: none; }
}
@keyframes sec-leave {
  to { opacity: 0.8; transform: translateY(-12px) scale(0.985); }
}
/* Smooth wheel scrolling (Lenis) does its own easing, so the browser's must be off. */
html.lenis { scroll-behavior: auto; }

/* Side dots: where am I, and a quick way to slide to any section (large screens only). */
.sdots { position: fixed; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 10px; padding: 10px 6px; border-radius: 99px; background: color-mix(in srgb, var(--surface, #fff) 70%, transparent); backdrop-filter: blur(8px); box-shadow: 0 6px 20px -10px rgba(40, 30, 120, 0.35); }
@media (min-width: 1100px) { .sdots { display: flex; } }
.sdots button { position: relative; width: 12px; height: 12px; padding: 0; border: none; border-radius: 99px; background: color-mix(in srgb, var(--ink-soft, #55556e) 35%, transparent); cursor: pointer; transition: height 0.3s, background 0.3s; }
.sdots button:hover, .sdots button:focus-visible { background: var(--brand, #4f46e5); outline: none; }
.sdots button[aria-current='true'] { height: 30px; background: linear-gradient(180deg, var(--brand, #4f46e5), var(--brand-2, #7c3aed)); }
.sdots button span { position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; color: #fff; background: rgba(22, 22, 42, 0.85); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.sdots button:hover span, .sdots button:focus-visible span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sdots button { transition: none; } }
@media print { .sdots { display: none !important; } }
