/* "Portfolio instructions": a quiet button at the foot of the home page and the sheet it raises along the bottom. */
.how-btn { font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border: 1px solid rgba(233, 232, 225, .55); border-radius: 999px; opacity: .85; transition: opacity .2s, background-color .2s, color .2s; }
.how-btn::before { content: "?"; display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; }
.how-btn:hover, .how-btn[aria-expanded="true"] { opacity: 1; background: var(--paper); color: var(--ink); }
.how { position: fixed; left: 0; right: 0; bottom: 0; z-index: 700; background: var(--ink); color: var(--paper); padding: 16px var(--gut) 20px; clip-path: inset(100% 0 0 0); transform: translateY(24px); transition: clip-path .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.how.on { clip-path: inset(0 0 0 0); transform: none; pointer-events: all; }
html.how-open .home-foot { opacity: 0; pointer-events: none; }
.how-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.how-bar b { font-family: var(--f-body); font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; font-size: clamp(20px, 2.2vw, 34px); line-height: 1; }
.how-x { width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.how-x:hover { background: var(--paper); color: var(--ink); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.how-step { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(.25s + var(--i) * 70ms); cursor: pointer; }
.how.on .how-step { opacity: .38; transform: none; }
.how.on .how-step.on { opacity: 1; }
.how-step p { margin: 10px 0 0; font-size: 13px; line-height: 1.3; }
.how-step p b { display: block; font-family: var(--f-nav); font-weight: 400; font-size: 14px; text-transform: uppercase; margin-bottom: 2px; }
.how-step p small { float: right; font-size: 11px; opacity: .6; }
.how-scene { position: relative; height: clamp(70px, 9vh, 96px); border: 1px solid rgba(233, 232, 225, .3); overflow: hidden; }
.how-scene i { position: absolute; display: block; animation-duration: 3.2s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.76, 0, .24, 1); animation-play-state: paused; }
.how-step.on .how-scene i { animation-play-state: running; }
.how-scene .w { left: 50%; top: 50%; width: 46%; height: 16%; margin: -8% 0 0 -23%; background: var(--paper); }
.how-scene .c { width: 9px; height: 9px; border-radius: 50%; background: var(--red); left: 12%; top: 78%; animation-name: howCur; }
.how-scene .n { width: 15%; aspect-ratio: 4 / 3; border: 1px solid var(--paper); animation-name: howPop; }
.how-scene .n1 { left: 8%; top: 10%; } .how-scene .n2 { right: 9%; top: 14%; animation-delay: .12s; } .how-scene .n3 { right: 22%; bottom: 8%; animation-delay: .24s; }
.how-scene .s { top: 0; width: 25%; height: 100%; background: var(--paper); transform-origin: 50% 100%; animation-name: howWipe; }
.how-scene .s1 { left: 0; } .how-scene .s2 { left: 25%; animation-delay: .06s; } .how-scene .s3 { left: 50%; animation-delay: .12s; } .how-scene .s4 { left: 75%; animation-delay: .18s; }
.how-open .how-scene .w, .how-open .how-scene .c { z-index: 2; }
.how-scene .p { top: 50%; height: 24%; margin-top: -12%; border: 1px solid var(--paper); border-radius: 999px; animation-name: howPick; }
.how-scene .p1 { left: 12%; width: 30%; border-radius: 0; border-width: 0 0 2px; } .how-scene .p2 { right: 12%; width: 38%; animation-delay: 1.6s; }
.how-short .c { animation-name: howCur2; }
.how-scene .t { right: 14%; width: 16px; height: 16px; border: 1.5px solid var(--paper); border-radius: 50%; animation-name: howBlink; }
.how-scene .t1 { top: 14%; } .how-scene .t2 { top: 50%; margin-top: -8px; animation-delay: 1s; } .how-scene .t3 { bottom: 14%; animation-delay: 2s; }
.how-scene .l { left: 8%; top: 14%; width: 30%; height: 22%; background: var(--paper); animation-name: howPulse; }
.how-home .c { animation-name: howCur3; }
@keyframes howCur { 0%, 15% { left: 12%; top: 78%; } 40%, 100% { left: 50%; top: 52%; } }
@keyframes howCur2 { 0%, 10% { left: 50%; top: 82%; } 30%, 50% { left: 26%; top: 54%; } 70%, 100% { left: 68%; top: 54%; } }
@keyframes howCur3 { 0%, 15% { left: 70%; top: 78%; } 45%, 100% { left: 22%; top: 26%; } }
@keyframes howPop { 0%, 38% { opacity: 0; transform: scale(.2); } 55%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes howWipe { 0%, 45% { transform: scaleY(0); } 70%, 88% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes howPick { 0%, 25% { background: transparent; } 35%, 50% { background: rgba(233, 232, 225, .9); } 60%, 100% { background: transparent; } }
@keyframes howBlink { 0%, 5% { background: transparent; } 12%, 28% { background: var(--paper); } 36%, 100% { background: transparent; } }
@keyframes howPulse { 0%, 45% { transform: none; } 55% { transform: scale(.9); } 65%, 100% { transform: none; } }
.how-line { height: 2px; margin-top: 16px; background: rgba(233, 232, 225, .22); overflow: hidden; }
.how-line i { display: block; height: 100%; width: 20%; background: var(--paper); transition: transform .6s var(--ease); }
@media (max-width: 860px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how { max-height: 70vh; overflow: auto; } }
@media (prefers-reduced-motion: reduce) { .how, .how-step { transition: none; } .how-scene i { animation: none; } }
