/* SL Hero — background top area with heading, then a rounded video panel */
.sl-hero{
  position:relative;
  background:var(--sl-bg);
  overflow:hidden;
}

/* ---------- top area ---------- */
.sl-hero__top{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:150px 0 64px;   /* top leaves room for the floating header */
  isolation:isolate;
}
.sl-hero__top > .sl-inner{ position:relative; z-index:1; }

.sl-hero__bg{ position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.sl-hero__bg-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.sl-hero__tint{ position:absolute; inset:0; background:#ffffff; opacity:.25; }
/* soft fade into the page colour, like the design */
.sl-hero__bg--fade::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:60%;
  background:linear-gradient(to bottom, transparent 0%, var(--sl-bg) 100%);
}

/* ---------- heading ---------- */
.sl-hero .sl-head__title{ max-width:640px; font-size:44px; line-height:1.2; }
.sl-hero .sl-head__desc{ max-width:560px; color:var(--sl-text); opacity:.85; }
.sl-hero__actions{ margin-top:28px; }
.sl-hero__btn{ height:46px; padding:0 26px; }

/* ---------- video panel ---------- */
.sl-hero__bottom{ position:relative; z-index:1; padding-bottom:96px; }
.sl-hero__media{
  position:relative;
  width:100%;
  margin:0 auto;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  background:var(--sl-box);
  box-shadow:0 20px 50px rgba(56,50,44,.10);
}
.sl-hero__media img,
.sl-hero__media video,
.sl-hero__media iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  object-fit:cover;
}
.sl-hero__media video:not(.sl-hero__video--auto){ object-fit:contain; background:#000; }
.sl-hero__iframe--auto{ pointer-events:none; }

.sl-hero__play{
  position:absolute;
  top:50%;
  left:50%;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:84px;
  height:84px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--sl-btn);
  color:#ffffff;
  box-shadow:0 0 0 10px rgba(253,249,244,.45);
  transform:translate(-50%, -50%);
  cursor:pointer;
  transition:transform .2s ease, background-color .2s ease;
}
.sl-hero__play:hover,
.sl-hero__play:focus{ background:var(--sl-btn-hover); color:#ffffff; transform:translate(-50%, -50%) scale(1.06); }
.sl-hero__play:focus-visible{ outline:2px solid #ffffff; outline-offset:4px; }
.sl-hero__play svg{ width:32px; height:32px; margin-left:3px; }

.sl-hero__ph{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  font-size:15px;
  color:var(--sl-muted);
  border:2px dashed var(--sl-line);
  border-radius:inherit;
}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .sl-hero__top{ padding:130px 0 56px; }
  .sl-hero .sl-head__title{ font-size:38px; }
  .sl-hero__bottom{ padding-bottom:72px; }
}
@media (max-width:767px){
  .sl-hero__top{ padding:112px 0 44px; }
  .sl-hero .sl-head__title{ font-size:31px; }
  .sl-hero__bottom{ padding-bottom:56px; }
  .sl-hero__media{ border-radius:10px; }
  .sl-hero__play{ width:64px; height:64px; }
  .sl-hero__play svg{ width:24px; height:24px; }
  .sl-hero__bg-video{ display:none; }   /* the poster image shows on phones */
}
@media (prefers-reduced-motion:reduce){
  .sl-hero__bg-video{ display:none; }
}
