:root {
  color-scheme: light;
  --blue: #2864d8;
  --blue-deep: #153b91;
  --ink: #10245a;
  --white: #ffffff;
  --paper: #f7f7f4;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--paper);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.showcase {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.map-stage,
.map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-stage {
  isolation: isolate;
  background: var(--paper);
}

.map-viewport {
  z-index: 0;
}

.map-world {
  --art-position: 50% 51%;
  --world-scale: 1.11;
  --world-x: -4%;
  --world-y: -2%;
  position: absolute;
  inset: -4%;
  transform: translate3d(var(--world-x), var(--world-y), 0) scale(var(--world-scale));
  transform-origin: 50% 50%;
  transition: transform 760ms var(--ease-out), opacity 620ms ease;
  will-change: transform;
}

.map-world[data-view="zhejiang"] {
  --world-scale: 1.31;
  --world-x: -15%;
  --world-y: -5%;
}

.showcase:not(.is-ready) .map-world {
  opacity: 0;
}

.map-artwork {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  transition: transform 1000ms var(--ease-out);
  transform-origin: 50% 50%;
}

.showcase.is-ready .map-artwork {
  transform: scale(1);
}

.map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--art-position);
  user-select: none;
}

.boundary-flow {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(219, 235, 255, 0.06);
  mask: url("assets/province-boundary-mask-4k.png") var(--art-position) / cover no-repeat;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: background-color 420ms ease, opacity 420ms ease;
  -webkit-mask: url("assets/province-boundary-mask-4k.png") var(--art-position) / cover no-repeat;
}

.boundary-light {
  --boundary-light-angle: 0deg;
  position: absolute;
  display: block;
  width: clamp(38px, 3.2vw, 58px);
  height: clamp(12px, 1.05vw, 18px);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--boundary-light-angle));
  transform-origin: 50% 50%;
  transition: opacity 220ms ease;
  will-change: left, top, opacity, transform;
}

.boundary-light::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 221, 248, 0.04) 28%,
    rgba(214, 231, 252, 0.26) 54%,
    rgba(248, 251, 255, 0.94) 72%,
    rgba(224, 238, 255, 0.28) 80%,
    transparent 100%
  );
  content: "";
  filter: blur(0.15px);
}

.boundary-light::after {
  position: absolute;
  top: 50%;
  right: 20%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 0 3px rgba(235, 245, 255, 0.42);
  content: "";
  transform: translate(50%, -50%);
}

.showcase[data-layout-style="boundary-flow"] .boundary-flow {
  opacity: 1;
}

.showcase[data-layout-style="boundary-flow"] .boundary-light.is-patrolling {
  opacity: 0.44;
}

.showcase[data-layout-style="boundary-flow"] .boundary-light.is-routing {
  opacity: 0.72;
}

.showcase[data-layout-style="boundary-flow"] .boundary-light.is-arrived {
  opacity: 0;
  transition-duration: 260ms;
}

.showcase[data-layout-style="boundary-flow"].is-routing .boundary-flow {
  background: rgba(219, 235, 255, 0.08);
}

.showcase[data-layout-style="boundary-flow"][data-focus="region"] .boundary-flow {
  background: rgba(219, 235, 255, 0.11);
  opacity: 1;
}

.province-interaction-layer {
  position: absolute;
  z-index: 3;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.province-target {
  fill: transparent;
  opacity: 0;
  stroke: transparent;
  cursor: pointer;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}

.brand:focus-visible,
.map-back:focus-visible,
.action-text:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(21, 59, 145, 0.62);
}

.province-target:focus-visible {
  outline: none;
}

.site-header {
  position: absolute;
  z-index: 6;
  top: max(24px, env(safe-area-inset-top));
  right: clamp(24px, 3.4vw, 54px);
  left: clamp(24px, 3.4vw, 54px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.brand {
  display: grid;
  gap: 3px;
  color: var(--blue-deep);
  text-decoration: none;
  pointer-events: auto;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.3vw, 39px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.brand-subtitle {
  font-size: clamp(10px, 0.8vw, 14px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 100, 216, 0.08);
  animation: live-breathe 2.5s ease-in-out infinite;
}

.metric-stack {
  position: absolute;
  z-index: 5;
  top: 49%;
  left: 50%;
  width: min(980px, 88vw);
  color: var(--white);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    top 580ms var(--ease-out),
    left 580ms var(--ease-out),
    width 580ms var(--ease-out),
    transform 580ms var(--ease-out);
}

.metric-content {
  width: 100%;
  transform-origin: left center;
  will-change: opacity, clip-path, transform;
}

.metric-content.is-scope-leaving {
  animation: metric-scope-leave 190ms ease-in both;
}

.metric-content.is-scope-entering {
  animation: metric-scope-enter 430ms var(--ease-out) both;
}

.metric-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(22px, 2.4vh, 30px);
  font-size: clamp(13px, 1.2vw, 19px);
  font-weight: 720;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(11, 48, 128, 0.42);
}

.metric-kicker-type {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.68em;
  font-weight: 680;
  letter-spacing: 0.12em;
  opacity: 0.76;
}

.metric-number {
  display: block;
  color: var(--white);
  font-family: "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(74px, 11.4vw, 190px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-shadow: 0 9px 18px rgba(9, 41, 111, 0.38), 0 2px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.metric-number-character {
  display: inline-block;
}

.metric-digit-roll {
  display: inline-grid;
  margin-block: -0.08em;
  padding-block: 0.08em;
  overflow: hidden;
  vertical-align: baseline;
}

.metric-digit-face {
  grid-area: 1 / 1;
  display: block;
  animation-delay: var(--digit-delay, 0ms);
}

.metric-digit-face--next {
  opacity: 0;
  transform: translateY(112%);
}

.metric-number.is-live-updating .metric-digit-face--previous {
  animation: metric-digit-rise-out 520ms var(--ease-out) both;
}

.metric-number.is-live-updating .metric-digit-face--next {
  animation: metric-digit-rise-in 520ms var(--ease-out) both;
}

.showcase[data-number-style="ceramic"] .metric-number {
  color: #f7f3e9;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(72px, 10.4vw, 178px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.84;
  -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.72);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.94),
    1px 2px 0 rgba(215, 226, 247, 0.94),
    2px 4px 0 rgba(58, 103, 190, 0.58),
    3px 7px 14px rgba(9, 41, 111, 0.3);
}

.showcase[data-number-style="architect"] .metric-number {
  color: #fbfcff;
  font-family: "DIN Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(86px, 12.5vw, 208px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.78;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.76),
    0 7px 16px rgba(9, 41, 111, 0.3);
}

.showcase[data-number-style="projection"] .metric-number {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 44%, rgba(215, 229, 255, 0.88) 100%);
  background-clip: text;
  color: transparent;
  font-family: "Avenir Next", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(72px, 10.7vw, 184px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.84;
  filter: drop-shadow(0 9px 13px rgba(9, 41, 111, 0.32));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.showcase.is-ready[data-number-style="ceramic"] .metric-number {
  animation: ceramic-number-rise 720ms 120ms var(--ease-out) backwards;
}

.showcase.is-ready[data-number-style="projection"] .metric-number {
  animation: projection-number-focus 680ms 100ms var(--ease-out) backwards;
}

.showcase:not(.is-ready) .metric-kicker,
.showcase:not(.is-ready) .metric-number,
.showcase:not(.is-ready) .metric-meta {
  color: var(--blue-deep);
  text-shadow: none;
}

.showcase:not(.is-ready) .metric-kicker-type {
  border-left-color: rgba(21, 59, 145, 0.28);
}

.metric-meta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(25px, 3vw, 42px);
  margin-top: clamp(30px, 3.8vh, 42px);
  text-shadow: 0 2px 12px rgba(11, 48, 128, 0.4);
}

.metric-meta-item {
  display: grid;
  gap: 6px;
  min-width: max-content;
  text-align: left;
}

.metric-meta-item + .metric-meta-item {
  padding-left: clamp(25px, 3vw, 42px);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.metric-meta-item small {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 680;
  letter-spacing: 0.12em;
  line-height: 1;
}

.metric-meta-item > strong,
.metric-meta-item > span strong {
  color: var(--white);
  font-family: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
}

.metric-meta-item em {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(9px, 0.72vw, 11px);
  font-style: normal;
  font-weight: 680;
  letter-spacing: 0.05em;
}

.showcase:not(.is-ready) .metric-meta-item + .metric-meta-item {
  border-left-color: rgba(21, 59, 145, 0.22);
}

.showcase:not(.is-ready) .metric-meta-item small,
.showcase:not(.is-ready) .metric-meta-item em,
.showcase:not(.is-ready) .metric-meta-item > strong,
.showcase:not(.is-ready) .metric-meta-item > span strong {
  color: var(--blue-deep);
}

.showcase[data-layout-style="boundary-flow"][data-focus="overview"] .metric-stack {
  top: 45%;
  left: 46%;
  width: min(820px, 72vw);
  max-width: none;
  text-align: left;
}

.showcase[data-layout-style="boundary-flow"][data-focus="overview"] .metric-kicker {
  text-align: left;
}

.showcase[data-layout-style="boundary-flow"][data-focus="overview"] .metric-meta {
  justify-content: flex-start;
}

.showcase[data-focus="region"] .metric-stack {
  top: clamp(146px, 18vh, 188px);
  left: clamp(34px, 4.2vw, 68px);
  width: min(640px, 50vw);
  text-align: left;
  transform: none;
}

.showcase[data-focus="region"] .metric-number {
  font-size: clamp(58px, 7vw, 116px);
  line-height: 0.86;
}

.showcase[data-focus="region"] .metric-kicker {
  margin-bottom: 15px;
}

.showcase[data-focus="region"] .metric-meta {
  gap: clamp(18px, 2vw, 28px);
  margin-top: 22px;
  justify-content: flex-start;
}

.showcase[data-focus="region"] .metric-meta-item + .metric-meta-item {
  padding-left: clamp(18px, 2vw, 28px);
}

.map-back {
  position: absolute;
  z-index: 8;
  top: max(92px, calc(env(safe-area-inset-top) + 66px));
  left: clamp(24px, 3.4vw, 54px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(40, 100, 216, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 10px 26px -18px rgba(21, 59, 145, 0.6);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.map-back[hidden] {
  display: none;
}

.project-card {
  position: absolute;
  z-index: 7;
  right: clamp(24px, 4.4vw, 70px);
  top: clamp(150px, 20vh, 196px);
  display: grid;
  gap: 20px;
  width: clamp(340px, 30vw, 430px);
  padding: 27px 28px 25px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 34px 78px -42px rgba(15, 45, 112, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateX(28px) scale(0.97);
  pointer-events: none;
  transition: opacity 260ms ease, transform 380ms var(--ease-out);
}

.project-card[aria-hidden="false"] {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 150ms;
}

.project-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-card-eyebrow,
.project-card-name,
.project-card-metric {
  margin: 0;
}

.project-card-eyebrow {
  color: rgba(16, 36, 90, 0.58);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.11em;
}

.project-card-name {
  margin-top: 6px;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.project-card-metric {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 5px;
}

.project-card-metric span {
  color: rgba(16, 36, 90, 0.56);
  font-size: 11px;
  font-weight: 650;
}

.project-card-metric strong {
  color: var(--blue);
  font-family: "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(24px, 2.15vw, 35px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
}

.project-store-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0 14px;
  border-top: 1px solid rgba(21, 59, 145, 0.11);
  border-bottom: 1px solid rgba(21, 59, 145, 0.11);
}

.project-store-summary span {
  margin-right: auto;
  color: rgba(16, 36, 90, 0.58);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.project-store-summary strong {
  color: var(--blue-deep);
  font-family: "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.project-store-summary small {
  color: rgba(16, 36, 90, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.store-list-heading {
  display: flex;
  justify-content: space-between;
  color: rgba(16, 36, 90, 0.44);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.1em;
}

.store-list {
  display: grid;
  gap: 0;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
}

.store-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(21, 59, 145, 0.08);
}

.store-list li:last-child {
  border-bottom: 0;
}

.store-list span {
  color: rgba(16, 36, 90, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.store-list strong {
  color: var(--blue-deep);
  font-family: "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.footer-actions {
  position: absolute;
  z-index: 9;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-out);
}

.footer-actions[hidden] {
  display: none;
}

.footer-actions.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.action-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 44px;
  padding: 0 3px 2px;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-family: "Songti SC", "Source Han Serif SC", "Source Han Serif CN", STSong, serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-decoration: none;
  text-indent: 0.22em;
  cursor: pointer;
  appearance: none;
  transition: color 180ms ease, transform 200ms var(--ease-out);
}

.action-text::after {
  position: absolute;
  right: 8%;
  bottom: 5px;
  left: 8%;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.26;
  transform: scaleX(0.36);
  transform-origin: center;
  transition: opacity 180ms ease, transform 260ms var(--ease-out);
}

.action-text:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.action-text:hover::after,
.action-text:focus-visible::after {
  opacity: 0.66;
  transform: scaleX(1);
}

.action-text:active {
  transform: translateY(0) scale(0.97);
}

.footer-actions.is-visible .action-text {
  animation: action-word-reveal 460ms var(--ease-out) both;
}

.footer-actions.is-visible .action-text:nth-child(2) {
  animation-delay: 70ms;
}

.prototype-note {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 3.4vw, 54px);
  bottom: max(28px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(21, 59, 145, 0.46);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.screen-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-dialog {
  width: min(360px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(45, 100, 216, 0.16);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 88px -48px rgba(9, 31, 87, 0.62);
}

.contact-dialog::backdrop {
  background: rgba(8, 25, 68, 0.28);
  backdrop-filter: blur(6px);
}

.contact-dialog h2 {
  margin: 4px 0 22px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.dialog-eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef3fc;
  color: var(--blue-deep);
  font-size: 20px;
  cursor: pointer;
}

.contact-ready {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.contact-qr {
  width: 188px;
  height: 188px;
  border: 1px solid #e3eaf7;
  object-fit: contain;
}

.contact-phone {
  color: var(--blue);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.contact-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 8px 8px;
  text-align: center;
}

.contact-placeholder {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px dashed rgba(45, 100, 216, 0.38);
  border-radius: 14px;
  color: var(--blue);
  font-size: 30px;
}

.contact-empty strong {
  font-size: 16px;
}

.contact-empty p {
  max-width: 240px;
  margin: 0;
  color: rgba(16, 36, 90, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

@keyframes live-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes metric-scope-leave {
  from {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  to {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transform: translateX(14px);
  }
}

@keyframes metric-scope-enter {
  from {
    opacity: 0.16;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }
  42% {
    opacity: 0.82;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes metric-digit-rise-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-112%);
  }
}

@keyframes metric-digit-rise-in {
  from {
    opacity: 0;
    transform: translateY(112%);
  }
  38% {
    opacity: 0.74;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ceramic-number-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes projection-number-focus {
  from {
    filter: blur(8px) drop-shadow(0 14px 20px rgba(9, 41, 111, 0.18));
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    filter: blur(0) drop-shadow(0 9px 13px rgba(9, 41, 111, 0.32));
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes action-word-reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .map-world {
    --art-position: 65% 54%;
    --world-scale: 1.92;
    --world-x: -15%;
    --world-y: -12%;
  }

  .map-world[data-view="zhejiang"] {
    --world-scale: 2.25;
    --world-x: -26%;
    --world-y: -22%;
  }

  .map-artwork {
    transform: translate3d(var(--mobile-cruise-x, 0%), 0, 0) scale(1.02);
  }

  .showcase.is-ready .map-artwork {
    transform: translate3d(var(--mobile-cruise-x, 0%), 0, 0) scale(1);
  }

  .showcase.is-mobile-cruising .map-artwork {
    transition: none;
  }

  .showcase[data-layout-style="boundary-flow"] .boundary-flow {
    background: rgba(219, 235, 255, 0.05);
    opacity: 1;
  }

  .boundary-light {
    display: none;
  }

  .site-header {
    top: max(18px, env(safe-area-inset-top));
    right: 20px;
    left: 20px;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  .live-status {
    padding: 6px 8px;
    border: 1px solid rgba(40, 100, 216, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 10px;
    backdrop-filter: blur(9px);
  }

  .metric-stack {
    top: 32%;
    width: calc(100vw - 40px);
  }

  .showcase[data-layout-style="boundary-flow"][data-focus="overview"] .metric-stack {
    top: 32%;
    left: 50%;
    width: calc(100vw - 40px);
    max-width: none;
    text-align: center;
  }

  .showcase[data-layout-style="boundary-flow"][data-focus="overview"] .metric-kicker {
    margin-bottom: 16px;
    text-align: center;
  }

  .showcase[data-layout-style="boundary-flow"][data-focus="overview"] .metric-meta {
    justify-content: center;
    margin-top: 23px;
  }

  .metric-kicker {
    justify-content: center;
    margin-bottom: 16px;
    font-size: 11px;
  }

  .metric-kicker-type {
    padding-left: 9px;
  }

  .metric-number {
    font-size: clamp(54px, 15vw, 86px);
  }

  .showcase[data-number-style="ceramic"] .metric-number {
    font-size: clamp(48px, 13.6vw, 76px);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.94),
      1px 2px 0 rgba(215, 226, 247, 0.9),
      2px 4px 8px rgba(9, 41, 111, 0.28);
  }

  .showcase[data-number-style="architect"] .metric-number {
    font-size: clamp(58px, 17vw, 92px);
  }

  .showcase[data-number-style="projection"] .metric-number {
    font-size: clamp(48px, 13.8vw, 78px);
  }

  .metric-meta {
    display: grid;
    grid-template-columns: auto auto;
    gap: 14px 26px;
    justify-content: center;
    margin-top: 23px;
  }

  .metric-meta-item,
  .metric-meta-item + .metric-meta-item {
    padding-left: 0;
    border-left: 0;
  }

  .metric-meta-item--exposure {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .metric-meta-item:nth-child(3) {
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
  }

  .metric-meta-item small {
    font-size: 8px;
  }

  .metric-meta-item > strong,
  .metric-meta-item > span strong {
    font-size: 14px;
  }

  .metric-meta-item em {
    font-size: 8px;
  }

  .showcase[data-focus="region"] .metric-stack {
    top: max(118px, calc(env(safe-area-inset-top) + 96px));
    left: 20px;
    width: calc(100vw - 40px);
    text-align: left;
    transform: none;
  }

  .showcase[data-focus="region"] .metric-number {
    font-size: clamp(46px, 14vw, 66px);
  }

  .showcase[data-focus="region"] .metric-meta {
    justify-content: start;
    margin-top: 18px;
  }

  .showcase[data-focus="region"] .metric-meta-item--exposure {
    justify-self: start;
    text-align: left;
  }

  .project-card {
    top: auto;
    right: 20px;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 58px));
    left: 20px;
    width: auto;
    max-height: 46svh;
    gap: 13px;
    padding: 18px 19px 16px;
    overflow: auto;
    border-radius: 16px;
  }

  .project-card-heading {
    gap: 12px;
  }

  .project-card-name {
    font-size: 18px;
  }

  .project-card-metric strong {
    font-size: 24px;
  }

  .project-store-summary {
    padding: 11px 0 10px;
  }

  .project-store-summary strong {
    font-size: 31px;
  }

  .store-list li {
    padding: 9px 0;
  }

  .map-back {
    top: max(78px, calc(env(safe-area-inset-top) + 56px));
    left: 20px;
  }

  .footer-actions {
    bottom: max(18px, env(safe-area-inset-bottom));
    gap: 27px;
  }

  .action-text {
    min-width: 68px;
    height: 42px;
    font-size: 16px;
  }

  .prototype-note {
    right: auto;
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 58px));
    left: 20px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(8px);
  }

  .showcase[data-focus="region"] .prototype-note {
    opacity: 0;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .site-header {
    top: 16px;
  }

  .metric-stack {
    top: 48%;
  }

  .metric-number {
    font-size: clamp(60px, 9vw, 126px);
  }

  .metric-meta {
    margin-top: 13px;
  }

  .footer-actions {
    bottom: 14px;
  }
}

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

  .showcase[data-layout-style="boundary-flow"] .boundary-flow {
    background: rgba(219, 235, 255, 0.08);
    opacity: 1;
  }

  .boundary-light {
    display: none !important;
  }

  .metric-content.is-scope-leaving,
  .metric-content.is-scope-entering,
  .metric-number.is-live-updating .metric-digit-face {
    animation: none !important;
  }

  .map-artwork {
    --mobile-cruise-x: 0% !important;
  }
}
