/* ==========================================================================
   Demo stages: one tiny animated scene per term.
   Every size inside a stage is in em; the scene root sets font-size to 4cqw,
   so a scene scales with its card (the stage is 25em wide, 18.75em tall).
   Animations run only while the stage has .is-live (set by app.js when the
   card is on screen and animations are on).
   ========================================================================== */

.stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 12px;
  background: var(--st-bg);
  isolation: isolate;
  color: var(--st-ink);
  user-select: none;
  -webkit-user-select: none;
}
.s { position: absolute; inset: 0; font-size: 4cqw; line-height: 1.2; }

.stage:not(.is-live) *,
.stage:not(.is-live) *::before,
.stage:not(.is-live) *::after { animation-play-state: paused !important; }


/* ---------- shared primitives ---------- */
.s i, .s b { display: block; font-style: normal; }
.win {
  position: absolute; inset: 8% 7%;
  background: var(--st-paper);
  border-radius: .7em;
  box-shadow: 0 .35em 1.1em var(--st-shadow);
  overflow: hidden;
}
.bar { position: relative; height: 1.3em; border-bottom: 1px solid var(--st-line); background: var(--st-soft); }
.bar::before {
  content: ""; position: absolute; left: .6em; top: .45em;
  width: .4em; height: .4em; border-radius: 50%;
  background: var(--st-line);
  box-shadow: .6em 0 0 var(--st-line), 1.2em 0 0 var(--st-line);
}
.ln { height: .42em; width: var(--w, 70%); border-radius: 1em; background: var(--st-line); }
.ln.ink { background: var(--st-ink); opacity: .8; }
.ln.thick { height: .65em; }
.pill {
  display: inline-block; white-space: nowrap;
  font: 700 max(.72em, 9.5px)/1 var(--font-body);
  padding: .55em 1.1em; border-radius: 2em;
  background: var(--c); color: var(--on-c);
}
.lbl { font: 600 max(.68em, 9.5px)/1.25 var(--font-mono); color: var(--st-ink); opacity: .75; white-space: nowrap; }

/* fake mouse pointer */
.cur {
  position: absolute; z-index: 25; width: 1.5em; height: 1.5em; left: 50%; top: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l14 10.8-6.2 1.1 3.4 6.6-2.9 1.5-3.4-6.6L5 20.3z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain;
  pointer-events: none;
  filter: drop-shadow(0 .1em .15em rgba(0,0,0,.25));
}
.stage.hands-on .cur { opacity: 0; }

/* ======================= LAYOUT ======================= */

/* Hero Section */
.d-hero .hb {
  position: relative; margin: .5em; height: 58%;
  border-radius: .5em;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, var(--pal-2)));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
}
.d-hero .hb .ln { background: rgba(255,255,255,.92); }
.d-hero .hb .ln.thick { height: .8em; }
.d-hero .hb > * { animation: heroIn 4.8s cubic-bezier(.2,.8,.2,1) infinite both; }
.d-hero .hb > :nth-child(2) { animation-delay: .1s; }
.d-hero .hb > :nth-child(3) { animation-delay: .2s; }
.d-hero .hb > :nth-child(4) { animation-delay: .3s; }
.d-hero .hb .pill { background: #fff; color: #1b2340; margin-top: .3em; position: relative; }
.d-hero .hb .pill::after {
  content: ""; position: absolute; inset: -.25em; border-radius: 2em;
  border: .15em solid #fff; animation: ring 1.6s ease-out infinite;
}
.d-hero .tag {
  position: absolute; left: .5em; top: .45em;
  font: 700 max(.58em, 9.5px)/1 var(--font-mono); color: #fff; opacity: .85; letter-spacing: .08em;
}
.d-hero .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; margin: 0 .5em; }
.d-hero .row3 i { height: 2.4em; border-radius: .4em; background: var(--st-soft); }
@keyframes heroIn {
  0%, 68% { opacity: 1; transform: none; }
  78%, 86% { opacity: 0; transform: translateY(.9em); }
  100% { opacity: 1; transform: none; }
}
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* Responsive Layout */
.d-responsive .rf {
  position: absolute; top: 9%; bottom: 20%; left: 50%;
  width: 86%; transform: translateX(-50%);
  background: var(--st-paper);
  border: .3em solid var(--st-ink); border-radius: .7em;
  padding: .5em; overflow: hidden;
  container-type: inline-size; container-name: rf;
  animation: rfW 7.5s cubic-bezier(.6,0,.3,1) infinite;
}
.d-responsive .rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45em; }
.d-responsive .rh .ln { width: 3em; }
.d-responsive .rh .dots { display: flex; gap: .25em; }
.d-responsive .rh .dots i { width: 1.2em; height: .35em; border-radius: 1em; background: var(--st-line); }
.d-responsive .rg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.d-responsive .rg i { height: 3.2em; border-radius: .35em; background: var(--c2); }
.d-responsive .rg i:first-child { background: var(--c); }
@container rf (max-width: 15em) {
  .d-responsive .rg { grid-template-columns: repeat(2, 1fr); }
  .d-responsive .rg i:first-child { grid-column: span 2; height: 2.4em; }
  .d-responsive .rh .dots { display: none; }
}
@container rf (max-width: 8.5em) {
  .d-responsive .rg { grid-template-columns: 1fr; }
  .d-responsive .rg i:first-child { grid-column: auto; }
  .d-responsive .rg i { height: 2em; }
}
.d-responsive .dev { position: absolute; left: 0; right: 0; bottom: 6%; height: 1em; }
.d-responsive .dev span { position: absolute; left: 0; right: 0; text-align: center; opacity: 0; }
.d-responsive .dev .d1 { animation: rfL1 7.5s infinite; }
.d-responsive .dev .d2 { animation: rfL2 7.5s infinite; }
.d-responsive .dev .d3 { animation: rfL3 7.5s infinite; }
@keyframes rfW {
  0%, 24% { width: 86%; }
  33%, 57% { width: 54%; }
  66%, 90% { width: 28%; }
  100% { width: 86%; }
}
@keyframes rfL1 { 0%, 26% { opacity: 1; } 30%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rfL2 { 0%, 30% { opacity: 0; } 34%, 59% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes rfL3 { 0%, 63% { opacity: 0; } 67%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* Card Layout */
.d-card .cg { position: absolute; inset: 9% 7%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: .55em; }
.d-card .cc {
  background: var(--st-paper); border-radius: .5em; padding: .35em;
  display: flex; flex-direction: column; gap: .3em;
  box-shadow: 0 .1em .3em var(--st-shadow);
  animation: cardIn 5.4s cubic-bezier(.2,.8,.2,1) infinite both;
  animation-delay: calc(var(--i) * .09s);
}
.d-card .cc .im { flex: 1; border-radius: .3em; background: var(--c2); }
.d-card .cc:nth-child(5) .im { background: var(--c); }
.d-card .cc:nth-child(5) { animation-name: cardIn, cardLift; }
@keyframes cardIn {
  0%, 70% { opacity: 1; transform: none; }
  78%, 84% { opacity: 0; transform: translateY(.7em) scale(.92); }
  96%, 100% { opacity: 1; transform: none; }
}
@keyframes cardLift {
  0%, 18% { translate: 0 0; box-shadow: 0 .1em .3em var(--st-shadow); }
  26%, 52% { translate: 0 -.45em; box-shadow: 0 .9em 1.2em var(--st-shadow); }
  60%, 100% { translate: 0 0; box-shadow: 0 .1em .3em var(--st-shadow); }
}

/* Bento Grid */
.d-bento .bg {
  position: absolute; inset: 8% 7%;
  display: grid; gap: .45em;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  animation: bentoShift 7s cubic-bezier(.65,0,.35,1) infinite;
}
.d-bento .bg > i { border-radius: .55em; background: var(--st-paper); box-shadow: 0 .1em .3em var(--st-shadow); position: relative; overflow: hidden; animation: tilePop 7s cubic-bezier(.2,.9,.3,1.2) infinite both; animation-delay: calc(var(--i) * .07s); }
.d-bento .b1 { grid-column: 1; grid-row: 1 / 3; background: var(--c) !important; }
.d-bento .b2 { grid-column: 2 / 4; grid-row: 1; background: var(--c2) !important; }
.d-bento .b3 { grid-column: 2; grid-row: 2; }
.d-bento .b4 { grid-column: 3; grid-row: 2 / 4; background: color-mix(in srgb, var(--pal-2) 70%, var(--st-paper)) !important; }
.d-bento .b5 { grid-column: 1; grid-row: 3; }
.d-bento .b6 { grid-column: 2; grid-row: 3; background: var(--c2) !important; }
.d-bento .b1 .bars { position: absolute; left: .6em; right: .6em; bottom: .6em; height: 45%; display: flex; align-items: flex-end; gap: .3em; }
.d-bento .b1 .bars b { flex: 1; background: rgba(255,255,255,.85); border-radius: .15em; animation: barGrow 2.2s ease-in-out infinite alternate; }
.d-bento .b1 .bars b:nth-child(1) { height: 40%; }
.d-bento .b1 .bars b:nth-child(2) { height: 70%; animation-delay: .2s; }
.d-bento .b1 .bars b:nth-child(3) { height: 55%; animation-delay: .4s; }
.d-bento .b1 .bars b:nth-child(4) { height: 90%; animation-delay: .6s; }
.d-bento .b1 .ln { position: absolute; left: .6em; top: .7em; width: 45%; background: rgba(255,255,255,.9); }
.d-bento .ico { position: absolute; left: .45em; top: .45em; width: .9em; height: .9em; border-radius: 50%; background: var(--c); opacity: .8; }
@keyframes bentoShift {
  0%, 28% { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
  40%, 66% { grid-template-columns: 1.3fr 1fr 1.7fr; grid-template-rows: 1.5fr 1fr .8fr; }
  78%, 100% { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
}
@keyframes tilePop { 0%, 84% { transform: none; } 90% { transform: scale(.85); } 97%, 100% { transform: none; } }
@keyframes barGrow { to { transform: scaleY(.6); transform-origin: bottom; } }

/* Sidebar Layout */
.d-sidebar .sb {
  position: absolute; left: 0; top: 0; bottom: 0; width: 34%;
  background: var(--st-ink); padding: .65em .45em;
  display: flex; flex-direction: column; gap: .35em;
  animation: sbW 6.5s cubic-bezier(.6,0,.3,1) infinite;
}
.d-sidebar .sb .logo { width: 1em; height: 1em; border-radius: .3em; background: var(--c); margin: 0 0 .4em .25em; }
.d-sidebar .sb span { display: flex; align-items: center; gap: .4em; padding: .3em .3em; border-radius: .35em; animation: sbItem 6.5s infinite; }
.d-sidebar .sb span:nth-of-type(2) { animation-delay: -4.3s; }
.d-sidebar .sb span:nth-of-type(3) { animation-delay: -2.2s; }
.d-sidebar .sb span:nth-of-type(4) { animation: none; }
.d-sidebar .sb span b { flex: none; width: .65em; height: .65em; border-radius: .2em; background: var(--st-paper); opacity: .9; }
.d-sidebar .sb span .ln { flex: 1; width: auto; background: var(--st-paper); opacity: .55; animation: sbLbl 6.5s infinite; }
.d-sidebar .mn { position: absolute; top: 0; right: 0; bottom: 0; left: 34%; padding: .7em; display: flex; flex-direction: column; gap: .45em; animation: mnL 6.5s cubic-bezier(.6,0,.3,1) infinite; }
.d-sidebar .mn .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; margin-top: .2em; }
.d-sidebar .mn .grid2 i { height: 3em; border-radius: .4em; background: var(--st-soft); }
.d-sidebar .mn .grid2 i:first-child { background: var(--c2); }
@keyframes sbW { 0%, 40% { width: 34%; } 50%, 76% { width: 12%; } 86%, 100% { width: 34%; } }
@keyframes mnL { 0%, 40% { left: 34%; } 50%, 76% { left: 12%; } 86%, 100% { left: 34%; } }
@keyframes sbLbl { 0%, 38% { opacity: .55; } 44%, 80% { opacity: 0; } 88%, 100% { opacity: .55; } }
@keyframes sbItem { 0%, 30% { background: var(--c); } 33%, 100% { background: transparent; } }

/* Sticky Header */
.d-sticky-header .sh {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 2.2em;
  background: var(--c); display: flex; align-items: center; justify-content: space-between; padding: 0 .7em;
  animation: shShrink 5.5s ease-in-out infinite;
}
.d-sticky-header .sh .logo { width: 1em; height: 1em; border-radius: 50%; background: var(--on-c); opacity: .9; }
.d-sticky-header .sh span { display: flex; gap: .35em; }
.d-sticky-header .sh span i { width: 1.4em; height: .35em; border-radius: 1em; background: var(--on-c); opacity: .75; }
.d-sticky-header .pg { position: absolute; top: 2.6em; left: .7em; right: 1.5em; display: flex; flex-direction: column; gap: .5em; animation: pgScroll 5.5s ease-in-out infinite; }
.d-sticky-header .pg .big { height: 4.2em; border-radius: .45em; background: var(--c2); flex: none; }
.d-sticky-header .pg .two { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; flex: none; }
.d-sticky-header .pg .two i { height: 2.8em; border-radius: .4em; background: var(--st-soft); }
.d-sticky-header .sbar { position: absolute; right: .35em; top: 2.6em; bottom: .4em; width: .3em; border-radius: 1em; background: var(--st-soft); }
.d-sticky-header .sbar b { width: 100%; height: 40%; border-radius: 1em; background: var(--st-line); animation: thumb 5.5s ease-in-out infinite; }
@keyframes pgScroll { 0%, 12% { transform: translateY(0); } 48%, 62% { transform: translateY(-62%); } 92%, 100% { transform: translateY(0); } }
@keyframes thumb { 0%, 12% { transform: translateY(0); } 48%, 62% { transform: translateY(150%); } 92%, 100% { transform: translateY(0); } }
@keyframes shShrink {
  0%, 14% { height: 2.2em; box-shadow: none; }
  24%, 80% { height: 1.7em; box-shadow: 0 .4em .8em var(--st-shadow); }
  92%, 100% { height: 2.2em; box-shadow: none; }
}
@keyframes shShrinkTag { 0%, 14% { top: 2.6em; } 24%, 80% { top: 2.1em; } 92%, 100% { top: 2.6em; } }

/* Split Layout */
.d-split .sl {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 40%, var(--pal-3)));
  overflow: hidden;
  animation: slIn 5.5s cubic-bezier(.7,0,.2,1) infinite;
}
.d-split .sun { position: absolute; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--pal-2); right: 22%; top: 18%; }
.d-split .mt { position: absolute; left: -10%; right: -10%; bottom: 0; height: 55%; background: rgba(255,255,255,.35); clip-path: polygon(0 100%, 0 60%, 25% 20%, 45% 55%, 65% 10%, 100% 70%, 100% 100%); }
.d-split .mt2 { height: 35%; background: rgba(255,255,255,.55); clip-path: polygon(0 100%, 0 50%, 35% 10%, 60% 60%, 85% 30%, 100% 50%, 100% 100%); }
.d-split .sr { position: absolute; left: 50%; right: 0; top: 0; bottom: 0; padding: 0 1.1em; display: flex; flex-direction: column; justify-content: center; gap: .5em; animation: srIn 5.5s cubic-bezier(.7,0,.2,1) infinite; }
.d-split .inp { height: 1.3em; border: 1px solid var(--st-line); border-radius: .35em; }
.d-split .sr .pill { align-self: flex-start; }
.d-split .dv { position: absolute; left: 50%; top: 10%; bottom: 10%; width: .15em; margin-left: -.075em; background: var(--st-paper); z-index: 2; opacity: .9; }
@keyframes slIn { 0%, 66% { transform: none; } 76%, 82% { transform: translateX(-102%); } 96%, 100% { transform: none; } }
@keyframes srIn { 0%, 66% { transform: none; opacity: 1; } 76%, 82% { transform: translateX(40%); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }

/* ======================= COMPONENTS ======================= */

/* Tabs */
.d-tabs .tb { position: absolute; inset: 12% 8%; background: var(--st-paper); border-radius: .6em; box-shadow: 0 .3em 1em var(--st-shadow); overflow: hidden; }
.d-tabs .tr { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--st-line); }
.d-tabs .tr button {
  all: unset; cursor: pointer; text-align: center; padding: .75em 0;
  font: 700 .8em/1 var(--font-body); color: var(--st-ink); opacity: .45;
  animation: tabOn 6s infinite;
}
.d-tabs .tr button:nth-child(2) { animation-delay: -4s; }
.d-tabs .tr button:nth-child(3) { animation-delay: -2s; }
.d-tabs .ind { position: absolute; left: 0; bottom: -1px; width: 33.333%; height: .22em; background: var(--c); border-radius: .2em .2em 0 0; animation: tabInd 6s infinite; }
.d-tabs .tp { position: relative; height: calc(100% - 2.2em); }
.d-tabs .tp > div { position: absolute; inset: .8em; display: flex; flex-direction: column; gap: .45em; animation: tabPanel 6s infinite; }
.d-tabs .tp > .p1 { animation-delay: -4s; }
.d-tabs .tp > .p2 { animation-delay: -2s; }
.d-tabs .p0 .im { height: 3.6em; border-radius: .4em; background: var(--c2); }
.d-tabs .stars { display: flex; gap: .25em; }
.d-tabs .stars i { width: .8em; height: .8em; background: var(--pal-2); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.d-tabs .rv { display: flex; gap: .4em; align-items: center; }
.d-tabs .rv b { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--c2); flex: none; }
.d-tabs .steps { display: flex; align-items: center; gap: .3em; margin: .4em 0; }
.d-tabs .steps i { width: .9em; height: .9em; border-radius: 50%; background: var(--c); }
.d-tabs .steps i.off { background: var(--st-line); }
.d-tabs .steps b { flex: 1; height: .15em; background: var(--c); }
.d-tabs .steps b.off { background: var(--st-line); }
.d-tabs .cur { animation: tabCur 6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes tabOn { 0%, 30% { opacity: 1; color: var(--c); } 34%, 96% { opacity: .45; color: var(--st-ink); } 100% { opacity: 1; color: var(--c); } }
@keyframes tabPanel { 0%, 30% { opacity: 1; transform: none; } 33%, 97% { opacity: 0; transform: translateY(.4em); } 100% { opacity: 1; transform: none; } }
@keyframes tabInd {
  0%, 29% { transform: translateX(0); }
  35%, 62% { transform: translateX(100%); }
  68%, 95% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}
@keyframes tabCur {
  0% { left: 70%; top: 70%; }
  22%, 28% { left: 48%; top: 17%; scale: 1; }
  30% { scale: .8; } 32% { scale: 1; }
  45% { left: 60%; top: 62%; }
  56%, 62% { left: 76%; top: 17%; scale: 1; }
  64% { scale: .8; } 66% { scale: 1; }
  80% { left: 40%; top: 66%; }
  92%, 96% { left: 20%; top: 17%; scale: 1; }
  97.5% { scale: .8; }
  100% { left: 70%; top: 70%; scale: 1; }
}
.d-tabs.manual .tr button, .d-tabs.manual .tp > div, .d-tabs.manual .ind { animation: none; }
.d-tabs.manual .cur { display: none; }
.d-tabs.manual .tr button { opacity: .45; color: var(--st-ink); }
.d-tabs.manual .tr button.on { opacity: 1; color: var(--c); }
.d-tabs.manual .ind { transform: translateX(calc(var(--ti, 0) * 100%)); transition: transform .35s cubic-bezier(.5,0,.2,1); }
.d-tabs.manual .tp > div { opacity: 0; transform: translateY(.4em); transition: opacity .25s, transform .25s; }
.d-tabs.manual .tp > div.on { opacity: 1; transform: none; }

/* Accordion */
.d-accordion .ac { position: absolute; inset: 10% 9%; display: flex; flex-direction: column; gap: .4em; }
.d-accordion .ai { background: var(--st-paper); border-radius: .5em; box-shadow: 0 .1em .4em var(--st-shadow); overflow: hidden; }
.d-accordion .ah { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .7em .8em; cursor: pointer; }
.d-accordion .ah .ln { flex: none; }
.d-accordion .chev { margin-left: auto; }
.d-accordion .q { font: 800 max(.65em, 9.5px)/1 var(--font-mono); color: var(--c); }
.d-accordion .chev { width: .55em; height: .55em; border-right: .14em solid var(--st-ink); border-bottom: .14em solid var(--st-ink); transform: rotate(45deg); margin-top: -.25em; animation: accChev 6.6s infinite; }
.d-accordion .ab { display: grid; grid-template-rows: 0fr; animation: accOpen 6.6s cubic-bezier(.5,0,.2,1) infinite; }
.d-accordion .ab > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .35em; padding: 0 .8em; }
.d-accordion .ab > div::after { content: ""; height: .35em; flex: none; }
.d-accordion .ai:nth-child(2) .ab, .d-accordion .ai:nth-child(2) .chev { animation-delay: -4.4s; }
.d-accordion .ai:nth-child(3) .ab, .d-accordion .ai:nth-child(3) .chev { animation-delay: -2.2s; }
@keyframes accOpen { 0% { grid-template-rows: 0fr; } 6%, 28% { grid-template-rows: 1fr; } 34%, 100% { grid-template-rows: 0fr; } }
@keyframes accChev { 0% { transform: rotate(45deg); } 6%, 28% { transform: rotate(225deg); margin-top: .25em; } 34%, 100% { transform: rotate(45deg); } }
.d-accordion.manual .ab, .d-accordion.manual .chev { animation: none; }
.d-accordion.manual .ab { transition: grid-template-rows .35s cubic-bezier(.5,0,.2,1); }
.d-accordion.manual .chev { transition: transform .35s, margin .35s; }
.d-accordion.manual .ai.open .ab { grid-template-rows: 1fr; }
.d-accordion.manual .ai.open .chev { transform: rotate(225deg); margin-top: .25em; }

/* Modal / Dialog */
.d-modal .pgc { padding: .8em; display: flex; flex-direction: column; gap: .5em; }
.d-modal .pgc .row { display: flex; gap: .5em; align-items: center; }
.d-modal .pgc .row b { width: 2.4em; height: 2.4em; border-radius: .4em; background: var(--c2); flex: none; }
.d-modal .pgc .row div { flex: 1; display: flex; flex-direction: column; gap: .35em; }
.d-modal .del { position: absolute; left: .8em; bottom: .8em; }
.d-modal .dim { position: absolute; inset: 0; background: rgba(10,14,30,.5); opacity: 0; animation: mDim 5.6s infinite; }
.d-modal .dlg {
  position: absolute; left: 50%; top: 50%; width: 62%;
  translate: -50% -50%;
  background: var(--st-paper); border-radius: .7em; padding: .9em;
  display: flex; flex-direction: column; align-items: center; gap: .45em;
  box-shadow: 0 1em 2em rgba(0,0,0,.3);
  opacity: 0; animation: mDlg 5.6s cubic-bezier(.2,.9,.3,1.2) infinite;
}
.d-modal .ico { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--c); color: var(--on-c); font: 800 .9em/1.6em var(--font-body); text-align: center; width: 1.8em; height: 1.8em; line-height: 1.8em; }
.d-modal .btns { display: flex; gap: .4em; margin-top: .3em; }
.d-modal .btns .pill.ghost { background: var(--st-soft); color: var(--st-ink); }
.d-modal .cur { animation: mCur 5.6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes mDim { 0%, 20% { opacity: 0; } 26%, 70% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes mDlg { 0%, 20% { opacity: 0; transform: scale(.8); } 28%, 70% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: scale(.92); } }
@keyframes mCur {
  0% { left: 60%; top: 40%; }
  15%, 19% { left: 18%; top: 82%; scale: 1; } 20% { scale: .8; } 22% { scale: 1; }
  40% { left: 30%; top: 80%; }
  62%, 68% { left: 45%; top: 66%; scale: 1; } 69% { scale: .8; } 71% { scale: 1; }
  100% { left: 60%; top: 40%; }
}

/* Drawer */
.d-drawer .ph {
  position: absolute; top: 5%; bottom: 5%; left: 50%; aspect-ratio: 9 / 16; translate: -50% 0;
  background: var(--st-paper); border: .3em solid var(--st-ink); border-radius: 1.1em; overflow: hidden;
}
.d-drawer .top { display: flex; align-items: center; gap: .5em; padding: .6em .55em; }
.d-drawer .burger { display: flex; flex-direction: column; gap: .18em; }
.d-drawer .burger i { width: .9em; height: .14em; border-radius: 1em; background: var(--st-ink); }
.d-drawer .body { padding: 0 .55em; display: flex; flex-direction: column; gap: .4em; }
.d-drawer .body .im { height: 3em; border-radius: .4em; background: var(--c2); }
.d-drawer .dim { position: absolute; inset: 0; background: rgba(10,14,30,.5); opacity: 0; animation: mDim2 5.6s infinite; }
.d-drawer .dr {
  position: absolute; left: 0; top: 0; bottom: 0; width: 76%;
  background: var(--st-paper); padding: .7em .55em; display: flex; flex-direction: column; gap: .55em;
  box-shadow: .4em 0 1em rgba(0,0,0,.25);
  transform: translateX(-105%); animation: drIn 5.6s infinite;
}
.d-drawer .dr span { display: flex; align-items: center; gap: .35em; }
.d-drawer .dr span b { width: .6em; height: .6em; border-radius: .2em; background: var(--c); flex: none; }
.d-drawer .dr .hd { height: 1.8em; border-radius: .4em; background: var(--c); margin-bottom: .2em; }
.d-drawer .cur { animation: drCur 5.6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes mDim2 { 0%, 22% { opacity: 0; } 30%, 72% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes drIn {
  0%, 22% { transform: translateX(-105%); animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  32%, 72% { transform: none; animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  80%, 100% { transform: translateX(-105%); }
}
@keyframes drCur {
  0% { left: 62%; top: 75%; }
  16%, 20% { left: 41%; top: 13%; scale: 1; } 21.5% { scale: .8; } 23% { scale: 1; }
  45% { left: 56%; top: 50%; }
  66%, 71% { left: 58%; top: 40%; scale: 1; } 72.5% { scale: .8; } 74% { scale: 1; }
  100% { left: 62%; top: 75%; }
}

/* Dropdown */
.d-dropdown .dd { position: absolute; top: 10%; left: 50%; width: 68%; translate: -50% 0; }
.d-dropdown .ddb {
  display: flex; align-items: center; justify-content: space-between; gap: .5em;
  background: var(--st-paper); border: 1px solid var(--st-line); border-radius: .5em; padding: .6em .7em;
  box-shadow: 0 .1em .3em var(--st-shadow); position: relative;
}
.d-dropdown .ddb .lbls { position: relative; height: 1em; flex: 1; }
.d-dropdown .ddb .lbls b { position: absolute; left: 0; top: 0; font: 600 max(.74em, 9.5px)/1.35 var(--font-body); white-space: nowrap; }
.d-dropdown .ddb .l1 { animation: ddL1 5.6s infinite; }
.d-dropdown .ddb .l2 { animation: ddL2 5.6s infinite; opacity: 0; }
.d-dropdown .caret { width: 0; height: 0; border: .32em solid transparent; border-top-color: var(--st-ink); margin-top: .3em; animation: ddCaret 5.6s infinite; }
.d-dropdown .ddm {
  margin-top: .35em; background: var(--st-paper); border-radius: .5em; padding: .3em;
  box-shadow: 0 .5em 1.2em var(--st-shadow); transform-origin: top center;
  animation: ddOpen 5.6s cubic-bezier(.2,.9,.3,1) infinite;
}
.d-dropdown .ddm > span { display: flex; align-items: center; justify-content: space-between; padding: .45em .5em; border-radius: .35em; font: 500 max(.72em, 9.5px)/1.1 var(--font-body); }
.d-dropdown .ddm > span:nth-child(3) { animation: ddHi 5.6s infinite; }
.d-dropdown .ddm > span:nth-child(1) { animation: ddHi1 5.6s infinite; }
.d-dropdown .ck { width: .5em; height: .8em; border-right: .18em solid var(--c); border-bottom: .18em solid var(--c); transform: rotate(45deg) scale(0); margin-right: .3em; }
.d-dropdown .ddm > span:nth-child(1) .ck { animation: ddCk1 5.6s infinite; }
.d-dropdown .ddm > span:nth-child(3) .ck { animation: ddCk 5.6s infinite; }
.d-dropdown .cur { animation: ddCur 5.6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes ddOpen { 0%, 18% { opacity: 0; transform: translateY(-.6em) scaleY(.7); } 26%, 66% { opacity: 1; transform: none; } 72%, 100% { opacity: 0; transform: translateY(-.4em) scaleY(.85); } }
@keyframes ddCaret { 0%, 18% { transform: none; } 24%, 66% { transform: rotate(180deg) translateY(.3em); } 72%, 100% { transform: none; } }
@keyframes ddHi { 0%, 44% { background: transparent; } 48%, 66% { background: var(--c2); } 72%, 100% { background: transparent; } }
@keyframes ddHi1 { 0%, 30% { background: transparent; } 34%, 44% { background: var(--c2); } 48%, 100% { background: transparent; } }
@keyframes ddCk { 0%, 58% { transform: rotate(45deg) scale(0); } 62%, 90% { transform: rotate(45deg) scale(1); } 96%, 100% { transform: rotate(45deg) scale(0); } }
@keyframes ddCk1 { 0%, 58% { transform: rotate(45deg) scale(1); } 62%, 94% { transform: rotate(45deg) scale(0); } 100% { transform: rotate(45deg) scale(1); } }
@keyframes ddL1 { 0%, 64% { opacity: 1; } 68%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ddL2 { 0%, 64% { opacity: 0; } 68%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ddCur {
  0% { left: 70%; top: 85%; }
  14%, 18% { left: 66%; top: 18%; scale: 1; } 19.5% { scale: .8; } 21% { scale: 1; }
  32%, 40% { left: 46%; top: 33%; scale: 1; }
  52%, 58% { left: 48%; top: 56%; scale: 1; } 59.5% { scale: .8; } 61% { scale: 1; }
  100% { left: 70%; top: 85%; }
}

/* Tooltip */
.d-tooltip .icons { position: absolute; left: 0; right: 0; top: 52%; display: flex; justify-content: center; gap: 1.6em; }
.d-tooltip .ib { position: relative; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--st-paper); box-shadow: 0 .15em .5em var(--st-shadow); display: grid; place-items: center; cursor: pointer; }
.d-tooltip .ib svg { width: 1.2em; height: 1.2em; }
.d-tooltip .tt {
  position: absolute; left: 50%; bottom: calc(100% + .7em); translate: -50% 0;
  background: var(--st-ink); color: var(--st-paper);
  font: 600 max(.72em, 9.5px)/1 var(--font-body); white-space: nowrap; padding: .6em .8em; border-radius: .5em;
  opacity: 0; transform: translateY(.4em); pointer-events: none;
}
.d-tooltip .tt::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -.45em; border: .45em solid transparent; border-top-color: var(--st-ink); }
.d-tooltip .ib:nth-child(1) .tt { animation: ttShow 6s infinite; animation-delay: -4.6s; }
.d-tooltip .ib:nth-child(2) .tt { animation: ttShow 6s infinite; animation-delay: -2.6s; }
.d-tooltip .ib:nth-child(3) .tt { animation: ttShow 6s infinite; animation-delay: -.6s; }
.d-tooltip .cur { animation: ttCur 6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes ttShow { 0%, 6% { opacity: 0; transform: translateY(.4em); } 10%, 26% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(.4em); } }
@keyframes ttCur {
  0% { left: 30%; top: 82%; }
  12%, 30% { left: 31%; top: 60%; }
  42%, 63% { left: 50%; top: 60%; }
  75%, 96% { left: 69%; top: 60%; }
  100% { left: 30%; top: 82%; }
}
.d-tooltip.hands-on .tt { animation: none; transition: opacity .2s .15s, transform .2s .15s; }
.d-tooltip.hands-on .ib:hover .tt { opacity: 1; transform: none; }

/* Toast / Snackbar */
.d-toast .pgc { padding: .8em; display: flex; flex-direction: column; gap: .45em; }
.d-toast .pgc .im { height: 3.2em; border-radius: .45em; background: var(--c2); }
.d-toast .save { position: absolute; left: .8em; top: 7.6em; }
.d-toast .tst {
  position: absolute; right: .7em; bottom: .7em; display: flex; align-items: center; gap: .45em;
  background: var(--st-ink); color: var(--st-paper); padding: .5em .8em .5em .5em; border-radius: .6em;
  font: 600 max(.7em, 9.5px)/1 var(--font-body); white-space: nowrap;
  box-shadow: 0 .5em 1em rgba(0,0,0,.25);
}
.d-toast .tst b { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--c); position: relative; flex: none; }
.d-toast .tst b::after { content: ""; position: absolute; left: .5em; top: .3em; width: .35em; height: .65em; border-right: .15em solid var(--on-c); border-bottom: .15em solid var(--on-c); transform: rotate(45deg); }
.d-toast .t1 { animation: toast1 6s cubic-bezier(.2,.9,.3,1.1) infinite; }
.d-toast .t2 { animation: toast2 6s cubic-bezier(.2,.9,.3,1.1) infinite; }
.d-toast .cur { animation: toCur 6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes toast1 {
  0%, 14% { opacity: 0; transform: translateY(160%); }
  20%, 44% { opacity: 1; transform: none; }
  50%, 76% { opacity: 1; transform: translateY(-120%); }
  84%, 100% { opacity: 0; transform: translate(40%, -120%); }
}
@keyframes toast2 {
  0%, 44% { opacity: 0; transform: translateY(160%); }
  50%, 80% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateX(40%); }
}
@keyframes toCur {
  0% { left: 55%; top: 30%; }
  10%, 13% { left: 16%; top: 54%; scale: 1; } 14% { scale: .8; } 15.5% { scale: 1; }
  30% { left: 30%; top: 40%; }
  40%, 43% { left: 17%; top: 54%; scale: 1; } 44% { scale: .8; } 45.5% { scale: 1; }
  100% { left: 55%; top: 30%; }
}

/* Carousel */
.d-carousel .cv { position: absolute; left: 8%; right: 8%; top: 9%; bottom: 22%; border-radius: .7em; overflow: hidden; box-shadow: 0 .3em 1em var(--st-shadow); }
.d-carousel .ct { display: flex; width: 400%; height: 100%; animation: carMove 9s cubic-bezier(.7,0,.25,1) infinite; }
.d-carousel .sd { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; gap: .45em; padding: 0 2.6em; }
.d-carousel .sd .ln { background: rgba(255,255,255,.85); }
.d-carousel .sd .num { position: absolute; right: 1.6em; top: 50%; translate: 0 -50%; font: 800 3.4em/1 var(--font-display); color: rgba(255,255,255,.45); }
.d-carousel .sa { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, var(--pal-3))); }
.d-carousel .sb { background: linear-gradient(135deg, var(--pal-1), var(--pal-2)); }
.d-carousel .sc { background: linear-gradient(135deg, var(--pal-4), var(--pal-3)); }
.d-carousel .arr { position: absolute; top: 40%; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--st-paper); box-shadow: 0 .1em .3em var(--st-shadow); z-index: 2; }
.d-carousel .arr::after { content: ""; position: absolute; left: .55em; top: .5em; width: .45em; height: .45em; border-left: .14em solid var(--st-ink); border-bottom: .14em solid var(--st-ink); transform: rotate(45deg); }
.d-carousel .arr.l { left: 4%; }
.d-carousel .arr.r { right: 4%; transform: scaleX(-1); animation: arrTap 3s infinite; }
.d-carousel .dots { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; justify-content: center; gap: .35em; }
.d-carousel .dots i { width: .5em; height: .5em; border-radius: 1em; background: var(--st-line); animation: dotOn 9s infinite; }
.d-carousel .dots i:nth-child(2) { animation-delay: -6s; }
.d-carousel .dots i:nth-child(3) { animation-delay: -3s; }
@keyframes carMove {
  0%, 26% { transform: translateX(0); }
  33%, 59% { transform: translateX(-25%); }
  66%, 92% { transform: translateX(-50%); }
  100% { transform: translateX(-75%); }
}
@keyframes dotOn { 0%, 28% { width: 1.4em; background: var(--c); } 33%, 95% { width: .5em; background: var(--st-line); } 100% { width: 1.4em; background: var(--c); } }
@keyframes arrTap { 0%, 80% { scale: 1; } 86% { scale: .82; } 92%, 100% { scale: 1; } }

/* Skeleton Loading */
.d-skeleton .sk { position: absolute; inset: 11% 10%; display: grid; }
.d-skeleton .layer { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; }
.d-skeleton .row { display: flex; gap: .7em; align-items: center; background: var(--st-paper); border-radius: .6em; padding: .55em; box-shadow: 0 .1em .3em var(--st-shadow); }
.d-skeleton .row .av { width: 2.2em; height: 2.2em; border-radius: 50%; flex: none; }
.d-skeleton .row div { flex: 1; display: flex; flex-direction: column; gap: .4em; }
.d-skeleton .bone .av, .d-skeleton .bone .ln {
  background: linear-gradient(90deg, var(--st-line) 0%, var(--st-soft) 45%, var(--st-line) 90%);
  background-size: 250% 100%;
  animation: shimmer 1.3s linear infinite;
}
.d-skeleton .bone { animation: skBone 5.5s infinite; }
.d-skeleton .real { animation: skReal 5.5s infinite; opacity: 0; }
.d-skeleton .real .av { background: var(--c); }
.d-skeleton .real .row:nth-child(2) .av { background: var(--pal-1); }
.d-skeleton .real .row:nth-child(3) .av { background: var(--pal-3); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@keyframes skBone { 0%, 52% { opacity: 1; } 60%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes skReal { 0%, 52% { opacity: 0; } 60%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ======================= EFFECTS ======================= */

/* Hover Effect */
.d-hover .hr { position: absolute; left: 7%; right: 7%; top: 18%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.d-hover .hc {
  background: var(--st-paper); border-radius: .6em; padding: .4em; display: flex; flex-direction: column; gap: .35em;
  box-shadow: 0 .1em .3em var(--st-shadow); border: .12em solid transparent;
  animation: hovLift 6s cubic-bezier(.3,.7,.3,1) infinite both;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.d-hover .hc .im { height: 4.2em; border-radius: .4em; overflow: hidden; position: relative; background: var(--c2); }
.d-hover .hc .im b { position: absolute; inset: 0; background: radial-gradient(circle at 30% 70%, var(--c) 0 28%, transparent 29%), radial-gradient(circle at 75% 35%, var(--pal-2) 0 18%, transparent 19%); animation: hovZoom 6s cubic-bezier(.3,.7,.3,1) infinite both; transition: transform .35s; }
.d-hover .hc:nth-child(1), .d-hover .hc:nth-child(1) .im b { animation-delay: .9s; }
.d-hover .hc:nth-child(2), .d-hover .hc:nth-child(2) .im b { animation-delay: 2.4s; }
.d-hover .hc:nth-child(3), .d-hover .hc:nth-child(3) .im b { animation-delay: 3.9s; }
.d-hover .cur { animation: hovCur 6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes hovLift {
  0% { transform: none; box-shadow: 0 .1em .3em var(--st-shadow); border-color: transparent; }
  5%, 22% { transform: translateY(-.55em) scale(1.04); box-shadow: 0 1em 1.4em var(--st-shadow); border-color: var(--c); }
  27%, 100% { transform: none; box-shadow: 0 .1em .3em var(--st-shadow); border-color: transparent; }
}
@keyframes hovZoom { 0% { transform: none; } 5%, 22% { transform: scale(1.18); } 27%, 100% { transform: none; } }
@keyframes hovCur {
  0% { left: 45%; top: 92%; }
  15%, 36% { left: 22%; top: 45%; }
  40%, 61% { left: 50%; top: 45%; }
  65%, 86% { left: 77%; top: 45%; }
  100% { left: 45%; top: 92%; }
}
.d-hover.hands-on .hc, .d-hover.hands-on .hc .im b { animation: none; }
.d-hover.hands-on .hc:hover { transform: translateY(-.55em) scale(1.04); box-shadow: 0 1em 1.4em var(--st-shadow); border-color: var(--c); }
.d-hover.hands-on .hc:hover .im b { transform: scale(1.18); }

/* Scroll Reveal (JS drives scrolling + reveal) */
.d-scroll-reveal .vp { position: absolute; top: 1.3em; left: 0; right: 0; bottom: 0; overflow: hidden; }
.d-scroll-reveal.big.hands-on .vp { overflow-y: auto; }
.d-scroll-reveal .col { padding: .8em .9em 6em; display: flex; flex-direction: column; gap: 1.6em; }
.d-scroll-reveal .it { display: flex; gap: .7em; align-items: center; opacity: 0; transform: translateY(1.2em); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.8,.2,1); }
.d-scroll-reveal .it.in { opacity: 1; transform: none; }
.d-scroll-reveal .it .im { width: 4.5em; height: 3.2em; border-radius: .45em; background: var(--c2); flex: none; }
.d-scroll-reveal .it:nth-child(even) { flex-direction: row-reverse; }
.d-scroll-reveal .it:nth-child(even) .im { background: color-mix(in srgb, var(--pal-2) 70%, var(--st-paper)); }
.d-scroll-reveal .it div { flex: 1; display: flex; flex-direction: column; gap: .35em; }
.d-scroll-reveal .fold { position: absolute; left: 0; right: 0; bottom: 22%; border-top: 1px dashed var(--c); z-index: 2; pointer-events: none; }
.d-scroll-reveal .fold span { position: absolute; right: .5em; top: -1.4em; color: var(--c); }

/* Stagger Animation */
.d-stagger .lst { position: absolute; inset: 9% 10%; display: flex; flex-direction: column; justify-content: space-between; }
.d-stagger .sr {
  display: flex; align-items: center; gap: .55em; background: var(--st-paper); border-radius: .5em; padding: .4em .55em;
  box-shadow: 0 .1em .3em var(--st-shadow);
  animation: stgIn 4.6s cubic-bezier(.2,.8,.2,1) infinite both; animation-delay: calc(var(--i) * .12s);
}
.d-stagger .sr b { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--c); flex: none; }
.d-stagger .sr .ln { flex: none; }
.d-stagger .sr .lbl { margin-left: auto; }
.d-stagger .sr .lbl { color: var(--c); opacity: 1; }
@keyframes stgIn {
  0%, 60% { opacity: 1; transform: none; }
  68%, 78% { opacity: 0; transform: translateX(-1.4em); }
  88%, 100% { opacity: 1; transform: none; }
}

/* Smooth Transition */
.d-smooth .cols { position: absolute; inset: 10% 7%; display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.d-smooth .col { background: var(--st-paper); border-radius: .7em; padding: .8em; display: flex; flex-direction: column; align-items: center; justify-content: space-around; box-shadow: 0 .1em .3em var(--st-shadow); }
.d-smooth .col .lbl { opacity: 1; font-size: .8em; }
.d-smooth .col.smooth .lbl { color: var(--c); }
.d-smooth .sw { width: 3.2em; height: 1.7em; border-radius: 2em; background: var(--st-line); position: relative; animation: swTrack 3.6s infinite; }
.d-smooth .sw i { position: absolute; left: .2em; top: .2em; width: 1.3em; height: 1.3em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .2em rgba(0,0,0,.25); animation: swKnob 3.6s infinite; }
.d-smooth .bt { width: 70%; height: 1.9em; border-radius: .5em; background: var(--st-soft); animation: swBtn 3.6s infinite; }
.d-smooth .instant .sw, .d-smooth .instant .sw i, .d-smooth .instant .bt { animation-timing-function: steps(1, end); }
.d-smooth .smooth .sw, .d-smooth .smooth .sw i, .d-smooth .smooth .bt { animation-timing-function: cubic-bezier(.4,0,.2,1); }
@keyframes swTrack { 0%, 38% { background: var(--st-line); } 52%, 88% { background: var(--c); } 100% { background: var(--st-line); } }
@keyframes swKnob { 0%, 38% { transform: none; } 52%, 88% { transform: translateX(1.5em); } 100% { transform: none; } }
@keyframes swBtn { 0%, 38% { background: var(--st-soft); transform: none; box-shadow: none; } 52%, 88% { background: var(--c); transform: scale(1.08); box-shadow: 0 .4em .8em var(--st-shadow); } 100% { background: var(--st-soft); transform: none; box-shadow: none; } }

/* Glassmorphism */
.d-glass .s { background: linear-gradient(160deg, #1d2450, #2a1b47); }
.d-glass .blob { position: absolute; border-radius: 50%; }
.d-glass .b1 { width: 9em; height: 9em; background: var(--pal-1); left: 8%; top: 4%; animation: blobA 7s ease-in-out infinite alternate; }
.d-glass .b2 { width: 7em; height: 7em; background: var(--pal-3); right: 6%; top: 30%; animation: blobB 6s ease-in-out infinite alternate; }
.d-glass .b3 { width: 6em; height: 6em; background: var(--pal-4); left: 34%; bottom: -8%; animation: blobA 8s ease-in-out infinite alternate-reverse; }
.d-glass .gc {
  position: absolute; left: 50%; top: 50%; width: 58%; height: 56%; translate: -50% -50%;
  border-radius: .9em; padding: 1em;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(.7em) saturate(1.4); backdrop-filter: blur(.7em) saturate(1.4);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 .8em 2em rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4);
  display: flex; flex-direction: column; gap: .5em;
  animation: glassFloat 5s ease-in-out infinite alternate;
}
.d-glass .gc .av { width: 1.8em; height: 1.8em; border-radius: 50%; background: rgba(255,255,255,.7); }
.d-glass .gc .ln { background: rgba(255,255,255,.85); }
.d-glass .gc .ln.dim { background: rgba(255,255,255,.5); }
@keyframes blobA { to { transform: translate(5em, 2.5em) scale(1.15); } }
@keyframes blobB { to { transform: translate(-6em, -2em) scale(.9); } }
@keyframes glassFloat { from { transform: translateY(.3em) rotate(-2deg); } to { transform: translateY(-.3em) rotate(2deg); } }

/* Parallax Scrolling */
.d-parallax .s { background: linear-gradient(180deg, color-mix(in srgb, var(--pal-3) 70%, #fff), color-mix(in srgb, var(--pal-2) 60%, #fff)); }
.d-parallax .ly { position: absolute; left: -5%; right: -5%; }
.d-parallax .sun { position: absolute; left: 62%; top: 14%; width: 3em; height: 3em; border-radius: 50%; background: var(--pal-1); animation: px1 6s ease-in-out infinite alternate; }
.d-parallax .far { top: 30%; height: 90%; background: color-mix(in srgb, var(--c) 45%, #fff); clip-path: polygon(0 30%, 15% 8%, 30% 26%, 48% 2%, 66% 24%, 82% 6%, 100% 22%, 100% 100%, 0 100%); animation: px2 6s ease-in-out infinite alternate; }
.d-parallax .near { top: 52%; height: 90%; background: var(--c); clip-path: polygon(0 22%, 20% 2%, 38% 24%, 58% 6%, 78% 28%, 100% 4%, 100% 100%, 0 100%); animation: px3 6s ease-in-out infinite alternate; }
.d-parallax .fg { position: absolute; left: 10%; top: 30%; display: flex; flex-direction: column; gap: .45em; width: 45%; animation: px4 6s ease-in-out infinite alternate; }
.d-parallax .fg .ln { background: #fff; height: .7em; }
.d-parallax .fg .ln + .ln { height: .45em; }
.d-parallax .tagx { position: absolute; font: 700 max(.62em, 9.5px)/1 var(--font-mono); padding: .35em .5em; border-radius: .4em; background: rgba(255,255,255,.85); color: #1b2340; }
.d-parallax .far .tagx { left: 72%; top: 34%; }
.d-parallax .near .tagx { left: 12%; top: 32%; }
.d-parallax .fg .tagx { position: static; align-self: flex-start; }
.d-parallax .sun .tagx { left: 3.5em; top: .9em; }
@keyframes px1 { to { transform: translateY(-.4em); } }
@keyframes px2 { to { transform: translateY(-1.6em); } }
@keyframes px3 { to { transform: translateY(-4em); } }
@keyframes px4 { to { transform: translateY(-9em); } }

/* Scroll Snap */
.d-scroll-snap .ph { position: absolute; top: 6%; bottom: 6%; left: 50%; aspect-ratio: 9 / 16; translate: -50% 0; border: .3em solid var(--st-ink); border-radius: 1.1em; overflow: hidden; background: var(--st-paper); }
.d-scroll-snap .vp { position: absolute; inset: 0; overflow: hidden; scroll-snap-type: y mandatory; }
.d-scroll-snap .trk { animation: snap 7.5s infinite; }
.d-scroll-snap .pn { height: 100%; scroll-snap-align: start; display: grid; place-items: center; font: 800 3em/1 var(--font-display); color: rgba(255,255,255,.9); }
.d-scroll-snap .trk { height: 400%; }
.d-scroll-snap .trk .pn { height: 25%; }
.d-scroll-snap .pn:nth-child(1), .d-scroll-snap .pn:nth-child(4) { background: var(--c); }
.d-scroll-snap .pn:nth-child(2) { background: var(--pal-1); }
.d-scroll-snap .pn:nth-child(3) { background: var(--pal-4); }
.d-scroll-snap .side { position: absolute; left: calc(50% + 4.7em); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: .4em; }
.d-scroll-snap .side i { width: .5em; height: .5em; border-radius: 50%; background: var(--st-line); animation: snapDot 7.5s infinite; }
.d-scroll-snap .side i:nth-child(2) { animation-delay: -5s; }
.d-scroll-snap .side i:nth-child(3) { animation-delay: -2.5s; }
.d-scroll-snap .snaplbl { position: absolute; right: calc(50% + 5em); top: 18%; color: var(--c); opacity: 0; animation: snapLbl 2.5s infinite; animation-delay: .15s; }
@keyframes snap {
  0%, 12% { transform: translateY(0); animation-timing-function: cubic-bezier(.4,0,.6,1); }
  22% { transform: translateY(-8%); animation-timing-function: cubic-bezier(.3,1.5,.5,1); }
  29%, 45% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.4,0,.6,1); }
  55% { transform: translateY(-33%); animation-timing-function: cubic-bezier(.3,1.5,.5,1); }
  62%, 78% { transform: translateY(-50%); animation-timing-function: cubic-bezier(.4,0,.6,1); }
  88% { transform: translateY(-58%); animation-timing-function: cubic-bezier(.3,1.5,.5,1); }
  95%, 100% { transform: translateY(-75%); }
}
@keyframes snapDot { 0%, 25% { background: var(--c); transform: scale(1.3); } 29%, 95% { background: var(--st-line); transform: none; } 100% { background: var(--c); transform: scale(1.3); } }
@keyframes snapLbl { 0%, 60% { opacity: 0; transform: translateY(.3em); } 70%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.d-scroll-snap.big.hands-on .vp { overflow-y: auto; }
.d-scroll-snap.big.hands-on .trk { animation: none; height: auto; }
.d-scroll-snap.big.hands-on .trk .pn { height: var(--ph, 100%); }

/* Micro-interaction */
.d-micro .heart {
  position: absolute; left: 50%; top: 42%; width: 4.2em; height: 4.2em; translate: -50% -50%;
  border-radius: 50%; background: var(--st-paper); box-shadow: 0 .3em .9em var(--st-shadow);
  display: grid; place-items: center; cursor: pointer;
}
.d-micro .heart svg { width: 2.2em; height: 2.2em; overflow: visible; animation: hPop 3.6s infinite; }
.d-micro .heart path { fill: transparent; stroke: var(--st-ink); stroke-width: 2; animation: hFill 3.6s infinite; }
.d-micro .pt { position: absolute; left: 50%; top: 50%; width: .45em; height: .45em; margin: -.225em; border-radius: 50%; background: var(--heart); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: hBurst 3.6s cubic-bezier(.2,.8,.3,1) infinite; }
.d-micro .pt:nth-child(even) { background: var(--pal-2); width: .35em; height: .35em; }
.d-micro .cnt { position: absolute; left: 50%; top: 66%; translate: -50% 0; height: 1.2em; overflow: hidden; font: 700 .9em/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.d-micro .cnt span { display: block; animation: hCnt 3.6s cubic-bezier(.3,1.4,.5,1) infinite; }
.d-micro .tg { position: absolute; left: 50%; top: 82%; translate: -50% 0; width: 2.6em; height: 1.4em; border-radius: 2em; background: var(--st-line); animation: tgT 3.6s infinite; }
.d-micro .tg i { position: absolute; top: .15em; left: .15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .2em rgba(0,0,0,.3); animation: tgK 3.6s cubic-bezier(.3,1.5,.5,1) infinite; }
.d-micro .cur { animation: hCur 3.6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes hPop { 0%, 30% { transform: scale(1); } 34% { transform: scale(.7); } 42% { transform: scale(1.35); } 50% { transform: scale(.92); } 56%, 100% { transform: scale(1); } }
@keyframes hFill { 0%, 33% { fill: transparent; stroke: var(--st-ink); } 37%, 92% { fill: var(--heart); stroke: var(--heart); } 100% { fill: transparent; stroke: var(--st-ink); } }
@keyframes hBurst { 0%, 35% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.5); } 38% { opacity: 1; } 55% { opacity: 0; transform: rotate(var(--a)) translateY(-2.4em) scale(1); } 100% { opacity: 0; } }
@keyframes hCnt { 0%, 36% { transform: translateY(0); } 44%, 92% { transform: translateY(-1.2em); } 100% { transform: translateY(0); } }
@keyframes tgT { 0%, 60% { background: var(--st-line); } 64%, 92% { background: var(--c); } 100% { background: var(--st-line); } }
@keyframes tgK { 0%, 60% { transform: none; } 66%, 92% { transform: translateX(1.2em); } 98%, 100% { transform: none; } }
@keyframes hCur {
  0% { left: 70%; top: 85%; }
  24%, 32% { left: 52%; top: 45%; scale: 1; } 34% { scale: .8; } 36% { scale: 1; }
  54%, 60% { left: 53%; top: 86%; scale: 1; } 62% { scale: .8; } 64% { scale: 1; }
  100% { left: 70%; top: 85%; }
}
.d-micro.hands-on .heart svg, .d-micro.hands-on .heart path, .d-micro.hands-on .pt, .d-micro.hands-on .cnt span, .d-micro.hands-on .tg, .d-micro.hands-on .tg i { animation: none; }
.d-micro.hands-on .heart path { transition: fill .2s, stroke .2s; }
.d-micro.hands-on.liked .heart path { fill: var(--heart); stroke: var(--heart); }
.d-micro.hands-on.liked .cnt span { transform: translateY(-1.2em); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.d-micro.hands-on .cnt span { transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.d-micro.hands-on.pop .heart svg { animation: hPopOnce .5s ease-out; }
.d-micro.hands-on.pop .pt { animation: hBurstOnce .6s cubic-bezier(.2,.8,.3,1); }
.d-micro.hands-on .tg { transition: background .25s; }
.d-micro.hands-on .tg i { transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.d-micro.hands-on .tg.on { background: var(--c); }
.d-micro.hands-on .tg.on i { transform: translateX(1.2em); }
@keyframes hPopOnce { 0% { transform: scale(.7); } 45% { transform: scale(1.35); } 75% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes hBurstOnce { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.5); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-2.4em) scale(1); } }

/* ======================= MOTION BASICS ======================= */
.mb-floor { position: absolute; left: 10%; right: 10%; height: 0; border-top: .12em dashed var(--st-line); }
.mb-ghost { position: absolute; border: .12em dashed var(--st-line); border-radius: .8em; }
.mb-obj { position: absolute; border-radius: .8em; background: var(--c); box-shadow: 0 .5em 1em var(--st-shadow); }
.mb-obj::after { content: ""; position: absolute; left: 22%; top: 22%; width: 30%; height: 30%; border-radius: 50%; background: rgba(255,255,255,.55); }
.mb-read { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; }
.mb-read .lbl { font-size: max(.62em, 9.5px); opacity: .9; }

/* Fade */
.d-fade .mb-ghost, .d-fade .mb-obj { left: 50%; top: 40%; width: 5em; height: 5em; translate: -50% -50%; }
.d-fade .mb-obj { animation: fadeIO 3.2s ease-in-out infinite alternate; }
.d-fade .meter { position: absolute; left: 30%; right: 30%; bottom: 21%; height: .45em; border-radius: 1em; background: var(--st-line); overflow: hidden; }
.d-fade .meter i { height: 100%; background: var(--c); transform-origin: left; animation: fadeMeter 3.2s ease-in-out infinite alternate; }
.d-fade .meter-l { position: absolute; left: 30%; right: 30%; bottom: 13%; display: flex; justify-content: space-between; }
@keyframes fadeIO { 0%, 12% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes fadeMeter { 0%, 12% { transform: scaleX(1); } 88%, 100% { transform: scaleX(0); } }

/* Slide */
.d-slide .mb-ghost, .d-slide .mb-obj { left: 50%; top: 42%; width: 4.5em; height: 4.5em; margin: -2.25em 0 0 -2.25em; }
.d-slide .mb-obj { animation: slideX 3.4s cubic-bezier(.2,.8,.2,1) infinite; }
.d-slide .mb-obj.tr1 { opacity: .25; animation-delay: .06s; box-shadow: none; }
.d-slide .mb-obj.tr2 { opacity: .12; animation-delay: .12s; box-shadow: none; }
.d-slide .arrow { position: absolute; left: 14%; top: 74%; width: 72%; height: .12em; background: var(--st-line); }
.d-slide .arrow::after { content: ""; position: absolute; right: -.1em; top: -.35em; border: .4em solid transparent; border-left: .6em solid var(--st-line); border-right: 0; }
@keyframes slideX {
  0%, 10% { transform: translateX(-11em); opacity: 0; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  14% { opacity: 1; }
  40%, 66% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.7,0,.8,.3); }
  88% { opacity: 1; }
  92%, 100% { transform: translateX(11em); opacity: 0; }
}

/* Scale */
.d-scale .mb-ghost, .d-scale .mb-obj { left: 50%; top: 42%; width: 6em; height: 6em; margin: -3em 0 0 -3em; }
.d-scale .mb-obj { animation: scalePop 3.2s infinite; }
.d-scale .mini { position: absolute; left: 50%; top: 42%; width: 1.2em; height: 1.2em; margin: -.6em; border: .12em dashed var(--c); border-radius: .3em; }
@keyframes scalePop {
  0% { transform: scale(.2); animation-timing-function: cubic-bezier(.3,1.6,.5,1); }
  28%, 70% { transform: scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  90%, 100% { transform: scale(.2); }
}

/* Easing */
.d-easing .lanes { position: absolute; inset: 14% 8% 14%; display: flex; flex-direction: column; justify-content: space-between; }
.d-easing .lane { display: grid; grid-template-columns: 5.6em 1fr; align-items: center; gap: .5em; }
.d-easing .lane .lbl { font-size: max(.7em, 9.5px); opacity: 1; }
.d-easing .trk { position: relative; height: 2.2em; border-bottom: .12em dashed var(--st-line); }
.d-easing .ball { position: absolute; left: 0; bottom: .2em; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--c); animation: easeRun 2.4s infinite alternate; }
.d-easing .e1 .ball { animation-timing-function: linear; background: var(--st-ink); }
.d-easing .e2 .ball { animation-timing-function: cubic-bezier(.6,0,1,1); background: var(--pal-4); }
.d-easing .e3 .ball { animation-timing-function: cubic-bezier(0,0,.3,1); }
@keyframes easeRun { 0%, 8% { left: 0; } 92%, 100% { left: calc(100% - 1.8em); } }

/* Spring */
.d-spring .wall { position: absolute; left: 8%; top: 28%; width: .5em; height: 42%; border-radius: .2em; background: var(--st-ink); }
.d-spring .coil { position: absolute; left: calc(8% + .5em); top: 49%; width: 4em; height: 1.6em; margin-top: -.8em; transform-origin: left center; animation: coil 4.2s infinite; }
.d-spring .coil svg { width: 100%; height: 100%; display: block; }
.d-spring .coil polyline { fill: none; stroke: var(--st-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.d-spring .blk { position: absolute; left: calc(8% + 4.5em); top: 49%; width: 3em; height: 3em; margin-top: -1.5em; border-radius: .6em; background: var(--c); box-shadow: 0 .4em .8em var(--st-shadow); animation: springX 4.2s infinite; }
.d-spring .target { position: absolute; left: calc(8% + 12em); top: 22%; height: 54%; border-left: .12em dashed var(--c); }
.d-spring .target .lbl { position: absolute; top: -1.5em; left: -1.6em; color: var(--c); opacity: 1; }
.d-spring .mb-floor { top: 75%; }
@keyframes springX {
  0% { transform: translateX(0); }
  12% { transform: translateX(9.4em); }
  19% { transform: translateX(6.6em); }
  26% { transform: translateX(8.2em); }
  33% { transform: translateX(7.2em); }
  40% { transform: translateX(7.7em); }
  46%, 52% { transform: translateX(7.5em); }
  62% { transform: translateX(-1.2em); }
  69% { transform: translateX(.9em); }
  76% { transform: translateX(-.5em); }
  83% { transform: translateX(.25em); }
  90%, 100% { transform: translateX(0); }
}
@keyframes coil {
  0% { transform: scaleX(1); }
  12% { transform: scaleX(3.35); }
  19% { transform: scaleX(2.65); }
  26% { transform: scaleX(3.05); }
  33% { transform: scaleX(2.8); }
  40% { transform: scaleX(2.925); }
  46%, 52% { transform: scaleX(2.875); }
  62% { transform: scaleX(.7); }
  69% { transform: scaleX(1.225); }
  76% { transform: scaleX(.875); }
  83% { transform: scaleX(1.0625); }
  90%, 100% { transform: scaleX(1); }
}

/* Bounce */
.d-bounce .mb-floor { top: 80%; left: 20%; right: 20%; border-top-style: solid; }
.d-bounce .ball { position: absolute; left: 50%; top: 8%; width: 3em; height: 3em; margin-left: -1.5em; border-radius: 50%; background: var(--c); transform-origin: 50% 100%; animation: bounceY 2.8s infinite; }
.d-bounce .shadow { position: absolute; left: 50%; top: 80%; width: 3.4em; height: .6em; margin: -.3em 0 0 -1.7em; border-radius: 50%; background: var(--st-shadow); animation: bounceSh 2.8s infinite; }
@keyframes bounceY {
  0% { transform: translateY(0); opacity: 0; animation-timing-function: cubic-bezier(.5,0,1,.5); }
  4% { opacity: 1; }
  30% { transform: translateY(10.5em) scale(1.25, .75); animation-timing-function: cubic-bezier(0,.5,.5,1); }
  33% { transform: translateY(9.9em) scale(.95, 1.05); }
  48% { transform: translateY(5.5em); animation-timing-function: cubic-bezier(.5,0,1,.5); }
  64% { transform: translateY(10.5em) scale(1.15, .85); animation-timing-function: cubic-bezier(0,.5,.5,1); }
  74% { transform: translateY(8.5em); animation-timing-function: cubic-bezier(.5,0,1,.5); }
  83% { transform: translateY(10.5em) scale(1.06, .94); animation-timing-function: cubic-bezier(0,.5,.5,1); }
  88% { transform: translateY(9.9em); animation-timing-function: cubic-bezier(.5,0,1,.5); }
  92%, 96% { transform: translateY(10.5em); opacity: 1; }
  100% { transform: translateY(10.5em); opacity: 0; }
}
@keyframes bounceSh {
  0% { transform: scale(.3); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 48% { transform: scale(.6); } 64% { transform: scale(1); } 74% { transform: scale(.85); } 83%, 96% { transform: scale(1); opacity: 1; } 100% { opacity: 0; }
}

/* Duration · Delay */
.d-duration .tl { position: absolute; inset: 12% 7% 12%; }
.d-duration .rows { position: absolute; left: 0; right: 0; top: 0; bottom: 1.8em; display: flex; flex-direction: column; justify-content: space-around; }
.d-duration .lane { display: grid; grid-template-columns: 5.4em 1fr; gap: .5em; align-items: center; }
.d-duration .lane .lbl { font-size: max(.64em, 9.5px); opacity: 1; }
.d-duration .trk { position: relative; height: 1.4em; border-radius: .35em; background: var(--st-soft); }
.d-duration .clip { position: absolute; top: 0; bottom: 0; border-radius: .35em; background: var(--c2); overflow: hidden; }
.d-duration .clip i { position: absolute; inset: 0; background: var(--c); transform-origin: left; transform: scaleX(0); }
.d-duration .wait { position: absolute; top: 0; bottom: 0; border-radius: .35em; background: repeating-linear-gradient(135deg, var(--st-line) 0 .3em, transparent .3em .6em); }
.d-duration .ca { left: 0; width: 20%; } .d-duration .ca i { animation: durA 3.4s infinite; }
.d-duration .cb { left: 0; width: 80%; } .d-duration .cb i { animation: durB 3.4s infinite; }
.d-duration .wc { left: 0; width: 40%; }
.d-duration .cc { left: 40%; width: 20%; } .d-duration .cc i { animation: durC 3.4s infinite; }
.d-duration .ruler { position: absolute; left: 5.9em; right: 0; bottom: 0; height: 1.4em; border-top: .12em solid var(--st-line); display: flex; justify-content: space-between; }
.d-duration .ruler span { font: 600 max(.6em, 9.5px)/1 var(--font-mono); padding-top: .5em; opacity: .7; width: 0; display: flex; justify-content: center; white-space: nowrap; }
.d-duration .ph { position: absolute; left: 5.9em; right: 0; top: -.4em; bottom: 0; pointer-events: none; }
.d-duration .ph i { position: absolute; top: 0; bottom: 0; width: .14em; margin-left: -.07em; background: var(--heart); animation: durPH 3.4s linear infinite; }
.d-duration .ph i::before { content: ""; position: absolute; left: -.3em; top: -.2em; border: .37em solid transparent; border-top: .5em solid var(--heart); }
@keyframes durPH { 0% { left: 0; } 44.1%, 100% { left: 100%; } }
@keyframes durA { 0% { transform: scaleX(0); } 8.8%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes durB { 0% { transform: scaleX(0); } 35.3%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes durC { 0%, 17.6% { transform: scaleX(0); } 26.5%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }

/* Loop */
.d-loop .spin { position: absolute; left: 50%; top: 42%; width: 6em; height: 6em; margin: -3em; border-radius: 50%; border: .55em solid var(--st-line); border-top-color: var(--c); border-right-color: var(--c); animation: spin 1s linear infinite; }
.d-loop .spin2 { width: 3.6em; height: 3.6em; margin: -1.8em; border-width: .45em; border-color: var(--st-line); border-bottom-color: var(--pal-1); animation-duration: 1.6s; animation-direction: reverse; }
.d-loop .inf { position: absolute; left: 50%; top: 42%; translate: -50% -50%; font: 800 1.2em/1 var(--font-display); color: var(--c); }
.d-loop .dots { position: absolute; left: 0; right: 0; bottom: 13%; display: flex; justify-content: center; gap: .45em; }
.d-loop .dots i { width: .7em; height: .7em; border-radius: 50%; background: var(--c); animation: dotPulse 1.2s ease-in-out infinite; }
.d-loop .dots i:nth-child(2) { animation-delay: .15s; }
.d-loop .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dotPulse { 0%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-.6em); opacity: 1; } }

/* ======================= TEXT & GRAPHICS ======================= */

/* Typewriter */
.d-typewriter .box { position: absolute; inset: 22% 8%; background: var(--st-paper); border-radius: .7em; box-shadow: 0 .3em 1em var(--st-shadow); padding: .9em 1em; display: flex; align-items: center; }
.d-typewriter .box::before { content: ""; position: absolute; left: .9em; top: -.9em; font: 700 max(.5em, 9.5px)/1 var(--font-mono); }
.d-typewriter .txt { white-space: pre-line; font: 700 1.25em/1.35 var(--font-display); word-break: keep-all; }
.d-typewriter .caret { display: inline-block; width: .12em; height: 1.1em; background: var(--c); vertical-align: -.15em; margin-left: .06em; animation: blink 1s steps(1) infinite; }
.d-typewriter .hdr { position: absolute; left: 8%; top: 10%; display: flex; gap: .3em; }
.d-typewriter .hdr i { width: .5em; height: .5em; border-radius: 50%; background: var(--st-line); }
@keyframes blink { 50% { opacity: 0; } }

/* Text Scramble */
.d-scramble .word { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; font: 700 1.5em/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.d-scramble .word .x { color: var(--c); }
.d-scramble .under { position: absolute; left: 20%; right: 20%; top: 62%; height: .15em; background: var(--st-line); }
.d-scramble .under i { height: 100%; background: var(--c); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Split Text */
.d-split-text .wd { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; display: flex; justify-content: center; gap: .08em; font: 800 2.2em/1 var(--font-display); }
.d-split-text .wd span { display: inline-block; padding: .05em .03em; border: .03em dashed transparent; border-radius: .1em; animation: letterUp 4s cubic-bezier(.2,.9,.3,1.3) infinite both; animation-delay: calc(var(--i) * .06s); }
.d-split-text .wd span:nth-child(odd) { color: var(--c); }
.d-split-text .wd .sp { width: .3em; }
.d-split-text .note { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; }
@keyframes letterUp {
  0%, 56% { opacity: 1; transform: none; border-color: transparent; }
  60% { border-color: var(--st-line); }
  68%, 76% { opacity: 0; transform: translateY(.7em) rotate(12deg); border-color: var(--st-line); }
  90% { opacity: 1; transform: none; border-color: var(--st-line); }
  100% { opacity: 1; transform: none; border-color: transparent; }
}

/* Count-up */
.d-count-up .cu { position: absolute; inset: 16% 12%; background: var(--st-paper); border-radius: .8em; box-shadow: 0 .3em 1em var(--st-shadow); padding: 1em 1.2em; display: flex; flex-direction: column; justify-content: center; gap: .3em; }
.d-count-up .num { font: 800 2.4em/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--c); }
.d-count-up .cap { font: 600 .75em/1.25 var(--font-body); opacity: .75; }
.d-count-up .bar2 { height: .45em; border-radius: 1em; background: var(--st-soft); overflow: hidden; margin-top: .4em; }
.d-count-up .bar2 i { height: 100%; width: 100%; background: var(--c); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Line Drawing */
.d-line-drawing svg { position: absolute; inset: 6% 10%; width: 80%; height: 88%; }
.d-line-drawing .dr { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.d-line-drawing .c1 { stroke: var(--c); stroke-width: 5; animation: drawC 5s infinite; }
.d-line-drawing .c2 { stroke: var(--c); stroke-width: 7; animation: drawK 5s infinite; }
.d-line-drawing .c3 { stroke: var(--st-ink); stroke-width: 3; animation: drawS 5s infinite; }
.d-line-drawing .pen { fill: var(--pal-1); }
@keyframes drawC { 0%, 58% { stroke-dashoffset: 0; opacity: 1; } 64% { stroke-dashoffset: 0; opacity: 0; } 65% { stroke-dashoffset: 1; opacity: 1; } 80%, 100% { stroke-dashoffset: 0; } }
@keyframes drawK { 0%, 58% { stroke-dashoffset: 0; opacity: 1; } 64% { stroke-dashoffset: 0; opacity: 0; } 65%, 80% { stroke-dashoffset: 1; opacity: 1; } 88%, 100% { stroke-dashoffset: 0; } }
@keyframes drawS { 0%, 58% { stroke-dashoffset: 0; opacity: 1; } 64% { stroke-dashoffset: 0; opacity: 0; } 65%, 86% { stroke-dashoffset: 1; opacity: 1; } 100% { stroke-dashoffset: 0; } }

/* Morphing */
.d-morph .blob { position: absolute; left: 30%; top: 46%; width: 7em; height: 7em; margin: -3.5em; background: linear-gradient(135deg, var(--c), var(--pal-1)); animation: morph 6s ease-in-out infinite; }
.d-morph .hb { position: absolute; left: 76%; top: 46%; width: 3.6em; height: 3.6em; margin: -1.8em; border-radius: .9em; background: var(--st-paper); box-shadow: 0 .3em .8em var(--st-shadow); }
.d-morph .hb i { position: absolute; left: .85em; right: .85em; height: .28em; border-radius: 1em; background: var(--st-ink); top: 50%; margin-top: -.14em; }
.d-morph .hb i:nth-child(1) { animation: hbTop 3s cubic-bezier(.6,0,.2,1) infinite; }
.d-morph .hb i:nth-child(2) { animation: hbMid 3s cubic-bezier(.6,0,.2,1) infinite; }
.d-morph .hb i:nth-child(3) { animation: hbBot 3s cubic-bezier(.6,0,.2,1) infinite; }
.d-morph .lbls { position: absolute; left: 30%; top: 84%; translate: -50% 0; }
.d-morph .lbls2 { position: absolute; left: 76%; top: 84%; translate: -50% 0; }
@keyframes morph {
  0%, 8% { border-radius: 50%; transform: rotate(0); }
  28%, 36% { border-radius: 14%; transform: rotate(90deg); }
  58%, 66% { border-radius: 62% 38% 30% 70% / 60% 30% 70% 40%; transform: rotate(150deg); }
  86%, 100% { border-radius: 50%; transform: rotate(360deg); }
}
@keyframes hbTop { 0%, 20% { transform: translateY(-.7em); } 40%, 70% { transform: rotate(45deg); } 90%, 100% { transform: translateY(-.7em); } }
@keyframes hbMid { 0%, 20% { opacity: 1; transform: none; } 32%, 78% { opacity: 0; transform: scaleX(.2); } 90%, 100% { opacity: 1; transform: none; } }
@keyframes hbBot { 0%, 20% { transform: translateY(.7em); } 40%, 70% { transform: rotate(-45deg); } 90%, 100% { transform: translateY(.7em); } }

/* Marquee */
.d-marquee .band { position: absolute; left: -10%; right: -10%; overflow: hidden; white-space: nowrap; }
.d-marquee .b1 { top: 24%; background: var(--c); color: var(--on-c); padding: .55em 0; transform: rotate(-4deg); }
.d-marquee .b2 { top: 60%; padding: .4em 0; }
.d-marquee .trk { display: inline-flex; width: max-content; }
.d-marquee .b1 .trk { animation: mq 9s linear infinite; }
.d-marquee .b2 .trk { animation: mq 12s linear infinite reverse; }
.d-marquee .b1 span { font: 800 1.15em/1 var(--font-display); letter-spacing: .02em; padding-right: .6em; }
.d-marquee .logo { display: inline-flex; align-items: center; gap: .35em; margin-right: 1.4em; padding: .45em .8em; border-radius: 2em; background: var(--st-paper); box-shadow: 0 .1em .3em var(--st-shadow); }
.d-marquee .logo b { width: 1em; height: 1em; background: var(--pal-1); }
.d-marquee .logo .ln { width: 2.6em; background: var(--st-ink); opacity: .6; }
.d-marquee .lg1 b { border-radius: 50%; }
.d-marquee .lg2 b { background: var(--pal-3); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.d-marquee .lg3 b { background: var(--pal-4); border-radius: .2em; }
.d-marquee .lg4 b { background: var(--c); border-radius: 50% 0; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Motion Path */
.d-motion-path svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-motion-path .route { fill: none; stroke: var(--st-line); stroke-width: 2.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.d-motion-path .plane { fill: var(--c); }
.d-motion-path .flag { fill: var(--pal-1); }
.d-motion-path .start { fill: var(--st-ink); }

/* ======================= SCREEN & MOUSE ======================= */

/* Page Transition */
.d-page-transition .nav { position: absolute; top: 1.3em; left: 0; right: 0; height: 1.9em; display: flex; align-items: center; gap: .6em; padding: 0 .7em; border-bottom: 1px solid var(--st-line); z-index: 3; background: var(--st-paper); }
.d-page-transition .nav .logo { width: .9em; height: .9em; border-radius: 50%; background: var(--c); margin-right: auto; }
.d-page-transition .nav b { font: 700 max(.68em, 9.5px)/1 var(--font-body); opacity: .5; }
.d-page-transition .nav b:nth-of-type(1) { animation: ptNav1 6s steps(1) infinite; }
.d-page-transition .nav b:nth-of-type(2) { animation: ptNav2 6s steps(1) infinite; }
.d-page-transition .pg { position: absolute; top: 3.2em; left: 0; right: 0; bottom: 0; padding: .7em; display: flex; flex-direction: column; gap: .45em; }
.d-page-transition .pa .hero { height: 4.2em; border-radius: .5em; background: var(--c2); }
.d-page-transition .pa { animation: ptA 6s steps(1) infinite; }
.d-page-transition .pb { animation: ptB 6s steps(1) infinite; }
.d-page-transition .pb .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.d-page-transition .pb .g i { height: 2.6em; border-radius: .4em; background: var(--st-soft); }
.d-page-transition .pb .g i:nth-child(1) { background: var(--pal-1); }
.d-page-transition .pb .g i:nth-child(5) { background: var(--pal-3); }
.d-page-transition .wipe { position: absolute; top: 3.2em; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--c); transform: translateX(-101%); animation: ptWipe 6s infinite; display: grid; place-items: center; }
.d-page-transition .wipe i { width: 2em; height: 2em; border-radius: 50%; border: .3em solid var(--on-c); border-top-color: transparent; animation: spin .8s linear infinite; }
.d-page-transition .cur { animation: ptCur 6s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes ptWipe {
  0%, 20% { transform: translateX(-101%); animation-timing-function: cubic-bezier(.7,0,.3,1); }
  30%, 36% { transform: none; animation-timing-function: cubic-bezier(.7,0,.3,1); }
  46%, 70% { transform: translateX(101%); }
  70.01% { transform: translateX(-101%); animation-timing-function: cubic-bezier(.7,0,.3,1); }
  80%, 86% { transform: none; animation-timing-function: cubic-bezier(.7,0,.3,1); }
  96%, 100% { transform: translateX(101%); }
}
@keyframes ptA { 0% { opacity: 1; } 33% { opacity: 0; } 83% { opacity: 1; } }
@keyframes ptB { 0% { opacity: 0; } 33% { opacity: 1; } 83% { opacity: 0; } }
@keyframes ptNav1 { 0% { opacity: 1; color: var(--c); } 33% { opacity: .5; color: var(--st-ink); } 83% { opacity: 1; color: var(--c); } }
@keyframes ptNav2 { 0% { opacity: .5; color: var(--st-ink); } 33% { opacity: 1; color: var(--c); } 83% { opacity: .5; color: var(--st-ink); } }
@keyframes ptCur {
  0% { left: 50%; top: 70%; }
  14%, 18% { left: 72%; top: 21%; scale: 1; } 19.5% { scale: .8; } 21% { scale: 1; }
  45% { left: 55%; top: 60%; }
  64%, 68% { left: 60%; top: 21%; scale: 1; } 69.5% { scale: .8; } 71% { scale: 1; }
  100% { left: 50%; top: 70%; }
}

/* Shared Element Transition */
.d-shared .lst { position: absolute; top: 1.3em; left: 0; right: 0; bottom: 0; padding: .7em; display: flex; flex-direction: column; gap: .5em; animation: shList 6.4s infinite; }
.d-shared .lst .rw { display: flex; gap: .55em; align-items: center; height: 3em; }
.d-shared .lst .th { width: 3.6em; height: 3em; border-radius: .4em; background: var(--st-soft); flex: none; }
.d-shared .lst .rw div { flex: 1; display: flex; flex-direction: column; gap: .35em; }
.d-shared .det { position: absolute; top: 1.3em; left: 0; right: 0; bottom: 0; padding: .7em; padding-top: 7.3em; display: flex; flex-direction: column; gap: .4em; opacity: 0; animation: shDet 6.4s infinite; }
.d-shared .back { position: absolute; left: .6em; top: 1.9em; z-index: 3; width: 1.3em; height: 1.3em; border-radius: 50%; background: rgba(255,255,255,.85); opacity: 0; animation: shDet 6.4s infinite; }
.d-shared .back::after { content: ""; position: absolute; left: .48em; top: .42em; width: .38em; height: .38em; border-left: .12em solid #1b2340; border-bottom: .12em solid #1b2340; transform: rotate(45deg); }
.d-shared .el {
  position: absolute; z-index: 2;
  background: linear-gradient(135deg, var(--c), var(--pal-1));
  left: .7em; top: 6.65em; width: 3.6em; height: 3em; border-radius: .4em;
  animation: shEl 6.4s cubic-bezier(.6,0,.2,1) infinite;
}
.d-shared .el::after { content: ""; position: absolute; right: 18%; top: 18%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.6); }
.d-shared .cur { animation: shCur 6.4s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes shEl {
  0%, 26% { left: .7em; top: 6.65em; width: 3.6em; height: 3em; border-radius: .4em; }
  40%, 70% { left: 0; top: 1.3em; width: 100%; height: 6.6em; border-radius: 0; }
  84%, 100% { left: .7em; top: 6.65em; width: 3.6em; height: 3em; border-radius: .4em; }
}
@keyframes shList { 0%, 26% { opacity: 1; } 32%, 78% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes shDet { 0%, 34% { opacity: 0; transform: translateY(.5em); } 42%, 70% { opacity: 1; transform: none; } 75%, 100% { opacity: 0; transform: translateY(.5em); } }
@keyframes shCur {
  0% { left: 60%; top: 80%; }
  18%, 23% { left: 16%; top: 42%; scale: 1; } 24.5% { scale: .8; } 26% { scale: 1; }
  50% { left: 40%; top: 70%; }
  64%, 69% { left: 12%; top: 20%; scale: 1; } 70.5% { scale: .8; } 72% { scale: 1; }
  100% { left: 60%; top: 80%; }
}

/* Pin · Scrollytelling */
.d-pin .phone { position: absolute; left: 6%; top: 14%; width: 30%; height: 72%; border: .28em solid var(--st-ink); border-radius: .9em; overflow: hidden; z-index: 2; background: var(--st-paper); }
.d-pin .scr { position: absolute; inset: 0; display: grid; place-items: center; font: 800 2.2em/1 var(--font-display); color: rgba(255,255,255,.95); animation: pinScr 7.5s infinite; }
.d-pin .scr.s1 { background: var(--c); }
.d-pin .scr.s2 { background: var(--pal-1); animation-delay: -5s; }
.d-pin .scr.s3 { background: var(--pal-4); animation-delay: -2.5s; }
.d-pin .pinlbl { position: absolute; left: 6%; top: 6%; display: flex; align-items: center; gap: .3em; color: var(--c); }
.d-pin .pinlbl i { width: .55em; height: .55em; border-radius: 50%; background: var(--c); }
.d-pin .vp { position: absolute; left: 42%; right: 6%; top: 8%; bottom: 8%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.d-pin .steps { animation: pinSteps 7.5s cubic-bezier(.6,0,.3,1) infinite; }
.d-pin .step { height: 15.75em; display: flex; flex-direction: column; justify-content: center; gap: .45em; }
.d-pin .step .lbl { color: var(--c); opacity: 1; }
.d-pin .bar3 { position: absolute; right: 2.5%; top: 14%; bottom: 14%; width: .3em; border-radius: 1em; background: var(--st-line); }
.d-pin .bar3 i { width: 100%; height: 33.3%; border-radius: 1em; background: var(--c); animation: pinBar 7.5s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes pinSteps { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-15.75em); } 66%, 92% { transform: translateY(-31.5em); } 100% { transform: translateY(0); } }
@keyframes pinBar { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(100%); } 66%, 92% { transform: translateY(200%); } 100% { transform: translateY(0); } }
@keyframes pinScr { 0%, 29% { opacity: 1; } 33%, 96% { opacity: 0; } 100% { opacity: 1; } }

/* Horizontal Scroll */
.d-horizontal .vp { position: absolute; top: 1.3em; left: 0; right: 1.4em; bottom: 0; overflow: hidden; display: flex; align-items: center; }
.d-horizontal .row { display: flex; gap: .6em; padding-left: .8em; animation: hzMove 6.5s cubic-bezier(.45,0,.55,1) infinite; }
.d-horizontal .row i { width: 6.5em; height: 8.5em; border-radius: .6em; flex: none; position: relative; }
.d-horizontal .row i:nth-child(1) { background: var(--c); }
.d-horizontal .row i:nth-child(2) { background: var(--pal-1); }
.d-horizontal .row i:nth-child(3) { background: var(--pal-3); }
.d-horizontal .row i:nth-child(4) { background: var(--pal-4); }
.d-horizontal .row i:nth-child(5) { background: var(--pal-5); }
.d-horizontal .row i::after { content: ""; position: absolute; left: .6em; right: 2em; bottom: .7em; height: .4em; border-radius: 1em; background: rgba(255,255,255,.8); }
.d-horizontal .sbar { position: absolute; right: .45em; top: 1.8em; bottom: .5em; width: .32em; border-radius: 1em; background: var(--st-soft); }
.d-horizontal .sbar b { height: 30%; border-radius: 1em; background: var(--c); animation: hzThumb 6.5s cubic-bezier(.45,0,.55,1) infinite; }
.d-horizontal .mouse { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; z-index: 3; width: 1.4em; height: 2.1em; border: .15em solid var(--st-ink); border-radius: 1em; background: var(--st-paper); }
.d-horizontal .mouse i { position: absolute; left: 50%; top: .3em; width: .2em; height: .45em; margin-left: -.1em; border-radius: 1em; background: var(--st-ink); animation: wheel 1.1s ease-in infinite; }
@keyframes hzMove { 0%, 10% { transform: translateX(0); } 80%, 88% { transform: translateX(-17em); } 100% { transform: translateX(0); } }
@keyframes hzThumb { 0%, 10% { transform: translateY(0); } 80%, 88% { transform: translateY(233%); } 100% { transform: translateY(0); } }
@keyframes wheel { 0% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(.6em); } }

/* Magnetic Button */
.d-magnetic .field { position: absolute; left: 50%; top: 50%; width: 11em; height: 11em; margin: -5.5em; border-radius: 50%; border: .12em dashed var(--st-line); }
.d-magnetic .field::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: .12em dashed var(--st-line); opacity: .6; }
.d-magnetic .mbtn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; font-size: .95em; padding: .8em 1.4em; box-shadow: 0 .4em 1em var(--st-shadow); animation: magBtn 6s infinite; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.d-magnetic .mbtn span { display: block; animation: magTxt 6s infinite; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.d-magnetic .cur { animation: magCur 6s ease-in-out infinite; }
@keyframes magCur {
  0% { left: 88%; top: 88%; }
  22% { left: 74%; top: 72%; }
  36% { left: 62%; top: 55%; }
  50% { left: 40%; top: 40%; }
  62% { left: 58%; top: 34%; }
  76% { left: 86%; top: 18%; }
  100% { left: 88%; top: 88%; }
}
@keyframes magBtn {
  0%, 22% { transform: none; }
  36% { transform: translate(1.1em, .6em); }
  50% { transform: translate(-1.2em, -1em); }
  62% { transform: translate(.8em, -1.3em); }
  70% { transform: translate(1.2em, -1.6em); animation-timing-function: cubic-bezier(.3,1.6,.5,1); }
  80%, 100% { transform: none; }
}
@keyframes magTxt {
  0%, 22% { transform: none; }
  36% { transform: translate(.4em, .2em); }
  50% { transform: translate(-.4em, -.35em); }
  62% { transform: translate(.3em, -.45em); }
  70% { transform: translate(.4em, -.5em); animation-timing-function: cubic-bezier(.3,1.6,.5,1); }
  80%, 100% { transform: none; }
}
.d-magnetic.hands-on .mbtn, .d-magnetic.hands-on .mbtn span { animation: none; }

/* Custom Cursor */
.d-custom-cursor .win { cursor: default; }
.d-custom-cursor .pgc { padding: .8em; display: flex; flex-direction: column; gap: .5em; }
.d-custom-cursor .tile { height: 3.6em; border-radius: .5em; background: var(--c2); }
.d-custom-cursor .lnk { position: absolute; left: 50%; top: 66%; translate: -50% -50%; font: 700 .75em/1 var(--font-body); padding: .7em 1.2em; border-radius: 2em; border: .15em solid var(--st-ink); }
.d-custom-cursor .dot, .d-custom-cursor .ring { position: absolute; z-index: 20; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.d-custom-cursor .dot { width: .55em; height: .55em; margin: -.275em; background: var(--c); animation: ccPath 5s cubic-bezier(.45,0,.55,1) infinite; }
.d-custom-cursor .ring { width: 2em; height: 2em; margin: -1em; border: .14em solid var(--c); display: grid; place-items: center; animation: ccPath 5s cubic-bezier(.45,0,.55,1) infinite, ccRing 5s infinite; animation-delay: .16s; }
.d-custom-cursor .ring b { font: 800 max(.32em, 9.5px)/1 var(--font-body); color: var(--on-c); opacity: 0; animation: ccTxt 5s infinite; animation-delay: .16s; }
@keyframes ccPath {
  0% { left: 22%; top: 82%; }
  22% { left: 30%; top: 32%; }
  38%, 58% { left: 50%; top: 68%; }
  76% { left: 78%; top: 34%; }
  100% { left: 22%; top: 82%; }
}
@keyframes ccRing { 0%, 34% { scale: 1; background: transparent; } 40%, 56% { scale: 2.2; background: var(--c); } 62%, 100% { scale: 1; background: transparent; } }
@keyframes ccTxt { 0%, 38% { opacity: 0; } 42%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
.stage.d-custom-cursor.hands-on, .stage.d-custom-cursor.hands-on * { cursor: none; }
.d-custom-cursor.hands-on .dot, .d-custom-cursor.hands-on .ring, .d-custom-cursor.hands-on .ring b { animation: none; }
.d-custom-cursor.hands-on .ring { transition: scale .25s, background .25s; }
.d-custom-cursor.hands-on .ring b { transition: opacity .2s; }
.d-custom-cursor.hands-on.over .ring { scale: 2.2; background: var(--c); }
.d-custom-cursor.hands-on.over .ring b { opacity: 1; }

/* 3D Tilt */
.d-tilt .scene { position: absolute; inset: 0; perspective: 28em; display: grid; place-items: center; }
.d-tilt .tc {
  position: relative; width: 44%; height: 76%; border-radius: .9em; overflow: hidden;
  background: linear-gradient(135deg, var(--c), var(--pal-4) 55%, var(--pal-3));
  box-shadow: 0 1.2em 2em var(--st-shadow);
  transform-style: preserve-3d;
  animation: tilt 5s ease-in-out infinite;
  padding: 1em; display: flex; flex-direction: column; gap: .5em;
}
.d-tilt .tc .chip { width: 1.8em; height: 1.4em; border-radius: .25em; background: var(--pal-2); }
.d-tilt .tc .ln { background: rgba(255,255,255,.85); }
.d-tilt .tc .sp { flex: 1; }
.d-tilt .tc .logo { align-self: flex-end; width: 2em; height: 2em; border-radius: 50%; border: .3em solid rgba(255,255,255,.8); }
.d-tilt .glare { position: absolute; inset: -50%; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 30%), rgba(255,255,255,.55), transparent 35%); animation: glare 5s ease-in-out infinite; pointer-events: none; }
@keyframes tilt {
  0%, 100% { transform: rotateX(12deg) rotateY(-16deg); }
  25% { transform: rotateX(-10deg) rotateY(-12deg); }
  50% { transform: rotateX(-12deg) rotateY(16deg); }
  75% { transform: rotateX(10deg) rotateY(12deg); }
}
@keyframes glare {
  0%, 100% { transform: translate(-12%, -12%); }
  25% { transform: translate(-12%, 12%); }
  50% { transform: translate(12%, 12%); }
  75% { transform: translate(12%, -12%); }
}
.d-tilt.hands-on .tc, .d-tilt.hands-on .glare { animation: none; }
.d-tilt.hands-on .tc { transition: transform .12s ease-out; }

/* Confetti */
.d-confetti canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.d-confetti .cbtn { position: absolute; left: 50%; top: 70%; translate: -50% -50%; font-size: 1.1em; cursor: pointer; padding: .8em 1.5em; box-shadow: 0 .4em 1em var(--st-shadow); transition: transform .15s; }
.d-confetti .cbtn:active { transform: scale(.94); }
.d-confetti .msg { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font: 800 1.2em/1.2 var(--font-display); }
.d-confetti .msg span { display: inline-block; }
.d-confetti.go .msg span { animation: msgPop .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes msgPop { 0% { transform: scale(.6); } 100% { transform: none; } }

/* bigger view in the detail dialog */
.stage.big { border-radius: 14px; }
