:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --ink-red: #8B0000;
  --ink-red-bright: #CC0000;
  --gold: #C9A84C;
  --white: #F5F0EB;
  --gray: #666666;
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Bebas Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse at top, #1a0a0a 0%, #0a0a0a 70%);
  min-height: 100vh;
  position: relative;
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

.ink-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Custom cursor */
@media (pointer: fine) {
  body, body * {
    cursor: none !important;
  }
  .isfer-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 2147483647;
    filter: drop-shadow(0 0 4px rgba(204,0,0,0.9)) drop-shadow(0 0 10px rgba(204,0,0,0.6));
    transition: transform 0.1s ease, filter 0.2s ease;
  }
  .isfer-cursor.hover path { fill: #CC0000; }
}
@media (pointer: coarse) {
  .isfer-cursor { display: none !important; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.label-tag {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--ink-red-bright);
  text-transform: uppercase;
}

.italic-lead {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gray);
}

button, a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
}

a[href^="http"], button {
  transition: all 0.25s ease;
}

/* Section */
section {
  position: relative;
  z-index: 2;
  padding: 100px 6vw;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section { padding: 60px 5vw; }
}
@media (max-width: 480px) {
  section { padding: 48px 4vw; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-accent);
  letter-spacing: 0.22em;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .btn { padding: 12px 18px; font-size: 11px; letter-spacing: 0.18em; gap: 8px; }
}

.btn-primary {
  background: var(--ink-red);
  color: var(--white);
  border-color: var(--ink-red);
}
.btn-primary:hover {
  background: var(--ink-red-bright);
  border-color: var(--ink-red-bright);
  box-shadow: 0 0 24px rgba(204,0,0,0.4);
}

.btn-ghost {
  border-color: var(--white);
  color: var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--bg-primary);
}

.btn-outline-red {
  border-color: var(--ink-red);
  color: var(--white);
}
.btn-outline-red:hover {
  background: var(--ink-red);
  border-color: var(--ink-red-bright);
  box-shadow: 0 0 20px rgba(139,0,0,0.5);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(139,0,0,0.15);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--ink-red);
  box-shadow: 0 8px 40px rgba(139,0,0,0.25);
}

/* Placeholders */
.img-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #2a0808 100%);
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.015) 10px 11px);
}

/* Corner marks */
.corner-marks::before,
.corner-marks::after,
.corner-marks > span.cm-a,
.corner-marks > span.cm-b {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--white);
  border-style: solid;
  z-index: 2;
}
.corner-marks::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.corner-marks::after { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.corner-marks > span.cm-a { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.corner-marks > span.cm-b { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* Hide scrollbar native */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1f0505; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-red); }

.divider {
  width: 60px;
  height: 1px;
  background: var(--ink-red-bright);
  display: block;
  margin: 24px 0;
}

/* Form */
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0e0e0e;
  border: 1px solid rgba(139,0,0,0.25);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ink-red-bright);
}
textarea { resize: vertical; min-height: 120px; }

label {
  display: block;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Keyframes */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-ring 2s infinite;
  z-index: -1;
}
