:root {
  --night-1: #08111f;
  --night-2: #0f1d34;
  --night-3: #1b2e4f;
  --moon: #f9f3cf;
  --text: #f2f7ff;
  --muted: #9eb2cf;
  --desk: #16253f;
  --monitor: #283f66;
  --accent: #ff8f66;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(249, 243, 207, 0.2), transparent 30%),
    radial-gradient(circle at 85% 78%, rgba(255, 143, 102, 0.12), transparent 36%),
    linear-gradient(160deg, var(--night-1), var(--night-2) 50%, var(--night-3));
  overflow: hidden;
}

.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.moon {
  position: absolute;
  top: 6vh;
  right: 7vw;
  width: clamp(70px, 8vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 40px rgba(249, 243, 207, 0.3);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 11% 21%, rgba(255, 255, 255, 0.85) 1.5px, transparent 2px),
    radial-gradient(circle at 28% 33%, rgba(255, 255, 255, 0.5) 1px, transparent 1.8px),
    radial-gradient(circle at 64% 15%, rgba(255, 255, 255, 0.75) 1.2px, transparent 2px),
    radial-gradient(circle at 76% 29%, rgba(255, 255, 255, 0.6) 1px, transparent 1.8px),
    radial-gradient(circle at 42% 12%, rgba(255, 255, 255, 0.8) 1.1px, transparent 2px);
  pointer-events: none;
}

.copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
}

h1 {
  margin: 0.3rem 0 0;
  line-height: 0.95;
  font-size: clamp(2rem, 7vw, 4.8rem);
}

.sub {
  margin: 0.8rem 0 0;
  color: #d5e2f5;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
}

.office {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 2vw, 1rem);
  align-items: end;
}

.desk-block {
  position: relative;
  min-height: 310px;
  padding-top: 62px;
}

.desk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 26px;
  background: linear-gradient(180deg, #1d3358, var(--desk));
  border-radius: 7px;
}

.monitor {
  position: absolute;
  width: 45%;
  height: 58px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 68px;
  background: linear-gradient(180deg, #304f7d, var(--monitor));
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.progress {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8f66, #ffc36c);
}

.person {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 92px;
  width: 120px;
  height: 130px;
  animation: nod 2.8s ease-in-out infinite;
}

.person.delay {
  animation-delay: 0.6s;
}

.person.delay-more {
  animation-delay: 1.2s;
}

.head {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto;
  background: #f6c0a0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.body {
  width: 82px;
  height: 66px;
  border-radius: 14px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, #4e6ea1, #36517a);
}

.z {
  position: absolute;
  left: 78%;
  top: 6px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0;
  text-shadow: 0 0 14px rgba(255, 143, 102, 0.45);
  animation: float-z 2.2s linear infinite;
}

.z2 {
  animation-delay: 0.5s;
}

.z3 {
  animation-delay: 1.1s;
}

@keyframes nod {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
  40% {
    transform: translateX(-50%) rotate(4deg) translateY(1px);
  }
  70% {
    transform: translateX(-50%) rotate(-5deg) translateY(2px);
  }
}

@keyframes float-z {
  0% {
    opacity: 0;
    transform: translate(0, 8px) scale(0.8);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(34px, -34px) scale(1.3);
  }
}

@media (max-width: 900px) {
  .office {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .desk-block {
    min-height: 200px;
    transform: scale(0.95);
    transform-origin: center bottom;
  }
}
