:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #b7c0d6;
  --panel: rgba(12, 18, 31, 0.58);
  --line: rgba(255, 255, 255, 0.18);
  --accent: #7de0ff;
  --accent-2: #ffc857;
  --accent-3: #ff6b9a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #02040a;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(58, 93, 156, 0.36), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(180, 74, 126, 0.22), transparent 24rem),
    radial-gradient(circle at 70% 78%, rgba(55, 145, 139, 0.18), transparent 30rem),
    linear-gradient(145deg, #03050d 0%, #09101d 45%, #02040a 100%);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.experience {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
}

.hero {
  min-height: calc(100vh - clamp(2rem, 6vw, 4rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  align-items: end;
  gap: 2rem;
  padding-bottom: clamp(6rem, 12vh, 9rem);
}

.hero__content {
  max-width: 58rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hud,
.controls,
.depth-strip article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hud {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
}

.hud div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.2rem;
  padding: 0.2rem 0.35rem;
}

.hud span,
.control span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hud strong {
  font-size: 1.25rem;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 1fr)) auto;
  align-items: center;
  gap: 1rem;
  width: min(64rem, calc(100% - 2rem));
  padding: 0.9rem;
  border-radius: 8px;
  transform: translateX(-50%);
}

.control {
  display: grid;
  gap: 0.45rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-2);
}

button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #071018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.depth-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: -5rem 0 8rem;
  padding-bottom: 4rem;
}

.depth-strip article {
  min-height: 10rem;
  padding: 1rem;
  border-radius: 8px;
}

.dot {
  display: block;
  width: 1rem;
  height: 1rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1.5rem currentColor;
}

.dot--far {
  width: 0.55rem;
  height: 0.55rem;
  color: #8fa8ff;
}

.dot--mid {
  color: #7de0ff;
}

.dot--near {
  width: 1.4rem;
  height: 1.4rem;
  color: #ffc857;
}

.depth-strip h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.depth-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding-bottom: 12rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 13vw, 4.2rem);
    line-height: 0.94;
  }

  .hud {
    width: 100%;
    max-width: 100%;
  }

  .lead {
    max-width: 100%;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .depth-strip {
    grid-template-columns: 1fr;
    margin-top: -9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  button {
    background: var(--accent);
  }
}
