.text-marker, .drawn-underline { position: relative; isolation: isolate; }
.text-marker i, .drawn-underline i { position: absolute; z-index: -1; inset: auto -.1em .12em; height: .52em; transform-origin: left; border-radius: 2px; background: #d4baf7; animation: draw-mark 4.5s ease-in-out infinite; }
.drawn-underline i { inset: auto 0 -.16em; height: 2px; background: #7752c5; }
@keyframes draw-mark {
  0%, 18%, 100% { transform: scaleX(0); }
  41%, 77% { transform: scaleX(1); }
}
.odometer { display: flex; align-items: baseline; color: #513783; font-size: 1.65rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.odometer span { display: block; height: 1.15em; overflow: hidden; }
.odometer b { display: block; animation: odometer 5.1s cubic-bezier(.55,.11,.28,.98) infinite; }
.odometer span:nth-child(2) b { animation-delay: .11s; }
.odometer span:nth-child(3) b { animation-delay: .22s; }
.odometer i { margin-left: 5px; font-style: normal; font-size: .76rem; }
@keyframes odometer {
  0%, 19% { transform: translateY(0); }
  39%, 69% { transform: translateY(-33.3333%); }
  89%, 100% { transform: translateY(-66.6666%); }
}
.tracked-word { font-size: clamp(.86rem,1.5vw,1.13rem); animation: tracking 4.9s ease-in-out infinite; }
@keyframes tracking {
  0%, 18%, 100% { letter-spacing: -.095em; }
  48%, 77% { letter-spacing: .09em; }
}
.scrambled { position: relative; display: grid; justify-items: center; }
.scrambled b { grid-area: 1 / 1; opacity: 0; }
.scrambled b:nth-child(1) { animation: scramble-first 4.7s steps(1,end) infinite; }
.scrambled b:nth-child(2) { animation: scramble-second 4.7s steps(1,end) infinite; }
.scrambled b:last-child { opacity: 1; animation: scramble-final 4.7s steps(1,end) infinite; }
@keyframes scramble-first {
  0%, 11%, 27%, 100% { opacity: 0; }
  16%, 36% { opacity: 1; }
  42% { opacity: 0; }
}
@keyframes scramble-second {
  0%, 16%, 36%, 47%, 100% { opacity: 0; }
  27%, 42% { opacity: 1; }
}
@keyframes scramble-final {
  0%, 11%, 48%, 100% { opacity: 1; }
  16% { opacity: 0; }
}

.stage[data-demo="slide-down"], .stage[data-demo="dissolve"], .stage[data-demo="blinds"], .stage[data-demo="shape-morph"], .stage[data-demo="card-expand"] {
  --demo-bg: #e4edf7;
  --demo-ink: #254970;
}
.notice-window { position: relative; width: 75%; height: 59%; overflow: hidden; border-radius: 8px; background: #fcfdff; }
.notice-window::after { content: ""; display: block; width: 49%; height: 5px; margin: 42px auto 0; border-radius: 4px; background: #d4e3f4; }
.drop-notice { position: absolute; inset: 6px 6px auto; padding: 6px 2px; border-radius: 5px; background: #466c9a; color: white; font-size: .76rem; animation: drop-notice 4.8s cubic-bezier(.25,.7,.3,1) infinite; }
@keyframes drop-notice {
  0%, 15%, 100% { transform: translateY(-150%); }
  41%, 76% { transform: translateY(0); }
}
.dissolve-frame { width: 73%; height: 62%; display: grid; grid-template: repeat(4,1fr) / repeat(6,1fr); overflow: hidden; border-radius: 8px; background: #8da8d1; }
.dissolve-frame i { background: #7357ae; animation: dissolve 4.7s ease-in-out infinite; }
.dissolve-frame i:nth-child(7n) { animation-delay: .2s; }
.dissolve-frame i:nth-child(3n) { animation-delay: .33s; }
.dissolve-frame i:nth-child(5n) { animation-delay: .48s; }
.dissolve-frame i:nth-child(4n+1) { animation-delay: .62s; }
.dissolve-frame i:nth-child(2n+1) { background: #805fb7; }
@keyframes dissolve {
  0%, 16%, 100% { opacity: 0; }
  37%, 72% { opacity: 1; }
}
.blind-frame { width: 73%; height: 62%; display: grid; grid-template-columns: repeat(6,1fr); overflow: hidden; border-radius: 8px; background: #aec6e8; }
.blind-frame i { background: #2d697d; transform-origin: left; animation: blind 4.9s ease-in-out infinite; }
.blind-frame i:nth-child(2n) { background: #3c7a8b; animation-delay: .11s; }
@keyframes blind {
  0%, 17%, 100% { transform: scaleX(0); }
  44%, 73% { transform: scaleX(1); }
}
.morph-shape { width: 50px; height: 50px; border-radius: 50%; background: #5678b4; animation: morph 5.4s ease-in-out infinite; }
@keyframes morph {
  0%, 18%, 100% { transform: rotate(0) scaleX(1); border-radius: 50%; background: #5678b4; }
  37%, 50% { transform: rotate(-12deg) scaleX(1.42); border-radius: 12px; background: #6652a9; }
  69%, 81% { transform: rotate(45deg) scaleX(.82); border-radius: 8px; background: #468279; }
}
.expand-card { display: grid; width: 52%; max-width: 128px; gap: 5px; align-content: center; height: 49%; padding: 6px 10px; background: white; border-radius: 8px; box-shadow: 0 5px 13px #2143672c; font-size: .77rem; animation: expand-card 4.8s cubic-bezier(.29,.69,.23,1) infinite; }
.expand-card i { display: block; height: 3px; border-radius: 5px; background: #cddcf0; }
.expand-card i:last-child { width: 72%; }
@keyframes expand-card {
  0%, 17%, 100% { width: 48%; height: 39%; }
  41%, 74% { width: 83%; height: 72%; }
}

.stage[data-demo="button-glint"], .stage[data-demo="ken-burns"], .stage[data-demo="badge-pop"], .stage[data-demo="check-draw"], .stage[data-demo="marquee"] {
  --demo-bg: #e6f1ec;
  --demo-ink: #255745;
}
.glint-chip { position: relative; overflow: hidden; background: #34755c; color: white; }
.glint-chip i { position: absolute; inset: 0; background: linear-gradient(115deg,transparent 35%,#ffffff80 50%,transparent 65%); animation: shimmer 4.4s ease-in-out infinite; }
.ken-window { position: relative; width: 83%; height: 70%; overflow: hidden; border-radius: 8px; }
.ken-picture { position: absolute; inset: 0; background: linear-gradient(147deg,#e7efce,#98bcaa); animation: ken-burns 7.4s ease-in-out infinite alternate; }
.ken-picture::before { position: absolute; content: ""; top: 16%; right: 21%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #fff4ce; }
.ken-picture::after { position: absolute; content: ""; inset: auto 0 0; height: 69%; background: #4e886d; clip-path: polygon(0 49%,29% 16%,56% 65%,80% 24%,100% 60%,100% 100%,0 100%); }
@keyframes ken-burns {
  from { transform: scale(1.09) translateX(0); }
  to { transform: scale(1.6) translate(-8%,4%); }
}
.badge-base { position: relative; display: grid; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 7px; background: #fff; font-weight: 720; font-size: .83rem; }
.pop-badge { position: absolute; inset: -9px -10px auto auto; border-radius: 99px; padding: 2px 6px; background: #3e876d; color: white; font-size: .65rem; font-style: normal; animation: pop-badge 4s ease-in-out infinite; }
@keyframes pop-badge {
  0%, 16%, 100% { transform: scale(.45); opacity: 0; }
  28% { transform: scale(1.21); opacity: 1; }
  38%, 78% { transform: scale(1); opacity: 1; }
}
.done-mark { position: relative; display: block; width: 45px; aspect-ratio: 1; border-radius: 50%; background: #f8fff9; border: 1px solid #a7c8b9; color: #3c8469; }
.done-mark i { position: absolute; height: 3px; width: 12px; bottom: 17px; left: 11px; transform-origin: right; background: currentColor; border-radius: 2px; animation: check-first 4.4s ease-in-out infinite; }
.done-mark i:last-child { width: 18px; bottom: 17px; left: 19px; transform-origin: left; animation-name: check-last; }
@keyframes check-first {
  0%, 14%, 100% { transform: rotate(45deg) scaleX(0); opacity: 0; }
  33%, 88% { transform: rotate(45deg) scaleX(1); opacity: 1; }
}
@keyframes check-last {
  0%, 31%, 100% { transform: rotate(-49deg) scaleX(0); opacity: 0; }
  48%, 88% { transform: rotate(-49deg) scaleX(1); opacity: 1; }
}
.marquee-window { width: 91%; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 6s linear infinite; }
.marquee-track > span { display: flex; align-items: center; gap: 7px; padding-right: 7px; }
.marquee-track b { min-width: 43px; padding: 7px 4px; border-radius: 6px; background: #fefffd; font-size: .76rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stage[data-demo="nav-shrink"], .stage[data-demo="sticky-cta"], .stage[data-demo="back-top"], .stage[data-demo="scroll-color"] {
  --demo-bg: #f5eddc;
  --demo-ink: #5e451d;
}
.practical-scroll { width: 75%; }
.practical-scroll .scroll-moving { padding-top: 21px; }
.shrink-nav { position: absolute; inset: 0 0 auto; height: 36px; display: grid; place-items: center; background: #957542; color: white; font-size: .76rem; animation: shrink-nav 4.8s ease-in-out infinite; }
@keyframes shrink-nav {
  0%, 16%, 100% { height: 36px; }
  52%, 77% { height: 20px; }
}
.sticky-cta-bar, .back-top-chip { position: absolute; display: grid; place-items: center; background: #8b6937; color: white; font-size: .68rem; animation: scroll-cta 4.8s ease-in-out infinite; }
.sticky-cta-bar { inset: auto 5px 5px; min-height: 20px; border-radius: 5px; }
.back-top-chip { inset: auto 4px 5px auto; width: 27px; aspect-ratio: 1; border-radius: 50%; }
@keyframes scroll-cta {
  0%, 28%, 100% { transform: translateY(30px); opacity: 0; }
  53%, 77% { transform: translateY(0); opacity: 1; }
}
.scroll-color-screen { position: relative; width: 76%; height: 68%; overflow: hidden; display: grid; place-items: center; border-radius: 8px; background: #f3d9af; color: #614324; animation: scroll-color 4.8s ease-in-out infinite; }
.scroll-color-screen i { position: absolute; inset: var(--stripe,18%) 8% auto; height: 4px; border-radius: 4px; background: currentColor; opacity: .22; animation: sample-scroll 4.8s ease-in-out infinite; }
.scroll-color-screen i:nth-child(2) { --stripe: 83%; }
.scroll-color-screen b { font-size: .86rem; }
@keyframes scroll-color {
  0%, 18%, 100% { background: #f3d9af; color: #614324; }
  47%, 75% { background: #688978; color: #fff; }
}

.stage[data-demo="modal-in"], .stage[data-demo="bottom-sheet"], .stage[data-demo="drawer"], .stage[data-demo="dropdown-in"],
.stage[data-demo="toast-in"], .stage[data-demo="loading-button"], .stage[data-demo="compare-slider"], .stage[data-demo="input-focus"] {
  --demo-bg: #f7e9f1;
  --demo-ink: #783e60;
}
.overlay-demo { position: relative; isolation: isolate; overflow: hidden; width: 79%; height: 72%; border: 1px solid #e3c4d6; border-radius: 7px; background: #fff9fd; }
.overlay-demo::before { content: ""; position: absolute; inset: 12% 11% auto; height: 36%; border-radius: 4px; background: #edcedf; }
.overlay-demo::after { content: ""; position: absolute; z-index: -1; inset: 60% 11% auto; width: 51%; height: 4px; border-radius: 4px; background: #e6c6d9; box-shadow: 0 9px #edd9e5; }
.overlay-dim { position: absolute; z-index: 1; inset: 0; background: #3d1f39; opacity: 0; animation: overlay-dim 4.9s ease-in-out infinite; }
@keyframes overlay-dim {
  0%, 16%, 100% { opacity: 0; }
  42%, 76% { opacity: .43; }
}
.modal-window, .bottom-sheet, .drawer-panel { position: absolute; z-index: 2; display: grid; align-content: center; gap: 5px; background: #fff; color: #723d5c; font-size: .78rem; }
.modal-window { inset: 24% 13%; border-radius: 6px; padding: 3px; animation: modal-in 4.9s ease-in-out infinite; }
.modal-window i, .drawer-panel i { width: 70%; height: 3px; border-radius: 3px; background: #dbb9ce; margin-inline: auto; }
@keyframes modal-in {
  0%, 16%, 100% { opacity: 0; transform: scale(.83); }
  41%, 76% { opacity: 1; transform: scale(1); }
}
.bottom-sheet { inset: 46% 0 0; border-radius: 8px 8px 0 0; animation: bottom-sheet 4.9s cubic-bezier(.25,.71,.27,1) infinite; }
.bottom-sheet i { width: 27%; height: 3px; border-radius: 4px; background: #d7b2c6; margin-inline: auto; }
@keyframes bottom-sheet {
  0%, 17%, 100% { transform: translateY(105%); }
  42%, 76% { transform: none; }
}
.drawer-panel { inset: 0 auto 0 0; width: 59%; border-radius: 0 7px 7px 0; animation: drawer-slide 4.9s cubic-bezier(.25,.71,.27,1) infinite; }
.drawer-panel i:last-child { width: 48%; }
@keyframes drawer-slide {
  0%, 17%, 100% { transform: translateX(-105%); }
  42%, 76% { transform: none; }
}
.dropdown-mini { position: relative; width: 72%; height: 65%; }
.dropdown-mini > b { display: block; padding: 6px 5px; border-radius: 5px; background: #a15d82; color: white; font-size: .73rem; }
.dropdown-menu { display: grid; gap: 4px; margin-top: 3px; padding: 5px; border-radius: 5px; background: #fff; box-shadow: 0 4px 8px #57364825; transform-origin: top; animation: dropdown-in 4.5s ease-in-out infinite; }
.dropdown-menu i { font-size: .69rem; font-style: normal; }
@keyframes dropdown-in {
  0%, 17%, 100% { transform: scaleY(.1); opacity: 0; }
  39%, 75% { transform: scaleY(1); opacity: 1; }
}
.toast-sample { position: absolute; right: 5px; bottom: 5px; border-radius: 5px; padding: 4px 6px; background: #804567; color: white; font-size: .69rem; font-weight: 730; animation: toast-in 4.8s ease-in-out infinite; }
@keyframes toast-in {
  0%, 16%, 100% { transform: translateX(110%); opacity: 0; }
  41%, 73% { transform: none; opacity: 1; }
}
.loading-button { display: grid; place-items: center; width: 79px; height: 31px; border-radius: 7px; background: #914b75; color: #fff; font-size: .8rem; }
.loading-button > * { grid-area: 1 / 1; }
.loading-button b { animation: button-load-start 5.1s steps(1,end) infinite; }
.loading-button b:last-child { opacity: 0; animation-name: button-load-end; }
.loading-button i { width: 13px; aspect-ratio: 1; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; opacity: 0; animation: orbit .85s linear infinite, button-spinner 5.1s steps(1,end) infinite; }
@keyframes button-load-start {
  0%, 100% { opacity: 1; }
  21% { opacity: 0; }
}
@keyframes button-spinner {
  0%, 65%, 100% { opacity: 0; }
  21% { opacity: 1; }
}
@keyframes button-load-end {
  0%, 100% { opacity: 0; }
  65% { opacity: 1; }
}
.compare-frame { display: block; position: relative; isolation: isolate; width: 80%; height: 68%; overflow: hidden; border-radius: 7px; background: #d1b8cd; }
.compare-frame b { position: absolute; inset: auto auto 6px 7px; font-size: .71rem; }
.compare-after { position: absolute; inset: 0; background: #72486d; color: white; animation: compare-reveal 5s ease-in-out infinite; }
.compare-after b { inset: auto 7px 6px auto; }
.compare-handle { position: absolute; inset: 0 auto 0 18%; width: 2px; background: #fff; animation: compare-handle 5s ease-in-out infinite; }
.compare-handle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 15px; background: #fff; border-radius: 5px; transform: translate(-50%,-50%); }
@keyframes compare-reveal {
  0%, 100% { clip-path: inset(0 0 0 18%); }
  49% { clip-path: inset(0 0 0 78%); }
}
@keyframes compare-handle {
  0%, 100% { left: 18%; }
  49% { left: 78%; }
}
.focus-field { display: block; position: relative; width: 73%; height: 29px; border: 1px solid #c8a5bd; background: #fff; border-radius: 6px; text-align: left; color: #8e5b78; animation: input-focus 4.6s ease-in-out infinite; }
.focus-field b { position: absolute; inset: 5px auto auto 6px; padding: 1px 3px; background: #fff; font-size: .74rem; animation: input-label 4.6s ease-in-out infinite; }
.focus-field i { position: absolute; inset: 9px auto auto 11px; height: 10px; width: 1px; background: #9f507e; opacity: 0; animation: input-caret 4.6s steps(1,end) infinite; }
@keyframes input-focus {
  0%, 18%, 100% { border-color: #c8a5bd; box-shadow: none; }
  39%, 72% { border-color: #93436f; box-shadow: 0 0 0 2px #a9538138; }
}
@keyframes input-label {
  0%, 18%, 100% { transform: none; }
  39%, 72% { transform: translateY(-13px) scale(.83); }
}
@keyframes input-caret {
  0%, 48%, 65%, 100% { opacity: 0; }
  40%, 59% { opacity: 1; }
}
