/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  background-color: var(--color-canvas);
}

/* Subtle Film Grain Noise Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--noise-texture);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.8;
}

/* Subtle Architectural Grid Lines Overlay */
.grid-lines-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1240px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-grid-line) 0%, rgba(0, 0, 0, 0.015) 100%);
}

.dark-panel .grid-lines-overlay .grid-line {
  background: linear-gradient(180deg, var(--color-grid-line-dark) 0%, rgba(255, 255, 255, 0.015) 100%);
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

ul, ol {
  list-style: none;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.text-display-xl {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.text-display-lg {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.text-display-md {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.text-display-sm {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-body-md {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.text-body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  width: 100%;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-wrapper {
  padding: 80px 0;
  position: relative;
}

.section-wrapper-lg {
  padding: 120px 0;
  position: relative;
}

/* Scroll Animation Utilities */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
