.page-intro { display:none; }

@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior:smooth; }
  /* The intro stays hidden even if its stylesheet or startup script fails. */
  html[data-intro] .page-intro[hidden] {
    position:fixed;
    inset:0;
    z-index:100;
    display:grid !important;
    place-items:center;
    overflow:hidden;
    pointer-events:none;
    user-select:none;
  }
  .intro-sign { display:grid; justify-items:center; }
  .intro-sign svg { display:block; overflow:visible; }
  .intro-name { overflow:hidden; }
  .intro-name span { display:block; animation:intro-type .52s .16s cubic-bezier(.2,.7,.22,1) both; }

  .north .page-intro {
    background:radial-gradient(ellipse at 50% 62%, #25404a 0%, #182e3a 47%, #10232e 100%);
    color:#f6f3e9;
    transition:opacity .38s ease-in-out;
  }
  .north .intro-sign { gap:24px; }
  .north .intro-sign svg { width:clamp(74px,7vw,104px); }
  .north .intro-sign path {
    stroke-dasharray:1;
    animation:intro-ring .58s cubic-bezier(.33,.1,.21,1) backwards;
  }
  .north .intro-sign path:nth-child(1) { animation-delay:.18s; }
  .north .intro-sign path:nth-child(2) { animation-delay:.135s; }
  .north .intro-sign path:nth-child(3) { animation-delay:.09s; }
  .north .intro-sign path:nth-child(4) { animation-delay:.045s; }
  .north .intro-name { font:500 clamp(12px,1.1vw,16px)/1.5 Montserrat,sans-serif; letter-spacing:.25em; text-transform:uppercase; }
  html[data-intro="leaving"] .north .page-intro { opacity:0; }

  @keyframes intro-ring { from { stroke-dashoffset:1; opacity:.2; } to { stroke-dashoffset:0; opacity:1; } }
  @keyframes intro-type { from { transform:translateY(85%); opacity:0; } to { transform:translateY(0); opacity:1; } }
}

html { scrollbar-gutter:stable; }
html:has(dialog[open]) { overflow:hidden; }
dialog { overscroll-behavior:contain; }
