/* Welcome intro — hexagon draws in, name types up, then the screen splits open. ~2.6s, click to skip. */
.welcome{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;cursor:pointer;
  animation:wl-gone .01s linear 3.1s forwards}
.welcome.skip{animation:wl-skip .4s ease forwards}
.wl-half{position:absolute;left:0;right:0;height:50.5%;background:#f7f6f3;
  background-image:none}
.wl-top{top:0;animation:wl-up .8s cubic-bezier(.7,0,.2,1) 2.3s forwards}
.wl-bottom{bottom:0;transform-origin:bottom;
  background-image:none;
  animation:wl-down .8s cubic-bezier(.7,0,.2,1) 2.3s forwards}
.wl-center{position:relative;display:grid;justify-items:center;gap:10px;text-align:center;padding:20px;
  animation:wl-center-out .5s cubic-bezier(.7,0,.84,0) 2.15s forwards}
.wl-hex{display:block;filter:none}
.wl-hex-line{fill:none;stroke:#b4232f;stroke-width:4;stroke-linejoin:round;stroke-dasharray:420;stroke-dashoffset:420;
  animation:wl-draw .9s cubic-bezier(.65,0,.35,1) .1s forwards}
.wl-hex-fill{fill:#b4232f;opacity:0;transform-origin:60px 67px;transform:scale(.6);
  animation:wl-fill .45s cubic-bezier(.34,1.56,.64,1) .85s forwards}
.wl-initials{position:absolute;top:20px;left:50%;width:120px;height:134px;margin-left:-60px;display:grid;place-items:center;
  font:800 26px "Unbounded",system-ui,sans-serif;color:#fff;letter-spacing:-.02em;opacity:0;transform:scale(.5);
  animation:wl-pop .45s cubic-bezier(.34,1.56,.64,1) 1s forwards}
.wl-hello{margin:18px 0 0;font:700 13px "Manrope",system-ui,sans-serif;letter-spacing:.4em;text-transform:uppercase;color:#9b1c27;
  opacity:0;transform:translateY(10px);animation:wl-rise .5s cubic-bezier(.16,1,.3,1) 1.15s forwards}
.wl-name{margin:0;font:800 clamp(28px,5vw,64px)/1.05 "Unbounded",system-ui,sans-serif;letter-spacing:-.03em;color:#17181c;display:flex;flex-wrap:wrap;justify-content:center}
.wl-name span{display:inline-block;opacity:0;transform:translateY(60%) rotate(8deg);
  animation:wl-rise .55s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(1.25s + var(--d) * 28ms)}
.wl-role{margin:4px 0 0;font:600 15px "Manrope",system-ui,sans-serif;color:#5b5e66;opacity:0;
  animation:wl-rise .5s cubic-bezier(.16,1,.3,1) 1.7s forwards}
.wl-bar{width:min(260px,60vw);height:3px;border-radius:3px;background:rgba(23,24,28,.08);overflow:hidden;margin-top:18px}
.wl-bar span{display:block;height:100%;width:100%;background:#b4232f;transform:scaleX(0);transform-origin:left;
  animation:wl-load 2s cubic-bezier(.65,0,.35,1) .2s forwards}

/* keep the page from scrolling while the intro plays */
html.welcome-on,html.welcome-on body{overflow:hidden}

@keyframes wl-draw{to{stroke-dashoffset:0}}
@keyframes wl-fill{to{opacity:1;transform:scale(1)}}
@keyframes wl-pop{to{opacity:1;transform:scale(1)}}
@keyframes wl-rise{to{opacity:1;transform:none}}
@keyframes wl-load{to{transform:scaleX(1)}}
@keyframes wl-center-out{to{opacity:0;transform:scale(.94)}}
@keyframes wl-up{to{transform:translateY(-101%)}}
@keyframes wl-down{to{transform:translateY(101%)}}
@keyframes wl-gone{to{visibility:hidden;pointer-events:none}}
@keyframes wl-skip{to{opacity:0;visibility:hidden}}

/* people who prefer less motion get a short, calm fade */
@media (prefers-reduced-motion:reduce){
  .welcome *{animation:none!important;opacity:1!important;transform:none!important;stroke-dashoffset:0!important}
  .welcome{animation:wl-skip .4s ease .9s forwards}
}
