.grl-hero-video {
  --grl-video-olive: #7d8354;
  --grl-video-olive-dark: #5d6138;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: block;
  background: #0c0e12;
  color: #fff;
}

.grl-hero-video__visual,
.grl-hero-video__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

video.grl-hero-video__visual {
  background: #0c0e12;
}

.grl-hero-video__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 80%, rgba(125, 131, 84, 0.28), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(188, 255, 111, 0.25), transparent 40%),
    var(--grl-video-bg, linear-gradient(to right, #f8ffef, #bcff6f));
}

.grl-hero-video__fallback-logo {
  width: min(11rem, 50%);
  height: auto;
  opacity: 0.28;
}

.grl-hero-video__fallback-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 19, 12, 0.72);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
}

.grl-hero-video__overlay,
.grl-hero-video__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.grl-hero-video__scrim {
  background:
    linear-gradient(to top, rgba(8, 10, 16, 0.55) 0%, transparent 28%),
    linear-gradient(to right, rgba(8, 10, 16, 0.82) 0%, rgba(8, 10, 16, 0.45) 34%, rgba(8, 10, 16, 0.08) 58%, transparent 74%);
}

.grl-hero-video__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 80rem;
  min-height: 100svh;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 14rem;
  box-sizing: border-box;
}

.grl-hero-video__card {
  max-width: 38rem;
  margin-right: auto;
  margin-left: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.grl-hero-video--align-left .grl-hero-video__card,
.grl-hero-video--align-center .grl-hero-video__card,
.grl-hero-video--align-right .grl-hero-video__card {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.grl-hero-video__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(125, 131, 84, 0.95);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grl-hero-video--align-left .grl-hero-video__badge,
.grl-hero-video--align-center .grl-hero-video__badge,
.grl-hero-video--align-right .grl-hero-video__badge,
.grl-hero-video--align-left .grl-hero-video__actions,
.grl-hero-video--align-center .grl-hero-video__actions,
.grl-hero-video--align-right .grl-hero-video__actions,
.grl-hero-video--align-left .grl-hero-video__toolbar,
.grl-hero-video--align-center .grl-hero-video__toolbar,
.grl-hero-video--align-right .grl-hero-video__toolbar {
  justify-content: flex-start;
}

.grl-hero-video__badge-label {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
}

.grl-hero-video__title {
  margin: 0 0 0.85rem;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  overflow-wrap: anywhere;
}

.grl-hero-video__subtitle {
  margin: 0 0 0.55rem;
  max-width: 34rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.grl-hero-video__description {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.grl-hero-video--light-text .grl-hero-video__title,
.grl-hero-video--light-text .grl-hero-video__subtitle {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.grl-hero-video--light-text .grl-hero-video__description {
  color: rgba(255, 255, 255, 0.92);
}

.grl-hero-video__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.grl-hero-video__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.grl-hero-video__btn,
.grl-hero-video__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.grl-hero-video__btn:focus-visible,
.grl-hero-video__control:focus-visible {
  outline: 3px solid #f8ffef;
  outline-offset: 3px;
}

.grl-hero-video__btn--primary {
  background: #fff;
  color: #11130c;
}

.grl-hero-video__btn--primary:hover {
  background: #f3f4ef;
}

.grl-hero-video__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.grl-hero-video__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.grl-hero-video__controls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.grl-hero-video__control {
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(17, 19, 12, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0;
}

.grl-hero-video__control i {
  font-size: 0.85rem;
}

.grl-hero-video__control:hover {
  background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 900px), (max-height: 820px) {
  .grl-hero-video {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .grl-hero-video__inner {
    min-height: 0;
    padding-bottom: 1.25rem;
  }

  .grl-hero--video .grl-hero__testimonial {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(22rem, calc(100% - 2.5rem));
    margin: 0.5rem 1.25rem 1.25rem;
  }

  .grl-hero-video__controls {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    margin: 0 1.25rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .grl-hero-video__actions {
    width: 100%;
  }

  .grl-hero-video__btn {
    width: 100%;
  }

  .grl-hero-video__title {
    max-width: none;
  }
}

@media (min-width: 1024px) and (min-height: 821px) {
  .grl-hero-video__inner {
    align-items: center;
    padding: 6.5rem 3rem 4rem;
  }

  .grl-hero-video__card,
  .grl-hero-video__subtitle,
  .grl-hero-video__description {
    max-width: min(36rem, calc(100% - 26rem));
  }

  .grl-hero-video__controls {
    left: 2.5rem;
    right: auto;
    bottom: 2.5rem;
  }
}

.grl-hero-video--subtle .grl-hero-video__card {
  animation: grlVideoFade 0.7s ease both;
}

.grl-hero-video--dynamic .grl-hero-video__card {
  animation: grlVideoRise 0.85s ease both;
}

@keyframes grlVideoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grlVideoRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .grl-hero-video--subtle .grl-hero-video__card,
  .grl-hero-video--dynamic .grl-hero-video__card {
    animation: none !important;
  }
}
