body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url('../assets/images/texture-grain.png');
  background-repeat: repeat;
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, -2px); }
  100% { transform: translate(2px, 2px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-6);
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.text-small {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-accent-gold);
}

.text-center {
  text-align: center;
}

/* Links */
a {
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-gold);
}

/* Selection */
::selection {
  background: var(--color-accent-gold-dim);
  color: var(--color-text-primary);
}

/* Animations - initial states */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform, filter;
}

[data-animate="fade-up"] {
  transform: translateY(48px);
}

[data-animate="fade-left"] {
  transform: translateX(-48px);
}

[data-animate="fade-right"] {
  transform: translateX(48px);
}

[data-animate="scale"] {
  transform: scale(0.88);
}

[data-animate="grow"] {
  transform: scaleX(0);
  transform-origin: left;
}

[data-animate="blur-in"] {
  filter: blur(12px);
  transform: translateY(20px) scale(0.97);
}

[data-animate="slide-in"] {
  transform: translateX(-100%);
  clip-path: inset(0 100% 0 0);
}

/* Animated state — smooth expo easing */
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="grow"].is-visible {
  transform: scaleX(1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll progress bar */
[data-scroll-progress] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 10000;
  pointer-events: none;
  transition: none;
}

/* Hero entrance keyframes */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Glow pulse for accent elements */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 108, 0); }
  50% { box-shadow: 0 0 30px rgba(201, 169, 108, 0.15); }
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .text-lead {
    font-size: var(--text-base);
  }
}
