@layer reset {
  /* Modern reset. Nothing here is design — only defaults being neutralised. */

  *, *::before, *::after { box-sizing: border-box; }

  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    /* CRITICAL: never set overflow:hidden/clip on html, body or .stack.
       Any ancestor with a non-visible overflow becomes the scroll container
       and silently kills position:sticky — the entire panel slide dies. */
  }

  body {
    min-height: 100dvh;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }

  input, button, textarea, select { font: inherit; color: inherit; }

  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

  ul[class], ol[class] { list-style: none; padding: 0; }

  a { color: inherit; text-decoration: none; }

  button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  :target { scroll-margin-block-start: 0; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}
