/* ============================================================
   STYLE.CSS — Global styles, CSS variables, base reset
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700;900&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */

:root {
  --red:       #EE3F2C;
  --red-glow:  #ff5540;
  --black:     #000000;
  --dark:      #080808;
  --navy:      #0a0c10;
  --white:     #f0ede8;
  --muted:     rgba(255,255,255,0.45);
  --border:    rgba(255,255,255,0.07);
  --surface:   rgba(10,10,12,0.55);
  --font:      'Rubik', sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.75;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

body.loaded {
  animation: bodyReveal 0.4s var(--ease) both;
}

@keyframes bodyReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: none; }

/* ── GRAIN 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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */

#cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s, background 0.25s;
  mix-blend-mode: normal;
}

#cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

#cursor.cursor--hover {
  width: 48px;
  height: 48px;
  background: rgba(238,63,44,0.1);
  border-color: var(--red-glow);
}

#cursor.cursor--click {
  transform: translate(-50%, -50%) scale(0.8);
}

/* ── LOADER ──────────────────────────────────────────────────── */

#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
}

.loader__logo span {
  color: var(--red);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.12s linear;
  border-radius: 2px;
}

/* ── GLASSMORPHISM CARD ──────────────────────────────────────── */

.glass-card {
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 2px solid var(--red);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 8px 32px rgba(0,0,0,0.5);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));
  transition: background 0.2s, transform 0.2s var(--ease);
  cursor: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--red-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--white);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
  cursor: none;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.72rem;
  clip-path: polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));
}

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────────── */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
}

.section-heading span {
  color: var(--red);
}

/* ── SECTION WRAPPER ─────────────────────────────────────────── */

.section {
  padding: 100px 0;
  position: relative;
}

.section--alt {
  background: var(--dark);
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 7vw;
}

.section__header {
  margin-bottom: 56px;
}

/* ── SKELETON LOADERS ────────────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card,
.skeleton-card-sm,
.skeleton-exp {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}

.skeleton-card {
  height: 320px;
  border-radius: 4px;
}

.skeleton-card-sm {
  height: 160px;
}

.skeleton-exp {
  height: 80px;
  margin-bottom: 16px;
}

.skeleton-img {
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.skeleton-body {
  padding: 16px;
}

.skeleton-line {
  height: 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  margin-bottom: 8px;
  animation: shimmer 1.4s infinite;
  background-size: 400px 100%;
}

.skeleton-line.short {
  width: 60%;
}

/* ── SECTION EMPTY STATE ─────────────────────────────────────── */

.section-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border: 1px dashed var(--border);
  border-radius: 4px;
}
