/* ==========================================================================
   GLOBAL VARIABLES & DESIGN SYSTEM (RE-DESIGN)
   ========================================================================== */
:root {
  /* Color System */
  --color-primary: #A00020;
  --color-primary-dark: #7D0019;
  --color-primary-soft: #F4E8EB;
  
  --color-dark: #1A1A1A;
  --color-text: #444444;
  --color-muted: #888888;
  
  --color-border: #E5E5E5;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F9F9F9;

  /* Typography */
  --font-primary: 'League Spartan', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 1s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;
  
  /* Layout */
  --container-width: 1440px;
  --container-padding: 3rem;
  --nav-width: 120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* The Wireframe / Blueprint Lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: var(--container-padding);
  width: 1px;
  height: 100vh;
  background-color: var(--color-border);
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  right: var(--container-padding);
  width: 1px;
  height: 100vh;
  background-color: var(--color-border);
  z-index: -1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Display Headings */
.display-1 {
  font-size: clamp(40px, 8vw, 100px);
  text-transform: uppercase;
}

.display-2 {
  font-size: clamp(32px, 5vw, 70px);
}

.display-3 {
  font-size: clamp(24px, 3vw, 42px);
}

.subheading {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.6;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  position: relative;
}

/* Add an internal grid line to container */
.container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background-color: var(--color-border);
  z-index: -1;
  opacity: 0.5;
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

/* Oversized Watermark Numbers */
.watermark {
  position: absolute;
  font-size: 30vw;
  font-weight: 700;
  color: var(--color-bg-soft);
  line-height: 0.8;
  z-index: -2;
  top: 10%;
  left: -5%;
  user-select: none;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image {
  position: relative;
  overflow: hidden;
}

.reveal-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  transition: height var(--transition-slow);
  z-index: 2;
}

.reveal-image.visible::after {
  height: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
