/**
 * PM Media — real neon sign hero
 * ONE big rectangular billboard · clear HD Miami night / ocean / palms · full contrast
 */
:root {
  --pm-neon-cyan: #00f0ff;
  --pm-neon-magenta: #ff2ea6;
  --pm-neon-core: #ffffff;
}

/* Header wordmark only when header shows (iframe hides header) */
.site-header .logo--wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  line-height: 1;
  max-width: none;
}
.site-header .logo-wordmark-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  font-family: "Orbitron", "Rajdhani", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(135deg, #00f0ff 0%, #7af7ff 45%, #ff2ea6 100%);
  box-shadow:
    0 0 12px rgba(0, 240, 255, 0.55),
    0 0 22px rgba(255, 46, 166, 0.35);
}
.site-header .logo-wordmark-text {
  font-family: "Orbitron", "Rajdhani", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.14em;
  color: #f4fbff;
  text-shadow:
    0 0 8px rgba(0, 240, 255, 0.45),
    0 0 18px rgba(255, 46, 166, 0.25);
}

/* —— iPhone-sideways landscape billboard (logo ABOVE hero words) —— */
body.pm-convert-lean .pm-noon-3d-stage.pm-neon-sign-stage,
.pm-noon-3d-stage.pm-neon-sign-stage {
  position: relative;
  /* Phone held sideways ≈ 19.5:9 — wider billboard */
  aspect-ratio: 19.5 / 9;
  min-height: clamp(260px, 42vw, 560px) !important;
  height: auto !important;
  margin: 0.35rem auto 1.1rem;
  max-width: min(1480px, 99%) !important;
  width: 100%;
  border-radius: clamp(1.35rem, 3.2vw, 2.35rem);
  overflow: hidden;
  border: 3px solid rgba(28, 32, 40, 0.95);
  /* Interior = solid black to the cyan ring. Neon glow pops OUT past the plate. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 8px #000,
    0 0 0 9px rgba(0, 240, 255, 0.45),
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(0, 240, 255, 0.18);
  background: #000 !important;
  background-color: #000 !important;
  /* Gallery wall depth — logo floats toward you */
  perspective: 1400px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

/* Fake phone ear/speaker notch strip (landscape) */
.pm-noon-3d-stage.pm-neon-sign-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.55rem;
  transform: translateY(-50%);
  width: 0.28rem;
  height: 18%;
  max-height: 72px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 8;
  pointer-events: none;
}
.pm-noon-3d-stage.pm-neon-sign-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
  z-index: 8;
  pointer-events: none;
}

.pm-neon-sign-bg {
  position: absolute;
  inset: -2%;
  /* Open ocean + palms right + fluorescent neon skyline — crisp, no drift */
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.02) 0%, transparent 42%, rgba(2, 6, 12, 0.18) 100%),
    url("assets/miami-neon-ocean-hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.02);
  animation: none;
  z-index: 0;
  /* Cool/silver grade — white foam & wave crests → brushed silver, not chalk white */
  filter: saturate(1.05) contrast(1.12) brightness(1.02) hue-rotate(-6deg);
}
.pm-neon-sign-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* Wave-band chrome wash — not chalk white (white type must stay readable) */
    linear-gradient(
      180deg,
      transparent 38%,
      rgba(96, 112, 132, 0.22) 55%,
      rgba(78, 92, 112, 0.32) 72%,
      rgba(64, 76, 96, 0.28) 100%
    ),
    radial-gradient(
      ellipse 90% 42% at 50% 78%,
      rgba(110, 126, 148, 0.28),
      rgba(72, 86, 108, 0.14) 45%,
      transparent 70%
    );
  mix-blend-mode: soft-light;
  opacity: 0.95;
}

.pm-neon-sign-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Light veil — Miami stays sharp behind the logo */
  background:
    radial-gradient(ellipse 78% 62% at 50% 48%, transparent 50%, rgba(2, 6, 12, 0.06) 100%),
    linear-gradient(180deg, rgba(2, 6, 12, 0.04) 0%, transparent 45%, rgba(2, 6, 12, 0.18) 100%);
}

@keyframes pmNeonBgDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, 0.7%, 0); }
}

body.pm-convert-lean .pm-neon-sign-stage .pm-noon-logo-float,
.pm-neon-sign-stage .pm-noon-logo-float,
body.pm-convert-lean .pm-noon-3d-stage.pm-neon-sign-stage .pm-noon-logo-float {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  z-index: 4;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: #000;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.pm-neon-sign__plate {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: inherit;
  background: #000;
  box-shadow: none;
  border: none;
  transform-style: preserve-3d;
}

.pm-neon-sign__plate--iphone-landscape {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #000 !important;
  background-color: #000 !important;
  border-radius: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  /* Painting frame on the wall */
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Soft wall vignette behind the floating mark (splash sits in the painting) */
.pm-neon-sign__plate--iphone-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 62% 55% at 50% 48%, transparent 40%, rgba(0, 0, 0, 0.5) 85%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0.9;
}

.pm-neon-sign__glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 18% / 36%;
  background:
    radial-gradient(ellipse at 32% 42%, rgba(0, 240, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 68% 58%, rgba(255, 46, 166, 0.18), transparent 55%);
  filter: blur(36px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  transform: translateZ(-20px);
}

.pm-neon-sign__tube,
body.pm-convert-lean .pm-neon-sign-stage .pm-noon-logo-float .hero-logo-img,
body.pm-convert-lean .pm-noon-3d-stage.pm-neon-sign-stage .pm-noon-logo-float .hero-logo-img {
  position: relative;
  z-index: 5;
  transform-origin: 50% 55%;
  /* Splash quieter · PM MEDIA tubes louder via contrast + neon halos */
  filter:
    brightness(0.9)
    contrast(1.28)
    saturate(0.78)
    drop-shadow(0 0 2px rgba(0, 255, 255, 0.95))
    drop-shadow(0 0 10px rgba(0, 240, 255, 0.85))
    drop-shadow(0 0 22px rgba(0, 212, 238, 0.7))
    drop-shadow(0 0 36px rgba(255, 46, 166, 0.45))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65));
  transform: translate3d(0, 4px, 36px) rotateX(5deg) scale(1.05);
  transition:
    filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  opacity: 1;
}

.pm-neon-sign__glass {
  position: absolute;
  inset: 6% 4%;
  z-index: 4;
  pointer-events: none;
  border-radius: 8px;
  background:
    linear-gradient(
      118deg,
      transparent 28%,
      rgba(255, 255, 255, 0.06) 46%,
      rgba(255, 255, 255, 0.02) 52%,
      transparent 62%
    );
  background-size: 240% 240%;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  transform: translateZ(8px);
}

.pm-neon-sign.is-off .pm-neon-sign__tube,
.pm-neon-sign.is-on .pm-neon-sign__tube,
.pm-neon-sign.is-warming .pm-neon-sign__tube {
  opacity: 1;
}

.pm-neon-sign.is-on .pm-neon-sign__glow,
.pm-neon-sign.is-off .pm-neon-sign__glow,
.pm-neon-sign.is-warming .pm-neon-sign__glow {
  opacity: 0.4;
}

.pm-neon-sign.is-on .pm-neon-sign__tube {
  opacity: 1;
  /* Float off the splash wall · neon letters pulse */
  animation: pmNeonFloatPop 4.2s ease-in-out infinite;
}

@keyframes pmNeonFloatPop {
  0%, 100% {
    transform: translate3d(0, 8px, 28px) rotateX(6deg) rotateY(-1.2deg) scale(1.04);
    filter:
      brightness(0.86)
      contrast(1.32)
      saturate(0.72)
      drop-shadow(0 0 1px rgba(180, 255, 255, 1))
      drop-shadow(0 0 8px rgba(0, 240, 255, 0.95))
      drop-shadow(0 0 18px rgba(0, 212, 238, 0.8))
      drop-shadow(0 0 34px rgba(0, 240, 255, 0.55))
      drop-shadow(0 0 52px rgba(255, 46, 166, 0.4))
      drop-shadow(0 22px 48px rgba(0, 0, 0, 0.7));
  }
  50% {
    transform: translate3d(0, -14px, 56px) rotateX(2deg) rotateY(1.2deg) scale(1.08);
    filter:
      brightness(0.94)
      contrast(1.48)
      saturate(0.82)
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 6px rgba(0, 255, 255, 1))
      drop-shadow(0 0 16px rgba(0, 240, 255, 1))
      drop-shadow(0 0 32px rgba(0, 212, 238, 0.95))
      drop-shadow(0 0 54px rgba(0, 240, 255, 0.7))
      drop-shadow(0 0 78px rgba(255, 46, 166, 0.65))
      drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55));
  }
}

.pm-neon-sign.is-on .pm-neon-sign__glass {
  opacity: 0.32;
  animation: none;
}

@keyframes pmNeonFlicker {
  0%, 100% { opacity: 0.32; filter: brightness(0.22) saturate(0.35); }
  20% { opacity: 1; filter: brightness(1.35) contrast(1.4) saturate(1.55) drop-shadow(0 0 20px rgba(0, 240, 255, 0.95)); }
  35% { opacity: 0.22; }
  55% { opacity: 1; filter: brightness(1.3) contrast(1.45) saturate(1.5) drop-shadow(0 0 26px rgba(255, 46, 166, 0.85)); }
  70% { opacity: 0.4; }
  85% { opacity: 1; }
}

@keyframes pmNeonWash {
  from { opacity: 0.8; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}

@keyframes pmNeonSheen {
  from { background-position: 0% 35%; }
  to { background-position: 100% 65%; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-neon-sign.is-on .pm-neon-sign__tube {
    animation: none;
    transform: translate3d(0, 0, 40px) rotateX(3deg) scale(1.05);
    filter:
      brightness(0.9)
      contrast(1.4)
      saturate(0.78)
      drop-shadow(0 0 8px rgba(0, 240, 255, 0.95))
      drop-shadow(0 0 24px rgba(0, 212, 238, 0.75))
      drop-shadow(0 0 48px rgba(255, 46, 166, 0.5))
      drop-shadow(0 20px 44px rgba(0, 0, 0, 0.65));
  }
}

.hero.pm-noon-hero .pm-hero-company-lockup {
  display: none !important;
}

.hero.pm-noon-hero .pm-hero-brand-row {
  justify-content: flex-start;
  width: min(100%, 1480px);
  margin-bottom: 0.35rem;
}

body.pm-convert-lean .pm-neon-sign-stage .pm-noon-logo-float .hero-logo-img,
body.pm-convert-lean .pm-neon-sign-stage .pm-neon-sign__tube,
body.pm-convert-lean .pm-noon-3d-stage.pm-neon-sign-stage .hero-logo-img {
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Full-bleed hero — open ocean · palms right · neon skyline */
.hero.pm-noon-hero {
  background-color: #05070c !important;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0%, rgba(5, 7, 12, 0.22) 52%, rgba(5, 7, 12, 0.78) 100%),
    url("assets/miami-neon-ocean-hero.jpg") !important;
  background-size: cover !important;
  background-position: center 42% !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 720px) {
  body.pm-convert-lean .pm-noon-3d-stage.pm-neon-sign-stage,
  .pm-noon-3d-stage.pm-neon-sign-stage {
    min-height: clamp(200px, 52vw, 340px) !important;
    height: clamp(200px, 52vw, 340px) !important;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
  }
  body.pm-convert-lean .pm-neon-sign-stage .pm-noon-logo-float,
  .pm-neon-sign-stage .pm-noon-logo-float {
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-neon-sign-bg,
  .pm-neon-sign.is-on .pm-neon-sign__glow,
  .pm-neon-sign.is-on .pm-neon-sign__glass {
    animation: none !important;
  }
  .pm-neon-sign.is-warming .pm-neon-sign__tube {
    animation: none !important;
  }
  .pm-neon-sign.is-off .pm-neon-sign__tube,
  .pm-neon-sign.is-warming .pm-neon-sign__tube {
    filter:
      brightness(1.32)
      contrast(1.52)
      saturate(1.58)
      drop-shadow(0 0 14px rgba(0, 240, 255, 0.9))
      drop-shadow(0 0 36px rgba(255, 46, 166, 0.6));
    opacity: 1;
  }
  .pm-neon-sign.is-off .pm-neon-sign__glow,
  .pm-neon-sign.is-warming .pm-neon-sign__glow {
    opacity: 1;
  }
}
