:root {
  --bg: #010101;
  --ink: #eeeeea;
  --core-x: 50%;
  --core-y: 52%;
  --word-x: 50%;
  --word-y: 50%;
  --word-size: 9rem;
  --word-opacity: 0.045;
  --copy-opacity: 0.72;
  --accent-a: 112, 224, 255;
  --accent-b: 255, 83, 190;
  --accent-c: 255, 188, 82;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
}

a,
button {
  color: inherit;
  font: inherit;
}

.world-field {
  min-height: 100vh;
  background:
    radial-gradient(circle at var(--core-x) var(--core-y), rgba(255, 255, 255, 0.024), transparent 18%),
    radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, 0.016), transparent 62%),
    linear-gradient(180deg, #050505 0%, #000 34%, #020202 68%, #000 100%);
  isolation: isolate;
}

.world-field::before,
.world-field::after {
  content: "";
  position: fixed;
  inset: -14%;
  z-index: 0;
  pointer-events: none;
}

.world-field::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.016), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.012)),
    radial-gradient(ellipse at 50% 50%, transparent 0 32%, rgba(0, 0, 0, 0.52) 74%, rgba(0, 0, 0, 0.96) 100%);
  opacity: 0.95;
}

.world-field::after {
  background:
    radial-gradient(circle at 22% 46%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 38%, rgba(255, 255, 255, 0.034) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 58%, rgba(255, 255, 255, 0.027) 0 1px, transparent 1.8px);
  background-size: 420px 190px, 560px 260px, 700px 310px;
  opacity: 0.075;
  mix-blend-mode: screen;
  animation: world-drift 18s ease-in-out infinite alternate;
}

.world-canvas,
.world-hit,
.world-flash {
  position: fixed;
  inset: 0;
}

.world-canvas {
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.92;
  filter: brightness(0.9) contrast(1.04) saturate(0.9);
}

.world-hit {
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.world-field.is-dragging .world-hit {
  cursor: grabbing;
}

.world-field.is-node-hovered .world-hit {
  cursor: pointer;
}

.world-hit:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: -20px;
}

/* A sharp, semantic counterpart to the spatial canvas. Native details keeps
   the index usable even before the heavier World renderer has initialized. */
.world-directory {
  position: fixed;
  z-index: 18;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  width: min(22rem, calc(100vw - 3rem));
  color: #eeeeea;
  font-size: 0.875rem;
}

.world-directory > summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  width: fit-content;
  min-height: 44px;
  margin-left: auto;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(238, 238, 234, 0.24);
  background: #111210;
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.12em;
}

.world-directory > summary::-webkit-details-marker { display: none; }
.world-directory__signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b6c8a1;
}
.world-directory__toggle { font-size: 1.05rem; line-height: 1; }
.world-directory[open] .world-directory__toggle { transform: rotate(45deg); }

.world-directory__panel {
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  margin-top: 0.65rem;
  padding: 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(238, 238, 234, 0.2);
  background: #111210;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
}

.world-directory__heading {
  margin: 0 0 0.9rem;
  color: #b6c8a1;
  font: 0.72rem/1.5 "Share Tech Mono", Consolas, monospace;
  letter-spacing: 0.14em;
}
.world-directory ul { margin: 0; padding: 0; list-style: none; }
.world-directory li + li { border-top: 1px solid rgba(238, 238, 234, 0.1); }
.world-directory a {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 0.2rem;
  color: #eeeeea;
  line-height: 1.5;
  text-decoration: none;
}
.world-directory__number,
.world-directory small {
  color: #aaa9a0;
  font-family: "Share Tech Mono", Consolas, monospace;
  font-size: 0.68rem;
}
.world-directory a:hover { color: #d2e1ba; background: #1c2019; }
.world-directory > summary:focus-visible,
.world-directory a:focus-visible {
  outline: 2px solid #b6c8a1;
  outline-offset: 3px;
}
.world-directory__hint { margin: 1rem 0 0; color: #aaa9a0; font-size: 0.75rem; line-height: 1.7; }
.world-field[aria-busy="true"] .world-directory { visibility: hidden; }

@media (max-width: 760px) {
  .world-directory { top: max(0.75rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); width: min(22rem, calc(100vw - 2rem)); }
  .world-directory__panel { padding: 1rem; }
}

.world-field.is-notes-return-tracking .world-hit,
.world-field.is-notes-return-tracking .world-back,
.world-field.is-notes-return-tracking .world-path {
  pointer-events: none;
}

.world-flash {
  z-index: 20;
  pointer-events: none;
  background: #f6f3eb;
  opacity: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.world-field.is-traveling .world-flash {
  animation: world-flash 1720ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.world-field.is-contact-traveling .world-flash {
  animation: world-contact-flash 1900ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

/* A forward Contact route can be restored from BFCache with only the route
   class left behind. Never let that cached departure flash cover an idle World. */
.world-field.is-contact-traveling:not(.is-traveling):not(.is-world-returning) .world-flash {
  animation: none;
  opacity: 0;
}

.world-field.is-motion-traveling .world-flash {
  animation: world-motion-flash 1850ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.world-field.is-guide-returning .world-flash {
  background:
    linear-gradient(90deg, rgba(242, 242, 238, 0), rgba(242, 242, 238, 0.96), rgba(242, 242, 238, 0)),
    #f2f2ee;
  mix-blend-mode: screen;
  animation: world-guide-return-flash 820ms cubic-bezier(0.12, 0.82, 0.14, 1) both;
}

.world-field.is-guide-returning .world-canvas {
  animation: world-guide-return-canvas 820ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.world-field.is-guide-returning .world-copy,
.world-field.is-guide-returning .world-path,
.world-field.is-guide-returning .world-foot,
.world-field.is-guide-returning .world-back {
  animation: world-guide-return-copy 620ms cubic-bezier(0.48, 0, 0.92, 0.16) both;
}

.world-field.is-resume-page-transition .world-flash {
  background:
    linear-gradient(112deg, transparent 0 24%, rgba(8, 8, 7, 0.82) 31%, rgba(246, 242, 228, 0.96) 47%, rgba(246, 242, 228, 0.98) 60%, rgba(8, 8, 7, 0.86) 70%, transparent 82%),
    repeating-linear-gradient(90deg, rgba(20, 20, 18, 0.16) 0 1px, transparent 1px 4.6rem),
    repeating-linear-gradient(0deg, rgba(20, 20, 18, 0.12) 0 1px, transparent 1px 4.6rem),
    radial-gradient(ellipse at 54% 50%, rgba(255, 255, 255, 0.62), transparent 28rem);
  mix-blend-mode: normal;
  animation: world-resume-page-gate 1280ms cubic-bezier(0.14, 0.84, 0.18, 1) both;
}

.world-field.is-resume-page-transition .world-canvas {
  animation: world-resume-canvas-dim 1280ms cubic-bezier(0.14, 0.84, 0.18, 1) both;
}

.world-field.is-resume-page-transition .world-copy,
.world-field.is-resume-page-transition .world-path,
.world-field.is-resume-page-transition .world-foot {
  animation: world-resume-copy-slip 980ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.world-field.is-resume-card-transition .world-flash {
  background: transparent;
  opacity: 0;
  animation: none;
}

.world-field.is-resume-card-transition .world-canvas {
  animation: world-resume-card-canvas 1320ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.world-field.is-resume-card-transition .world-copy,
.world-field.is-resume-card-transition .world-path,
.world-field.is-resume-card-transition .world-foot {
  animation: world-resume-card-copy 980ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.world-field.is-notes-page-transition .world-flash {
  background: transparent;
  mix-blend-mode: normal;
  animation: none;
}
.world-field.is-notes-page-transition .world-canvas {
  animation: world-notes-canvas-smudge 1080ms cubic-bezier(0.14, 0.84, 0.18, 1) both;
}

.world-field.is-notes-page-transition .world-copy,
.world-field.is-notes-page-transition .world-path,
.world-field.is-notes-page-transition .world-foot {
  animation: world-notes-copy-erase 820ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.world-field.is-world-returning .world-flash {
  mix-blend-mode: normal;
}

.world-field.is-returning-from-notes .world-flash {
  background: transparent;
  opacity: 0;
  animation: none;
}
.world-field.is-returning-from-resume .world-flash {
  background: transparent;
  opacity: 0;
  animation: none;
}
.world-field.is-returning-from-motion .world-flash {
  background: transparent;
  opacity: 0;
  animation: none;
}

.world-field.is-returning-from-contact .world-flash {
  background:
    repeating-linear-gradient(0deg, rgba(238, 239, 234, 0.1) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(238, 239, 234, 0.08) 0 1px, transparent 1px 64px),
    radial-gradient(circle at var(--core-x) var(--core-y), rgba(238, 239, 234, 0.18), transparent 22%);
  mix-blend-mode: screen;
  animation: world-contact-return-matrix 680ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.world-field.is-returning-from-contact .world-canvas {
  animation: world-contact-return-canvas 680ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.world-field.is-returning-from-contact .world-copy,
.world-field.is-returning-from-contact .world-foot,
.world-field.is-returning-from-contact .world-back {
  animation: world-contact-return-copy 480ms cubic-bezier(0.16, 0.88, 0.18, 1) 100ms both;
}

.world-field.is-returning-from-contact .world-path {
  pointer-events: none;
}

.world-field.is-returning-from-notes .world-canvas,
.world-field.is-returning-from-resume .world-canvas,
.world-field.is-returning-from-motion .world-canvas {
  animation: world-return-canvas 1180ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.world-field.is-returning-from-notes .world-copy,
.world-field.is-returning-from-notes .world-foot,
.world-field.is-returning-from-resume .world-copy,
.world-field.is-returning-from-resume .world-foot,
.world-field.is-returning-from-motion .world-copy,
.world-field.is-returning-from-motion .world-foot {
  animation: world-return-copy 880ms cubic-bezier(0.16, 0.88, 0.18, 1) 180ms both;
}

.world-field.is-returning-from-notes .world-path,
.world-field.is-returning-from-resume .world-path,
.world-field.is-returning-from-motion .world-path {
  animation: world-path-return-lock 1180ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
  pointer-events: none;
}

.world-field.is-returning-from-resume .world-path {
  animation-duration: 1480ms;
}

.mg-card-grid {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  gap: clamp(5px, 0.7vw, 12px);
  padding: clamp(14px, 2.4vw, 34px);
  overflow: hidden;
  background: transparent;
  perspective: 1280px;
  pointer-events: none;
}

.mg-card-grid::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 6rem 6rem;
  content: "";
  opacity: 0.07;
  pointer-events: none;
}

.mg-card-grid__logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 0.5rem;
  color: rgba(238, 238, 234, 0.88);
  letter-spacing: 0.24em;
  place-items: center;
  text-align: center;
  text-shadow: 0 0 28px rgba(238, 238, 234, 0.3);
  transform: translate(-50%, -50%);
  animation: world-mg-logo-enter 1320ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.mg-card-grid__logo strong {
  font-size: clamp(2rem, 4.8vw, 5.8rem);
  line-height: 0.85;
}

.mg-card-grid__logo span {
  font-size: clamp(0.55rem, 0.86vw, 0.78rem);
  font-weight: 900;
}

.mg-card-grid__card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(238, 238, 234, 0.12);
  background:
    linear-gradient(135deg, rgba(238, 238, 234, 0.1), rgba(238, 238, 234, 0.024) 48%, rgba(0, 0, 0, 0.22)),
    rgba(12, 12, 11, 0.34);
  box-shadow:
    inset 0 0 34px rgba(238, 238, 234, 0.035),
    0 16px 42px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  opacity: 0.92;
  transform: rotateY(var(--enter-turn-start)) translate3d(var(--enter-x-start), var(--lift), -80px);
  transform-style: preserve-3d;
  animation: world-mg-card-enter 1260ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--delay) both;
  will-change: opacity, transform, filter;
}

.mg-card-grid--depart .mg-card-grid__logo {
  animation: world-mg-logo-depart 1260ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.mg-card-grid--depart .mg-card-grid__card {
  opacity: 0;
  transform: rotateY(var(--depart-turn-start)) translate3d(var(--depart-x-start), var(--lift), -80px);
  animation: world-mg-card-depart 1180ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--delay) both;
}

.mg-card-grid__card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(238, 238, 234, 0.16), transparent);
  content: "";
  opacity: 0;
  transform: translateX(-42%);
  animation: world-mg-card-sheen 720ms ease var(--delay) both;
}

.world-nextstep-route {
  --route-lock-y: 54vh;
  position: fixed;
  z-index: 78;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  isolation: isolate;
}
.world-nextstep-route::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #020507;
  content: "";
}
.world-nextstep-route__field,
.world-nextstep-route__grain,
.world-nextstep-route__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-nextstep-route__field {
  z-index: 1;
  background: #020507 url("assets/projects/nextstep/signal-field.webp") 58% 50% / cover no-repeat;
  opacity: 0.76;
  filter: saturate(0.92) brightness(0.58) contrast(1.12);
}
@media (max-width: 920px), (pointer: coarse) {
  .world-nextstep-route__field {
    background-image: url("assets/projects/nextstep/signal-field-mobile-hq.webp");
  }
}
@media (max-width: 920px) and (orientation: portrait) {
  .world-nextstep-route__field {
    background-image: url("assets/projects/nextstep/signal-field-mobile-portrait.webp");
    background-position: 50% 50%;
  }
}
.world-nextstep-route__grain {
  z-index: 2;
  background: url("assets/projects/nextstep/grain-texture.webp") 0 0 / 768px 768px repeat;
  opacity: 0.5;
  mix-blend-mode: screen;
}
@media (max-width: 920px), (pointer: coarse) {
  .world-nextstep-route__grain {
    background-image: url("assets/projects/nextstep/grain-texture-mobile.webp");
    background-size: 384px 384px;
  }
}
.world-nextstep-route__scan {
  z-index: 3;
  left: -14%;
  right: auto;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(120, 235, 218, 0.18), rgba(118, 139, 255, 0.08), transparent);
  opacity: 0;
  transform: translateX(-140%);
}
.world-nextstep-route__lockup {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 54%;
  width: min(88vw, 54rem);
  text-align: center;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}
.world-nextstep-route__mark {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  overflow: hidden;
  color: rgba(245, 248, 247, 0.98);
  font: 400 clamp(2.9rem, 4.35vw, 5.3rem)/0.88 "Silkscreen", "Share Tech Mono", Consolas, monospace;
  letter-spacing: 0.075em;
  white-space: nowrap;
}
.world-nextstep-route__mark span,
.world-nextstep-route__mark strong,
.world-nextstep-route__mark b { font-weight: 400; }
.world-nextstep-route__mark strong { color: #2ea764; }
.world-nextstep-route__mark b { display: inline-block; margin-left: 0.1em; transform: translateY(0.08em); }
.world-nextstep-route__mark::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(74, 214, 200, 0.62);
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
}
.world-nextstep-route__sub {
  margin: 2rem 0 0;
  color: rgba(231, 240, 238, 0.52);
  font: 0.72rem/1 "Share Tech Mono", Consolas, monospace;
  letter-spacing: 0.66em;
  text-indent: 0.66em;
}
.world-nextstep-route--depart::before { animation: world-nextstep-veil-in 900ms cubic-bezier(0.2, 0.72, 0.2, 1) both; }
.world-nextstep-route--enter::before { animation: world-nextstep-veil-out 920ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.world-nextstep-route--depart .world-nextstep-route__field { animation: world-nextstep-field-in 900ms cubic-bezier(0.2, 0.72, 0.2, 1) both; }
.world-nextstep-route--enter .world-nextstep-route__field { animation: world-nextstep-field-out 920ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.world-nextstep-route--depart .world-nextstep-route__grain { animation: world-nextstep-grain-in 900ms ease both; }
.world-nextstep-route--enter .world-nextstep-route__grain { animation: world-nextstep-grain-out 920ms ease both; }
.world-nextstep-route--depart .world-nextstep-route__lockup { animation: world-nextstep-logo-depart 900ms cubic-bezier(0.2, 0.78, 0.2, 1) both; }
.world-nextstep-route--enter .world-nextstep-route__lockup { animation: world-nextstep-logo-enter 920ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.world-nextstep-route--depart .world-nextstep-route__mark { animation: world-nextstep-mark-depart 900ms cubic-bezier(0.2, 0.78, 0.2, 1) both; }
.world-nextstep-route--enter .world-nextstep-route__mark { animation: world-nextstep-mark-enter 920ms cubic-bezier(0.16, 0.82, 0.2, 1) both; }
.world-nextstep-route--depart .world-nextstep-route__mark::after { animation: world-nextstep-logo-echo 900ms steps(1, end) both; }
.world-nextstep-route--depart .world-nextstep-route__sub { animation: world-nextstep-sub-in 900ms ease both; }
.world-nextstep-route--enter .world-nextstep-route__sub { animation: world-nextstep-sub-out 920ms ease both; }
.world-nextstep-route--depart .world-nextstep-route__scan { animation: world-nextstep-scan-depart 900ms cubic-bezier(0.4, 0, 0.2, 1) both; }
.world-nextstep-route--enter .world-nextstep-route__scan { animation: world-nextstep-scan-enter 920ms cubic-bezier(0.4, 0, 0.2, 1) both; }
body.is-nextstep-transition .world-hit { pointer-events: none; }

.notes-vector-wipe {
  position: fixed;
  inset: 0;
  z-index: 74;
  overflow: hidden;
  background: transparent;
  color: rgba(244, 239, 222, 0.86);
  pointer-events: none;
  isolation: isolate;
}

.notes-vector-wipe::before,
.notes-vector-wipe::after {
  position: absolute;
  inset: -8%;
  content: "";
  pointer-events: none;
}

.notes-vector-wipe::before {
  z-index: 0;
  background: transparent;
  opacity: 0;
  animation: none;
}

.notes-vector-wipe::after {
  z-index: 2;
  background: transparent;
  background-size: auto;
  clip-path: none;
  opacity: 0;
  transform: none;
  animation: none;
}

.notes-vector-wipe__slab {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  background: var(--bg);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, var(--edge, 0.04));
  clip-path: var(--clip, polygon(0 0, 100% 0, 100% 100%, 0 100%));
  opacity: 0;
  overflow: hidden;
  transform: translate3d(var(--from-x), var(--from-y), 0) rotate(var(--rot)) skewX(var(--skew)) scaleX(0.74);
  transform-origin: var(--origin, 50% 50%);
  animation: notes-vector-slab 1120ms cubic-bezier(0.14, 0.84, 0.18, 1) var(--delay) both;
  will-change: opacity, transform, filter;
}

.notes-vector-wipe__slab::after,
.world-note-return-wipe__slab::after {
  content: "";
  display: none;
  pointer-events: none;
}

.notes-vector-wipe__slab::before,
.world-note-return-wipe__slab::before {
  content: "";
  display: none;
  pointer-events: none;
}
.notes-vector-wipe__slab.is-paper {
  z-index: 3;
  background: #1a2026;
  color: rgba(238, 238, 234, 0.82);
}

.notes-vector-wipe__slab.is-dark {
  background: #000000;
}

.notes-vector-wipe__mark {
  position: absolute;
  z-index: 5;
  left: var(--mx);
  top: var(--my);
  display: grid;
  gap: 0.5rem;
  color: rgba(245, 240, 224, 0.78);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(-1.4rem, 0.8rem, 0);
  animation: notes-vector-mark 960ms cubic-bezier(0.16, 0.86, 0.2, 1) 140ms both;
}

.notes-vector-wipe__mark strong {
  font-size: clamp(1.4rem, 4.2vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-shadow: 0 18px 80px rgba(255, 250, 230, 0.16);
}

.notes-vector-wipe__mark span {
  font-size: clamp(0.58rem, 0.86vw, 0.82rem);
  font-weight: 900;
}

.notes-vector-wipe__dot {
  position: absolute;
  z-index: 6;
  left: var(--notes-gate-x, 50%);
  top: var(--notes-gate-y, 52%);
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #f0b045;
  box-shadow:
    0 0 0 1px rgba(240, 176, 69, 0.18),
    0 0 24px rgba(240, 176, 69, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  animation: notes-vector-dot 820ms cubic-bezier(0.16, 0.86, 0.2, 1) 120ms both;
}
.world-note-return-wipe {
  position: fixed;
  inset: 0;
  z-index: 76;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  isolation: isolate;
}

.world-note-return-wipe::before,
.world-note-return-wipe::after {
  position: absolute;
  inset: -8%;
  content: "";
  pointer-events: none;
}

.world-note-return-wipe::before {
  z-index: 0;
  background: transparent;
  opacity: 0;
  animation: none;
}

.world-note-return-wipe::after {
  z-index: 4;
  background: transparent;
  opacity: 0;
  transform: none;
  animation: none;
}

.world-note-return-wipe__slab {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  clip-path: var(--clip);
  opacity: 0.96;
  overflow: hidden;
  transform: translate3d(0, 0, 0) rotate(0deg) skewX(-4deg);
  transform-origin: 50% 50%;
  animation: world-note-return-slab 1220ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--delay) both;
  will-change: transform, opacity, filter;
}

.world-note-return-wipe__slab.is-paper {
  background: #1a2026;
}

.world-note-return-wipe__slab.is-dark {
  background: #000000;
}

.world-note-return-wipe__mark {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 51%;
  display: grid;
  gap: 0.55rem;
  color: rgba(244, 240, 222, 0.76);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.94);
  animation: world-note-return-mark 980ms cubic-bezier(0.16, 0.86, 0.2, 1) 140ms both;
}

.world-note-return-wipe__mark strong {
  font-size: clamp(1.8rem, 5.8vw, 6.8rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.1em;
  color: rgba(252, 249, 234, 0.88);
  text-shadow: 0 18px 80px rgba(255, 248, 225, 0.18);
}

.world-note-return-wipe__mark span {
  font-size: clamp(0.54rem, 0.78vw, 0.76rem);
  font-weight: 900;
}
body[data-region="motion"] {
  color: rgba(18, 18, 16, 0.82);
}

body[data-region="motion"] .world-canvas {
  mix-blend-mode: normal;
  opacity: 1;
  filter: contrast(1.02) saturate(1);
}

body[data-region="motion"] .world-back,
body[data-region="motion"] .world-foot,
body[data-region="motion"] .world-path {
  color: rgba(18, 18, 16, 0.46);
}

body[data-region="motion"] .world-foot {
  bottom: clamp(18px, 2.4vw, 26px);
  display: flex;
  max-width: min(46vw, 680px);
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
  color: rgba(18, 18, 16, 0.5);
  font-size: clamp(0.52rem, 0.64vw, 0.62rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1.35;
  text-transform: uppercase;
}

body[data-region="motion"] .world-foot::before {
  width: clamp(28px, 4.4vw, 74px);
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, rgba(18, 18, 16, 0.12), rgba(18, 18, 16, 0.42), transparent);
  content: "";
}

body[data-region="motion"] .world-path {
  left: auto;
  right: clamp(22px, 3.2vw, 42px);
  bottom: clamp(18px, 2.4vw, 26px);
  max-width: min(46vw, 640px);
  justify-content: flex-end;
  gap: clamp(11px, 1.15vw, 20px);
  color: rgba(18, 18, 16, 0.38);
  font-size: clamp(0.52rem, 0.66vw, 0.64rem);
  letter-spacing: 0.24em;
  transform: none;
}

body[data-region="motion"] .world-back::before,
body[data-region="motion"] .world-path__item.is-current::after {
  background: linear-gradient(90deg, transparent, rgba(18, 18, 16, 0.56), transparent);
}

body[data-region="motion"] .world-path__item {
  padding-bottom: 12px;
  color: rgba(18, 18, 16, 0.36);
  opacity: 0.72;
}

body[data-region="motion"] .world-path__item:hover,
body[data-region="motion"] .world-path__item:focus-visible,
body[data-region="motion"] .world-path__item.is-current {
  color: rgba(18, 18, 16, 0.84);
  opacity: 1;
}

body[data-region="motion"] .world-path__sep {
  color: rgba(18, 18, 16, 0.2);
  transform: translateY(-1px);
}

body[data-region="motion"] .world-word {
  color: rgba(18, 18, 16, var(--word-opacity));
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  font-weight: 500;
  text-shadow:
    0 0 1px rgba(18, 18, 16, 0.1),
    0 18px 80px rgba(18, 18, 16, 0.045);
  -webkit-text-stroke: 1px rgba(18, 18, 16, 0.035);
}

body[data-region="motion"] .world-index,
body[data-region="motion"] .world-core strong,
body[data-region="motion"] .world-core em {
  color: rgba(18, 18, 16, 0.42);
}

.world-back {
  position: fixed;
  left: clamp(22px, 3.2vw, 42px);
  top: clamp(22px, 3.2vw, 34px);
  z-index: 12;
  color: rgba(238, 238, 234, 0.42);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.world-back::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: rgba(238, 238, 234, 0.32);
  transform: scaleX(0.38);
  transform-origin: left;
  transition: transform 180ms ease;
}

.world-back:hover::before,
.world-back:focus-visible::before {
  transform: scaleX(1);
}

.world-copy {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--copy-opacity);
  transition: opacity 220ms ease;
}

.world-word {
  position: absolute;
  left: var(--word-x);
  top: var(--word-y);
  margin: 0;
  color: rgba(255, 255, 255, var(--word-opacity));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.8rem, var(--word-size), 17rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.2),
    0 0 46px rgba(255, 255, 255, 0.07),
    0 0 150px rgba(255, 255, 255, 0.035);
  transform: translate(-50%, -50%);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
}

.world-index {
  position: absolute;
  left: var(--core-x);
  top: calc(var(--core-y) - clamp(76px, 7vw, 112px));
  margin: 0;
  color: rgba(238, 238, 234, 0.28);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.world-core {
  position: absolute;
  left: var(--core-x);
  top: var(--core-y);
  display: grid;
  gap: 9px;
  min-width: min(42vw, 440px);
  opacity: var(--core-opacity, 1);
  place-items: center;
  text-align: center;
  transform: translate(-50%, calc(-50% + var(--core-offset-y, 0px))) scale(var(--core-scale, 1));
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.16, 0.88, 0.18, 1);
}

.world-core::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(32vw, 320px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 238, 234, 0.27), transparent);
  opacity: 0.25;
  transform: translate(-50%, -50%);
}

.world-core strong {
  position: relative;
  color: rgba(238, 238, 234, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.world-core em {
  position: relative;
  color: rgba(238, 238, 234, 0.46);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

body[data-region="home"][data-home="home"] .world-word {
  filter: blur(0.2px);
  mix-blend-mode: screen;
}

@media (max-width: 760px), (pointer: coarse) {
  body[data-region="home"][data-home="home"] .world-word {
    filter: none;
  }
}

body[data-region="home"][data-home="home"] .world-index {
  top: calc(var(--core-y) - clamp(96px, 8vw, 132px));
  color: rgba(238, 238, 234, 0.22);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
}

body[data-region="home"][data-home="home"] .world-core {
  top: calc(var(--core-y) + clamp(88px, 8vw, 126px));
  gap: 6px;
  min-width: min(34vw, 320px);
  opacity: var(--core-opacity, 0.82);
}

body[data-region="home"][data-home="home"] .world-core::before {
  width: min(22vw, 210px);
  opacity: 0.18;
}

body[data-region="home"][data-home="home"] .world-core strong {
  font-family: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(0.76rem, 1.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(238, 238, 234, 0.58);
  text-transform: uppercase;
}

body[data-region="home"][data-home="home"] .world-core em {
  color: rgba(238, 238, 234, 0.32);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body[data-focus="node"] .world-core {
  --core-offset-y: 24px;
  --core-scale: 0.96;
}

body[data-region="comfy"] .world-core {
  --core-offset-y: 34px;
  --core-scale: 0.94;
}

.world-foot {
  position: fixed;
  left: clamp(22px, 3.2vw, 42px);
  bottom: clamp(18px, 2.5vw, 28px);
  z-index: 12;
  margin: 0;
  color: rgba(238, 238, 234, 0.34);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.world-icp {
  position: fixed;
  left: 50%;
  bottom: max(4px, env(safe-area-inset-bottom));
  z-index: 15;
  color: rgba(238, 238, 234, 0.28);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  transform: translateX(-50%);
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.world-icp:hover,
.world-icp:focus-visible {
  color: rgba(246, 246, 239, 0.72);
  outline: 0;
}

body[data-region="motion"] .world-icp {
  color: rgba(18, 18, 16, 0.32);
}

.world-path {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 2.5vw, 30px);
  z-index: 14;
  display: flex;
  max-width: min(84vw, 820px);
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.2vw, 16px);
  color: rgba(238, 238, 234, 0.4);
  font-size: clamp(0.58rem, 0.74vw, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.18;
  pointer-events: auto;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.world-path__item {
  position: relative;
  min-width: 0;
  padding: 7px 0 10px;
  border: 0;
  background: transparent;
  color: rgba(238, 238, 234, 0.38);
  cursor: pointer;
  opacity: 0.78;
  text-transform: inherit;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.world-path__item:hover,
.world-path__item:focus-visible {
  color: rgba(238, 238, 234, 0.82);
  opacity: 1;
  outline: 0;
  transform: translateY(-1px);
}

.world-path__item.is-current {
  color: rgba(246, 246, 239, 0.88);
  cursor: default;
  opacity: 1;
}

.world-path__item.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% - 0.34em);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 238, 234, 0.5), transparent);
  opacity: 0.68;
  transform: translateX(-50%);
}

.world-path__sep {
  color: rgba(238, 238, 234, 0.18);
  font-weight: 700;
  pointer-events: none;
}

.world-copy.is-switching .world-word {
  animation: world-word-arrive 980ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.world-copy.is-switching .world-index {
  animation: world-core-arrive 880ms cubic-bezier(0.16, 0.88, 0.18, 1) 80ms both;
}

@keyframes world-drift {
  from {
    transform: translate3d(-2%, -1%, 0);
  }

  to {
    transform: translate3d(2%, 1%, 0);
  }
}

@keyframes world-flash {
  0%,
  55% {
    opacity: 0;
  }

  72% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
  }
}

@keyframes world-contact-flash {
  0%,
  58% {
    opacity: 0;
  }

  78% {
    opacity: 0.34;
  }

  96%,
  100% {
    opacity: 0.96;
  }
}

@keyframes world-motion-flash {
  0%,
  42% {
    opacity: 0;
  }

  64% {
    opacity: 0.48;
  }

  100% {
    opacity: 0;
  }
}

@keyframes world-guide-return-flash {
  0% {
    opacity: 0;
    transform: translate3d(16vw, 0, 0) scaleX(0.18);
  }

  48% {
    opacity: 0.88;
    transform: translate3d(0, 0, 0) scaleX(1.08);
  }

  100% {
    opacity: 1;
    transform: translate3d(-6vw, 0, 0) scaleX(1);
  }
}

@keyframes world-guide-return-canvas {
  0% {
    opacity: 0.92;
    filter: brightness(0.9) contrast(1.04) saturate(0.9) blur(0);
    transform: scale(1);
  }

  100% {
    opacity: 0.08;
    filter: brightness(1.28) contrast(0.9) saturate(0) blur(16px);
    transform: scale(1.12);
  }
}

@keyframes world-guide-return-copy {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.06);
  }
}

@keyframes world-resume-page-gate {
  0% {
    opacity: 0;
    filter: blur(18px) contrast(1.08);
    transform: translateX(-18%) skewX(-8deg) scaleX(0.62);
  }

  34% {
    opacity: 0.48;
    filter: blur(10px) contrast(1.12);
    transform: translateX(-6%) skewX(-6deg) scaleX(0.88);
  }

  72% {
    opacity: 0.96;
    filter: blur(1px) contrast(1.02);
    transform: translateX(4%) skewX(-3deg) scaleX(1.16);
  }

  100% {
    opacity: 1;
    filter: blur(0) contrast(1);
    transform: translateX(0) skewX(0) scaleX(1.34);
  }
}

@keyframes world-resume-canvas-dim {
  0% {
    opacity: 0.92;
    filter: brightness(0.9) contrast(1.04) saturate(0.9);
    transform: scale(1);
  }

  100% {
    opacity: 0.18;
    filter: brightness(1.34) contrast(0.92) saturate(0);
    transform: scale(1.035);
  }
}

@keyframes world-resume-copy-slip {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(-1.8rem);
  }
}

@keyframes world-resume-card-canvas {
  0% {
    opacity: 0.98;
    filter: brightness(1) contrast(1.04);
    transform: scale(1);
  }

  52% {
    opacity: 0.78;
    filter: brightness(0.82) contrast(1.08) blur(0.4px);
    transform: scale(1.012);
  }

  100% {
    opacity: 0.46;
    filter: brightness(0.72) contrast(1.08) blur(1.2px);
    transform: scale(1.028);
  }
}

@keyframes world-resume-card-copy {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(1.2rem);
  }
}

@keyframes notes-vector-veil {
  0% {
    opacity: 0;
    transform: translateX(-10%) scaleX(0.98);
  }

  38% {
    opacity: 0.72;
  }

  100% {
    opacity: 0.96;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes notes-vector-paper-flood {
  0% {
    opacity: 0;
    clip-path: polygon(96% 0, 100% 0, 100% 100%, 88% 100%);
    transform: translateX(30%) skewX(-12deg);
    filter: blur(10px) contrast(1.08);
  }

  44% {
    opacity: 0.78;
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 49% 100%);
    transform: translateX(6%) skewX(-8deg);
    filter: blur(3px) contrast(1.04);
  }

  100% {
    opacity: 1;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 4% 100%);
    transform: translateX(0) skewX(-3deg);
    filter: blur(0) contrast(1);
  }
}

@keyframes notes-vector-slab {
  0% {
    opacity: 0;
    transform: translate3d(var(--from-x), var(--from-y), 0) rotate(calc(var(--rot) - 3deg)) skewX(var(--skew)) scaleX(0.72);
    filter: blur(12px) contrast(1.18);
  }

  30% {
    opacity: var(--peak, 0.98);
  }

  68% {
    transform: translate3d(0, 0, 0) rotate(var(--rot)) skewX(var(--skew)) scaleX(1.035);
    filter: blur(1px) contrast(1.06);
  }

  100% {
    opacity: var(--final, 0.96);
    transform: translate3d(var(--settle-x, 0), var(--settle-y, 0), 0) rotate(var(--rot)) skewX(var(--skew)) scaleX(1);
    filter: blur(0) contrast(1);
  }
}

@keyframes notes-vector-mark {
  0% {
    opacity: 0;
    transform: translate3d(-1.4rem, 0.8rem, 0);
    filter: blur(7px);
  }

  58% {
    opacity: 0.86;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }

  100% {
    opacity: 0.22;
    transform: translate3d(0.55rem, -0.25rem, 0);
    filter: blur(2px);
  }
}

@keyframes notes-vector-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.55);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }
}
@keyframes world-notes-page-gate {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    filter: blur(20px) contrast(1.25);
    transform: translateX(-7%) rotate(-1.2deg) scale(1.08);
  }

  34% {
    opacity: 0.62;
    clip-path: polygon(0 0, 54% 0, 43% 100%, 0 100%);
    filter: blur(10px) contrast(1.18);
    transform: translateX(-2.5%) rotate(-0.8deg) scale(1.045);
  }

  68% {
    opacity: 0.94;
    clip-path: polygon(0 0, 83% 0, 72% 100%, 0 100%);
    filter: blur(2px) contrast(1.05);
    transform: translateX(1.6%) rotate(-0.25deg) scale(1.012);
  }

  100% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    filter: blur(0) contrast(1);
    transform: translateX(0) rotate(0) scale(1);
  }
}

@keyframes world-notes-canvas-smudge {
  0% {
    opacity: 0.95;
    filter: brightness(0.9) contrast(1.08) saturate(0.92);
    transform: scale(1);
  }

  52% {
    opacity: 0.46;
    filter: brightness(0.8) contrast(1.22) saturate(0.5) blur(1px);
    transform: scale(1.012) translateX(-0.6rem);
  }

  100% {
    opacity: 0.12;
    filter: brightness(1.12) contrast(0.88) saturate(0) blur(5px);
    transform: scale(1.032) translateX(-1.2rem);
  }
}

@keyframes world-notes-copy-erase {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }

  42% {
    opacity: 0.72;
    filter: blur(2px);
    transform: translateX(-0.35rem);
  }

  100% {
    opacity: 0;
    filter: blur(12px);
    transform: translateX(-2rem);
  }
}

@keyframes world-note-return-veil {
  0% {
    opacity: 1;
    transform: translateX(0) skewX(-2deg);
  }
  64% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateX(-6vw) skewX(-6deg);
  }
}

@keyframes world-note-return-light {
  0% {
    opacity: 0;
    transform: scaleX(0.42);
  }
  32% {
    opacity: 0.72;
    transform: scaleX(1.04);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.32);
  }
}

@keyframes world-note-return-slab {
  0% {
    opacity: 0.96;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotate(0deg) skewX(-4deg) scaleX(1);
  }
  44% {
    opacity: 0.9;
    filter: blur(0);
    transform: translate3d(calc(var(--exit-x) * 0.16), calc(var(--exit-y) * 0.14), 0) rotate(calc(var(--rot) * 0.35)) skewX(-2deg) scaleX(0.96);
  }
  100% {
    opacity: 0;
    filter: blur(9px);
    transform: translate3d(var(--exit-x), var(--exit-y), 0) rotate(var(--rot)) skewX(0deg) scaleX(0.72);
  }
}

@keyframes world-note-return-mark {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.9);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  72% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.012);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(1.04);
  }
}
@keyframes world-return-notes {
  0% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    filter: blur(0) contrast(1.08);
    transform: translateX(0) rotate(0);
  }

  46% {
    opacity: 0.86;
    clip-path: polygon(0 0, 76% 0, 67% 100%, 0 100%);
    filter: blur(2px) contrast(1.1);
    transform: translateX(-1.2%) rotate(-0.25deg);
  }

  100% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    filter: blur(18px) contrast(0.98);
    transform: translateX(-6%) rotate(-0.8deg);
  }
}

@keyframes world-return-resume {
  0% {
    opacity: 1;
    filter: blur(0) contrast(1);
    transform: scaleX(1);
  }

  52% {
    opacity: 0.84;
    filter: blur(2px) contrast(1.06);
    transform: scaleX(0.62);
  }

  100% {
    opacity: 0;
    filter: blur(18px) contrast(1);
    transform: scaleX(0.08);
  }
}

@keyframes world-return-canvas {
  0% {
    opacity: 0.2;
    filter: brightness(0.5) contrast(0.82) saturate(0) blur(8px);
    transform: scale(1.035);
  }

  100% {
    opacity: 0.92;
    filter: brightness(0.9) contrast(1.04) saturate(0.9) blur(0);
    transform: scale(1);
  }
}

@keyframes world-return-copy {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(0.8rem);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes world-contact-return-matrix {
  0% {
    opacity: 0.72;
    transform: scale(0.74);
  }
  54% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes world-contact-return-canvas {
  from {
    opacity: 0.36;
    transform: scale(1.018);
  }
  to {
    opacity: 0.92;
    transform: scale(1);
  }
}

@keyframes world-contact-return-copy {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes world-path-return-lock {
  0%,
  74% {
    opacity: 0;
    filter: blur(8px);
    transform: translateX(-50%) translateY(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes world-mg-logo-enter {
  0%,
  38% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.92);
  }
}

@keyframes world-mg-card-enter {
  0% {
    opacity: 0.78;
    filter: blur(5px);
    transform: rotateY(var(--enter-turn-start)) rotateX(2deg) translate3d(var(--enter-x-start), var(--lift), -92px) scale(0.9);
  }

  32% {
    opacity: 0.72;
    filter: blur(0.4px);
    transform: rotateY(var(--enter-turn-mid)) rotateX(0deg) translate3d(var(--enter-x-mid), var(--lift), 28px) scale(0.98);
  }

  64% {
    opacity: 0.52;
    filter: blur(0.5px);
    transform: rotateY(calc(var(--enter-turn-face) + var(--tilt))) rotateX(0deg) translate3d(0, 0, var(--depth)) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: rotateY(var(--enter-turn-end)) rotateX(-2deg) translate3d(var(--enter-x-end), var(--lift), -106px) scale(0.93);
  }
}

@keyframes world-mg-logo-depart {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate(-50%, -50%) scale(0.92);
  }

  28%,
  66% {
    opacity: 0.9;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(14px);
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes world-mg-card-depart {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: rotateY(var(--depart-turn-start)) rotateX(-2deg) translate3d(var(--depart-x-start), var(--lift), -90px) scale(0.96);
  }

  22% {
    opacity: 0.72;
    filter: blur(0);
    transform: rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0) scale(1);
  }

  58% {
    opacity: 0.76;
    filter: blur(0.4px);
    transform: rotateY(var(--depart-turn-mid)) rotateX(0deg) translate3d(var(--depart-x-mid), var(--lift), var(--depth)) scale(0.99);
  }

  100% {
    opacity: 0;
    filter: blur(7px);
    transform: rotateY(var(--depart-turn-end)) rotateX(3deg) translate3d(var(--depart-x-end), var(--lift), -100px) scale(0.9);
  }
}

@keyframes world-mg-card-sheen {
  0%,
  30% {
    opacity: 0;
    transform: translateX(-42%);
  }

  46% {
    opacity: 0.45;
  }

  78%,
  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes world-nextstep-veil-in {
  0% { opacity: 0; }
  38% { opacity: 0.72; }
  72%, 100% { opacity: 1; }
}

@keyframes world-nextstep-veil-out {
  0%, 28% { opacity: 1; }
  70% { opacity: 0.72; }
  100% { opacity: 0; }
}

@keyframes world-nextstep-field-in {
  0% { opacity: 0; }
  38% { opacity: 0.24; }
  78%, 100% { opacity: 0.76; }
}

@keyframes world-nextstep-field-out {
  0%, 24% { opacity: 0.76; }
  68% { opacity: 0.24; }
  100% { opacity: 0; }
}

@keyframes world-nextstep-grain-in {
  0%, 34% { opacity: 0; }
  78%, 100% { opacity: 0.5; }
}

@keyframes world-nextstep-grain-out {
  0%, 24% { opacity: 0.5; }
  70%, 100% { opacity: 0; }
}

@keyframes world-nextstep-logo-depart {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--route-target-x) - 50vw), calc(-50% + var(--route-target-y) - var(--route-lock-y))) scale(0.07);
  }
  12% { opacity: 1; }
  58%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes world-nextstep-logo-enter {
  0%, 34% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  86% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--route-target-x) - 50vw), calc(-50% + var(--route-target-y) - var(--route-lock-y))) scale(0.07);
  }
}

@keyframes world-nextstep-mark-depart {
  0%, 28% { clip-path: inset(0 0 0 93%); }
  62%, 100% { clip-path: inset(0); }
}

@keyframes world-nextstep-mark-enter {
  0%, 42% { clip-path: inset(0); }
  78%, 100% { clip-path: inset(0 0 0 93%); }
}

@keyframes world-nextstep-sub-in {
  0%, 48% { opacity: 0; transform: translateY(6px); }
  76%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes world-nextstep-sub-out {
  0%, 34% { opacity: 1; transform: translateY(0); }
  62%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes world-nextstep-logo-echo {
  0%, 52%, 58%, 100% { opacity: 0; transform: translateX(0); }
  53% { opacity: 0.46; transform: translateX(-4px); }
  55% { opacity: 0.34; transform: translateX(3px); }
}

@keyframes world-nextstep-scan-depart {
  0%, 42% { opacity: 0; transform: translateX(-140%); }
  48% { opacity: 0.5; }
  74% { opacity: 0.16; transform: translateX(720%); }
  78%, 100% { opacity: 0; transform: translateX(720%); }
}

@keyframes world-nextstep-scan-enter {
  0%, 22% { opacity: 0; transform: translateX(720%); }
  28% { opacity: 0.42; }
  54% { opacity: 0.12; transform: translateX(-140%); }
  58%, 100% { opacity: 0; transform: translateX(-140%); }
}

@keyframes world-word-arrive {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate(-50%, -50%) scale(1.045);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes world-core-arrive {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translate(-50%, -48%) scale(0.98);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 760px) {
  .world-core {
    min-width: 72vw;
  }

  .world-core em {
    max-width: 64vw;
  }

  .world-foot {
    right: 22px;
    line-height: 1.6;
  }

  .world-path {
    bottom: clamp(54px, 8vw, 72px);
    max-width: 92vw;
    gap: 8px;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  body[data-region="motion"] .world-foot {
    right: 22px;
    max-width: none;
    font-size: 0.5rem;
    letter-spacing: 0.18em;
  }

  body[data-region="motion"] .world-foot::before {
    width: 24px;
  }

  body[data-region="motion"] .world-path {
    left: 22px;
    right: 22px;
    bottom: clamp(48px, 8vw, 64px);
    max-width: none;
    justify-content: center;
    gap: 8px;
    font-size: 0.52rem;
    letter-spacing: 0.16em;
  }

  .world-nextstep-route { --route-lock-y: 53vh; }
  .world-nextstep-route__lockup { top: 53%; width: min(82vw, 54rem); }
  .world-nextstep-route__mark { font-size: clamp(2.35rem, 11.2vw, 4.6rem); letter-spacing: 0.025em; }
  .world-nextstep-route__sub { margin-top: 1.6rem; font-size: 0.68rem; letter-spacing: 0.46em; text-indent: 0.46em; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026-07-10: reversible guide-to-world handoff */
.world-guide-portal {
  position: fixed;
  z-index: 19;
  left: 50%;
  top: 50%;
  width: clamp(240px, 34vw, 540px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.16);
}

.world-guide-portal i,
.world-guide-portal b {
  position: absolute;
  border-radius: 50%;
}

.world-guide-portal i {
  border: 1px solid rgba(238, 238, 234, 0.2);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.035),
    0 0 24px rgba(255, 255, 255, 0.035);
}

.world-guide-portal i:nth-child(1) { inset: 0; }
.world-guide-portal i:nth-child(2) { inset: 16%; }
.world-guide-portal i:nth-child(3) { inset: 32%; }

.world-guide-portal b {
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #f5f5f1;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.94),
    0 0 54px rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%);
}

html.is-guide-world-pending .world-hit,
.world-field.is-entering-from-guide .world-hit,
.world-field.is-guide-returning .world-hit {
  pointer-events: none;
}

html.is-guide-world-pending .world-canvas,
.world-field.is-entering-from-guide .world-canvas {
  transform-origin: 50% 50%;
  animation: world-from-guide-arrival 1540ms cubic-bezier(0.14, 0.84, 0.18, 1) both;
}

html.is-guide-world-pending .world-copy,
html.is-guide-world-pending .world-path,
html.is-guide-world-pending .world-foot,
html.is-guide-world-pending .world-back,
.world-field.is-entering-from-guide .world-copy,
.world-field.is-entering-from-guide .world-path,
.world-field.is-entering-from-guide .world-foot,
.world-field.is-entering-from-guide .world-back {
  animation: world-from-guide-copy 980ms cubic-bezier(0.16, 0.88, 0.18, 1) 480ms both;
}

html.is-guide-world-pending .world-guide-portal,
.world-field.is-entering-from-guide .world-guide-portal {
  animation: world-guide-portal-open 1480ms cubic-bezier(0.14, 0.84, 0.18, 1) both;
}

html.is-guide-world-pending .world-flash,
.world-field.is-entering-from-guide .world-flash {
  background:
    radial-gradient(circle at 50% 50%, rgba(250, 250, 247, 0.98) 0 3%, rgba(238, 238, 233, 0.5) 10%, rgba(218, 218, 214, 0.08) 28%, transparent 58%),
    #020202;
  mix-blend-mode: screen;
  animation: world-guide-entry-flash 1320ms ease-out both;
}

.world-field.is-guide-returning .world-canvas {
  transform-origin: 50% 50%;
  animation: world-to-guide-collapse 1060ms cubic-bezier(0.38, 0.02, 0.78, 0.28) both;
}

.world-field.is-guide-returning .world-copy,
.world-field.is-guide-returning .world-path,
.world-field.is-guide-returning .world-foot,
.world-field.is-guide-returning .world-back {
  animation: world-to-guide-copy 760ms cubic-bezier(0.38, 0.02, 0.78, 0.28) both;
}

.world-field.is-guide-returning .world-guide-portal {
  animation: world-guide-portal-close 1060ms cubic-bezier(0.38, 0.02, 0.78, 0.28) both;
}

.world-field.is-guide-returning .world-flash {
  background:
    radial-gradient(circle at 50% 50%, rgba(250, 250, 247, 0.98) 0 3%, rgba(238, 238, 233, 0.62) 9%, rgba(218, 218, 214, 0.1) 26%, transparent 56%),
    #020202;
  mix-blend-mode: screen;
  animation: world-to-guide-optical-cut 1060ms cubic-bezier(0.38, 0.02, 0.78, 0.28) both;
}

@keyframes world-from-guide-arrival {
  0% {
    opacity: 0.04;
    filter: brightness(1.9) contrast(0.86) saturate(0) blur(22px);
    transform: scale(0.34);
  }
  48% {
    opacity: 0.72;
    filter: brightness(1.18) contrast(0.96) saturate(0.45) blur(6px);
  }
  78% {
    opacity: 0.96;
    filter: brightness(0.94) contrast(1.03) saturate(0.84) blur(0);
    transform: scale(1.025);
  }
  100% {
    opacity: 0.92;
    filter: brightness(0.9) contrast(1.04) saturate(0.9);
    transform: scale(1);
  }
}

/* Yuri Fano / deep-blue field-log handoff ---------------------------------- */
.world-novel-route {
  color: #e9f2f8;
  background: transparent;
}

.world-novel-route__field {
  inset: 0;
  background: #030914;
}

.world-novel-route__aperture {
  left: var(--novel-target-x);
  top: 0;
  width: clamp(15rem, 24vw, 25rem);
  height: 100%;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(233, 242, 248, 0.34), 0 0 6rem rgba(18, 104, 255, 0.24);
}

.world-novel-route__aperture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.62) contrast(1.18) brightness(0.62);
}

.world-novel-route__tear {
  left: -8%;
  width: 116%;
  height: 8vh;
  opacity: 0;
  background: rgba(18, 104, 255, 0.52);
  mix-blend-mode: screen;
}

.world-novel-route__tear--a {
  top: 27%;
}

.world-novel-route__tear--b {
  top: 68%;
  height: 4vh;
  background: rgba(233, 242, 248, 0.36);
}

.world-novel-route__locator i,
.world-novel-route__locator b {
  background: #e9f2f8;
}

.world-novel-route__locator b {
  box-shadow: 0 0 2rem #1268ff;
}

.world-novel-route__lockup {
  color: #e9f2f8;
  text-shadow: 0 1px 2rem #030914;
}

.world-novel-route__lockup em {
  color: #1268ff;
}

.world-novel-route__scan {
  left: -18%;
  width: 14%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(233, 242, 248, 0.82), transparent);
  transform: skewX(-8deg);
}

.world-novel-route--depart .world-novel-route__field {
  animation: world-novel-field-open-v2 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__aperture {
  animation: world-novel-aperture-open-v2 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__lockup,
.world-novel-route--depart .world-novel-route__locator {
  animation: world-novel-lock-in-v2 660ms ease 100ms both;
}

.world-novel-route--depart .world-novel-route__tear--a,
.world-novel-route--enter .world-novel-route__tear--a {
  animation: world-novel-tear-a-v2 420ms steps(2, end) 160ms both;
}

.world-novel-route--depart .world-novel-route__tear--b,
.world-novel-route--enter .world-novel-route__tear--b {
  animation: world-novel-tear-b-v2 360ms steps(2, end) 250ms both;
}

.world-novel-route--enter .world-novel-route__field {
  animation: world-novel-field-close-v2 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__aperture {
  animation: world-novel-aperture-close-v2 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__lockup,
.world-novel-route--enter .world-novel-route__locator {
  animation: world-novel-lock-out-v2 700ms ease both;
}

@keyframes world-novel-field-open-v2 {
  0% { clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y)); }
  72%, 100% { clip-path: circle(150vmax at var(--novel-target-x) var(--novel-target-y)); }
}

@keyframes world-novel-field-close-v2 {
  0%, 48% { clip-path: circle(150vmax at var(--novel-target-x) var(--novel-target-y)); }
  100% { clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y)); }
}

@keyframes world-novel-aperture-open-v2 {
  0% { clip-path: inset(0 49% 0 49%); opacity: 0; }
  20% { opacity: 1; }
  76%, 100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes world-novel-aperture-close-v2 {
  0%, 36% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 49% 0 49%); opacity: 0; }
}

@keyframes world-novel-lock-in-v2 {
  from { opacity: 0; transform: translateY(-50%) translateX(-18px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes world-novel-lock-out-v2 {
  0%, 36% { opacity: 1; transform: translateY(-50%) translateX(0); }
  100% { opacity: 0; transform: translateY(-50%) translateX(18px); }
}

@keyframes world-novel-tear-a-v2 {
  0%, 100% { opacity: 0; transform: translateX(0); }
  24% { opacity: 0.7; transform: translateX(18px); }
  58% { opacity: 0.18; transform: translateX(-11px); }
}

@keyframes world-novel-tear-b-v2 {
  0%, 100% { opacity: 0; transform: translateX(0); }
  18% { opacity: 0.62; transform: translateX(-14px); }
  64% { opacity: 0.2; transform: translateX(8px); }
}

@media (max-width: 760px) {
  .world-novel-route__aperture {
    width: 52vw;
  }
}

/* Novel / blueprint-lock route ------------------------------------------------ */
.world-novel-route {
  --novel-target-x: 68vw;
  --novel-target-y: 48vh;
  position: fixed;
  inset: 0;
  z-index: 140;
  overflow: hidden;
  pointer-events: none;
  color: #05070a;
  font-family: "Noto Sans SC", sans-serif;
}

.world-novel-route > * {
  position: absolute;
}

.world-novel-route__paper {
  inset: 0;
  background: #f7f9fd;
}

.world-novel-route__blue {
  left: 0;
  right: 0;
  top: calc(var(--novel-target-y) - 18vh);
  height: 36vh;
  background: #075bff;
  transform-origin: left center;
}

.world-novel-route__ink {
  left: 0;
  top: calc(var(--novel-target-y) + 18vh);
  width: 100%;
  height: 0.75rem;
  background: #05070a;
}

.world-novel-route__locator {
  left: var(--novel-target-x);
  top: var(--novel-target-y);
  width: 6rem;
  height: 6rem;
  transform: translate(-50%, -50%);
}

.world-novel-route__locator i,
.world-novel-route__locator b {
  position: absolute;
  display: block;
  background: #fff;
}

.world-novel-route__locator i:first-child {
  left: 50%;
  top: -2rem;
  width: 1px;
  height: 10rem;
}

.world-novel-route__locator i:nth-child(2) {
  top: 50%;
  left: -2rem;
  width: 10rem;
  height: 1px;
}

.world-novel-route__locator b {
  inset: 2.35rem;
  border-radius: 50%;
  box-shadow: 0 0 2rem #fff;
}

.world-novel-route__lockup {
  left: clamp(1.25rem, 4.2vw, 5rem);
  top: 50%;
  display: grid;
  align-content: center;
  transform: translateY(-50%);
}

.world-novel-route__lockup span,
.world-novel-route__lockup em {
  font-family: "Share Tech Mono", monospace;
  font-style: normal;
  letter-spacing: 0.18em;
}

.world-novel-route__lockup span {
  margin-bottom: 1rem;
  font-size: 0.68rem;
}

.world-novel-route__lockup strong {
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.world-novel-route__lockup em {
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(0.8rem, 1.2vw, 1.1rem);
}

.world-novel-route__scan {
  left: -12%;
  top: 0;
  bottom: 0;
  width: 7%;
  opacity: 0.72;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  mix-blend-mode: screen;
}

.world-novel-route--depart .world-novel-route__paper {
  animation: world-novel-paper-in 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__blue {
  animation: world-novel-blue-in 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__ink {
  animation: world-novel-ink-in 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__lockup,
.world-novel-route--depart .world-novel-route__locator {
  animation: world-novel-lock-in 680ms cubic-bezier(0.2, 0.78, 0.2, 1) 100ms both;
}

.world-novel-route--depart .world-novel-route__scan,
.world-novel-route--enter .world-novel-route__scan {
  animation: world-novel-scan 720ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.world-novel-route--enter .world-novel-route__paper {
  animation: world-novel-paper-out 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__blue {
  animation: world-novel-blue-out 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__ink {
  animation: world-novel-ink-out 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__lockup,
.world-novel-route--enter .world-novel-route__locator {
  animation: world-novel-lock-out 720ms cubic-bezier(0.55, 0, 0.3, 1) both;
}

.world-field.is-novel-transition .world-hit {
  pointer-events: none;
}

.world-field.is-novel-transition .world-copy,
.world-field.is-novel-transition .world-path,
.world-field.is-novel-transition .world-foot,
.world-field.is-novel-transition .world-back {
  animation: world-novel-ui-fade 360ms ease both;
}

.world-field.is-returning-from-novel .world-copy,
.world-field.is-returning-from-novel .world-path,
.world-field.is-returning-from-novel .world-foot,
.world-field.is-returning-from-novel .world-back {
  animation-direction: reverse;
}

@keyframes world-novel-paper-in {
  0% { clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y)); }
  68%, 100% { clip-path: circle(150vmax at var(--novel-target-x) var(--novel-target-y)); }
}

@keyframes world-novel-paper-out {
  0%, 52% { clip-path: circle(150vmax at var(--novel-target-x) var(--novel-target-y)); }
  100% { clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y)); }
}

@keyframes world-novel-blue-in {
  0% { transform: scaleX(0); }
  70%, 100% { transform: scaleX(1); }
}

@keyframes world-novel-blue-out {
  0%, 34% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes world-novel-ink-in {
  0% { transform: scaleX(0); transform-origin: left; }
  72%, 100% { transform: scaleX(1); transform-origin: left; }
}

@keyframes world-novel-ink-out {
  0%, 28% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes world-novel-lock-in {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes world-novel-lock-out {
  0%, 34% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(8px); }
}

@keyframes world-novel-scan {
  0% { transform: translateX(0); opacity: 0; }
  14% { opacity: 0.82; }
  84% { opacity: 0.48; }
  100% { transform: translateX(1700%); opacity: 0; }
}

@keyframes world-novel-ui-fade {
  to { opacity: 0; filter: blur(6px); }
}

@media (max-width: 760px) {
  .world-novel-route__blue {
    top: calc(var(--novel-target-y) - 14vh);
    height: 28vh;
  }

  .world-novel-route__ink {
    top: calc(var(--novel-target-y) + 14vh);
  }

  .world-novel-route__lockup {
    top: 36%;
  }

  .world-novel-route__lockup strong {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-novel-route *,
  .world-field.is-novel-transition .world-copy,
  .world-field.is-novel-transition .world-path,
  .world-field.is-novel-transition .world-foot,
  .world-field.is-novel-transition .world-back {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Yuri Fano kinetic title gate v4. Only the typegate child classes are live. */
.world-novel-route.world-novel-typegate {
  --novel-target-x: 50vw;
  --novel-target-y: 50vh;
  --novel-dx: 0px;
  --novel-dy: 0px;
  position: fixed;
  inset: 0;
  z-index: 240;
  overflow: hidden;
  pointer-events: none;
  color: #e9f2f8;
  background: transparent;
  isolation: isolate;
  contain: paint;
  font-family: "Share Tech Mono", monospace;
}

.world-novel-typegate > * {
  position: absolute;
}

.world-novel-typegate__field,
.world-novel-typegate__grain {
  inset: -1px;
}

.world-novel-typegate__field {
  background:
    radial-gradient(circle at 64% 40%, rgba(10, 47, 102, 0.32), transparent 40%),
    #030914;
  opacity: 0;
  will-change: opacity;
}

.world-novel-typegate__grain {
  background: url("assets/novel/signal-grain.webp") repeat;
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
  opacity: 0;
  will-change: opacity;
}

.world-novel-typegate__stage {
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 96vw;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-origin: 50% 52%;
  will-change: transform, opacity;
}

.world-novel-typegate__index,
.world-novel-typegate__roman {
  margin: 0;
  color: rgba(233, 242, 248, 0.68);
  font-size: clamp(0.56rem, 0.74vw, 0.72rem);
  line-height: 1;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform, opacity;
}

.world-novel-typegate__index {
  justify-self: start;
  margin: 0 0 1.2rem 0.55em;
}

.world-novel-typegate__roman {
  justify-self: end;
  margin: 1.05rem 0.2em 0 0;
  color: rgba(233, 242, 248, 0.48);
}

.world-novel-typegate__title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Yuri Brush", "Ma Shan Zheng", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: 0.012em;
  white-space: nowrap;
  filter: drop-shadow(-0.03em 0 rgba(18, 104, 255, 0.32));
}

.world-novel-typegate__glyph {
  display: inline-block;
  overflow: hidden;
  padding: 0.12em 0.015em 0.22em;
}

.world-novel-typegate__glyph i {
  display: block;
  color: #e9f2f8;
  font-style: normal;
  transform-origin: 50% 72%;
  will-change: transform, opacity;
}

.world-novel-typegate__glyph:nth-child(1) { --glyph-index: 0; --glyph-shift: 0em; }
.world-novel-typegate__glyph:nth-child(2) { --glyph-index: 1; --glyph-shift: -0.025em; }
.world-novel-typegate__glyph:nth-child(3) { --glyph-index: 2; --glyph-shift: 0.035em; }
.world-novel-typegate__glyph:nth-child(4) { --glyph-index: 3; --glyph-shift: -0.012em; }

.world-novel-typegate__glyph i {
  transform: translateY(var(--glyph-shift));
}

.world-novel-route--enter.world-novel-typegate .world-novel-typegate__field,
.world-novel-route--enter.world-novel-typegate .world-novel-typegate__grain {
  opacity: 1;
}

.world-novel-route--enter.world-novel-typegate .world-novel-typegate__stage {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.46);
}

.world-novel-route--depart.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__field,
.world-novel-route--depart.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__grain {
  animation: world-typegate-field-cover 660ms ease both;
}

.world-novel-route--depart.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__stage {
  animation: world-typegate-stage-cover 660ms cubic-bezier(0.76, 0, 0.18, 1) both;
}

.world-novel-route--enter.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__field,
.world-novel-route--enter.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__grain {
  animation: world-typegate-field-reveal 600ms ease both;
}

.world-novel-route--enter.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__stage {
  animation: world-typegate-stage-reveal 600ms cubic-bezier(0.76, 0, 0.18, 1) both;
}

.world-field.is-novel-transition:not(.is-returning-from-novel) .world-copy,
.world-field.is-novel-transition:not(.is-returning-from-novel) .world-path,
.world-field.is-novel-transition:not(.is-returning-from-novel) .world-foot,
.world-field.is-novel-transition:not(.is-returning-from-novel) .world-back {
  animation: world-typegate-ui-out 180ms ease both;
}

.world-field.is-returning-from-novel .world-copy,
.world-field.is-returning-from-novel .world-path,
.world-field.is-returning-from-novel .world-foot,
.world-field.is-returning-from-novel .world-back {
  animation: world-typegate-ui-in 240ms ease 240ms both;
}

@keyframes world-typegate-field-cover {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes world-typegate-field-reveal {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes world-typegate-stage-cover {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--novel-dx)), calc(-50% + var(--novel-dy))) scale(0.08);
  }
  18% { opacity: 1; }
  72% { transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.46); }
}

@keyframes world-typegate-stage-reveal {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1.46); }
  74% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--novel-dx)), calc(-50% + var(--novel-dy))) scale(0.08);
  }
}

@keyframes world-typegate-ui-out {
  to { opacity: 0; transform: translateY(-0.2rem); }
}

@keyframes world-typegate-ui-in {
  from { opacity: 0; transform: translateY(0.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .world-novel-typegate__title {
    font-size: clamp(5rem, 22vw, 7rem);
  }

  .world-novel-typegate__index,
  .world-novel-typegate__roman {
    font-size: 0.52rem;
    letter-spacing: 0.32em;
  }

  .world-novel-typegate__index { margin-bottom: 0.8rem; }
  .world-novel-typegate__roman { margin-top: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .world-novel-typegate *,
  .world-field.is-novel-transition .world-copy,
  .world-field.is-novel-transition .world-path,
  .world-field.is-novel-transition .world-foot,
  .world-field.is-novel-transition .world-back {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

.world-novel-route--depart.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__glyph i {
  animation: world-typegate-glyph-in 340ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
  animation-delay: calc(110ms + var(--glyph-index) * 35ms);
}

.world-novel-route--enter.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__glyph i {
  animation: world-typegate-glyph-out 280ms cubic-bezier(0.62, 0, 0.78, 0.2) both;
  animation-delay: calc(210ms + var(--glyph-index) * 25ms);
}

.world-novel-route--depart.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__index,
.world-novel-route--depart.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__roman {
  animation: world-typegate-meta-in 210ms ease 290ms both;
}

.world-novel-route--enter.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__index,
.world-novel-route--enter.world-novel-typegate:not(.is-gsap-route) .world-novel-typegate__roman {
  animation: world-typegate-meta-out 160ms ease both;
}

.world-field.is-novel-transition:not(.is-returning-from-novel):has(.world-novel-typegate) .world-copy,
.world-field.is-novel-transition:not(.is-returning-from-novel):has(.world-novel-typegate) .world-path,
.world-field.is-novel-transition:not(.is-returning-from-novel):has(.world-novel-typegate) .world-foot,
.world-field.is-novel-transition:not(.is-returning-from-novel):has(.world-novel-typegate) .world-back {
  animation: world-typegate-ui-out 180ms ease both;
}

.world-field.is-returning-from-novel:has(.world-novel-typegate) .world-copy,
.world-field.is-returning-from-novel:has(.world-novel-typegate) .world-path,
.world-field.is-returning-from-novel:has(.world-novel-typegate) .world-foot,
.world-field.is-returning-from-novel:has(.world-novel-typegate) .world-back {
  animation: world-typegate-ui-in 240ms ease 240ms both;
}

@keyframes world-typegate-glyph-in {
  from { opacity: 0; transform: translateY(112%); }
  to { opacity: 1; transform: translateY(var(--glyph-shift)); }
}

@keyframes world-typegate-glyph-out {
  from { opacity: 1; transform: translateY(var(--glyph-shift)); }
  to { opacity: 0; transform: translateY(-112%); }
}

@keyframes world-typegate-meta-in {
  from { opacity: 0; transform: translateX(-0.8rem); }
  to { opacity: 0.68; transform: translateX(0); }
}

@keyframes world-typegate-meta-out {
  to { opacity: 0; transform: translateX(0.8rem); }
}

html.is-reduced-motion .world-novel-typegate *,
html.is-reduced-motion .world-field.is-novel-transition .world-copy,
html.is-reduced-motion .world-field.is-novel-transition .world-path,
html.is-reduced-motion .world-field.is-novel-transition .world-foot,
html.is-reduced-motion .world-field.is-novel-transition .world-back {
  animation-duration: 1ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
}

/* Yuri Fano pressure aperture v3. This is the only live novel route DOM. */
.world-novel-route.world-novel-pressure {
  --novel-target-x: 68vw;
  --novel-target-y: 48vh;
  position: fixed;
  inset: 0;
  z-index: 220;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  isolation: isolate;
  contain: paint;
}

.world-novel-pressure > * {
  position: absolute;
}

.world-novel-route__pressure {
  inset: -1px;
  background-color: #030914;
  background-image: url("assets/novel/signal-grain.webp");
  background-repeat: repeat;
  background-size: 256px 256px;
  background-blend-mode: soft-light;
  clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y));
  transform: translateZ(0);
  will-change: clip-path;
}

.world-novel-route__pulse {
  left: var(--novel-target-x);
  top: var(--novel-target-y);
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(233, 242, 248, 0.74);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 2.2rem rgba(18, 104, 255, 0.34);
  will-change: transform, opacity;
}

.world-novel-route__pulse i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #e9f2f8;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 1.4rem rgba(18, 104, 255, 0.88);
}

.world-novel-route--depart .world-novel-route__pressure {
  animation: world-pressure-cover 440ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__pulse {
  animation: world-pressure-pulse-lock 300ms ease-out both;
}

.world-novel-route--enter .world-novel-route__pressure {
  animation: world-pressure-reveal 440ms cubic-bezier(0.64, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__pulse {
  animation: world-pressure-pulse-release 360ms ease-out both;
}

.world-field.is-novel-transition:not(.is-returning-from-novel) .world-copy,
.world-field.is-novel-transition:not(.is-returning-from-novel) .world-path,
.world-field.is-novel-transition:not(.is-returning-from-novel) .world-foot,
.world-field.is-novel-transition:not(.is-returning-from-novel) .world-back {
  animation: world-pressure-ui-out 180ms ease both;
}

.world-field.is-returning-from-novel .world-copy,
.world-field.is-returning-from-novel .world-path,
.world-field.is-returning-from-novel .world-foot,
.world-field.is-returning-from-novel .world-back {
  animation: world-pressure-ui-in 220ms ease 120ms both;
}

@keyframes world-pressure-cover {
  from { clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y)); }
  to { clip-path: circle(160vmax at var(--novel-target-x) var(--novel-target-y)); }
}

@keyframes world-pressure-reveal {
  from { clip-path: circle(160vmax at var(--novel-target-x) var(--novel-target-y)); }
  to { clip-path: circle(0 at var(--novel-target-x) var(--novel-target-y)); }
}

@keyframes world-pressure-pulse-lock {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.48); }
  36% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes world-pressure-pulse-release {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
  28% { opacity: 0.82; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
}

@keyframes world-pressure-ui-out {
  to { opacity: 0; transform: translateY(-0.2rem); }
}

@keyframes world-pressure-ui-in {
  from { opacity: 0; transform: translateY(0.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .world-novel-pressure *,
  .world-field.is-novel-transition .world-copy,
  .world-field.is-novel-transition .world-path,
  .world-field.is-novel-transition .world-foot,
  .world-field.is-novel-transition .world-back {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes world-from-guide-copy {
  0% { opacity: 0; filter: blur(12px); transform: scale(0.88); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes world-guide-portal-open {
  0% { opacity: 0.96; filter: blur(8px); transform: translate(-50%, -50%) scale(0.08); }
  34% { opacity: 0.86; filter: blur(0); }
  100% { opacity: 0; filter: blur(5px); transform: translate(-50%, -50%) scale(3.5); }
}

@keyframes world-guide-entry-flash {
  0% { opacity: 0.96; }
  42% { opacity: 0.34; }
  100% { opacity: 0; }
}

@keyframes world-to-guide-collapse {
  0% {
    opacity: 0.92;
    filter: brightness(0.9) contrast(1.04) saturate(0.9) blur(0);
    transform: scale(1);
  }
  70% {
    opacity: 0.62;
    filter: brightness(1.08) contrast(0.96) saturate(0.38) blur(5px);
  }
  100% {
    opacity: 0.04;
    filter: brightness(1.7) contrast(0.84) saturate(0) blur(20px);
    transform: scale(0.34);
  }
}

@keyframes world-to-guide-copy {
  0% { opacity: 1; filter: blur(0); transform: scale(1); }
  100% { opacity: 0; filter: blur(12px); transform: scale(0.78); }
}

@keyframes world-guide-portal-close {
  0% { opacity: 0; filter: blur(6px); transform: translate(-50%, -50%) scale(3.3); }
  64% { opacity: 0.78; filter: blur(0); }
  100% { opacity: 0.96; filter: blur(4px); transform: translate(-50%, -50%) scale(0.08); }
}

@keyframes world-to-guide-optical-cut {
  0%, 54% { opacity: 0; }
  82% { opacity: 0.72; }
  100% { opacity: 0.94; }
}

@media (max-width: 760px) {
  .world-guide-portal { width: min(74vw, 380px); }
}

@media (prefers-reduced-motion: reduce) {
  html.is-guide-world-pending .world-canvas,
  html.is-guide-world-pending .world-guide-portal,
  html.is-guide-world-pending .world-flash,
  .world-field.is-entering-from-guide .world-canvas,
  .world-field.is-entering-from-guide .world-guide-portal,
  .world-field.is-entering-from-guide .world-flash,
  .world-field.is-guide-returning .world-canvas,
  .world-field.is-guide-returning .world-guide-portal,
  .world-field.is-guide-returning .world-flash {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Canonical Yuri Fano handoff. Keep one live DOM protocol: field / aperture / tear. */
.world-novel-route {
  color: #e9f2f8;
  background: transparent;
  font-family: "Noto Sans SC", sans-serif;
}

.world-novel-route__paper,
.world-novel-route__blue,
.world-novel-route__ink {
  display: none !important;
}

.world-novel-route__field {
  inset: 0;
  background: #030914;
}

.world-novel-route__aperture {
  left: var(--novel-target-x);
  top: 0;
  width: clamp(15rem, 24vw, 25rem);
  height: 100%;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(233, 242, 248, 0.34), 0 0 6rem rgba(18, 104, 255, 0.24);
}

.world-novel-route__aperture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.62) contrast(1.18) brightness(0.62);
}

.world-novel-route__tear {
  left: -8%;
  width: 116%;
  height: 8vh;
  opacity: 0;
  background: rgba(18, 104, 255, 0.52);
  mix-blend-mode: screen;
}

.world-novel-route__tear--a {
  top: 27%;
}

.world-novel-route__tear--b {
  top: 68%;
  height: 4vh;
  background: rgba(233, 242, 248, 0.36);
}

.world-novel-route__locator i,
.world-novel-route__locator b {
  background: #e9f2f8;
}

.world-novel-route__locator b {
  box-shadow: 0 0 2rem #1268ff;
}

.world-novel-route__lockup {
  color: #e9f2f8;
  text-shadow: 0 1px 2rem #030914;
}

.world-novel-route__lockup em {
  color: #1268ff;
}

.world-novel-route__scan {
  left: -18%;
  top: 0;
  bottom: 0;
  width: 14%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(233, 242, 248, 0.82), transparent);
  mix-blend-mode: screen;
  transform: skewX(-8deg);
}

.world-novel-route--depart .world-novel-route__field {
  animation: world-novel-field-open-v2 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__aperture {
  animation: world-novel-aperture-open-v2 860ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.world-novel-route--depart .world-novel-route__lockup,
.world-novel-route--depart .world-novel-route__locator {
  animation: world-novel-lock-in-v2 660ms ease 100ms both;
}

.world-novel-route--depart .world-novel-route__tear--a,
.world-novel-route--enter .world-novel-route__tear--a {
  animation: world-novel-tear-a-v2 420ms steps(2, end) 160ms both;
}

.world-novel-route--depart .world-novel-route__tear--b,
.world-novel-route--enter .world-novel-route__tear--b {
  animation: world-novel-tear-b-v2 360ms steps(2, end) 250ms both;
}

.world-novel-route--depart .world-novel-route__scan,
.world-novel-route--enter .world-novel-route__scan {
  animation: world-novel-scan-v2 720ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.world-novel-route--enter .world-novel-route__field {
  animation: world-novel-field-close-v2 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__aperture {
  animation: world-novel-aperture-close-v2 900ms cubic-bezier(0.68, 0, 0.18, 1) both;
}

.world-novel-route--enter .world-novel-route__lockup,
.world-novel-route--enter .world-novel-route__locator {
  animation: world-novel-lock-out-v2 700ms ease both;
}

@keyframes world-novel-scan-v2 {
  0% { transform: translateX(0) skewX(-8deg); opacity: 0; }
  14% { opacity: 0.82; }
  84% { opacity: 0.42; }
  100% { transform: translateX(980%) skewX(-8deg); opacity: 0; }
}

@media (max-width: 760px) {
  .world-novel-route__aperture {
    width: 52vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-novel-route *,
  .world-field.is-novel-transition .world-copy,
  .world-field.is-novel-transition .world-path,
  .world-field.is-novel-transition .world-foot,
  .world-field.is-novel-transition .world-back {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Mobile compositor budget and BFCache-safe transition frames. */
@media (max-width: 760px), (pointer: coarse) {
  .world-field.is-resume-card-transition .world-canvas {
    animation: world-resume-card-canvas-mobile-lite 820ms cubic-bezier(0.16, 0.86, 0.2, 1) both !important;
  }

  .world-field.is-resume-card-transition .world-copy,
  .world-field.is-resume-card-transition .world-path,
  .world-field.is-resume-card-transition .world-foot {
    animation: world-resume-card-copy-mobile-lite 620ms ease both !important;
  }

  .world-field.is-returning-from-notes .world-canvas,
  .world-field.is-returning-from-resume .world-canvas,
  .world-field.is-returning-from-motion .world-canvas {
    animation: world-return-canvas-mobile-lite 520ms ease-out both !important;
  }

  .world-field.is-returning-from-notes .world-copy,
  .world-field.is-returning-from-notes .world-foot,
  .world-field.is-returning-from-resume .world-copy,
  .world-field.is-returning-from-resume .world-foot,
  .world-field.is-returning-from-motion .world-copy,
  .world-field.is-returning-from-motion .world-foot {
    animation: world-return-copy-mobile-lite 420ms ease-out both !important;
  }

  .world-field.is-returning-from-notes .world-path,
  .world-field.is-returning-from-resume .world-path,
  .world-field.is-returning-from-motion .world-path {
    animation: world-path-return-mobile-lite 520ms ease-out both !important;
  }

  .world-field.is-returning-from-contact .world-flash {
    background:
      repeating-linear-gradient(0deg, rgba(238, 239, 234, 0.08) 0 1px, transparent 1px 52px),
      repeating-linear-gradient(90deg, rgba(238, 239, 234, 0.065) 0 1px, transparent 1px 52px),
      radial-gradient(circle at var(--core-x) var(--core-y), rgba(238, 239, 234, 0.16), transparent 26%);
    animation-duration: 520ms;
  }

  .world-field.is-returning-from-contact .world-canvas {
    animation: world-return-canvas-mobile-lite 520ms ease-out both !important;
  }

  .world-field.is-returning-from-contact .world-copy,
  .world-field.is-returning-from-contact .world-foot,
  .world-field.is-returning-from-contact .world-back {
    animation: world-return-copy-mobile-lite 420ms ease-out both !important;
  }

  .mg-card-grid {
    gap: 6px;
    padding: 10px;
    perspective: none;
    background: rgba(2, 3, 4, 0.08);
  }

  .mg-card-grid__card {
    backface-visibility: visible;
    filter: none !important;
    transform-style: flat;
    will-change: opacity, transform;
    animation: world-mg-card-enter-mobile-lite 720ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--delay) both;
  }

  .mg-card-grid--depart .mg-card-grid__card {
    animation: world-mg-card-depart-mobile-lite 720ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--delay) both;
  }

  .mg-card-grid__card::after {
    display: none;
  }

  .mg-card-grid__logo {
    filter: none !important;
    animation: world-mg-logo-enter-mobile-lite 720ms ease both;
  }

  .mg-card-grid--depart .mg-card-grid__logo {
    animation: world-mg-logo-depart-mobile-lite 720ms ease both;
  }
}

@keyframes world-resume-card-canvas-mobile-lite {
  from {
    opacity: 0.98;
    transform: scale(1);
  }
  to {
    opacity: 0.72;
    transform: scale(1.012);
  }
}

@keyframes world-resume-card-copy-mobile-lite {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 0.55rem, 0);
  }
}

@keyframes world-return-canvas-mobile-lite {
  from {
    opacity: 0.72;
    transform: scale(1.01);
  }
  to {
    opacity: 0.92;
    transform: scale(1);
  }
}

@keyframes world-return-copy-mobile-lite {
  from {
    opacity: 0;
    transform: translate3d(0, 0.45rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes world-path-return-mobile-lite {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes world-mg-card-enter-mobile-lite {
  0% {
    opacity: 0.68;
    transform: translate3d(10px, 0, 0) scale(0.985);
  }
  62% {
    opacity: 0.5;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-8px, 0, 0) scale(0.99);
  }
}

@keyframes world-mg-card-depart-mobile-lite {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 0, 0) scale(0.99);
  }
  28%,
  58% {
    opacity: 0.68;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(10px, 0, 0) scale(0.985);
  }
}

@keyframes world-mg-logo-enter-mobile-lite {
  from {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes world-mg-logo-depart-mobile-lite {
  0%,
  58% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
}
/* Resume return first-frame bridge — 2026-07-18 */
html.is-resume-return-pending .world-flash {
  z-index: 74;
  background:
    radial-gradient(circle at 50% 48%, rgba(48, 47, 43, 0.26), transparent 32%),
    #050504;
  mix-blend-mode: normal;
  opacity: 1;
  animation: none;
}

html.is-resume-return-pending .world-field.is-returning-from-resume .world-flash {
  background:
    radial-gradient(circle at 50% 48%, rgba(48, 47, 43, 0.26), transparent 32%),
    #050504;
  mix-blend-mode: normal;
  animation: world-resume-first-frame-release 900ms cubic-bezier(0.16, 0.86, 0.2, 1) both !important;
}

@keyframes world-resume-first-frame-release {
  0%,
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Yuri route compositor — 2026-07-18 */
.world-novel-route.is-compositor-route .yuri-loader__field {
  clip-path: none !important;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

.world-novel-route.is-compositor-route .yuri-loader__poster {
  clip-path: none !important;
  backface-visibility: hidden;
  transform-style: flat;
  will-change: transform, opacity;
}

.world-novel-route.is-compositor-route .yuri-loader__image {
  backface-visibility: hidden;
  will-change: transform;
}

.world-novel-route .yuri-loader__route-lock {
  z-index: 6;
  left: var(--yuri-loader-x);
  top: var(--yuri-loader-y);
  width: clamp(3.6rem, 5.2vw, 5.4rem);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 235, 248, 0.74);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.16);
  box-shadow:
    0 0 0 1px rgba(18, 104, 255, 0.18),
    0 0 2.8rem rgba(18, 104, 255, 0.42),
    inset 0 0 1.4rem rgba(117, 173, 214, 0.14);
  will-change: transform, opacity;
}

.world-novel-route .yuri-loader__route-lock::before,
.world-novel-route .yuri-loader__route-lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(233, 242, 248, 0.72);
  transform: translate(-50%, -50%);
}

.world-novel-route .yuri-loader__route-lock::before {
  width: 142%;
  height: 1px;
}

.world-novel-route .yuri-loader__route-lock::after {
  width: 1px;
  height: 142%;
}

.world-novel-route .yuri-loader__route-lock b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e9f2f8;
  box-shadow: 0 0 1.5rem rgba(18, 104, 255, 0.94);
  transform: translate(-50%, -50%);
}

html.is-novel-compositor-busy .world-canvas {
  will-change: auto;
}

@media (max-width: 760px), (pointer: coarse) {
  .world-novel-route .yuri-loader__route-lock {
    width: 3.4rem;
    box-shadow:
      0 0 0 1px rgba(18, 104, 255, 0.14),
      0 0 1.8rem rgba(18, 104, 255, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-novel-route .yuri-loader__route-lock {
    display: none;
  }
}

/* Field Notes paper gate — 2026-08-19 */
html.is-fieldnotes-return-pending .world-flash {
  z-index: 79;
  background-color: #e8dfcf;
  background-image: url("field-notes/assets/paper-texture.png");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 512px 512px;
  mix-blend-mode: normal;
  opacity: 1;
  animation: none;
}

.world-fieldnotes-route {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  color: #292821;
  pointer-events: none;
  isolation: isolate;
}

.world-fieldnotes-route__curtain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #e8dfcf;
  background-image: url("field-notes/assets/paper-texture.png");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 512px 512px;
  clip-path: circle(0 at var(--route-target-x) var(--route-target-y));
  will-change: clip-path;
}

.world-fieldnotes-route__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.985);
  transform-origin: var(--route-target-x) var(--route-target-y);
  will-change: opacity, transform;
}

.world-fieldnotes-route__lockup {
  position: absolute;
  left: var(--route-target-x);
  top: var(--route-target-y);
  display: grid;
  gap: 0.34rem;
  width: min(16rem, 62vw);
  padding: 1.2rem 1.35rem;
  border-left: 2px solid #173d2b;
  background: rgba(232, 223, 207, 0.82);
  opacity: 0;
  transform: translate(1.6rem, -50%) scale(0.96);
  transform-origin: 0 50%;
  will-change: opacity, transform;
}

.world-fieldnotes-route__lockup span,
.world-fieldnotes-route__lockup small {
  color: #686259;
  font: 0.64rem/1.35 "Share Tech Mono", Consolas, monospace;
  letter-spacing: 0.12em;
}

.world-fieldnotes-route__lockup strong {
  color: #173d2b;
  font: 700 clamp(1.55rem, 2.4vw, 2.4rem)/1.04 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.world-fieldnotes-route--depart .world-fieldnotes-route__curtain {
  animation: world-fieldnotes-paper-open 760ms cubic-bezier(0.18, 0.78, 0.18, 1) both;
}

.world-fieldnotes-route--enter .world-fieldnotes-route__curtain {
  animation: world-fieldnotes-paper-close 700ms cubic-bezier(0.18, 0.78, 0.18, 1) both;
}

.world-fieldnotes-route--depart .world-fieldnotes-route__dots {
  animation: world-fieldnotes-dots-open 760ms ease-out both;
}

.world-fieldnotes-route--enter .world-fieldnotes-route__dots {
  animation: world-fieldnotes-dots-close 700ms ease-in both;
}

.world-fieldnotes-route--depart .world-fieldnotes-route__lockup {
  animation: world-fieldnotes-lockup-open 760ms cubic-bezier(0.18, 0.78, 0.18, 1) both;
}

.world-fieldnotes-route--enter .world-fieldnotes-route__lockup {
  animation: world-fieldnotes-lockup-close 700ms cubic-bezier(0.18, 0.78, 0.18, 1) both;
}

body.is-fieldnotes-transition .world-hit,
body.is-returning-from-fieldnotes .world-hit {
  pointer-events: none;
}

@keyframes world-fieldnotes-paper-open {
  0% {
    clip-path: circle(0 at var(--route-target-x) var(--route-target-y));
  }
  100% {
    clip-path: circle(150vmax at var(--route-target-x) var(--route-target-y));
  }
}

@keyframes world-fieldnotes-paper-close {
  0% {
    clip-path: circle(150vmax at var(--route-target-x) var(--route-target-y));
  }
  100% {
    clip-path: circle(0 at var(--route-target-x) var(--route-target-y));
  }
}

@keyframes world-fieldnotes-dots-open {
  0%,
  12% {
    opacity: 0;
    transform: scale(0.97);
  }
  54%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes world-fieldnotes-dots-close {
  0%,
  34% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes world-fieldnotes-lockup-open {
  0%,
  18% {
    opacity: 0;
    transform: translate(1.1rem, -50%) scale(0.95);
  }
  42%,
  72% {
    opacity: 0.92;
    transform: translate(1.6rem, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(1.9rem, -50%) scale(1.015);
  }
}

@keyframes world-fieldnotes-lockup-close {
  0%,
  22% {
    opacity: 0.88;
    transform: translate(1.6rem, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(1rem, -50%) scale(0.94);
  }
}

@media (max-width: 760px), (pointer: coarse) {
  .world-fieldnotes-route__curtain {
    background-size: 384px 384px;
  }

  .world-fieldnotes-route__lockup {
    gap: 0.25rem;
    width: min(13.5rem, 64vw);
    padding: 0.92rem 1rem;
    transform: translate(0.8rem, -50%) scale(0.97);
  }

  .world-fieldnotes-route--depart .world-fieldnotes-route__curtain,
  .world-fieldnotes-route--depart .world-fieldnotes-route__dots,
  .world-fieldnotes-route--depart .world-fieldnotes-route__lockup {
    animation-duration: 320ms;
  }

  .world-fieldnotes-route--enter .world-fieldnotes-route__curtain,
  .world-fieldnotes-route--enter .world-fieldnotes-route__dots,
  .world-fieldnotes-route--enter .world-fieldnotes-route__lockup {
    animation-duration: 360ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-fieldnotes-route--depart .world-fieldnotes-route__curtain,
  .world-fieldnotes-route--depart .world-fieldnotes-route__dots,
  .world-fieldnotes-route--depart .world-fieldnotes-route__lockup,
  .world-fieldnotes-route--enter .world-fieldnotes-route__curtain,
  .world-fieldnotes-route--enter .world-fieldnotes-route__dots,
  .world-fieldnotes-route--enter .world-fieldnotes-route__lockup {
    animation-duration: 80ms;
    animation-timing-function: linear;
  }

  .world-fieldnotes-route__lockup {
    display: none;
  }
}
