@font-face {
  font-family: "标小智无界黑";
  src: url("fonts/title.woff") format("woff");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "思源黑体 CN Medium";
  src: url("fonts/body.woff") format("woff");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Montserrat SemiBold";
  src: url("fonts/latin.woff") format("woff");
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "Waterfall";
  src: url("fonts/script.woff") format("woff");
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: dark;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #e7e8f7;
  background: #0a0b13;
  --accent: #f0cc85;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.reduce-motion { scroll-behavior: auto; }
html:not(.stepping):has(.panel:target, #home:target) { scroll-behavior: auto; }
.panel {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page-next {
  position: absolute; z-index: 2; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: 84px; height: 44px;
  border-radius: 50%; touch-action: manipulation;
  filter: drop-shadow(0 1px 1px rgb(30 25 29 / 80%));
}
.page-next::before {
  content: ""; position: absolute; left: 20px; top: 13px; width: 44px; height: 16px;
  pointer-events: none;
  background: linear-gradient(90deg, #fff7ebad, #fff7eb 50%, #e4dacde6 50%, #fff7ebc7);
  clip-path: path("M 0 1 C 8 4.2 15.8 7.4 22 12 C 28.2 7.4 36 4.2 44 1 C 35.9 6.9 28.3 10.2 22 15.5 C 15.7 10.2 8.1 6.9 0 1 Z");
}
.page-next:is(:hover, :focus-visible) {
  filter: drop-shadow(0 1px 1px #342d35);
}
html:not(.reduce-motion) .page-next::before {
  animation: guide-descend 3.4s ease-in-out infinite;
}
@keyframes guide-descend {
  0%, 20%, 100% { opacity: .78; transform: translateY(-1px); }
  60% { opacity: 1; transform: translateY(3px); }
}
.controls .folio {
  position: absolute; right: 0; bottom: calc(100% + 7px);
  display: flex; align-items: baseline; gap: 5px; color: #fffaf2;
  min-height: 27px; padding: 6px 0 0; background: none; border: 0; border-radius: 2px;
  font-family: "Montserrat SemiBold", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 1px 3px rgb(24 18 15 / 84%); opacity: 1;
}
.folio:hover .folio-current { text-decoration: underline; text-underline-offset: 4px; }
.folio-current { font-size: 19px; font-weight: 600; }
.folio-total, .folio-slash { font-size: 12px; }
.folio-total { opacity: .84; }
.folio-slash { opacity: .67; }
#home { position: absolute; inset: 0 auto auto 0; }
.page-index {
  width: min(740px, calc(100% - 28px)); max-height: min(80vh, 68rem);
  padding: 20px clamp(16px, 3vw, 28px); overflow: auto;
  border: 1px solid #ffffff30; border-radius: 18px; color: #fffaf2;
  background: #111324; box-shadow: 0 16px 56px #0008;
}
.page-index::backdrop { background: #090b13b3; backdrop-filter: blur(8px); }
.page-index__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-index h2 { font-size: 20px; }
.page-index button {
  min-width: 44px; min-height: 44px; border: 1px solid #ffffff38; background: transparent;
  border-radius: 50%; font: 23px/1 system-ui, sans-serif; cursor: pointer;
}
.page-index ol {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px;
  list-style: none; margin: 10px 0 0; padding: 0;
}
.page-index a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 10px;
  border-radius: 6px; color: inherit; text-decoration: none; font-size: 14px;
}
.page-index a span { font-variant-numeric: tabular-nums; color: #bbb9ca; }
.page-index a:is(:hover, [aria-current="page"]) { background: #ffffff14; }
.page-index a[aria-current="page"] span { color: var(--accent); }
@media (max-width: 540px) {
  .page-index ol { grid-template-columns: 1fr; }
}
.deck-panel { display: grid; place-items: center; background: #181c25; }
.deck-ambience {
  position: absolute; inset: -28px; width: calc(100% + 56px); height: calc(100% + 56px);
  object-fit: cover; filter: blur(26px) brightness(.82); pointer-events: none;
}
.deck-ambience:not([src]) { visibility: hidden; }
.deck-stage { background: #181c25; }
.contact-link { position: absolute; z-index: 2; border-radius: 2px; }
.contact-link:focus-visible { outline: 2px solid #fff2cd; outline-offset: 2px; }
.deck-sheet, .deck-film { display: block; width: 100%; height: 100%; }
.deck-film { position: absolute; inset: 0; pointer-events: none; }
html:not(.reduce-motion) .deck-panel.in-view .deck-sheet { animation: deck-arrive .55s ease-out; }
@keyframes deck-arrive {
  from { opacity: .58; }
  to { opacity: 1; }
}
.deck-photo { display: none; position: absolute; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) .deck-photo {
    display: block;
    left: calc(var(--x) * 100% / 1920); top: calc(var(--y) * 100% / 1080);
    width: calc(var(--w) * 100% / 1920); height: calc(var(--h) * 100% / 1080);
  }
  .deck-photo img {
    position: absolute; pointer-events: none; opacity: 0;
    width: calc(100% * 1920 / var(--w)); height: calc(100% * 1080 / var(--h));
    left: calc(-100% * var(--x) / var(--w)); top: calc(-100% * var(--y) / var(--h));
    transform-origin: calc((var(--x) + var(--w) / 2) * 100% / 1920) calc((var(--y) + var(--h) / 2) * 100% / 1080);
    transition: opacity .24s ease, transform .65s cubic-bezier(.2,.65,.3,1);
  }
  .deck-photo.crop-ready:hover img { opacity: 1; transform: scale(1.035); }
}
.awards {
  display: grid; place-items: center; background: #201c1b;
}
.awards::before {
  content: ""; position: absolute; inset: -32px; z-index: -1;
  background-position: center; background-size: cover; filter: blur(26px) brightness(.9);
}
.awards .award-canvas { background-color: #201c1b; background-size: 100% 100%; }
.awards::before, .awards .award-canvas { background-image: url("assets/awards/backdrop.webp"); }
.award-sheet, .award-full { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.reduce-motion) .awards.has-sequence:not(.in-view) .award-sheet { opacity: 0; }
html:not(.reduce-motion) .awards.in-view .award-sheet { animation: award-reveal 1.05s cubic-bezier(.2,.64,.32,1); }
@keyframes award-reveal {
  from { clip-path: inset(0 0 100%); opacity: .1; }
  to { clip-path: inset(0); opacity: 1; }
}
.award-photo {
  position: absolute; overflow: hidden;
  left: calc(var(--x) * 100% / 1920); top: calc(var(--y) * 100% / 1080);
  width: calc(var(--w) * 100% / 1920); height: calc(var(--h) * 100% / 1080);
}
@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) .award-photo canvas {
    display: block; width: 100%; height: 100%;
    opacity: 0; transition: transform .55s ease-out, opacity .4s;
  }
  html:not(.reduce-motion) .award-photo:hover canvas { transform: scale(1.035); opacity: 1; }
}
.award-photo canvas { display: none; }
.work { display: grid; place-items: center; }
.work::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: -1;
  pointer-events: none;
  background: #393443 url("assets/deck/work-backdrop.webp") center / cover no-repeat;
  filter: blur(26px) saturate(.84) brightness(.92);
}
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.stage {
  /* 12192000 x 6858000 EMU, or 1280 x 720 at 96 DPI. */
  width: min(100vw, 177.7777777778vh);
  width: min(100vw, 177.7777777778dvh);
  aspect-ratio: 16 / 9;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.slide {
  --emu: calc(1px / 9525);
  --px: 1px;
  position: relative;
  width: 1280px;
  height: 720px;
  transform: scale(var(--slide-scale, 1));
  transform-origin: top left;
}

.layer {
  position: absolute;
  top: calc(var(--y) * var(--emu));
  left: calc(var(--x) * var(--emu));
  width: calc(var(--cx) * var(--emu));
  height: calc(var(--cy) * var(--emu));
  transform: rotate(var(--angle, 0deg));
}

.art { display: block; pointer-events: none; user-select: none; }
.backdrop { overflow: hidden; pointer-events: none; }
.backdrop img, .backdrop-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.backdrop-film { opacity: 0; filter: contrast(1.18); transition: opacity .48s ease; }
.film-visible .backdrop-film { opacity: 1; }
.shade {
  background: linear-gradient(to right, rgb(0 0 0 / 45%) 20%, rgb(0 0 0 / 5%) 75%);
  pointer-events: none;
}
.light { opacity: .25; }
.cursor-glow {
  position: absolute;
  left: -180px;
  top: -180px;
  width: 360px;
  height: 360px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(209 208 244 / 13%), rgb(183 185 230 / 7%) 38%, transparent 100%);
  mix-blend-mode: screen;
  transform: translate(var(--glow-x, 640px), var(--glow-y, 360px));
  transition: opacity .28s ease, transform .15s ease-out;
}
.is-tracking .cursor-glow { opacity: 1; }
.is-tracking [data-shape="33"] {
  transform-origin: 24% 68%;
  animation: feather-drift 6s ease-in-out infinite;
}
@keyframes feather-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 2px -4px; rotate: -1.6deg; }
}

.title, .translation, .copy, .frame, .caption, [data-shape="16"], [data-shape="19"] {
  animation: fade-in .8s var(--entrance-delay, 0s) ease-out both;
}
.title { --entrance-delay: .12s; }
.translation { --entrance-delay: .33s; }
.copy { --entrance-delay: .62s; }
.frame[data-shape="4"], .caption--light, [data-shape="16"] { --entrance-delay: .78s; }
.frame[data-shape="12"], .caption--dark, [data-shape="19"] { --entrance-delay: 1.03s; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.work.awaiting-entry .stage:not(.motion-off) :is(.title, .translation, .copy, .frame, .caption, [data-shape="16"], [data-shape="19"]) {
  animation: none;
  opacity: 0;
}

.photo {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  transform-origin: var(--tape-x) var(--tape-y);
  transform: translateY(var(--paper-lift, 0px)) rotate(var(--paper-tilt, 0deg));
  transition: transform .45s cubic-bezier(.21,.78,.24,1);
  animation: paper-sway var(--period) ease-in-out var(--entrance-delay) infinite;
}
.photo--red {
  --tape-x: 949px;
  --tape-y: 44px;
  --period: 6.6s;
  --swing: 1.05deg;
  --entrance-delay: .78s;
}
.photo--gold {
  --tape-x: 965px;
  --tape-y: 358px;
  --period: 7.8s;
  --swing: -.9deg;
  --entrance-delay: 1.03s;
}
@keyframes paper-sway {
  0%, 100% { rotate: 0deg; }
  25% { rotate: var(--swing); }
  72% { rotate: calc(-.8 * var(--swing)); }
}
.frame { display: block; overflow: hidden; pointer-events: auto; }
.frame img {
  position: absolute;
  display: block;
  width: 100%;
  height: 101.1900004%;
  top: -.5950002%;
  user-select: none;
  pointer-events: none;
}

.text-box {
  --line-box: calc((var(--cy) - 91440) * var(--emu));
  padding: calc(45720 * var(--emu)) calc(91440 * var(--emu));
  line-height: var(--line-box);
  font-weight: 400;
}
.title {
  font-family: "标小智无界黑", sans-serif;
  font-size: calc(128 * var(--px));
  white-space: pre;
  text-shadow: calc(4.714 * var(--px)) calc(4.714 * var(--px)) calc(40 * var(--px)) rgb(0 0 0 / 10%);
}
.title-glyphs {
  position: relative;
  top: calc(-16.5 * var(--px));
}
#work .title-glyphs { top: calc(-11.5 * var(--px)); }
.title-period {
  color: transparent;
  background: linear-gradient(180deg, #f8d2d7, #e54c5e 50%, #df243a);
  background-clip: text;
  text-shadow: none;
}
.translation, .credit { font-family: "Montserrat SemiBold", sans-serif; }
.translation {
  font-size: calc(44 * 4 * var(--px) / 3);
  font-weight: 600;
  white-space: nowrap;
}
#work .translation {
  font-size: calc(48 * var(--px)); /* 36 pt in the source deck. */
  translate: 0 calc(-1.333 * var(--px));
}
#work .category { translate: 0 calc(2 * var(--px)); }
#work .copy { translate: 0 calc(1.333 * var(--px)); }
.work .title, .work .copy, .work .category, .work .translation { color: #fff; }
.copy, .category {
  font-family: "思源黑体 CN Medium", sans-serif;
  font-size: calc(16 * var(--px));
}
.copy {
  --paragraph-line: calc(var(--line-box) / 5);
  line-height: var(--paragraph-line);
  line-break: strict;
}
.copy p + p { margin-top: var(--paragraph-line); }
.category { white-space: pre; }
.caption {
  font-family: "Waterfall", cursive;
  font-size: calc(14 * 4 * var(--px) / 3);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.caption--light { color: #fff; }
.caption--dark {
  color: #404040;
  text-shadow: calc(.943 * var(--px)) calc(.943 * var(--px)) calc(2.667 * var(--px)) rgb(0 0 0 / 20%);
}
.credit {
  color: rgb(255 255 255 / 5%);
  font-size: calc(80 * 4 * var(--px) / 3);
  font-weight: 700;
  letter-spacing: calc(-4 * var(--px));
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

.controls {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 1;
  display: flex;
  gap: 5px;
}
@media (max-width: 640px) {
  .controls { right: max(10px, env(safe-area-inset-right)); bottom: calc(54px + env(safe-area-inset-bottom)); }
}
.controls button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #efeeff35;
  border-radius: 24px;
  background: #111324df;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  opacity: .82;
  transition: opacity .16s;
}
.controls:hover button, .controls:focus-within button,
.controls button[aria-pressed="true"] { opacity: 1; }
.sound__icon, .fullscreen__icon { font: 16px/1 system-ui, sans-serif; }
.motion__icon {
  width: 9px;
  height: 10px;
  border-inline: 2px solid currentColor;
}
.motion[aria-pressed="true"] .motion__icon {
  width: 0;
  height: 0;
  border: 0;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.motion-off :is(.layer, .photo) { animation: none; }
.motion-off .photo { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-override) { scroll-behavior: auto; }
  .stage:not(.motion-on) :is(.layer, .photo) { animation: none; }
  .stage:not(.motion-on) :is(.cursor-glow, .backdrop-film, .photo) { transition: none; }
  .controls button { transition: none; }
}
.motion-off .backdrop-film, .motion-off .cursor-glow { transition: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.feature { display: grid; place-items: center; background: #211a17; }
.feature::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: -1;
  background: url("assets/network-film/backdrop.webp") center / cover;
  filter: blur(26px) saturate(.84) brightness(.92);
}
.feature-canvas { background: #181412; }
.feature-canvas img { display: block; pointer-events: none; user-select: none; }
.feature-sheet { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-underline {
  position: absolute;
  left: 11.609375%; top: 53.851852%; width: 38.432292%; height: 19.481481%;
  transform: rotate(1deg);
}
.feature-row, .ruby-layer, .pix-layer, .travel-layer, .bone-layer {
  position: absolute;
  left: calc(var(--x) / 1920 * 100%);
  top: calc(var(--y) / 1080 * 100%);
  width: calc(var(--w) / 1920 * 100%);
  height: auto;
}
html:not(.reduce-motion) .feature.has-sequence:not(.is-entering) :is(.feature-row, .feature-underline, .fingerprint__travel) {
  opacity: 0;
}
.feature.is-entering .feature-row {
  animation: feature-line-in .50s cubic-bezier(.2,.67,.25,1) var(--delay) both;
}
.feature.is-entering .feature-underline { animation: ink-line .38s .14s ease-out both; }
@keyframes feature-line-in {
  from { opacity: 0; transform: translateY(max(-12px, -28%)); }
  to { opacity: 1; transform: none; }
}
@keyframes ink-line {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
.fingerprint {
  position: absolute;
  left: 79.4375%; top: 60.064815%; width: 7.953125%; height: 21.222222%;
  display: block; padding: 0; border: 0; border-radius: 42%;
  background: transparent; cursor: pointer; touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.fingerprint::before {
  content: "";
  position: absolute;
  min-width: 44px; min-height: 44px; width: 100%; height: 100%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.fingerprint__travel, .fingerprint img { display: block; width: 100%; height: 100%; }
.fingerprint img { opacity: .6; }
.fingerprint__travel, .fingerprint img { transform-origin: 50% 56%; }
.feature.is-entering .fingerprint:not(.handled) .fingerprint__travel {
  animation: fingerprint-land .88s both;
}
@keyframes fingerprint-land {
  0% { transform: scale(1.22); opacity: .38; }
  16% { opacity: 1; animation-timing-function: cubic-bezier(.42,0,.61,1); }
  54%, 65% { transform: scale(.90,.88); animation-timing-function: ease-out; }
  86% { transform: scale(1.018); }
  100% { transform: none; opacity: 1; }
}
.fingerprint.is-pressed img { animation: fingerprint-contact .43s ease-in-out both; }
.fingerprint.is-releasing img { animation: fingerprint-release .36s ease-out both; }
@keyframes fingerprint-contact {
  0% { transform: none; opacity: .6; }
  25% { transform: scale(1.14); opacity: .56; }
  90%, 100% { transform: scale(.90,.88); opacity: .79; filter: brightness(.82); }
}
@keyframes fingerprint-release {
  from { transform: scale(.90,.88); opacity: .79; filter: brightness(.82); }
  68% { transform: scale(1.02); opacity: .62; }
  to { transform: none; opacity: .6; filter: none; }
}
.reduce-motion .feature.is-entering :is(.feature-row, .feature-underline),
.reduce-motion .feature.is-entering .fingerprint:not(.handled) .fingerprint__travel,
.reduce-motion .fingerprint:is(.is-pressed, .is-releasing) img { animation: none; }
.reduce-motion .fingerprint.is-pressed img { opacity: .79; filter: brightness(.82); }

.feature-mist, .bone-mist {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.feature, .feature-canvas { touch-action: pan-y pinch-zoom; }

.bmw { display: grid; place-items: center; background: #33322f; }
.bmw::before {
  content: ""; position: absolute; inset: -32px; z-index: -1;
  background: url("assets/bmw/ambient.webp") center / cover; filter: blur(26px);
}
.bmw-artwork { display: block; width: 100%; height: 100%; }
.bmw-car {
  position: absolute; left: 36.51042%; top: 15.27778%; width: 40.86458%; height: 24.21296%;
  padding: 0; border: 0; background: transparent; opacity: .65;
  touch-action: pan-y pinch-zoom; user-select: none; cursor: default;
}
.bmw-car img { display: block; width: 100%; height: 100%; pointer-events: none; }
.bmw-car canvas {
  position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
  opacity: 0; pointer-events: none;
}
.bmw-car.rendering img { visibility: hidden; }
.bmw-car.rendering canvas { opacity: 1; }

.lenovo {
  --art-width: min(100vw, 177.7777777778dvh);
  --art-height: calc(var(--art-width) * .5625);
  --frame-width: calc(var(--art-width) * 209 / 1920);
  --frame-height: calc(var(--art-height) * 264 / 1080);
  --focus-x: calc(50% - var(--art-width) * .3388020833);
  --focus-y: calc(50% - var(--art-height) * .1444444444);
  --frame-x: clamp(calc(var(--frame-width) / 2), var(--focus-x), calc(100% - var(--frame-width) / 2));
  --frame-y: clamp(calc(var(--frame-height) / 2), var(--focus-y), calc(100% - var(--frame-height) / 2));
  display: grid; place-items: center; background: #131b1c; touch-action: pan-y pinch-zoom;
}
.lenovo::before, .lenovo-zoom-scene::before {
  content: "";
  position: absolute; inset: -36px; z-index: -1;
  background: url("assets/lenovo/backdrop.webp") center / cover;
  filter: blur(26px) saturate(.84) brightness(.88);
}
.lenovo-canvas, .lenovo-zoom-art { background: #141b1c; }
.lenovo img { display: block; pointer-events: none; user-select: none; }
.lenovo-sheet, .lenovo-lens { position: absolute; inset: 0; width: 100%; height: 100%; }
.lenovo-layer {
  position: absolute; left: calc(var(--x) / 1920 * 100%); top: calc(var(--y) / 1080 * 100%);
  width: calc(var(--w) / 1920 * 100%); height: auto;
}
.lenovo-lens {
  pointer-events: none; opacity: 0;
  mask-image: radial-gradient(ellipse calc(var(--frame-width) * .68) calc(var(--frame-height) * .64) at var(--frame-x) var(--frame-y), #000 55%, transparent);
  transition: opacity .25s;
}
.lenovo-zoom-scene {
  position: absolute; inset: 0; display: grid; place-items: center; isolation: isolate;
  background: #131b1c; transform: scale(1.16); transform-origin: var(--focus-x) var(--focus-y);
}
.lenovo.is-focusing .lenovo-lens { opacity: 1; }
.lenovo-reticle {
  position: absolute; left: var(--frame-x); top: var(--frame-y);
  width: var(--frame-width); height: var(--frame-height);
  transform: translate(-50%, -50%); pointer-events: none;
}
.lenovo-corner {
  position: absolute; inset: 0; --sx: -1; --sy: -1;
  background: url("assets/lenovo/focus-frame.webp") center / 100% 100% no-repeat;
  clip-path: inset(0 50% 50% 0);
  transform: translate(calc(var(--sx) * var(--gap, 0%)), calc(var(--sy) * var(--gap, 0%)));
  transition: transform .17s ease-out;
}
.lenovo-corner:nth-child(2) { --sx: 1; clip-path: inset(0 0 50% 50%); }
.lenovo-corner:nth-child(3) { --sy: 1; clip-path: inset(50% 50% 0 0); }
.lenovo-corner:nth-child(4) { --sx: 1; --sy: 1; clip-path: inset(50% 0 0 50%); }
.lenovo.is-seeking { --gap: 4%; }
.lenovo-reticle.is-acquiring .lenovo-corner { animation: acquire-focus .72s both; }
@keyframes acquire-focus {
  0% { opacity: .46; filter: blur(1px); transform: translate(calc(var(--sx) * 16%), calc(var(--sy) * 14%)); }
  58% { opacity: 1; filter: none; transform: translate(calc(var(--sx) * -2%), calc(var(--sy) * -2%)); }
  79% { transform: translate(calc(var(--sx) * 1%), calc(var(--sy) * 1%)); }
  100% { transform: none; }
}
.lenovo.has-sequence:not(.in-view) .lenovo-text { opacity: 0; }
.lenovo.in-view .lenovo-text {
  animation: lenovo-type-in .52s cubic-bezier(.2,.65,.3,1) var(--delay, 0s) both;
}
@keyframes lenovo-type-in {
  from { opacity: 0; transform: translateY(-5%); }
  to { opacity: 1; transform: none; }
}
.reduce-motion .lenovo .lenovo-text { animation: none; opacity: 1; }
.lenovo.has-sequence:not(.in-view) .lenovo-line { clip-path: inset(0 100% 0 0); }
.lenovo.in-view .lenovo-line { animation: lenovo-line-draw 1.32s .16s linear both; }
@keyframes lenovo-line-draw {
  0% { clip-path: inset(0 100% 0 0); }
  30%, 36% { clip-path: inset(0 65% 0 0); }
  59%, 65% { clip-path: inset(0 36% 0 0); }
  100% { clip-path: inset(0); }
}
.reduce-motion .lenovo .lenovo-line { animation: none; clip-path: none; }
.reduce-motion .lenovo :is(.lenovo-lens,.lenovo-corner) { animation: none; transition: none; }

.ruby { display: grid; place-items: center; background: #273034; }
.ruby::before {
  content: "";
  position: absolute; inset: -36px; z-index: -1;
  background: url("assets/ruby/backdrop.webp") center / cover no-repeat;
  filter: blur(26px) saturate(.84) brightness(.9);
}
.ruby-canvas { background: #273034; }
.ruby, .ruby-canvas { touch-action: pan-y pinch-zoom; }
.ruby-canvas img { display: block; pointer-events: none; user-select: none; }
.ruby-star { transform-origin: 39.5% 52%; }
.ruby-backdrop, .ruby-sheet { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.reduce-motion) .ruby.has-sequence:not(.in-view) .ruby-text { opacity: 0; }
html:not(.reduce-motion) .ruby.in-view .ruby-text { animation: ruby-type-in .56s var(--delay, 0s) ease-out both; }
@keyframes ruby-type-in {
  from { opacity: 0; translate: 0 -5px; }
  to { opacity: 1; translate: none; }
}
.ruby-product {
  position: absolute;
  left: 35.208333%; top: 68.333333%; width: 13.854167%; height: 31.111111%;
  min-width: 32px; min-height: 32px; padding: 0;
  background: transparent; border: 0; cursor: pointer; touch-action: pan-y pinch-zoom;
}
.ruby-product:focus-visible { outline-color: #bee8ff; }

.ruby-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ruby-bubble {
  position: absolute;
  width: var(--size); height: var(--size); border-radius: 50%;
  border: 1px solid rgb(206 236 247 / 62%);
  background:
    radial-gradient(ellipse at 29% 22%, rgb(255 255 255 / 92%) 0 4%, transparent 14%),
    radial-gradient(ellipse at 72% 88%, rgb(236 182 221 / 44%), transparent 37%),
    radial-gradient(circle at 43% 39%, transparent 40%, rgb(122 200 226 / 22%) 71%, rgb(241 251 255 / 42%) 93%);
  box-shadow: inset -1px -1px 2px rgb(146 205 224 / 38%), 0 1px 2px rgb(27 76 95 / 16%);
  animation: ruby-bubble-float var(--lifetime) linear both;
}
@keyframes ruby-bubble-float {
  0% { opacity: 0; transform: scale(.68); }
  15% { opacity: .5; }
  52% { opacity: .44; transform: translate(var(--sway), calc(var(--rise) * .46)) scale(.97); }
  100% { opacity: 0; transform: translate(var(--drift), var(--rise)) scale(1.05); }
}

.pixverse { display: grid; place-items: center; background: #362616; }
.pixverse::before {
  content: "";
  position: absolute; inset: -36px; z-index: -1;
  background: url("assets/pixverse/backdrop.webp") center / cover no-repeat;
  filter: blur(26px) saturate(.85) brightness(.85);
}
.pix-canvas { background: #362616; }
.pixverse { touch-action: pan-y pinch-zoom; }
.pix-typing {
  display: block; pointer-events: none; opacity: 0;
  transition: opacity .28s ease-in-out;
}
.pix-canvas.show-typing .pix-typing { opacity: 1; }
.reduce-motion .pix-typing { transition: none; }
.pix-canvas img { display: block; user-select: none; pointer-events: none; }
.pix-sheet { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.reduce-motion) .pixverse.has-sequence:not(.in-view) .pix-type { opacity: 0; }
html:not(.reduce-motion) .pixverse.in-view .pix-type {
  animation: feature-line-in .55s cubic-bezier(.2,.67,.25,1) var(--delay, 0s) both;
}
.pix-star { transform-origin: 38% 63%; }
html:not(.reduce-motion) .pixverse.in-view .pix-star {
  animation: pix-twinkle 3.1s ease-in-out infinite;
}
@keyframes pix-twinkle {
  0%, 100% { opacity: .76; transform: scale(.96); }
  21% { opacity: 1; transform: scale(1.08); filter: brightness(1.25); }
  42% { opacity: .48; transform: scale(.91); }
  58% { opacity: .93; transform: scale(1.02); }
  78% { opacity: .62; transform: scale(.95); }
}
.pix-clapper { transform-origin: 50% 72%; }
@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) .pix-canvas .pix-clapper {
    pointer-events: auto;
    transition: scale .22s ease-out;
  }
  html:not(.reduce-motion) .pixverse.in-view .pix-clapper:hover { scale: 1.08; }
}
html:not(.reduce-motion) .pixverse.has-sequence:not(.in-view) .pix-clapper { opacity: 0; }
html:not(.reduce-motion) .pixverse.sticker-entering .pix-clapper {
  animation: pix-sticker-pop .62s .28s both;
}
@keyframes pix-sticker-pop {
  0% { opacity: 0; transform: translateY(7%) rotate(-8deg) scale(.64); }
  62% { opacity: 1; transform: rotate(2deg) scale(1.10); }
  83% { transform: scale(.98); }
  100% { opacity: 1; transform: none; }
}

.pix-pet-zone {
  position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(1% 63%, 7% 55%, 11% 32%, 11% 22%, 15% 15%, 23% 12%, 32% 16%,
    38% 20%, 46% 30%, 46% 45%, 39% 56%, 42% 66%, 39% 76%, 32% 83%, 9% 85%, 1% 80%);
}
.pix-paw {
  display: none; position: absolute; left: 0; top: 0; pointer-events: none;
}
.pix-paw img {
  width: 25px; height: auto; translate: -50% -50%;
  rotate: var(--lean, 0deg); transform-origin: 50% 65%;
  filter: drop-shadow(0 1px 1px #30190d70);
  transition: rotate .14s ease-out, scale .23s cubic-bezier(.22,1.55,.4,1);
}
.pix-paw.is-pressed img { scale: 1.15 .80; transition-duration: .1s; }
@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  html:not(.reduce-motion) .pixverse.in-view .pix-pet-zone { pointer-events: auto; }
  html:not(.reduce-motion) .pixverse.in-view .pix-pet-zone.has-paw { cursor: none; }
  html:not(.reduce-motion) .pixverse.in-view .pix-pet-zone.has-paw + .pix-paw { display: block; }
}

.travel {
  --travel-backdrop: url("assets/deck/travel-1-base.webp");
  display: grid; place-items: center; background: #202327; touch-action: pan-y pinch-zoom;
}
.travel::before {
  content: ""; position: absolute; inset: -32px; z-index: -1;
  background: var(--travel-backdrop) center / cover;
  filter: blur(26px) brightness(.86);
}
.travel-canvas { background: #202327 var(--travel-backdrop) center / 100% 100% no-repeat; }
.travel img { display: block; pointer-events: none; user-select: none; }
.travel-sheet { position: absolute; inset: 0; width: 100%; height: 100%; }
.travel-photo { width: 100%; height: auto; }
.travel-layer { pointer-events: none; }
.travel-window {
  position: absolute; overflow: hidden; pointer-events: auto; opacity: 0;
  left: calc(100% * var(--ix) / var(--w)); top: calc(100% * var(--iy) / var(--h));
  width: calc(100% * var(--iw) / var(--w)); height: calc(100% * var(--ih) / var(--h));
}
.travel-still {
  position: absolute; height: auto; width: calc(100% * var(--w) / var(--iw));
  left: calc(-100% * var(--ix) / var(--iw)); top: calc(-100% * var(--iy) / var(--ih));
}
html:not(.reduce-motion) .travel.has-sequence:not(.in-view) .travel-enter { opacity: 0; }
html:not(.reduce-motion) .travel.in-view .travel-enter {
  animation: travel-appear .6s cubic-bezier(.2,.65,.3,1) var(--delay, 0s) both;
}
@keyframes travel-appear {
  from { opacity: 0; translate: 0 5px; }
  to { opacity: 1; translate: none; }
}
@media (any-hover: hover) and (any-pointer: fine) {
  html:not(.reduce-motion) .travel-window { transition: opacity .35s; }
  html:not(.reduce-motion) .travel-shot:hover .travel-window { opacity: 1; }
  html:not(.reduce-motion) .travel-still { transition: transform .6s cubic-bezier(.2,.65,.3,1); }
  html:not(.reduce-motion) .travel-shot:hover .travel-still { transform: scale(1.035); }
}

.bone { display: grid; place-items: center; background: #2a2923; touch-action: pan-y pinch-zoom; }
.bone::before {
  content: ""; position: absolute; inset: -32px; z-index: -1;
  background-position: center; background-size: cover; filter: blur(26px) brightness(.87);
}
.bone .bone-canvas { background-size: 100% 100%; background-color: #2a2923; }
.bone::before, .bone .bone-canvas { background-image: url("assets/bone/backdrop.webp"); }
.bone-canvas img { display: block; pointer-events: none; user-select: none; }
.bone-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.reduce-motion) .bone.has-sequence:not(.in-view) .bone-enter { opacity: 0; }
html:not(.reduce-motion) .bone.in-view .bone-enter {
  animation: feature-line-in .54s cubic-bezier(.2,.65,.3,1) var(--delay, 0s) backwards;
}
.bone-mist {
  opacity: .78;
  mask-image: linear-gradient(to bottom, #000d, #000 43%, #000c 68%, #0005);
}
.bone-lantern {
  padding: 0; border: 0; border-radius: 40%; background: transparent;
  cursor: pointer; touch-action: pan-y pinch-zoom;
}
.bone-lantern:disabled { cursor: default; }
.bone-lantern::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: max(100%, 44px); height: max(100%, 44px);
}
.bone-lantern img {
  width: 100%; height: auto; pointer-events: auto;
  transform-origin: var(--hinge) 0;
}
html:not(.reduce-motion) .bone.in-view .bone-lantern img { animation: bone-swing 2.4s ease-in-out; }
@keyframes bone-swing {
  0%, 100% { transform: rotate(0); }
  16% { transform: rotate(4deg); }
  39% { transform: rotate(-2.8deg); }
  62% { transform: rotate(1.6deg); }
  82% { transform: rotate(-.7deg); }
}
.bone-photo { width: 100%; height: auto; }
.bone-window {
  position: absolute; overflow: hidden;
  left: calc(var(--ix) * 100% / var(--w)); top: calc(var(--iy) * 100% / var(--h));
  width: calc(var(--iw) * 100% / var(--w)); height: calc(var(--ih) * 100% / var(--h));
}
.bone-window img {
  position: absolute; height: auto; width: calc(var(--w) * 100% / var(--iw));
  left: calc(-100% * var(--ix) / var(--iw)); top: calc(-100% * var(--iy) / var(--ih));
  transform-origin: calc((var(--ix) + var(--iw) / 2) / var(--w) * 100%) calc((var(--iy) + var(--ih) / 2) / var(--h) * 100%);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) .bone-window img { transition: transform .45s steps(5, end), opacity .25s; }
  html:not(.reduce-motion) .bone-window:hover img { transform: scale(1.045); opacity: 1; }
}
