/* ==========================================================================
   MONARCHY — Site-Wide 3D "WOW Effect" Hero & Design Evolution (v3)
   Modular stylesheet: css/wow-hero-site.css (paired with js/wow-hero-site.js)
   Brings the 60fps 3D Orbital / Neural / Morphing Ecosystem Hero and
   Obsidian + Champagne Gold + Warm Amber + Celestial Cyan luxury grammar
   to Home (preserving "Don't be a Blockbuster..." + 7 pillars) and all internal pages.
   ========================================================================== */

:root {
  --wow-gold: #f3d28c;
  --wow-gold-bright: #ffebb8;
  --wow-amber: #df963b;
  --wow-cyan: #7ce8ff;
  --wow-ivory: #f7f4ee;
  --wow-ink: #050508;
}

@keyframes wowb-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes wowb-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.32); opacity: 0.65; }
}

/* ==========================================================================
   1. GLOBAL NAV & CTA ELEVATION
   ========================================================================== */
header.nav .nav-cta,
.nav .nav-cta {
  background: linear-gradient(135deg, #f9e1a8 0%, #e4a94d 52%, #cf8528 100%) !important;
  color: #07070b !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 246, 218, 0.6) !important;
  box-shadow: 0 6px 22px rgba(228, 169, 77, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease !important;
}
header.nav .nav-cta:hover,
.nav .nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(243, 210, 140, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

/* ==========================================================================
   2. SHARED 3D WOW HERO STAGE & CANVAS (.wow-hero-stage)
   ========================================================================== */
.wow-hero-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #050509 !important;
  background-image:
    radial-gradient(92% 84% at 50% 48%, #13111f 0%, #08080e 58%, #040407 100%) !important;
  color: var(--wow-ivory);
}

.wow-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(62% 58% at 48% 48%, rgba(235, 182, 88, 0.14) 0%, rgba(124, 232, 255, 0.05) 48%, transparent 76%),
    radial-gradient(90% 85% at 50% 50%, transparent 52%, rgba(4, 4, 7, 0.82) 96%),
    linear-gradient(180deg, rgba(4, 4, 7, 0.55) 0%, transparent 16%, transparent 82%, rgba(7, 7, 10, 0.96) 100%);
}

.wow-hero-stage > canvas.wow-hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
  cursor: grab;
  display: block;
}
.wow-hero-stage > canvas.wow-hero-canvas:active {
  cursor: grabbing;
}
.wow-hero-stage.wowb-live > canvas.wow-hero-canvas {
  opacity: 1;
}
.wow-hero-stage.wowb-static > canvas.wow-hero-canvas {
  display: none !important;
}

/* Keep legacy 2D dots canvas hidden when 3D wow canvas is active */
.wow-hero-stage > canvas.hero-dots {
  display: none !important;
}

/* Underlying background photos/videos on internal pages blend into the 3D orbital cosmos */
.wow-hero-stage > img.bg,
.wow-hero-stage > video,
.wow-hero-stage > .heroimg img {
  z-index: 0 !important;
  opacity: 0.24 !important;
  filter: saturate(0.6) contrast(1.12) brightness(0.68);
  transition: opacity 0.45s ease;
}
.wow-hero-stage.wowb-static > img.bg,
.wow-hero-stage.wowb-static > video {
  opacity: 0.48 !important;
}
.wow-hero-stage > .scrim,
.wow-hero-stage > .wfscrim {
  z-index: 0 !important;
  background: linear-gradient(180deg, rgba(5, 5, 9, 0.52) 0%, rgba(5, 5, 9, 0.38) 45%, rgba(5, 5, 9, 0.92) 100%) !important;
}

/* ==========================================================================
   3. HOME HERO (.hero-wall.wow-hero-stage) — 7 PILLARS + 3D ORBITAL ENGINE
   ========================================================================== */
.hero-wall.wow-hero-stage {
  min-height: 100vh;
  max-height: 66rem;
}

.hero-wall.wow-hero-stage .hero-wall-in {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.hero-wall.wow-hero-stage .hero-wall-copy,
.hero-wall.wow-hero-stage .hero-ctas,
.hero-wall.wow-hero-stage .hero-ctas a,
.hero-wall.wow-hero-stage .hero-wall-media,
.hero-wall.wow-hero-stage .hero-rail,
.hero-wall.wow-hero-stage .press-band {
  pointer-events: auto;
}

.hero-wall.wow-hero-stage .hero-wall-copy {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Localized contrast veil behind left copy so 3D orbital rings shine around it */
.hero-wall.wow-hero-stage .hero-copy-live {
  position: relative;
  padding: 1.5rem 1.65rem;
  border-radius: 1.6rem;
  background: radial-gradient(72% 68% at 38% 48%, rgba(5, 5, 10, 0.64) 0%, rgba(5, 5, 10, 0.28) 68%, transparent 100%);
  border: 1px solid rgba(243, 210, 140, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
}

/* Luxury Eyebrow Pill across Home & Internal Heroes */
.wow-hero-stage .eyebrow,
.wow-hero-stage .wc-eyebrow,
.wow-hero-stage .month-stamp {
  display: inline-flex !important;
  align-items: center;
  gap: 0.52rem;
  padding: 0.4rem 0.92rem;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.76);
  border: 1px solid rgba(243, 210, 140, 0.36);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--wow-gold-bright) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.95rem !important;
  width: fit-content;
}
.wow-hero-stage .eyebrow::before,
.wow-hero-stage .wc-eyebrow::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--wow-gold) !important;
  box-shadow: 0 0 10px var(--wow-gold), 0 0 18px var(--wow-cyan) !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

/* Hero Display Headlines & Animated Champagne-Gold / Cyan Sheen */
.wow-hero-stage .h-display,
.wow-hero-stage .wc-h1,
.wow-hero-stage .connect-quiet-h,
.wow-hero-stage.vhero h1,
.wow-hero-stage.wfhero h1 {
  color: #ffffff !important;
  text-shadow:
    0 4px 28px rgba(4, 4, 8, 0.95),
    0 0 64px rgba(4, 4, 8, 0.75) !important;
}

.wow-hero-stage .h-display .accent,
.wow-hero-stage .h-display em,
.wow-hero-stage .wc-h1 .accent,
.wow-hero-stage .connect-quiet-h .accent,
.wow-hero-stage.vhero h1 span,
.wow-hero-stage.wfhero h1 em,
.wow-hero-stage .wow-sheen {
  font-style: normal;
  display: inline;
  background: linear-gradient(100deg, #ffffff 0%, #ffe6a3 32%, #f5b352 66%, #9beeff 92%, #ffffff 100%) !important;
  background-size: 220% 100% !important;
  padding-bottom: 0.05em;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: wowb-sheen 8s ease-in-out infinite;
  filter: drop-shadow(0 6px 24px rgba(229, 154, 60, 0.32));
}

.wow-hero-stage .lede,
.wow-hero-stage .hero-sub,
.wow-hero-stage .wc-lede,
.wow-hero-stage .connect-quiet-why p {
  color: rgba(247, 244, 238, 0.88) !important;
  text-shadow: 0 2px 18px rgba(4, 4, 8, 0.92);
}

.hero-wall.wow-hero-stage .lede-under .accent {
  color: var(--wow-gold-bright) !important;
  font-weight: 600;
}

/* Luxury Pill CTAs inside all WOW Hero stages */
.wow-hero-stage .btn:not(.btn-ghost),
.wow-hero-stage .wowb-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.92rem 1.75rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f9e1a8 0%, #e4a94d 52%, #cf8528 100%) !important;
  color: #07070b !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 246, 218, 0.65) !important;
  box-shadow:
    0 10px 34px rgba(228, 169, 77, 0.38),
    0 0 0 1px rgba(243, 210, 140, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease !important;
}
.wow-hero-stage .btn:not(.btn-ghost):hover,
.wow-hero-stage .wowb-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 42px rgba(243, 210, 140, 0.52),
    0 0 24px rgba(124, 232, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.wow-hero-stage .btn-ghost,
.wow-hero-stage .wowb-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.55rem !important;
  border-radius: 999px !important;
  background: rgba(12, 13, 20, 0.72) !important;
  color: var(--wow-ivory) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(243, 210, 140, 0.34) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease !important;
}
.wow-hero-stage .btn-ghost:hover,
.wow-hero-stage .wowb-cta-ghost:hover {
  background: rgba(243, 210, 140, 0.14) !important;
  border-color: rgba(243, 210, 140, 0.65) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Right-hand Media Frame on Home Hero */
.hero-wall.wow-hero-stage .hero-film video,
.hero-wall.wow-hero-stage .hero-ai {
  border: 1px solid rgba(243, 210, 140, 0.28) !important;
  box-shadow:
    0 28px 70px -24px rgba(0, 0, 0, 0.88),
    0 0 36px rgba(243, 210, 140, 0.12) !important;
  border-radius: 1.15rem !important;
}
.hero-wall.wow-hero-stage .hero-wall-tile {
  border: 1px solid rgba(243, 210, 140, 0.2);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.8);
}
.hero-wall.wow-hero-stage .hero-wall-fade-t {
  background: linear-gradient(#06060b, transparent) !important;
}
.hero-wall.wow-hero-stage .hero-wall-fade-b {
  background: linear-gradient(transparent, #06060b) !important;
}

/* ==========================================================================
   4. HOME 7-PILLAR CHAPTER RAIL (House · AI · Dental · Creative · Sales · Events · Founders)
   ========================================================================== */
.hero-wall.wow-hero-stage .hero-rail {
  z-index: 6;
  background: rgba(10, 11, 16, 0.82) !important;
  border: 1px solid rgba(243, 210, 140, 0.32) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.68),
    0 0 24px rgba(243, 210, 140, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.45rem 0.75rem !important;
  gap: 0.3rem !important;
}

.hero-wall.wow-hero-stage .hero-rail button {
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  color: rgba(247, 244, 238, 0.74) !important;
  transition: all 0.2s ease;
}

.hero-wall.wow-hero-stage .hero-rail button:hover {
  background: rgba(243, 210, 140, 0.1);
  color: #ffffff !important;
}

.hero-wall.wow-hero-stage .hero-rail button .lab {
  padding: 0.18rem 0.38rem !important;
  background: transparent !important;
  color: inherit !important;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.hero-wall.wow-hero-stage .hero-rail button .tick {
  border-color: rgba(243, 210, 140, 0.45) !important;
  background: transparent !important;
}

.hero-wall.wow-hero-stage .hero-rail button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(243, 210, 140, 0.24), rgba(223, 150, 59, 0.18)) !important;
  border: 1px solid rgba(243, 210, 140, 0.65) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(243, 210, 140, 0.22);
}

.hero-wall.wow-hero-stage .hero-rail button[aria-pressed="true"] .tick {
  background: var(--wow-cyan) !important;
  border-color: var(--wow-gold) !important;
  box-shadow: 0 0 8px var(--wow-cyan), 0 0 16px var(--wow-gold) !important;
  transform: scale(1.15);
}

.hero-wall.wow-hero-stage .hero-rail button[aria-pressed="true"] .lab {
  color: var(--wow-gold-bright) !important;
}

.hero-wall.wow-hero-stage > .press-band {
  z-index: 5;
  background: rgba(6, 6, 10, 0.88) !important;
  border-top: 1px solid rgba(243, 210, 140, 0.16) !important;
  border-bottom: 1px solid rgba(243, 210, 140, 0.16) !important;
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   5. INTERNAL PAGES — HERO ADAPTATIONS & INTERACTIVE 3D PILL
   ========================================================================== */
.page-hero.wow-hero-stage,
.vhero.wow-hero-stage,
.wfhero.wow-hero-stage,
.wc-hero.wow-hero-stage,
.connect-quiet.wow-hero-stage,
.wwd-jules.wow-hero-stage,
.res-hero.wow-hero-stage {
  position: relative;
  overflow: hidden;
}

.page-hero.wow-hero-stage .hero-in,
.vhero.wow-hero-stage .inner,
.wfhero.wow-hero-stage .heroin,
.wc-hero.wow-hero-stage .wc-hero-copy,
.wc-hero.wow-hero-stage .wc-hero-photo,
.connect-quiet.wow-hero-stage .connect-quiet-shell,
.wwd-jules.wow-hero-stage .wwd-jules-in,
.res-hero.wow-hero-stage > * {
  position: relative;
  z-index: 3;
}

/* Interactive 3D Mode Switcher / Pulse Pill in Hero Corner */
.wow-mode-pill {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 11, 16, 0.76);
  border: 1px solid rgba(243, 210, 140, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 600 0.62rem/1 var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}
.hero-wall.wow-hero-stage .wow-mode-pill {
  top: 5.1rem;
  bottom: auto;
  right: 1.5rem;
}
.wow-mode-pill .wow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wow-cyan);
  box-shadow: 0 0 8px var(--wow-cyan), 0 0 14px var(--wow-gold);
  animation: wowb-pulse-dot 2.2s ease-in-out infinite;
}
.wow-mode-pill button {
  appearance: none;
  background: rgba(243, 210, 140, 0.12);
  border: 1px solid rgba(243, 210, 140, 0.3);
  color: var(--wow-gold-bright);
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font: inherit;
  font-size: 0.58rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.wow-mode-pill button:hover,
.wow-mode-pill button.is-active {
  background: rgba(243, 210, 140, 0.28);
  border-color: var(--wow-gold);
  color: #ffffff;
}
@media (max-width: 760px) {
  .wow-mode-pill {
    display: none;
  }
}

/* Stat rails inside case-study heroes (The Floor, Events, Wanted Fertility) */
.wow-hero-stage .statrail {
  background: rgba(243, 210, 140, 0.16) !important;
  border: 1px solid rgba(243, 210, 140, 0.28) !important;
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.85);
}
.wow-hero-stage .statrail .stat {
  background: rgba(10, 11, 16, 0.82) !important;
  border-left: 0;
}
.wow-hero-stage .statrail .stat .v {
  background: linear-gradient(95deg, #ffffff 0%, #f5d68e 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.wow-hero-stage .statrail .stat .l {
  color: rgba(247, 244, 238, 0.72) !important;
}

/* What We Do (Jules Desk) with 3D Wow Backdrop */
.wwd-jules.wow-hero-stage {
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}
.wwd-jules.wow-hero-stage .wwd-col-chat,
.wwd-jules.wow-hero-stage .wwd-col-stage {
  background: rgba(12, 13, 20, 0.82) !important;
  border: 1px solid rgba(243, 210, 140, 0.24) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  border-radius: 1.25rem;
}

/* Wave / Community Split Hero with 3D Wow Backdrop */
.wc-hero.wow-hero-stage {
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}
.wc-hero.wow-hero-stage .wc-hero-photo img {
  border: 1px solid rgba(243, 210, 140, 0.32);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.88), 0 0 32px rgba(243, 210, 140, 0.14);
  border-radius: 1.25rem;
}

/* Connect Hero with 3D Wow Backdrop */
.connect-quiet.wow-hero-stage {
  padding-top: 7.5rem;
  padding-bottom: 5.5rem;
}
.connect-quiet.wow-hero-stage .connect-quiet-meta li {
  color: var(--wow-gold-bright) !important;
  border-color: rgba(243, 210, 140, 0.32) !important;
  background: rgba(12, 13, 20, 0.72) !important;
}
.connect-quiet.wow-hero-stage .connect-quiet-viz img {
  border: 1px solid rgba(243, 210, 140, 0.32);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.88), 0 0 32px rgba(243, 210, 140, 0.14);
  border-radius: 1.25rem;
}

/* Resources Hero with 3D Wow Backdrop */
.res-hero.wow-hero-stage {
  padding: 6.5rem 2rem 4rem !important;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(243, 210, 140, 0.24);
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   6. SITE-WIDE INTERACTIVE 3D TILT & GOLD SPOTLIGHT CARDS
   ========================================================================== */
.wow-tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.wow-tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(20rem circle at var(--gx) var(--gy), rgba(243, 210, 140, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wow-tilt-card:hover {
  border-color: rgba(243, 210, 140, 0.42) !important;
  box-shadow: 0 20px 48px -20px rgba(223, 150, 59, 0.2) !important;
}
.wow-tilt-card:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .wow-hero-stage > canvas.wow-hero-canvas {
    display: none !important;
  }
  .wow-tilt-card {
    transform: none !important;
  }
  .wow-hero-stage .h-display .accent,
  .wow-hero-stage .h-display em,
  .wow-hero-stage .wow-sheen {
    animation: none !important;
  }
}
