body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F7F7F8;
  color: #1F2024;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Architectural subtle grid pattern for deep navy canvases */
.arch-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.arch-grid-light {
  background-image:
    linear-gradient(to right, rgba(17, 17, 20, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 20, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Smooth Fade-Up Animation for View Switches & Tab Changes */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mega Menu Transition */
.mega-menu-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.mega-menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Slide-over Drawer Transition */
.drawer-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-panel.open {
  transform: translateX(0);
}

/* Scrollbar refinement */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F4F4F5;
}
::-webkit-scrollbar-thumb {
  background: #D4D4D8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A1A1AA;
}

/* Brand red on dark surfaces: the logo red (#E10000) is ~4:1 on near-black, so
   red *text* inside dark bands steps up to a brighter tint (AA, ~6:1). Fills,
   buttons and borders keep the exact logo red. */
.on-dark .text-brand,
.on-dark.text-brand { color: #FF5A5A; }
.on-dark .hover\:text-brand:hover { color: #FF8080; }

/* Blinking "live" dot on the header CTA (red halo pulse + soft fade) */
.live-dot { animation: liveBlink 1.4s ease-in-out infinite; }
@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.7); }
  50% { opacity: 0.35; box-shadow: 0 0 0 5px rgba(255, 90, 90, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
