:root {
  --base: #0a0a0a;
  --surface: #1a1a1a;
  --surface-2: #212121;
  --gold: #c9a24b;
  --gold-light: #e8cf8b;
  --gold-dark: #a17f34;
  --silver: #c7ccd1;
  --silver-dark: #8b9096;
  --ink: #f4f1ea;
  --ink-muted: #b8b3a8;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background-color: var(--base);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
  font-family: "Syne", system-ui, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

/* Fixed, blurred background orbs for layered depth */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-orbs::before, .bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
}
.bg-orbs::before {
  width: 34rem;
  height: 34rem;
  top: -10rem;
  right: -8rem;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}
.bg-orbs::after {
  width: 30rem;
  height: 30rem;
  bottom: 10%;
  left: -10rem;
  background: radial-gradient(circle, var(--silver-dark) 0%, transparent 70%);
}

/* Glassmorphic surface for cards floating over orbs */
.glass {
  background: rgba(244, 241, 234, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 241, 234, 0.1);
}

/* Gradient gold text */
.text-gold-gradient {
  background: linear-gradient(120deg, var(--gold-dark) 0%, var(--gold-light) 45%, var(--gold) 75%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.border-gold-gradient {
  border-image: linear-gradient(120deg, var(--gold-dark), var(--gold-light), var(--gold)) 1;
}

/* Layered, color-tinted shadows -- never flat shadow-md */
.shadow-gold-soft {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.5),
    0 8px 24px -8px rgba(201, 162, 75, 0.25),
    0 24px 48px -24px rgba(0,0,0,0.6);
}
.shadow-gold-lift {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.55),
    0 16px 32px -12px rgba(201, 162, 75, 0.35),
    0 32px 64px -24px rgba(0,0,0,0.7);
}
.shadow-charcoal {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.6),
    0 12px 28px -10px rgba(0,0,0,0.65);
}

/* Noise / grain texture overlay for depth */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.surface { background-color: var(--surface); }
.surface-2 { background-color: var(--surface-2); }

/* Keep real content painting above the fixed background orbs.
   Deliberately excludes header/#site-header: the site nav depends on
   its own `fixed ... z-50` Tailwind utility classes to stay pinned
   above everything while scrolling. Setting `position` here would win
   the cascade (this stylesheet loads after the Tailwind CDN output)
   and silently turn the fixed nav into an in-flow, low-z-index block —
   that regression happened once already, do not repeat it. */
main, footer, #site-footer {
  position: relative;
  z-index: 1;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Photo treatment */
.photo-treat {
  position: relative;
  overflow: hidden;
}
.photo-treat img {
  transition: transform 0.6s var(--ease-spring);
}
.photo-treat:hover img {
  transform: scale(1.04);
}
.photo-treat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 45%, rgba(10,10,10,0.25) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--base); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #14100a;
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), filter 0.3s var(--ease-spring);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  border: 1px solid rgba(199, 204, 209, 0.35);
  color: var(--ink);
  transition: border-color 0.3s var(--ease-spring), background-color 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}
.btn-outline:hover {
  border-color: var(--gold-light);
  background-color: rgba(201, 162, 75, 0.08);
  transform: translateY(-2px);
}

.card-elevated {
  background: rgba(244, 241, 234, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 241, 234, 0.08);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
}
.card-elevated:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.3);
}

.nav-link {
  position: relative;
  transition: color 0.3s var(--ease-spring);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.3s var(--ease-spring);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold-light); }
