/* Phone and tablet intro, part 2 of 3: intro-gate.js turns it on before the first paint and intro.js draws it.
   Nothing here shows unless html.intro-on is set. The two versions share the overlay; html[data-intro] says which
   one is playing. Colour comes only from the site's own rainbow (.grad in styles.css). */
.intro { display: none; --intro-r: 0px; --intro-x: 50%; --intro-y: 50%; }
html.intro-on { overflow: hidden; }
/* Its own type, so a web font the page loads later can never swap the line while it is on screen. 100vw, not right: 0,
   so the black also covers the strip styles.css keeps for a scrollbar in desktop windows. */
html.intro-on .intro { display: block; position: fixed; inset: 0 auto 0 0; width: 100vw; z-index: 1000; overflow: hidden; background: #000; color: #fff; touch-action: none; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
html.intro-on .intro.is-live { background: none; }
.intro p { margin: 0; }
.intro-static { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; white-space: nowrap; font-size: min(17px, 4.3vw); line-height: 1.2; font-weight: 400; }
.intro.is-live .intro-static { visibility: hidden; }
.intro-sheet { position: absolute; inset: 0; background: #000; }
.intro-bit { position: absolute; left: 0; top: 0; white-space: pre; line-height: 1.2; font-weight: 400; }
.intro-glow { display: inline-block; }

/* 2: the line finishes itself and every word goes home. */
.intro-mid { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; white-space: nowrap; line-height: 1.2; font-weight: 400; }
html[data-intro="2"] .intro-bit { will-change: transform, opacity; }
.intro-mid span { display: inline-block; white-space: pre; }
.intro-mid > span { will-change: transform, opacity; }
/* The black, with a soft-edged opening that grows from the rainbow word, and a band of the rainbow riding its edge. */
.intro-ink, .intro-aura { position: absolute; inset: 0; }
.intro-ink { background: #000; -webkit-mask-image: radial-gradient(circle at var(--intro-x) var(--intro-y), transparent calc(var(--intro-r) * .68), #000 var(--intro-r)); mask-image: radial-gradient(circle at var(--intro-x) var(--intro-y), transparent calc(var(--intro-r) * .68), #000 var(--intro-r)); }
.intro-aura { opacity: 0; background: linear-gradient(104deg, #6cb4ff, #a78bfa 25%, #ff6b8b 50%, #ffa24d 75%, #ff6b8b); -webkit-mask-image: radial-gradient(circle at var(--intro-x) var(--intro-y), transparent calc(var(--intro-r) * .52), #000 calc(var(--intro-r) * .84), transparent calc(var(--intro-r) * 1.06)); mask-image: radial-gradient(circle at var(--intro-x) var(--intro-y), transparent calc(var(--intro-r) * .52), #000 calc(var(--intro-r) * .84), transparent calc(var(--intro-r) * 1.06)); }
/* Words are written in and rubbed out left to right, the way the line reads. The feather is one word wide. */
.intro-in, .intro-out { -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.intro-in { -webkit-mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%); mask-image: linear-gradient(90deg, #000 33.3%, transparent 66.6%); }
.intro-out { -webkit-mask-image: linear-gradient(90deg, transparent 33.3%, #000 66.6%); mask-image: linear-gradient(90deg, transparent 33.3%, #000 66.6%); }

/* 3: one pull-back from inside the dot of the "i" to the page. The world is a copy of the page laid out in em, so its
   font-size is the camera and the type is real type at every size. */
.intro-world, .intro-page, .intro-stage, .intro-card { position: absolute; left: 0; top: 0; }
.intro-world { transform-origin: 0 0; }              /* its corner is the point the camera pulls back from */
.intro-strut { width: 0; height: 2em; }              /* taller than any ascender; the type's baseline is aligned to its foot */
.intro.is-live .intro-hi { visibility: visible; }    /* the plain line again, same rules, so the first frame cannot differ */
html.intro-on .intro-dot ~ * .m1 { opacity: 0; }     /* the copy stands in for the real headline, so nothing shows twice */
