* {
  box-sizing: border-box
}

html { scroll-behavior: auto; }
body { overscroll-behavior-y: contain; }
html,
body {
  height: 100%
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Poppins", system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, .18)),
    url("../img/services-bg.jpeg") center/cover no-repeat;
  filter: grayscale(100%) contrast(1.06);
}

.dial-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  pointer-events: auto;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

canvas.dragging {
  cursor: grabbing;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(12px, 2vw, 32px);
}

.year {
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  font-size: clamp(42px, 7vw, 110px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.copy {
  margin-top: .20em;
  max-width: min(750px, 86%);
  text-align: center;
  line-height: 1.25;
  font-size: clamp(12px, 1.3vw, 29px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .4rem .6rem;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(6px);
  opacity: .85;
  user-select: none;
}

@media (max-width: 980px) {

  .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(12px, 2vw, 32px);
  }

  .year {
    font-size: clamp(67px, 9vw, 80px);
    line-height: 1;
  }

  .copy {
    font-size: clamp(12px, 2.5vw, 24px);
  }
  
}

html, body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;       /* kill sideways scroll on this page */
      position: relative;       /* avoids overflow from transforms */
    }