/* ==========================
   LOCAL FONTS
========================== */
@font-face {
  font-family: "Microgramma";
  src: url("../assets/fonts/Microgramma-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==========================
   PAGE AND BACKGROUND
========================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 80px);
  overflow: hidden;
  background-color: #101010;
}

.hero-background {
  position: absolute;
  inset: -40px;
  z-index: -1;
  pointer-events: none;

  background-image: url("../assets/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(36.6px);
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: #EFF0EB;
  mix-blend-mode: overlay;
  opacity: 0.8;
}

/* ==========================
   CENTERED CONTENT
========================== */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  color: #F2F2F2;
}

/* ==========================
   OVERLAPPING SVG + LOGO
========================== */
.hero-graphics {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78vw, 620px);
  height: min(420px, 78vw);

  /* Controls space between art and heading */
  margin-bottom: 12px;
}

.sphere-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.brand-logo {
  position: absolute;
  width: 48%;
  height: auto;
  object-fit: contain;
  z-index: 1;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================
   SHARED HEADING + PARAGRAPH WIDTH
========================== */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  /* Width follows the heading, but never exceeds available screen width. */
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.hero-copy h1 {
  width: 100%;
  margin: 0;
  color: #F2F2F2;
  font-family: "Microgramma", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4.9vw, 50px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-copy p {
  /* Paragraph fills exactly the width established by the H1.
     width: 0 prevents the longer paragraph from widening the container;
     min-width: 100% makes it match the heading on every screen size. */
  width: 0;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  color: #EFF0EB;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(10px, 1.4vw, 16px);
  line-height: 1.7;
  text-align: center;
  overflow-wrap: break-word;
}

/* ==========================
   TABLET / SMALL LAPTOP
========================== */
@media (max-width: 1024px) {
  .hero {
    padding: clamp(24px, 5vw, 48px);
  }

  .hero-graphics {
    width: min(70vw, 470px);
    height: min(44vw, 300px);
    margin-bottom: 8px;
  }

  .hero-copy {
    gap: 6px;
  }
}

/* Preserve the lighter treatment you used for narrow devices. */
@media (max-width: 820px) {
  .hero-background {
    background-position: 65% center;
  }

  .hero-background::before {
    background-color: #FFFFFF;
    mix-blend-mode: overlay;
    opacity: 1;
  }

  .hero-copy h1,
  .hero-copy p {
    color: #a5a5a5;
  }
}

/* ==========================
   MOBILE
========================== */
@media (max-width: 600px) {
  .hero {
    padding: 24px;
  }

  .hero-graphics {
    width: min(84vw, 320px);
    height: min(54vw, 205px);
    margin-bottom: 4px;
  }

  .hero-copy {
    gap: 4px;
  }
}

/* Reduce oversized artwork on short landscape phone screens. */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-graphics {
    width: min(52vw, 310px);
    height: min(35vh, 180px);
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    animation: none;
  }
}
