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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #050505;
  color: #fff;
  font-family: "Host Grotesk", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- canvas background --- */
canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0.45;
}

/* --- grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* --- content layer --- */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- brand --- */
.brand {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.tagline {
  font-size: clamp(15px, 2.5vw, 21px);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.35);
}

/* --- socials --- */
.socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding-left: 148px;
  animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
}

.social-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease;
}

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

.social-link:hover::after {
  width: 100%;
}

.social-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  outline-offset: 6px;
}

.social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sep {
  display: none;
}

/* --- animation --- */
@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- responsive --- */
@media (max-width: 600px) {
  .brand {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .brand-text { align-items: center; }
  .logo { width: 72px; height: 72px; }
  main { align-items: center; }
  .socials {
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    padding-left: 0;
  }
  .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .socials { animation: none; }
  canvas { display: none; }
}
