:root {
  --background: #0A0A0C;
  --foreground: #F4F4F0;
  --primary: #C5A059;
  --secondary: #1A1A1A;
  --border: rgba(255, 255, 255, 0.1);
  --font-playfair: "Space Grotesk", sans-serif;
  --font-inter: "Outfit", sans-serif;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: var(--font-playfair);
  --font-body: var(--font-inter);
}

/* UI Elements */
body { 
  background-color: var(--background); 
  color: var(--foreground); 
  font-family: var(--font-body); 
  margin: 0; 
  line-height: 1.6; 
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; 
}
h1, h2, h3, h4 { 
  font-family: var(--font-heading); 
  letter-spacing: -0.02em; 
  line-height: 1.2; 
}
main p {
  max-width: 65ch;
}

/* Editorial Layout Typography & Spacing */
[data-layout="editorial"] h1, [data-layout="editorial"] h2 { font-style: normal; font-weight: 400; }
@media (min-width: 768px) {
    [data-layout="editorial"] main section { padding-left: 3rem; margin-left: 2rem; }
}

/* Sidebar Navigation */
@media (min-width: 768px) {
    [data-layout="editorial"] #main-nav {
        width: 6rem; height: 100vh; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, 0.05); border-bottom: none;
        padding: 3rem 0; background: var(--background); opacity: 1; top: 0; left: 0;
    }
    [data-layout="editorial"] #main-nav .max-w-7xl { flex-direction: column; height: 100%; gap: 3rem; padding: 0; }
    [data-layout="editorial"] #main-nav .flex-1 { flex-direction: column; flex: none; gap: 2rem; display: flex !important; }
    [data-layout="editorial"] main { margin-left: 6rem; padding-top: 6rem; }
    [data-layout="editorial"] footer { margin-left: 6rem; }
}

/* Grain Effect */
.grain-effect { 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; height: 100%; 
  pointer-events: none; 
  z-index: 9999; 
  opacity: 0.035; 
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); 
}

/* Utility & UX Adjustments */
.fluid-h1-large {
  font-size: clamp(3rem, 8vw + 1rem, 6rem);
}
.fluid-h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem);
}
.hitbox {
  padding: 0.5rem 0.25rem;
  margin: -0.5rem -0.25rem;
}

/* Physics & Interaction Classes */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.tilt-card {
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
  will-change: transform;
  transform-style: preserve-3d;
}
.parallax {
  will-change: transform;
}

/* Reveal Animations */
.lux-reveal { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1); 
}
.lux-reveal.visible { 
  opacity: 1; 
  transform: translateY(0); 
}
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.15s; }
.stagger-3 { transition-delay: 0.3s; }

/* Custom Cursor & Cursor Override */
@media (min-width: 768px) {
  body { cursor: none !important; }
  a, button, [onclick], .cursor-pointer { cursor: none !important; }
}
#custom-cursor { 
  position: fixed; 
  top: 0; left: 0;
  width: 12px; height: 12px; 
  background: #FFFFFF; 
  border-radius: 50%; 
  pointer-events: none; 
  z-index: 10000; 
  mix-blend-mode: difference; 
  transition: transform 0.1s ease-out; 
  transform: translate(-50%, -50%);
  display: none; 
}
#custom-cursor.hovered {
  transform: translate(-50%, -50%) scale(3);
}
@media (pointer: fine) { #custom-cursor { display: block; } }

/* Film Grain / Noise Texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation Links */
.nav-link { 
  position: relative; 
  opacity: 0.4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out; 
}
.nav-link::after { 
  content: ''; 
  position: absolute; 
  width: 100%; height: 1px; 
  bottom: -4px; left: 0; 
  background-color: var(--primary); 
  transform: scaleX(0); 
  transform-origin: bottom right; 
  transition: transform 0.6s var(--ease-luxury); 
}
.nav-link:hover::after { 
  transform: scaleX(1); 
  transform-origin: bottom left; 
}
.nav-link:hover { 
  opacity: 1; 
  color: var(--primary); 
}
.nav-link-active {
  opacity: 1 !important;
  color: var(--primary) !important;
}

/* Animated Luxury Background Glow */
@keyframes luxuryGlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Card Quiet Luxury */
.card-quiet-luxury {
  background: rgba(255, 255, 255, 0.02);
  border: none !important;
  padding: 40px 32px;
  transition: all 0.4s ease;
}
.card-quiet-luxury:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}
.bg-luxury-glow {
  background: radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(26, 26, 26, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at top right, rgba(38, 38, 38, 0.2) 0%, transparent 50%);
  background-size: 180% 180%;
  animation: luxuryGlow 18s ease-in-out infinite alternate;
}

/* CTA & Button Styles */
.btn-quiet-luxury {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 40px;
  background: transparent;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  user-select: none;
}
.btn-quiet-luxury:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* Watermark & Large Background Typography */
.watermark-quiet-luxury {
  opacity: 0.03;
  user-select: none;
  pointer-events: none;
  z-index: -1;
}

/* Footer Quiet Luxury Styles */
.footer-quiet-luxury {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
}
.footer-logo-square {
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-link-title {
  font-size: 10px;
  color: #8A8A8E;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  padding: 8px 4px;
  margin: -8px -4px;
  display: inline-block;
}
.footer-link:hover {
  color: #F4F4F0;
}
