:root {
  --fog: #000000;
  --fog-border: rgba(255, 255, 255, 0.12);
  --menu-bg: rgba(0, 0, 0, 0.55);
  --menu-text: #f2f2f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
  background: url("images/background_web.png") center / cover no-repeat fixed;
  font-family: "Garamond", "Times New Roman", serif;
  position: relative;
  overflow-x: hidden;
  cursor: url("images/bob_cursor_32.png") 4 4, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
      -8deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02) 24px,
      transparent 48px
    ),
    repeating-linear-gradient(
      12deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.01) 32px,
      transparent 64px
    );
  background-size: 200% 200%;
  opacity: 0.6;
  animation: wave-drift 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

#cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.jumpscare {
  position: fixed;
  top: 0;
  left: 0;
  width: min(220px, 45vw);
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s ease;
}

.fog-panel {
  position: relative;
  z-index: 1;
}

.fog-panel {
  width: min(900px, 86vw);
  min-height: 100vh;
  background: var(--fog);
  border: 1px solid var(--fog-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 32px;
  gap: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  animation: title-rainbow 3.6s linear infinite;
}

.title-letter {
  display: inline-block;
  animation: letter-bounce 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

.title-space {
  width: 0.6em;
}

.logo {
  width: min(420px, 80vw);
  height: auto;
  object-fit: contain;
}

.menu {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  gap: 18px;
  padding: 10px 18px;
  background: var(--menu-bg);
  border: 1px solid var(--fog-border);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.menu a {
  color: var(--menu-text);
  text-decoration: none;
  cursor: url("images/bob_cursor_2_32.png") 4 4, pointer;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a:focus {
  cursor: url("images/bob_cursor_2_32.png") 4 4, pointer;
}

.menu a:hover,
.menu a:focus {
  color: #e31b1b;
  animation: shake 0.18s linear infinite;
}

.info-section {
  width: 100%;
  display: block;
  margin-top: 10px;
}

.info-left,
.info-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.info-left {
  gap: 20px;
}

.info-block + .info-block {
  margin-top: 10px;
}

.section-title {
  width: min(240px, 70%);
  height: auto;
}

.working-title {
  width: min(520px, 95%);
}

.profile-photo {
  width: min(160px, 40vw);
  height: auto;
  border: 1px solid var(--fog-border);
}

.info-right {
  float: right;
  margin: 24px 0 12px 20px;
}

.info-text {
  margin: 0;
  color: #d63b3b;
  font-size: 1.08rem;
  line-height: 1.5;
}

.info-text + .info-text {
  margin-top: 10px;
}

.info-section::after {
  content: "";
  display: block;
  clear: both;
}

.download-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  text-align: center;
}

.download-text {
  margin: 0;
  color: #e6e6e6;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  border: 2px solid #ffffff;
  background: linear-gradient(120deg, #9f0000, #2a0000);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download-button:hover,
.download-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  cursor: url("images/bob_cursor_2_32.png") 4 4, pointer;
}

.download-visual {
  width: min(420px, 80%);
  height: auto;
  margin-top: 8px;
}

@keyframes shake {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-2px, -2px);
  }
  80% {
    transform: translate(2px, 2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes wave-drift {
  0% {
    background-position: 0% 0%, 100% 50%;
  }
  50% {
    background-position: 100% 40%, 0% 100%;
  }
  100% {
    background-position: 0% 0%, 100% 50%;
  }
}


@media (max-width: 600px) {
  .menu {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .info-section {
    display: flex;
    flex-direction: column;
  }

  .info-right {
    float: none;
    margin: 16px 0 0;
  }
}
.title-space {
  width: 0.6em;
}

@keyframes letter-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes title-rainbow {
  0% {
    color: #ff2a2a;
  }
  16% {
    color: #ff9f1a;
  }
  32% {
    color: #ffe51a;
  }
  50% {
    color: #4dff4d;
  }
  66% {
    color: #2dc9ff;
  }
  82% {
    color: #8a4dff;
  }
  100% {
    color: #ff2a2a;
  }
}
