/* Premium Beige Design System */
:root {
  /* Warm Ivory / Beige Palette */
  --color-bg:           #E8E3DD;
  --color-bg-soft:      #F0ECE7;
  --color-surface:      #E2DDD5;
  --color-surface-2:    #D5CFC5;
  
  --color-text:         #2A2826;
  --color-text-muted:   #595551;
  --color-text-faint:   #8C857E;
  
  --color-accent:       #A39481;
  --color-accent-soft:  rgba(163, 148, 129, 0.2);
  --color-border:       #CFC8BD;
  --color-border-soft:  rgba(207, 200, 189, 0.5);

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  5rem;
  --text-hero: 8rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max: 1200px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  /* Shadows */
  --shadow-sm:  0 4px 12px rgba(42, 40, 38, 0.05);
  --shadow-md:  0 12px 32px rgba(42, 40, 38, 0.08);
  --shadow-lg:  0 24px 64px rgba(42, 40, 38, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --duration: 0.6s;
}

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

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

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: none; }
@media (pointer: coarse) { a { cursor: pointer; } }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: none; }
@media (pointer: coarse) { button { cursor: pointer; } }

/* 3D Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* App Content */
#app-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(232,227,221,0.92) 0%, rgba(232,227,221,0.75) 60%, rgba(232,227,221,0.0) 100%);
  transition: opacity 0.4s var(--ease);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

/* Custom Cursor */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), mix-blend-mode 0.3s var(--ease);
  mix-blend-mode: difference;
}

#custom-cursor.hover {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 1);
}

@media (pointer: coarse) {
  #custom-cursor { display: none; }
}

/* Intro Screen */
#intro-screen {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0;
}

