:root {
  color-scheme: light;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body-zh: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-heading-zh: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --paper: #f7fafd;
  --ink: #2b465f;
  --muted: #60788f;
  --label: #5c748d;
  --blue: #376c9e;
  --line: #dae5ef;
  --depth: rgba(114, 146, 173, 0.09);
  --ease: cubic-bezier(0.42, 0, 0.58, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}

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

button {
  border: 0;
}

.page-shell {
  --canvas-scale: 1;
  --canvas-height: 890px;
  position: relative;
  width: 100%;
  height: var(--canvas-height);
  overflow: hidden;
  background: var(--paper);
}

.portfolio-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 890px;
  transform: translateX(-50%) scale(var(--canvas-scale));
  transform-origin: top center;
  background: var(--paper);
}

.navigation {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.brand {
  position: absolute;
  top: 33px;
  left: 64px;
  color: var(--ink);
  font-size: 23px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}

.descriptor {
  position: absolute;
  top: 31px;
  left: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
}

.descriptor span,
.introduction span,
h1 span {
  display: block;
}

.nav-links {
  position: absolute;
  inset: 0;
}

.nav-links button {
  position: absolute;
  top: 39px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: normal;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.nav-links button:nth-child(1) { left: 1000px; }
.nav-links button:nth-child(2) { left: 1090px; }
.nav-links button:nth-child(3) { left: 1210px; }

.nav-links button::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.nav-links button:hover::after,
.nav-links button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navigation__line {
  position: absolute;
  top: 99px;
  left: 64px;
  width: 1312px;
  height: 1px;
}

.object-garden {
  position: relative;
  width: 100%;
  height: 790px;
  overflow: hidden;
}

.eyebrow {
  position: absolute;
  top: 56px;
  left: 96px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: normal;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

h1 {
  position: absolute;
  top: 103px;
  left: 96px;
  width: 650px;
  margin: 0;
  color: var(--blue);
  font-size: 40px;
  font-weight: 400;
  line-height: 51px;
  letter-spacing: -0.7px;
}

.introduction {
  position: absolute;
  top: 229px;
  left: 100px;
  width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.object-path {
  position: absolute;
  top: 210px;
  left: 140px;
  width: 1135.358px;
  height: 426.738px;
  pointer-events: none;
}

.portal {
  position: absolute;
  display: block;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.portal:focus-visible {
  outline: 1px solid rgba(55, 108, 158, 0.45);
  outline-offset: 7px;
  border-radius: 12px;
}

.object-visual {
  position: absolute;
  display: block;
  transform-origin: center center;
  transition: transform 450ms var(--ease), filter 450ms var(--ease);
  will-change: transform, filter;
}

.object-label {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  color: var(--label);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1px;
  text-align: center;
  opacity: 0.76;
  pointer-events: none;
}

.object-label__title,
.object-label__note {
  display: block;
}

.object-label__note {
  color: rgba(92, 116, 141, 0);
  font-size: 11px;
  transition: color 420ms var(--ease);
}

.portal:hover .object-label,
.portal:focus-visible .object-label {
  opacity: 1;
}

.portal:hover .object-label__note,
.portal:focus-visible .object-label__note {
  color: rgba(92, 116, 141, 0.8);
}

.portal--computer {
  top: 360px;
  left: 130px;
  width: 200px;
  height: 240px;
}

.computer-visual {
  top: 27px;
  left: 6px;
  width: 188px;
  height: 160px;
}

.computer-visual::before {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 49px;
  width: 86px;
  height: 76px;
  content: "";
  pointer-events: none;
  border-radius: 48%;
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(221, 246, 255, 0.72) 0%,
    rgba(167, 218, 242, 0.34) 42%,
    rgba(152, 205, 231, 0) 76%
  );
  filter: blur(11px);
  opacity: 0;
  transform: scale(0.76);
  transition: opacity 520ms var(--ease), transform 650ms var(--ease);
}

.computer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.computer-spill,
.computer-screen {
  position: absolute;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.16;
  transition: opacity 500ms var(--ease), filter 500ms var(--ease);
}

.computer-spill {
  top: 0;
  left: 39px;
  width: 106px;
  height: 90px;
}

.computer-screen {
  top: 18px;
  left: 61px;
  width: 61px;
  height: 53px;
}

.portal--computer::before {
  position: absolute;
  top: 50px;
  left: 75px;
  width: 56px;
  height: 42px;
  content: "";
  border-radius: 50%;
  background: rgba(129, 195, 228, 0.38);
  filter: blur(24px);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 500ms var(--ease), transform 650ms var(--ease);
}

.portal--computer::after {
  position: absolute;
  top: 27px;
  left: 49px;
  width: 104px;
  height: 82px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(145, 203, 232, 0.2);
  filter: blur(35px);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 560ms var(--ease), transform 720ms var(--ease);
}

.portal--computer:hover .computer-visual,
.portal--computer:focus-visible .computer-visual {
  transform: translateY(-10px) scale(1.3);
  filter: drop-shadow(0 13px 14px rgba(80, 119, 150, 0.18));
}

.portal--computer:hover .computer-spill,
.portal--computer:hover .computer-screen,
.portal--computer:focus-visible .computer-spill,
.portal--computer:focus-visible .computer-screen {
  opacity: 1;
  filter: saturate(1.04) brightness(1.38) drop-shadow(0 0 8px rgba(188, 229, 248, 0.66));
}

.portal--computer:hover .computer-visual::before,
.portal--computer:focus-visible .computer-visual::before {
  opacity: 0.96;
  transform: scale(1.18);
}

.portal--computer:hover::before,
.portal--computer:focus-visible::before {
  opacity: 0.72;
  transform: scale(1.65);
  animation: screen-breathe 1.3s var(--ease) infinite alternate;
}

.portal--computer:hover::after,
.portal--computer:focus-visible::after {
  opacity: 0.7;
  transform: scale(1.72);
}

.portal--computer .object-label { top: 205px; }

.portal--turntable {
  top: 454px;
  left: 500px;
  width: 230px;
  height: 215px;
}

.turntable-visual {
  top: 4px;
  left: 27.5px;
  width: 175px;
  height: 167px;
  filter: drop-shadow(0 5px 9px rgba(114, 146, 173, 0.09));
  transition:
    top 420ms ease-in-out,
    left 420ms ease-in-out,
    width 420ms ease-in-out,
    height 420ms ease-in-out,
    filter 420ms ease-in-out;
}

.turntable-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 420ms ease-in-out;
}

.turntable-image--hover {
  opacity: 0;
}

.vinyl-window {
  position: absolute;
  z-index: 2;
  top: 122.8px;
  left: -0.3px;
  display: block;
  width: 174px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 180ms ease-in-out;
}

.vinyl-window::after {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 85px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: rgba(229, 232, 225, 0.82);
  box-shadow: 0 0 1px rgba(30, 33, 32, 0.75);
}

.vinyl-plane {
  position: absolute;
  top: 50%;
  left: 0;
  width: 174px;
  height: 174px;
  transform: translateY(-50%) scaleY(0.252874);
  transform-origin: center;
}

.vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 8deg, rgba(240, 245, 241, 0.09), rgba(9, 12, 13, 0.02) 8%, rgba(255, 255, 255, 0.025) 19%, rgba(6, 8, 9, 0.08) 31%, rgba(232, 238, 235, 0.065) 49%, rgba(8, 10, 11, 0.025) 67%, rgba(248, 250, 247, 0.07) 83%, rgba(7, 9, 10, 0.08)),
    repeating-radial-gradient(circle, #202222 0 1px, #171919 1.45px 2.35px, #1c1e1e 2.8px 3.5px);
  box-shadow: inset 0 0 0 1px rgba(5, 7, 8, 0.62), inset 0 0 18px rgba(0, 0, 0, 0.42);
  transform-origin: center;
  animation: vinyl-full-spin 7.36s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.vinyl-label {
  position: absolute;
  top: 47.485px;
  left: 58.366px;
  width: 57.267px;
  height: 79.03px;
  object-fit: fill;
}

.turntable-tonearm {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-in-out;
}

.turntable-tonearm--arm {
  clip-path: polygon(52.5% 72.5%, 56% 68.5%, 74% 56.5%, 78.5% 58.5%, 62% 72.5%, 59.5% 78%, 53% 78%);
}

.turntable-tonearm--base {
  clip-path: polygon(70% 52%, 83.5% 52%, 88% 82%, 68% 82%);
}

.portal--turntable.is-figma-hover .turntable-visual {
  top: -52.7px;
  left: 1.25px;
  width: 227.5px;
  height: 217.1px;
  filter: drop-shadow(0 9px 16px rgba(114, 146, 173, 0.17));
  transition-duration: 450ms;
}

.portal--turntable.is-figma-hover .turntable-image {
  transition-duration: 450ms;
}

.portal--turntable.is-figma-hover .turntable-image--rest {
  opacity: 0;
}

.portal--turntable.is-figma-hover .turntable-image--hover {
  opacity: 1;
}

.portal--turntable.is-figma-hover .vinyl-window,
.portal--turntable.is-figma-hover .turntable-tonearm {
  opacity: 1;
}

.portal--turntable.is-figma-hover .vinyl-disc {
  animation-play-state: running;
}

.portal--turntable.is-figma-hover .object-label__title {
  color: #377bc5;
}

.portal--turntable .object-label { top: 180px; }

.portal--bear {
  top: 278px;
  left: 850px;
  width: 230px;
  height: 210px;
  perspective: 800px;
}

.bear-visual {
  top: 3px;
  left: 43px;
  width: 144px;
  height: 164px;
  transform-style: preserve-3d;
}

.bear-flip {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
}

.bear-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  backface-visibility: hidden;
}

.bear-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px var(--depth));
}

.bear-face--back {
  transform: rotateY(180deg);
}

.bear-face--back img {
  object-fit: contain;
}

.bear-signature {
  position: absolute;
  top: 98px;
  left: 0;
  width: 100%;
  color: var(--paper);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  transform: translateZ(1px);
}

.portal--bear:hover .bear-visual,
.portal--bear:focus-visible .bear-visual {
  transform: translateY(-8px) scale(1.35) rotateZ(-0.6deg);
  filter: drop-shadow(0 13px 13px rgba(80, 119, 150, 0.12));
}

.portal--bear:hover .bear-flip,
.portal--bear:focus-visible .bear-flip {
  transform: rotateY(180deg) rotateZ(0.8deg);
}

.portal--bear .object-label { top: 176px; }

.portal--bag {
  top: 114px;
  left: 1135px;
  width: 210px;
  height: 195px;
}

.bag-visual {
  top: 0;
  left: 0;
  width: 210px;
  height: 158px;
  transform-origin: 50% 76%;
}

.bag-material {
  position: absolute;
  top: 0;
  left: 56.5px;
  display: block;
  width: 97px;
  height: 154px;
}

.bag-whole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.84;
  filter: drop-shadow(0 5px 9px var(--depth));
}

.bag-shadow {
  position: absolute;
  top: 151px;
  left: 72px;
  width: 66px;
  height: 5px;
  opacity: 0;
  transition: opacity 350ms ease, transform 450ms var(--ease);
}

.bag-pieces {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 100%;
  height: 100%;
  opacity: 0;
  transform-origin: 50% 58%;
  will-change: transform, opacity, filter;
}

.bag-piece {
  width: calc(100% + 1.2px);
  height: calc(100% + 1.2px);
  margin: -0.6px;
  object-fit: fill;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.portal--bag:hover .bag-visual,
.portal--bag:focus-visible .bag-visual {
  transform: translateY(-8px) scale(1.25);
  filter: drop-shadow(0 13px 13px rgba(80, 119, 150, 0.12));
}

.portal--bag:hover .bag-shadow,
.portal--bag:focus-visible .bag-shadow {
  opacity: 1;
  transform: scaleX(1.24);
}

.portal--bag.is-crumpling .bag-whole {
  animation: bag-whole-crumple 1.02s both;
}

.portal--bag.is-crumpling .bag-pieces {
  animation: bag-surface-crumple 1.02s both;
}

.portal--bag.is-crumpling .bag-piece {
  --x-direction: calc((1.5 - var(--column)) * 4.4px);
  --y-direction: calc((2 - var(--row)) * 3px);
  animation: bag-piece-crumple 1.02s both;
}

.portal--bag .object-label { top: 160px; }

.invitation,
.scroll-cue {
  position: absolute;
  top: 716px;
  margin: 0;
  color: var(--muted);
  line-height: normal;
  white-space: nowrap;
}

.invitation {
  left: 96px;
  font-size: 12px;
}

.scroll-cue {
  left: 1210px;
  font-size: 10px;
  letter-spacing: 0.7px;
}

@keyframes screen-breathe {
  from { opacity: 0.52; transform: scale(1.35); }
  to { opacity: 0.78; transform: scale(1.72); }
}

@keyframes vinyl-full-spin {
  to { transform: rotate(360deg); }
}

@keyframes bag-whole-crumple {
  0% {
    opacity: 0.84;
    transform: scale(1);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.54, 0.02, 0.76, 0.22);
  }
  35%, 45% { opacity: 0.22; transform: scale(0.81, 0.77) translateY(8px); filter: blur(0.22px); }
  45% { animation-timing-function: cubic-bezier(0.17, 0.72, 0.21, 1); }
  100% { opacity: 0.84; transform: scale(1); filter: blur(0); }
}

@keyframes bag-surface-crumple {
  0% {
    opacity: 0;
    transform: scale(1);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.54, 0.02, 0.76, 0.22);
  }
  8% { opacity: 0.7; }
  35%, 45% { opacity: 0.84; transform: scale(0.82, 0.78) translateY(8px); filter: contrast(1.04) brightness(0.98) blur(0.12px); }
  45% { animation-timing-function: cubic-bezier(0.17, 0.72, 0.21, 1); }
  88% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1); filter: none; }
}

@keyframes bag-piece-crumple {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1) rotate(0deg);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.54, 0.02, 0.76, 0.22);
  }
  8% { opacity: 0.78; }
  35%, 45% {
    opacity: 0.86;
    transform:
      translate(var(--x-direction), var(--y-direction))
      scale(0.96, 0.97)
      rotate(calc((var(--column) - 1.5) * 0.9deg));
    filter: contrast(1.04) brightness(0.99) blur(0.08px);
  }
  45% { animation-timing-function: cubic-bezier(0.17, 0.72, 0.21, 1); }
  78% {
    opacity: 0.75;
    transform:
      translate(calc(var(--x-direction) * -0.08), calc(var(--y-direction) * -0.06))
      scale(1.008, 0.996)
      rotate(calc((var(--column) - 1.5) * -0.18deg));
    filter: contrast(1.01);
  }
  94% { opacity: 0.32; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) scale(1); filter: none; }
}

/* Computer → AI Hub transition. Homepage geometry remains unchanged. */
.portfolio-canvas::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(239, 246, 255, 0.98), rgba(247, 250, 253, 0.96) 58%);
  opacity: 0;
  transition: opacity 320ms ease 390ms;
}

.portfolio-canvas .navigation,
.portfolio-canvas .eyebrow,
.portfolio-canvas h1,
.portfolio-canvas .introduction,
.portfolio-canvas .object-path,
.portfolio-canvas .invitation,
.portfolio-canvas .scroll-cue,
.portfolio-canvas .portal {
  transition: opacity 420ms ease, filter 420ms ease, transform 620ms cubic-bezier(0.22, 0.72, 0.26, 1);
}

.portfolio-canvas.is-entering-ai .navigation,
.portfolio-canvas.is-entering-ai .eyebrow,
.portfolio-canvas.is-entering-ai h1,
.portfolio-canvas.is-entering-ai .introduction,
.portfolio-canvas.is-entering-ai .object-path,
.portfolio-canvas.is-entering-ai .invitation,
.portfolio-canvas.is-entering-ai .scroll-cue,
.portfolio-canvas.is-entering-ai .portal:not(.portal--computer) {
  opacity: 0.06;
  filter: blur(2px);
}

.portfolio-canvas.is-entering-ai .portal--computer {
  z-index: 21;
  transform: translate(470px, -42px) scale(1.28);
}

.portfolio-canvas.is-entering-ai .computer-visual {
  transform: translateY(-10px) scale(1.3);
  filter: drop-shadow(0 18px 25px rgba(95, 139, 177, 0.2));
}

.portfolio-canvas.is-entering-ai .computer-spill,
.portfolio-canvas.is-entering-ai .computer-screen {
  opacity: 1;
  filter: brightness(1.46) drop-shadow(0 0 13px rgba(190, 228, 248, 0.72));
}

.portfolio-canvas.is-entering-ai .computer-visual::before,
.portfolio-canvas.is-entering-ai .portal--computer::before,
.portfolio-canvas.is-entering-ai .portal--computer::after {
  opacity: 1;
  transform: scale(2.2);
}

.portfolio-canvas.is-entering-ai::after {
  opacity: 1;
}

/* AI Hub */
.page-shell--ai {
  background: #f1f7fb;
}

.ai-hub-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 890px;
  overflow: hidden;
  background:
    radial-gradient(circle at 57% 43%, rgba(255, 255, 255, 0.98) 0 24%, rgba(242, 248, 252, 0.9) 59%, rgba(222, 235, 245, 0.72) 100%),
    #f1f7fb;
  opacity: 0;
  transform: translateX(-50%) scale(var(--canvas-scale));
  transform-origin: top center;
  transition: opacity 360ms ease;
}

.ai-hub-canvas::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(48, 89, 124, 0.06), transparent 15%, transparent 84%, rgba(42, 80, 114, 0.065));
}

.ai-hub-canvas.is-visible {
  opacity: 1;
}

.ai-hub-canvas.is-leaving {
  opacity: 0;
}

.ai-hub-nav {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 82px;
}

.ai-hub-back,
.ai-hub-locale button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(51, 79, 116, 0.72);
  cursor: pointer;
}

.ai-hub-back {
  position: absolute;
  top: 30px;
  left: 44px;
  font-size: 13px;
  letter-spacing: 0.05px;
}

.ai-hub-back:hover,
.ai-hub-back:focus-visible,
.ai-hub-locale button:hover,
.ai-hub-locale button:focus-visible,
.ai-hub-locale button[aria-pressed="true"] {
  color: #2e537f;
}

.ai-hub-locale {
  position: absolute;
  top: 29px;
  right: 45px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: rgba(75, 99, 132, 0.38);
  font-size: 13px;
}

.ai-hub-map {
  position: absolute;
  inset: 0;
}

.carousel-space {
  position: absolute;
  z-index: 3;
  inset: 0;
  perspective: 1100px;
  pointer-events: none;
}

.carousel-depth-haze {
  position: absolute;
  top: 206px;
  left: 50%;
  width: 760px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(174, 202, 224, 0.13), rgba(224, 237, 246, 0.045) 48%, transparent 72%);
  filter: blur(22px);
  opacity: 0.58;
  transform: translateX(-50%);
}

.carousel-fragment {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 220px;
  height: 190px;
  pointer-events: none;
  transform-origin: center;
  will-change: left, top, transform, opacity, filter;
}

.carousel-fragment img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thought-lines {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thought-line {
  stroke: rgba(91, 126, 164, 0.16);
  stroke-width: 0.75;
  transition: stroke 280ms ease, stroke-width 280ms ease, opacity 280ms ease;
}

.thought-dot {
  fill: rgba(88, 125, 171, 0.28);
  transition: fill 280ms ease, opacity 280ms ease, transform 280ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.ai-hub-map[data-active] .thought-line,
.ai-hub-map[data-active] .thought-dot[data-dot] {
  opacity: 0.18;
}

.ai-hub-map[data-active="aiVisual"] [data-line="aiVisual"],
.ai-hub-map[data-active="aiSkills"] [data-line="aiSkills"],
.ai-hub-map[data-active="aiProjects"] [data-line="aiProjects"],
.ai-hub-map[data-active="aiGame"] [data-line="aiGame"] {
  stroke: rgba(66, 111, 166, 0.6);
  stroke-width: 1.3;
  opacity: 1;
}

.ai-hub-map[data-active="aiVisual"] [data-dot="aiVisual"],
.ai-hub-map[data-active="aiSkills"] [data-dot="aiSkills"],
.ai-hub-map[data-active="aiProjects"] [data-dot="aiProjects"],
.ai-hub-map[data-active="aiGame"] [data-dot="aiGame"] {
  fill: #4679b6;
  opacity: 1;
  transform: scale(1.28);
}

.ai-bear {
  position: absolute;
  z-index: 110;
  top: auto;
  right: auto;
  bottom: 18px;
  left: 560px;
  width: 320px;
  height: 340px;
  pointer-events: none;
}

.ai-bear img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 14px 18px rgba(71, 100, 126, 0.12));
}

.bear-interface {
  position: absolute;
  z-index: 3;
  top: 74px;
  left: 166px;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(117, 151, 181, 0.62);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.92), rgba(190, 218, 237, 0.66) 46%, rgba(100, 139, 174, 0.2) 72%, transparent 74%);
  box-shadow: 0 0 7px rgba(105, 157, 197, 0.16), inset 0 0 0 2px rgba(246, 250, 253, 0.64);
}

.bear-interface__core {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(87, 129, 166, 0.78);
  box-shadow: 0 0 4px rgba(86, 143, 188, 0.45);
}

.bear-interface__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(99, 140, 177, 0.7);
}

.bear-interface__dot--one { top: -7px; left: 12px; }
.bear-interface__dot--two { top: 2px; right: -7px; }
.bear-interface__dot--three { right: -3px; bottom: -5px; opacity: 0.54; }

.ai-thought {
  position: absolute;
  z-index: 3;
  top: 674px;
  left: 450px;
  margin: 0;
  color: rgba(75, 101, 139, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.48;
  transform: rotate(-4deg);
}

.ai-thought span {
  display: block;
}

.ai-node {
  position: absolute;
  z-index: 3;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 420ms ease;
}

.ai-node:focus-visible {
  outline: 1px solid rgba(72, 113, 164, 0.52);
  outline-offset: 8px;
  border-radius: 14px;
}

.ai-node:hover,
.ai-node:focus-visible {
  z-index: 5;
  filter: drop-shadow(0 17px 22px rgba(66, 94, 132, 0.12));
  transform: translateY(-7px) scale(1.045);
}

.ai-node__visual {
  position: absolute;
  display: block;
  animation: object-float 8s ease-in-out infinite alternate;
}

.ai-node__asset {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 480ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 360ms ease;
}

.ai-node__copy {
  position: absolute;
  display: block;
  color: #294d75;
  text-align: left;
  transition: color 280ms ease, transform 350ms ease;
}

.ai-node__number,
.ai-node__title,
.ai-node__subtitle,
.ai-node__description {
  display: block;
}

.ai-node__number {
  width: max-content;
  min-width: 39px;
  margin-bottom: 8px;
  padding: 3px 12px 4px;
  border-radius: 20px;
  background: rgba(116, 145, 184, 0.48);
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.ai-node__title {
  max-width: 250px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.6px;
}

.ai-node__subtitle {
  margin-top: 9px;
  color: rgba(44, 73, 110, 0.84);
  font-size: 13px;
  line-height: 1.2;
}

.ai-node__description {
  max-width: 220px;
  margin-top: 10px;
  color: rgba(54, 79, 111, 0.75);
  font-size: 11px;
  line-height: 1.45;
}

.ai-node:hover .ai-node__copy,
.ai-node:focus-visible .ai-node__copy {
  color: #1f578f;
  transform: translateY(-2px);
}

.ai-node--visual {
  top: 138px;
  left: 252px;
  width: 306px;
  height: 318px;
}

.ai-node--visual .ai-node__visual {
  top: 58px;
  left: 112px;
  width: 120px;
  height: 166px;
  overflow: hidden;
  animation-duration: 9s;
  transition: height 620ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 360ms ease;
}

.ai-node--visual .ai-node__copy {
  top: 0;
  left: 0;
  width: 172px;
}

.ai-node--visual .ai-node__asset {
  width: 120px;
  height: auto;
  object-fit: unset;
  transform: none;
}

.ai-node--visual:hover .ai-node__visual,
.ai-node--visual:focus-visible .ai-node__visual {
  height: 240px;
  filter: brightness(1.025) drop-shadow(0 12px 16px rgba(66, 94, 132, 0.08));
}

.ai-node--skills {
  top: 270px;
  left: 475px;
  width: 360px;
  height: 246px;
}

.ai-node--skills .ai-node__visual {
  top: 65px;
  left: 142px;
  width: 188px;
  height: 158px;
  animation-duration: 10s;
}

.ai-node--skills .ai-node__copy {
  top: 0;
  left: 0;
  width: 186px;
}

.ai-node--skills .ai-node__asset {
  filter: hue-rotate(-18deg) saturate(0.76) brightness(1.035);
}

.ai-node--skills:hover .ai-node__asset,
.ai-node--skills:focus-visible .ai-node__asset {
  filter: hue-rotate(-18deg) saturate(0.8) brightness(1.09);
  transform: translate(-3px, -4px) scale(1.025);
}

.ai-node--skills .ai-node__pulse {
  position: absolute;
  top: 107px;
  left: 68px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 29px -2px 0 rgba(228, 241, 255, 0.8), 57px -3px 0 rgba(228, 241, 255, 0.8), 86px -4px 0 rgba(228, 241, 255, 0.8);
}

.ai-node--skills:hover .ai-node__pulse,
.ai-node--skills:focus-visible .ai-node__pulse {
  animation: workflow-pulse 1.1s ease-in-out infinite;
}

.ai-node--projects {
  top: 136px;
  left: 932px;
  width: 410px;
  height: 292px;
}

.ai-node--projects .ai-node__visual {
  top: 100px;
  left: 0;
  width: 202px;
  height: 184px;
  animation-duration: 8.5s;
}

.ai-node--projects .ai-node__copy {
  top: 42px;
  left: 198px;
  width: 204px;
}

.ai-node--projects .ai-node__title {
  font-size: 23px;
}

.ai-node--projects .ai-node__asset {
  filter: hue-rotate(-20deg) saturate(0.72) brightness(1.035);
}

.ai-node--projects:hover .ai-node__asset,
.ai-node--projects:focus-visible .ai-node__asset {
  filter: hue-rotate(-20deg) saturate(0.78) brightness(1.085);
  transform: translate(6px, -4px) scale(1.03);
}

.ai-node--game {
  top: 324px;
  left: 742px;
  width: 356px;
  height: 242px;
}

.ai-node--game .ai-node__visual {
  top: 18px;
  left: 0;
  width: 170px;
  height: 182px;
  animation-duration: 9.5s;
}

.ai-node--game .ai-node__copy {
  top: 28px;
  left: 164px;
  width: 190px;
}

.ai-node--game .ai-node__pulse {
  position: absolute;
  z-index: 2;
  top: 144px;
  left: 39px;
  width: 26px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 188, 96, 0.36), rgba(238, 125, 32, 0.08) 68%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.ai-node--game .ai-node__visual::after {
  position: absolute;
  z-index: 2;
  top: 86px;
  left: 72px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid rgba(122, 183, 134, 0.68);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.ai-node--game:hover .ai-node__asset,
.ai-node--game:focus-visible .ai-node__asset {
  animation: game-soft-bounce 720ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.ai-node--game:hover .ai-node__pulse,
.ai-node--game:focus-visible .ai-node__pulse {
  animation: toy-button-press 720ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.ai-node--game:hover .ai-node__visual::after,
.ai-node--game:focus-visible .ai-node__visual::after {
  animation: toy-ring-float 760ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

/* Invisible-path 3D carousel */
.carousel-space .ai-node {
  top: 0;
  left: 0;
  display: block;
  width: 224px;
  height: 216px;
  pointer-events: auto;
  transform-origin: center;
  will-change: left, top, transform, opacity, filter;
  transition: opacity 260ms ease;
}

.carousel-space .ai-node:hover,
.carousel-space .ai-node:focus-visible {
  filter: none;
}

.carousel-space .ai-node__visual {
  top: 50%;
  left: 50%;
  display: block;
  overflow: visible;
  animation: none;
  transform: translate(-50%, -50%);
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 360ms ease, height 580ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.carousel-space .ai-node:hover .ai-node__visual,
.carousel-space .ai-node:focus-visible .ai-node__visual {
  filter: drop-shadow(0 16px 20px rgba(67, 97, 130, 0.15)) brightness(1.05);
  transform: translate(-50%, -54%) scale(1.055);
}

.carousel-space .ai-node__badge {
  position: absolute;
  top: 5px;
  left: 50%;
  min-width: 30px;
  padding: 3px 9px 4px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(130, 158, 191, 0.5);
  color: rgba(255, 255, 255, 0.96);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  transition: background 280ms ease, transform 280ms ease;
}

.carousel-space .ai-node:hover .ai-node__badge,
.carousel-space .ai-node:focus-visible .ai-node__badge {
  background: rgba(77, 123, 169, 0.68);
  transform: translateX(-50%) translateY(-2px);
}

.carousel-space .ai-node--visual {
  width: 190px;
  height: 244px;
}

.carousel-space .ai-node--visual .ai-node__visual {
  top: 30px;
  left: 50%;
  width: 120px;
  height: 166px;
  overflow: hidden;
  transform: translateX(-50%);
}

.carousel-space .ai-node--visual:hover .ai-node__visual,
.carousel-space .ai-node--visual:focus-visible .ai-node__visual {
  height: 240px;
  transform: translateX(-50%) translateY(-4px) scale(1.035);
}

.carousel-space .ai-node--visual .ai-node__asset {
  width: 120px;
  height: auto;
  object-fit: unset;
}

.carousel-space .ai-node--skills {
  width: 222px;
  height: 205px;
}

.carousel-space .ai-node--skills .ai-node__visual {
  width: 188px;
  height: 158px;
}

.carousel-space .ai-node--skills .ai-node__pulse {
  top: 107px;
  left: 68px;
}

.carousel-space .ai-node--projects {
  width: 230px;
  height: 215px;
}

.carousel-space .ai-node--projects .ai-node__visual {
  width: 202px;
  height: 184px;
}

.carousel-space .ai-node--game {
  width: 205px;
  height: 214px;
}

.carousel-space .ai-node--game .ai-node__visual {
  width: 170px;
  height: 182px;
}

.carousel-labels {
  position: absolute;
  z-index: 130;
  inset: 0;
  pointer-events: none;
}

.carousel-label {
  position: absolute;
  width: 195px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(38, 71, 107, 0.78);
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  transition: color 280ms ease, opacity 280ms ease, transform 320ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.carousel-label--visual { top: 150px; left: 88px; }
.carousel-label--skills { top: 343px; left: 88px; }
.carousel-label--projects { top: 150px; right: 82px; }
.carousel-label--game { top: 343px; right: 82px; }

.carousel-label .ai-node__number {
  min-width: 34px;
  margin-bottom: 6px;
  padding: 3px 10px 4px;
  background: rgba(116, 145, 184, 0.4);
  font-size: 10px;
}

.carousel-label .ai-node__title {
  max-width: 190px;
  font-size: 19px;
  line-height: 1.02;
}

.carousel-label .ai-node__subtitle {
  margin-top: 7px;
  font-size: 12px;
}

.carousel-label .ai-node__description {
  max-width: 184px;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.4;
}

.carousel-label:hover,
.carousel-label:focus-visible,
.ai-hub-map[data-active="aiVisual"] .carousel-label--visual,
.ai-hub-map[data-active="aiSkills"] .carousel-label--skills,
.ai-hub-map[data-active="aiProjects"] .carousel-label--projects,
.ai-hub-map[data-active="aiGame"] .carousel-label--game {
  color: #1e568d;
  transform: translateY(-3px);
}

.carousel-label:focus-visible {
  outline: 1px solid rgba(72, 113, 164, 0.45);
  outline-offset: 7px;
  border-radius: 8px;
}

@keyframes orbit-drift {
  to { stroke-dashoffset: -980; }
}

@keyframes object-float {
  from { transform: translate3d(0, -2px, 0); }
  to { transform: translate3d(0, 5px, 0); }
}

@keyframes workflow-pulse {
  0%, 16% { opacity: 0.08; transform: translateX(-5px); }
  48%, 70% { opacity: 0.9; }
  100% { opacity: 0.12; transform: translateX(5px); }
}

@keyframes game-soft-bounce {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-6px) scale(1.025); }
  68% { transform: translateY(2px) scale(0.995); }
  100% { transform: translateY(-1px) scale(1.01); }
}

@keyframes toy-button-press {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  38% { opacity: 0.72; transform: translateY(3px) scale(0.9, 0.72); }
  100% { opacity: 0.18; transform: translateY(1px) scale(0.98, 0.9); }
}

@keyframes toy-ring-float {
  0% { opacity: 0; transform: translateY(2px) rotate(0deg); }
  42% { opacity: 0.74; transform: translateY(-8px) rotate(8deg); }
  72% { opacity: 0.48; transform: translateY(-3px) rotate(-4deg); }
  100% { opacity: 0.16; transform: translateY(-5px) rotate(0deg); }
}

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

@media (max-width: 700px) {
  .page-shell {
    min-height: var(--canvas-height);
  }
}

/* A single shared footer reserves its own clear area, outside page content. */
.site-copyright { padding:12px 20px 22px; background:var(--paper); color:var(--label); text-align:center; }
.site-copyright small { display:block; font-size:11px; line-height:1.8; }
.site-signature-track { position:relative; height:34px; max-width:1120px; margin:0 auto 8px; overflow:hidden; pointer-events:none; user-select:auto; }
.site-signature { position:absolute; top:5px; left:50%; width:max-content; margin-left:-65px; font-size:12px; line-height:1.6; opacity:.8; pointer-events:none; animation:copyright-drift 26s ease-in-out infinite; }
.site-copyright[data-position="0"] .site-signature { left:25%; }
.site-copyright[data-position="2"] .site-signature { left:75%; }
.site-copyright[data-view="home"] .site-signature-track { display:none; }
.home-copyright-curve { pointer-events:none; }
.home-curve-signature { font-family:var(--font-body); font-size:10px; fill:var(--muted); opacity:.88; pointer-events:none; }
@keyframes copyright-drift { 0%,100% { transform:translateX(-24px); } 50% { transform:translateX(24px); } }
@media(max-width:700px) {
 .home-curve-signature { display:none; }
 .site-copyright[data-view="home"] .site-signature-track { display:block; }
 /* The readable mobile fallback reuses copyright-drift (26s, transform only). */
}
@media(prefers-reduced-motion:reduce) { .site-signature { animation:none; transform:none; } }

/* Inner-page attribution uses viewport coordinates, above art but below top-layer dialogs. */
.site-copyright[data-view="page"] .site-signature-track { display:none; }
.site-content-signature { position:fixed; inset:0; z-index:200; overflow:hidden; pointer-events:none; }
.site-content-signature[hidden] { display:none; }
.site-content-signature__text {
 position:absolute; left:0; top:0; width:max-content;
 font-family:var(--font-body); font-size:13px; font-weight:400; line-height:1.5;
 color:#526b80; opacity:0; pointer-events:none;
 text-shadow:0 0 1px #fff,0 1px 1px #ffffffb3;
 offset-path:var(--signature-path,path("M -180 400 L 1800 200"));
 offset-rotate:0deg; offset-anchor:50% 50%;
 animation:content-signature-travel 26s linear infinite;
 will-change:offset-distance;
}
@keyframes content-signature-travel {
 0% { offset-distance:0%; opacity:0; }
 10% { opacity:.78; }
 90% { opacity:.78; }
 100% { offset-distance:100%; opacity:0; }
}
/* Modal previews use the browser top layer; hide attribution while any is open. */
body:has(dialog[open]) .site-content-signature { visibility:hidden; }
.site-content-signature[data-motion="static"] .site-content-signature__text {
 left:50%; top:65%; transform:translateX(-50%); offset-path:none; animation:none; opacity:.78;
}
@media(prefers-reduced-motion:reduce) {
 .site-content-signature__text { animation:none; offset-distance:52%; opacity:.78; will-change:auto; }
}

/* Homepage copy and contact UI only; object positions and shared tokens stay intact. */
.portfolio-canvas #hero-title { width:790px; white-space:nowrap; }
.home-quotation { position:absolute; top:178px; left:100px; width:565px; margin:0; color:var(--muted); }
.home-quotation blockquote { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:18px; font-style:italic; line-height:1.6; }
.home-quotation figcaption { margin-top:12px; font-size:11px; color:var(--label); }
.portfolio-canvas .nav-links { inset:auto 64px auto auto; top:34px; display:flex; align-items:center; gap:40px; }
.portfolio-canvas .nav-links button { position:relative; inset:auto; padding:5px 0; }
.home-language { display:flex; align-items:center; gap:5px; font-size:12px; }
.portfolio-canvas .home-language button { font-size:12px; color:var(--muted); }
.home-language button[aria-pressed="true"] { box-shadow:0 1px 0 var(--label); }
.home-contact { position:fixed; inset:0; width:min(430px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:34px 34px 26px; overflow:auto; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); box-shadow:0 18px 60px rgba(43,70,95,.16); }
.home-contact::backdrop { background:rgba(43,70,95,.2); }
.home-contact h2 { margin:0 0 25px; font:400 29px/1.2 Georgia,"Times New Roman",serif; }
.home-contact-close { position:absolute; top:12px; right:15px; background:none; cursor:pointer; font-size:24px; color:var(--muted); }
.home-contact dl { margin:0; display:grid; gap:17px; }
.home-contact dt { margin-bottom:5px; font-size:11px; letter-spacing:.07em; color:var(--muted); }
.home-contact dd { margin:0; display:flex; align-items:center; gap:12px; font-size:14px; }
.home-contact a { text-decoration:none; overflow-wrap:anywhere; }
.home-contact a:hover { text-decoration:underline; }
.home-contact dd button { background:none; padding:3px; cursor:pointer; }
.home-contact button:focus-visible,.home-contact a:focus-visible { outline:1px solid var(--blue); outline-offset:4px; }
.home-contact-qr { display:block; width:142px; height:auto; margin:24px auto 0; }
.home-contact-status { min-height:18px; margin:6px 0; color:var(--muted); font-size:12px; text-align:center; }
.home-contact-note { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.8; }
.home-objects { position:absolute; inset:0; }
@media(max-width:700px) {
 /* Counter the measured canvas scale for text only; keep the object map intact. */
 .portfolio-canvas .navigation { height:calc(90px / var(--canvas-scale)); }
 .portfolio-canvas .brand { font-size:calc(15px / var(--canvas-scale)); top:calc(16px / var(--canvas-scale)); left:calc(20px / var(--canvas-scale)); }
 .portfolio-canvas .descriptor { display:none; }
 .portfolio-canvas .nav-links { top:calc(48px / var(--canvas-scale)); left:calc(20px / var(--canvas-scale)); right:calc(20px / var(--canvas-scale)); justify-content:flex-end; gap:calc(22px / var(--canvas-scale)); }
 .portfolio-canvas .nav-links button,.portfolio-canvas .home-language,.portfolio-canvas .home-language button { font-size:calc(14px / var(--canvas-scale)); }
 .portfolio-canvas .nav-links button { padding:calc(5px / var(--canvas-scale)) 0; }
 .portfolio-canvas .home-language { gap:calc(5px / var(--canvas-scale)); }
 .portfolio-canvas .navigation__line { top:auto; bottom:0; left:calc(20px / var(--canvas-scale)); width:calc((100vw - 40px) / var(--canvas-scale)); }
 .portfolio-canvas .object-garden { height:calc(790px + 330px / var(--canvas-scale)); }
 .portfolio-canvas .eyebrow { top:calc(15px / var(--canvas-scale)); left:calc(20px / var(--canvas-scale)); font-size:calc(10px / var(--canvas-scale)); letter-spacing:calc(.7px / var(--canvas-scale)); }
 .portfolio-canvas #hero-title { top:calc(45px / var(--canvas-scale)); left:calc(20px / var(--canvas-scale)); width:calc((100vw - 40px) / var(--canvas-scale)); white-space:normal; font-size:calc(26px / var(--canvas-scale)); line-height:1.25; letter-spacing:0; }
 .home-quotation { top:calc(121px / var(--canvas-scale)); left:calc(20px / var(--canvas-scale)); width:calc((100vw - 40px) / var(--canvas-scale)); }
 .home-quotation blockquote { font-size:calc(14px / var(--canvas-scale)); line-height:1.55; }
 .home-quotation figcaption { font-size:calc(11.5px / var(--canvas-scale)); line-height:1.5; margin-top:calc(12px / var(--canvas-scale)); }
 .home-objects { top:calc(280px / var(--canvas-scale)); }
 .portfolio-canvas .object-label { left:50%; width:calc(120px / var(--canvas-scale)); transform:translateX(-50%); font-size:calc(12px / var(--canvas-scale)); line-height:1.4; letter-spacing:0; opacity:1; pointer-events:auto; }
 .portfolio-canvas .object-label__note { display:none; }
 .portfolio-canvas .invitation { font-size:calc(11px / var(--canvas-scale)); left:calc(20px / var(--canvas-scale)); white-space:normal; width:calc((100vw - 40px) / var(--canvas-scale)); line-height:1.5; }
 .portfolio-canvas .scroll-cue { top:calc(716px + 40px / var(--canvas-scale)); font-size:calc(10px / var(--canvas-scale)); left:auto; right:calc(20px / var(--canvas-scale)); }
}

.home-explore { display:none; }
@media(max-width:700px) {
 .portfolio-canvas .scroll-cue--desktop { display:none; }
 .portfolio-canvas .home-explore { display:block; top:calc(716px + 24px / var(--canvas-scale)); padding:calc(10px / var(--canvas-scale)) 0; min-height:calc(44px / var(--canvas-scale)); font-size:calc(13px / var(--canvas-scale)); line-height:1.4; background:none; cursor:pointer; }
 .portfolio-canvas .home-explore:focus-visible { outline:1px solid var(--blue); outline-offset:4px; }
 .page-shell.is-guiding .invitation { font-size:calc(13px / var(--canvas-scale)); color:var(--ink); }
 .portfolio-canvas .is-explore-highlight .computer-visual { animation:home-explore-nudge 850ms ease-out; }
 @keyframes home-explore-nudge { 0%,100% { transform:translateY(0); } 45% { transform:translateY(calc(-5px / var(--canvas-scale))); } }
}
@media(prefers-reduced-motion:reduce) { .portfolio-canvas .is-explore-highlight .computer-visual { animation:none; } }

/* Same desktop cue geometry; native button semantics reuse the existing guide. */
.portfolio-canvas .scroll-cue--desktop { padding:0; border:0; background:transparent; text-align:left; cursor:pointer; }
.portfolio-canvas .scroll-cue--desktop:focus-visible { outline:1px solid var(--blue); outline-offset:4px; }

@media(max-width:700px) {
 .page-shell--ai { position:relative; height:auto; min-height:100svh; overflow:hidden; }
 .page-shell--ai .ai-hub-canvas { position:relative; left:auto; width:100%; height:auto; min-height:100svh; transform:none; }
 .page-shell--ai .ai-hub-nav { position:relative; height:76px; display:flex; align-items:center; justify-content:space-between; padding:16px 20px; }
 .page-shell--ai .ai-hub-back,.page-shell--ai .ai-hub-locale { position:static; font-size:14px; }
 .page-shell--ai .ai-hub-back,.page-shell--ai .ai-hub-locale button { min-height:44px; padding:8px 0; }
 .page-shell--ai .ai-hub-locale { gap:9px; }
 .page-shell--ai .ai-hub-locale button { font-size:14px; }
 .page-shell--ai .ai-hub-map { position:relative; inset:auto; display:flex; flex-direction:column; }
 .page-shell--ai .ai-bear { position:relative; order:0; inset:auto; width:180px; height:190px; margin:18px auto 0; }
 .page-shell--ai .bear-interface { top:42px; left:93px; transform:scale(.7); }
 .page-shell--ai .ai-thought { position:relative; order:1; inset:auto; margin:12px 24px 32px; max-width:none; font-size:27px; line-height:1.25; text-align:center; transform:none; color:var(--blue); }
 .page-shell--ai .carousel-labels { display:none; }
 .page-shell--ai .carousel-space { z-index:0; }
 .page-shell--ai .carousel-depth-haze { top:70px; width:240px; height:130px; }
 .page-shell--ai .carousel-fragment { width:34px; height:34px; opacity:.4; filter:none; transform:rotate(-8deg); will-change:auto; animation:object-float 9s ease-in-out infinite alternate; }
 .page-shell--ai .carousel-fragment--1 { left:8%; top:58px; }
 .page-shell--ai .carousel-fragment--2 { left:80%; top:44px; }
 .page-shell--ai .carousel-fragment--3 { left:15%; top:190px; }
 .page-shell--ai .carousel-fragment--4 { left:82%; top:190px; }
 .page-shell--ai .carousel-fragment--5 { left:3%; top:260px; }
 .page-shell--ai .carousel-fragment--6 { left:73%; top:258px; }
 .page-shell--ai .carousel-fragment--7 { left:45%; top:0; }
 .page-shell--ai .carousel-fragment--8 { left:3%; top:135px; }
 .page-shell--ai .carousel-fragment--9 { left:89%; top:120px; }
 .ai-mobile-entries { position:relative; z-index:3; order:2; padding:0 24px 36px; }
 .ai-mobile-entry { display:grid; grid-template-columns:100px minmax(0,1fr); gap:18px; align-items:center; min-height:226px; padding:26px 0; border-top:1px solid var(--line); }
 .ai-mobile-entry .ai-node { position:relative; inset:auto; width:100px; height:176px; transform:none; filter:none; opacity:1; will-change:auto; }
 .ai-mobile-entry .ai-node__visual { top:50%; left:50%; width:100px; height:128px; overflow:visible; animation:none; transform:translate(-50%,-50%); }
 .ai-mobile-entry .ai-node__asset { width:100%; height:100%; object-fit:contain; animation:hub-mobile-float 8s ease-in-out infinite alternate; }
 .ai-mobile-entry .ai-node:hover .ai-node__visual,.ai-mobile-entry .ai-node:focus-visible .ai-node__visual { transform:translate(-50%,-54%) scale(1.035); }
 .ai-mobile-entry .ai-node--visual .ai-node__visual { width:94px; height:132px; overflow:hidden; transition:height 580ms ease,transform 420ms ease; }
 .ai-mobile-entry .ai-node--visual .ai-node__asset { width:94px; height:auto; object-fit:unset; }
 .ai-mobile-entry .ai-node--visual:hover .ai-node__visual,.ai-mobile-entry .ai-node--visual:focus-visible .ai-node__visual { height:160px; }
 .ai-mobile-entry .ai-node__badge { position:absolute; top:0; left:50%; transform:translateX(-50%); font-size:12px; color:var(--label); }
 .ai-mobile-entry .ai-node--skills .ai-node__pulse { top:84px; left:8px; }
 .ai-mobile-entry .ai-node--game .ai-node__pulse { top:108px; left:17px; }
 .ai-mobile-entry .ai-node--game .ai-node__visual::after { top:62px; left:36px; }
 .ai-mobile-entry .carousel-label { position:relative; inset:auto; width:100%; min-height:160px; padding:8px 0; }
 .ai-mobile-entry .ai-node__number { font-size:12px; margin-bottom:10px; }
 .ai-mobile-entry .ai-node__title { max-width:none; font-size:18px; line-height:1.3; letter-spacing:-.2px; }
 .ai-mobile-entry .ai-node__subtitle { font-size:14px; line-height:1.6; margin-top:8px; }
 .ai-mobile-entry .ai-node__description { max-width:none; font-size:14px; line-height:1.7; margin-top:10px; }
 @keyframes hub-mobile-float { from { transform:translateY(-2px); } to { transform:translateY(3px); } }
}
@media(max-width:700px) and (prefers-reduced-motion:reduce) {
 .page-shell--ai .carousel-fragment,.ai-mobile-entry .ai-node__asset { animation:none; }
}

.projects-gallery {
  --gallery-body-en: inherit;
  --gallery-body-zh: inherit;
  --gallery-title-en: Georgia, "Times New Roman", serif;
  --gallery-title-zh: inherit;
  --gallery-title: var(--gallery-title-en);
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 35%, #fff, #f1f6fb);
  color: #304b67;
  font-family: var(--gallery-body-en);
}
:lang(zh) .projects-gallery {
  font-family: var(--gallery-body-zh);
  --gallery-title: var(--gallery-title-zh);
}
.projects-gallery button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  font-size: 13px;
}
.gallery-nav nav { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery-nav button { padding: 6px 2px; }
.gallery-nav [aria-current], .gallery-nav [aria-pressed="true"] {
  box-shadow: 0 1px #537699;
  color: #244768;
}
.gallery-exhibits {
  max-width: 1120px;
  margin: auto;
  padding: clamp(80px, 16vh, 160px) 30px 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(42px, 8vw, 116px);
}
.gallery-exhibit:nth-child(2) { padding-top: 72px; }
.gallery-project { width: 100%; padding: 0; text-align: left; perspective: 1000px; }
.gallery-book {
  isolation: isolate;
  position: relative;
  display: flex;
  aspect-ratio: 1.72;
  transform: rotateX(12deg);
  border-bottom: 3px solid #a3b4c1;
  border-radius: 2px 2px 5px 5px;
  box-shadow: 0 3px #d3e0eb, 0 6px 0 -1px #aabcc9, 5px 23px 26px -12px #465e7663;
  transition: transform 420ms ease, box-shadow 420ms ease;
}
.gallery-leaf {
  position: relative;
  display: grid;
  place-items: center;
  width: 50%;
  padding: 8%;
  background: linear-gradient(90deg, #eef2f5, #fff 10%, #fbfcfd 86%, #d9e1e8);
  border: 1px solid #e0e7ee;
  border-radius: 2px 9px 4px 2px / 2px 5px 3px 2px;
}
.gallery-leaf + .gallery-leaf {
  background: linear-gradient(90deg, #c6d2de, #f8fafc 12%, #fff 90%, #edf2f6);
  border-radius: 9px 2px 2px 4px / 5px 2px 2px 3px;
}
.gallery-leaf img { width: 100%; max-height: 100%; object-fit: contain; }
.gallery-placeholder { text-align: center; font-size: clamp(10px, 1.1vw, 14px); }
.gallery-placeholder small { display: block; margin-top: 8px; color: #5b7085; }
.gallery-caption { display: grid; gap: 9px; margin-top: 40px; line-height: 1.55; font-size: 13px; }
.gallery-caption strong, .gallery-case h1 { font-family: var(--gallery-title); font-size: 20px; font-weight: 500; }
.gallery-cta { width: max-content; border-bottom: 1px solid #8da8be; }
.gallery-project:is(:hover, :focus-visible) .gallery-book {
  transform: translateY(-8px) rotateX(9deg) scale(1.04);
  box-shadow: 0 3px #d3e0eb, 0 6px 0 -1px #aabcc9, 6px 29px 34px -12px #465e7675;
}
.gallery-project:is(:hover, :focus-visible) .gallery-caption { color: #193d60; }
.gallery-case { max-width: 680px; margin: 15vh auto 0; padding: 24px; }
.gallery-case button { text-decoration: underline; }
@media (max-width: 700px) {
  .gallery-nav { flex-wrap: wrap; }
  .gallery-nav nav { order: 3; width: 100%; justify-content: space-between; gap: 6px; }
  .gallery-exhibits { max-width: 480px; grid-template-columns: 1fr; padding-top: 60px; gap: 58px; }
  .gallery-exhibit:nth-child(2) { padding-top: 0; }
  .gallery-caption { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-project:is(:hover, :focus-visible) .gallery-book { transform: rotateX(12deg); }
}

/* Flat page art, with the existing book geometry and fold shading retained. */
.gallery-leaf:has(> img) { padding: 0; }
.gallery-leaf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gallery-leaf:has(> img)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, #304b6705, transparent 12%, transparent 88%, #304b6714); }
.gallery-leaf + .gallery-leaf:has(> img)::after { background: linear-gradient(90deg, #304b6724, transparent 12%, transparent 92%, #304b6705); }

.xs-case {
  --xs-width: 900px;
  --xs-gutter: clamp(24px, 6vw, 90px);
  --xs-gap: clamp(100px, 15vw, 200px);
  --xs-body-en: system-ui, sans-serif;
  --xs-body-zh: var(--font-body-zh);
  --xs-heading-en: Georgia, serif;
  --xs-heading-zh: var(--font-heading-zh);
  --xs-heading: var(--xs-heading-en);
  background: #f7f8fa;
  color: #222;
  font: 14px/1.85 var(--xs-body-en);
}
.xs-case:lang(zh) { font-family: var(--xs-body-zh); --xs-heading: var(--xs-heading-zh); }
.xs-nav { position: sticky; top: 0; z-index: 5; background: #f7f8fa; color: #294d75; }
.xs-nav button { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.xs-nav [aria-pressed="true"] { text-decoration: underline; }
.xs-story { max-width: var(--xs-width); width: calc(100% - 2 * var(--xs-gutter)); margin: auto; position: relative; padding: 70px 0 120px; }
.xs-thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xs-thread path { stroke: #a8bfd9; stroke-width: 1; fill: none; }
.xs-hero, .xs-chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18%; align-items: center; }
.xs-hero { padding-bottom: 80px; }
.xs-case h1 { position: static; width: auto; margin: 8px 0; color: #284f7a; font: 36px/1.2 var(--xs-heading); }
.xs-case h1 i { font: italic 21px Georgia, serif; }
.xs-case h2 { margin: 8px 0; font: 500 18px/1.45 var(--xs-heading); }
.xs-case p { max-width: 36em; margin: 12px 0 0; }
.xs-case small { color: #365a81; }
.xs-copy { background: #f7f8fa; }
.xs-chapter { margin-top: var(--xs-gap); }
.xs-chapter:nth-of-type(odd) .xs-copy { grid-column: 2; grid-row: 1; }
.xs-chapter:nth-of-type(odd) figure { grid-column: 1; grid-row: 1; }
.xs-copy small { font: italic 17px Georgia, serif; }
.xs-composition { position: relative; min-height: 350px; display: grid; align-items: center; }
.xs-media { margin: 0; display: grid; place-items: center; text-align: center; color: #53677b; }
.xs-media small { display: block; }
.xs-print { min-height: 170px; aspect-ratio: 1.6; padding: 6px; background: #fffdfa; border: 1px solid #e0e3e7; box-shadow: 4px 11px 23px #26344b24; transform: rotate(-3deg); }
.xs-chapter:nth-of-type(even) .xs-print { transform: rotate(3deg); }
.xs-composition .xs-print { width: 78%; background: #f4efe8; transform: rotate(-9deg); }
.xs-phone { width: min(100%, 218px); aspect-ratio: 1 / 1.98; margin-inline: auto; border: 5px solid #262728; border-radius: 28px; background: #f1efeb; box-shadow: 8px 15px 24px #26344b3c; overflow: hidden; }
.xs-composition .xs-phone { position: absolute; right: 0; width: 42%; transform: rotate(8deg); }
.xs-chapter > .xs-print { width: calc(100% - 56px); justify-self: center; }
.xs-composition { width: 88%; justify-self: center; }
.xs-composition .xs-print { margin-left: 20px; }
.xs-composition .xs-phone { right: 24px; width: 40%; }
.xs-media :is(img, video) { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.xs-cutout {
  position: relative;
  width: var(--cutout-width);
  max-width: calc(100% - 32px);
  justify-self: center;
  z-index: var(--cutout-layer);
  transform: translate(var(--cutout-x), var(--cutout-y)) rotate(var(--cutout-angle));
}
.xs-cutout img { height: auto; }
.xs-composition > .xs-cutout--sketch { justify-self: start; }
.xs-composition > .xs-cutout--editor { position: absolute; right: 12px; }
.xs-media-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .66fr); align-items: end; justify-items: center; gap: 12px; grid-column: 1; grid-row: 1; }
.xs-media-stack > figure { grid-area: auto !important; }
.xs-chapter:has(> .xs-cutout--overview), .xs-chapter:has(> .xs-cutout--iteration), .xs-chapter:has(> .xs-cutout--outcome) { min-height: 200px; }
@media (max-width: 700px) {
  .xs-story { --xs-gap: 90px; padding-top: 42px; }
  .xs-hero, .xs-chapter { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .xs-composition { min-height: 260px; }
  .xs-thread { width: 30px; left: -22px; }
  .xs-hero { padding-bottom: 15px; }
  .xs-cutout { align-self: center; }
}

.xs-case { --xs-gap: clamp(100px, 10vw, 145px); }
.xs-story { padding-top: 42px; padding-bottom: 70px; }
.xs-hero { padding-bottom: 0; }
@media (min-width: 701px) {
  .xs-hero > .xs-composition {
    --xs-hero-media-scale: 1.3;
    transform: scale(var(--xs-hero-media-scale));
    transform-origin: right center;
  }
}
.xs-chapter--overview { margin-top: 60px; }
.xs-chapter { gap: 12%; }
.xs-chapter--overview .xs-copy,
.xs-chapter--structure .xs-copy { align-self: start; padding-top: 14px; }
.xs-chapter--shop > figure { align-self: start; margin-top: -24px; }
.xs-chapter--structure > figure { width: min(calc(100% - 40px), 350px); }
.xs-chapter--recording { grid-template-columns: .85fr 1.15fr; gap: 6%; }
.xs-chapter--recording .xs-phone { width: min(190px, 90%); }
.xs-chapter--iteration { grid-template-columns: 1fr 1fr; gap: 9%; }
.xs-research { display: grid; grid-template-columns: 1fr 1.7fr; align-items: end; gap: 8px; }
.xs-research > figure { grid-area: auto !important; max-width: 100%; }
.xs-research .xs-cutout--interaction { grid-column: 2 !important; grid-row: 1 !important; width: 96%; }
.xs-research .xs-cutout--iteration { grid-column: 1 !important; grid-row: 1 !important; margin-bottom: 28px; }
.xs-chapter--contribution { margin-top: 90px; }
.xs-chapter--outcome { margin-top: 105px; }
.xs-footer { position: relative; margin-top: 65px; }
.xs-footer button { border: 0; padding: 6px 0; background: transparent; color: #294d75; font: inherit; cursor: pointer; }
/* Spread coordinates follow the exhibition board, within the same story width. */
@media (min-width: 701px) {
  .xs-hero, .xs-chapter {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }
  .xs-hero > div:first-child { grid-column: 2 / 6; margin-top: 62px; }
  .xs-hero > .xs-composition { grid-column: 6 / 13; width: 92%; transform: none; min-height: 330px; }
  .xs-composition > .xs-cutout--sketch { width: 73%; }
  .xs-composition > .xs-cutout--editor { width: 48%; top: 0; right: 5%; }
  .xs-story > .xs-chapter > .xs-copy { grid-column: var(--text-columns); grid-row: 1; margin-top: var(--text-offset, 0px); padding-top: 0; }
  .xs-story > .xs-chapter > figure { grid-column: var(--image-columns); grid-row: 1; margin-top: var(--image-offset, 0px); }
  .xs-chapter--overview { --text-columns: 2 / 6; --image-columns: 8 / 13; --image-offset: 34px; margin-top: 58px; }
  .xs-chapter--shop { --text-columns: 7 / 12; --image-columns: 3 / 6; --text-offset: 54px; margin-top: 38px; }
  .xs-chapter--shop > figure { width: 76%; aspect-ratio: .68; transform: rotate(-7deg); }
  .xs-chapter--structure { --text-columns: 2 / 7; --image-columns: 7 / 13; --image-offset: 42px; margin-top: 78px; }
  .xs-chapter--recording { --text-columns: 6 / 11; --image-columns: 2 / 5; --text-offset: 26px; --image-offset: 53px; margin-top: 54px; }
  .xs-chapter--recording > .xs-phone { transform: rotate(-8deg); width: min(180px, 82%); }
  .xs-story > .xs-chapter--recording > .xs-cutout--iteration { grid-column: 11 / 13; width: 95%; max-width: 100%; margin-top: 91px; }
  .xs-chapter--iteration { --text-columns: 3 / 7; --image-columns: 8 / 13; --image-offset: 24px; margin-top: 63px; }
  .xs-chapter--iteration > figure { width: 90%; }
  .xs-chapter--contribution { --text-columns: 5 / 10; --image-columns: 2 / 4; --image-offset: 53px; margin-top: 45px; }
  .xs-chapter--contribution > figure { width: 78%; }
  .xs-chapter--outcome { --text-columns: 2 / 8; --image-columns: 9 / 13; --text-offset: 42px; margin-top: 61px; }
}
@media (max-width: 700px) {
  .xs-thread { width: 100%; left: 0; }
  .xs-story > section { padding-inline-start: 22px; }
  .xs-chapter { gap: 24px; margin-top: 76px; }
  .xs-chapter--shop > figure { align-self: center; margin-top: 0; }
  .xs-chapter--structure > figure { align-self: center; }
}

/* Reading panels grow in normal flow; chapter observers update the thread. */
.xs-meta { font-size: 12px; color: #53677b; }
.xs-reading-toggle { border: 0; background: transparent; padding: 12px 0 4px; color: #6689b0; font: inherit; font-size: 12px; cursor: pointer; }
.xs-reading-toggle:focus-visible { outline: 1px solid #6689b0; outline-offset: 4px; }
.xs-details { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 350ms ease, visibility 350ms; }
.xs-details > div { overflow: hidden; min-height: 0; }
.xs-details.is-open { grid-template-rows: 1fr; visibility: visible; }
.xs-details p { margin-top: 16px; }
.xs-details strong { font-weight: 500; }
@media (min-width: 701px) {
  .xs-chapter--business { --text-columns: 6 / 12; margin-top: 65px; }
}
@media (prefers-reduced-motion: reduce) { .xs-details { transition: none; } }

/* Real screenshots: adaptation stays inside the existing visual slots. */
.xs-real-phone { display: block; position: relative; width: 100%; aspect-ratio: 359 / 539; }
.xs-real-phone > svg { position: absolute; inset: 0; width: 100%; height: 100%; mask-size: 100% 100%; mask-repeat: no-repeat; }
.xs-screen-plane { width: 220px; height: 480px; box-sizing: border-box; padding: 8px; transform-origin: 0 0; background: white; display: grid; align-items: center; }
.xs-real-phone .xs-screen-plane > img { width: 100%; height: 100%; object-fit: contain; }
.xs-real-phone > img { position: relative; pointer-events: none; }
.xs-chapter--shop .xs-media > img { object-fit: contain; }
.xs-tutorial-comparison { display: flex; align-items: center; width: 100%; aspect-ratio: 529 / 415; gap: 4%; }
.xs-tutorial-comparison > img { width: 60%; height: auto; }
.xs-tutorial-comparison > button { display: block; width: 36%; cursor: zoom-in; }
.xs-tutorial-comparison > button > img { width: 100%; height: auto; }
.xs-tutorial-comparison > button:focus-visible { outline: 1px solid #6689b0; outline-offset: 4px; }

.xs-tutorial-comparison > button { border: 0; padding: 0; background: transparent; }
.xs-image-viewer { border: 0; padding: 36px 14px 14px; max-width: min(92vw, 650px); max-height: 92vh; background: #f7f8fa; }
.xs-image-viewer::backdrop { background: #24354c99; }
.xs-image-viewer > img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: auto; }
.xs-image-viewer > button { position: absolute; top: 4px; right: 10px; padding: 0 6px; border: 0; background: transparent; color: #294d75; font: 22px system-ui; cursor: pointer; }

/* Small decorative layers occupy existing whitespace without affecting flow. */
.xs-decoration { position: absolute; display: block; height: auto; pointer-events: none; user-select: none; }
.xs-decoration--structure { width: 160px; right: 2%; top: -74px; }
.xs-decoration--business { width: 170px; left: 9%; top: 40px; }
.xs-decoration--recording { width: 140px; right: 0; top: 265px; }
@media (max-width: 900px) { .xs-decoration { display: none; } }

/* P0 product media: native UI ratios, within the existing chapter slots. */
.xs-structure-composite { position: relative; }
.xs-structure-composite .xs-structure-screen { position: absolute; height: auto; object-fit: contain; filter: drop-shadow(2px 5px 5px #26344b24); }
.xs-structure-screen--0 { width: 26% !important; left: 5%; top: 4%; transform: rotate(-4deg); }
.xs-structure-screen--1 { width: 24% !important; left: 37%; top: 12%; transform: rotate(1deg); }
.xs-structure-screen--2 { width: 26% !important; left: 68%; top: 5%; transform: rotate(4deg); }
.xs-video-phone { aspect-ratio: 496 / 1074; padding: 0; }
.xs-video-phone > video { width: 100%; height: auto; aspect-ratio: 496 / 1074; object-fit: contain; }

/* Chapter 02: preserve the layout slot, remove the oversized paper surround. */
.xs-chapter--shop > .xs-print { padding: 0; border: 0; background: transparent; box-shadow: none; position: relative; }
.xs-chapter--shop > .xs-print > img { position: absolute; width: 100%; height: auto; top: -8%; left: 0; border: 1px solid #e0e3e7; border-radius: 12px; box-shadow: 4px 12px 22px #26344b24; }

/* Chapter 03: three independent cards, within the unchanged visual slot. */
.xs-structure-composite { aspect-ratio: 1.6; min-height: 170px; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; isolation: isolate; }
.xs-structure-card { position: absolute; width: 30%; padding: 0; border: 1px solid #e0e3e7; border-radius: 9px; background: transparent; cursor: zoom-in; box-shadow: 3px 9px 14px #26344b24; transform: translateY(0) rotate(var(--card-angle)) scale(1); transition: transform 250ms cubic-bezier(.22,.61,.36,1), box-shadow 250ms ease; }
.xs-structure-card--0 { --card-angle: -7deg; left: 10%; top: 5%; z-index: 1; }
.xs-structure-card--1 { --card-angle: 0deg; width: 31%; left: 35%; top: 0; z-index: 3; }
.xs-structure-card--2 { --card-angle: 7deg; left: 60%; top: 8%; z-index: 2; }
.xs-structure-card > img { display: block; width: 100%; height: auto; border-radius: inherit; }
.xs-structure-card:focus-visible { outline: 1px solid #6689b0; outline-offset: 4px; }
.xs-structure-card:is(:hover, :focus-visible) { z-index: 5; transform: translateY(-8px) rotate(var(--card-angle)) scale(1.04); box-shadow: 5px 16px 22px #26344b38; }
@media (max-width: 700px) {
  .xs-chapter--shop > .xs-print { width: min(150px, 62%); aspect-ratio: 496 / 1074; min-height: 0; }
  .xs-chapter--shop > .xs-print > img { position: static; }
  .xs-story > .xs-chapter--structure > .xs-structure-composite { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .xs-structure-card { transition: none; }
  .xs-structure-card:is(:hover, :focus-visible) { transform: rotate(var(--card-angle)); }
}

/* Phone fit: shared media plane and intrinsic inner dimensions. */
.xs-video-phone { display: block; aspect-ratio: auto; padding: 0; border-width: 3px; border-radius: 22px; line-height: 0; background: #fff; }
.xs-video-phone > video { display: block; width: 100%; height: auto; aspect-ratio: 496 / 1074; object-fit: contain; border-radius: 19px; transform: none; }
@media (max-width: 700px) {
  .xs-chapter--recording > .xs-video-phone { width: min(190px, 75%); align-self: center; }
}

/* Final supplied compositions already include their own perspective and shadows. */
.xs-final-hero { display: block; width: 100%; height: auto; }
.xs-final-outcome { --cutout-width: 86%; --cutout-x: 0px; --cutout-y: 0px; --cutout-angle: 0deg; --cutout-layer: 1; }
.xs-final-outcome > img { width: 100%; height: auto; }
@media (min-width: 701px) {
  .xs-hero > .xs-composition--final { min-height: 370px; }
}

/* Typography and color come from the existing .xs-case configuration. */
.cr-story { max-width: var(--xs-width); width: calc(100% - 2 * var(--xs-gutter)); margin: auto; padding-bottom: 100px; }
.cr-nav { flex-wrap: wrap; }
.cr-nav .gallery-language { white-space: nowrap; }
.cr-case a { color: #365a81; text-underline-offset: 4px; }
.cr-case a:focus-visible, .cr-case button:focus-visible { outline: 1px solid #6689b0; outline-offset: 5px; }
.cr-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); column-gap: 48px; align-items: start; padding: 100px 0 110px; min-height: 670px; box-sizing: border-box; }
.cr-case h1 { margin: 20px 0 16px; }
.cr-case .cr-tagline { font: italic 18px/1.6 var(--xs-heading-en); color: #365a81; }
.cr-case .cr-lead { margin-top: 28px; }
.cr-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.cr-links a { border-bottom: 1px solid #a8bfd9; padding: 4px 0; text-decoration: none; }
.cr-case .cr-tags { font-size: 12px; color: #53677b; margin-top: 24px; }
.cr-placeholder { margin: 0; min-width: 0; min-height: 220px; border: 1px solid #dce5ee; background: #f2f6fa; display: grid; place-items: center; color: #53677b; }
.cr-placeholder figcaption { padding: 25px; text-align: center; font-size: 12px; letter-spacing: .04em; }
.cr-placeholder small { display: block; font-size: 11px; margin-top: 8px; color: #7d91a6; }
.cr-browser { position: relative; aspect-ratio: 1.38; min-height: 0; margin-top: 52px; border-radius: 6px; box-shadow: 0 10px 22px -18px #3e5e7b66; }
.cr-browser::before { content: '•  •  •'; position: absolute; top: 0; left: 0; right: 0; height: 25px; padding: 0 12px; border-bottom: 1px solid #dce5ee; color: #b4c6d9; }
.cr-section { margin-top: 130px; padding-top: 32px; border-top: 1px solid #dce5ee; }
.cr-section--overview { margin-top: 0; }
.cr-section-heading { margin-bottom: 30px; }
.cr-section-heading small { font: italic 17px var(--xs-heading-en); }
.cr-case .cr-section-heading h2 { margin-top: 14px; }
.cr-case h3 { font: 500 16px/1.5 var(--xs-heading); color: #294d75; margin: 0 0 12px; }
.cr-case p { max-width: none; }
.cr-section--starting > p, .cr-section--pivot > p, .cr-section--skill > p, .cr-section--outcome > p { max-width: 580px; }
.cr-section--pivot { padding-left: 120px; }
.cr-forms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px; margin-top: 35px; }
.cr-forms > div + div { border-left: 1px solid #dce5ee; padding-left: 25px; }
.cr-case .cr-note { margin-top: 32px; color: #53677b; }
.cr-section--reading { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0 48px; align-items: start; }
.cr-section--reading .cr-section-heading { grid-column: 1 / -1; }
.cr-section--reading .cr-browser { margin-top: 12px; }
.cr-section--development { padding-top: 48px; }
.cr-section--development .cr-section-heading { margin-bottom: 54px; }
.cr-development-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 62px; align-items: start; margin-top: 60px; }
.cr-development-row .cr-placeholder { min-height: 280px; }
.cr-development-row:first-of-type { margin-top: 0; }
.cr-development-copy + .cr-development-copy { margin-top: 40px; }
.cr-part-number { display: block; font-size: 11px; color: #7d91a6; margin-bottom: 10px; }
.cr-section--skill { margin-top: 150px; }
.cr-skill-link { margin-top: 30px; color: #53677b; }
.cr-skill-link small { display: block; font-size: 11px; color: #7d91a6; }
.cr-footer { margin-top: 90px; padding-top: 30px; border-top: 1px solid #dce5ee; }
.cr-footer button { border: 0; background: transparent; padding: 6px 0; color: #294d75; font: inherit; cursor: pointer; }
@media (max-width: 700px) {
  .cr-hero { grid-template-columns: minmax(0,1fr); padding: 55px 0 65px; min-height: 0; }
  .cr-hero .cr-browser { margin-top: 42px; }
  .cr-section { margin-top: 85px; }
  .cr-section--overview { margin-top: 20px; }
  .cr-section--pivot { padding-left: 0; }
  .cr-forms, .cr-section--reading, .cr-development-row { display: block; }
  .cr-forms > div + div { border-left: 0; padding-left: 0; margin-top: 28px; }
  .cr-section--reading .cr-browser { margin-top: 35px; }
  .cr-development-row { margin-top: 48px; }
  .cr-development-row .cr-placeholder { min-height: 210px; margin-top: 30px; }
  .cr-section--development .cr-section-heading { margin-bottom: 32px; }
}

/* v0.2 content additions, inside the existing sections. */
.cr-installer-link { margin-top: 20px; }
.cr-installer-link small { display: block; margin-top: 6px; color: #7d91a6; font-size: 11px; }
.cr-development-addon { margin-top: 60px; max-width: 580px; }

/* Real product media: intrinsic ratios; links open original-resolution images. */
.cr-media { margin: 0; min-width: 0; }
.cr-media img, .cr-media video { display: block; width: 100%; height: auto; border-radius: 5px; }
.cr-media a { display: block; }
.cr-media.cr-browser { aspect-ratio: auto; padding-top: 26px; border: 1px solid #dce5ee; background: #f2f6fa; }
.cr-section--overview > .cr-media { max-width: 580px; margin-top: 35px; }
.cr-reading-media { min-width: 0; }
.cr-reading-media > .cr-media + .cr-media { width: 88%; margin: 30px 0 0 auto; }
.cr-development-row:has(> .cr-development-copy:only-child) { display: block; max-width: 580px; }
@media (max-width: 700px) {
  .cr-development-row > .cr-media { margin-top: 30px; }
  .cr-reading-media > .cr-media + .cr-media { width: 100%; }
}

/* Floating screenshots share a quiet edge and two levels of natural shadow. */
.cr-media {
  --cr-panel-radius: 14px;
  --cr-panel-shadow: 0 3px 7px -3px #294d751f, 0 18px 36px -18px #294d753b;
  box-sizing: border-box;
  border: 1px solid #d4dfe9;
  border-radius: var(--cr-panel-radius);
  background: #fff;
  box-shadow: var(--cr-panel-shadow), 0 2px 0 #e4ebf2;
}
.cr-media a { border-radius: inherit; }
.cr-media img, .cr-media video { border-radius: calc(var(--cr-panel-radius) - 1px); }
.cr-media.cr-browser { border-color: #d4dfe9; border-radius: var(--cr-panel-radius); box-shadow: var(--cr-panel-shadow), 0 2px 0 #e4ebf2; }
.cr-media.cr-browser::before { box-sizing: border-box; border-radius: 13px 13px 0 0; }
.cr-media.cr-browser img { border-top-left-radius: 0; border-top-right-radius: 0; }
.cr-hero > .cr-media { --cr-panel-shadow: 0 4px 10px -4px #294d752b, 0 24px 44px -20px #294d7547; }
.cr-reading-media > .cr-media + .cr-media { position: relative; z-index: 1; --cr-panel-shadow: 0 3px 8px -3px #294d7526, 0 20px 34px -18px #294d7542; }
/* Video and long reading panels remain still, including while controls are used. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cr-hero > .cr-media, .cr-section--overview > .cr-media,
  .cr-reading-media > .cr-media + .cr-media {
    transition: transform 250ms ease, box-shadow 250ms ease;
  }
  .cr-hero > .cr-media:hover, .cr-section--overview > .cr-media:hover,
  .cr-reading-media > .cr-media + .cr-media:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 5px 12px -4px #294d752b, 0 28px 44px -20px #294d7552, 0 2px 0 #e4ebf2;
  }
}
@media (max-width: 700px) { .cr-media { --cr-panel-radius: 12px; } }

.skills-page { min-height: 100svh; background: #f7fafd; color: #304b67; font: inherit; }
.skills-page button { font: inherit; color: inherit; cursor: pointer; }
.skills-nav button, .skills-detail-shell button { background: transparent; border: 0; }
.skills-page button:focus-visible { outline: 2px solid #7296bd; outline-offset: 7px; }
.skills-hero { max-width: 1040px; width: calc(100% - 64px); margin: auto; padding: clamp(55px, 9vh, 100px) 0 110px; }
.skills-heading { text-align: center; margin-bottom: 68px; }
.skills-heading h1 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.25; margin: 0 0 20px; }
.skills-heading p { font-size: 15px; line-height: 1.8; color: #61758a; margin: 7px 0; }
.skills-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 58px; perspective: 1400px; padding: 12px 12px 24px; }
.skills-panel { --panel-accent: #628fb4; --panel-edge: #c0d6e8; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 30px 34px; text-align: left; border: 1px solid var(--panel-edge); border-radius: 19px; background: linear-gradient(145deg, #ffffffd9, #e3eff7a3); box-shadow: inset 0 1px 0 #fff, 1px 3px 0 #c5d7e578, 0 7px 12px -8px #3a587a38, 0 30px 45px -25px #3a587a4d; transform: rotateX(5deg) rotateY(9deg) rotateZ(-2deg); transition: transform 300ms ease, box-shadow 300ms ease; }
.skills-panel--visual { --panel-accent: #8d86ad; --panel-edge: #d3cde5; background: linear-gradient(145deg, #ffffffe0, #eeebf7b3 65%, #e8f1f7b3); transform: translateY(18px) rotateX(5deg) rotateY(-9deg) rotateZ(2deg); }
.skills-panel-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: #718297; }
.skills-panel-meta > span { font-size: 19px; }
.skills-art { display: block; position: relative; height: 178px; margin: 24px 0 20px; color: var(--panel-accent); }
/* Central illustrations only; panel geometry, surfaces and motion are unchanged. */
.skills-close-note { position: absolute; width: min(100%, 320px); height: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.skills-muse-study { position: absolute; width: 258px; max-width: 100%; height: 140px; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; }
.skills-muse-image { position: relative; flex: 0 0 130px; }
.skills-muse-image img { display: block; width: 130px; height: auto; border: 1px solid #d6d4df; border-radius: 5px; box-shadow: 0 5px 12px -9px #42506f55; -webkit-user-drag: none; }
.skills-muse-image > span { display: block; margin-top: 5px; font-size: 8px; color: #718297; white-space: nowrap; }
.skills-muse-connect { width: 78px; height: 100px; flex: 0 0 78px; margin-top: -16px; }
.skills-muse-colors { display: flex; flex-direction: column; gap: 7px; margin-top: -16px; }
.skills-muse-colors i { display: block; width: 17px; height: 17px; border: 1px solid #a5b5c340; border-radius: 50%; background: var(--swatch); }
.skills-panel-copy { display: flex; flex-direction: column; }
.skills-panel-copy strong { font-size: 27px; font-weight: 500; line-height: 1.3; margin-bottom: 15px; }
.skills-category { font-size: 13px; line-height: 1.6; color: #61758a; }
.skills-category-zh { font-size: 12px; line-height: 1.8; color: #718297; margin-top: 3px; }
.skills-description { font-size: 14px; line-height: 1.85; margin-top: 18px; max-width: 340px; }
.skills-detail-shell { max-width: 900px; margin: 90px auto; padding: 0 28px; }
.skills-detail-shell h1 { font-size: 36px; font-weight: 500; }
.skills-detail-shell button { padding: 20px 0; }
@media (hover:hover) and (pointer:fine) { .skills-panel:hover { transform: translateY(-6px) rotateX(1deg) rotateY(2deg) rotateZ(-.5deg); box-shadow: inset 0 1px 0 #fff, 1px 3px 0 #c5d7e578, 0 8px 15px -8px #3a587a38, 0 38px 52px -25px #3a587a52; } .skills-panel--visual:hover { transform: translateY(12px) rotateX(1deg) rotateY(-2deg) rotateZ(.5deg); } }
@media (max-width:700px) { .skills-hero { width: calc(100% - 48px); padding-top: 48px; } .skills-heading { margin-bottom: 38px; } .skills-heading p { font-size: 13px; } .skills-panels { grid-template-columns: minmax(0,1fr); gap: 38px; padding: 8px 0 20px; } .skills-panel { padding: 24px; transform: rotateX(2deg) rotateZ(-1deg); } .skills-panel--visual { transform: rotateX(2deg) rotateZ(1deg); } .skills-art { height: 155px; } }
@media (prefers-reduced-motion:reduce) { .skills-panel { transition: none; } .skills-panel:hover { transform: rotateX(5deg) rotateY(9deg) rotateZ(-2deg); } .skills-panel--visual:hover { transform: translateY(18px) rotateX(5deg) rotateY(-9deg) rotateZ(2deg); } }
/* Reset homepage's globally positioned title inside this independent route. */
.skills-page h1 { position: static; width: auto; }
@media (prefers-reduced-motion:reduce) and (max-width:700px) {
  .skills-panel:hover { transform: rotateX(2deg) rotateZ(-1deg); }
  .skills-panel--visual:hover { transform: rotateX(2deg) rotateZ(1deg); }
}

/* MuseLab uses the existing case-study fonts, 900px measure and Skills navigation. */
.ml-case { min-height: 100svh; }
.ml-case button { font: inherit; border: 0; background: transparent; color: #365a81; cursor: pointer; }
.ml-case :is(a,button):focus-visible { outline: 1px solid #6689b0; outline-offset: 5px; }
.ml-case a { color: #365a81; text-underline-offset: 4px; }
.ml-story { max-width: var(--xs-width); width: calc(100% - 2 * var(--xs-gutter)); margin: auto; padding: 30px 0 90px; }
.ml-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 46px; align-items: start; padding: 50px 0 52px; }
.ml-case h1 { margin: 0 0 20px; font: 400 clamp(30px, 3vw, 36px)/1.25 var(--xs-heading); }
.ml-case .ml-lead { font: italic 17px/1.7 var(--xs-heading); color: #3f6285; margin: 0; }
.ml-lead strong { font-weight: 400; }
.ml-case .ml-tags { font-size: 11px; color: #6b8195; margin: 18px 0 24px; }
.ml-case .ml-hero-copy > p:not(.ml-lead):not(.ml-tags) { font-size: 13px; line-height: 1.95; margin-top: 16px; }
.ml-hero-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 34px; }
.ml-hero-images > .ml-figure:nth-child(2) { margin-top: 44px; }
.ml-figure { margin: 0; min-width: 0; }
.ml-figure > a { display: block; border: 1px solid #dce5ee; border-radius: 7px; box-shadow: 0 6px 15px -10px #294d7540; }
.ml-figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ml-figure figcaption { margin-top: 10px; font-size: 10px; line-height: 1.8; color: #6b8195; overflow-wrap: anywhere; }
.ml-source { display: block; width: fit-content; font-size: 10px; }
.ml-chapter { margin-top: 76px; border-top: 1px solid #dbe5ef; padding-top: 30px; }
.ml-chapter-heading { margin-bottom: 28px; }
.ml-number { display: block; font: italic 13px Georgia,serif; letter-spacing: .06em; color: #7d91a6; }
.ml-case .ml-chapter h2 { font: 500 28px/1.3 var(--xs-heading); color: #284f7a; margin: 9px 0 0; }
.ml-case .ml-subtitle { font: italic 16px/1.7 var(--xs-heading); color: #3f6285; margin-top: 10px; max-width: 42em; }
.ml-body > p { max-width: 39em; }
.ml-case .ml-body p { margin: 0 0 17px; line-height: 1.95; }
.ml-body h3 { font: 500 16px/1.7 var(--xs-heading); color: #294d75; margin: 0 0 14px; }
.ml-opportunity { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 54px; }
.ml-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.ml-flow section { border-top: 1px solid #c9d8e6; padding-top: 18px; }
.ml-flow p { font-size: 13px; }
.ml-figure--palette { max-width: 680px; margin: 32px 0; }
.ml-figure--palette > a { box-shadow: none; }
.ml-case .ml-flow-end { color: #536e87; }
.ml-experiment { margin-top: 35px; }
.ml-experiment--0 { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 50px; align-items: start; }
.ml-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; max-width: 620px; margin-top: 25px; }
.ml-experiment--1 > div:first-child, .ml-experiment--2 { max-width: 43em; }
.ml-github { margin-top: 32px; padding-top: 22px; border-top: 1px solid #dbe5ef; }
.ml-github a { display: inline-block; text-decoration: none; border-bottom: 1px solid #a8bfd9; padding-bottom: 4px; }
.ml-footer { margin-top: 55px; border-top: 1px solid #dbe5ef; padding-top: 25px; }
.ml-footer button { padding: 6px 0; font-size: 12px; }
@media (max-width:820px) {
  .ml-hero { grid-template-columns: minmax(0,1fr); gap: 28px; padding-top: 34px; }
  .ml-hero-images { max-width: 470px; margin-top: 0; }
  .ml-opportunity, .ml-flow { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ml-experiment--0 { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .ml-figure--jewelryQa { max-width: 330px; }
}
@media (max-width:700px) {
  .ml-story { padding-top: 12px; }
  .ml-hero { padding-bottom: 22px; }
  .ml-chapter { margin-top: 48px; padding-top: 23px; }
  .ml-case .ml-chapter h2 { font-size: 23px; }
  .ml-case .ml-subtitle { font-size: 15px; }
  .ml-case .ml-body p { font-size: 13.5px; }
  .ml-comparison { grid-template-columns: minmax(0,1fr); gap: 25px; max-width: 330px; }
  .ml-hero-images { gap: 12px; }
  .ml-hero-images > .ml-figure:nth-child(2) { margin-top: 30px; }
}

/* CloseRead Agent Skill detail page — editorial long-form on the existing .xs-case system.
   Reuses site type, paper/blue palette, nav and 900px reading measure. No new imagery or motion. */
.crs-case {
  --crs-line: #dbe5ef;
  --crs-heading: #284f7a;
  --crs-body: #455f78;
  --crs-muted: #6b8195;
  --crs-measure: 38em;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
}
.crs-case button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
.crs-case button:focus-visible,
.crs-case a:focus-visible { outline: 1px solid #6689b0; outline-offset: 5px; }
.crs-nav { background: var(--paper); }

.crs-story {
  max-width: var(--xs-width);
  width: calc(100% - 2 * var(--xs-gutter));
  margin: auto;
  padding: 26px 0 110px;
}

/* Hero: title and positioning on the left, approved introduction on the right. */
.crs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 28px 60px;
  align-items: start;
  padding: 58px 0 64px;
}
.crs-case .crs-kicker { margin: 0; font-size: 11px; letter-spacing: .12em; color: #71879d; }
.crs-hero h1 {
  margin: 16px 0 0;
  font: 400 clamp(34px, 4.4vw, 48px)/1.12 var(--xs-heading);
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--crs-heading);
}
.crs-lead {
  margin: 20px 0 0;
  max-width: 23em;
  font: italic 17px/1.6 var(--xs-heading);
  color: #3f6285;
}
.crs-case .crs-tags { margin: 24px 0 0; font-size: 11.5px; line-height: 1.9; letter-spacing: .02em; color: var(--crs-muted); }

.crs-case .crs-intro-label { margin: 4px 0 8px; font-size: 11px; letter-spacing: .1em; color: #71879d; }
.crs-case .crs-intro { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--crs-body); }
.crs-case .crs-principle-lead { margin: 22px 0 0; font-size: 12px; color: var(--crs-muted); }
.crs-principle { margin: 12px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid #a8bfd9; }
.crs-principle p:first-child {
  margin: 0;
  max-width: 26em;
  font: italic 17px/1.55 Georgia, serif;
  color: #294d75;
}
.crs-principle .crs-principle-note { margin: 10px 0 0; font-size: 12px; line-height: 1.8; color: var(--crs-muted); }

/* Chapters: number, title, subtitle, then a reading measure that opens for tables and cards. */
.crs-chapter { margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--crs-line); }
.crs-chapter:first-of-type { margin-top: 18px; }
.crs-chapter-head { margin-bottom: 26px; }
.crs-num { display: block; margin-bottom: 9px; font: italic 13px Georgia, serif; letter-spacing: .06em; color: #7d91a6; }
.crs-chapter h2 { margin: 0; font: 500 28px/1.25 var(--xs-heading); color: var(--crs-heading); }
.crs-case .crs-sub { margin: 9px 0 0; max-width: 32em; font: italic 16px/1.6 var(--xs-heading); color: #3f6285; }
.crs-chapter-body > p { max-width: var(--crs-measure); margin: 0 0 15px; font-size: 14px; line-height: 1.95; color: var(--crs-body); }
.crs-chapter-body > p:last-child { margin-bottom: 0; }

/* 02 — three task paths, then the Understand → Select → Explain decision flow. */
.crs-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 32px; }
.crs-path { padding-top: 15px; border-top: 1px solid #c9d8e6; }
.crs-path h3 { margin: 0 0 8px; font: 500 15px/1.5 var(--xs-heading); color: #294d75; }
.crs-path p { max-width: none; margin: 0; font-size: 13px; line-height: 1.85; color: #4a6480; }

.crs-flow-block {
  margin-top: 38px;
  padding: 24px 26px 22px;
  background: #f1f7fc;
  border: 1px solid #dbe7f1;
  border-radius: 14px;
}
.crs-case .crs-flow-lead { margin: 0 0 16px; font-size: 12px; letter-spacing: .03em; color: #5c7489; }
.crs-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
.crs-flow li {
  position: relative;
  padding: 8px 17px;
  border: 1px solid #c9dcec;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  color: #2c5578;
}
.crs-flow li + li::before {
  content: "→";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #8aa9c2;
  font-size: 14px;
}
.crs-case .crs-flow-note { margin: 16px 0 0; font: italic 12.5px/1.7 var(--xs-heading); color: var(--crs-muted); }

/* 03 — light CEFR table: row headers, no horizontal scrolling. */
.crs-table { margin-top: 24px; }
.crs-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.crs-table th,
.crs-table td { padding: 14px 20px 14px 0; border-bottom: 1px solid #e2ebf3; text-align: left; vertical-align: top; }
.crs-table th { width: 104px; font: 600 13px/1.7 var(--font-body); color: #2c5578; }
.crs-table td { font-size: 13.5px; line-height: 1.85; color: var(--crs-body); }
.crs-case .crs-note { max-width: 44em; margin: 22px 0 0; font-size: 12.5px; line-height: 1.85; color: #5c7489; }

/* 04 — three static example cards. */
.crs-case .crs-case .crs-topic { margin: 0 0 10px; font-weight: 600; color: #2c5578; }
.crs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.crs-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
  background: #fbfdff;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
}
.crs-card-num { font: italic 12px Georgia, serif; letter-spacing: .05em; color: #7d91a6; }
.crs-card h3 { margin: 10px 0 10px; font: 500 15px/1.5 var(--xs-heading); color: #294d75; }
.crs-card p { max-width: none; margin: 0; font-size: 13px; line-height: 1.85; color: #4a6480; }
.crs-case code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef5fb;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #2c5578;
}

/* 05 — rules as a text-first definition list. */
.crs-rules { margin-top: 8px; }
.crs-rule { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 28px; padding: 19px 0; border-top: 1px solid #e2ebf3; }
.crs-rule:first-child { border-top: 0; }
.crs-rule h3 { margin: 0; font: 500 15px/1.6 var(--xs-heading); color: #294d75; }
.crs-rule p { max-width: 40em; margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--crs-body); }

/* 06 — status, source entry, signature. */
.crs-source { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--crs-line); }
.crs-source a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid #a8bfd9;
  font: 500 15px/1.5 var(--xs-heading);
  color: #2c5578;
  text-decoration: none;
}
.crs-source a span { font-size: 12px; color: #71879d; }
.crs-case .crs-signature { margin: 24px 0 0; font: italic 13px/1.7 var(--xs-heading); color: var(--crs-muted); }

.crs-footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--crs-line); }
.crs-return { padding: 6px 0; font-size: 12.5px; color: #5c7489; }

@media (max-width: 820px) {
  .crs-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 42px 0 46px; }
  .crs-lead { font-size: 16px; }
  .crs-paths,
  .crs-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .crs-rule { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 15px 0; }
  .crs-rule h3 { margin-bottom: 2px; }
}

@media (max-width: 700px) {
  .crs-story { padding-bottom: 80px; }
  .crs-hero { padding: 34px 0 40px; }
  .crs-hero h1 { font-size: 30px; }
  .crs-tags { font-size: 11px; }
  .crs-chapter { margin-top: 48px; padding-top: 22px; }
  .crs-chapter:first-of-type { margin-top: 12px; }
  .crs-chapter-head { margin-bottom: 20px; }
  .crs-chapter h2 { font-size: 23px; }
  .crs-sub { font-size: 14.5px; }
  .crs-chapter-body > p { font-size: 13.5px; line-height: 1.9; }
  .crs-flow-block { margin-top: 30px; padding: 20px 18px; }
  .crs-flow { flex-direction: column; align-items: flex-start; gap: 20px; }
  .crs-flow li + li::before {
    content: "↓";
    left: 20px;
    top: -19px;
    transform: translateX(-50%);
    font-size: 12px;
  }
  .crs-flow-note { margin-top: 14px; }
  .crs-table th { width: 82px; padding-right: 12px; font-size: 12px; }
  .crs-table td { padding-right: 0; font-size: 13px; }
  .crs-card { padding: 18px 16px 20px; }
  .crs-case .crs-note { margin-top: 18px; }
  .crs-source { margin-top: 30px; }
  .crs-footer { margin-top: 42px; }
}

/* AI Game — small floating toys, a thin connector, then a split process + card deck.
   Scoped to .game-page; no other page changes. */
.game-page {
  --game-blue: #376c9e;
  --game-ink: #2b465f;
  --game-heading: #24486d;
  --game-muted: #5c7489;
  --game-line: #dae5ef;
  --game-heading-font: Georgia, "Times New Roman", serif;
  min-height: 100svh;
  background: var(--paper);
  color: var(--game-ink);
  font: 14px/1.85 var(--font-body);
}
.game-page:lang(zh) {
  font-family: var(--font-body-zh);
  --game-heading-font: var(--font-heading-zh);
}
.game-page :where(h1, h2, h3, p, figure) { margin: 0; }
.game-page h1 { position: static; width: auto; }
.game-page button { font: inherit; color: inherit; }

.game-nav { position: relative; z-index: 3; background: var(--paper); }
.game-nav button { background: transparent; border: 0; }

.game-flow { position: relative; }
.game-flow__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.game-line {
  fill: none;
  stroke: #a8bfd9;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: .75;
}
.game-hero,
.game-shots { position: relative; z-index: 1; }

/* Hero */
.game-hero {
  max-width: 1120px;
  margin: auto;
  padding: 64px 32px 0;
  text-align: center;
}
.game-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: #71879d;
}
.game-kicker i { display: block; width: 28px; height: 1px; background: #a8bfd9; }
.game-hero h1 {
  margin-top: 16px;
  font: 400 clamp(38px, 5.6vw, 64px)/1.05 var(--game-heading-font);
  letter-spacing: -.02em;
  color: var(--game-heading);
  text-wrap: balance;
}
.game-title-zh {
  margin-top: 11px;
  font: 400 14px/1.6 var(--game-heading-font);
  letter-spacing: .3em;
  color: #5f7891;
}
.game-tagline {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4c647b;
  text-align: center;
  text-wrap: balance;
}

.game-stage {
  position: relative;
  max-width: 980px;
  height: clamp(250px, 30vw, 330px);
  margin: 28px auto 0;
}
.game-toy {
  position: absolute;
  z-index: 1;
  margin: 0;
  transform-origin: 50% 70%;
}
.game-toy--green {
  left: 21%;
  top: 30px;
  width: min(20vw, 215px);
  --float-y: 10px;
  --float-r: .9deg;
  animation: gameFloatGreen 9.5s ease-in-out infinite;
}
.game-toy--handhelds {
  right: 21%;
  top: 0;
  width: min(24vw, 258px);
  --float-y: 9px;
  --float-r: .7deg;
  animation: gameFloatHands 12.5s ease-in-out infinite;
  animation-delay: -3.8s;
}
.game-toy img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(43, 70, 95, .13)) drop-shadow(0 4px 8px rgba(43, 70, 95, .06));
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), filter .45s ease;
  transform-origin: 50% 75%;
}
@keyframes gameFloatGreen {
  0%, 100% { transform: translateY(0) rotate(calc(var(--float-r) * -1)); }
  50% { transform: translateY(calc(var(--float-y) * -1)) rotate(calc(var(--float-r) * .4)); }
}
@keyframes gameFloatHands {
  0%, 100% { transform: translateY(calc(var(--float-y) * .45)) rotate(var(--float-r)); }
  50% { transform: translateY(calc(var(--float-y) * -.75)) rotate(calc(var(--float-r) * -.5)); }
}
@media (hover: hover) and (pointer: fine) {
  .game-toy img:hover {
    transform: translateY(-8px) scale(1.03);
    filter: drop-shadow(0 22px 26px rgba(43, 70, 95, .16)) drop-shadow(0 6px 10px rgba(43, 70, 95, .08));
  }
}

/* Tiny water-toy decorations: inline SVG fish, CSS rings and bubbles. */
.game-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.game-deco > * {
  position: absolute;
  display: block;
  animation: gameDecoFloat var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.game-deco__fish {
  left: 12.5%;
  top: 46%;
  width: 40px;
  height: 30px;
  opacity: .9;
  transform: rotate(-2deg);
  --dy: 4px;
  --dur: 7s;
  --delay: -1s;
}
.game-deco__fish svg { display: block; width: 100%; height: auto; }
.game-deco__ring {
  border-radius: 50%;
  box-sizing: border-box;
}
.game-deco__ring--yellow {
  left: 13%;
  top: 10%;
  width: 26px;
  height: 20px;
  border: 3px solid rgba(232, 190, 91, .5);
  transform: rotate(-18deg);
  --dy: 3px;
  --dur: 8s;
  --delay: -2.5s;
}
.game-deco__ring--pink {
  right: 12%;
  top: 56%;
  width: 24px;
  height: 18px;
  border: 3px solid rgba(224, 135, 169, .45);
  transform: rotate(14deg);
  --dy: 4px;
  --dur: 6.5s;
  --delay: -4s;
}
.game-deco__bubble {
  border: 1px solid rgba(120, 170, 205, .55);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .92), rgba(190, 220, 238, .16) 60%, rgba(190, 220, 238, .03));
  opacity: .8;
}
.game-deco__bubble--a { left: 3%; top: 30%; width: 10px; height: 10px; --dy: 4px; --dur: 6s; --delay: -1.5s; }
.game-deco__bubble--b { left: 27%; top: 4%; width: 6px; height: 6px; --dy: 3px; --dur: 5s; --delay: -2s; }
.game-deco__bubble--c { right: 2%; top: 35%; width: 14px; height: 14px; --dy: 5px; --dur: 7s; --delay: -3.5s; }
.game-deco__bubble--d { right: 6%; top: 78%; width: 8px; height: 8px; --dy: 3px; --dur: 6.5s; --delay: -.8s; }
.game-deco__bubble--e { left: 11%; top: 80%; width: 16px; height: 16px; --dy: 4px; --dur: 7.5s; --delay: -5s; }

@keyframes gameDecoFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 calc(var(--dy, 4px) * -1); }
}

/* Section heading: the connector ends on its top edge. */
.game-shots {
  max-width: 1120px;
  margin: 54px auto 0;
  padding: 0 32px 100px;
}
.game-section-head {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 52px;
  padding: 2px 0;
  background: var(--paper);
  text-align: center;
}
.game-section-head h2 {
  font: 400 clamp(28px, 3.2vw, 40px)/1.15 var(--game-heading-font);
  color: var(--game-heading);
  text-wrap: balance;
}
.game-section-sub {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--game-muted);
  text-align: center;
}

/* Split layout */
.game-split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 1056px;
  margin: 0 auto;
}

/* Left: vertical process */
.game-process { max-width: 400px; min-width: 0; }
.game-process__label {
  margin: 0 0 24px 30px;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: #7d91a6;
}
.game-process__steps {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  border-left: 1px solid #d6e3ee;
  list-style: none;
}
.game-process__steps li {
  position: relative;
  padding-bottom: 26px;
}
.game-process__steps li:last-child { padding-bottom: 0; }
.game-process__steps li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  width: 5px;
  height: 5px;
  border: 1px solid #a8bfd9;
  border-radius: 50%;
  background: var(--paper);
}
.game-step__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.game-step__num {
  flex: 0 0 auto;
  font: italic 11px/1.4 Georgia, serif;
  color: #7d91a6;
}
.game-step__head h3 {
  font: 500 17px/1.45 var(--game-heading-font);
  color: #294d75;
}
.game-process__steps small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: #7d91a6;
}
.game-process__steps p {
  max-width: 330px;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #4c647b;
}

/* Right: three switchable cards */
.game-deck {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 520px;
  margin: 0 auto;
  isolation: isolate;
}
.game-card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --s: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  border: 1px solid #d9e4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 34px -28px rgba(43, 70, 95, .4), 0 2px 4px rgba(43, 70, 95, .04);
  cursor: pointer;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform .55s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
  text-align: left;
  z-index: 1;
}
.game-card--play { width: 210px; }
.game-card--dev { width: 310px; }
.game-card--icon { width: 200px; }
.game-card__media {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: #f7fafd;
}
.game-card__media img { display: block; width: 100%; height: auto; }
.game-card__caption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 4px 12px;
}
.game-card__caption strong { font: 500 12.5px/1.45 var(--game-heading-font); color: #294d75; }
.game-card__caption small { font-size: 10px; line-height: 1.5; letter-spacing: .03em; color: #7d91a6; }

.game-card[aria-pressed="true"] {
  z-index: 3;
  box-shadow: 0 26px 46px -30px rgba(43, 70, 95, .48), 0 3px 7px rgba(43, 70, 95, .05);
}
.game-deck[data-active="play"] .game-card--dev { --x: -175px; --y: 24px; --r: -3.5deg; --s: .9; z-index: 2; }
.game-deck[data-active="play"] .game-card--icon { --x: 190px; --y: 30px; --r: 3.5deg; --s: .88; z-index: 1; }
.game-deck[data-active="dev"] .game-card--play { --x: -160px; --y: 8px; --r: -3deg; --s: .9; z-index: 2; }
.game-deck[data-active="dev"] .game-card--icon { --x: 170px; --y: 16px; --r: 3deg; --s: .88; z-index: 1; }
.game-deck[data-active="icon"] .game-card--play { --x: -160px; --y: 6px; --r: -3deg; --s: .9; z-index: 2; }
.game-deck[data-active="icon"] .game-card--dev { --x: 160px; --y: 14px; --r: 3deg; --s: .86; z-index: 1; }

@media (hover: hover) and (pointer: fine) {
  .game-card:hover {
    box-shadow: 0 24px 42px -28px rgba(43, 70, 95, .48), 0 3px 7px rgba(43, 70, 95, .05);
  }
}
.game-page a:focus-visible,
.game-page button:focus-visible {
  outline: 1px solid #6689b0;
  outline-offset: 5px;
}

/* Buttons */
.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 54px;
}
.game-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid #c9dcec;
  border-radius: 999px;
  background: #fff;
  color: #2c5578;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px -16px rgba(43, 70, 95, .35);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.game-action--primary {
  border-color: var(--game-blue);
  background: var(--game-blue);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(55, 108, 158, .75);
}
.game-action:hover { transform: translateY(-2px); }

@media (max-width: 1100px) {
  .game-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 720px;
  }
  .game-process { width: 100%; max-width: 520px; margin: 0 auto; }
  .game-deck { margin: 0 auto; }
}

@media (max-width: 700px) {
  .game-hero { padding: 40px 24px 0; }
  .game-hero h1 { font-size: 38px; }
  .game-tagline { font-size: 14px; }
  .game-stage { height: clamp(220px, 56vw, 380px); margin-top: 18px; }
  .game-toy--green {
    left: 2%;
    top: 20px;
    width: min(38vw, 270px);
    --float-y: 6px;
    --float-r: .6deg;
    animation-duration: 13s;
  }
  .game-toy--handhelds {
    right: 1%;
    top: 0;
    width: min(46vw, 320px);
    --float-y: 5px;
    --float-r: .5deg;
    animation-duration: 16s;
  }
  .game-deco__fish,
  .game-deco__ring,
  .game-deco__bubble--a,
  .game-deco__bubble--c,
  .game-deco__bubble--d,
  .game-deco__bubble--e { display: none; }
  .game-deco__bubble--b { left: 27%; top: 3%; width: 7px; height: 7px; }
  .game-shots { margin-top: 42px; padding: 0 24px 80px; }
  .game-section-head { margin-bottom: 38px; }
  .game-split { gap: 36px; }
  .game-process { max-width: 460px; }
  .game-deck { max-width: 440px; height: 400px; }
  .game-card { padding: 8px 8px 0; border-radius: 12px; }
  .game-card--play { width: 150px; }
  .game-card--dev { width: 210px; }
  .game-card--icon { width: 150px; }
  .game-card__caption { padding: 8px 3px 9px; }
  .game-card__caption strong { font-size: 11px; }
  .game-card__caption small { font-size: 9.5px; }
  .game-deck[data-active="play"] .game-card--dev { --x: -86px; --y: 12px; }
  .game-deck[data-active="play"] .game-card--icon { --x: 86px; --y: 16px; }
  .game-deck[data-active="dev"] .game-card--play { --x: -88px; --y: 4px; }
  .game-deck[data-active="dev"] .game-card--icon { --x: 90px; --y: 10px; }
  .game-deck[data-active="icon"] .game-card--play { --x: -88px; --y: 0; }
  .game-deck[data-active="icon"] .game-card--dev { --x: 86px; --y: 8px; }
  .game-deck[data-active="play"] .game-card--icon .game-card__caption,
  .game-deck[data-active="dev"] .game-card--icon .game-card__caption,
  .game-deck[data-active="icon"] .game-card--dev .game-card__caption {
    align-items: flex-end;
    text-align: right;
  }
  .game-actions { margin-top: 42px; }
}

@media (max-width: 380px) {
  .game-deck { max-width: 340px; height: 370px; }
  .game-card--play { width: 140px; }
  .game-card--dev { width: 190px; }
  .game-card--icon { width: 130px; }
  .game-deck[data-active="play"] .game-card--dev { --x: -70px; --y: 10px; }
  .game-deck[data-active="play"] .game-card--icon { --x: 70px; --y: 14px; }
  .game-deck[data-active="dev"] .game-card--play { --x: -70px; --y: 4px; }
  .game-deck[data-active="dev"] .game-card--icon { --x: 72px; --y: 8px; }
  .game-deck[data-active="icon"] .game-card--play { --x: -70px; --y: 0; }
  .game-deck[data-active="icon"] .game-card--dev { --x: 70px; --y: 6px; }
}

@media (max-width: 520px) {
  .game-actions { flex-direction: column; align-items: stretch; }
  .game-action { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .game-toy { animation: none; }
  .game-deco > * { animation: none; }
  .game-toy img,
  .game-card,
  .game-action { transition: none; }
  .game-toy img:hover,
  .game-action:hover { transform: none; }
}

.visual-page { min-height: 100svh; background: #f7f8fa; color: #304b67; font: inherit; }
.visual-page button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; }
.visual-page button:focus-visible { outline: 1px solid #6689b0; outline-offset: 5px; }
.visual-gallery { width: calc(100% - 96px); max-width: 1120px; margin: auto; padding: 58px 0 62px; }
.visual-heading { text-align: center; margin-bottom: 38px; }
.visual-heading h1 { position: static; width: auto; margin: 0 0 18px; font-size: clamp(28px,3vw,40px); font-weight: 400; line-height: 1.3; color: #365a81; }
.visual-heading p { font-size: 14px; line-height: 1.8; color: #61758a; margin: 6px 0; }
.visual-wall { margin: 0; }
.visual-wall-stage { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.visual-wall-stage img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.visual-ripple { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.visual-wall-stage.is-rippling .visual-ripple { display: block; }
.visual-wall-stage.is-rippling img { opacity: 0; }
.visual-wall figcaption { margin-top: 18px; text-align: center; font-size: 11px; color: #718297; }
@media (max-width:700px) {
  .visual-gallery { width: calc(100% - 32px); padding: 38px 0 42px; }
  .visual-heading { margin-bottom: 26px; }
  .visual-heading p { font-size: 12px; }
}
@media (prefers-reduced-motion:reduce), (hover:none), (pointer:coarse), (max-width:700px) {
  .visual-wall-stage.is-rippling img { opacity: 1; }
  .visual-wall-stage.is-rippling .visual-ripple { display: none; }
}

/* Scoped to Operations; existing portfolio surfaces and type remain unchanged. */
.ops-page { min-height: 100svh; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.8; --ops-heading: Georgia,serif; }
.ops-page a { color: #526b80; text-decoration: none; }
.ops-page button { color: inherit; font: inherit; background: transparent; border: 0; cursor: pointer; }
.ops-page :is(a,button):focus-visible { outline: 1px solid #7198ba; outline-offset: 5px; }
.ops-nav { font-size: 12px; }
.ops-nav nav { gap: 22px; }
.ops-story { max-width: 1040px; width: calc(100% - 96px); margin: auto; }
.ops-hero { padding: 64px 0 72px; max-width: 820px; min-height: 0; }
.ops-page .ops-eyebrow { font-size: 10px; letter-spacing: .16em; color: #82919e; margin: 0 0 20px; }
.ops-page:lang(zh) { --ops-heading: var(--font-heading-zh); }
.ops-page h1 { position:static; width:auto; margin:24px 0 22px; color:var(--blue); font:400 36px/1.2 var(--ops-heading); letter-spacing:-.02em; }
.ops-subtitle { font-size: 18px; margin: 0 0 22px; color: #667888; }
.ops-intro { font-size:13px; color:var(--muted); max-width:700px; }
.ops-intro p { margin:14px 0 0; line-height:1.9; }
.ops-section { border-top: 1px solid #e3e8ec; padding-top: 20px; scroll-margin-top: 28px; }
.ops-section-head { display: flex; gap: 24px; align-items: baseline; }
.ops-section-head > span { font-size: 11px; color: #82919e; }
.ops-section-head h3 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
.ops-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,300px); gap:44px; align-items:center; padding:28px 0 42px; max-width:760px; margin-inline:auto; }
.ops-row + .ops-row { border-top: 1px solid #edf0f3; }
.ops-primary { font-size:clamp(54px,6vw,76px); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; margin: 0 0 18px; color: #30353a; font-variant-numeric: tabular-nums; }
.ops-metrics h3 { font-size: 17px; font-weight: 400; color: #647787; margin: 0; }
.ops-support { display: flex; flex-wrap: wrap; gap: 28px 40px; margin:24px 0 0; }
.ops-support > div { display: flex; flex-direction: column-reverse; }
.ops-support dt { font-size: 12px; line-height: 1.7; color: #7a8792; }
.ops-support dd { font-size: 25px; line-height: 1.4; margin: 0 0 6px; letter-spacing: -.02em; }
.ops-support .ops-ctr dd { font-size: 36px; color: #537d9c; }
.ops-note { max-width: 35em; font-size: 11px; line-height: 1.95; color: #85909a; margin-top:22px; }
.ops-evidence { margin: 0; min-width: 0; width: 100%; }
.ops-evidence img { display: block; width: 100%; height: auto; border:1px solid #d4dfe9; border-radius:12px; box-sizing: border-box; box-shadow:0 3px 8px -3px #294d7520,0 18px 30px -20px #294d7540,0 1px 0 #e4ebf2; transform:rotate(-1.2deg); }
.ops-row:nth-of-type(odd) .ops-evidence img { transform:rotate(1.2deg); }
.ops-evidence img + img { margin-top: 16px; }
.ops-evidence figcaption { margin-top: 14px; font-size: 10px; line-height: 1.85; color: #88949f; }
.ops-evidence figcaption span { display: block; color: #647787; margin-bottom: 5px; }
.ops-workflow { max-width:760px; margin:70px 0 0 auto; padding:0 0 30px; scroll-margin-top:28px; }
.ops-workflow ol { list-style:none; padding:0; margin:28px 0 0; max-width:650px; }
.ops-workflow .ops-method { position:relative; margin:26px 0 0; }
.ops-method header { display:flex; gap:12px; align-items:baseline; margin-bottom:9px; }
.ops-method-number { font:italic 14px Georgia,serif; color:#365a81; flex:0 0 auto; }
.ops-workflow h3 { font:500 17px/1.45 var(--ops-heading); margin:0; }
.ops-workflow li p { color:var(--muted); font-size:13px; line-height:1.9; margin:0; }
.ops-method-node { position:absolute; left:-25px; top:7px; width:5px; height:5px; border:1px solid #a8bfd9; border-radius:50%; background:var(--paper); }
.ops-footer { padding:24px 0 45px; color: #929ba4; font-size: 10px; }
.ops-footer p { max-width: 70em; margin-bottom: 25px; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .ops-evidence img { transition:transform 250ms ease,box-shadow 250ms ease; }
  .ops-row:nth-of-type(n) .ops-evidence img:hover, .ops-additional-evidence img:hover { transform:translateY(-4px) rotate(0); box-shadow:0 5px 12px -4px #294d752b,0 24px 36px -20px #294d7552,0 1px 0 #e4ebf2; }
}
@media (max-width:700px) {
  .ops-story { width: calc(100% - 48px); }
  .ops-nav { flex-wrap: wrap; }
  .ops-nav nav { order: 3; width: 100%; justify-content: space-between; gap: 7px; font-size: 10px; }
  .ops-hero { padding:40px 0 48px; }
  .ops-subtitle { font-size: 14px; }
  .ops-section-head { gap: 15px; }
  .ops-section-head h3 { font-size: 20px; }
  .ops-row { grid-template-columns: minmax(0,1fr); gap:24px; padding:24px 0 38px; }
  .ops-primary { font-size: 65px; }
  .ops-support { margin-top: 26px; }
  .ops-note { margin-top: 22px; }
  .ops-evidence { max-width:300px; justify-self:center; }
  .ops-workflow { margin:55px 0 0; padding-bottom:20px; }
  .ops-workflow li:nth-child(n) { margin-left:0; }
}

/* Chapter typography and thin, content-measured links reuse XuanShi's visual language. */
.ops-chapter { position:relative; }
.ops-chapter-heading { position:relative; display:flex; gap:12px; align-items:baseline; margin-bottom:30px; }
.ops-chapter-heading h2 { margin:0; color:var(--ink); font:italic 500 19px/1.45 Georgia,serif; }
.ops-chapter-number { color:#365a81; font:italic 17px/1.45 Georgia,serif; white-space:nowrap; }
.ops-chapter-node { position:absolute; width:6px; height:6px; box-sizing:border-box; border:1px solid #a8bfd9; background:var(--paper); border-radius:50%; left:-25px; top:9px; z-index:1; }
.ops-thread-segment { position:absolute; top:0; overflow:visible; pointer-events:none; }
.ops-thread-segment path { fill:none; stroke:#a8bfd9; stroke-width:1; }
.ops-results > .ops-chapter-heading { margin-left:40px; margin-bottom:22px; }
.ops-section { border-top:0; }
.ops-section + .ops-section { border-top:1px solid var(--line); }
.ops-analytics { max-width:760px; margin:60px 0 40px 80px; }
.ops-analytics > p { max-width:44em; color:var(--muted); font-size:13px; line-height:1.95; }
.ops-module-pending { display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:7px; color:var(--muted); }
.ops-module-pending small { font-size:10px; }
.ops-nav nav { align-items:baseline; }
.ops-nav nav a { padding:6px 0; }
@media(max-width:700px) {
 .ops-story { width:calc(100% - 56px); }
 .ops-hero { min-height:0; }
 .ops-page h1 { font-size:32px; }
 .ops-nav nav { justify-content:flex-start; gap:14px; font-size:11px; margin-top:12px; }
 .ops-module-pending { gap:5px; }
 .ops-chapter-heading { gap:9px; }
 .ops-chapter-heading h2 { font-size:17px; }
 .ops-chapter-number { font-size:16px; }
 .ops-chapter-node { left:-16px; }
 .ops-results > .ops-chapter-heading { margin-left:0; margin-bottom:22px; }
 .ops-analytics { margin:48px 0 30px; }
}

.ops-results-scope { max-width:760px; margin:0 auto 28px; font-size:12px; line-height:1.9; color:var(--muted); }
.ops-section { max-width:900px; margin-inline:auto; }
.ops-section-head { max-width:760px; margin-inline:auto; }
.ops-additional-grid { display:grid; grid-template-columns:repeat(2,minmax(0,260px)); gap:38px; align-items:start; margin-top:30px; }
.ops-additional-evidence:nth-child(2) { margin-top:22px; }
.ops-additional-evidence img { transform:rotate(1.2deg); }
@media(max-width:700px) {
 .ops-results-scope { margin-bottom:18px; }
 .ops-section-head { margin-top:8px; }
 .ops-row { gap:24px; }
 .ops-evidence img,.ops-row:nth-of-type(n) .ops-evidence img { transform:none; }
 .ops-method-node { left:-16px; }
 .ops-method header { gap:8px; }
 .ops-additional-grid { grid-template-columns:minmax(0,1fr); gap:30px; }
 .ops-additional-evidence:nth-child(2) { margin-top:0; }
 .ops-additional-evidence { max-width:300px; }
}
@media(prefers-reduced-motion:reduce) { .ops-evidence img { transition:none; } }

/* Approved copy; production notes stay out of the public page. */
.ops-intro strong { font-weight:500; color:var(--ink); }
.ops-section-title { font:400 22px/1.45 var(--ops-heading); margin:0 0 12px; }
.ops-section-subtitle { font-size:13px; color:var(--muted); margin:0 0 26px; }
.ops-workflow h3.ops-section-title { font-size:22px; margin-bottom:12px; }
.ops-workflow .ops-method p + p { margin-top:10px; }
.ops-additional-evidence h3 { font:500 17px/1.45 var(--ops-heading); margin:0 0 12px; }
.ops-additional-evidence p { font-size:12px; line-height:1.9; color:var(--muted); margin:0 0 20px; }
.ops-additional-evidence:nth-child(2) { margin-top:0; }
.ops-footer p { line-height:1.9; }

/* Information-bearing captions: readable independently of decorative labels. */
.ops-note, .ops-evidence figcaption, .ops-evidence figcaption span,
.ops-footer, .ops-additional-evidence p, .ops-support dt {
 font-size:12px; color:#526b80;
}

.ec-page { min-height:100svh; background:var(--paper); color:var(--ink); font:inherit; }
.ec-nav a { color:inherit; text-decoration:none; }
.ec-nav button { color:inherit; font:inherit; border:0; background:none; cursor:pointer; }
.ec-nav :is(a,button):focus-visible { outline:1px solid var(--blue); outline-offset:5px; }
.ec-story { width:calc(100% - 64px); max-width:1040px; margin:auto; padding:60px 0 80px; }
.ec-intro { max-width:760px; margin:0 auto 52px; }
.ec-eyebrow { text-align:center; font-size:10px; letter-spacing:.24em; color:var(--label); margin:0 0 24px; }
.ec-page h1 { position:static; width:auto; color:var(--blue); font:400 clamp(30px,3.2vw,40px)/1.25 Georgia,serif; text-align:center; letter-spacing:-.02em; margin:0 0 32px; }
.ec-page:lang(zh) h1 { font-family:var(--font-heading-zh); }
.ec-copy { max-width:680px; margin:auto; font-size:13px; line-height:1.95; color:var(--muted); }
.ec-copy p { margin:0 0 16px; }
.ec-copy strong { font-weight:500; color:var(--ink); }
.ec-gallery { display:grid; grid-template-columns:1.04fr 1fr; gap:22px; align-items:start; }
.ec-cloth { position:relative; margin:0; min-width:0; isolation:isolate; }
.ec-cloth--2 { margin-top:125px; }
.ec-cloth img { display:block; width:100%; height:auto; user-select:none; -webkit-user-drag:none; }
.ec-cloth canvas { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; }
.ec-cloth.is-deforming canvas { opacity:1; }
.ec-cloth.is-deforming img { opacity:0; }
@media(max-width:700px) {
 .ec-nav { flex-wrap:wrap; font-size:12px; }
 .ec-nav nav { order:3; width:100%; gap:18px; font-size:11px; }
 .ec-story { width:calc(100% - 40px); padding:40px 0 45px; }
 .ec-intro { margin-bottom:30px; }
 .ec-page h1 { font-size:30px; }
 .ec-copy { font-size:13px; line-height:1.9; }
 .ec-gallery { grid-template-columns:minmax(0,1fr); gap:26px; }
 .ec-cloth { max-width:480px; width:100%; margin-inline:auto; }
 .ec-cloth--2 { margin-top:0; }
 .ec-cloth canvas { display:none; }
 .ec-cloth.is-deforming img { opacity:1; }
}
@media(prefers-reduced-motion:reduce) { .ec-cloth canvas { display:none; } .ec-cloth.is-deforming img { opacity:1; } }

/* Lab uses the existing gallery navigation and editorial type tokens. */
.lab-page { min-height:100svh; background:var(--paper); color:var(--ink); font:inherit; }
.lab-page .gallery-nav a { text-decoration:none; }
.lab-page .gallery-nav button { border:0; background:none; color:inherit; font:inherit; cursor:pointer; }
.lab-page :is(a,button):focus-visible { outline:1px solid var(--blue); outline-offset:5px; }
.lab-exhibits { width:calc(100% - 96px); max-width:1040px; margin:48px auto 80px; }
.lab-project { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:48px; align-items:start; }
.lab-project-image { width:calc(70% + 10px); margin:0 auto; padding:4px; border:1px solid var(--line); background:var(--paper); }
.lab-project-image img { display:block; width:100%; height:auto; }
.lab-project-copy h1 { position:static; width:auto; margin:0 0 20px; color:var(--blue); font:400 36px/1.25 var(--font-heading-zh); letter-spacing:normal; }
.lab-project-status { margin:0 0 26px; color:var(--label); font-size:12px; line-height:1.9; }
.lab-project-quote { margin:0; font-size:14px; line-height:1.95; }
.lab-project-quote p { margin:0 0 20px; }
.lab-project-quote p:last-child { margin-bottom:0; }
@media(max-width:700px) {
 .lab-exhibits { width:calc(100% - 40px); max-width:460px; margin:28px auto 48px; }
 .lab-project { grid-template-columns:minmax(0,1fr); gap:32px; }
 .lab-project-copy h1 { font-size:30px; }
}

.about-page { min-height:100svh; background:var(--paper); color:var(--ink); font:inherit; }
.about-page [hidden] { display:none!important; }
.about-nav a { text-decoration:none; color:inherit; }
.about-nav > span { font-family:Georgia,serif; color:var(--label); }
.about-page button { font:inherit; color:inherit; border:0; background:none; cursor:pointer; }
.about-page :is(a,button):focus-visible { outline:1px solid var(--blue); outline-offset:8px; }
.about-gate { min-height:calc(100svh - 82px); box-sizing:border-box; padding:35px 24px 70px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.about-envelope { position:relative; display:block; padding:0; width:min(33vw,420px); max-width:100%; aspect-ratio:1199/1312; -webkit-tap-highlight-color:transparent; }
.about-image { display:block; width:100%; height:100%; object-fit:contain; transition:opacity 220ms ease; pointer-events:none; user-select:none; -webkit-user-drag:none; }
.about-image--mono { opacity:1; }
.about-image--color { position:absolute; inset:0; opacity:0; }
.about-hint { margin:20px 0 0; font-size:12px; line-height:1.8; letter-spacing:.06em; color:var(--label); }
@media(hover:hover) and (pointer:fine) {
 .about-envelope.is-ready:hover .about-image--mono { opacity:0; }
 .about-envelope.is-ready:hover .about-image--color { opacity:1; }
}
.about-envelope.is-ready:focus-visible .about-image--mono,.is-opening .about-image--mono { opacity:0; }
.about-envelope.is-ready:focus-visible .about-image--color,.is-opening .about-image--color { opacity:1; }
.about-gate.is-opening { animation:about-gate-out 280ms ease both; }
@keyframes about-gate-out { 0%,40% { opacity:1; transform:translateY(0); } 100% { opacity:0; transform:translateY(-8px); } }

/* Independent papers: original top/bottom edges, repeating middle grain. */
.about-letter { width:calc(100% - 80px); max-width:1100px; margin:55px auto 90px; display:grid; grid-template-columns:minmax(0,.38fr) minmax(0,.62fr); gap:26px; align-items:start; }
.about-paper { position:relative; isolation:isolate; transform:rotate(var(--paper-angle)); transition:transform 280ms ease; }
.about-paper-texture { position:absolute; inset:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; pointer-events:none; z-index:-1; filter:drop-shadow(0 8px 12px #2c476512); transition:filter 280ms ease; }
.about-paper-texture > img { width:100%; height:auto; display:block; }
.about-paper-texture > span { display:block; background-size:100% auto; background-repeat:repeat-y; }
.about-profile { --paper-angle:-1.2deg; padding:65px 44px 140px; margin-top:25px; }
.about-photos { position:relative; height:350px; margin-bottom:24px; }
.about-photos figure { position:absolute; margin:0; }
.about-portrait { width:64%; left:0; top:8px; transform:rotate(-4deg); box-shadow:0 4px 9px -4px #32465f66; }
.about-portrait > img { display:block; width:100%; height:auto; border:3px solid #f8f8f3; }
.about-photo-tape { position:absolute; top:-12px; left:50%; width:82px; height:25px; transform:translateX(-50%) rotate(-4deg); background:repeating-linear-gradient(90deg,#fff2 0 1px,transparent 1px 5px),#ede7d5b3; box-shadow:inset 0 1px 0 #fff5,0 1px 2px #46536517; clip-path:polygon(2% 0,98% 3%,100% 94%,3% 100%,0 80%,2% 55%,0 25%); }
.about-polaroid { width:49%; aspect-ratio:900/1280; right:-5px; top:140px; transform:rotate(7deg); filter:drop-shadow(1px 3px 3px #35465a33); }
.about-polaroid > img { display:block; position:absolute; width:134%; max-width:none; height:auto; left:-16%; top:-40%; clip-path:polygon(22.4% 24%,86.9% 24.2%,85.4% 83.4%,12% 81.4%); }
.about-paperclip { position:absolute; top:-10px; right:17px; width:13px; height:43px; border:1.4px solid #9ba7af; border-radius:9px; transform:rotate(15deg); box-shadow:inset 1px 0 1px #fff,1px 1px 2px #46576640; }
.about-paperclip::after { content:''; position:absolute; top:1px; left:3px; width:5px; height:29px; border:1px solid #b4bec5; border-top:0; border-radius:0 0 5px 5px; box-shadow:1px 0 0 #fff9; }
.about-profile h2 { margin:0 0 12px; color:var(--ink); font:400 30px/1.25 Georgia,serif; }
.about-profile-role { font-size:13px; line-height:1.75; color:var(--ink); margin:0 0 10px; }
.about-born { color:var(--muted); font-size:12px; margin:0 0 27px; }
.about-contacts { display:grid; gap:18px; margin:0; color:var(--ink); font-size:12px; }
.about-contacts dt { font-size:10px; letter-spacing:.05em; color:var(--muted); margin-bottom:5px; }
.about-contacts dd { display:flex; align-items:center; gap:9px; margin:0; min-width:0; }
.about-contacts a { text-decoration:none; overflow-wrap:anywhere; }
.about-contacts a:hover { text-decoration:underline; text-underline-offset:3px; }
.about-copy,.about-wechat { display:inline-flex; align-items:center; gap:8px; padding:2px!important; font-size:12px!important; }
.about-contacts svg { display:block; width:15px; height:15px; fill:none; stroke:var(--muted); stroke-width:1; }
.about-copy-status { font-size:11px; min-height:18px; color:var(--blue); margin:10px 0; }
.about-resume { font-size:11px; color:var(--muted); margin:0; }
.about-teddy-sticker { position:absolute; width:88px; height:auto; right:25px; bottom:18px; transform:rotate(7deg); mask-image:url('../public/assets/about/teddy-mask.png'); mask-size:100% 100%; mask-mode:luminance; -webkit-mask-image:url('../public/assets/about/teddy-mask.png'); -webkit-mask-size:100% 100%; filter:drop-shadow(0 2px 2px #38546a26); pointer-events:none; }
.about-letter-main { --paper-angle:1deg; padding:78px 74px 80px; }
.about-letter-main h1 { position:static; width:auto; margin:0 0 30px; font:400 26px/1.3 Georgia,serif; color:var(--ink); }
.about-letter-copy { font-size:14px; line-height:1.95; color:#3d4e60; }
.about-letter-copy p { margin:0 0 17px; }
.about-letter-copy .about-signature { margin-top:24px; font:italic 24px/1.4 Georgia,serif; color:var(--ink); }
.about-return { padding:8px 0; color:var(--label)!important; font-size:12px!important; }
@media(hover:hover) and (pointer:fine) {
 .about-paper:hover { transform:translateY(-5px) rotate(.1deg); }
 .about-paper:hover .about-paper-texture { filter:drop-shadow(0 12px 16px #2c47651a); }
}
.about-letter.is-revealed .about-paper { animation:about-paper-in 280ms ease-out backwards; }
.about-profile { --paper-start:8px; }
.about-letter-main { --paper-start:-8px; }
@keyframes about-paper-in { from { opacity:0; transform:translateX(var(--paper-start)) rotate(var(--paper-angle)); } to { opacity:1; transform:translateX(0) rotate(var(--paper-angle)); } }
@media(max-width:700px) {
 .about-nav { font-size:12px; }
 .about-gate { padding:28px 24px 60px; }
 .about-envelope { width:min(82vw,340px); }
 .about-letter { width:calc(100% - 24px); max-width:460px; margin:30px auto 55px; grid-template-columns:minmax(0,1fr); gap:25px; }
 .about-paper { --paper-angle:0deg; }
 .about-profile { margin-top:0; padding:58px 42px 130px; }
 .about-photos { height:335px; }
 .about-polaroid { top:140px; }
 .about-letter-main { padding:62px 37px 60px; }
 .about-letter-main h1 { font-size:24px; }
 .about-letter-copy { font-size:14px; line-height:1.95; }
 .about-teddy-sticker { right:28px; width:80px; bottom:20px; }
}
@media(prefers-reduced-motion:reduce) {
 .about-image,.about-paper,.about-paper-texture { transition:none; }
 .about-gate.is-opening,.about-letter.is-revealed .about-paper { animation:none; }
 .about-paper:hover { transform:rotate(var(--paper-angle)); }
}

/* Preserve both paper widths while closing the transparent margins between assets. */
@media(min-width:701px) {
 .about-letter { --paper-columns:min(1074px,calc(100vw - 106px)); width:calc(var(--paper-columns) - 54px); grid-template-columns:calc(var(--paper-columns) * .38) calc(var(--paper-columns) * .62); column-gap:0; }
 .about-letter-main { margin-left:-54px; margin-right:54px; }
}

/* Inherit the same Inter / system Chinese stack as Homepage and AI Skills. */
.growth-page { min-height:100svh; background:var(--paper); color:var(--ink); font:inherit; overflow:hidden; }
.growth-nav { position:relative; z-index:2; }
.growth-nav a { color:inherit; text-decoration:none; }
.growth-nav button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
.growth-hero { max-width:1040px; margin:auto; padding-top:clamp(52px,8vh,85px); }
.growth-heading { position:relative; z-index:1; text-align:center; padding:0 24px; }
.growth-heading > p { font-size:11px; letter-spacing:.24em; color:#718297; margin:0 0 27px; }
.growth-heading h1 { position:static; width:auto; font-family:Georgia,"Times New Roman",serif; font-size:clamp(28px,3.2vw,40px); font-weight:600; line-height:1.25; letter-spacing:-.6px; margin:0 0 20px; }
.growth-heading > div { font-size:15px; line-height:1.8; color:#61758a; }

/* Vertical still-life: the tape is a separate, non-interactive raster layer. */
:lang(zh) .growth-heading h1 { font-family:inherit; font-weight:400; letter-spacing:-.7px; }
.growth-stage { position:relative; width:min(100%,720px); height:800px; margin:30px auto 0; isolation:isolate; }
.growth-tape { position:absolute; z-index:0; left:15%; top:0; width:70%; height:auto; pointer-events:none; user-select:none; }
.growth-anchor { position:absolute; z-index:1; width:224.4px; --rest-angle:2deg; }
.growth-anchor--social { left:12%; top:144px; }
.growth-anchor--commerce { right:12%; top:446px; --rest-angle:-2deg; }
.growth-entry { position:relative; display:block; color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.growth-cassette { position:relative; display:block; transform:rotate(var(--rest-angle)); transform-origin:50% 70%; transition:transform 300ms cubic-bezier(.2,.7,.25,1); }
.growth-cassette img { display:block; width:100%; height:auto; user-select:none; -webkit-user-drag:none; filter:drop-shadow(0 3px 3px #59738d1a); }
.growth-shadow { position:absolute; z-index:-1; width:70%; height:12%; left:17%; top:73%; border-radius:50%; background:#607d9b4a; filter:blur(9px); transform:rotate(-10deg); transition:transform 300ms ease,opacity 300ms ease; }
.growth-caption { position:absolute; top:24%; left:calc(100% + 42px); width:max-content; max-width:260px; display:grid; grid-template-columns:max-content 40px; align-items:center; column-gap:12px; row-gap:8px; }
:lang(en) .growth-anchor--social .growth-caption { top:-2%; }
.growth-caption::before { content:''; position:absolute; width:34px; height:1px; background:var(--line); top:44px; right:calc(100% + 8px); }
.growth-number { grid-column:1/-1; font-size:11px; letter-spacing:.08em; color:var(--label); }
.growth-label { font-family:Georgia,"Times New Roman",serif; font-size:22px; font-weight:600; line-height:1.25; letter-spacing:-.6px; color:var(--ink); max-width:155px; }
:lang(zh) .growth-label { font-family:inherit; font-size:19px; font-weight:400; letter-spacing:.1px; color:var(--label); }
.growth-arrow { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--line); border-radius:50%; background:var(--paper); font-family:inherit; font-size:21px; font-weight:400; color:var(--label); box-shadow:inset 0 1px 0 #fff,0 2px 3px var(--depth); transition:transform 180ms ease,box-shadow 180ms ease; }
.growth-soon { grid-column:1/-1; justify-self:start; width:max-content; padding:3px 9px; border:1px solid var(--line); border-radius:20px; font-family:inherit; font-size:11px; line-height:1.5; color:var(--muted); }
.growth-anchor--commerce .growth-caption { top:32%; left:auto; right:calc(100% + 36px); width:max-content; }
.growth-anchor--commerce .growth-caption::before { right:auto; left:calc(100% + 8px); }
.growth-entry--pending .growth-arrow { opacity:.5; box-shadow:inset 0 1px 0 #fff; }
.growth-entry:focus-visible .growth-arrow { outline:2px solid var(--blue); outline-offset:4px; }
.growth-entry:not(.growth-entry--pending) .growth-arrow:hover { transform:translateY(1px); box-shadow:inset 0 1px 3px var(--depth); }
.growth-entry:focus-visible { outline:2px solid #7296bd; outline-offset:7px; border-radius:10px; }
@media(hover:hover) and (pointer:fine) { .growth-entry:not(.growth-entry--pending):hover .growth-cassette { transform:translateY(-8px) rotate(calc(var(--rest-angle) + 2deg)); } .growth-anchor:has(.growth-entry:not(.growth-entry--pending):hover) .growth-shadow { transform:translateY(6px) rotate(-10deg) scale(1.1); opacity:.55; } }
.growth-entry.is-bouncing .growth-cassette { animation:growth-bounce 560ms both; }
@keyframes growth-bounce { 0%{transform:translateY(0) rotate(var(--rest-angle))} 16%{transform:translateY(3px) rotate(var(--rest-angle))} 42%{transform:translateY(-16px) rotate(calc(var(--rest-angle) + 2deg))} 68%{transform:translateY(1px) rotate(calc(var(--rest-angle) - .5deg))} 85%{transform:translateY(-3px) rotate(var(--rest-angle))} 100%{transform:translateY(0) rotate(var(--rest-angle))} }
@media(max-width:700px) { .growth-hero { padding-top:50px; } .growth-heading >p { font-size:9px; letter-spacing:.19em; margin-bottom:23px; } .growth-heading >div { font-size:13px; max-width:290px; margin:auto; } .growth-stage { height:700px; width:100%; margin-top:22px; } .growth-anchor { width:min(58vw,224.4px); } .growth-anchor--social { left:8%; top:125px; } .growth-anchor--commerce { right:8%; top:395px; } .growth-tape { width:min(100%,390px); left:calc(50% - min(50%,195px)); height:auto; top:35px; } .growth-caption,.growth-anchor--commerce .growth-caption,:lang(en) .growth-anchor--social .growth-caption { position:relative; left:auto; right:auto; top:auto; width:max-content; max-width:100%; padding:12px 8px 0; row-gap:7px; grid-template-columns:minmax(0,1fr) 40px; } .growth-anchor--commerce .growth-caption { left:-25px; } .growth-caption::before { display:none; } .growth-label { font-size:20px; max-width:155px; } :lang(zh) .growth-label { font-size:19px; } }
@media(prefers-reduced-motion:reduce) { .growth-cassette,.growth-shadow,.growth-arrow { transition:none; } .growth-entry.is-bouncing .growth-cassette { animation:none; } .growth-entry:not(.growth-entry--pending):hover .growth-cassette { transform:rotate(var(--rest-angle)); } }

/* Fixed vector pen lettering; inherits the existing cassette transform only. */
.growth-cassette .growth-handwriting { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; filter:none; }

