
:root {
  --brand-50: #fffaf0;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-500: #ea580c;
  --brand-700: #b91c1c;
  --brand-900: #4a0404;
  --gold-glow: rgba(251, 191, 36, 0.4);
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--brand-50);
  color: var(--brand-900);
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.glass-nav {
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid #fbbf24;
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 215, 170, 0.5);
  box-shadow: 0 10px 25px -5px rgba(185, 28, 28, 0.05), 0 8px 10px -6px rgba(185, 28, 28, 0.05);
}

.glass-card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 20px 30px -10px rgba(185, 28, 28, 0.12), 0 10px 15px -5px rgba(234, 88, 12, 0.08);
}

.glass-modal {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 25px 50px -12px rgba(74, 4, 4, 0.25);
}

.skeleton {
  background: linear-gradient(90deg, #ffedd5 25%, #fed7aa 50%, #ffedd5 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
  border-radius: 0.5rem;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes wave-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.animate-wave-front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,100 L0,100 Z' fill='%2338bdf8' opacity='0.25'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: wave-scroll 6s linear infinite;
  will-change: transform;
}

.animate-wave-back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,0 250,100 500,50 C750,0 750,100 1000,50 L1000,100 L0,100 Z' fill='%230284c7' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: wave-scroll 10s linear infinite reverse;
  will-change: transform;
}

@keyframes swan-move {
  0% { transform: translate3d(-50px, 0, 0); opacity: 0; }
  5% { transform: translate3d(-35px, 0, 0); opacity: 1; }
  92.5% { transform: translate3d(235px, 0, 0); opacity: 1; }
  97.5% { transform: translate3d(250px, 0, 0); opacity: 0; }
  100% { transform: translate3d(-50px, 0, 0); opacity: 0; }
}

.animate-swan-move {
  animation: swan-move 20s linear infinite;
  will-change: transform, opacity;
}

@keyframes swan-bob {
  0%, 100% { transform: translate3d(0, 3px, 0) rotate(-3deg) scaleX(-1); }
  50% { transform: translate3d(0, -2px, 0) rotate(2deg) scaleX(-1); }
}

.animate-swan-bob {
  animation: swan-bob 3s ease-in-out infinite;
  display: inline-block;
  will-change: transform;
}

@keyframes lotus-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -3px, 0) rotate(3deg); }
}

.animate-lotus-bob {
  animation: lotus-bob 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(234, 88, 12, 0.3); }
  50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); }
}

.animate-pulse-glow {
  animation: pulse-glow 3s infinite ease-in-out;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #fffaf0;
}

::-webkit-scrollbar-thumb {
  background: #fdba74;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
.bottom-quote-bar {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  color: #fef3c7;
  border-top: 2px solid #d97706;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bottom-quote-bar.visible {
  transform: translateY(0);
}

.quote-font {
  font-family: "Playfair Display", Georgia, serif;
}

.avatar-shield {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: transparent;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Ensure deactivated tour buttons never flash before JS execution */
.tour-active-only.hidden,
a.tour-active-only.hidden,
div.tour-active-only.hidden {
  display: none !important;
}

