/* Shared floor for all concepts: reset, accessibility, motion gating.
   Convention: every entrance-hidden or scroll-animated state in a concept's CSS
   MUST be scoped under html[data-motion="full"]. Without JS, with
   prefers-reduced-motion, or with the user toggle set to "uit", nothing is hidden. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html[data-motion="full"]{scroll-behavior:smooth}
body{margin:0;min-height:100vh;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
img,picture,video,canvas,svg{display:block;max-width:100%}
img{height:auto}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4,p,figure,ul,ol,dl,dd{margin:0}
ul[role="list"],ol[role="list"]{list-style:none;padding:0}
a{color:inherit}
:focus-visible{outline:3px solid var(--am-cyan-deep);outline-offset:3px;border-radius:4px}
:focus:not(:focus-visible){outline:none}

.skip-link{position:absolute;left:-9999px;top:0;z-index:10000;padding:.7rem 1rem;background:var(--am-navy);color:#fff;font-weight:600;text-decoration:none;border-radius:0 0 8px 0}
.skip-link:focus-visible{left:0}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Motion toggle (concepts style it further via .motion-toggle) */
.motion-toggle{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .9rem;border:1px solid currentColor;border-radius:999px;background:transparent;cursor:pointer;font-size:.85rem;line-height:1}
.motion-toggle .dot{width:.55rem;height:.55rem;border-radius:50%;background:currentColor;opacity:.35}
.motion-toggle[aria-pressed="true"] .dot{opacity:1;background:var(--am-cyan)}

/* Reduced motion: kill everything time-based, keep hover colour changes cheap */
@media (prefers-reduced-motion:reduce){
  html:not([data-motion="full"]) *,html:not([data-motion="full"]) *::before,html:not([data-motion="full"]) *::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{
  animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
html[data-motion="reduced"]{scroll-behavior:auto}

@media (pointer:coarse){a,button,[role="button"]{min-height:44px}}
