:root {
  overscroll-behavior: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  min-height: 100vh;
  background-color: #000;
  overflow-x: hidden;
}

main {
  display: block;
}

section {
  position: relative;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.header-logo {
  width: clamp(100px, 18vw, 200px);
  height: clamp(40px, 7vw, 80px);
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.logo {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(180px, 32vw, 400px);
  height: clamp(72px, 12vw, 180px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  contain: layout style paint;
  transform: translateZ(0);
}

.hero::after {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 1) 100%
  );

  content: " ";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* ---------- Fog ---------- */
.fogwrapper {
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  filter: blur(0.5px) saturate(1.1) brightness(1.3);
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
  will-change: filter;
  transform: translateZ(0);
  contain: layout style paint;
  mix-blend-mode: difference;
}
#foglayer_01,
#foglayer_02,
#foglayer_03 {
  height: 100%;
  position: absolute;
  width: 200%;
  left: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  contain: layout style paint;
}
#foglayer_01 .fog-image01,
#foglayer_01 .fog-image02,
#foglayer_02 .fog-image01,
#foglayer_02 .fog-image02,
#foglayer_03 .fog-image01,
#foglayer_03 .fog-image02 {
  float: left;
  height: 100%;
  width: 50%;
  transform: translateZ(0);
  will-change: transform;
}
#foglayer_01 {
  animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
}
#foglayer_02,
#foglayer_03 {
  animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
}

/* ---------- Moving Fog ---------- */
/*
    'size: cover' || 'size: 100%'; results remain the same
    'attachment: scroll' can be added or removed; results remain the same
    'attachment: fixed' causing unexpected results in Chrome
    'repeat-x' || 'no-repeat'; results remain the same
  */
#foglayer_01 .fog-image01,
#foglayer_01 .fog-image02 {
  background: url("../images/fog1.png") center center/cover no-repeat
    transparent;
}
#foglayer_02 .fog-image01,
#foglayer_02 .fog-image02,
#foglayer_03 .fog-image01,
#foglayer_03 .fog-image02 {
  background: url("../images/fog2.png") center center/cover no-repeat
    transparent;
}

/* ---------- Keyframe Layer 1 ---------- */
@keyframes foglayer_01_opacity {
  0% {
    opacity: 0.1;
  }
  22% {
    opacity: 0.5;
  }
  40% {
    opacity: 0.28;
  }
  58% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.1;
  }
}
/* ---------- Keyframe Layer 2 ---------- */
@keyframes foglayer_02_opacity {
  0% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.1;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.5;
  }
}
/* ---------- Keyframe Layer 3 ---------- */
@keyframes foglayer_03_opacity {
  0% {
    opacity: 0.8;
  }
  27% {
    opacity: 0.2;
  }
  52% {
    opacity: 0.6;
  }
  68% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}
/* ---------- Keyframe moveMe ---------- */
@keyframes foglayer_moveme {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
  .grain,
  .fogwrapper,
  #sparks {
    display: none !important;
  }

  .header-logo {
    width: clamp(150px, 35vw, 300px);
    height: clamp(60px, 14vw, 120px);
  }

  .logo {
    width: clamp(250px, 60vw, 500px);
    height: clamp(100px, 24vw, 200px);
  }

  #foglayer_01 .fog-image01,
  #foglayer_01 .fog-image02,
  #foglayer_02 .fog-image01,
  #foglayer_02 .fog-image02,
  #foglayer_03 .fog-image01,
  #foglayer_03 .fog-image02 {
    width: 100%;
  }
}

/* sparks */
#sparks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
  contain: layout style paint;
  will-change: contents;
}

/* Social Links */
.social {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: rgba(255, 255, 255, 1);
}

.credits {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 300;
  font-family: "Roboto", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.credits-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.credits-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.credits-separator {
  color: rgba(255, 255, 255, 0.5);
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
  .social {
    padding: 20px 15px;
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    gap: 20px;
    order: 1;
  }

  .social-link {
    font-size: 13px;
  }

  .credits {
    font-size: 10px;
    order: 2;
  }
}
