.home-wordmark {
  font-family: var(--font-display, "Etna", "ABeeZee", sans-serif);
  font-size: clamp(3rem, 8.6vw, 6.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body[data-page="home"] .hero__inner {
  gap: 22px;
}

.home-github-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 13, 25, 0.48);
  color: rgba(255, 255, 255, 0.88);
  font-family: "ABeeZee", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-github-link:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.home-github-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.home-wordmark--ascii {
  width: min(96vw, 900px);
  padding-inline: 0;
}

.home-wordmark--ascii pre {
  margin: 0;
  overflow: visible;
  color: #fff;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.72rem, 2.5vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.2);
  white-space: pre;
}

@media (max-width: 520px) {
  .home-wordmark {
    font-size: clamp(2.65rem, 15vw, 4.25rem);
  }

  .home-wordmark--ascii pre {
    font-size: clamp(0.54rem, 2.6vw, 0.82rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-github-link {
    transition: none;
  }
}

body[data-page="home"] {
  background-color: #07111f;
  color: #f8fafc;
  font-family: "ABeeZee", sans-serif;
}

.masthead__ascii {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.25;
}

body[data-page="home"] #site-main {
  position: relative;
  z-index: 10;
}

html:not([data-nav-solid]) body[data-page="home"] #site-nav {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-nav-solid] body[data-page="home"] #site-nav {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.custom-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.custom-hero__avatar {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: #061224;
}

.custom-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.custom-hero__subtitle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.custom-hero__handle {
  color: #f8fafc;
  font-weight: bold;
  opacity: 0.9;
}

.custom-hero__dot {
  color: #475569;
  font-size: 0.8rem;
}

.custom-hero__role {
  color: #94a3b8;
}

.custom-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.hero-link img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.home-image-pending {
  position: relative;
}

.home-image-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 25%, rgba(148, 163, 184, 0.3) 50%, rgba(148, 163, 184, 0.12) 75%);
  background-size: 200% 100%;
  animation: home-image-shimmer 1.4s ease-in-out infinite;
}

@keyframes home-image-shimmer {
  to { background-position: -200% 0; }
}

.masthead { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-link {
    transition: none;
  }

  .home-image-pending::after {
    animation: none;
  }
}

body[data-page="home"] main {
  gap: clamp(28px, 5vw, 48px);
}

body[data-page="home"] .section__inner {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 72px),
    rgba(6, 10, 18, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 50px rgba(0, 0, 0, 0.34);
}

body[data-page="home"] .section__title {
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

body[data-page="home"] .section__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: #9dc1ff;
}

body[data-page="home"] .section__lead {
  max-width: 42rem;
  margin-top: 12px;
  margin-bottom: 26px;
  font-size: 0.98rem;
  line-height: 1.6;
}

body[data-page="home"] .qualification-grid,
body[data-page="home"] .social-grid {
  gap: 12px;
}

body[data-page="home"] .qualification-card,
body[data-page="home"] .stat-card,
body[data-page="home"] .social-tile,
body[data-page="home"] .tile-skeleton {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(14, 18, 28, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="home"] .qualification-card:hover,
body[data-page="home"] .stat-card:hover,
body[data-page="home"] .social-tile:hover {
  border-color: rgba(157, 193, 255, 0.45);
  background: rgba(20, 28, 42, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: none;
}

body[data-page="home"] .qualification-card__icon,
body[data-page="home"] .social-tile__icon-wrap,
body[data-page="home"] .stat-card__icon-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none;
}

body[data-page="home"] .social-tile__icon-wrap {
  width: 46px;
  height: 46px;
}

body[data-page="home"] .social-tile__icon-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body[data-page="home"] .social-tile:hover .social-tile__icon-wrap {
  transform: none;
}

body[data-page="home"] .qualification-card__body h3,
body[data-page="home"] .social-tile__label {
  font-weight: 400;
  letter-spacing: -0.02em;
}

body[data-page="home"] .stat-card__value {
  font-weight: 400;
  letter-spacing: -0.04em;
}

body[data-page="home"] .stat-card__label {
  letter-spacing: 0.06em;
}

body[data-page="home"] .social-tile__glow {
  display: none;
}

body[data-page="home"] .social-tile__handle {
  color: #9dc1ff;
}

body[data-page="home"] .social-tile__external {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .social-tile:hover .social-tile__external {
  color: #fff;
  background: rgba(157, 193, 255, 0.16);
  transform: none;
}

body[data-page="home"] .qualification-button {
  min-width: 220px;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: none;
}

body[data-page="home"] .qualification-button:hover {
  background: #f8fafc;
  transform: none;
}

body[data-page="home"] .sponsors-label {
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  body[data-page="home"] .section__title::after {
    margin-top: 12px;
  }

  body[data-page="home"] .stat-card,
  body[data-page="home"] .stats-grid .tile-skeleton {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="home"] .stat-card--views {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  body[data-page="home"] .stat-card:hover {
    border-color: transparent;
    border-right-color: rgba(255, 255, 255, 0.12);
    background: transparent;
  }

  body[data-page="home"] .social-tile:not(.social-tile--instagram):not(.social-tile--github) {
    display: none;
  }

  body[data-page="home"] .social-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 0.95rem;
    text-decoration: none;
  }
}
