/* Vanfront site intro (vanfront.com + vanfront.online). Separate from the
   client-preview intro (online/public_html/preview/intro.js); do not merge.
   The pre-veil hides the page only while the intro builds, and a CSS-only
   timer un-hides it after 1.4 s even if the script never runs. */
html.vfs-pre body { animation: vfs-unveil 0s 1.4s forwards; visibility: hidden; }
@keyframes vfs-unveil { to { visibility: visible; } }

#vfs { position: fixed; inset: 0; z-index: 2147483000; background: #F3EEE3; color: #121417; overflow: hidden; cursor: pointer;
  font-family: "Instrument Sans", system-ui, sans-serif; display: grid; place-items: center;
  transition: clip-path .7s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); }
#vfs.out { clip-path: inset(0 0 100% 0); }
#vfs .vfs-road { position: relative; width: 100vw; flex: 0 0 auto; height: 2.5px; background: #121417; transform: scaleX(0); transform-origin: left; animation: vfs-road .6s .05s cubic-bezier(.7,0,.2,1) forwards; }
#vfs .vfs-road::after { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: repeating-linear-gradient(90deg, #121417 0 28px, transparent 28px 56px); opacity: .25; animation: vfs-dash .5s linear 3; }
#vfs .vfs-stagebox { position: relative; width: min(760px, 92vw); display: flex; flex-direction: column; align-items: center; }
#vfs .vfs-van { position: relative; width: min(300px, 56vw); transform: translateX(-150vw); animation: vfs-drive 1.1s .25s cubic-bezier(.2,.75,.25,1) forwards; }
#vfs .vfs-van svg { width: 100%; height: auto; display: block; overflow: visible; }
#vfs .vfs-van .vfs-wh { transform-box: fill-box; transform-origin: center; animation: vfs-spin .35s linear 3 .25s; }
#vfs .vfs-van .vfs-bob { animation: vfs-bob .22s ease-in-out 4 .3s; }
#vfs .vfs-chips { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
#vfs .vfs-chip { display: inline-flex; align-items: center; gap: 8px; border: 2.5px solid #121417; background: #FBF9F4; box-shadow: 3px 3px 0 #121417; padding: 8px 12px; font: 600 clamp(12px, 1.6vw, 15px)/1 "IBM Plex Mono", ui-monospace, monospace; opacity: 0; transform: translateY(14px) scale(.9); }
#vfs .vfs-chip i { width: 9px; height: 9px; border-radius: 50%; background: #FFC62B; border: 2px solid #121417; }
#vfs .vfs-chip.ai i { background: #1F9D6B; animation: vfs-ring .5s 1.9s ease-in-out 3; }
#vfs .vfs-chip:nth-child(1) { animation: vfs-pop .45s 1.25s cubic-bezier(.3,1.6,.5,1) forwards; }
#vfs .vfs-chip:nth-child(2) { animation: vfs-pop .45s 1.42s cubic-bezier(.3,1.6,.5,1) forwards; }
#vfs .vfs-chip:nth-child(3) { animation: vfs-pop .45s 1.59s cubic-bezier(.3,1.6,.5,1) forwards; }
#vfs .vfs-word { text-align: center; margin-bottom: clamp(22px, 5vh, 44px); }
#vfs .vfs-word b { display: inline-flex; align-items: center; gap: 14px; font: 800 clamp(40px, 8vw, 92px)/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.03em; clip-path: inset(0 100% 0 0); animation: vfs-wipe .7s 1.85s cubic-bezier(.7,0,.2,1) forwards; }
#vfs .vfs-plate { background: #FFC62B; border: 3px solid #121417; font: 600 .3em/1 "IBM Plex Mono", monospace; padding: .3em .32em; letter-spacing: 0; }
#vfs .vfs-word span { display: block; margin-top: 12px; font: 500 clamp(12px, 1.5vw, 15px)/1.4 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; color: #5E6167; opacity: 0; animation: vfs-fade .5s 2.35s ease forwards; }
#vfs .vfs-skip { position: fixed; right: 18px; bottom: 18px; left: auto; top: auto; width: auto; height: auto; margin: 0; font: 600 13px/1 "IBM Plex Mono", monospace; background: transparent; border: 2px solid #121417; color: #121417; padding: 9px 12px; cursor: pointer; }
#vfs .vfs-skip:focus-visible { outline: 3px solid #E23D3D; outline-offset: 3px; }

@keyframes vfs-road { to { transform: scaleX(1); } }
@keyframes vfs-dash { to { background-position: -56px 0; } }
@keyframes vfs-drive { 0% { transform: translateX(-150vw); } 80% { transform: translateX(4%) skewX(-4deg); } 100% { transform: none; } }
@keyframes vfs-spin { to { transform: rotate(360deg); } }
@keyframes vfs-bob { 50% { transform: translateY(-2px); } }
@keyframes vfs-pop { to { opacity: 1; transform: none; } }
@keyframes vfs-ring { 50% { box-shadow: 0 0 0 6px rgba(31,157,107,.25); } }
@keyframes vfs-wipe { to { clip-path: inset(-10% -6% -10% -6%); } }
@keyframes vfs-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #vfs { display: none !important; } html.vfs-pre body { visibility: visible; animation: none; } }
