/* Inner-page heroes: interactive copper extrusion line (see assets/js/hero-extrusion.js). */

.copper-rod-header-art.tg-extrusion {
  width: 540px;
  height: 290px;
  pointer-events: auto;
  perspective: 1000px;
}

.tg-extrusion .copper-rod-svg-3d {
  display: none;
}

.tg-extrusion-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Heat glow that follows the pointer across the hero (behind the text). */
.tg-hero-live .tg-hero-heat {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--tg-mx, 70%) var(--tg-my, 50%), rgba(200, 121, 65, 0.16), rgba(200, 121, 65, 0) 60%);
  transition: opacity 0.4s ease;
}

.tg-hero-live.tg-hero-hot .tg-hero-heat {
  opacity: 1;
}

/* Hot copper line along the bottom edge with a travelling glint. */
.tg-hero-live .tg-hero-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(160, 89, 39, 0) 0%, #A05927 18%, #C87941 50%, #D9884E 82%, rgba(217, 136, 78, 0) 100%);
}

.tg-hero-live .tg-hero-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  background: linear-gradient(90deg, rgba(255, 244, 214, 0), rgba(255, 244, 214, 0.95), rgba(255, 244, 214, 0));
  animation: tgHeroGlint 4.5s linear infinite;
}

@keyframes tgHeroGlint {
  from { transform: translateX(-200px); }
  to { transform: translateX(100vw); }
}

@media (max-width: 1200px) {
  .copper-rod-header-art.tg-extrusion {
    width: 440px;
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-hero-live .tg-hero-line::after {
    animation: none;
    display: none;
  }

  .tg-extrusion-canvas {
    cursor: default;
  }
}
