/* ============================================================================
  GLOBAL.CSS — INFORMATION SHEET
  ----------------------------------------------------------------------------
  Purpose:
  This stylesheet is the global site-wide CSS layer for shared, reusable
  primitives and visual patterns used across multiple templates/pages.

  Use this file for:
  - Cross-template utilities and shared visual primitives.
  - Reusable effects that appear site-wide.
  - Global behavior that should not be owned by one page-specific stylesheet.

  Keep out of this file:
  - Page-only styling tied to a single page/template.
  - One-off experimental rules that are not reused.

  TABLE OF CONTENTS
  [01] Sitewide scroll behavior (instant restoration; no smooth auto-scroll)
  [02] Hard section divider line with light shooting effect
  [03] Reserved for next global primitive
  ============================================================================ */

/* [01] Sitewide scroll behavior */
html {
  scroll-behavior: auto;
}

/* [02] Hard section divider used across templates/pages */
main > .section-divider.section-divider--hard {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(179, 136, 255, 0.78), rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px rgba(179, 136, 255, 0.28);
}

main > .section-divider.section-divider--hard::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(0, -50%);
  background: radial-gradient(circle, rgba(255, 247, 255, 1) 0%, rgba(235, 205, 255, 0.95) 44%, rgba(225, 195, 255, 0) 74%);
  box-shadow: 0 0 12px rgba(231, 201, 255, 0.9), 0 0 22px rgba(206, 166, 251, 0.62);
  opacity: 0;
  pointer-events: none;
  animation: globalDividerBeatRightToLeft 4.6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes globalDividerBeatRightToLeft {
  0% {
    transform: translate(0, -50%);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  46% {
    transform: translate(-120vw, -50%);
    opacity: 0.92;
  }
  54% {
    opacity: 0;
  }
  100% {
    transform: translate(-120vw, -50%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > .section-divider.section-divider--hard::after {
    animation: none;
  }
}

