/* 稳定导航高度，避免滚动切换状态时文字上下跳动。 */
.nav,
.nav.scrolled {
  height: 76px;
}

.nav {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 8px 30px rgba(40, 30, 18, 0.05);
}

.nav-cta {
  min-width: 104px;
  text-align: center;
}

/* 案例图使用统一比例，减少大小不一造成的拼贴感。 */
.showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-image,
.work-image.product {
  height: auto;
  aspect-ratio: 4 / 3;
}

.work-image img {
  object-position: center;
}

.showcase article {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(55, 41, 23, 0.06);
}

/* 页尾背景使用缓慢呼吸和漂移，保持克制的品牌氛围。 */
.final-cta {
  min-height: 720px;
  padding: 100px clamp(28px, 7vw, 120px);
  text-align: left;
}

.cta-inner {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(60px, 9vw, 140px);
  position: relative;
  z-index: 2;
}

.cta-copy p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #d3a65b;
  font: 11px/1.2 var(--sans);
  letter-spacing: 0.2em;
}

.cta-copy p::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.final-cta .cta-copy h2 {
  margin: 0 0 26px;
  text-align: left;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.25;
}

.final-cta .cta-copy h2 > span {
  display: block;
  white-space: nowrap;
}

.cta-copy h2 em {
  color: #e2bd78;
  font-style: normal;
}

.cta-description {
  display: block;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.9;
}

.final-cta .cta-copy small {
  margin-top: 18px;
  text-align: left;
}

.final-cta .primary-button.light {
  min-width: 142px;
  justify-content: center;
  border-radius: 2px;
}

.cta-preview {
  height: 500px;
  position: relative;
}

.preview-card {
  position: absolute;
  margin: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.preview-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preview-card figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.preview-card figcaption span {
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.preview-card figcaption b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.preview-main {
  top: 0;
  right: 0;
  width: 78%;
  height: 390px;
  transform: rotate(2deg);
  animation: preview-float-main 7s ease-in-out infinite alternate;
}

.preview-small {
  bottom: 0;
  left: 0;
  width: 48%;
  height: 245px;
  transform: rotate(-4deg);
  animation: preview-float-small 8.5s ease-in-out infinite alternate;
}

@keyframes preview-float-main {
  from { transform: translate3d(0, -7px, 0) rotate(2deg); }
  to { transform: translate3d(-10px, 9px, 0) rotate(1deg); }
}

@keyframes preview-float-small {
  from { transform: translate3d(-4px, 8px, 0) rotate(-4deg); }
  to { transform: translate3d(9px, -8px, 0) rotate(-2.5deg); }
}

.final-cta::before {
  border: 0;
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(229, 186, 111, 0.7) 28%, rgba(229, 186, 111, 0.14) 42%, transparent 58% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  animation: footer-ring-inner 15s linear infinite;
  will-change: transform;
}

.final-cta::after {
  border: 0;
  background: conic-gradient(from 180deg, transparent 0 30%, rgba(214, 161, 78, 0.5) 40%, rgba(214, 161, 78, 0.1) 51%, transparent 64% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  animation: footer-ring-outer 24s linear infinite;
  will-change: transform;
}

.final-cta .cta-glow {
  animation: footer-glow 9s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes footer-ring-inner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes footer-ring-outer {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes footer-glow {
  0% {
    opacity: 0.2;
    transform: translate3d(-90px, 35px, 0) scale(0.88);
  }
  50% {
    opacity: 0.34;
  }
  100% {
    opacity: 0.24;
    transform: translate3d(95px, -40px, 0) scale(1.18);
  }
}

.work-caption {
  min-height: 112px;
}

@media (max-width: 900px) {
  .nav,
  .nav.scrolled {
    height: 70px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    min-height: auto;
    padding: 90px 24px 80px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .final-cta .cta-copy h2 {
    font-size: clamp(31px, 8.6vw, 44px);
    letter-spacing: -0.055em;
  }

  .cta-preview {
    height: 390px;
  }

  .preview-main {
    width: 88%;
    height: 300px;
  }

  .preview-small {
    width: 52%;
    height: 180px;
  }

  .preview-card figcaption b {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta::before,
  .final-cta::after,
  .final-cta .cta-glow {
    animation: none;
  }

  .preview-main,
  .preview-small {
    animation: none;
  }
}
