html {
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  /* Canvas background */
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: var(--lh-md);
  color: var(--color-text);
  background-color: transparent;
  position: relative;
}

/* ================= AMBIENT BACKGROUND ================= */

.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  /* Changed from -1 to 0 to be part of normal flow but behind relative content */
  overflow: hidden;
  pointer-events: none;
}

.ambient-bg__noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  /* Very subtle noise */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 2;
}

.ambient-bg__orb-wrapper {
  position: absolute;
  will-change: transform;
  transition: transform 0.1s linear;
}

.ambient-bg__orb-wrapper--1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
}

.ambient-bg__orb-wrapper--2 {
  bottom: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
}

.ambient-bg__orb-wrapper--3 {
  top: 40%;
  left: 40%;
  width: 30vw;
  height: 30vw;
}

.ambient-bg__orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  /* Increased from 0.6 for better visibility */
}

.ambient-bg__orb--1 {
  background: radial-gradient(circle, var(--brand-lavender) 0%, rgba(198, 156, 132, 0) 70%);
  animation: floatOrb1 20s infinite ease-in-out alternate;
}

.ambient-bg__orb--2 {
  background: radial-gradient(circle, var(--brand-sage) 0%, rgba(159, 183, 170, 0) 70%);
  animation: floatOrb2 25s infinite ease-in-out alternate;
}

.ambient-bg__orb--3 {
  background: radial-gradient(circle, var(--brand-peach) 0%, rgba(195, 182, 207, 0) 70%);
  opacity: 0.4;
  animation: floatOrb3 22s infinite ease-in-out alternate;
}

/* Floating Animations (independent of mouse) */
@keyframes floatOrb1 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-40px, -60px);
  }
}

@keyframes floatOrb3 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, -30px);
  }
}

/* ================= HEADINGS ================= */

h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--h1-desktop);
  line-height: var(--h1-lh-desktop);
}

h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

h3 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--h3-desktop);
  line-height: var(--h3-lh-desktop);
}

h4 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--h4-desktop);
  line-height: var(--h4-lh-desktop);
}

/* ================= TEXT ================= */

.text-lg {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

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

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

@media (max-width: 768px) {
  h1 {
    font-size: var(--h1-mobile);
    line-height: var(--h1-lh-mobile);
  }

  h2 {
    font-size: var(--h2-mobile);
    line-height: var(--h2-lh-mobile);
  }

  h3 {
    font-size: var(--h3-mobile);
    line-height: var(--h3-lh-mobile);
  }

  h4 {
    font-size: var(--h4-mobile);
    line-height: var(--h4-lh-mobile);
  }
}