.hero-bg { background-position: var(--hero-mobile-position, center); }

@media (min-width: 810px) {
  .hero-bg { background-position: var(--hero-tablet-position, center); }
}

@media (min-width: 1200px) {
  .hero-bg { background-position: var(--hero-desktop-position, center); }
}

.hero-bg.incoming {
  opacity: .001;
  transform: scale(1.012);
}

.rolling .enter.down { animation-name: roll-in-down; }
.rolling .leave.down { animation-name: roll-out-down; }

@keyframes roll-in-down {
  from { opacity: .001; transform: translateY(-110%); }
  to { opacity: 1; transform: none; }
}

@keyframes roll-out-down {
  from { opacity: 1; transform: none; }
  to { opacity: .001; transform: translateY(110%); }
}

/* 专题卡 CTA 与卡片底色反色。 */
.plan:not(.dark) .action {
  background: #000;
  color: #fff;
}

.plan:not(.dark) .action-arrow {
  background: #fff;
  color: #000;
}

.projects { background: var(--paper); }
.reviews { background: #fff; }

.hero-verb-stack {
  position: relative;
  display: inline-flex;
}

.hero-pagination {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: width .34s var(--ease), height .34s var(--ease), margin .34s var(--ease), background .28s var(--ease), opacity .28s var(--ease);
}

.hero-dot.active {
  width: 16px;
  height: 16px;
  margin-inline: -2px;
  background: #2B6BFF;
}

.hero-dot:focus-visible { outline: 0; }

.footer-social a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}

.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.metrics .metric {
  padding: 28px 24px 24px;
  color: var(--ink);
  transition: background .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
}

.metrics .metric:hover,
.metrics .metric:focus-visible {
  border-color: #000;
  background: #000;
  color: #fff;
  outline: none;
  transform: translateY(-3px);
}

.metrics .metric:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px #000; }

@media (min-width: 810px) {
  .metrics .metric { padding: 32px 24px 26px; }
}

.projects-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.projects-heading { max-width: 620px; }

.projects-heading > p:last-child {
  margin: 20px 0 0;
  color: rgba(0, 0, 0, .58);
  font-size: 15px;
  line-height: 1.7;
}

.project-consult {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.project-consult:hover,
.project-consult:focus-visible { background: #272727; transform: translateY(-2px); }
.project-consult:active { transform: scale(.98); }
.project-consult svg { width: 19px; height: 19px; }

.project-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.project-card > img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.project-card:hover > img { transform: scale(1.03); }

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-number { color: rgba(0, 0, 0, .46); font-size: 12px; }

.project-card h3 {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.06em;
}

.project-card-body > p {
  margin: 16px 0 0;
  color: rgba(0, 0, 0, .62);
  font-size: 14px;
  line-height: 1.7;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }

.project-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

@media (min-width: 810px) {
  .projects-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
}

@media (min-width: 1200px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .project-card-body { padding: 26px; }
}
