/* intro.css — the sign-in intro. "WeTalk.ai" folds left into the symbol, the symbol turns, and
 * "Workspaces" comes out of it; then the screen lifts and the home page is underneath.
 *
 * The timing is our proposal site's loading screen, beat for beat (fold 1.0s, turn 1.0s, open 1.55s,
 * lift once the page is ready), so the two front doors are the same piece of motion.
 *
 * Off unless intro.js switches it on (html.osh-intro-on), so a normal page load never sees it.
 * Pure CSS: the portal allows no inline style and no inline script. */

.osh-intro { display: none; }

html.osh-intro-on { overflow: hidden; }
html.osh-intro-on .osh-intro {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center;
  background: #fff; pointer-events: all;
}
html.osh-intro-on .osh-intro.is-out {
  animation: oshOut .75s cubic-bezier(.7, 0, .3, 1) forwards;
  pointer-events: none;
}

.osh-intro-row {
  --sym: clamp(64px, 17vw, 104px);
  display: flex; align-items: center; gap: calc(var(--sym) * .1);
  animation: oshIn .6s cubic-bezier(.2, .8, .2, 1) both;
}
.osh-intro-sym {
  width: var(--sym); height: auto; position: relative; z-index: 2;
  animation: oshSpin 1.1s cubic-bezier(.6, 0, .2, 1) 1s both;
}
.osh-intro-words {
  display: grid; overflow: hidden; align-items: center;
  margin-left: calc(var(--sym) * -.16); padding: 6px 4px 10px calc(var(--sym) * .16);
}
.osh-intro-words > * { grid-area: 1 / 1; }
.osh-intro-a {
  font-family: var(--sf-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-weight: 800; font-size: calc(var(--sym) * .6); letter-spacing: -.035em;
  color: #0a203f; line-height: 1; white-space: nowrap;
  animation: oshFold .55s cubic-bezier(.7, 0, .3, 1) 1s forwards;
}
.osh-intro-b {
  height: calc(var(--sym) * .5233); width: auto; display: block;
  transform: translateX(-110%); opacity: 0;
  animation: oshOpen .7s cubic-bezier(.2, .8, .2, 1) 1.55s forwards;
}

/* the home page rising into place as the white lifts off it */
html.osh-intro-reveal #app { animation: oshRise .9s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes oshIn   { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes oshFold { to { transform: translateX(-110%); opacity: 0; } }
@keyframes oshOpen { to { transform: none; opacity: 1; } }
@keyframes oshSpin { to { transform: rotate(360deg); } }
@keyframes oshOut  { to { opacity: 0; visibility: hidden; transform: scale(1.02); } }
@keyframes oshRise { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media print { .osh-intro { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .osh-intro { display: none !important; } }
