/* ==========================================================================
   CREATIVE ANIMALS — REFINED BASE STYLES & RESET
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-black);
  color: var(--color-off-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--color-black);
  color: var(--color-off-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Selection */
::selection {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-grey);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow);
}

/* Typography Base (Balanced & Clean) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: #c8c8c8;
}

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

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

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Subtle Film Grain */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Badge Tag */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-grey);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-off-white);
}

.badge-tag.badge-yellow {
  background: var(--color-yellow-muted);
  border-color: rgba(255, 212, 0, 0.3);
  color: var(--color-yellow);
}

.badge-tag .dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  box-shadow: 0 0 8px var(--color-yellow);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Section Header Typography Helpers */
.section-pretitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.section-pretitle::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background-color: var(--color-yellow);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-off-white);
  margin-bottom: 1.25rem;
}

.section-title .highlight-yellow {
  color: var(--color-yellow);
}

/* Reveal utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
