/* ==========================================================================
   TRENDUSTY ORBIT — BUTTERMAX INSPIRED STUDIO THEME
   Aesthetic: Vibrant Butter Yellow, Deep Charcoal, Expressive Typography,
   3D Floating Hardware Centerpiece, and Buttery Curtain Peel Reveal.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Syne:wght@700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@400;600;700;900&display=swap');

/* --- ROOT THEME VARIABLES --- */
:root.theme-buttermax,
body.theme-buttermax {
  --bm-yellow: #ffd600;
  --bm-yellow-light: #ffea5c;
  --bm-yellow-dark: #ebc600;
  --bm-black: #121212;
  --bm-charcoal: #1a1a1a;
  --bm-card-bg: rgba(18, 24, 38, 0.90);
  --bm-card-dark: #121212;
  --bm-border: 1px solid rgba(255, 255, 255, 0.15);
  --bm-border-thin: 1px solid rgba(255, 255, 255, 0.10);
  --bm-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --bm-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.7);
  --bm-accent-lime: #10b981;
  --bm-accent-coral: #ff4757;
  --bm-accent-cyan: #00d2d3;

  /* Overwrite standard Orbit variables in Buttermax Mode */
  --bg: #0b0b0d;
  --bg-surface: #141418;
  --bg-card: rgba(18, 24, 38, 0.88);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(255, 214, 0, 0.45);
  --accent: #ffd600;
  --accent-dim: rgba(255, 214, 0, 0.12);
  --accent-glow: rgba(255, 214, 0, 0.55);
  --accent-blue: #00f2fe;
  --text: #ffffff;
  --text-muted: rgba(241, 245, 249, 0.92);
  --text-dim: rgba(148, 163, 184, 0.75);
}

body.theme-buttermax {
  background-color: #0b0b0d !important;
  color: #f8fafc !important;
}

body.theme-buttermax::before {
  background-image: linear-gradient(rgba(18, 18, 18, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(18, 18, 18, 0.04) 1px, transparent 1px) !important;
  opacity: 0.7 !important;
}

/* ==========================================================================
   BUTTERMAX HERO CURTAIN (TOP SCREEN EXPERIENCE)
   ========================================================================== */
#buttermax-hero-curtain {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bm-yellow);
  color: var(--bm-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px 30px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2147483644 !important;
  transition: background-color 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: transform;
}

/* 100% Pure Black Screen During Loading */
html.is-site-loading,
body.is-site-loading,
html.is-site-loading #buttermax-hero-curtain,
body.is-site-loading #buttermax-hero-curtain {
  background-color: #0b0b0d !important;
  background-image: none !important;
}

body.is-site-loading #buttermax-hero-curtain #bm-bg-fluid-canvas {
  opacity: 0 !important;
}

/* Background Theme Variants for Hero Curtain */

/* Solar Butter Theme (Default Buttermax Yellow - Image 1 Authentic Aesthetic) */
#buttermax-hero-curtain.bg-butter,
body.bg-butter #buttermax-hero-curtain,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) {
  background-color: #ffdb15 !important;
  color: #121212 !important;
}

/* Ensure dark underlay is NEVER shown in Solar Butter mode */
#buttermax-hero-curtain.bg-butter .bm-curtain-underlay,
#buttermax-hero-curtain:not(.bg-noir) .bm-curtain-underlay {
  display: none !important;
}

body:not(.is-site-loading) #buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-hero-title,
body:not(.is-site-loading) #buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-title-dark,
body:not(.is-site-loading) #buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-title-grotesk,
body:not(.is-site-loading) #buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-l-char,
body:not(.is-site-loading) #buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-title-script,
body:not(.is-site-loading) #buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-hero-title,
body:not(.is-site-loading) #buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-title-dark,
body:not(.is-site-loading) #buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-title-grotesk,
body:not(.is-site-loading) #buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-l-char,
body:not(.is-site-loading) #buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-title-script {
  color: #121212 !important;
  text-shadow: none !important;
}

#buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-title-light,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-title-light {
  color: #ffdb15 !important;
  text-shadow: 0 0 16px rgba(255, 219, 21, 0.6) !important;
}

#buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-title-light .bm-title-grotesk,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-title-light .bm-title-grotesk {
  color: #ffdb15 !important;
}

#buttermax-hero-curtain.bg-butter .bm-headline-wrap .bm-title-light .bm-title-script,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-headline-wrap .bm-title-light .bm-title-script {
  color: #ffdb15 !important;
  text-shadow: 0 0 16px rgba(255, 219, 21, 0.8) !important;
}

#buttermax-hero-curtain.bg-butter .bm-tagline,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-tagline {
  color: #121212 !important;
}

#buttermax-hero-curtain.bg-butter .bm-pill-btn,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-pill-btn {
  background: transparent !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
}

#buttermax-hero-curtain.bg-butter .bm-pill-btn:hover,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-pill-btn:hover {
  background: #121212 !important;
  color: #ffdb15 !important;
}

#buttermax-hero-curtain.bg-butter .bm-close-btn,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-close-btn {
  border-color: #121212 !important;
  color: #121212 !important;
}

#buttermax-hero-curtain.bg-butter .bm-audio-pill,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-audio-pill {
  border-color: #121212 !important;
  color: #121212 !important;
}

#buttermax-hero-curtain.bg-butter .bm-wave-bar,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-wave-bar {
  background: #121212 !important;
}

#buttermax-hero-curtain.bg-butter .bm-peel-btn,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-peel-btn {
  background: #121212 !important;
  color: #ffdb15 !important;
  border-color: #121212 !important;
}

#buttermax-hero-curtain.bg-butter .bm-manifesto-text,
#buttermax-hero-curtain:not(.bg-noir):not(.bg-amber) .bm-manifesto-text {
  color: #121212 !important;
}

#buttermax-hero-curtain.bg-noir,
body.bg-noir #buttermax-hero-curtain {
  background-color: #101010 !important;
  color: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-headline-wrap .bm-title-dark {
  color: #ffffff !important;
}

#buttermax-hero-curtain.bg-noir .bm-headline-wrap .bm-title-dark .bm-title-script {
  color: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-headline-wrap .bm-title-light {
  color: #101010 !important;
}

#buttermax-hero-curtain.bg-noir .bm-headline-wrap .bm-title-light .bm-title-script {
  color: #101010 !important;
}

#buttermax-hero-curtain.bg-noir .bm-tagline {
  color: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-pill-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 214, 0, 0.4) !important;
  color: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-pill-btn:hover {
  background: #ffd600 !important;
  color: #101010 !important;
}

#buttermax-hero-curtain.bg-noir .bm-close-btn {
  border-color: #ffd600 !important;
  color: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-audio-pill {
  border-color: rgba(255, 214, 0, 0.4) !important;
}

#buttermax-hero-curtain.bg-noir .bm-audio-pill.active {
  background: #ffd600 !important;
  color: #101010 !important;
}

#buttermax-hero-curtain.bg-noir .bm-wave-bar {
  background: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-audio-pill.active .bm-wave-bar {
  background: #101010 !important;
}

#buttermax-hero-curtain.bg-noir .bm-peel-btn {
  background: #ffd600 !important;
  color: #101010 !important;
  border-color: #ffd600 !important;
}

#buttermax-hero-curtain.bg-noir .bm-manifesto-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

#buttermax-hero-curtain.bg-amber,
body.bg-amber #buttermax-hero-curtain {
  background-color: #16120b !important;
  color: #ffb703 !important;
}

#buttermax-hero-curtain.bg-amber .bm-headline-wrap .bm-title-dark {
  color: #fff0e0 !important;
}

#buttermax-hero-curtain.bg-amber .bm-headline-wrap .bm-title-dark .bm-title-script {
  color: #ffb703 !important;
}

#buttermax-hero-curtain.bg-amber .bm-headline-wrap .bm-title-light {
  color: #16120b !important;
}

#buttermax-hero-curtain.bg-amber .bm-tagline {
  color: #ffb703 !important;
}

#buttermax-hero-curtain.bg-amber .bm-pill-btn {
  background: rgba(255, 183, 3, 0.1) !important;
  border: 1.5px solid rgba(255, 183, 3, 0.4) !important;
  color: #ffb703 !important;
}

#buttermax-hero-curtain.bg-amber .bm-pill-btn:hover {
  background: #ffb703 !important;
  color: #16120b !important;
}

#buttermax-hero-curtain.bg-amber .bm-peel-btn {
  background: #ffb703 !important;
  color: #16120b !important;
  border-color: #ffb703 !important;
}

#buttermax-hero-curtain.bg-amber .bm-manifesto-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Orbit Studio is the permanent First Scene of the website */
#buttermax-hero-curtain,
#buttermax-hero-curtain.peeled {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Unpeel button is hidden because Orbit Studio is always right at the top as the first scene */
#buttermax-unpeel-btn,
#buttermax-unpeel-btn.visible {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

#buttermax-unpeel-btn:hover {
  background: #ffffff;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 4px 4px 0px #121212;
}

/* --- HERO TOP BAR --- */
.bm-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 10;
}

.bm-left-action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bm-top-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.bm-top-logo-link:hover {
  transform: scale(1.04);
}

.bm-top-logo-img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
}

@media (max-width: 768px) {
  .bm-top-logo-img {
    height: 32px;
    max-width: 105px;
  }
}

.bm-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--bm-black);
  background: transparent;
  color: var(--bm-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease;
}

.bm-close-btn:hover {
  background: var(--bm-black);
  color: var(--bm-yellow);
  transform: rotate(90deg);
}

.bm-close-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Audio Visualizer Pill (Center of Top Bar) */
.bm-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1.5px solid var(--bm-black);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-audio-pill:hover {
  background: rgba(18, 18, 18, 0.08);
}

.bm-soundwave-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.bm-wave-bar {
  width: 2.5px;
  height: 6px;
  background-color: var(--bm-black);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.bm-audio-pill.playing .bm-wave-bar:nth-child(1) { animation: bmSoundWave 0.7s infinite alternate ease-in-out; }
.bm-audio-pill.playing .bm-wave-bar:nth-child(2) { animation: bmSoundWave 0.5s infinite alternate ease-in-out 0.15s; }
.bm-audio-pill.playing .bm-wave-bar:nth-child(3) { animation: bmSoundWave 0.9s infinite alternate ease-in-out 0.3s; }
.bm-audio-pill.playing .bm-wave-bar:nth-child(4) { animation: bmSoundWave 0.6s infinite alternate ease-in-out 0.1s; }
.bm-audio-pill.playing .bm-wave-bar:nth-child(5) { animation: bmSoundWave 0.8s infinite alternate ease-in-out 0.25s; }

@keyframes bmSoundWave {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Nav Pills (Right of Top Bar) */
.bm-nav-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border: 1.5px solid var(--bm-black);
  border-radius: 999px;
  background: transparent;
  color: var(--bm-black);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.bm-pill-btn:hover {
  background: var(--bm-black);
  color: var(--bm-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 18, 18, 0.15);
}

.bm-pill-btn.theme-toggle-btn {
  background: var(--bm-black);
  color: var(--bm-yellow);
}

.bm-pill-btn.theme-toggle-btn:hover {
  background: #ffffff;
  color: var(--bm-black);
}

/* ==========================================================================
   HERO CENTERSTAGE & TYPOGRAPHY
   ========================================================================== */
.bm-hero-centerstage {
  position: relative;
  z-index: 50 !important;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 20px 0;
  text-align: center;
}

/* Cosmetic Revealer Underlay: Deep Obsidian & Cyber Hologram revealed by fluid scratch-off */
.bm-curtain-underlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 48%, rgba(0, 245, 184, 0.12) 0%, rgba(16, 16, 16, 0.98) 65%, #0a0a0c 100%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.95;
}

.bm-underlay-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 184, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 25%, transparent 80%);
}

.bm-underlay-globe-holo {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 245, 184, 0.35);
  box-shadow: 0 0 60px rgba(0, 242, 254, 0.18), inset 0 0 60px rgba(255, 214, 0, 0.10);
  animation: bmHoloSpin 45s linear infinite;
}

.bm-underlay-telemetry {
  position: absolute;
  bottom: 90px;
  left: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Space Mono', monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(0, 245, 184, 0.65);
}

.bm-tele-tag {
  background: rgba(0, 245, 184, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border-left: 2px solid #00f5b8;
}

@keyframes bmHoloSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Background Liquid Fluid Canvas */
.bm-bg-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Whole-Website Interactive Background Liquid Canvas */
#orbit-liquid-bg-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 1 !important;
  opacity: 1 !important;
}

/* Ensure all page content containers sit above the background canvas */
.container,
header,
main,
section,
footer,
.hero,
.showcase,
.why-section,
.steps-section,
.feeds-section,
.other-apps-section,
.bottom-mission-banner,
#spatial-stage,
.spatial-hud-controls {
  position: relative;
  z-index: 2;
}


.bm-blob-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#buttermax-hero-curtain > *:not(.bm-bg-fluid-canvas):not(.bm-blob-svg-defs) {
  position: relative;
  z-index: 2;
}

/* Fixed High-Performance Fluid Cursor Canvas (Metaball Liquid Ink) */
#orbit-fluid-cursor-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 2147483646 !important;
  display: block !important;
  transform: translateZ(0);
  will-change: transform;
}

@media (pointer: coarse) and (hover: none) {
  #orbit-fluid-cursor-canvas {
    display: none !important;
  }
}

/* Fixed Background Canvas for Liquid Ink Engine */
#orbit-liquid-bg-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Allow background liquid animation to shine through across all sections */
section,
.hero,
.showcase,
.why-section,
.steps-section,
.feeds-section,
.other-apps-section,
.gestube-showcase-section {
  background-color: transparent !important;
}


/* Massive Headline Typography & Inversion Dual-Layer */
.bm-headline-wrap {
  position: relative;
  z-index: 3;
  margin-bottom: 0px;
  user-select: none;
}

.bm-hero-title {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 6.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--bm-black);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 96vw;
  box-sizing: border-box;
}

.bm-title-dark {
  position: relative;
  z-index: 1;
  color: var(--bm-black) !important;
}

.bm-title-light {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #ffffff !important;
  pointer-events: none;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.bm-title-light .bm-title-grotesk {
  color: #ffffff !important;
}

.bm-title-light .bm-title-script {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
}

.bm-title-grotesk {
  display: inline-block;
  transform: scaleY(1.02);
}

.bm-title-script {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-style: italic;
  font-size: 1.15em;
  letter-spacing: -0.01em;
  margin-left: -0.08em;
  color: var(--bm-black);
  transform: rotate(-6deg) translateY(0.04em);
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.4);
}

.bm-tagline {
  font-family: 'Syne', 'Inter', sans-serif;
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bm-black);
  margin-top: 14px;
  opacity: 0.9;
}

/* Studio Statement Manifesto */
.bm-manifesto-text {
  max-width: 680px;
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bm-black);
  margin: 16px auto 0;
  opacity: 0.85;
}

/* ==========================================================================
   3D FLOATING CONSOLE & CONTACT SHADOW
   ========================================================================== */
.bm-console-viewport {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 380px;
  margin: -65px auto 0;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 5;
}

.bm-console-viewport:active {
  cursor: grabbing;
}

/* Soft Dynamic Contact Shadow on Yellow Floor (Pure Gradient Falloff - Zero GPU Blur Filter) */
.bm-drop-shadow {
  position: absolute;
  bottom: 20px;
  width: 320px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.30) 30%, rgba(18, 18, 18, 0.08) 60%, transparent 75%);
  border-radius: 50%;
  transform-origin: center center;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

/* 3D Hardware Shell (Pure Compositor Glass - Zero Synchronous Backdrop Blur) */
.bm-device-3d {
  position: relative;
  width: 250px;
  height: 330px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65) 0%, rgba(220, 220, 220, 0.35) 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    0 24px 48px -12px rgba(0, 0, 0, 0.35);
  border-radius: 36px 36px 42px 42px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2;
}

/* Internal PCB Circuit Elements */
.bm-device-pcb {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(18, 18, 18, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(18, 18, 18, 0.08) 2px, transparent 2px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.6;
}

/* Glowing Screen Bezel */
.bm-screen-bezel {
  position: relative;
  width: 100%;
  height: 165px;
  background: #090d14;
  border-radius: 20px;
  border: 2px solid #1a2230;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 245, 184, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 3;
}

/* Active Screen Canvas */
.bm-screen-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Screen HUD Overlay */
.bm-screen-hud {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  color: #00f5b8;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px #00f5b8;
  pointer-events: none;
}

/* Hardware Controls Section */
.bm-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 8px;
  z-index: 3;
}

/* D-Pad Cross */
.bm-dpad {
  position: relative;
  width: 58px;
  height: 58px;
}

.bm-dpad-center {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 20px;
  height: 20px;
  background: #2a2a2a;
}

.bm-dpad-btn {
  position: absolute;
  background: linear-gradient(180deg, #383838 0%, #1f1f1f 100%);
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.bm-dpad-btn.up { top: 0; left: 19px; width: 20px; height: 20px; border-radius: 5px 5px 0 0; }
.bm-dpad-btn.down { bottom: 0; left: 19px; width: 20px; height: 20px; border-radius: 0 0 5px 5px; }
.bm-dpad-btn.left { top: 19px; left: 0; width: 20px; height: 20px; border-radius: 5px 0 0 5px; }
.bm-dpad-btn.right { top: 19px; right: 0; width: 20px; height: 20px; border-radius: 0 5px 5px 0; }

/* Action Buttons (Diagonal Pair) */
.bm-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-25deg);
}

.bm-btn-round {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4757, #c0392b);
  border: 1.5px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  transition: transform 0.1s ease;
}

.bm-btn-round:nth-child(2) {
  background: linear-gradient(145deg, #00d2d3, #0abde3);
}

.bm-btn-round:active {
  transform: scale(0.92);
}

/* Sound Grille Slots */
.bm-speaker-grille {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-right: 14px;
}

.bm-grille-slot {
  width: 4px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 3px;
  transform: rotate(-28deg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

/* ==========================================================================
   HERO BOTTOM BAR & CURTAIN REVEAL MECHANIC
   ========================================================================= */
.bm-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 10;
}

.bm-page-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bm-black);
}

.bm-colon-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bm-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--bm-black);
}

/* Center Down Arrow (Curtain Peel Trigger) */
.bm-peel-trigger-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bm-peel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--bm-black);
  border-radius: 999px;
  padding: 8px 22px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bm-black);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bm-peel-btn svg {
  width: 14px;
  height: 14px;
  animation: bmBounce 1.6s infinite ease-in-out;
}

.bm-peel-btn:hover {
  background: var(--bm-black);
  color: var(--bm-yellow);
  transform: translateY(3px);
  box-shadow: 0 6px 16px rgba(18, 18, 18, 0.2);
}

@keyframes bmBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.bm-status-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bm-black);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bm-green-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ==========================================================================
   RESTYLED SITE SECTIONS FOR BUTTERMAX THEME
   High-contrast, brutalist-editorial design with butter yellow cards
   ========================================================================== */
header:not(.hero-section) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

header .container.nav-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 8px clamp(12px, 2vw, 28px) !important;
  gap: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  min-height: 64px !important;
}

.brand {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.nav-links a {
  white-space: nowrap !important;
  padding: 4px 6px !important;
  font-size: 13px !important;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-actions .btn-ghost,
.nav-actions .btn-primary,
.nav-actions .btn-auth-corner,
.nav-actions .lang-select {
  padding: 6px 12px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   ROCK-SOLID RESPONSIVE NAVBAR ENGINE (ZERO OVERFLOW / 100% VISIBILITY)
   ========================================================================== */
header:not(.hero-section) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

header .container.nav-inner {
  max-width: 100vw !important;
  width: 100% !important;
  padding: 8px clamp(12px, 2vw, 24px) !important;
  gap: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  min-height: 64px !important;
  overflow: hidden !important;
}

.brand {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.nav-links a {
  white-space: nowrap !important;
  padding: 4px 6px !important;
  font-size: 13px !important;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-actions .btn-ghost,
.nav-actions .btn-primary,
.nav-actions .btn-auth-corner,
.nav-actions .lang-select {
  padding: 6px 12px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Responsive Navbar: All navigation tabs remain visible and accessible */
@media (max-width: 1580px) {
  .nav-links {
    gap: 8px !important;
  }
  .nav-links a {
    padding: 4px 5px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 1380px) {
  .nav-links {
    gap: 6px !important;
  }
  .nav-links a {
    padding: 3px 5px !important;
    font-size: 11.5px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary,
  .nav-actions .btn-auth-corner {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 1140px) {
  .nav-links {
    gap: 5px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  .nav-links::-webkit-scrollbar {
    display: none !important;
  }
  .nav-links a {
    padding: 3px 4px !important;
    font-size: 11px !important;
  }
}

/* Small Laptop / Tablet Landscape (<= 980px): Compact buttons */
@media (max-width: 980px) {
  .nav-actions a[data-i18n="nav_download"] {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
  .nav-actions .lang-select {
    padding: 5px 6px !important;
    font-size: 11px !important;
  }
}

/* Tablet Portrait / Mobile (<= 820px): Icon-only compact mode */
@media (max-width: 820px) {
  header .container.nav-inner {
    padding: 6px 10px !important;
  }
  .auth-btn-label {
    display: none !important;
  }
  .nav-actions {
    gap: 4px !important;
  }
}

body.theme-buttermax header {
  background: rgba(14, 16, 22, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body.theme-buttermax .nav-links a {
  color: rgba(248, 250, 252, 0.88) !important;
  font-weight: 700 !important;
}

body.theme-buttermax .nav-links a:hover {
  color: #ffd600 !important;
  background: rgba(255, 214, 0, 0.12) !important;
  border-radius: 999px !important;
}

body.theme-buttermax .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

body.theme-buttermax .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffd600 !important;
}

body.theme-buttermax .btn-primary {
  background: #ffd600 !important;
  color: #101010 !important;
  border: 1.5px solid #ffd600 !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(255, 214, 0, 0.35) !important;
}

body.theme-buttermax .btn-primary:hover {
  background: #ffffff !important;
  color: #101010 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
}

body.theme-buttermax .btn-auth-corner {
  background: #ffd600 !important;
  color: #101010 !important;
  border-radius: 999px !important;
}

/* Feature & Capability Cards & High-Contrast Typography */
body.theme-buttermax .why-card,
body.theme-buttermax .cap-card,
body.theme-buttermax .other-card,
body.theme-buttermax .stat-item,
body.theme-buttermax .feed-card,
body.theme-buttermax .feature-card,
body.theme-buttermax .step-card,
body.theme-buttermax .capability-card {
  background: rgba(18, 24, 38, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 214, 0, 0.05) !important;
  color: #ffffff !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

body.theme-buttermax .why-card:hover,
body.theme-buttermax .cap-card:hover,
body.theme-buttermax .other-card:hover,
body.theme-buttermax .feature-card:hover,
body.theme-buttermax .step-card:hover,
body.theme-buttermax .capability-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 214, 0, 0.5) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 214, 0, 0.15) !important;
}

body.theme-buttermax .why-card h3,
body.theme-buttermax .cap-card h3,
body.theme-buttermax .other-card h3,
body.theme-buttermax .feature-card h3,
body.theme-buttermax .step-card h3,
body.theme-buttermax .capability-card h3 {
  color: #ffffff !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
}

body.theme-buttermax .why-card p,
body.theme-buttermax .cap-card p,
body.theme-buttermax .other-card p,
body.theme-buttermax .feature-card p,
body.theme-buttermax .step-card p,
body.theme-buttermax .capability-card p {
  color: rgba(226, 232, 240, 0.88) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* 100% Guaranteed High-Contrast Visibility for Section Titles & Descriptions */
body.theme-buttermax .section-title {
  color: #ffffff !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85) !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-buttermax .section-desc {
  color: rgba(241, 245, 249, 0.95) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85) !important;
  max-width: 720px !important;
}

body.theme-buttermax .section-tag {
  background: rgba(255, 214, 0, 0.14) !important;
  color: #ffd600 !important;
  border: 1px solid rgba(255, 214, 0, 0.35) !important;
  border-radius: 999px !important;
  padding: 5px 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.3) !important;
}

/* Ensure no elements get trapped in opacity: 0 */
body.theme-buttermax .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ==========================================================================
   HIGH-CONTRAST SATELLITE COP PREVIEW (PITCH-DARK TACTICAL VIEWPORT)
   Guarantees 100% crystal-clear readability for telemetry, ephemeris & HUDs
   ========================================================================== */
body.theme-buttermax .preview-panel {
  border: 2px solid #121212 !important;
  border-radius: 24px !important;
  box-shadow: 8px 8px 0px #121212 !important;
  background: #06090f !important;
  overflow: hidden !important;
}

body.theme-buttermax .preview-panel-header {
  background: #121212 !important;
  color: #ffffff !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.14) !important;
}

body.theme-buttermax .cop-title {
  color: #ffffff !important;
}

body.theme-buttermax .cop-title strong {
  color: #ffffff !important;
  letter-spacing: 1.5px !important;
}

body.theme-buttermax .status-pulse-dot {
  background: #00f5b8 !important;
  box-shadow: 0 0 10px #00f5b8 !important;
}

body.theme-buttermax .cop-coords {
  color: #00f5b8 !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

body.theme-buttermax .cop-fullscreen-btn,
body.theme-buttermax .cop-earth-mode-btn {
  background: var(--bm-yellow) !important;
  color: #121212 !important;
  border: 1.5px solid #121212 !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

body.theme-buttermax .cop-fullscreen-btn:hover,
body.theme-buttermax .cop-earth-mode-btn:hover {
  background: #ffffff !important;
  color: #121212 !important;
  transform: translateY(-1px) !important;
}

/* Tactical HUD Cards (All 4 Quadrants) */
body.theme-buttermax .hud-card {
  background: rgba(8, 12, 20, 0.96) !important;
  border: 1px solid rgba(0, 245, 184, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 245, 184, 0.12) !important;
}

body.theme-buttermax .hud-card-label {
  color: #00f5b8 !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
}

body.theme-buttermax .hud-card .val-accent {
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .hud-card .val-warning {
  color: #ff9f43 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .hud-action-btn {
  background: rgba(0, 245, 184, 0.15) !important;
  border: 1px solid #00f5b8 !important;
  color: #00f5b8 !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
}

body.theme-buttermax .hud-action-btn.active,
body.theme-buttermax .hud-action-btn:hover {
  background: #00f5b8 !important;
  color: #05070a !important;
  box-shadow: 0 0 12px rgba(0, 245, 184, 0.6) !important;
}

/* CCTV Recon Window */
body.theme-buttermax .cctv-header-badge {
  color: #ff4757 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .cctv-red-dot {
  background: #ff4757 !important;
  box-shadow: 0 0 8px #ff4757 !important;
}

body.theme-buttermax .cctv-cam-id {
  color: #00f5b8 !important;
  background: rgba(3, 5, 8, 0.9) !important;
  font-weight: 700 !important;
}

body.theme-buttermax .cctv-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body.theme-buttermax .cctv-btn.active {
  background: #00f5b8 !important;
  color: #05070a !important;
  border-color: #00f5b8 !important;
  font-weight: 700 !important;
}

/* Zoom & View Controls */
body.theme-buttermax .cop-zoom-btn {
  background: rgba(8, 12, 20, 0.94) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 245, 184, 0.35) !important;
}

body.theme-buttermax .cop-zoom-btn:hover {
  background: #00f5b8 !important;
  color: #05070a !important;
  box-shadow: 0 0 12px #00f5b8 !important;
}

body.theme-buttermax .cop-zoom-indicator {
  color: #00f5b8 !important;
  background: rgba(6, 11, 20, 0.95) !important;
  border: 1px solid rgba(0, 245, 184, 0.45) !important;
  font-weight: 700 !important;
}

/* Bottom Controls & Layer Buttons */
body.theme-buttermax .cop-controls-bottom {
  background: rgba(8, 12, 20, 0.96) !important;
  border: 1px solid rgba(0, 245, 184, 0.35) !important;
}

body.theme-buttermax .cop-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.theme-buttermax .cop-btn.active {
  background: #00f5b8 !important;
  color: #05070a !important;
  border-color: #00f5b8 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(0, 245, 184, 0.5) !important;
}

body.theme-buttermax .preview-panel-footer {
  background: rgba(8, 12, 18, 0.98) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.theme-buttermax .intel-dossier-popup {
  background: rgba(7, 12, 22, 0.96) !important;
  border: 1px solid rgba(0, 245, 184, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 245, 184, 0.2) !important;
}

body.theme-buttermax .intel-dossier-popup .dossier-title {
  color: #ffffff !important;
}

body.theme-buttermax .intel-dossier-popup .dossier-subtitle {
  color: #00f5b8 !important;
}

body.theme-buttermax .intel-dossier-popup .dossier-item {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.theme-buttermax .intel-dossier-popup .dossier-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================================================
   OTHER FEATURES & APPS ECOSYSTEM (HIGH-CONTRAST READABILITY)
   ========================================================================== */
body.theme-buttermax .unified-ecosystem-bg {
  background: linear-gradient(155deg, rgba(12, 19, 32, 0.96) 0%, rgba(6, 10, 18, 0.99) 100%) !important;
  border: 2px solid #121212 !important;
  box-shadow: 8px 8px 0px #121212 !important;
  color: #ffffff !important;
}

body.theme-buttermax .unified-ecosystem-header .section-tag {
  background: rgba(0, 245, 184, 0.15) !important;
  color: #00f5b8 !important;
  border: 1px solid rgba(0, 245, 184, 0.4) !important;
  font-weight: 800 !important;
}

body.theme-buttermax .unified-status-pill {
  background: rgba(0, 245, 184, 0.12) !important;
  border: 1px solid rgba(0, 245, 184, 0.4) !important;
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .unified-ecosystem-header .section-title {
  color: #ffffff !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
}

body.theme-buttermax .unified-ecosystem-header .section-desc {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Download Setup Card inside Ecosystem */
body.theme-buttermax .ecosystem-download-card {
  background: linear-gradient(160deg, rgba(16, 26, 44, 0.98), rgba(7, 12, 22, 0.99)) !important;
  border: 1px solid rgba(0, 245, 184, 0.35) !important;
  color: #ffffff !important;
}

body.theme-buttermax .dl-card-badge {
  background: rgba(0, 245, 184, 0.15) !important;
  border: 1px solid rgba(0, 245, 184, 0.4) !important;
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .dl-card-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.theme-buttermax .dl-card-meta {
  color: rgba(255, 255, 255, 0.65) !important;
}

body.theme-buttermax .dl-card-meta span {
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .dl-card-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6 !important;
}

body.theme-buttermax .dl-sub-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600 !important;
}

body.theme-buttermax .dl-sub-btn:hover {
  background: rgba(0, 245, 184, 0.15) !important;
  border-color: #00f5b8 !important;
  color: #00f5b8 !important;
}

body.theme-buttermax .dl-card-checksum {
  background: rgba(3, 5, 8, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.theme-buttermax .dl-card-checksum span {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.theme-buttermax .dl-card-checksum span strong {
  color: #ffffff !important;
}

body.theme-buttermax .dl-card-feat-item {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.theme-buttermax .dl-card-feat-item strong {
  color: #00f5b8 !important;
}

/* Companion Apps (EchoNode & Retrosmart) */
body.theme-buttermax .app-rect-card {
  background: linear-gradient(145deg, rgba(13, 20, 32, 0.98), rgba(7, 11, 18, 0.99)) !important;
  border: 1px solid rgba(0, 245, 184, 0.3) !important;
  color: #ffffff !important;
}

body.theme-buttermax .app-rect-name {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.theme-buttermax .app-rect-tagline {
  color: #00f5b8 !important;
  font-weight: 600 !important;
}

body.theme-buttermax .app-rect-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6 !important;
}

body.theme-buttermax .app-rect-status-tag {
  background: rgba(3, 7, 18, 0.9) !important;
  border: 1px solid rgba(0, 245, 184, 0.45) !important;
  color: #00f5b8 !important;
}

body.theme-buttermax .highlight-chip {
  background: rgba(10, 16, 26, 0.85) !important;
  border: 1px solid rgba(0, 245, 184, 0.22) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

body.theme-buttermax .highlight-chip strong {
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .highlight-chip:hover {
  background: rgba(14, 22, 36, 0.98) !important;
  border-color: #00f5b8 !important;
}

body.theme-buttermax .app-launch-btn {
  background: rgba(0, 245, 184, 0.15) !important;
  border: 1px solid #00f5b8 !important;
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .app-launch-btn:hover {
  background: #00f5b8 !important;
  color: #05070a !important;
}

body.theme-buttermax .app-rect-card-secondary {
  border-color: rgba(56, 189, 248, 0.3) !important;
}

body.theme-buttermax .app-rect-card-secondary .app-rect-tagline {
  color: #38bdf8 !important;
}

body.theme-buttermax .app-rect-card-secondary .highlight-chip strong {
  color: #38bdf8 !important;
}

/* ==========================================================================
   
/* ==========================================================================
   UNIFIED ECOSYSTEM: SMALL & EVEN CATEGORY CARDS GRID
   ========================================================================== */
.unified-ecosystem-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

@media (max-width: 860px) {
  .unified-ecosystem-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.category-even-card {
  cursor: pointer;
  background: linear-gradient(160deg, rgba(14, 22, 38, 0.95) 0%, rgba(7, 12, 20, 0.98) 100%);
  border: 1px solid rgba(0, 245, 184, 0.22);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 245, 184, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  box-sizing: border-box;
}

.category-even-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  z-index: 2;
}

.category-even-card.card-orbit::before {
  background: linear-gradient(90deg, #00f5b8, #38bdf8);
}
.category-even-card.card-jarvis::before {
  background: linear-gradient(90deg, #fbbf24, #00f5b8);
}
.category-even-card.card-echonode::before {
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}
.category-even-card.card-retrosmart::before {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.category-even-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 245, 184, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 245, 184, 0.15);
}

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.category-badge-pill {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  color: #00f5b8;
  background: rgba(0, 245, 184, 0.1);
  border: 1px solid rgba(0, 245, 184, 0.3);
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.category-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #091322;
  border: 1px solid rgba(0, 245, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.category-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.category-card-sub {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 0.2px;
}

.category-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.category-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-chip {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card-btn {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.category-card-btn-primary {
  flex: 1;
  background: #00f5b8;
  color: #030508 !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 245, 184, 0.3);
  border: none;
}

.category-card-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 245, 184, 0.45);
}

.category-card-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.category-card-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.category-card-btn-icon {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.category-card-btn-icon:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: translateY(-1px);
}

/* Buttermax Theme Overrides */
body.theme-buttermax .category-even-card {
  background: linear-gradient(160deg, rgba(16, 26, 44, 0.98), rgba(7, 12, 22, 0.99)) !important;
  border: 1px solid rgba(0, 245, 184, 0.3) !important;
  box-shadow: 6px 6px 0px #121212 !important;
  color: #ffffff !important;
}

body.theme-buttermax .category-even-card:hover {
  box-shadow: 8px 8px 0px #121212 !important;
  border-color: rgba(0, 245, 184, 0.6) !important;
}

body.theme-buttermax .category-card-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.theme-buttermax .category-card-sub {
  color: rgba(255, 255, 255, 0.65) !important;
}

body.theme-buttermax .category-card-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-buttermax .category-chip {
  background: rgba(10, 16, 26, 0.85) !important;
  border: 1px solid rgba(0, 245, 184, 0.2) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-buttermax .category-card-actions {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}


BOTTOM MISSION OPERATIONS BANNER, STEP CARDS & FEED PILLS
   ========================================================================== */
body.theme-buttermax .bottom-mission-banner .container {
  background: rgba(7, 14, 24, 0.95) !important;
  border: 2px solid #121212 !important;
  box-shadow: 8px 8px 0px #121212 !important;
  color: #ffffff !important;
}

body.theme-buttermax .bottom-mission-banner .section-title {
  color: #ffffff !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
}

body.theme-buttermax .bottom-mission-banner .section-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-buttermax .bottom-mission-banner div[style*="CONTINUOUS ORBITAL WATCH"] {
  background: rgba(0, 245, 184, 0.15) !important;
  border-color: rgba(0, 245, 184, 0.4) !important;
  color: #00f5b8 !important;
  font-weight: 700 !important;
}

/* Step Cards in Buttermax Mode */
body.theme-buttermax .step-card {
  background: #ffffff !important;
  border: 2px solid #121212 !important;
  border-radius: 20px !important;
  box-shadow: 5px 5px 0px #121212 !important;
  color: #121212 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.theme-buttermax .step-card:hover {
  transform: translate(-3px, -3px) !important;
  box-shadow: 8px 8px 0px #121212 !important;
}

body.theme-buttermax .step-num {
  color: #121212 !important;
  opacity: 0.25 !important;
  font-weight: 900 !important;
}

body.theme-buttermax .step-card h3 {
  color: #121212 !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
}

body.theme-buttermax .step-card p {
  color: rgba(18, 18, 18, 0.78) !important;
}

/* Feed Pills in Buttermax Mode */
body.theme-buttermax .feed-pill {
  background: #ffffff !important;
  color: #121212 !important;
  border: 1.5px solid #121212 !important;
  box-shadow: 2px 2px 0px #121212 !important;
  font-weight: 700 !important;
}

body.theme-buttermax .hero-badge {
  background: #ffffff !important;
  border: 1.5px solid #121212 !important;
  box-shadow: 2px 2px 0px #121212 !important;
  color: #121212 !important;
  font-weight: 700 !important;
}

/* Footer */
body.theme-buttermax footer {
  background: #121212 !important;
  color: #ffffff !important;
  border-top: 2px solid #121212 !important;
}

body.theme-buttermax footer a {
  color: var(--bm-yellow) !important;
}

/* ==========================================================================
   MOBILE & RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 850px) {
  #buttermax-hero-curtain {
    padding: 16px 16px 20px;
  }

  .bm-nav-pills .bm-pill-btn:not(.theme-toggle-btn) {
    display: none;
  }

  .bm-hero-title {
    font-size: clamp(1.8rem, 8.5vw, 3.2rem);
    flex-wrap: wrap;
    white-space: normal;
  }

  .bm-manifesto-text {
    font-size: 12px;
    padding: 0 10px;
  }

  .bm-console-viewport {
    height: 320px;
    max-width: 320px;
  }

  .bm-device-3d {
    width: 210px;
    height: 280px;
    border-radius: 28px;
    padding: 12px;
  }

  .bm-screen-bezel {
    height: 135px;
  }

  .bm-drop-shadow {
    width: 250px;
    height: 45px;
    bottom: 15px;
  }

  .bm-bottom-bar {
    font-size: 10px;
  }
}

/* ==========================================================================
   BUTTERMAX-INSPIRED BUTTERY PAGE TRANSITION OVERLAY
   ========================================================================== */
.orbit-page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}

.orbit-page-transition.active {
  visibility: visible;
  pointer-events: auto;
}

.orbit-page-transition .opt-curtain-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #101010;
  border-bottom: 4px solid #ffd600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.orbit-page-transition.entering .opt-curtain-layer {
  transform: translateY(0%);
}

.orbit-page-transition.leaving .opt-curtain-layer {
  transform: translateY(100%);
}

.opt-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ffd600;
  text-align: center;
}

.opt-symbol {
  animation: optRadarSpin 2s infinite linear;
}

@keyframes optRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.opt-title {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.16em;
  color: #ffd600;
  text-transform: uppercase;
}

.opt-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.opt-loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.opt-loader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: #ffd600;
  border-radius: 999px;
  animation: optBarSlide 0.9s infinite ease-in-out;
}

@keyframes optBarSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(150%); }
  100% { transform: translateX(350%); }
}

/* ==========================================================================
   BUTTERMAX UNIFIED FLUID LIQUID CURSOR & MAGNETIC LENS
   ========================================================================== */
body.theme-buttermax #orbit-cursor-dot,
body.theme-buttermax #orbit-cursor-ring {
  display: block !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
}

body.theme-buttermax .mouse-trail-dot {
  display: none !important;
}

/* Hide rigid tactical HUD reticles in Buttermax mode */
body.theme-buttermax #orbit-cursor-ring .tc-bracket,
body.theme-buttermax #orbit-cursor-ring .tc-hud-reticle {
  display: none !important;
}

/* Hovering over clickable items: Expanded Molten Lens */
body.theme-buttermax #orbit-cursor-ring.is-hovering {
  width: 68px !important;
  height: 68px !important;
  background: rgba(238, 0, 255, 0.26) !important;
  border-color: #EE00FF !important;
  box-shadow: 0 0 35px rgba(238, 0, 255, 0.7) !important;
}

/* Active click press response */
body.theme-buttermax #orbit-cursor-ring.is-active {
  width: 36px !important;
  height: 36px !important;
  background: rgba(238, 0, 255, 0.42) !important;
  border-color: #EE00FF !important;
}

body.theme-buttermax #orbit-cursor-dot.is-active {
  transform: translate(-50%, -50%) scale(0.8) !important;
  background: #EE00FF !important;
  box-shadow: 0 0 20px rgba(238, 0, 255, 1) !important;
}

/* Native Instant Scroll Fallback (Zero delay) */
[data-scroll="native"],
html:has([data-scroll="native"]) {
  scroll-behavior: auto !important;
}

/* Smooth HTML scroll momentum */
html.has-butter-smooth:not(:has([data-scroll="native"])) {
  scroll-behavior: smooth !important;
}

/* ==========================================================================
   BUTTERMAX IN-PLACE WRITING LOADER & HERO REVEAL
   ========================================================================== */
#buttermax-hero-curtain .bm-site-loader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #0b0b0d;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), display 0.8s, visibility 0.8s ease;
  transition-behavior: allow-discrete;
}

#buttermax-hero-curtain .bm-site-loader.is-loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Subtle ambient glow on the black screen */
.bm-loader-ambient-glow {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 600px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 214, 0, 0.08) 0%, rgba(0, 245, 184, 0.04) 45%, transparent 75%);
  pointer-events: none;
}

/* Centerstage & Headline Stacking Context: Render on top of black loader & swarm rebuild */
.bm-hero-centerstage {
  position: relative;
  z-index: 2147483644 !important;
}

#buttermax-hero-curtain .bm-headline-wrap {
  position: relative;
  z-index: 2147483646 !important;
}

/* During site loading: Hide other page elements so only the writing headline is seen */
body.is-site-loading #buttermax-hero-curtain .bm-top-bar,
body.is-site-loading #buttermax-hero-curtain .bm-console-viewport,
body.is-site-loading #buttermax-hero-curtain .bm-curtain-underlay,
body.is-site-loading #buttermax-hero-curtain #bm-bg-fluid-canvas,
body.is-site-loading #buttermax-unpeel-btn {
  opacity: 0 !important;
  transform: translateY(24px);
  pointer-events: none;
}

.bm-top-bar,
.bm-console-viewport,
.bm-curtain-underlay,
#buttermax-unpeel-btn {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specificity fix: Force white and gold colors on the black screen */
body.is-site-loading #buttermax-hero-curtain .bm-headline-wrap .bm-hero-title,
body.is-site-loading #buttermax-hero-curtain .bm-headline-wrap .bm-title-dark,
body.is-site-loading #buttermax-hero-curtain .bm-headline-wrap .bm-title-grotesk {
  color: #ffffff !important;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 45px rgba(255, 214, 0, 0.35) !important;
}

body.is-site-loading #buttermax-hero-curtain .bm-headline-wrap .bm-title-script {
  color: #ffd600 !important;
  text-shadow: 0 0 22px rgba(255, 214, 0, 0.9), 0 0 45px rgba(255, 170, 0, 0.55) !important;
}

body.is-site-loading #buttermax-hero-curtain .bm-tagline {
  color: rgba(255, 214, 0, 0.88) !important;
  opacity: 0;
  transform: translateY(8px);
  animation: bmTaglineReveal 0.6s ease-in-out forwards 2.15s;
}

@keyframes bmTaglineReveal {
  to {
    opacity: 0.92;
    transform: translateY(0);
  }
}

/* ==========================================================================
   IN-PLACE WRITING ANIMATION: TRENDUSTY (Letter-by-Letter Ease-In-Out)
   ========================================================================== */
.bm-title-grotesk {
  display: inline-block;
  white-space: nowrap;
}

.bm-l-char {
  display: inline-block;
  transition: color 0.75s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-site-loading .bm-l-char {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 40px rgba(255, 214, 0, 0.4) !important;
  animation: bmCharWrite 0.22s ease-in-out forwards;
  animation-delay: calc(0.20s + var(--c-idx) * 0.085s);
}

@keyframes bmCharWrite {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    transform: translateY(3px) scale(0.96);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    -webkit-clip-path: inset(0 0% 0 0);
    transform: translateY(0) scale(1);
  }
}

body:not(.is-site-loading) .bm-l-char {
  opacity: 1 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  transform: none !important;
  animation: none !important;
}

/* ==========================================================================
   IN-PLACE WRITING ANIMATION: Orbit (Authentic Handwriting Ease-In-Out)
   ========================================================================== */
.bm-title-script-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  margin-left: 0.12em;
  vertical-align: baseline;
}

.bm-hero-script-svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  width: 1.85em;
  height: 0.85em;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 16px rgba(255, 214, 0, 0.65));
}

.bm-hero-script-svg .bm-script-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bm-hero-script-svg .bm-script-path.glow {
  stroke: rgba(255, 170, 0, 0.45);
  stroke-width: 9;
  filter: blur(4px);
}

.bm-hero-script-svg .bm-script-path.pen-stroke {
  stroke: #ffd600;
  stroke-width: 5.5;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
}

body.is-site-loading .bm-hero-script-svg .bm-script-path.pen-stroke {
  animation: bmDrawScript 1.15s ease-in-out forwards 1.02s;
}

@keyframes bmDrawScript {
  to {
    stroke-dashoffset: 0;
  }
}

.bm-hero-script-svg .bm-script-nib {
  fill: #ffffff;
  stroke: #ffd600;
  stroke-width: 2.5;
  box-shadow: 0 0 16px #ffffff, 0 0 28px #ffd600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bm-title-script {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-style: italic;
  font-size: 1.15em;
  letter-spacing: -0.01em;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.75s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-site-loading .bm-title-script {
  opacity: 0;
  color: #ffd600 !important;
  text-shadow: 0 0 22px rgba(255, 214, 0, 0.9), 0 0 45px rgba(255, 170, 0, 0.55) !important;
  animation: bmScriptFadeIn 0.35s ease-in-out forwards 2.15s;
}

@keyframes bmScriptFadeIn {
  to {
    opacity: 1;
  }
}

body:not(.is-site-loading) .bm-hero-script-svg {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body:not(.is-site-loading) .bm-title-script {
  opacity: 1 !important;
  transform: none !important;
}

/* Smooth color transition when black screen disappears */
.bm-hero-title.bm-title-dark,
.bm-title-grotesk,
.bm-title-script,
.bm-l-char,
.bm-tagline {
  transition: color 0.75s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility: Modern Web Guidance prefers-reduced-motion compliance */
@media (prefers-reduced-motion: reduce) {
  body.is-site-loading .bm-l-char {
    opacity: 1 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    animation: none !important;
    transform: none !important;
  }
  body.is-site-loading .bm-hero-script-svg .bm-script-path.pen-stroke {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  body.is-site-loading .bm-title-script {
    opacity: 1 !important;
    animation: none !important;
  }
  body.is-site-loading #buttermax-hero-curtain .bm-tagline {
    opacity: 0.92 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* 4. Psychedelic Undulating Wave Expansion (Buttermax 00:06 Wipe) */
.bm-loader-psychedelic-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vmax;
  height: 100vmax;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.bm-site-loader.is-revealing .bm-loader-psychedelic-wave {
  transform: translate(-50%, -50%) scale(2.6);
}

.bm-wave-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 45px solid #ffd600;
}

.bm-wave-ring.r1 { inset: 0; border-color: #ffd600; border-width: 90px; }
.bm-wave-ring.r2 { inset: 80px; border-color: #ffaa00; border-width: 60px; }
.bm-wave-ring.r3 { inset: 150px; border-color: #ff8800; border-width: 45px; }
.bm-wave-ring.r4 { inset: 210px; border-color: #ffd600; border-width: 80px; }
.bm-wave-ring.r5 { inset: 290px; background: #ffd600; }

/* OFAA Floating Nav in Buttermax */
body.theme-buttermax .top-nav {
  background: rgba(12, 19, 32, 0.96) !important;
  border: 2px solid #121212 !important;
  box-shadow: 6px 6px 0px #121212 !important;
}
