/* ════════════════════════════════════════════════════════════
   BASE — Variables, Reset, Utilities
   ════════════════════════════════════════════════════════════ */

:root {
  /* Brand palette */
  --red:          #8B1A1A;
  --red-mid:      #7A1515;
  --red-dark:     #5C0F0F;
  --gold:         #C9A84C;
  --gold-light:   #E0C06A;
  --charcoal:     #1A1916;
  --charcoal-mid: #2D2B27;

  /* Design system */
  --color-bg:      #0c0b09;
  --color-surface: #141210;
  --color-surface2:#1c1a17;
  --color-border:  #2a2520;
  --color-text:    #f2ede6;
  --color-muted:   #7a7268;
  --color-accent:  #c8a96e;

  /* Fonts — exactly 2 families */
  --font-disp: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --nav-h: 80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
address { font-style: normal; }

/* ── Film grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ── Scroll reveal ── */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    transition:
      opacity  0.85s var(--ease-out),
      transform 0.85s var(--ease-out);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.32s; }
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Eyebrow label ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

/* ── Image placeholder ── */
.img-placeholder {
  background: linear-gradient(135deg, #1a1916 0%, #2a2520 50%, #1a1916 100%);
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

/* ── Text selection ── */
::selection { background: #c8a96e; color: #000; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #0c0b09; }
::-webkit-scrollbar-thumb { background: #2a2520; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #c8a96e; }
* { scrollbar-width: thin; scrollbar-color: #2a2520 #0c0b09; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1; transform: none; }
}
