/* Home page opening. Hidden by default. It shows only when intro-gate.js puts .ms-intro-on on <html>,
   and only for visitors who have not asked their device for reduced motion. Everything that moves is a
   transform or an opacity change, plus two small canvases. */
.ms-intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.ms-intro-on { overflow: hidden; scrollbar-gutter: stable; }
  html.ms-intro-on .ms-intro { display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; }
  /* The curtain: a block of paper with a cloudy top edge. It starts with the cloud above the screen and slides down and away. */
  .ms-intro-cover { position: absolute; left: 0; right: 0; top: -90%; height: 200%; will-change: transform; }
  .ms-intro-cover canvas { display: block; width: 100%; height: 45%; }
  .ms-intro-cover div { height: 56%; margin-top: -1px; background: var(--bg); }
  .ms-intro-fog { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .ms-intro-stage { --w: min(58vw, 440px); position: absolute; left: calc(50% - var(--w) / 2); top: calc(46% - var(--w) * 0.338); width: var(--w); aspect-ratio: 603.5 / 407.8; transform-origin: 0 0; will-change: transform; }
  .ms-intro-stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity; }
  #msM { transform-origin: 27% 50%; }
  #msS { transform-origin: 77% 50%; }
  .ms-intro-skip { position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); min-height: 44px; padding: 0 18px; font-family: var(--f-display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); background: transparent; border: 1px solid var(--line-strong); cursor: pointer; transition: color 200ms, border-color 200ms, background-color 200ms; }
  .ms-intro-skip:hover { color: var(--plate-ink); background: var(--plate); border-color: var(--plate); }
  .ms-intro-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
}
