:root {
  --button: #181818;
  --white: #ffffff;
  --black: #000000;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.landing-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: 0 20px 20px;
}

.h1-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 53vw;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin-bottom: auto;
}

.white {
  color: #fff;
  text-transform: uppercase;
  font-family: "Atkinson Hyperlegible Mono", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5rem;
  margin: 0;
}

.text-span {
  font-family: Lato, sans-serif;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.noise {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background: url("assets/grain-overlay.gif") center / auto;
}

.logo-overlay {
  position: absolute;
  inset: 42.5vh 0;
  z-index: 200;
  width: 15vw;
  height: 15vh;
  margin: 0 auto;
  opacity: 1;
  mix-blend-mode: overlay;
  background: url("assets/logo-symbol.svg") center / contain no-repeat;
}

.contact-div {
  position: absolute;
  inset: auto 0 4%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
  width: 97vw;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.symbol-div {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: flex-start;
}

.icon-div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: auto;
  position: relative;
}

.petroglyph-icon {
  width: 7vw;
  height: 4vw;
  background: url("assets/petroglyph.png") center / cover no-repeat;
}

.petroglyph-hover-animation {
  position: absolute;
  width: 7vw;
  height: 4vw;
  background: url("assets/petroglyph-hover.gif") center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.2s;
}

.icon-div:hover .petroglyph-hover-animation { opacity: 1; }
.icon-div:hover .petroglyph-icon { opacity: 0; }

.symbol-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 80%;
}

.heading-2 {
  color: var(--white);
  margin: 0;
  font-family: "PT Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 0.9rem;
}

.paragraph {
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  font-family: "Cascadia Mono", monospace;
  font-size: 0.5rem;
  font-weight: 200;
  line-height: 1rem;
}

.button-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.button {
  background-color: var(--button);
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  font-family: "Atkinson Hyperlegible Mono", sans-serif;
  font-size: 0.6rem;
  font-weight: 200;
  line-height: 1rem;
  transition: background-color 0.2s, color 0.2s;
}

.button:hover {
  color: #000;
  background-color: #6ba5d9;
}

.legal-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-family: "Atkinson Hyperlegible Mono", sans-serif;
  font-size: 0.6rem;
  font-weight: 200;
  line-height: 1rem;
  color: #fff;
}

.legal-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.legal-links a:hover { color: #6ba5d9; }
.legal-links .sep { opacity: 0.5; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  overflow-y: auto;
  padding: 5vh 20px;
}

.modal.open { display: block; }

.modal-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid #2b2b2b;
  color: #fff;
  padding: 40px 36px 32px;
  font-family: "Atkinson Hyperlegible Mono", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.4rem;
}

.modal-content h2 {
  font-family: "PT Mono", monospace;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.modal-content h3 {
  font-family: "PT Mono", monospace;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-content p { margin: 0 0 12px; }

.modal-content .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
  padding: 4px 8px;
  transition: color 0.2s;
}

.modal-content .close:hover { color: #6ba5d9; }

@media screen and (max-width: 991px) {
  .h1-container { max-width: 75vw; }
  .background-video { width: auto; height: 150vh; top: -50vh; }
  .logo-overlay { width: 12vw; height: 12vh; top: 44vh; bottom: 44vh; }
  .contact-div { gap: 0; }
  .button { font-size: 0.5rem; }
  .petroglyph-icon,
  .petroglyph-hover-animation { width: 9vw; height: 5vw; }
  .heading-2 { font-size: 0.65rem; }
  .paragraph { font-size: 0.45rem; }
  body { background-color: var(--black); }
  .icon-div { width: 22.5%; }
}

@media screen and (max-width: 767px) {
  .h1-container { max-width: 75vw; }
  .logo-overlay { width: 10vw; height: 10vh; }
  .contact-div { grid-template-columns: 1fr 1fr; }
  .petroglyph-icon,
  .petroglyph-hover-animation { width: 10vw; height: 7vw; }
  .icon-div { width: 20%; }
}

@media screen and (max-width: 479px) {
  .h1-container { max-width: 90vw; }
  .logo-wrapper {
    flex-direction: column;
    gap: 50vh;
    width: 100%;
    margin: 0 auto;
  }
  .white { font-size: 0.85rem; line-height: 1rem; margin: 0; }
  .logo-overlay { width: 40vw; height: 40vh; top: 30vh; bottom: 30vh; }
  .contact-div { grid-template-columns: 1fr; }
  .symbol-div { display: none; }
  .button-div { justify-self: center; }
}
