/* Reinitz Industries logo intro. The wrapper is sized exactly like the live <img>. */
.ri-intro {
  position: relative;
  width: min(576px, 100%);
  aspect-ratio: 1200 / 1020;
}
/* Short screens (phone held sideways): shrink so the whole logo fits the height. Taller screens are unchanged. */
@media (max-height: 440px) {
  .ri-intro { width: min(576px, 100%, calc(92vh * 1200 / 1020)); }
  @supports (height: 1svh) { .ri-intro { width: min(576px, 100%, calc(92svh * 1200 / 1020)); } }
}
.ri-intro > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.ri-intro__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
html.ri-intro-pending .ri-intro > img,
.ri-intro.is-playing > img { opacity: 0; }
.ri-intro.is-handoff > img { opacity: 1; transition: opacity 150ms linear; }
.ri-intro.is-handoff > .ri-intro__svg { opacity: 0; transition: opacity 150ms linear; }
html.ri-intro-lock, html.ri-intro-lock body { overflow: hidden; }
/* Page-wide blueprint grid shown during the intro (ink lines, very faint). */
.ri-intro__pagegrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(27, 27, 25, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 27, 25, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
}
.ri-intro { z-index: 1; }
@media (max-width: 600px) {
  .ri-intro__pagegrid { background-size: 20px 20px; }
}
