/*
 * Shared visual system for Projects, Videos, Blog, Contact and legal heroes.
 *
 * Each page keeps its editable content and page-specific sections. This file
 * owns the complete hero geometry so all overview and legal pages use the same height,
 * content axes, typography and responsive spacing.
 */

:is(.projects-hero, .blog-hero, .universe-hero) {
  min-height: 620px;
}

:is(.projects-hero, .blog-hero, .universe-hero) {
  align-items: flex-start;
}

:is(.projects-hero-inner, .blog-hero-inner, .universe-hero-inner) {
  position: relative;
  width: min(1180px, calc(100% - 64px));
  min-height: 620px;
  box-sizing: border-box;
  margin-inline: auto;
  padding-top: 124px;
}

:is(.projects-hero h1, .blog-hero h1, .universe-hero-title) {
  width: 100%;
  max-width: 860px;
  margin: 0 auto !important;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(54px, 7.4vw, 108px);
  font-weight: 820;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

:is(.projects-hero h1, .blog-hero h1, .universe-hero-title) span {
  color: #727d88;
  font-weight: 470;
}

:is(.projects-hero-copy, .blog-hero-copy),
.universe-hero .universe-hero-inner > .universe-hero-copy {
  width: 100%;
  max-width: 670px;
  margin: 0 auto !important;
  padding-top: 60px;
  color: #aeb7c0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.universe-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(to bottom, transparent 66%, #05070a 100%),
    radial-gradient(circle at 14% 72%, rgba(21, 153, 255, 0.12), transparent 27%),
    radial-gradient(circle at 52% 100%, rgba(90, 203, 67, 0.08), transparent 26%),
    radial-gradient(circle at 90% 68%, rgba(255, 119, 15, 0.11), transparent 28%),
    #030609;
}

.universe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px);
  background-position: 12px 17px, 68px 82px;
  background-size: 118px 118px, 173px 173px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.universe-hero::after {
  content: "";
  position: absolute;
  right: clamp(-90px, 1vw, 10px);
  top: 50%;
  z-index: -1;
  width: min(640px, 50vw);
  aspect-ratio: 1;
  transform: translateY(-47%);
  opacity: 0.1;
  background: url("../images/martlverse-m-transparent.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 54px rgba(255, 255, 255, 0.12));
}

.universe-hero-inner > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.universe-hero-kicker {
  margin-bottom: 20px !important;
}

.universe-world-line {
  position: absolute;
  left: 0;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 !important;
  font: 850 10px var(--font-geist-mono), monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.universe-world-line i {
  width: 18px;
  height: 1px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.24);
}

.universe-world-line .play { color: var(--play); }
.universe-world-line .grow { color: var(--grow); }
.universe-world-line .build { color: var(--build); }

@media (max-width: 900px) {
  :is(.projects-hero, .blog-hero, .universe-hero) {
    min-height: 570px;
  }

  :is(.projects-hero-inner, .blog-hero-inner, .universe-hero-inner) {
    width: min(100% - 48px, 1180px);
    min-height: 570px;
    padding-top: 100px;
  }

  :is(.projects-hero h1, .blog-hero h1, .universe-hero-title) {
    max-width: 720px;
    font-size: clamp(50px, 10vw, 82px);
  }

  :is(.projects-hero-copy, .blog-hero-copy),
  .universe-hero .universe-hero-inner > .universe-hero-copy {
    padding-top: 50px;
  }

  .universe-hero::after {
    right: -100px;
    width: min(560px, 65vw);
    opacity: 0.075;
  }
}

@media (max-width: 640px) {
  :is(.projects-hero, .blog-hero, .universe-hero) {
    min-height: 520px;
  }

  :is(.projects-hero-inner, .blog-hero-inner, .universe-hero-inner) {
    width: calc(100% - 36px);
    min-height: 520px;
    padding-top: 66px;
  }

  :is(.projects-hero h1, .blog-hero h1, .universe-hero-title) {
    font-size: clamp(43px, 14.5vw, 64px);
    line-height: 0.94;
    letter-spacing: -0.055em;
  }

  :is(.projects-hero-copy, .blog-hero-copy),
  .universe-hero .universe-hero-inner > .universe-hero-copy {
    padding-top: 40px;
    font-size: 15px;
    line-height: 1.62;
  }

  .universe-world-line {
    flex-wrap: wrap;
    gap: 9px 11px;
    bottom: 28px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .universe-world-line i {
    width: 10px;
  }

  .universe-hero::after {
    right: -128px;
    width: 430px;
    opacity: 0.06;
  }
}
