/**
 * CRITICAL PATCH 2026-07-23 — hero brand hierarchy · page-bar · QR · CC
 * PM MEDIA = primary company · REV DE$K™ = secondary product badge (left)
 */
:root {
  --pm-patch-void: #05070c;
  --pm-patch-cyan: #00c2e8;
  --pm-patch-magenta: #e2187a;
}

/* —— HERO: PM Media primary rectangle · REV DE$K compact left —— */
.hero.pm-noon-hero .pm-hero-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 920px);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 6;
}

.hero.pm-noon-hero .pm-revdesk-badge {
  margin: 0;
  max-width: min(94vw, 560px);
  padding: 10px 16px 10px 10px;
  flex: 0 1 auto;
  justify-content: flex-start;
  align-self: center;
  background: #000 !important;
  background-image: none !important;
  border-color: rgba(0, 212, 255, 0.55);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero.pm-noon-hero .pm-revdesk-mark {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.hero.pm-noon-hero .pm-revdesk-badge--hero .pm-revdesk-mark {
  width: 84px;
  height: 84px;
  border-radius: 16px;
}

.hero.pm-noon-hero .pm-revdesk-badge-text strong {
  font-size: clamp(12px, 2.2vw, 15px);
  letter-spacing: 0.1em;
}

.hero.pm-noon-hero .pm-revdesk-badge-text em {
  font-size: clamp(9px, 1.6vw, 11px);
}

.hero.pm-noon-hero .pm-revdesk-badge-sub {
  font-size: 8px;
}

.hero.pm-noon-hero .pm-hero-company-lockup {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero.pm-noon-hero .pm-hero-company-lockup img {
  width: min(100%, 420px);
  height: auto;
  min-height: 0;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(0, 194, 232, 0.35));
}

/* Stage: big centered PM Media — kill tiny corner logo */
body.pm-convert-lean .pm-noon-3d-stage {
  position: relative;
  min-height: clamp(220px, 42vw, 360px) !important;
  height: clamp(220px, 42vw, 360px) !important;
  margin: 0.75rem auto 1.25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(0, 194, 232, 0.22);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 194, 232, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(226, 24, 122, 0.1), transparent 55%),
    rgba(8, 10, 16, 0.85);
}

body.pm-convert-lean .pm-noon-3d-stage:not(.pm-neon-sign-stage) .pm-noon-logo-float {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: min(88%, 560px) !important;
  width: min(88%, 560px) !important;
  z-index: 5;
}

body.pm-convert-lean .pm-noon-3d-stage:not(.pm-neon-sign-stage) .pm-noon-logo-float .hero-logo-img {
  min-height: 0 !important;
  width: 100% !important;
  max-height: 280px;
  object-fit: contain;
}

/* Neon billboard stage sizes are owned by pm-neon-sign.css — do not cap here */

/* Hide duplicate float logo if brand row already shows company */
.hero.pm-noon-hero.has-brand-row .eyebrow {
  margin-bottom: 0.65rem;
}

/* —— Opaque sticky header (no glass bleed of browser tabs/favicons) —— */
.site-header {
  background: #000 !important;
  background-color: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-theme="light"] .site-header {
  background: #f4f6fa !important;
}

/* —— Retired reading magnifier (broken across iframe) —— */
#pm-rail-zoom,
.pm-zoom-btn,
.pm-zoom-hint,
html.pm-zoom-armed [data-pm-zoom-cand] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
html.pm-zoom-armed,
html.pm-zoom-active {
  cursor: auto !important;
}

/* —— PAGE BAR (movable · collapsible) —— */
.pm-page-bar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9200;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem 0.4rem 0.55rem;
  max-width: calc(100vw - 24px);
  border-radius: 14px;
  border: 1px solid rgba(0, 194, 232, 0.28);
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  touch-action: none;
}

.pm-page-bar.is-dragging {
  cursor: grabbing;
  opacity: 0.96;
}

.pm-page-bar__grip {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 241, 234, 0.55);
  cursor: grab;
  font-size: 12px;
  line-height: 1;
}

.pm-page-bar__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: min(70vw, 720px);
}

.pm-page-bar__links::-webkit-scrollbar {
  display: none;
}

.pm-page-bar__links a {
  flex: none;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  color: rgba(243, 241, 234, 0.82);
  text-decoration: none;
  font: 650 11px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pm-page-bar__links a:hover,
.pm-page-bar__links a:focus-visible {
  background: rgba(0, 194, 232, 0.14);
  color: #fff;
  outline: none;
}

.pm-page-bar__toggle {
  flex: none;
  min-height: 34px;
  padding: 0 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f1ea;
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pm-page-bar.is-collapsed .pm-page-bar__links {
  display: none;
}

.pm-page-bar.is-collapsed .pm-page-bar__panel {
  display: block;
}

.pm-page-bar__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 194, 232, 0.25);
  background: rgba(8, 10, 14, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pm-page-bar__panel a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #f3f1ea;
  text-decoration: none;
  font: 650 13px/1.2 system-ui, sans-serif;
}

.pm-page-bar__panel a:hover {
  background: rgba(0, 194, 232, 0.12);
}

@media (max-width: 900px) {
  .pm-page-bar:not(.is-expanded) .pm-page-bar__links {
    display: none;
  }
  .pm-page-bar:not(.is-expanded) .pm-page-bar__panel.is-open {
    display: block;
  }
}

/* —— QR intake card —— */
.pm-qr-card {
  width: min(100% - 2rem, 420px);
  margin: 2rem auto 0;
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(0, 194, 232, 0.3);
  background:
    linear-gradient(145deg, rgba(12, 16, 24, 0.96), rgba(8, 10, 16, 0.98));
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1rem;
  align-items: center;
}

.pm-qr-card__code {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  display: grid;
  place-items: center;
}

.pm-qr-card__code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-qr-card__copy h3 {
  margin: 0 0 0.35rem;
  font: 700 1.05rem/1.2 "Cormorant Garamond", Georgia, serif;
  color: #f3f1ea;
}

.pm-qr-card__copy p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(243, 241, 234, 0.65);
}

.pm-qr-card__copy a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 0.95rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #00c2e8, #e2187a);
  color: #05070c;
  font: 800 12px/1 system-ui, sans-serif;
  text-decoration: none;
}

@media (max-width: 520px) {
  .hero.pm-noon-hero .pm-hero-brand-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero.pm-noon-hero .pm-revdesk-badge {
    max-width: 100%;
  }
  .pm-qr-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Explainer grid — ensure first card is interactive / above chrome */
#videos .video-grid .video-card:first-child {
  z-index: 2;
}
#videos .video-grid .video-card .play-btn {
  z-index: 3;
  pointer-events: auto;
}

/* Inline video rack (under hero) — play in-card · no corner modal */
.pm-videos-hero-rack {
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
}
.pm-videos-hero-rack .video-card--feature {
  border: 1px solid rgba(255, 42, 157, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.pm-videos-hero-rack .video-card.is-playing {
  transform: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.pm-videos-hero-rack .video-card.is-playing .video-poster > img:not(.pm-poster-logo),
.pm-videos-hero-rack .video-card.is-playing .pm-poster-logo {
  opacity: 0;
  pointer-events: none;
}
.pm-videos-hero-rack .video-card.is-playing .video-poster::after {
  display: none;
}
.pm-videos-hero-rack .video-card.is-playing video.pm-inline-vid,
.pm-videos-hero-rack video.pm-inline-vid.is-active {
  display: block !important;
  z-index: 4;
}
.pm-videos-hero-rack .video-card.is-playing .play-btn {
  display: none !important;
}
.pm-videos-hero-rack video.pm-inline-vid {
  z-index: 4;
  display: none;
}
.pm-videos-hero-rack video.pm-inline-vid[hidden] {
  display: none !important;
}

/* Mobile media clarity — posters clear · lightbox + video centered */
#videos .video-poster > img:not(.pm-poster-logo) {
  filter: none !important;
  opacity: 1 !important;
}
#videos .video-poster::after {
  height: 18% !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.14) 100%) !important;
}
/* Native <dialog> centers with fixed + margin:auto — do NOT use top:0 default */
dialog.pm-visual-viewer {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;
  max-width: calc(100vw - 12px);
  max-height: min(92dvh, calc(100vh - 12px));
  width: min(1120px, calc(100vw - 12px));
  z-index: 12000 !important;
}
/* Closed = truly hidden (never leave a stuck black Close bar) */
dialog.pm-visual-viewer:not([open]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
dialog.pm-visual-viewer[open] {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  pointer-events: auto !important;
}
dialog.pm-visual-viewer[open] .pm-visual-viewer__close,
dialog.pm-visual-viewer[open] .pm-visual-viewer__done {
  pointer-events: auto !important;
  z-index: 13050 !important;
}
dialog.pm-visual-viewer::backdrop {
  background: rgba(2, 3, 8, 0.92) !important;
  backdrop-filter: blur(10px);
}
.pm-video-modal {
  align-items: center !important;
  justify-content: center !important;
}
@media (max-width: 640px) {
  #videos .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  #videos .video-poster {
    aspect-ratio: 16 / 9;
  }
  #videos .play-btn {
    width: 56px;
    height: 56px;
  }
  .visual-world-grid,
  .visual-world-grid--system {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .pm-visual-viewer img {
    max-height: min(70dvh, calc(100vh - 110px)) !important;
    width: 100%;
    object-fit: contain !important;
    object-position: center !important;
  }
  .pm-visual-viewer p {
    text-align: center;
    padding: 10px 14px 12px;
  }
  /* Keep sticky chrome from covering lightbox close */
  body:has(dialog.pm-visual-viewer[open]) .pm-sticky-cta,
  body:has(.pm-video-modal:not([hidden])) .pm-sticky-cta {
    opacity: 0;
    pointer-events: none;
  }
  .section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Mobile readability — white copy over busy plates */
@media (max-width: 768px) {
  .section .lead,
  .section h2,
  .section .eyebrow,
  .pm-ugc-explainer .lead,
  .pm-ugc-explainer h2,
  #visual-world .lead,
  #visual-world figcaption,
  .visual-world-banner-body,
  .hero .lead,
  .hero-title-noon,
  .gradient-text {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 2px 18px rgba(0, 0, 0, 0.55) !important;
  }
  #visual-world figure,
  #visual-world .pm-niche-tile,
  .gallery-tile,
  .explainer-card {
    filter: none !important;
    opacity: 1 !important;
  }
}
