/* ==========================================================================
   Shared footer — vanitas-modern with integrated text overlay + animated phone glow
   Used on /, /ai-native-design/, /404.html
   ========================================================================== */

/* Brand color tokens (in case host page doesn't already define them) */
footer.foot { --foot-cream: #f5ede0; --foot-charcoal: #1c1814; --foot-charcoal-2: rgba(28, 24, 20, 0.6); --foot-burgundy: #7a2540; }

footer.foot {
  padding: 0;
  margin: 0;
  border-top: 0;
  background: var(--cream, #f5ede0);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.foot__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  max-height: 80vh;
  overflow: hidden;
}
.foot__art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%);
}
.foot__art-overlay {
  position: absolute;
  left: 4.5%;
  top: 18%;
  right: 50%;
  z-index: 2;
  pointer-events: auto;
  color: var(--charcoal, #1c1814);
}
.foot__art-mark {
  font-family: 'Fraunces', 'Tiempos Headline', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--charcoal, #1c1814);
  margin: 0 0 0.6em;
}
.foot__art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  align-items: center;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: clamp(0.65rem, 0.85vw, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-2, rgba(28, 24, 20, 0.6));
  margin: 0 0 1.2em;
}
.foot__art-meta-rule {
  display: inline-block;
  width: clamp(28px, 4vw, 60px);
  height: 1px;
  background: rgba(28, 24, 20, 0.35);
  margin: 0 0.2em;
}
.foot__art-tagline {
  font-family: 'Fraunces', 'Tiempos Headline', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.45;
  color: var(--charcoal-2, rgba(28, 24, 20, 0.7));
  max-width: 26em;
  margin: 0;
}
.foot__art-links {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: clamp(0.65rem, 0.85vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.foot__art-links a {
  color: var(--charcoal, #1c1814);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 24, 20, 0.3);
  padding-bottom: 0.15em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot__art-links a:hover { color: var(--burgundy, #7a2540); border-color: var(--burgundy, #7a2540); }

.foot__art-glow {
  position: absolute;
  /* Anchored to the phone screen, NOT the skull mouth.
     On desktop the .foot__art container is wider than the image's natural
     aspect (max-height: 80vh kicks in), so the image is cropped vertically
     ~5% top + bottom — pushing the source y=77% phone screen up to display y≈80%.
     Empirically tuned 2026-05-05 after the post-image-resize regression. */
  left: 64.5%;
  top: 82%;
  width: 13.5%;
  height: 14%;
  background: radial-gradient(ellipse at center,
    rgba(255, 230, 170, 0.95) 0%,
    rgba(255, 220, 150, 0.55) 40%,
    rgba(255, 200, 120, 0.18) 70%,
    rgba(255, 200, 120, 0) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  filter: blur(10px);
  transform-origin: center;
  animation: foot-phone-glow 3.2s ease-in-out infinite;
  z-index: 1;
}
@keyframes foot-phone-glow {
  0%, 100% { opacity: 0.40; transform: scale(0.94); }
  50%      { opacity: 0.95; transform: scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
  .foot__art-glow { animation: none; opacity: 0.65; transform: scale(1); }
}
@media (max-width: 768px) {
  .foot__art {
    aspect-ratio: 4 / 5;
    max-height: 90vh;
  }
  .foot__art-overlay {
    left: 6%;
    top: 12%;
    right: 6%;
  }
  .foot__art-mark { font-size: clamp(2.4rem, 13vw, 4rem); }
  .foot__art-meta { font-size: 0.65rem; }
  .foot__art-tagline { font-size: 0.95rem; max-width: 100%; }
}
