/* ---------- Mobile base (default, no media query) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback for older browsers */
  height: 100dvh;  /* updates live as mobile browser chrome shows/hides */
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 5%;
  right: 5%;
  bottom: 8%;
  color: #fff;
}

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  /* Layered: a tight shadow for edge definition where the photo goes pale
     behind the glyphs, plus wider soft passes that darken the area around
     them. A single wide blur alone washes out over light backgrounds. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 8px 36px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 6px 28px rgba(0, 0, 0, 0.3);
}

/* ---------- Decorative orb ---------- */
.scene-orb {
  position: fixed;
  width: clamp(210px, 27vw, 420px);
  height: clamp(210px, 27vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 60, 210, 0.5) 0%, rgba(18, 38, 150, 0.25) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: left, top, transform;
}

.scene-orb--cover {
  z-index: 50;
}

/* Applied during the orb-shrink phase so the dot travels above the contact
   card (z-index 60) and usluge (z-index 61) and is visible at the corner. */
.scene-orb--top {
  z-index: 70;
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
}

/* ---------- Laptop ---------- */
@media (min-width: 1024px) {
  .hero-content {
    left: auto;
    right: 4rem;
    bottom: 10%;
    max-width: 780px;
  }

  .hero-subtitle {
    margin-left: auto;
    text-align: right;
    max-width: 460px;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1440px) {
  .hero-content {
    right: 4rem;
    bottom: 11%;
  }
}
