.open { display: none; }
.opening { overflow-x: clip; }
.opening .open { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; background: #f8f7f5; animation: open-fail .2s 8s forwards; will-change: transform; }
.open::before { content: ""; position: absolute; inset: 0; background: url("img/grain-texture.png") 0 0 / 420px; opacity: .22; }
.open::after { content: ""; position: absolute; inset: 100% 0 auto; height: 90px; background: linear-gradient(rgba(40, 34, 26, .2), rgba(40, 34, 26, .06) 30%, transparent); opacity: 0; transition: opacity .25s; }
.open-mark { position: relative; display: block; overflow: hidden; padding: .16em .3em .12em; white-space: nowrap; font: 400 clamp(40px, 8.6vw, 250px)/1.15 "Special Elite", "Courier New", monospace; }
.open-mark .press { display: block; color: transparent; }
.open-mark canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.open-mark .relief { transform: translateY(105%); }
.open.is-pressing .relief { transform: none; transition: transform .9s cubic-bezier(.16, .8, .24, 1); }
.open.is-leaving { transform: translateY(-101%); transition: transform .8s cubic-bezier(.7, 0, .18, 1); pointer-events: none; }
.open.is-leaving::after { opacity: 1; }
@keyframes open-fail { to { visibility: hidden; } }
@media (max-width: 700px) { .open-mark { font-size: 12.6vw; } .open::after { height: 56px; } }
