/*
  Intro (driven by st-intro.js). Nothing here applies unless <html> has the class
  st-intro, set in the page head before first paint.

  While it plays, only the loom and the heading's two words ("knowing", "doing")
  are visible: the hero's text block sits above the overlay, with everything in it
  except the heading hidden. The rest of the page fades in at the end.
*/
html.st-intro { overflow: hidden; }
html.st-intro header.site,
html.st-intro footer.site,
html.st-intro main > section:not(.hero),
html.st-intro .hero .mono,
html.st-intro .hero .lede { opacity: 0; }
html.st-intro .brand { visibility: hidden; }
html.st-intro .hero .wrap { z-index: 1001; }          /* the two words stay above the overlay */
html.st-intro .hero h1 { transition: opacity .7s ease; }
html.st-intro.st-intro-dim .hero h1 { opacity: .06; } /* while the logo forms in the middle */

html.st-intro.st-intro-reveal header.site,
html.st-intro.st-intro-reveal .hero .lede:not(.on-scroll) { opacity: 1; transition: opacity .9s ease .15s; }

#st-intro {
  position: fixed; inset: 0; z-index: 1000;
  background-color: rgba(255,255,255,1);
  transition: background-color .9s ease;
}
#st-intro.sti-fly { background-color: rgba(255,255,255,0); pointer-events: none; }

.sti-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.sti-weave { transition: opacity .7s ease; }
#st-intro.sti-dim .sti-weave { opacity: .07; }
#st-intro.sti-fly .sti-weave { opacity: 1; }
#st-intro.sti-fly .sti-field { opacity: 0; transition: opacity .9s ease .1s; }   /* the page's own loom takes over */
.sti-trail { fill: none; stroke: #C2412D; stroke-linejoin: round; stroke-linecap: butt; }
.sti-dot { fill: #C2412D; }
.sti-node { fill: #C9CBCF; opacity: 0; transition: opacity .6s ease, fill .3s ease; }
.sti-node.sti-on { fill: #C2412D; }
#st-intro.sti-ready .sti-node { opacity: 1; }

/* The logo that forms in the middle of the screen, and "Architecture for learning" beneath it */
.sti-lockup { position: absolute; left: 0; top: 0; }
.sti-lockup .st-logo { font-size: clamp(52px, 8vw, 100px); transform-origin: 0 0; }
.sti-lockup .st-logo__symbol { opacity: 0; }
#st-intro.sti-symbol .sti-lockup .st-logo__symbol { opacity: 1; }
.sti-lockup .st-logo__word { opacity: 0; transform: translateX(-.15em); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
#st-intro.sti-word .sti-lockup .st-logo__word { opacity: 1; transform: none; }
#st-intro.sti-fly .sti-lockup .st-logo { transition: transform 1s cubic-bezier(.65,0,.25,1); }

.sti-eyebrow {
  position: absolute; left: 0; top: 0; margin: 0;
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: #4A4F57; white-space: nowrap;
  opacity: 0; transition: opacity .8s ease; transform-origin: 0 0;
}
#st-intro.sti-eyebrow-in .sti-eyebrow { opacity: 1; }
#st-intro.sti-fly .sti-eyebrow { transition: transform 1s cubic-bezier(.65,0,.25,1); }
