:root {
  color-scheme: dark;
  --sky-top: #0d1b2a;
  --sky-mid: #1b263b;
  --sky-bottom: #2e3b4e;
  --sand-rear: #3d2f2f;
  --sand-mid: #5c4330;
  --sand-front: #806245;
  --sand-accent: rgba(255, 221, 175, 0.25);
  --brand-color: #f4f1e6;
  --text-soft: rgba(244, 241, 230, 0.7);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 45%, var(--sky-bottom));
  color: var(--brand-color);
}

.view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.brand-overlay {
  position: fixed;
  top: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--brand-color);
  z-index: 4;
}

.brand-overlay .brand {
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
}

.brand-overlay .descriptor {
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  letter-spacing: 0.3rem;
  color: var(--text-soft);
}

.landscape {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.sandstorm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.layer {
  position: absolute;
  width: 120vw;
  left: -10vw;
  border-radius: 50%;
  transform: scale(1.1);
  filter: blur(0.5px);
}

.horizon {
  bottom: 38vh;
  height: 75vh;
  background: radial-gradient(circle at 50% 35%, rgba(255, 234, 208, 0.3), transparent 60%),
    linear-gradient(180deg, rgba(255, 247, 233, 0.08), rgba(21, 26, 38, 0.6));
  z-index: 0;
}

.dune {
  z-index: 2;
  background: linear-gradient(120deg, rgba(255, 200, 150, 0.15), transparent 60%), var(--sand-mid);
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.3);
}

.dune--rear {
  bottom: 30vh;
  height: 60vh;
  background: linear-gradient(120deg, rgba(255, 218, 185, 0.1), transparent 50%), var(--sand-rear);
  transform: scaleX(1.05) scaleY(0.9);
  opacity: 0.8;
}

.dune--mid {
  bottom: 18vh;
  height: 55vh;
  background: linear-gradient(120deg, rgba(255, 211, 178, 0.18), transparent 45%), var(--sand-mid);
  transform: scaleX(1.1) scaleY(0.8);
  opacity: 0.9;
}

.dune--front {
  bottom: -5vh;
  height: 70vh;
  background: linear-gradient(140deg, rgba(255, 224, 179, 0.25), transparent 40%), var(--sand-front);
  transform: scaleX(1.2) scaleY(0.95);
  opacity: 0.95;
}

.noscript {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 10, 16, 0.75);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .brand-overlay {
    letter-spacing: 0.14rem;
    gap: 0.4rem;
  }

  .brand-overlay .brand {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
}

@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;
  }

  .sandstorm {
    opacity: 0.65;
  }
}
