:root {
  color-scheme: dark;
  --text: #f2f2f2;
  --muted: #8c8c8c;
  --line: rgba(255, 255, 255, 0.14);
  --soft: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 42%), #000;
}

.centerpiece {
  width: min(100%, 900px);
  display: grid;
  justify-items: center;
  gap: 16px;
  animation: rise-in 900ms ease both;
  --lift: -6vh;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 0;
}

.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(360px, 44vw, 620px);
  min-height: 0;
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(255, 255, 255, 0.08));
}

.logo[src=""],
.logo:not([src]) {
  display: none;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 650;
  letter-spacing: -0.07em;
  text-transform: lowercase;
  opacity: 0;
  pointer-events: none;
}

.logo.is-missing + .logo-fallback {
  opacity: 1;
}

.logo-caption {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  margin-top: 14px;
}

.profile {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 130px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.profile:hover,
.profile:focus-visible {
  transform: scale(1.06);
}

.profile:focus-visible,
.blackpill:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.82);
  outline-offset: 6px;
}

.avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.avatar.is-missing {
  display: none;
}

.avatar-fallback {
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
}

.handle {
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: color 220ms ease;
}

.profile:hover .handle,
.profile:focus-visible .handle {
  color: var(--text);
}

.blackpill-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.blackpill {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 220ms ease, color 220ms ease;
}

.blackpill:hover,
.blackpill:focus-visible {
  transform: scale(1.06);
  color: #fff;
}

.blackpill-stage.is-open .blackpill {
  color: #fff;
}

.emails {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  pointer-events: none;
  transition: max-width 420ms cubic-bezier(0.19, 1, 0.22, 1), opacity 300ms ease 80ms, margin-left 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.email-divider {
  color: rgba(255, 255, 255, 0.35);
}

.emails a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  letter-spacing: -0.02em;
  transition: color 180ms ease, transform 180ms ease;
}

.emails a:hover,
.emails a:focus-visible {
  color: #fff;
  transform: scale(1.03);
}

.blackpill-stage.is-open .emails {
  opacity: 1;
  max-width: 320px;
  margin-left: 14px;
  pointer-events: auto;
}

.site-footer {
  margin-top: -4px;
  text-align: center;
  opacity: 0.5;
  font-size: 11px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--lift) + 12px));
  }

  to {
    opacity: 1;
    transform: translateY(var(--lift));
  }
}

@media (max-width: 520px) {
  .landing {
    padding: 14px 18px;
  }

  .centerpiece {
    gap: 12px;
    --lift: -1vh;
  }

  .logo-wrap {
    width: min(68vw, 260px);
  }

  .logo {
    max-height: 160px;
  }

  .logo-fallback {
    font-size: 26px;
  }

  .logo-caption {
    max-width: 82vw;
    margin-top: 6px;
    font-size: 12px;
  }

  .profiles {
    gap: 18px;
    margin-top: 10px;
  }

  .profile {
    width: 90px;
    gap: 6px;
    padding: 6px 8px;
  }

  .avatar-wrap {
    width: 56px;
    height: 56px;
  }

  .avatar-fallback {
    font-size: 18px;
  }

  .handle {
    font-size: 12px;
  }

  .blackpill-stage {
    min-height: 40px;
  }

  .blackpill {
    font-size: 13px;
  }

  .emails a {
    font-size: 12px;
  }

  .emails {
    gap: 6px;
    max-width: 0;
  }

  .blackpill-stage.is-open .emails {
    max-width: 220px;
    margin-left: 10px;
  }

  .site-footer {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .logo-wrap {
    width: min(62vw, 210px);
  }

  .logo {
    max-height: 130px;
  }

  .avatar-wrap {
    width: 46px;
    height: 46px;
  }

  .handle {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
