/* ═══════════════════════════════════════════════════════════════
   XODE — THE WALKTHROUGH, ANIMATED  (drawn by src/howto-scenes.js,
   played by src/howto.js)

   One editor in detail — top bar, tools, the panel on the left, the
   canvas and the inspector — and over it a short scene per step.
   Positions are percentages of the 16:9 stage. Type and sizes are em
   of a font size tied to the stage width (1em = 1% of it), so the
   whole picture scales as one image from a laptop down to a phone.

   The motion is Web Animations started by the player; these rules
   are the resting state, which for each piece is its last frame.
   Colours stay inside the site's own: ink, white, violet and lime.
   ═══════════════════════════════════════════════════════════════ */

/* The picture is drawn inside a shadow root on .hx-host, with this file
   linked again in there, so the page's own rules — editors and site
   pages use short names like .bar and .on too — never reach it. :host
   resets what would otherwise be inherited from the page. */
.hx-host { position: absolute; inset: 0; display: block; }
:host { all: initial; }

.hx-box { position: absolute; inset: 0; container-type: size; }
.hx {
  position: absolute; inset: 0; overflow: hidden;
  font-size: 10px; font-size: 1cqw;
  font-family: 'Inter', system-ui, sans-serif;
  color: #E9E9F0; background: #0B0C10;
  user-select: none; -webkit-user-select: none;
  cursor: pointer;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx svg { display: block; }
.hx i, .hx b, .hx em, .hx u, .hx s { font-style: normal; }
.hx-layer, .hx-old { position: absolute; inset: 0; pointer-events: none; }

/* ── the editor ────────────────────────────────────────────────── */
.hx-tb { position: absolute; left: 0; top: 0; width: 100%; height: 8%; background: #101118; border-bottom: 1px solid #1E1F29; }
.hx-logo { position: absolute; left: 1.2%; top: 1.3%; height: 5.4%; width: auto; }
.hx-name {
  position: absolute; display: flex; align-items: center; gap: .6em; padding: 0 .9em; border-radius: .5em;
  background: #181924; font-size: 1.05em; font-weight: 600; color: #E9E9F0; white-space: nowrap;
}
.hx-name i { width: .45em; height: .45em; border-right: 1.5px solid #8A8C99; border-bottom: 1.5px solid #8A8C99; transform: rotate(45deg) translateY(-.15em); }
.hx-mid { position: absolute; display: flex; gap: .5em; align-items: center; }
.hx-mid i, .hx-mid b {
  height: 100%; display: grid; place-items: center; border-radius: .45em; background: #181924;
  font-size: 1em; font-weight: 600; color: #A9ABB8;
}
.hx-mid i { width: 2.4em; }
.hx-mid i::before { content: '↶'; font-size: 1.2em; }
.hx-mid i + i::before { content: '↷'; }
.hx-mid b { padding: 0 .8em; font-size: .95em; }
.hx-btn {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: .45em; border-radius: .6em;
  font-size: 1em; font-weight: 700; white-space: nowrap; color: #E9E9F0; background: #181924;
  box-shadow: inset 0 0 0 1px #262836;
}
.hx-btn svg { width: .9em; height: .9em; }
.hx-btn.pri { background: linear-gradient(135deg, #6D4AFF, #8B6CFF); color: #FFFFFF; box-shadow: 0 .4em 1.2em -.4em rgba(109, 74, 255, .9); }

.hx-rail { position: absolute; left: 0; top: 8%; bottom: 0; width: 5%; background: #101118; border-right: 1px solid #1E1F29; }
.hx-tool { position: absolute; display: grid; place-items: center; border-radius: .5em; color: #8A8C99; }
.hx-tool svg { width: 1.7em; height: 1.7em; }
.hx-tool.on { background: rgba(109, 74, 255, .3); color: #FFFFFF; }

.hx-lp { position: absolute; left: 5%; top: 8%; bottom: 0; width: 15%; background: #101118; border-right: 1px solid #1E1F29; }
.hx-tabs { position: absolute; display: flex; gap: .4em; }
.hx-tabs b { flex: 1; display: grid; place-items: center; border-radius: .45em; font-size: .9em; font-weight: 700; color: #8A8C99; }
.hx-tabs b:first-child { background: #1B1C27; color: #FFFFFF; }
.hx-row {
  position: absolute; display: flex; align-items: center; gap: .7em; padding: 0 .8em; border-radius: .5em;
  font-size: 1em; font-weight: 600; color: #C9CBD6; white-space: nowrap; overflow: hidden;
}
.hx-row > i { flex-shrink: 0; width: 1.5em; height: 1.1em; border-radius: .25em; background: #2A2C3A; }
.hx-row.on { background: rgba(109, 74, 255, .2); color: #FFFFFF; }
.hx-row.on > i { background: #6D4AFF; }
.hx-row .hx-swap .o { padding: .05em .25em; margin-left: -.25em; border-radius: .25em; }
.hx-add {
  position: absolute; display: grid; place-items: center; border-radius: .55em;
  font-size: .95em; font-weight: 700; color: #C9F26B; box-shadow: inset 0 0 0 1px #2E3040;
}

.hx-cv {
  position: absolute; left: 20%; top: 8%; width: 59%; bottom: 0;
  background-color: #0D0E14;
  background-image: radial-gradient(#23242F 1px, transparent 1.3px);
  background-size: 1.6em 1.6em;
}

.hx-ip { position: absolute; right: 0; top: 8%; bottom: 0; width: 21%; background: #101118; border-left: 1px solid #1E1F29; }
.hx-lbl { position: absolute; font-size: .78em; font-weight: 800; letter-spacing: .12em; color: #6E7080; white-space: nowrap; }
.hx-lbr { position: absolute; font-size: .85em; font-weight: 700; color: #C9CBD6; }
.hx-lbr .hx-v { display: block; height: 1.2em; }
.hx-lbr .hx-v b { left: auto; right: 0; }
.hx-fld {
  position: absolute; display: flex; align-items: center; gap: .5em; padding: 0 .7em; border-radius: .45em;
  background: #181924; box-shadow: inset 0 0 0 1px #242635;
  font-size: .92em; font-weight: 600; color: #DADCE6; white-space: nowrap; overflow: hidden;
}
.hx-fld em { color: #6E7080; }
.hx-v { position: relative; flex: 1; align-self: stretch; overflow: hidden; }
.hx-v b { position: absolute; left: 0; top: 50%; margin-top: -.6em; line-height: 1.2em; font-weight: 600; white-space: nowrap; }
.hx-v .b { opacity: 0; }
.hx-sw { position: absolute; border-radius: .45em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hx-cb {
  position: absolute; display: grid; place-items: center; border-radius: .45em; background: #181924;
  box-shadow: inset 0 0 0 1px #242635; font-size: .88em; font-weight: 700; color: #A9ABB8;
}
.hx-cb.on { background: #6D4AFF; color: #FFFFFF; }
.hx-al { position: absolute; display: grid; place-items: center; border-radius: .45em; background: #181924; box-shadow: inset 0 0 0 1px #242635; color: #A9ABB8; }
.hx-al svg { width: 1.5em; height: 1.5em; }
.hx-slider { position: absolute; border-radius: 1em; background: #242635; overflow: hidden; }
.hx-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 1em; background: #6D4AFF; }
.hx-knob2 { position: absolute; width: 1.3em; height: 1.3em; margin: -.65em 0 0 -.65em; border-radius: 50%; background: #FFFFFF; box-shadow: 0 .2em .5em rgba(0, 0, 0, .6); }

/* ── the moving parts every scene uses ────────────────────────── */
.hx-clip { position: absolute; inset: 0; clip-path: inset(8% 21% 0 20%); }
.hx-bd { position: absolute; inset: 0; transform-origin: 50% 36%; }
.hx-cur { position: absolute; left: 52%; top: 62%; z-index: 30; pointer-events: none; }
.hx-cur svg { width: 2em; height: 2em; margin: -.21em 0 0 -.42em; transform-origin: 20% 12%; filter: drop-shadow(0 .2em .4em rgba(0, 0, 0, .55)); }
.hx-rip {
  position: absolute; z-index: 29; width: 3.6em; height: 3.6em; margin: -1.8em 0 0 -1.8em; border-radius: 50%;
  border: 2px solid rgba(201, 242, 107, .95); opacity: 0; pointer-events: none;
}
.hx-spot {
  position: absolute; opacity: 0; pointer-events: none; border-radius: .8em;
  box-shadow: 0 0 0 2px rgba(157, 133, 255, .95), 0 0 0 9999px rgba(5, 6, 10, .45), 0 0 2.5em rgba(109, 74, 255, .45);
}
.hx-swap { position: relative; display: inline-block; }
.hx-swap .n { position: absolute; left: 0; top: 0; white-space: nowrap; }
.hx-tw { display: inline-block; white-space: nowrap; }

.hx-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.05em; border-radius: 2em; white-space: nowrap;
  background: rgba(20, 21, 30, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 1em 2em -1em rgba(0, 0, 0, .8);
  font-size: 1em; font-weight: 700; color: #FFFFFF;
}
.hx-chip.lime { background: #C9F26B; color: #0B0B0F; box-shadow: 0 1em 2em -1em rgba(201, 242, 107, .6); }
.hx-tag {
  position: absolute; display: inline-flex; align-items: center; gap: .3em; padding: .3em .7em; border-radius: 1em; white-space: nowrap;
  font-size: .9em; font-weight: 800; background: #C9F26B; color: #0B0B0F;
}
.hx-tag svg { width: 1em; height: 1em; }
.hx-sel { position: absolute; border: 2px solid #6D4AFF; border-radius: .25em; opacity: 0; }
.hx-sel::before, .hx-sel::after { content: ''; position: absolute; width: .7em; height: .7em; background: #FFFFFF; border: 2px solid #6D4AFF; border-radius: 2px; }
.hx-sel::before { left: -.45em; top: -.45em; }
.hx-sel::after { right: -.45em; bottom: -.45em; }
.hx-ring { position: absolute; border-radius: .6em; box-shadow: 0 0 0 2px #C9F26B, 0 0 1.6em rgba(201, 242, 107, .4); opacity: 0; }
.hx-guide { position: absolute; width: 0; border-left: 1.5px dashed #C9F26B; opacity: 0; }
.hx-guide.h { height: 0; border-left: 0; border-top: 1.5px dashed #C9F26B; }
.hx-knob {
  position: absolute; width: 1.1em; height: 1.1em; margin: -.55em 0 0 -.55em; border-radius: 50%;
  background: #C9F26B; box-shadow: 0 0 0 .2em #0B0B0F;
}
.hx-link { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hx-link path { fill: none; stroke: #C9F26B; stroke-width: .42; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.hx-ghost { position: absolute; border: 2px dashed #2E3040; border-radius: .5em; opacity: 0; }
.hx-hov { position: absolute; border-radius: .5em; box-shadow: inset 0 0 0 1.5px #9D85FF; opacity: 0; }
.hx-tip {
  position: absolute; display: flex; align-items: center; padding: .45em .7em; border-radius: .45em; white-space: nowrap;
  background: #0B0B0F; box-shadow: 0 0 0 1px #2E3040, 0 .8em 1.6em -.6em rgba(0, 0, 0, .8);
  font-size: .9em; font-weight: 600; color: #FFFFFF; opacity: 0;
}
.hx-tip kbd { margin-left: .5em; padding: .15em .45em; border-radius: .3em; background: #2A2B36; font: 700 .85em/1 'JetBrains Mono', ui-monospace, monospace; color: #C9F26B; }
.hx-kbd {
  position: absolute; padding: .4em .75em; border-radius: .45em; white-space: nowrap; opacity: 0;
  background: #1B1C27; box-shadow: inset 0 -.2em 0 #0B0C10, 0 0 0 1px #33354A; font-size: .95em; font-weight: 800; color: #FFFFFF;
}
.hx-dim { position: absolute; inset: 0; background: rgba(5, 6, 10, .58); opacity: 0; }

/* the board's pages */
.hx-pg { position: absolute; border-radius: .5em; background: #F5F5F8; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 1em 2em -1em rgba(0, 0, 0, .8); }
.hx-pg > u { position: absolute; left: 0; top: -1.7em; text-decoration: none; font-size: .9em; font-weight: 600; color: #8A8C99; white-space: nowrap; }
.hx-pg > i { position: absolute; display: block; border-radius: .2em; }
.hx-pg > .n  { left: 6%; right: 6%; top: 7%; height: 6%; background: #DCDCE5; border-radius: .25em; }
.hx-pg > .h  { left: 8%; top: 22%; width: 50%; height: 9%; background: #0B0B0F; }
.hx-pg > .h2 { left: 8%; top: 35%; width: 36%; height: 5%; background: #CFCFDA; }
.hx-pg > .bt { left: 8%; top: 46%; width: 22%; height: 8%; border-radius: 1em; background: #6D4AFF; }
.hx-pg > .im { left: 64%; top: 20%; width: 28%; height: 36%; border-radius: .3em; background: linear-gradient(135deg, #C9BCFF, #6D4AFF); }
.hx-pg > .c1, .hx-pg > .c2, .hx-pg > .c3 { top: 64%; width: 26%; height: 26%; background: #ECE8FF; }
.hx-pg > .c1 { left: 8%; } .hx-pg > .c2 { left: 37%; } .hx-pg > .c3 { left: 66%; }
.hx-pg.l > .bt { background: #0B0B0F; } .hx-pg.l > .im { background: linear-gradient(135deg, #EEFBC8, #C9F26B); }
.hx-pg.l > .c1, .hx-pg.l > .c2, .hx-pg.l > .c3 { background: #F2FADD; }
.hx-pg.k { background: #15161F; } .hx-pg.k > .n { background: #2A2B36; } .hx-pg.k > .h { background: #FFFFFF; }
.hx-pg.k > .h2 { background: #4A4B58; } .hx-pg.k > .bt { background: #C9F26B; }
.hx-pg.k > .im { background: linear-gradient(135deg, #9D85FF, #3B2F6B); }
.hx-pg.k > .c1, .hx-pg.k > .c2, .hx-pg.k > .c3 { background: #23242F; }
.hx-pg.s > .bt { background: #9D85FF; } .hx-pg.s > .im { background: linear-gradient(135deg, #F1EDFF, #C9BCFF); }
.hx-pg.s > .c1, .hx-pg.s > .c2, .hx-pg.s > .c3 { background: #F4F2FF; }

/* a website page, opened */
.hx-big {
  position: absolute; left: 23%; top: 12%; width: 50%; height: 92%; overflow: hidden; border-radius: .6em .6em 0 0;
  background: #FAFAFC; box-shadow: 0 1.4em 3em -1.2em rgba(0, 0, 0, .85); transform-origin: 0 0;
}
.hx-page { position: absolute; inset: 0; background: #FAFAFC; color: #0B0B0F; }
.hx-page > * { position: absolute; display: block; }
.hx-page .nv { left: 5%; right: 5%; top: 4%; height: 4%; display: flex; align-items: center; gap: 3%; }
.hx-page .nv b { font-size: .95em; font-weight: 800; letter-spacing: .1em; margin-right: auto; color: #0B0B0F; }
.hx-page .nv i { width: 8%; height: 45%; border-radius: 1em; background: #DCDCE5; }
.hx-page .hh { left: 6%; top: 13%; font: 800 2.4em/1.02 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.035em; white-space: nowrap; transform-origin: 0 0; color: #0B0B0F; }
.hx-page .sub  { left: 6%; top: 27%; width: 40%; height: 1.8%; border-radius: 1em; background: #D2D2DC; }
.hx-page .sub2 { left: 6%; top: 31%; width: 30%; height: 1.8%; border-radius: 1em; background: #D2D2DC; }
.hx-page .hb { left: 6%; top: 35.5%; padding: .7em 1.4em; border-radius: 2em; background: #6D4AFF; color: #FFFFFF; font-size: 1.05em; font-weight: 700; white-space: nowrap; }
.hx-page .him { left: 60%; top: 11%; width: 34%; height: 32%; border-radius: .6em; background: linear-gradient(135deg, #C9BCFF, #6D4AFF 65%, #2A1F5C); }
.hx-page .hk { top: 56%; width: 27%; height: 20%; border-radius: .6em; }
.hx-page .k1 { left: 6%; background: #ECE8FF; } .hx-page .k2 { left: 36.5%; background: #F2FADD; } .hx-page .k3 { left: 67%; background: #ECECF2; }
.hx-page .sw { left: 6%; top: 81%; font-size: 1.2em; font-weight: 800; color: #0B0B0F; }
.hx-page .k4 { left: 6%; top: 86%; width: 42%; height: 22%; background: linear-gradient(135deg, #E4DEFF, #C9BCFF); }
.hx-page .k5 { left: 52%; top: 86%; width: 42%; height: 22%; background: linear-gradient(135deg, #F2FADD, #DDF59A); }
.hx-page .ft { left: 0; right: 0; top: 114%; height: 16%; background: #0B0B0F; }
.hx-page .ft::before, .hx-page .ft::after { content: ''; position: absolute; left: 6%; border-radius: 1em; }
.hx-page .ft::before { top: 28%; width: 18%; height: 12%; background: #C9F26B; }
.hx-page .ft::after { top: 56%; width: 36%; height: 8%; background: #2A2B36; }
.hx-page.ct .fl { left: 6%; width: 46%; height: 5.5%; border-radius: .5em; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #E2E2EA; }
.hx-page.ct .f1 { top: 34%; } .hx-page.ct .f2 { top: 41.5%; } .hx-page.ct .f3 { top: 49%; height: 12%; }
.hx-page.ct .hb { top: 64.5%; }
.hx-page.ct .him { height: 50%; background: linear-gradient(135deg, #F1EDFF, #C9BCFF 60%, #9D85FF); }

.hx-ruler { position: absolute; width: 0; border-left: 1.5px solid #C9F26B; transform-origin: top; }
.hx-ruler::before, .hx-ruler::after { content: ''; position: absolute; left: -.5em; width: 1em; height: 0; border-top: 1.5px solid #C9F26B; }
.hx-ruler::before { top: 0; } .hx-ruler::after { bottom: 0; }
.hx-ruler b {
  position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap;
  padding: .25em .7em; border-radius: 1em; background: #C9F26B; color: #0B0B0F; font-size: .85em; font-weight: 800;
}
.hx-draw { position: absolute; display: flex; align-items: center; padding: 0 .5em; overflow: hidden; box-shadow: 0 0 0 1.5px #6D4AFF; }
.hx-draw span { font: 800 1.5em/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.02em; color: #0B0B0F; }

/* a portfolio page */
.hx-art {
  position: absolute; left: 33%; top: 11%; width: 33%; height: 86%; overflow: hidden; border-radius: .6em;
  background: #F7F6F2; color: #16121F; box-shadow: 0 1.4em 3em -1.2em rgba(0, 0, 0, .85); transform-origin: 0 0;
}
.hx-art > * { position: absolute; display: block; }
.hx-art .nv { left: 7%; right: 7%; top: 4%; height: 3%; display: flex; align-items: center; gap: 6%; }
.hx-art .nv b { font-size: .95em; font-weight: 800; margin-right: auto; }
.hx-art .nv i { width: 10%; height: .5em; border-radius: 1em; background: #D6D2C8; }
.hx-art .an { left: 7%; top: 11%; width: 86%; height: 8%; }
.hx-art .an b, .hx-art .an s {
  position: absolute; left: 0; top: 0; white-space: nowrap; text-decoration: none; transform-origin: 0 0;
  font: 800 3em/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.04em; color: #16121F;
}
.hx-art .an s, .hx-art .an .ph { color: #A8A39A; }
.hx-art .ro { left: 7%; top: 21.5%; width: 50%; height: 1.6%; border-radius: 1em; background: #C9C3B6; }
.hx-art .aim { left: 7%; right: 7%; top: 27%; height: 34%; border-radius: .6em; overflow: hidden; background: linear-gradient(135deg, #2A2B36, #6D4AFF 70%, #C9BCFF); }
.hx-art .aim i { position: absolute; inset: 0; opacity: 0; background: radial-gradient(60% 70% at 70% 30%, #EEFBC8, transparent 60%), linear-gradient(135deg, #0B0B0F, #3B4A16 55%, #C9F26B); }
.hx-art.is-new .aim i { opacity: 1; }
.hx-art .ak { top: 65%; width: 40%; height: 26%; border-radius: .6em; background: #FFFFFF; box-shadow: 0 0 0 1px #E8E4DA; }
.hx-art .ak::before { content: ''; position: absolute; left: 8%; right: 8%; top: 9%; height: 52%; border-radius: .4em; background: #E4DEFF; }
.hx-art .ak::after { content: ''; position: absolute; left: 8%; width: 60%; bottom: 14%; height: 7%; border-radius: 1em; background: #16121F; }
.hx-art .ak.c2::before { background: #EEFBC8; }
.hx-art .ak.l { left: 7%; } .hx-art .ak.r { left: 53%; }
.hx-art .bdg {
  left: 10.9%; top: 53.3%; width: 36.4%; height: 5.35%; display: flex; align-items: center; justify-content: center;
  border-radius: 2em; background: #C9F26B; overflow: hidden; white-space: nowrap;
}
.hx-art .bdg span { font: 800 1.05em/1 'Inter', sans-serif; color: #0B0B0F; }
.hx-art .ttl { left: 7%; top: 11%; font: 800 2em/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.03em; }
.hx-art.wk .g { width: 41%; height: 34%; border-radius: .6em; }
.hx-art.wk .g1 { left: 7%; top: 20%; background: linear-gradient(135deg, #C9BCFF, #6D4AFF); }
.hx-art.wk .g2 { left: 52%; top: 20%; background: linear-gradient(135deg, #EEFBC8, #C9F26B); }
.hx-art.wk .g3 { left: 7%; top: 57%; background: linear-gradient(135deg, #2A2B36, #0B0B0F); }
.hx-art.wk .g4 { left: 52%; top: 57%; background: linear-gradient(135deg, #F1EDFF, #C9BCFF); }
.hx-art.ab .ph { left: 7%; top: 12%; width: 30%; height: 20.5%; border-radius: 50%; background: linear-gradient(135deg, #C9BCFF, #6D4AFF); }
.hx-art.ab .ttl { left: 42%; top: 18%; }
.hx-art .tx { height: 1.4%; border-radius: 1em; background: #D6D2C8; left: 7%; }
.hx-art.ab .t1 { top: 40%; width: 86%; } .hx-art.ab .t2 { top: 45%; width: 80%; }
.hx-art.ab .t3 { top: 50%; width: 70%; } .hx-art.ab .t4 { top: 55%; width: 76%; }
.hx-art.ct .big { left: 7%; top: 12%; font: 800 3em/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.hx-art.ct .t1 { top: 25%; width: 70%; } .hx-art.ct .t2 { top: 30%; width: 50%; }
.hx-art.ct .mail { left: 7%; top: 38%; padding: .7em 1.2em; border-radius: 2em; background: #16121F; color: #FFFFFF; font: 600 1em/1 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
.hx-art.ct .so { top: 50%; width: 7%; height: 4.8%; border-radius: 50%; background: #E4DEFF; }
.hx-art.ct .s1 { left: 7%; } .hx-art.ct .s2 { left: 17%; background: #EEFBC8; } .hx-art.ct .s3 { left: 27%; background: #16121F; }
.hx-loupe {
  position: absolute; width: 4.4em; height: 4.4em; border-radius: 50%; opacity: 0; transform: translate(-50%, -120%);
  background: #C9F26B; box-shadow: 0 0 0 .3em #FFFFFF, 0 .8em 1.6em rgba(0, 0, 0, .5);
}
.hx-loupe b {
  position: absolute; left: 100%; top: 50%; margin-left: .7em; transform: translateY(-50%); padding: .3em .6em; border-radius: .4em;
  background: #0B0B0F; color: #FFFFFF; font: 700 .85em/1 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap;
}

/* an A4 resume */
.hx-sheet {
  position: absolute; left: 32.4%; top: 10%; width: 34.2%; height: 86%; overflow: hidden; border-radius: .3em;
  background: #FFFFFF; color: #0B0B0F; box-shadow: 0 1.4em 3em -1.2em rgba(0, 0, 0, .85); transform-origin: 0 0;
}
.hx-sheet .band { position: absolute; left: 0; right: 0; top: 0; height: 16%; background: linear-gradient(135deg, #1B1C26, #2E2F3D); }
.hx-sheet .band i { position: absolute; inset: 0; opacity: 0; background: linear-gradient(135deg, #3B2F6B, #6D4AFF); }
.hx-sheet .rn { position: absolute; left: 8%; top: 4%; width: 84%; height: 5%; }
.hx-sheet .rt { position: absolute; left: 8%; top: 10.5%; width: 84%; height: 3%; }
.hx-sheet .rn b, .hx-sheet .rn s, .hx-sheet .rt b, .hx-sheet .rt s { position: absolute; left: 0; top: 0; white-space: nowrap; text-decoration: none; }
.hx-sheet .rn b, .hx-sheet .rn s { font: 800 2em/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.03em; color: #FFFFFF; }
.hx-sheet .rt b, .hx-sheet .rt s { font-size: .95em; font-weight: 600; color: #C9F26B; }
.hx-sheet .rn s, .hx-sheet .rn .ph, .hx-sheet .rt s, .hx-sheet .rt .ph { color: rgba(255, 255, 255, .42); }
.hx-sec { position: absolute; left: 8%; right: 8%; }
.hx-sec u {
  display: block; padding-bottom: .3em; margin-bottom: .5em; border-bottom: 1.5px solid #E4E4EB; text-decoration: none;
  font: 800 1em/1 'Inter', sans-serif; letter-spacing: .02em; color: #1B1C26;
}
.hx-sec i { display: block; height: .45em; margin-top: .55em; border-radius: 1em; background: #DADAE3; }
.hx-sec i:nth-of-type(2) { width: 84%; } .hx-sec i:nth-of-type(3) { width: 66%; } .hx-sec i:nth-of-type(5) { width: 72%; }
.hx-sec .jt { display: block; position: relative; height: 1.3em; margin-top: .45em; font: 700 .9em/1.3 'Inter', sans-serif; color: #0B0B0F; }
.hx-sec .jt b, .hx-sec .jt s { position: absolute; left: 0; top: 0; white-space: nowrap; text-decoration: none; font: inherit; }
.hx-sec .jt s { color: #A9A9B5; }
.hx-sec em { display: inline-block; margin: .5em .4em 0 0; padding: .3em .7em; border-radius: 1em; font-size: .82em; font-weight: 700; background: #F1EDFF; color: #3B2F6B; }
.hx-sheet.is-vi u { color: #6D4AFF; }
.hx-sheet.is-vi u, .hx-sheet.is-vi .jt b, .hx-sheet.is-vi .rn b { font-family: Georgia, 'Times New Roman', serif; }
.hx-sheet.is-vi .band i { opacity: 1; }
.hx-scan { position: absolute; left: 0; right: 0; top: 0; height: 12%; opacity: 0; background: linear-gradient(180deg, transparent, rgba(201, 242, 107, .55), transparent); }
.hx-marg { position: absolute; left: 7%; right: 7%; top: 5%; bottom: 5%; border: 1.5px dashed #9D85FF; border-radius: .2em; opacity: 0; }
.hx-marg b { position: absolute; right: .6em; bottom: .6em; padding: .25em .6em; border-radius: 1em; background: #6D4AFF; color: #FFFFFF; font-size: .82em; font-weight: 800; }

/* pickers */
.hx-pick { position: absolute; inset: 0; }
.hx-gridbg { position: absolute; left: 21%; top: 9%; width: 57%; height: 90%; border-radius: .8em; background: #0D0E14; box-shadow: 0 0 0 1px #1E1F29; }
.hx-filt { position: absolute; left: 22.5%; top: 10.6%; width: 54.5%; display: flex; gap: .6em; align-items: center; }
.hx-filt b { padding: .5em 1em; border-radius: 2em; font-size: .92em; font-weight: 700; color: #A9ABB8; box-shadow: inset 0 0 0 1px #2A2C3A; white-space: nowrap; }
.hx-filt b.on { background: #FFFFFF; color: #0B0B0F; box-shadow: none; }
.hx-filt span { margin-left: auto; font-size: .9em; font-weight: 600; color: #8A8C99; white-space: nowrap; }
.hx-tpl { position: absolute; border-radius: .6em; overflow: hidden; background: #F5F5F8; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .8); }
.hx-tpl::before { content: ''; position: absolute; left: 10%; top: 8%; width: 55%; height: 7%; border-radius: .2em; background: #0B0B0F; }
.hx-tpl::after { content: ''; position: absolute; left: 10%; right: 10%; top: 22%; height: 40%; border-radius: .4em; background: var(--tc, #C9BCFF); box-shadow: 0 6em 0 -1.5em #E4E4EB; }
.hx-tpl.d { background: #16161C; }
.hx-tpl.d::before { background: #FFFFFF; }
.hx-tpl.blank { background: transparent; border: 2px dashed #3A3B48; box-shadow: none; display: grid; place-items: center; }
.hx-tpl.blank::before, .hx-tpl.blank::after { display: none; }
.hx-tpl.blank b { font-size: 1em; font-weight: 700; color: #A9ABB8; }
.hx-tpl.a4 { background: #FFFFFF; }
.hx-tpl.a4::before, .hx-tpl.a4::after { display: none; }
.hx-tpl.a4 i { position: absolute; display: block; }
.hx-tpl.a4 i:nth-child(1) { left: 0; right: 0; top: 0; height: 15%; background: #1B1C26; }
.hx-tpl.a4 i:nth-child(2) { left: 10%; right: 10%; top: 24%; height: 2.4%; border-radius: 1em; background: #D2D2DC; box-shadow: 0 1.1em 0 #E4E4EB, 0 2.2em 0 #E4E4EB, 0 3.6em 0 #D2D2DC, 0 4.7em 0 #E4E4EB, 0 5.8em 0 #E4E4EB; }
.hx-tpl.a4 i:nth-child(3) { display: none; }
.hx-tpl.a4.v1 i:nth-child(1) { background: #6D4AFF; }
.hx-tpl.a4.v2 i:nth-child(1) { height: 4%; top: 6%; left: 10%; right: 40%; border-radius: .2em; background: #0B0B0F; }
.hx-tpl.a4.v3 i:nth-child(1) { background: #3B2F6B; }
.hx-tpl.a4.v3 i:nth-child(2) { left: 40%; }
.hx-tpl.a4.v3 i:nth-child(3) { display: block; left: 0; top: 15%; bottom: 0; width: 32%; background: #F1EDFF; }
.hx-tpl.a4.v4 i:nth-child(1) { background: #C9F26B; }

/* dialogs, menus, files, people */
.hx-dlg {
  position: absolute; left: 30%; top: 16%; width: 40%; height: 70%; overflow: hidden; border-radius: 1.2em; opacity: 0;
  background: #FFFFFF; color: #0B0B0F; box-shadow: 0 2em 5em -1.5em rgba(0, 0, 0, .9);
}
.hx-dlg .dh { position: absolute; left: 7%; top: 7%; font: 800 1.7em/1.1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.02em; }
.hx-dlg .ds { position: absolute; left: 7%; top: 17%; width: 70%; height: 2.4%; border-radius: 1em; background: #E4E4EB; }
.hx-dlg .addr {
  position: absolute; left: 7%; right: 7%; top: 27%; height: 11%; display: flex; align-items: center; padding: 0 1em; border-radius: .7em;
  background: #F4F4F8; box-shadow: inset 0 0 0 1.5px #6D4AFF; font: 600 1.05em/1 'JetBrains Mono', ui-monospace, monospace; color: #6E6E78; white-space: nowrap; overflow: hidden;
}
.hx-dlg .addr b { color: #0B0B0F; font-weight: 700; }
.hx-dlg .opt { position: absolute; left: 7%; right: 7%; height: 9%; display: flex; align-items: center; gap: .8em; font-size: 1em; font-weight: 600; color: #33333D; }
.hx-dlg .opt i { position: relative; flex-shrink: 0; width: 2.6em; height: 1.5em; border-radius: 1em; background: #D9D9E3; }
.hx-dlg .opt i::after { content: ''; position: absolute; left: .2em; top: .2em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #FFFFFF; box-shadow: 0 .1em .3em rgba(0, 0, 0, .3); }
.hx-dlg .opt.on i { background: #6D4AFF; }
.hx-dlg .opt.on i::after { left: 1.3em; }
.hx-dlg .go {
  position: absolute; left: 7%; right: 7%; bottom: 7%; height: 12%; display: grid; place-items: center; border-radius: 2em;
  background: linear-gradient(135deg, #6D4AFF, #8B6CFF); color: #FFFFFF; font-size: 1.15em; font-weight: 800;
}
.hx-dlg .spin { position: absolute; left: 50%; bottom: 9.6%; width: 2.2em; height: 2.2em; margin-left: -1.1em; border-radius: 50%; border: .3em solid rgba(255, 255, 255, .35); border-top-color: #FFFFFF; opacity: 0; }
.hx-dlg .done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; padding: 0 2em; background: #FFFFFF; text-align: center; }
.hx-dlg .done svg { width: 5em; height: 5em; }
.hx-dlg .done .tick { stroke-dasharray: 100; stroke-dashoffset: 0; }
.hx-dlg .done > b { font: 800 1.8em/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.02em; }
.hx-dlg .done > span {
  display: inline-flex; align-items: center; gap: .6em; padding: .65em 1.1em; border-radius: 2em; background: #0B0B0F; color: #FFFFFF;
  font: 600 1em/1 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap;
}
.hx-dlg .done > span i { width: .7em; height: .7em; border-radius: 50%; background: #C9F26B; box-shadow: 0 0 0 .3em rgba(201, 242, 107, .3); }
.hx-dlg .done p { margin: 0; font-size: .95em; color: #55555F; }
.hx-dlg .wall { display: flex; gap: .8em; }
.hx-dlg .wall i { position: relative; width: 4.6em; height: 6em; border-radius: .45em; background: #ECECF2; }
.hx-dlg .wall i:nth-child(3) { background: #F2FADD; } .hx-dlg .wall i:nth-child(4) { background: #E4DEFF; }
.hx-dlg .wall .me { background: linear-gradient(160deg, #C9BCFF, #6D4AFF); }
.hx-dlg .wall u { position: absolute; right: -.7em; top: -.7em; padding: .2em .5em; border-radius: 1em; background: #C9F26B; color: #0B0B0F; font-size: .75em; font-weight: 800; text-decoration: none; }

.hx-menu {
  position: absolute; z-index: 5; padding: .5em; border-radius: .8em; opacity: 0;
  background: #181924; box-shadow: 0 0 0 1px #2A2C3A, 0 1.6em 3em -1em rgba(0, 0, 0, .9);
}
.hx-menu b { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: .5em; font-size: .95em; font-weight: 600; color: #DADCE6; white-space: nowrap; }
.hx-menu b i { width: .8em; height: .8em; border-radius: .2em; background: #6D4AFF; }

.hx-file {
  position: absolute; display: flex; align-items: center; gap: .8em; padding: .8em 1.2em .8em .8em; border-radius: 1em; white-space: nowrap;
  background: #15161F; box-shadow: 0 0 0 1px #2A2B36, 0 1.6em 3em -1.2em rgba(109, 74, 255, .7);
}
.hx-file.col { flex-direction: column; align-items: flex-start; gap: .6em; width: 11.4%; padding: .9em; }
.hx-file > i {
  flex-shrink: 0; display: grid; place-items: end center; width: 2.6em; height: 3.2em; padding-bottom: .5em; border-radius: .35em;
  font-size: .7em; font-weight: 800; letter-spacing: .02em; background: linear-gradient(160deg, #6D4AFF, #9D85FF); color: #FFFFFF;
}
.hx-file > i.pdf { background: #FFFFFF; color: #6D4AFF; }
.hx-file > i.xode { background: #C9F26B; color: #0B0B0F; }
.hx-file span { display: flex; flex-direction: column; gap: .4em; min-width: 0; }
.hx-file b { font: 700 1.05em/1 'JetBrains Mono', ui-monospace, monospace; color: #FFFFFF; }
.hx-file em { display: inline-flex; align-items: center; gap: .3em; font-size: .85em; font-weight: 700; color: #C9F26B; }
.hx-file em svg { width: 1.1em; height: 1.1em; }

.hx-av {
  position: absolute; top: 1.8%; width: 2.475%; height: 4.4%; border-radius: 50%; display: grid; place-items: center;
  font-size: .9em; font-weight: 800; box-shadow: 0 0 0 .2em #101118;
}
.hx-pen { position: absolute; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 50%; background: #C9F26B; color: #0B0B0F; box-shadow: 0 0 0 .18em #101118; }
.hx-pen svg { width: .85em; height: .85em; }
.hx-cur2 { position: absolute; z-index: 28; display: flex; align-items: flex-start; opacity: 0; }
.hx-cur2 svg { width: 1.8em; height: 1.8em; margin: -.19em 0 0 -.38em; }
.hx-cur2 b { margin: 1.4em 0 0 -.3em; padding: .25em .6em; border-radius: 1em; background: #C9F26B; color: #0B0B0F; font-size: .8em; font-weight: 800; }

/* full screen: the prototype and the preview */
.hx-full {
  position: absolute; inset: 0; z-index: 20; opacity: 0; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 0%, rgba(109, 74, 255, .26), transparent 70%), #07080B;
}
.hx-full .bar { position: absolute; left: 2%; top: 2.4%; display: flex; gap: .9em; align-items: center; }
.hx-full .bar b { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border-radius: 2em; background: #C9F26B; color: #0B0B0F; font-size: .95em; font-weight: 800; }
.hx-full .bar b svg { width: .9em; height: .9em; }
.hx-full .bar > span { position: relative; font-size: .95em; font-weight: 600; color: #A9ABB8; }
.hx-full .pg { display: flex; gap: .5em; }
.hx-full .pg i { width: .6em; height: .6em; border-radius: 50%; background: #3A3B48; }
.hx-full .pg i.on { background: #C9F26B; }
.hx-frame { position: absolute; overflow: hidden; border-radius: .8em; background: #FAFAFC; box-shadow: 0 2em 5em -1.5em rgba(0, 0, 0, .9); }
.hx-frame .hx-art { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.hx-hot { position: absolute; border: 2px dashed #C9F26B; border-radius: .6em; background: rgba(201, 242, 107, .08); opacity: 0; }
.hx-key {
  position: absolute; min-width: 3.4em; height: 3.4em; padding: 0 .8em; display: grid; place-items: center; border-radius: .7em; opacity: 0;
  background: #1B1C27; box-shadow: inset 0 -.3em 0 #0B0C10, 0 0 0 1px #33354A; font-size: 1.4em; font-weight: 800; color: #FFFFFF;
}

/* the little preview window */
.hx-mini { position: absolute; overflow: hidden; border-radius: .7em; background: #0E0F16; box-shadow: 0 0 0 1px #2A2B36, 0 1.4em 3em -1em rgba(0, 0, 0, .9); }
.hx-mini .bar { position: absolute; left: 0; right: 0; top: 0; height: 12%; display: flex; align-items: center; gap: .35em; padding: 0 .7em; background: #181924; }
.hx-mini .bar i { width: .5em; height: .5em; border-radius: 50%; background: #3A3B48; }
.hx-mini .bar b { margin-left: .4em; font-size: .8em; font-weight: 700; color: #A9ABB8; }
.hx-mini .vp { position: absolute; left: 0; right: 0; top: 12%; bottom: 0; overflow: hidden; }
.hx-mini .mp { position: absolute; inset: 0; background: #FAFAFC; }
.hx-mini .mp > * { position: absolute; display: block; border-radius: .2em; }
.hx-mini .n { left: 6%; top: 6%; width: 88%; height: 6%; background: #DCDCE5; }
.hx-mini .h { left: 8%; top: 22%; width: 46%; height: 9%; background: #0B0B0F; }
.hx-mini .h2 { left: 8%; top: 36%; width: 34%; height: 5%; background: #CFCFDA; }
.hx-mini .bt { left: 8%; top: 54%; width: 28%; height: 12%; border-radius: 1em; background: #6D4AFF; }
.hx-mini .im { left: 58%; top: 20%; width: 34%; height: 52%; background: linear-gradient(135deg, #C9BCFF, #6D4AFF); }
.hx-mini .m-contact .h { top: 18%; }
.hx-mini .m-contact .f { left: 8%; width: 44%; height: 9%; background: #FFFFFF; box-shadow: inset 0 0 0 1px #E2E2EA; }
.hx-mini .m-contact .f1 { top: 34%; } .hx-mini .m-contact .f2 { top: 47%; }
.hx-mini .m-contact .bt { top: 64%; width: 20%; background: #0B0B0F; }
.hx-mini .m-contact .imw { left: 58%; top: 20%; width: 34%; height: 52%; overflow: hidden; border-radius: .3em; }
.hx-mini .m-contact .im { position: absolute; display: block; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #EEFBC8, #C9F26B 55%, #6D8F2A); }

/* the code panel */
.hx-code {
  position: absolute; left: 31%; right: 21.5%; top: 10%; bottom: 3%; overflow: hidden; border-radius: .8em;
  background: #0E0F16; box-shadow: 0 0 0 1px #262836, 0 2em 4em -1.5em rgba(0, 0, 0, .9);
}
.hx-code .tb { position: absolute; left: 0; right: 0; top: 0; height: 9%; display: flex; align-items: center; gap: .4em; padding: 0 1em; border-bottom: 1px solid #1E1F29; }
.hx-code .tb b { padding: .4em .9em; border-radius: .4em; font: 600 .95em/1 'JetBrains Mono', ui-monospace, monospace; color: #8A8C99; }
.hx-code .tb b.on { background: #1B1C27; color: #FFFFFF; }
.hx-code .ex { position: absolute; right: 1em; top: 1.6%; height: 6%; padding: 0 1em; display: grid; place-items: center; border-radius: .5em; background: #C9F26B; color: #0B0B0F; font-size: .95em; font-weight: 800; }
.hx-code .ln { position: absolute; left: 0; right: 0; top: 13%; bottom: 0; padding: 0 1.4em; font: 500 1.08em/2 'JetBrains Mono', ui-monospace, monospace; color: #C9CCDA; }
.hx-code .ln p { margin: 0; white-space: pre; }
.hx-code .ln em { display: inline-block; width: 2.4em; color: #4A4D60; }
.hx-code .k { color: #B59CFF; } .hx-code .s { color: #C9F26B; } .hx-code .a { color: #E4DEFF; }

/* the resume's refusal */
.hx-card {
  position: absolute; left: 31%; top: 20%; width: 38%; height: 56%; border-radius: 1.2em; opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; text-align: center; padding: 0 3em;
  background: #FFFFFF; color: #0B0B0F; box-shadow: 0 2em 5em -1.5em rgba(0, 0, 0, .9);
}
.hx-card svg { width: 4.6em; height: 4.6em; }
.hx-card b { font: 800 1.7em/1.15 'Inter Tight', 'Inter', sans-serif; letter-spacing: -.02em; }
.hx-card p { margin: 0; font-size: 1em; line-height: 1.55; color: #55555F; }
.hx-slot {
  position: absolute; display: grid; place-items: center; border-radius: .6em; opacity: 0;
  border: 2px dashed #9D85FF; font-size: .85em; font-weight: 800; color: #C9BCFF; white-space: nowrap;
}

/* ── the controls on the picture itself ─────────────────────────
   Click anywhere on it to pause or play. Paused shows the big
   button; playing shows a small one in the corner on hover. */
.hx-ctl {
  position: absolute; left: 50%; top: 50%; z-index: 40; width: 7em; height: 7em; margin: -3.5em 0 0 -3.5em;
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: rgba(16, 17, 26, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 1.4em 3em -1em rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.85); transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}
.hx-ctl svg { width: 38%; height: 38%; fill: #FFFFFF; }
.hx-ctl .pl { margin-left: 8%; }
.hx-ctl .pa { display: none; }
.hx.is-paused .hx-ctl { opacity: 1; transform: none; }
.hx.is-paused::after { content: ''; position: absolute; inset: 0; z-index: 35; background: rgba(5, 6, 10, .22); pointer-events: none; }
.hx-pp {
  position: absolute; left: .9%; bottom: 2.4%; z-index: 40; width: 3.2em; height: 3.2em; display: grid; place-items: center;
  border-radius: 50%; background: rgba(16, 17, 26, .85); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.hx-pp svg { width: 1.3em; height: 1.3em; fill: #FFFFFF; }
.hx:hover .hx-pp { opacity: 1; }
.hx.is-paused .hx-pp { opacity: 0; }
.hx-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; height: .45em; background: rgba(255, 255, 255, .08); }
.hx-prog i { display: block; height: 100%; background: linear-gradient(90deg, #6D4AFF, #C9F26B); transform-origin: left; transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .hx-ctl, .hx-pp { transition: none; }
}
