:root {
  /* Hanem Brand Colors */
  --background: #FDF8F1;
  --foreground: #26221D;
  --card: #FFFFFF;
  --card-foreground: #26221D;
  --primary: #C4A052;
  --primary-foreground: #FFFFFF;
  --secondary: #FDF8F1;
  --muted: #F5EFE4;
  --muted-foreground: #6B6459;
  --accent: #C4A052;
  --destructive: #DC2626;
  --border: #E5DDD0;
  --ring: #C4A052;
  --radius: 0.9rem;

  /* Custom Hanem tokens */
  --hanem-cream: #FDF8F1;
  --hanem-sand: #F5EFE4;
  --hanem-mustard: #C4A052;
  --hanem-gold: #B4863B;
  --hanem-dark: #12313E;
  --hanem-deep: #0C2530;
  --hanem-anthracite: #26221D;
  --hanem-gray: #6B6459;
}

/* Font Configuration */
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
}

/* Smooth anchor scrolling with fixed header offset */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6rem; }

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.animate-float { animation: float 7s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 6s ease-in-out infinite; animation-delay: 1s; }
.animate-scroll-left { animation: scroll-left 40s linear infinite; }
.animate-fade-up { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float, .animate-float-delayed, .animate-scroll-left, .animate-fade-up, .animate-pulse-ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Decorative helpers ---------- */
.text-gradient-gold {
  background: linear-gradient(120deg, #C4A052 0%, #E4C877 45%, #B4863B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtle grain overlay for dark sections */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Fine technical grid background (light sections) */
.bg-grid-light {
  background-image:
    linear-gradient(to right, rgba(38,34,29,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38,34,29,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
/* Fine technical grid background (dark sections) */
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Marquee pause on hover */
.marquee-track:hover { animation-play-state: paused; }

/* Card lift */
.lift { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1); }
.lift:hover { transform: translateY(-6px); }

/* Hide scrollbar for segment scrollers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
