/* B50 Private House — Original Chiaroscuro Obsidian & Ivory Stylesheet */
:root {
  --bg-obsidian: #08080A;
  --text-ivory: #F4F1EA;
  --text-silver: #9A9893;
  --border-hairline: rgba(244, 241, 234, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Film Grain Texture */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.032;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #08080A; }
::-webkit-scrollbar-thumb { background: rgba(244, 241, 234, 0.22); }
::-webkit-scrollbar-thumb:hover { background: rgba(244, 241, 234, 0.45); }

/* Custom Cursor (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select { cursor: none; }
  #cursor-dot {
    position: fixed; top: 0; left: 0; width: 5px; height: 5px;
    background-color: #F4F1EA; border-radius: 50%; pointer-events: none;
    z-index: 9999; transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
  }
  #cursor-ring {
    position: fixed; top: 0; left: 0; width: 34px; height: 34px;
    border: 1px solid rgba(244, 241, 234, 0.35); border-radius: 50%;
    pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease, background-color 0.35s ease;
  }
  body.cursor-hover #cursor-ring {
    width: 58px; height: 58px;
    border-color: rgba(244, 241, 234, 0.75);
    background-color: rgba(244, 241, 234, 0.04);
  }
  body.cursor-hover #cursor-dot { width: 3px; height: 3px; }
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* Hairline Borders */
.border-hairline { border-color: rgba(244, 241, 234, 0.12); }
.border-hairline-strong { border-color: rgba(244, 241, 234, 0.24); }
.reveal-mask { overflow: hidden; display: block; }

/* Luxury Form Inputs */
.luxury-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.18);
  color: #F4F1EA;
  padding: 0.95rem 0;
  width: 100%;
  font-size: 0.925rem;
  letter-spacing: 0.03em;
  transition: border-color 0.4s ease, padding-left 0.4s ease;
  border-radius: 0;
}
.luxury-input:focus { outline: none; border-bottom-color: #F4F1EA; }
.luxury-input::placeholder { color: rgba(154, 152, 147, 0.55); font-weight: 300; }

/* Luxury Button Sheen */
.btn-luxury {
  position: relative;
  overflow: hidden;
  transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
}
.btn-luxury::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #F4F1EA;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn-luxury:hover::before { transform: translateY(0%); }
.btn-luxury:hover { color: #08080A; border-color: #F4F1EA; }
.btn-luxury span { position: relative; z-index: 1; }

/* Primary Ivory Button */
.btn-ivory {
  position: relative;
  overflow: hidden;
  background-color: #F4F1EA;
  color: #08080A;
  transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ivory::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #08080A;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn-ivory:hover::before { transform: translateY(0%); }
.btn-ivory:hover { color: #F4F1EA; }
.btn-ivory span { position: relative; z-index: 1; }

/* Image Monochrome Chiaroscuro Treatment */
.editorial-photo {
  filter: contrast(1.08) brightness(0.86) saturate(0.75);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
.editorial-card:hover .editorial-photo {
  transform: scale(1.035);
  filter: contrast(1.12) brightness(0.94) saturate(0.85);
}

/* Glass Header on Scroll */
.nav-scrolled {
  background-color: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
