@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');
@import 'tokens.css';

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

img, video {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

/* ─── Custom Cursor ─────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--color-red-hot);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: normal;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 93, 4, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out-expo), width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 6px;
  height: 6px;
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(232, 93, 4, 0.8);
}

/* ─── Noise Overlay ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  opacity: 0.035;
  pointer-events: none;
  z-index: var(--z-overlay);
}

/* ─── Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ─── Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.section-pad {
  padding-block: var(--section-pad-y);
}

/* ─── Typography Utilities ──────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red-hot);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.section-body {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 60ch;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-red-hot);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 13px 31px;
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), transform var(--transition-base);
}

.btn-light:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
}

/* ─── Dividers ──────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-red);
  margin-block: var(--space-lg);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* ─── Selection ─────────────────────────────────────────── */
::selection {
  background: var(--color-red);
  color: var(--color-white);
}

/* ─── Page Hero Photo Background (reusable) ──────────────── */
.page-hero--photo {
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.85) 100%);
}

.page-hero--photo .container {
  position: relative;
  z-index: 1;
}

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