/* ── 3D Card Scene ── */
.scene {
  perspective: 800px;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0;
}

.card-3d {
  --foil-x: 50%;
  --foil-y: 50%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  width: 100%;
  max-width: var(--max-width);
}

/* Edge thickness — back face slightly behind */
.card-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e8e0cf;
  border: 1px solid #d8d0c0;
  border-radius: 2px;
  transform: translateZ(-3px);
  pointer-events: none;
}

/* Override card margin — scene handles positioning */
.scene .card {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Foil override — radial point-of-light instead of linear band */
.scene .foil {
  background: radial-gradient(
    ellipse 100% 500% at var(--foil-x) var(--foil-y),
    #edd9a0 0%,
    #c9a84c 18%,
    #b8972f 40%,
    #a08030 65%,
    #9a7b2c 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Full specular highlight on the title only */
.scene .title.foil {
  background: radial-gradient(
    ellipse 100% 500% at var(--foil-x) var(--foil-y),
    #fff8e0 0%,
    #faf0cc 6%,
    #edd9a0 14%,
    #c9a84c 28%,
    #b8972f 45%,
    #a08030 65%,
    #9a7b2c 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Specular shine overlay */
.card-3d__shine {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-3d:hover .card-3d__shine {
  opacity: 1;
}

/* ── Responsive overrides ── */
@media (min-width: 480px) {
  .scene {
    padding: 2.5rem 1rem 0;
  }
}

@media (min-width: 768px) {
  .scene {
    padding: 4rem 1rem 0;
  }
}

/* No 3D rotation on mobile — foil reflection only */
@media (hover: none) {
  .card-3d::before {
    display: none;
  }

  .card-3d__shine {
    display: none;
  }
}

