/* Hero as full-bleed cover — image fills the section, copy overlays */

.hero.hero-cover{
  display:block;
  position:relative;
  max-width:none;
  width:100%;
  margin:0;
  padding:0;
  min-height:min(92vh,920px);
  overflow:hidden;
  isolation:isolate;
  background:#050508;
  gap:0;
  grid-template-columns:none;
}

/* Soft fade into the next section */
.hero.hero-cover::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:clamp(88px,14vh,160px);
  z-index:3;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    rgba(5,5,8,0) 0%,
    rgba(5,5,8,.5) 48%,
    #050508 100%
  );
}

.hero-cover-media{
  position:absolute;
  top:8%;
  bottom:12%;
  left:auto;
  right:max(48px, calc((100% - 1240px) / 2));
  width:min(48vw, 680px);
  z-index:0;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-cover-frame{
  position:relative;
  height:auto;
  width:100%;
  max-height:100%;
  aspect-ratio:1516 / 1037;
}

.hero-cover-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  display:block;
  filter:none;
}

.hero-cover-scrim{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(5,5,8,.97) 0%,
      rgba(5,5,8,.92) 28%,
      rgba(5,5,8,.55) 42%,
      rgba(5,5,8,.12) 52%,
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(5,5,8,.4) 0%,
      transparent 18%,
      transparent 70%,
      rgba(5,5,8,.82) 100%
    );
}

.hero-cover-inner{
  position:relative;
  z-index:2;
  box-sizing:border-box;
  width:100%;
  min-height:min(92vh,920px);
  max-width:1320px;
  margin:0 auto;
  padding:clamp(48px,8vh,96px) clamp(20px,4vw,40px) 110px;
  display:flex;
  align-items:center;
}

.hero.hero-cover .hero-copy{
  padding:0;
  max-width:min(34rem,42vw);
  z-index:2;
}

.hero.hero-cover .hero-credits{
  position:absolute;
  z-index:2;
  left:4%;
  right:4%;
  bottom:11%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(12px,3vw,28px);
  margin:0;
  padding:0;
  line-height:1.4;
  pointer-events:none;
}

.hero.hero-cover .hero-credit{
  text-align:center;
  max-width:11.5rem;
}

.hero.hero-cover .hero-credit-zoltan{
  justify-self:center;
  transform:translateX(-6%) rotate(-3deg);
  transform-origin:center top;
}

.hero.hero-cover .hero-credit-kinga{
  justify-self:center;
  transform:translateX(6%) rotate(3deg);
  transform-origin:center top;
}

.hero.hero-cover .hero-credits strong{
  font-size:.9rem;
  font-weight:600;
  color:#fff;
}

.hero.hero-cover .hero-credits small{
  font-size:.75rem;
  color:rgba(230,228,240,.78);
}

.hero.hero-cover .hero-bottom{
  position:relative;
  z-index:4;
  max-width:1320px;
  margin:0 auto;
  padding:18px clamp(20px,4vw,40px) clamp(36px,5.5vh,64px);
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:.875rem;
  color:rgba(184,183,197,.9);
  border-top:1px solid transparent;
  background:transparent;
}

.hero.hero-cover .hero-bottom a{color:#f6f5f8}

.hero .hero-title{
  position:relative;
  display:inline-block;
  margin-bottom:22px;
}

.hero .hero-title em{
  position:relative;
  display:inline-block;
  color:#fff;
  font-style:normal;
}

.hero .hero-title em::after{
  content:"";
  position:absolute;
  left:-4%;
  width:118%;
  right:auto;
  bottom:.02em;
  height:.11em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9.2C28 8.4 52 3.2 80 2.6c26-.6 48 2.8 66 5.4 5 1.2 9 1.8 11 1.6' fill='none' stroke='%23d2b8ff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow:none;
  filter:
    drop-shadow(0 0 3px rgba(186,140,255,.9))
    drop-shadow(0 0 8px rgba(155,92,255,.45));
  transform:rotate(-2.5deg);
  pointer-events:none;
}

.hero .hero-sub{
  color:#ebeaf2;
  max-width:22em;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  margin-top:28px;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:12px 18px;
  border-radius:14px;
  font-size:.95rem;
  font-weight:700;
  letter-spacing:-.01em;
  text-decoration:none;
  transition:box-shadow .15s ease,background .15s ease,border-color .15s ease,color .15s ease;
}

.hero-cta-icon{
  display:grid;
  place-items:center;
  flex:none;
  width:22px;
  height:22px;
}

.hero-cta-icon svg{display:block}

.hero-cta-arrow{
  opacity:.85;
  font-size:.95rem;
  line-height:1;
}

.hero-cta-primary{
  background:linear-gradient(180deg,#e4d4ff 0%,#cfb5ff 100%);
  color:#17121f;
  border:1px solid rgba(220,196,255,.9);
  box-shadow:
    0 0 0 1px rgba(167,120,255,.35),
    0 0 22px rgba(186,140,255,.55),
    0 0 42px rgba(112,80,148,.35);
}

.hero-cta-primary:hover{
  color:#110e18;
  background:linear-gradient(180deg,#efe6ff 0%,#d9c4ff 100%);
  box-shadow:
    0 0 0 1px rgba(207,181,255,.5),
    0 0 28px rgba(186,140,255,.7),
    0 0 52px rgba(155,92,255,.4);
}

.hero-cta-secondary{
  background:rgba(18,16,28,.45);
  color:#f6f5f8;
  border:1.5px solid rgba(207,181,255,.55);
  box-shadow:0 0 16px rgba(167,120,255,.18);
  backdrop-filter:blur(6px);
}

.hero-cta-secondary:hover{
  color:#fff;
  border-color:rgba(220,196,255,.85);
  background:rgba(28,24,42,.7);
  box-shadow:0 0 22px rgba(186,140,255,.32);
}

.hero-cta:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:4px;
}

@media(max-width:1140px){
  .hero.hero-cover{min-height:min(88vh,820px)}
  .hero-cover-inner{
    min-height:min(88vh,820px);
    padding-bottom:120px;
  }
  .hero.hero-cover .hero-copy{max-width:min(34rem,48vw)}
  .hero-cover-media{
    left:auto;
    top:10%;
    bottom:14%;
    right:max(24px, calc((100% - 1080px) / 2));
    width:min(52vw, 560px);
  }
  .hero-cover-frame{height:auto;width:100%}
  .hero.hero-cover .hero-credits{
    left:4%;
    right:4%;
    bottom:4%;
  }
  .hero-cover-scrim{
    background:
      linear-gradient(
        180deg,
        rgba(5,5,8,.72) 0%,
        rgba(5,5,8,.35) 35%,
        rgba(5,5,8,.2) 55%,
        rgba(5,5,8,.88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5,5,8,.88) 0%,
        rgba(5,5,8,.45) 38%,
        transparent 58%
      );
  }
}

@media(max-width:620px){
  .hero.hero-cover{
    display:flex;
    flex-direction:column;
    min-height:0;
    padding-bottom:12px;
  }
  .hero.hero-cover::after{height:36px}
  .hero-cover-media{
    position:relative;
    inset:auto;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    order:2;
    width:100%;
    max-width:none;
    height:auto;
    min-height:0;
    z-index:0;
    justify-content:center;
    align-items:center;
    padding:8px 20px 0;
    box-sizing:border-box;
  }
  .hero-cover-frame{
    height:auto;
    width:100%;
    max-width:420px;
    max-height:none;
    margin-inline:auto;
    aspect-ratio:1516 / 1037;
  }
  .hero.hero-cover .hero-copy{
    max-width:none;
    width:100%;
    text-align:center;
  }
  .hero.hero-cover .hero-sub{margin-inline:auto}
  .hero-cover-scrim{
    display:none;
  }
  .hero-cover-inner{
    order:1;
    min-height:0;
    justify-content:center;
    padding:36px 20px 12px;
  }
  .hero.hero-cover .hero-credits{
    left:2%;
    right:2%;
    bottom:3%;
  }
  .hero.hero-cover .hero-credit-zoltan,
  .hero.hero-cover .hero-credit-kinga{
    transform:none;
  }
  .hero.hero-cover .hero-bottom{
    order:3;
    flex-direction:column;
    padding:16px 20px 20px;
  }
  .hero-actions{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-top:22px;
  }
  .hero-cta{justify-content:center;width:100%}
  .hero .hero-title{
    font-size:clamp(3.1rem,12vw,4.6rem);
    white-space:normal;
  }
  .hero .hero-title em::after{height:.1em;bottom:.01em}
}
