@font-face {
  font-family: Morvanh;
  src: url("fonts/Morvanh.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Black Witcher";
  src: url("fonts/BlackWitcher.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blood: #aa1916;
  --ink: #f5f5f5;
  --glass: rgba(255, 255, 255, 0.12);
  --overlay: rgb(20, 6, 9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 16px 48px;
}

.brand img {
  display: block;
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: rise 0.8s ease both;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 0 16px;
  color: var(--ink);
  font-size: 16px;
  transition: color 0.25s ease;
}

.nav a:not(.take)::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 1px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:not(.take):hover::after { transform: scaleX(1); }

.take {
  margin-left: 12px;
  padding: 16px 40px !important;
  border-radius: 30px;
  background: var(--blood);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.take:hover {
  transform: translateY(-2px);
  background: #c41a16;
  box-shadow: 0 10px 24px rgba(170, 25, 22, 0.35);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
}

.band {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0.65;
}

.band > * { position: relative; z-index: 1; }

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 160px 20px 100px;
  background-image: url("img/hero.jpg");
  background-position: top center;
  text-align: center;
  animation: drift 32s ease-in-out infinite alternate;
}

.hero-mark {
  width: 72px;
  height: 2px;
  margin: 0 auto 8px;
  background: var(--blood);
  transform-origin: center;
  animation: draw 0.8s ease 0.15s both;
}

.hero h1 {
  margin: 0;
  font-family: Morvanh, sans-serif;
  font-size: clamp(72px, 9vw, 110px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--blood);
  animation: drip 1.05s ease 0.28s both, glow 4.8s ease-in-out 1.3s infinite;
}

.hero h2 {
  margin: 8px 0 28px;
  font-family: "Abril Fatface", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2.7px;
  color: #fff;
  animation: rise 0.9s ease 0.7s both;
}

.hero .glass { animation: rise 0.9s ease 0.95s both; }

.glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 16px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: var(--glass);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 19px 26px 1px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(24px);
}

.glass svg { width: 28px; height: 28px; fill: #fff; }

.glass {
  transition: transform 0.25s ease, background 0.25s ease;
}

.glass:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.quote {
  padding: 50px 24px;
  background: #000;
  text-align: center;
}

.quote p {
  max-width: 920px;
  margin: 0 auto;
  font-family: Adamina, serif;
  font-size: 21px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.sign {
  display: block;
  height: 54px;
  width: auto;
  margin: 18px auto 0;
  filter: brightness(0) invert(1);
  animation: float 5.5s ease-in-out infinite;
}

.about {
  padding: 90px 24px;
  background-image: url("img/about.jpg");
}

.about-copy {
  width: min(560px, 100%);
  margin-left: auto;
  margin-right: 6vw;
}

.about h2,
.projects h2 {
  margin: 0 0 12px;
  font-family: "Black Witcher", sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1.15;
  color: #fff;
}

.about h2 { text-align: center; }

.rule {
  width: 92px;
  height: 2px;
  margin: 0 auto 18px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: center;
}

.reveal.in .rule { animation: draw 0.7s ease 0.2s forwards; }

.about p,
.projects .lead {
  margin: 0;
  font-family: Adamina, serif;
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
}

.projects {
  padding: 80px 24px 72px;
  background-image: url("img/code.jpg");
}

.projects .wrap { width: min(1140px, 100%); margin: 0 auto; }

.projects .lead {
  max-width: 760px;
  margin: 8px 0 28px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.track.shifting {
  opacity: 0.35;
  transform: translateX(14px);
}

.card {
  background: #1a1a1a;
  min-width: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 4.7;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  padding: 18px 14px 22px;
  font-family: Adamina, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--blood);
}

.arrow {
  position: absolute;
  z-index: 2;
  top: 38%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.arrow:hover {
  transform: scale(1.08);
  background: rgba(170, 25, 22, 0.85);
}

.arrow.prev { left: -6px; }
.arrow.next { right: -6px; }

.more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 48px;
  background: #140c0c;
  color: #f2f2f2;
  font-size: 14px;
}

.site-footer p { margin: 0 0 6px; }

.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
}

.discord-link svg { width: 24px; height: 24px; fill: currentColor; }

.discord-link { transition: transform 0.25s ease, color 0.25s ease; }

.discord-link:hover {
  transform: translateY(-3px) scale(1.08);
  color: #ffd0d0;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.in { animation: rise 0.85s ease var(--d, 0s) forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes drip {
  from { opacity: 0; transform: translateY(-28px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 28px rgba(170, 25, 22, 0.25); }
  50% { text-shadow: 0 0 80px rgba(170, 25, 22, 0.75); }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes drift {
  from { background-position: top center; }
  to { background-position: center 18%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rule { transform: none; }
}

@media (max-width: 900px) {
  .site-header { padding: 16px 18px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px 20px;
    background: rgba(0, 0, 0, 0.92);
  }
  .nav.open { display: flex; }
  .take { margin-left: 0; }
  .about-copy { margin-right: auto; }
  .track { grid-template-columns: 1fr; }
  .card[hidden] { display: none; }
  .band { background-attachment: scroll; }
  .site-footer { padding: 28px 18px; }
  .hero h1 { font-size: 64px; }
}
