/* Homepage-only treatment; the existing pixel flow continues below the hero. */
.home-page {
  background-color: #081321;
}

.home-page main {
  margin-top: 0;
}

.home-page #hero-section {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: clamp(24px, 3vh, 40px);
  min-height: clamp(400px, 66svh, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg,
    #081321 0%, #081321 64%,
    rgba(8, 19, 33, 0.94) 73%,
    rgba(8, 19, 33, 0.55) 86%,
    rgba(8, 19, 33, 0) 100%);
}

.home-page #hero-pixels {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-page .cta-container {
  z-index: 1;
  width: min(100% - 40px, 1000px);
  margin: 0;
  padding: 32px 0 64px;
  gap: 24px;
  text-align: center;
}

.home-page .cta-container > .cta-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  color: var(--blue-200);
  font-weight: 400;
  user-select: none;
}

.hero-krilla {
  font-family: 'Space Mono', monospace;
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: 0.35em;
  padding-left: 0.35em;
}

.hero-byte {
  display: block;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* Preserve real text for assistive technology and when JS/font loading fails. */
.hero-pixels-ready .hero-byte {
  color: transparent;
}

.home-page .cta-container h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.5;
  text-wrap: balance;
}

.home-page .cta-container .btn-cta {
  background-color: #081321;
  min-height: 44px;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home-page .cta-container .hero-packages {
  background-color: var(--secondary);
  color: var(--gray-900);
}

.home-page .hero-actions .btn-cta:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
}

.home-page .cta-container .btn-cta:hover {
  background-color: var(--coral-orange);
}

.home-page #about-us h2,
.home-page .project-blurb h2 {
  margin: 0 0 20px;
}

.home-page #about-us p {
  max-width: 720px;
  line-height: 1.6;
}

.home-page #about-us + .hr-container .hr-space {
  margin: 32px clamp(16px, 6vw, 72px);
}

.home-page #projects {
  scroll-margin-top: 100px;
}

.home-page .project-blurb {
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.home-page .project-blurb .card-intro {
  max-width: 800px;
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .home-page #hero-section {
    min-height: 380px;
  }

  .home-page .cta-container {
    padding: 28px 0 56px;
    gap: 24px;
  }
}
