/* Unweb Wiki home: hero carousel on a dark "ink night" stage, real app screenshots in a CSS iPhone.
   Markup is generated by docs/wiki-src/hero/build_hero.py. Screen content is authored in iPhone
   points (440x956) inside .hm-pt and scaled by --k. Every animated element's resting style is its
   final frame, so prefers-reduced-motion simply turns animations off. No external resources. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(img/hero/cormorant-500.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(img/hero/cormorant-500i.woff2) format("woff2"); }

.hm {
  --k: .56;                 /* iPhone point -> css px */
  --cx: 61%;                /* phone centre */
  --top: 34px;
  --ink: #8db8e3;
  --paper: #f3eee4;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.22, 1.18, .36, 1);
  --e-away: cubic-bezier(.5, 0, .75, .3);
  --dir: 1;
  --display: "Cormorant Garamond", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  margin: 10px 0 44px; position: relative;
}
@supports (animation-timing-function: linear(0, 1)) {
  .hm { --e-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.051, 1.067 23.1%, 1.06 25.2%, 1.031 29.1%, 1.008 33.1%, .998 37.6%, .997 44%, 1); }
}

/* ---- stage ---- */
.hm-viewport {
  position: relative; height: 620px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: #05070b; color: var(--paper); touch-action: pan-y; -webkit-user-select: none; user-select: none;
  box-shadow: 0 0 0 1px rgba(20, 24, 32, .08), 0 2px 4px rgba(20, 24, 32, .06), 0 40px 70px -40px rgba(16, 28, 48, .55);
}
@media (prefers-color-scheme: dark) { .hm-viewport { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 80px -40px rgba(0, 0, 0, .9); } }
.hm-bg { position: absolute; inset: -5%; z-index: 0; background: #05070b url(img/hero/backdrop.webp) 62% 40% / cover no-repeat; transform: scale(1.04); transition: transform 2.6s var(--e-out); translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px); }
.hm-bg::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 7, 11, .92) 0%, rgba(5, 7, 11, .7) 30%, rgba(5, 7, 11, .15) 58%, rgba(5, 7, 11, .25) 100%),
  linear-gradient(0deg, rgba(5, 7, 11, .75), transparent 30%); }
.hm-bg::after { content: ""; position: absolute; inset: 0; background: url(img/hero/grain.png); opacity: .9; mix-blend-mode: overlay; }
.hm-bg i { position: absolute; left: 50%; top: 18%; width: 46%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 160, 220, .28), transparent); filter: blur(10px); }
.hm[data-scene="1"] .hm-bg { transform: scale(1.04) translate(0, 0); }
.hm[data-scene="2"] .hm-bg { transform: scale(1.1) translate(-2.5%, 1.5%); }
.hm[data-scene="3"] .hm-bg { transform: scale(1.07) translate(2%, -1.5%); }
.hm[data-scene="4"] .hm-bg { transform: scale(1.12) translate(-1%, -2.5%); }

.hm-scene { position: absolute; inset: 0; z-index: 1; display: none; }
.hm-scene.is-active, .hm:not([data-scene]) .hm-scene.s1 { display: block; z-index: 2; }
.hm-scene.is-leaving { display: block; pointer-events: none; animation: hm-leave .6s var(--e-out) both; }
@keyframes hm-leave { to { opacity: 0; transform: scale(.985); } }

/* ---- copy ---- */
.hm-copy { position: absolute; z-index: 5; left: 48px; top: 112px; width: min(310px, 36%); }
.hm-kick { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.hm-title { margin: 0; padding: 0; border: 0; font: 500 45px/1.02 var(--display); letter-spacing: -.01em; color: var(--paper); text-wrap: balance; }
.hm-title em { display: block; font-style: italic; color: #b9d3ee; }
.hm-sub { margin: 18px 0 0; max-width: 30ch; font: 400 15.5px/1.6 var(--sans); color: rgba(236, 233, 226, .72); }
:lang(zh) .hm-title { font: 500 36px/1.28 var(--display); letter-spacing: .02em; }
:lang(zh) .hm-title em { font-style: normal; }
:lang(zh) .hm-kick { letter-spacing: .3em; font-size: 12px; }
:lang(zh) .hm-sub { max-width: 21em; }
.is-active .hm-kick, .is-active .hm-title, .is-active .hm-title em, .is-active .hm-sub { animation: hm-txt 1s var(--e-out) both; }
.is-active .hm-kick { animation-delay: .1s; }
.is-active .hm-title { animation-delay: .2s; }
.is-active .hm-title em { animation-delay: .32s; }
.is-active .hm-sub { animation-delay: .5s; }
@keyframes hm-txt { from { opacity: 0; transform: translateY(16px); } }

/* ---- the phone ---- */
.hm-art { position: absolute; inset: 0; z-index: 3; perspective: 1500px; perspective-origin: 60% 40%; pointer-events: none; }
.hm-rig {
  position: absolute; left: calc(var(--cx) - 234px * var(--k)); top: var(--top);
  width: calc(468px * var(--k)); height: calc(984px * var(--k));
  transform-style: preserve-3d; transform: rotateY(var(--ry2, 6deg)) rotateX(var(--rx2, 1deg));
  translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 5px); transition: translate .6s var(--e-out);
}
.is-active .hm-rig { animation: hm-rig var(--rigd, 4.4s) both; }
@keyframes hm-rig {
  0% { opacity: 0; transform: translate3d(40px, 50px, -260px) rotateY(var(--ry0, 34deg)) rotateX(var(--rx0, 10deg)); animation-timing-function: var(--e-out); }
  22% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(var(--ry1, 20deg)) rotateX(var(--rx1, 6deg)); }
  55% { transform: translate3d(0, 0, 0) rotateY(var(--ry1, 20deg)) rotateX(var(--rx1, 6deg)); animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
}
.hm-pt { position: absolute; left: 0; top: 0; width: 468px; height: 984px; transform-origin: 0 0; transform: scale3d(var(--k), var(--k), var(--k)); transform-style: preserve-3d; }
.hm-dev {
  position: absolute; inset: 0; border-radius: 76px;
  background: linear-gradient(140deg, #8a8e97 0%, #3b3e45 7%, #17181c 22%, #0d0e10 50%, #1d1e22 78%, #50535b 94%, #9a9ea6 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 0 0 2.5px rgba(0, 0, 0, .55),
    0 70px 90px -40px rgba(0, 0, 0, .9), 0 30px 50px -24px rgba(0, 0, 0, .7), 0 0 120px -30px rgba(120, 170, 230, .35);
}
.hm-dev::before { content: ""; position: absolute; inset: 5px; border-radius: 71px; background: #030304; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.hm-scr { position: absolute; inset: 14px; border-radius: 62px; overflow: hidden; background: #fff; transform: translateZ(0); }
.hm-island { position: absolute; left: 50%; top: 25px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.hm-island::after { content: ""; position: absolute; right: 13px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #3d5a8a 0, #14213a 32%, #05070c 62%); }
.hm-keys::before, .hm-keys::after { content: ""; position: absolute; width: 5px; border-radius: 3px; }
.hm-keys::before { left: -4px; top: 200px; height: 62px; background: linear-gradient(90deg, #6d717a, #2a2c31); box-shadow: 0 86px 0 #3f4249, 0 -70px 0 -1px #3f4249; }
.hm-keys::after { right: -4px; top: 270px; height: 104px; background: linear-gradient(270deg, #6d717a, #2a2c31); }
.hm-glare { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .03) 24%, transparent 40%); overflow: hidden; border-radius: inherit; }
.hm-glare::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 70%; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%); transform: translateX(260%); }
.is-active .hm-glare::after { animation: hm-sweep 1.3s var(--e-io) var(--sweep, 3.4s) both; }
@keyframes hm-sweep { from { transform: translateX(-160%); } }
.hm-full { position: absolute; left: 0; top: 0; width: 440px; height: auto; display: block; }

/* ---- glass chips ---- */
.hm-chip {
  position: absolute; z-index: 6; display: flex; flex-direction: column; padding: 9px 15px 10px; border-radius: 15px;
  background: rgba(28, 32, 40, .46); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 22px 40px -18px rgba(0, 0, 0, .8);
  top: calc(var(--top) + 984px * var(--k) * var(--f, .3)); color: #f2efe8; font: 600 14px/1.25 var(--sans); white-space: nowrap;
  translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 10px); transition: translate .6s var(--e-out);
}
.hm-chip small { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(167, 201, 236, .9); margin-bottom: 3px; }
.hm-chip.r { left: calc(var(--cx) + 120px * var(--k)); }
.hm-chip.l { right: calc(100% - var(--cx) + 150px * var(--k)); }
.is-active .hm-chip { animation: hm-chip .9s var(--e-spring) var(--t, 3.4s) both; }
@keyframes hm-chip { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* ---- scene 1: web -> native ---- */
.s1 { --ry0: 36deg; --ry1: 22deg; --ry2: 6deg; --rigd: 4.6s; --sweep: 3.7s; }
.s1 .c1 { --f: .6; --t: 3.5s; }
.s1 .c2 { --f: .13; --t: 3.75s; }
.hm-native { position: absolute; inset: 0; overflow: hidden; }
.hm-native > div { position: absolute; inset: 0; }
.is-active .hm-native, .is-active .hm-native > div { animation: hm-wipe 1s var(--e-io) 2.75s both; }
.is-active .hm-native > div { animation-name: hm-wipe-in; }
@keyframes hm-wipe { from { transform: translateY(-100%); } }
@keyframes hm-wipe-in { from { transform: translateY(100%); } }
.hm-native::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: 0; background: linear-gradient(180deg, rgba(141, 184, 227, 0), rgba(141, 184, 227, .4) 70%, rgba(225, 238, 252, .95)); }
.is-active .hm-native::after { animation: hm-edge 1s linear 2.75s both; }
@keyframes hm-edge { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

.hm-tbw { position: absolute; left: 11.67px; top: 811.67px; width: 416.67px; height: 106.67px; }
.hm-tb { display: block; width: 100%; height: 100%; }
.s1 .hm-tbw { opacity: 0; }
.is-active.s1 .hm-tbw { animation: hm-tbout .5s var(--e-out) 2.7s both; }
@keyframes hm-tbout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(24px); } }
.hm-press { position: absolute; left: 281.8px; top: 13.3px; width: 82px; height: 30px; border-radius: 15px; opacity: 0; }
.is-active .hm-press { animation: hm-press .9s var(--e-out) 2.05s both; }
@keyframes hm-press {
  0% { opacity: 0; transform: scale(1); background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 0 rgba(141, 184, 227, .8); }
  18% { opacity: 1; transform: scale(.93); background: rgba(255, 255, 255, .28); }
  40% { transform: scale(1); }
  100% { opacity: 0; background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 18px rgba(141, 184, 227, 0); }
}
.hm-fly { position: absolute; left: 14px; top: 14px; width: 440px; height: 956px; transform-style: preserve-3d; }
.hm-cl, .hm-fly .hm-cl { position: absolute; opacity: 0; transform: var(--fly); }
.hm-cl img { display: block; width: 100%; }
.k1 { left: 0; top: 50px; width: 440px; --fly: translate3d(-20px, -170px, 150px) rotateX(22deg) rotateZ(-5deg); --o: 2.42s; }
.k2 { left: 14px; top: 410px; width: 412px; --fly: translate3d(-260px, -30px, 170px) rotateY(-26deg) rotateZ(-9deg); --i: .55s; --o: 2.3s; }
.k3 { right: 14px; top: 548px; width: 206px; height: 116px; --fly: translate3d(230px, -150px, 120px) rotateZ(16deg); --i: .85s; --o: 2.36s; }
.k4 { left: 0; top: 686px; width: 440px; --fly: translate3d(20px, 240px, 140px) rotateX(-26deg); --i: 1.15s; --o: 2.48s; }
.is-active .hm-cl { animation: hm-clin .8s var(--e-spring) var(--i, 0s) both, hm-clout .85s var(--e-away) var(--o) forwards; }
.is-active .k1 { animation: hm-clout .85s var(--e-away) var(--o) both; }
@keyframes hm-clin { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes hm-clout { from { opacity: 1; transform: none; } 45% { opacity: .55; } to { opacity: 0; transform: var(--fly); } }

/* realistic ad furniture (iPhone points) */
.hm-adcard { display: flex; gap: 12px; padding: 12px; height: 112px; background: #fff; color: #111; border: 1px solid #e3e5e8; border-radius: 12px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .4); font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; text-align: left; position: relative; }
.hm-adimg { flex: none; width: 88px; height: 88px; border-radius: 8px; background: radial-gradient(circle at 32% 34%, #ffe3a3 0, #f29a46 34%, #b4462c 72%, #5a1d1a); }
.hm-adimg.g2 { background: radial-gradient(circle at 70% 25%, #fff3c4 0, #fdd27a 14%, transparent 30%), linear-gradient(170deg, #0e5f7a 0%, #1aa3c0 55%, #f1d9a6 56%, #e9c58a 100%); }
.hm-adtx small { display: block; font-size: 11px; color: #6b7280; }
.hm-adtx b { display: block; margin: 4px 0 9px; font-size: 15.5px; line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
.hm-adtx u { display: inline-block; text-decoration: none; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 6px; }
.hm-adx { position: absolute; right: 9px; top: 6px; font-size: 10px; color: #9ca3af; }
.hm-vid { position: relative; overflow: hidden; border-radius: 12px; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; color: #fff;
  background: radial-gradient(circle at 72% 30%, #8b5cf6 0, transparent 46%), radial-gradient(circle at 18% 85%, #ec4899 0, transparent 50%), linear-gradient(135deg, #1e1b4b, #0b0b10);
  box-shadow: 0 20px 36px -10px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); }
.hm-vplay { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -24px 0 0 -21px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.hm-vplay::after { content: ""; position: absolute; left: 17px; top: 13px; border: 8px solid transparent; border-left: 12px solid #111; border-right: 0; }
.hm-vlive { position: absolute; left: 9px; top: 7px; font-size: 10px; font-weight: 800; color: #f87171; }
.hm-vx { position: absolute; right: 9px; top: 5px; font-size: 13px; }
.hm-vt { position: absolute; left: 9px; bottom: 9px; font-size: 10px; font-weight: 600; opacity: .9; }
.hm-vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.hm-vbar i { display: block; width: 36%; height: 100%; background: #ef4444; }
.hm-cookie { padding: 14px 16px; background: #1f2937; color: #d1d5db; font: 11px/1.45 -apple-system, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 -12px 30px -8px rgba(0, 0, 0, .35); text-align: left; }
.hm-cookie b { display: block; color: #fff; font-size: 14px; margin-bottom: 3px; }
.hm-cbtn { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.hm-cbtn i { font-style: normal; padding: 6px 12px; border: 1px solid #6b7280; border-radius: 6px; color: #e5e7eb; }
.hm-cbtn i.y { background: #22c55e; border-color: #22c55e; color: #052e16; font-weight: 800; }

/* ---- scene 2: ads blocked ---- */
.s2 { --ry0: 14deg; --rx0: 22deg; --ry1: 14deg; --rx1: 12deg; --ry2: 7deg; --rx2: 2deg; --rigd: 4.4s; --sweep: 3.5s; }
.s2 .c1 { --f: .3; --t: 3.3s; }
.hm-sl.a { clip-path: inset(0 0 656px 0); }
.hm-sl.b { clip-path: inset(300px 0 502.67px 0); }
.hm-sl.c { clip-path: inset(453.33px 0 0 0); }
.is-active .hm-sl.b, .is-active .hm-ad.a2 { animation: hm-slb 3.5s both; }
.is-active .hm-sl.c { animation: hm-slc 3.5s both; }
@keyframes hm-slb { 0%, 52.9% { transform: translateY(112px); animation-timing-function: var(--e-out); } 70% { transform: none; } }
@keyframes hm-slc {
  0%, 52.9% { transform: translateY(326px); animation-timing-function: var(--e-out); }
  70%, 81.4% { transform: translateY(214px); animation-timing-function: var(--e-out); }
  98% { transform: none; }
}
.hm-ad { position: absolute; left: 0; width: 440px; padding: 6px 14px; opacity: 0; }
.hm-ad.a1 { top: 300px; height: 112px; --m: 1.4s; --g: 1.85s; }
.hm-ad.a2 { top: 565.33px; height: 214px; --m: 2.4s; --g: 2.85s; }
.hm-ad .hm-adcard { height: 100px; box-shadow: none; }
.hm-adl { display: block; font: 600 9.5px/1 -apple-system, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin: 6px 0 6px; }
.hm-ad.a2 .hm-vid { height: 182px; box-shadow: none; }
.is-active .hm-ad { animation: hm-adgo .4s var(--e-io) var(--g) both; }
.is-active .hm-ad.a2 { animation: hm-slb 3.5s both, hm-adgo .4s var(--e-io) var(--g) both; }
@keyframes hm-adgo { from { opacity: 1; scale: 1; } to { opacity: 0; scale: .94; } }
.hm-ad::after { content: ""; position: absolute; inset: 4px 10px; border-radius: 14px; border: 1.5px solid rgba(110, 165, 225, .95); background: rgba(10, 16, 28, .5); opacity: 0; }
.hm-blk { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border-radius: 20px; background: rgba(20, 26, 36, .82); color: #fff; font: 700 13px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); opacity: 0; }
.hm-blk::before { content: ""; width: 13px; height: 15px; background: #7fc2a1; clip-path: polygon(50% 0, 100% 18%, 100% 52%, 50% 100%, 0 52%, 0 18%); }
.is-active .hm-ad::after, .is-active .hm-blk { animation: hm-mark .45s var(--e-spring) var(--m) both; }
@keyframes hm-mark { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hm-scan { position: absolute; left: 0; top: 0; width: 440px; height: 160px; opacity: 0; background: linear-gradient(180deg, transparent, rgba(141, 184, 227, .14) 70%, rgba(170, 205, 240, .7) 98%, transparent); }
.is-active .hm-scan { animation: hm-scan 1.5s var(--e-io) .6s both; }
@keyframes hm-scan { 0% { opacity: 0; transform: translateY(-160px); } 12%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(900px); } }
.hm-count { position: absolute; left: 40px; top: 22.5px; height: 14px; overflow: hidden; font: 600 13.6px/14px -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: rgb(127, 194, 161); }
.hm-count span { display: block; transform: translateY(-56px); }
.is-active .hm-count span { animation: hm-count 3.3s both; }
@keyframes hm-count {
  0%, 57.6% { transform: none; animation-timing-function: var(--e-out); }
  62%, 64% { transform: translateY(-14px); animation-timing-function: var(--e-out); }
  68.5%, 87.9% { transform: translateY(-28px); animation-timing-function: var(--e-out); }
  92%, 94% { transform: translateY(-42px); animation-timing-function: var(--e-out); }
  98.5% { transform: translateY(-56px); }
}

/* ---- scene 3: one shelf ---- */
.s3 { --ry0: 30deg; --rx0: 4deg; --ry1: 16deg; --rx1: 3deg; --ry2: 5deg; --rigd: 4.2s; --sweep: 3s; }
.s3 .hm-scr { background: #0b0b0d; }
.s3 .c1 { --f: .56; --t: 3.5s; }
.is-active .hm-shelf { animation: hm-shelf .9s var(--e-out) 1.95s both; }
@keyframes hm-shelf { from { opacity: .22; transform: scale(1.03); } }
.hm-cards { position: absolute; inset: 0; transform-style: preserve-3d; }
.hm-cv { position: absolute; left: 0; top: 0; margin: 0; width: 170px; height: 255px; border-radius: 5px 10px 10px 5px; overflow: hidden; transform-origin: 0 0; opacity: 0;
  box-shadow: 0 40px 50px -22px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .14); background: #111; }
.hm-cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 7%, rgba(255, 255, 255, .08) 9%, transparent 14%), linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 40%); }
.hm-cv figcaption { position: absolute; z-index: 1; inset: 0; padding: 16px 14px 14px 18px; display: flex; flex-direction: column; }
.hm-cv small { align-self: flex-start; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .38); padding: 5px 7px; border-radius: 4px; }
.hm-cv b { display: block; margin-top: 14px; font: 500 25px/1.02 "Cormorant Garamond", Georgia, serif; color: #f1dfb0; letter-spacing: .01em; }
.hm-cv.v3 b { margin-top: auto; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hm-cv.v4 b { color: #2c2a27; }
.hm-cv.v1 { --x0: 0px; --y0: 240px; --r0: -12deg; --x1: 36px; --y1: 451px; --d: .15s; }
.hm-cv.v2 { --x0: 112px; --y0: 190px; --r0: -4deg; --x1: 171px; --y1: 451px; --d: .27s; }
.hm-cv.v3 { --x0: 222px; --y0: 196px; --r0: 5deg; --x1: 305px; --y1: 451px; --d: .39s; }
.hm-cv.v4 { --x0: 318px; --y0: 262px; --r0: 13deg; --x1: 36px; --y1: 738px; --d: .51s; }
.is-active .hm-cv { animation: hm-cv 2.4s var(--d) both; }
@keyframes hm-cv {
  0% { opacity: 0; transform: translate3d(var(--x0), calc(var(--y0) + 160px), -600px) rotate(var(--r0)) rotateY(-40deg); animation-timing-function: var(--e-out); }
  36% { opacity: 1; transform: translate3d(var(--x0), var(--y0), 140px) rotate(var(--r0)); }
  56% { opacity: 1; transform: translate3d(var(--x0), calc(var(--y0) - 10px), 140px) rotate(var(--r0)); animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
  90% { opacity: 1; transform: translate3d(var(--x1), var(--y1), 1px) scale(.69); }
  100% { opacity: 0; transform: translate3d(var(--x1), var(--y1), 1px) scale(.69); }
}
.hm-cont {
  position: absolute; left: 6px; top: 772px; width: 456px; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 28px;
  background: rgba(30, 33, 40, .62); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 40px 60px -24px rgba(0, 0, 0, .9);
  transform: translateZ(70px); font-family: var(--sans);
}
.is-active .hm-cont { animation: hm-cont 1s var(--e-spring) 2.75s both; }
@keyframes hm-cont { from { opacity: 0; transform: translate3d(0, 80px, 70px) scale(.94); } }
.hm-cth { flex: none; width: 64px; height: 96px; object-fit: cover; border-radius: 4px 7px 7px 4px; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .7); }
.hm-ctx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-ctx small { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.hm-ctx b { font: 500 29px/1.05 "Cormorant Garamond", Georgia, serif; color: var(--paper); margin: 5px 0 3px; }
.hm-ctx > span { font-size: 14px; color: rgba(255, 255, 255, .62); }
.hm-cbar { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); margin-top: 10px; overflow: hidden; }
.hm-cbar i { display: block; width: 62%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6f9fd0, #cfe2f5); transform-origin: left; }
.is-active .hm-cbar i { animation: hm-bar 1.4s var(--e-out) 3.2s both; }
@keyframes hm-bar { from { transform: scaleX(0); } }
.hm-cgo { flex: none; position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); }
.hm-cgo::after { content: ""; position: absolute; left: 21px; top: 17px; border: 9px solid transparent; border-left: 14px solid #15171c; border-right: 0; }

/* ---- scene 4: translation ---- */
.s4 { --ry0: 30deg; --rx0: 8deg; --ry1: 18deg; --rx1: 4deg; --ry2: 6deg; --rigd: 5s; --sweep: 3.9s; }
.s4 .c1 { --f: .47; --t: 2.7s; }
.s4 .c2 { --f: .07; --t: 4.7s; }
.hm-band { position: absolute; left: 0; width: 440px; overflow: hidden; }
.hm-band > div { position: absolute; inset: 0; }
.hm-band img { position: absolute; left: 0; width: 440px; height: auto; display: block; }
.is-active .hm-band, .is-active .hm-band > div { animation: hm-bx .9s var(--e-io) calc(1.15s + var(--i) * .13s) both; }
.is-active .hm-band > div { animation-name: hm-bx-in; }
@keyframes hm-bx { from { transform: translateX(-100%); } }
@keyframes hm-bx-in { from { transform: translateX(100%); } }
.hm-band::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 70px; opacity: 0; background: linear-gradient(90deg, rgba(141, 184, 227, 0), rgba(141, 184, 227, .38) 75%, rgba(225, 238, 252, .95)); }
.is-active .hm-band::after { animation: hm-edge .9s linear calc(1.15s + var(--i) * .13s) both; }
.hm-comic { position: absolute; left: 70px; top: 590px; width: 600px; padding: 7px; border-radius: 22px; transform: translateZ(90px);
  background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 50px 70px -28px rgba(0, 0, 0, .9); }
.is-active .hm-comic { animation: hm-comic 1.1s var(--e-spring) 3.25s both; }
@keyframes hm-comic { from { opacity: 0; transform: translate3d(60px, 90px, 90px) rotate(3deg) scale(.92); } }
.hm-cpan { position: relative; overflow: hidden; border-radius: 15px; background: #ddd; }
.hm-cpan img { display: block; width: 100%; height: auto; }
.hm-bub { position: absolute; inset: 0; clip-path: ellipse(12.4% 35.5% at 78.6% 37.5%); }
.is-active .hm-bub { animation: hm-bub .8s var(--e-spring) 4.35s both; }
@keyframes hm-bub { from { clip-path: ellipse(0% 0% at 78.6% 37.5%); } }
.hm-ring { position: absolute; left: 66.2%; top: 2%; width: 24.8%; height: 71%; border-radius: 50%; border: 3px solid rgba(141, 184, 227, .95); opacity: 0; }
.is-active .hm-ring { animation: hm-ring 1s var(--e-out) 4.35s both; }
@keyframes hm-ring { from { opacity: .95; transform: scale(.55); } to { opacity: 0; transform: scale(1.3); } }
.hm-ctag { position: absolute; right: 18px; top: -16px; padding: 7px 13px; border-radius: 16px; background: rgba(20, 24, 32, .82); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .04em; }

/* ---- controls ---- */
.hm-ctl { position: absolute; z-index: 8; left: 40px; bottom: 30px; display: flex; align-items: center; gap: 6px; }
.hm-arrow { width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #f2efe8;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s, transform .4s var(--e-spring); }
.hm-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-arrow:hover { background: rgba(255, 255, 255, .14); }
.hm-arrow:active { transform: scale(.9); }
.hm-dots { display: flex; gap: 2px; padding: 0 4px; }
.hm-dot-btn { position: relative; width: 22px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; transition: width .5s var(--e-out); }
.hm-dot-btn::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .32); transition: width .5s var(--e-out), background .2s; }
.hm-dot-btn:hover::before { background: rgba(255, 255, 255, .6); }
.hm-dot-btn[aria-current="true"] { width: 40px; }
.hm-dot-btn[aria-current="true"]::before { width: 30px; background: rgba(255, 255, 255, .18); }
.hm-dot-btn i { position: absolute; left: 5px; top: 50%; width: 30px; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--paper); transform-origin: left; transform: scaleX(0); display: none; }
.hm-dot-btn[aria-current="true"] i { display: block; animation: hm-prog 7.5s linear both; }
@keyframes hm-prog { to { transform: scaleX(1); } }
.hm :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hm-viewport:focus-visible { outline-offset: -4px; }
.hm.is-paused .hm-scene, .hm.is-paused .hm-scene *, .hm.is-paused .hm-scene *::before, .hm.is-paused .hm-scene *::after, .hm.is-paused .hm-dot-btn i { animation-play-state: paused !important; }

/* ---- narrow: copy on top, phone below ---- */
@media (max-width: 719px) {
  .hm { --k: .4; --cx: 50%; --top: 214px; margin: 6px -4px 36px; }
  .hm-viewport { height: 668px; border-radius: 24px; }
  .hm-bg { background-position: 70% 50%; }
  .hm-bg::before { background: linear-gradient(180deg, rgba(5, 7, 11, .9) 0%, rgba(5, 7, 11, .55) 32%, rgba(5, 7, 11, .1) 60%, rgba(5, 7, 11, .7) 100%); }
  .hm-copy { left: 22px; right: 22px; top: 28px; width: auto; text-align: center; }
  .hm-kick { margin-bottom: 11px; }
  .hm-title { font-size: 34px; }
  :lang(zh) .hm-title { font-size: 27px; }
  .hm-sub { margin: 12px auto 0; font-size: 14px; line-height: 1.55; max-width: 34ch; }
  :lang(zh) .hm-sub { max-width: 20em; }
  .hm-chip { padding: 7px 11px 8px; border-radius: 12px; font-size: 12px; }
  .hm-chip small { font-size: 9px; }
  .hm-chip { white-space: normal; max-width: 136px; }
  .hm-chip.r { left: auto; right: 10px; }
  .hm-chip.l { right: auto; left: 10px; }
  .hm-comic { left: 0; width: 540px; }
  .hm-ctl { left: 0; right: 0; bottom: 12px; justify-content: center; }
  .hm-arrow { width: 32px; height: 32px; }
}
@media (max-width: 359px) { .hm { --k: .37; } .hm-title { font-size: 30px; } }

/* ===== scroll reveal for the figures and cards below ===== */
.hm-pre { opacity: 0; translate: 0 22px; }
.hm-pre.hm-go { opacity: 1; translate: 0 0; transition: opacity .8s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s), translate .9s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s); }

/* ===== reduced motion: every element rests on its final frame, no auto-advance ===== */
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
  .hm-rig, .hm-chip, .hm-bg { translate: none !important; }
  .hm-dot-btn i { display: none !important; }
  .hm-pre { opacity: 1; translate: none; }
}
