/* ============================================================
   1. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: #0C0C0C;
}

/* ----- Navbar ----- */
.hero__nav {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.hero__nav a {
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.hero__nav a:hover {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .hero__nav { padding: 2rem 2.5rem 0; }
  .hero__nav a { font-size: 1.125rem; }
}

@media (min-width: 1024px) {
  .hero__nav a { font-size: 1.4rem; }
}

/* ----- Hero heading ----- */
.hero__heading-wrap {
  overflow: hidden;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.hero__title {
  width: 100%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  font-size: 14vw;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero__title { font-size: 15vw; margin-top: 1rem; }
}

@media (min-width: 768px) {
  .hero__title { font-size: 16vw; margin-top: -1.25rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 17.5vw; }
}

/* ----- Bottom bar ----- */
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1.5rem 1.75rem;
  position: relative;
  z-index: 20;
}

.hero__tagline {
  color: #D7E2EA;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.375;
  font-size: clamp(0.75rem, 1.4vw, 1.5rem);
  max-width: 160px;
}

@media (min-width: 640px) {
  .hero__bottom { padding: 0 1.5rem 2rem; }
  .hero__tagline { max-width: 220px; }
}

@media (min-width: 768px) {
  .hero__bottom { padding: 0 2.5rem 2.5rem; }
  .hero__tagline { max-width: 260px; }
}

/* ----- Portrait (magnetic) ----- */
.hero__portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  width: 280px;
}

/* Combine the centering translate with the fade-in offset so they don't
   clobber each other. The magnet effect is applied to the inner <img>.
   Mobile: vertically centered (-translate-y-1/2). */
.hero__portrait.fade-in {
  transform: translate(calc(-50% + var(--fade-x, 0px)), calc(-50% + var(--fade-y, 30px)));
}

.hero__portrait.fade-in.is-visible {
  transform: translate(-50%, -50%);
}

.hero__portrait-img {
  width: 100%;
  height: auto;
  will-change: transform;
}

/* sm+: the portrait sits at the bottom of the hero (no Y centering). */
@media (min-width: 640px) {
  .hero__portrait {
    top: auto;
    bottom: 0;
    width: 360px;
  }
  .hero__portrait.fade-in {
    transform: translate(calc(-50% + var(--fade-x, 0px)), var(--fade-y, 30px));
  }
  .hero__portrait.fade-in.is-visible {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .hero__portrait { width: 440px; }
}

@media (min-width: 1024px) {
  .hero__portrait { width: 520px; }
}
