/* THE INTRO: "the reading". Drawn in js/intro.js; the hand-off into the hero is in main.js (boot).
   An ink stage. Warp threads are laid across it in the spectrum, a lens closes round them and magnifies them, and one line is read
   straight through: the brand mark, at the size of the screen. Then the lens opens to the edges and the lab is behind it. */

.intro{position:fixed;inset:0;z-index:60;background:#06070B;pointer-events:auto;cursor:progress}
.in-c{position:absolute;inset:0;width:100%;height:100%;display:block}

/* the name: set where the hero's title sits, white in difference, so it is white on the ink and ink on the lab, and hands over to
   the title itself without a jump (letters placed at their kerned positions, js/intro.js buildWord) */
.in-word{position:fixed;z-index:61;color:#fff;mix-blend-mode:difference;pointer-events:none;white-space:nowrap;visibility:hidden}
.in-word.on{visibility:visible}
.in-wm{position:relative;display:block;overflow:hidden}
.in-wm i{position:absolute;top:0;font-style:normal;display:block;transform:translate3d(0,112%,0);will-change:transform}

/* the reading, bottom right where the hero's side copy will be: hairline rows, tabular figures */
.in-led{position:absolute;right:var(--m);bottom:5vh;width:250px;font-size:12px;line-height:1;color:rgba(234,237,247,.5);
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;transition:opacity .5s var(--ease),transform .7s var(--ease)}
.in-led p{position:relative;display:flex;align-items:baseline;gap:6px;padding:11px 0 10px;opacity:0;transform:translate3d(0,8px,0);
  transition:opacity .7s var(--ease),transform .9s var(--ease)}
.in-led p::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(234,237,247,.14);transform:scaleX(0);transform-origin:0 50%;
  transition:transform 1.1s var(--ease)}
.in-led p:first-child::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:rgba(234,237,247,.14);transform:scaleX(0);transform-origin:0 50%;
  transition:transform 1.1s var(--ease)}
.in-led span{flex:1;letter-spacing:.01em}
.in-led b{font-weight:500;color:#F2F4FA;letter-spacing:-.01em}
.in-led i{font-style:normal;color:rgba(234,237,247,.42);min-width:2.2em}
.intro.l-on .in-led p{opacity:1;transform:none}
.intro.l-on .in-led p::after,.intro.l-on .in-led p:first-child::before{transform:none}
.intro.l-on .in-led p:nth-child(2){transition-delay:.12s}.intro.l-on .in-led p:nth-child(2)::after{transition-delay:.12s}
.intro.l-on .in-led p:nth-child(3){transition-delay:.24s}.intro.l-on .in-led p:nth-child(3)::after{transition-delay:.24s}
.intro.l-out .in-led{opacity:0;transform:translate3d(0,-10px,0)}

/* a quiet way through, top right: any key, click or scroll does the same */
.in-skip{position:absolute;right:var(--m);top:26px;padding:6px 0;border:0;background:none;font-size:12px;color:rgba(234,237,247,.42);cursor:pointer;
  opacity:0;transition:opacity .8s var(--ease),color .3s}
.in-skip:hover{color:#F2F4FA}
.intro.l-on .in-skip{opacity:1;transition-delay:.6s}
.intro.l-out .in-skip{opacity:0;transition-delay:0s}

/* while the intro runs: the grain lies over it, the nav and the type button wait */
body.is-loading .grain{z-index:62;mix-blend-mode:screen;opacity:.055}
body.is-loading:not(.intro-nav) .nav{transform:translate3d(0,-130%,0)}
body.is-loading:not(.intro-nav) .ty-btn{opacity:0;pointer-events:none}
.ty-btn{transition:opacity .8s var(--ease),transform .3s}

@media (max-width:860px){
  .in-led{right:auto;left:var(--m);top:22px;bottom:auto;width:190px;font-size:11px}
  .in-led p{padding:9px 0 8px}
  .in-skip{top:28px}
}
