/* ===========================================
   CINEMATIC SAFARI NOIR - CSS VARIABLES
   =========================================== */
:root {
  /* Deep Noir Palette */
  --noir-950: #050505;
  --noir-900: #0A0A09;
  --noir-850: #0F0E0D;
  --noir-800: #141311;
  --noir-700: #1C1A17;
  --noir-600: #2A2722;
  --noir-500: #3D3830;

  /* Warm Copper Gold Gradient */
  --gold-100: #F5E6D3;
  --gold-200: #E8D4B8;
  --gold-300: #D4B896;
  --gold-400: #C9A574;
  --gold-500: #B8860B;
  --gold-600: #9A7209;
  --gold-700: #7D5C07;

  /* Accent - Terracotta Warmth */
  --terra-400: #D4836A;
  --terra-500: #C75B39;
  --terra-600: #A64A2E;

  /* Cream Tones */
  --cream-50: #FFFCF7;
  --cream-100: #F9F5EE;
  --cream-200: #EDE6DA;
  --cream-300: #DED3C1;

  /* Typography */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-serif: 'Cormorant', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-dramatic: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) var(--noir-900);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--noir-900);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-600);
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream-200);
  background: var(--noir-900);
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s var(--ease-smooth), opacity 0.15s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold-400);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.08s;
}

.cursor.hover {
  transform: scale(2);
  background: var(--gold-400);
  opacity: 0.3;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

::selection {
  background: var(--gold-500);
  color: var(--noir-900);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4rem, 15vw, 12rem);
  color: var(--cream-50);
}

h2 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--cream-100);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* ===========================================
   LAYOUT
   =========================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container-fluid {
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ===========================================
   BREADCRUMBS
   =========================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-300);
  opacity: 0.7;
}

.breadcrumbs a {
  color: var(--gold-400);
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--gold-300);
}

.breadcrumbs .sep {
  width: 4px;
  height: 4px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* ===========================================
   PAGE HERO BANNER
   =========================================== */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,10,9,0.5) 0%,
      rgba(10,10,9,0.2) 40%,
      rgba(10,10,9,0.95) 100%),
    linear-gradient(90deg,
      rgba(10,10,9,0.6) 0%,
      transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.page-hero-content .label {
  margin-bottom: 1rem;
}

.page-hero-content h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--cream-300);
  max-width: 600px;
}

/* ===========================================
   PAGINATION
   =========================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 4rem 0 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--cream-200);
  border: 1px solid var(--noir-600);
  transition: all 0.3s var(--ease-smooth);
}

.pagination a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--noir-900);
}

.pagination .current {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--noir-900);
}

/* Hide cursor on touch devices */
@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}
