@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400&family=Instrument+Serif:ital@0;1&display=swap');


* {
  box-sizing: border-box;
}

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

body.mapping-page {
  background: #050505;
  color: #f4f1eb;
  font-family: "DM Mono", monospace;
  font-weight: 300;
  overflow: hidden;
}


/* --------------------------------
   HEADER
-------------------------------- */

.mapping-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 92px;

  padding: 30px 38px;

  display: flex;
  align-items: center;

  z-index: 20;
}


.mapping-logo {
  color: #f4f1eb;
  text-decoration: none;

  font-size: 14px;
  letter-spacing: -0.04em;
}


.mapping-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 30px;

  white-space: nowrap;
}


.mapping-nav a {
  color: #f4f1eb;
  text-decoration: none;

  font-size: 10px;
  letter-spacing: 0.02em;

  opacity: 0.72;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


.mapping-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}


.mapping-cross {
  margin-left: auto;

  font-size: 20px;
  line-height: 1;

  opacity: 0.8;
}


/* --------------------------------
   MAIN
-------------------------------- */

.mapping-main {
  position: relative;

  width: 100%;
  height: 100vh;

  padding: 150px 8vw 100px;
}


.mapping-index {
  position: absolute;

  top: 150px;
  left: 8vw;

  font-size: 10px;
  letter-spacing: 0.04em;

  opacity: 0.55;
}


.mapping-hero {
  position: absolute;

  left: 8vw;
  bottom: 13vh;

  max-width: 780px;
}


.mapping-hero h1 {
  margin: 0 0 35px;

  font-family: "Instrument Serif", serif;
  font-size: clamp(80px, 11vw, 170px);
  font-weight: 400;
  line-height: 0.78;

  letter-spacing: -0.055em;
}


.mapping-description {
  margin: 0;

  font-size: 12px;
  line-height: 1.75;
  letter-spacing: -0.015em;

  color: rgba(244, 241, 235, 0.72);
}


/* --------------------------------
   ACTIONS
-------------------------------- */

.mapping-actions {
  margin-top: 55px;

  display: flex;
  gap: 12px;
}


.mapping-button {
  width: 245px;
  height: 54px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid rgba(244, 241, 235, 0.28);

  color: #f4f1eb;
  text-decoration: none;

  font-size: 10px;
  letter-spacing: 0.01em;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}


.mapping-button:hover {
  background: #f4f1eb;
  color: #050505;

  border-color: #f4f1eb;
}


.mapping-button span:last-child {
  font-size: 15px;
}


/* --------------------------------
   BOTTOM DOTS
-------------------------------- */

.mapping-dots {
  position: fixed;

  left: 50%;
  bottom: 32px;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 12px;

  z-index: 20;

  font-size: 13px;

  color: rgba(244, 241, 235, 0.35);
}


.mapping-dot-active {
  color: #f4f1eb;

  font-size: 15px;
}


/* --------------------------------
   GRAIN
-------------------------------- */

.mapping-grain {
  position: fixed;

  inset: -50%;

  width: 200%;
  height: 200%;

  pointer-events: none;

  z-index: 50;

  opacity: 0.075;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");

  animation: mapping-grain 0.25s steps(2) infinite;
}


@keyframes mapping-grain {

  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(2%, -1%);
  }

  50% {
    transform: translate(-1%, 2%);
  }

  75% {
    transform: translate(1%, 1%);
  }

  100% {
    transform: translate(-2%, -1%);
  }

}


/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 700px) {

  .mapping-header {
    padding: 24px 20px;
  }

  .mapping-nav {
    display: none;
  }

  .mapping-main {
    padding: 120px 20px 80px;
  }

  .mapping-index {
    top: 120px;
    left: 20px;
  }

  .mapping-hero {
    left: 20px;
    right: 20px;
    bottom: 110px;
  }

  .mapping-hero h1 {
    font-size: 76px;
    margin-bottom: 28px;
  }

  .mapping-description {
    font-size: 10px;
  }

  .mapping-actions {
    flex-direction: column;
    margin-top: 38px;
  }

  .mapping-button {
    width: min(100%, 300px);
  }

  .mapping-dots {
    bottom: 22px;
    gap: 8px;
  }

}